Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1245:01e0020adf88
prev1239:be3121267597
next1255:d63f73cc586f
author nkeynes
date Sat Mar 03 15:52:59 2012 +1000 (9 years ago)
permissions -rwxr-xr-x
last change Swap between run + pause icons when pressed
view annotate diff log raw
     1 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.61.
     4 #
     5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     7 # This configure script is free software; the Free Software Foundation
     8 # gives unlimited permission to copy, distribute and modify it.
     9 ## --------------------- ##
    10 ## M4sh Initialization.  ##
    11 ## --------------------- ##
    13 # Be more Bourne compatible
    14 DUALCASE=1; export DUALCASE # for MKS sh
    15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    16   emulate sh
    17   NULLCMD=:
    18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    19   # is contrary to our usage.  Disable this feature.
    20   alias -g '${1+"$@"}'='"$@"'
    21   setopt NO_GLOB_SUBST
    22 else
    23   case `(set -o) 2>/dev/null` in
    24   *posix*) set -o posix ;;
    25 esac
    27 fi
    32 # PATH needs CR
    33 # Avoid depending upon Character Ranges.
    34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    37 as_cr_digits='0123456789'
    38 as_cr_alnum=$as_cr_Letters$as_cr_digits
    40 # The user is always right.
    41 if test "${PATH_SEPARATOR+set}" != set; then
    42   echo "#! /bin/sh" >conf$$.sh
    43   echo  "exit 0"   >>conf$$.sh
    44   chmod +x conf$$.sh
    45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    46     PATH_SEPARATOR=';'
    47   else
    48     PATH_SEPARATOR=:
    49   fi
    50   rm -f conf$$.sh
    51 fi
    53 # Support unset when possible.
    54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    55   as_unset=unset
    56 else
    57   as_unset=false
    58 fi
    61 # IFS
    62 # We need space, tab and new line, in precisely that order.  Quoting is
    63 # there to prevent editors from complaining about space-tab.
    64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    65 # splitting by setting IFS to empty value.)
    66 as_nl='
    67 '
    68 IFS=" ""	$as_nl"
    70 # Find who we are.  Look in the path if we contain no directory separator.
    71 case $0 in
    72   *[\\/]* ) as_myself=$0 ;;
    73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    74 for as_dir in $PATH
    75 do
    76   IFS=$as_save_IFS
    77   test -z "$as_dir" && as_dir=.
    78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    79 done
    80 IFS=$as_save_IFS
    82      ;;
    83 esac
    84 # We did not find ourselves, most probably we were run as `sh COMMAND'
    85 # in which case we are not to be found in the path.
    86 if test "x$as_myself" = x; then
    87   as_myself=$0
    88 fi
    89 if test ! -f "$as_myself"; then
    90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    91   { (exit 1); exit 1; }
    92 fi
    94 # Work around bugs in pre-3.0 UWIN ksh.
    95 for as_var in ENV MAIL MAILPATH
    96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    97 done
    98 PS1='$ '
    99 PS2='> '
   100 PS4='+ '
   102 # NLS nuisances.
   103 for as_var in \
   104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   106   LC_TELEPHONE LC_TIME
   107 do
   108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   109     eval $as_var=C; export $as_var
   110   else
   111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   112   fi
   113 done
   115 # Required to use basename.
   116 if expr a : '\(a\)' >/dev/null 2>&1 &&
   117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   118   as_expr=expr
   119 else
   120   as_expr=false
   121 fi
   123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   124   as_basename=basename
   125 else
   126   as_basename=false
   127 fi
   130 # Name of the executable.
   131 as_me=`$as_basename -- "$0" ||
   132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   133 	 X"$0" : 'X\(//\)$' \| \
   134 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   135 echo X/"$0" |
   136     sed '/^.*\/\([^/][^/]*\)\/*$/{
   137 	    s//\1/
   138 	    q
   139 	  }
   140 	  /^X\/\(\/\/\)$/{
   141 	    s//\1/
   142 	    q
   143 	  }
   144 	  /^X\/\(\/\).*/{
   145 	    s//\1/
   146 	    q
   147 	  }
   148 	  s/.*/./; q'`
   150 # CDPATH.
   151 $as_unset CDPATH
   154 if test "x$CONFIG_SHELL" = x; then
   155   if (eval ":") 2>/dev/null; then
   156   as_have_required=yes
   157 else
   158   as_have_required=no
   159 fi
   161   if test $as_have_required = yes && 	 (eval ":
   162 (as_func_return () {
   163   (exit \$1)
   164 }
   165 as_func_success () {
   166   as_func_return 0
   167 }
   168 as_func_failure () {
   169   as_func_return 1
   170 }
   171 as_func_ret_success () {
   172   return 0
   173 }
   174 as_func_ret_failure () {
   175   return 1
   176 }
   178 exitcode=0
   179 if as_func_success; then
   180   :
   181 else
   182   exitcode=1
   183   echo as_func_success failed.
   184 fi
   186 if as_func_failure; then
   187   exitcode=1
   188   echo as_func_failure succeeded.
   189 fi
   191 if as_func_ret_success; then
   192   :
   193 else
   194   exitcode=1
   195   echo as_func_ret_success failed.
   196 fi
   198 if as_func_ret_failure; then
   199   exitcode=1
   200   echo as_func_ret_failure succeeded.
   201 fi
   203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   204   :
   205 else
   206   exitcode=1
   207   echo positional parameters were not saved.
   208 fi
   210 test \$exitcode = 0) || { (exit 1); exit 1; }
   212 (
   213   as_lineno_1=\$LINENO
   214   as_lineno_2=\$LINENO
   215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
   216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
   217 ") 2> /dev/null; then
   218   :
   219 else
   220   as_candidate_shells=
   221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   223 do
   224   IFS=$as_save_IFS
   225   test -z "$as_dir" && as_dir=.
   226   case $as_dir in
   227 	 /*)
   228 	   for as_base in sh bash ksh sh5; do
   229 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
   230 	   done;;
   231        esac
   232 done
   233 IFS=$as_save_IFS
   236       for as_shell in $as_candidate_shells $SHELL; do
   237 	 # Try only shells that exist, to save several forks.
   238 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   239 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
   240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   241   emulate sh
   242   NULLCMD=:
   243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   244   # is contrary to our usage.  Disable this feature.
   245   alias -g '${1+"$@"}'='"$@"'
   246   setopt NO_GLOB_SUBST
   247 else
   248   case `(set -o) 2>/dev/null` in
   249   *posix*) set -o posix ;;
   250 esac
   252 fi
   255 :
   256 _ASEOF
   257 }; then
   258   CONFIG_SHELL=$as_shell
   259 	       as_have_required=yes
   260 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
   261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   262   emulate sh
   263   NULLCMD=:
   264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   265   # is contrary to our usage.  Disable this feature.
   266   alias -g '${1+"$@"}'='"$@"'
   267   setopt NO_GLOB_SUBST
   268 else
   269   case `(set -o) 2>/dev/null` in
   270   *posix*) set -o posix ;;
   271 esac
   273 fi
   276 :
   277 (as_func_return () {
   278   (exit $1)
   279 }
   280 as_func_success () {
   281   as_func_return 0
   282 }
   283 as_func_failure () {
   284   as_func_return 1
   285 }
   286 as_func_ret_success () {
   287   return 0
   288 }
   289 as_func_ret_failure () {
   290   return 1
   291 }
   293 exitcode=0
   294 if as_func_success; then
   295   :
   296 else
   297   exitcode=1
   298   echo as_func_success failed.
   299 fi
   301 if as_func_failure; then
   302   exitcode=1
   303   echo as_func_failure succeeded.
   304 fi
   306 if as_func_ret_success; then
   307   :
   308 else
   309   exitcode=1
   310   echo as_func_ret_success failed.
   311 fi
   313 if as_func_ret_failure; then
   314   exitcode=1
   315   echo as_func_ret_failure succeeded.
   316 fi
   318 if ( set x; as_func_ret_success y && test x = "$1" ); then
   319   :
   320 else
   321   exitcode=1
   322   echo positional parameters were not saved.
   323 fi
   325 test $exitcode = 0) || { (exit 1); exit 1; }
   327 (
   328   as_lineno_1=$LINENO
   329   as_lineno_2=$LINENO
   330   test "x$as_lineno_1" != "x$as_lineno_2" &&
   331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
   333 _ASEOF
   334 }; then
   335   break
   336 fi
   338 fi
   340       done
   342       if test "x$CONFIG_SHELL" != x; then
   343   for as_var in BASH_ENV ENV
   344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   345         done
   346         export CONFIG_SHELL
   347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   348 fi
   351     if test $as_have_required = no; then
   352   echo This script requires a shell more modern than all the
   353       echo shells that I found on your system.  Please install a
   354       echo modern shell, or manually run the script under such a
   355       echo shell if you do have one.
   356       { (exit 1); exit 1; }
   357 fi
   360 fi
   362 fi
   366 (eval "as_func_return () {
   367   (exit \$1)
   368 }
   369 as_func_success () {
   370   as_func_return 0
   371 }
   372 as_func_failure () {
   373   as_func_return 1
   374 }
   375 as_func_ret_success () {
   376   return 0
   377 }
   378 as_func_ret_failure () {
   379   return 1
   380 }
   382 exitcode=0
   383 if as_func_success; then
   384   :
   385 else
   386   exitcode=1
   387   echo as_func_success failed.
   388 fi
   390 if as_func_failure; then
   391   exitcode=1
   392   echo as_func_failure succeeded.
   393 fi
   395 if as_func_ret_success; then
   396   :
   397 else
   398   exitcode=1
   399   echo as_func_ret_success failed.
   400 fi
   402 if as_func_ret_failure; then
   403   exitcode=1
   404   echo as_func_ret_failure succeeded.
   405 fi
   407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   408   :
   409 else
   410   exitcode=1
   411   echo positional parameters were not saved.
   412 fi
   414 test \$exitcode = 0") || {
   415   echo No shell found that supports shell functions.
   416   echo Please tell autoconf@gnu.org about your system,
   417   echo including any error possibly output before this
   418   echo message
   419 }
   423   as_lineno_1=$LINENO
   424   as_lineno_2=$LINENO
   425   test "x$as_lineno_1" != "x$as_lineno_2" &&
   426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   429   # uniformly replaced by the line number.  The first 'sed' inserts a
   430   # line-number line after each line using $LINENO; the second 'sed'
   431   # does the real work.  The second script uses 'N' to pair each
   432   # line-number line with the line containing $LINENO, and appends
   433   # trailing '-' during substitution so that $LINENO is not a special
   434   # case at line end.
   435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   437   # E. McMahon (1931-1989) for sed's syntax.  :-)
   438   sed -n '
   439     p
   440     /[$]LINENO/=
   441   ' <$as_myself |
   442     sed '
   443       s/[$]LINENO.*/&-/
   444       t lineno
   445       b
   446       :lineno
   447       N
   448       :loop
   449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   450       t loop
   451       s/-\n.*//
   452     ' >$as_me.lineno &&
   453   chmod +x "$as_me.lineno" ||
   454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   455    { (exit 1); exit 1; }; }
   457   # Don't try to exec as it changes $[0], causing all sort of problems
   458   # (the dirname of $[0] is not the place where we might find the
   459   # original and so on.  Autoconf is especially sensitive to this).
   460   . "./$as_me.lineno"
   461   # Exit status is that of the last command.
   462   exit
   463 }
   466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   467   as_dirname=dirname
   468 else
   469   as_dirname=false
   470 fi
   472 ECHO_C= ECHO_N= ECHO_T=
   473 case `echo -n x` in
   474 -n*)
   475   case `echo 'x\c'` in
   476   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   477   *)   ECHO_C='\c';;
   478   esac;;
   479 *)
   480   ECHO_N='-n';;
   481 esac
   483 if expr a : '\(a\)' >/dev/null 2>&1 &&
   484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   485   as_expr=expr
   486 else
   487   as_expr=false
   488 fi
   490 rm -f conf$$ conf$$.exe conf$$.file
   491 if test -d conf$$.dir; then
   492   rm -f conf$$.dir/conf$$.file
   493 else
   494   rm -f conf$$.dir
   495   mkdir conf$$.dir
   496 fi
   497 echo >conf$$.file
   498 if ln -s conf$$.file conf$$ 2>/dev/null; then
   499   as_ln_s='ln -s'
   500   # ... but there are two gotchas:
   501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   503   # In both cases, we have to default to `cp -p'.
   504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   505     as_ln_s='cp -p'
   506 elif ln conf$$.file conf$$ 2>/dev/null; then
   507   as_ln_s=ln
   508 else
   509   as_ln_s='cp -p'
   510 fi
   511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   512 rmdir conf$$.dir 2>/dev/null
   514 if mkdir -p . 2>/dev/null; then
   515   as_mkdir_p=:
   516 else
   517   test -d ./-p && rmdir ./-p
   518   as_mkdir_p=false
   519 fi
   521 if test -x / >/dev/null 2>&1; then
   522   as_test_x='test -x'
   523 else
   524   if ls -dL / >/dev/null 2>&1; then
   525     as_ls_L_option=L
   526   else
   527     as_ls_L_option=
   528   fi
   529   as_test_x='
   530     eval sh -c '\''
   531       if test -d "$1"; then
   532         test -d "$1/.";
   533       else
   534 	case $1 in
   535         -*)set "./$1";;
   536 	esac;
   537 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   538 	???[sx]*):;;*)false;;esac;fi
   539     '\'' sh
   540   '
   541 fi
   542 as_executable_p=$as_test_x
   544 # Sed expression to map a string onto a valid CPP name.
   545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   547 # Sed expression to map a string onto a valid variable name.
   548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   552 exec 7<&0 </dev/null 6>&1
   554 # Name of the host.
   555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   556 # so uname gets run too.
   557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   559 #
   560 # Initializations.
   561 #
   562 ac_default_prefix=/usr/local
   563 ac_clean_files=
   564 ac_config_libobj_dir=.
   565 LIBOBJS=
   566 cross_compiling=no
   567 subdirs=
   568 MFLAGS=
   569 MAKEFLAGS=
   570 SHELL=${CONFIG_SHELL-/bin/sh}
   572 # Identity of this package.
   573 PACKAGE_NAME=
   574 PACKAGE_TARNAME=
   575 PACKAGE_VERSION=
   576 PACKAGE_STRING=
   577 PACKAGE_BUGREPORT=
   579 ac_unique_file="configure.in"
   580 # Factoring default headers for most tests.
   581 ac_includes_default="\
   582 #include <stdio.h>
   583 #ifdef HAVE_SYS_TYPES_H
   584 # include <sys/types.h>
   585 #endif
   586 #ifdef HAVE_SYS_STAT_H
   587 # include <sys/stat.h>
   588 #endif
   589 #ifdef STDC_HEADERS
   590 # include <stdlib.h>
   591 # include <stddef.h>
   592 #else
   593 # ifdef HAVE_STDLIB_H
   594 #  include <stdlib.h>
   595 # endif
   596 #endif
   597 #ifdef HAVE_STRING_H
   598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   599 #  include <memory.h>
   600 # endif
   601 # include <string.h>
   602 #endif
   603 #ifdef HAVE_STRINGS_H
   604 # include <strings.h>
   605 #endif
   606 #ifdef HAVE_INTTYPES_H
   607 # include <inttypes.h>
   608 #endif
   609 #ifdef HAVE_STDINT_H
   610 # include <stdint.h>
   611 #endif
   612 #ifdef HAVE_UNISTD_H
   613 # include <unistd.h>
   614 #endif"
   616 ac_subst_vars='SHELL
   617 PATH_SEPARATOR
   618 PACKAGE_NAME
   619 PACKAGE_TARNAME
   620 PACKAGE_VERSION
   621 PACKAGE_STRING
   622 PACKAGE_BUGREPORT
   623 exec_prefix
   624 prefix
   625 program_transform_name
   626 bindir
   627 sbindir
   628 libexecdir
   629 datarootdir
   630 datadir
   631 sysconfdir
   632 sharedstatedir
   633 localstatedir
   634 includedir
   635 oldincludedir
   636 docdir
   637 infodir
   638 htmldir
   639 dvidir
   640 pdfdir
   641 psdir
   642 libdir
   643 localedir
   644 mandir
   645 DEFS
   646 ECHO_C
   647 ECHO_N
   648 ECHO_T
   649 LIBS
   650 build_alias
   651 host_alias
   652 target_alias
   653 INSTALL_PROGRAM
   654 INSTALL_SCRIPT
   655 INSTALL_DATA
   656 CYGPATH_W
   657 PACKAGE
   658 VERSION
   659 ACLOCAL
   660 AUTOCONF
   661 AUTOMAKE
   662 AUTOHEADER
   663 MAKEINFO
   664 install_sh
   665 STRIP
   666 INSTALL_STRIP_PROGRAM
   667 mkdir_p
   668 AWK
   669 SET_MAKE
   670 am__leading_dot
   671 AMTAR
   672 am__tar
   673 am__untar
   674 MAINTAINER_MODE_TRUE
   675 MAINTAINER_MODE_FALSE
   676 MAINT
   677 build
   678 build_cpu
   679 build_vendor
   680 build_os
   681 host
   682 host_cpu
   683 host_vendor
   684 host_os
   685 ANT
   686 ANDROID_SDK_HOME
   687 ANDROID_NDK_HOME
   688 ANDROID_SDK_VERSION
   689 ANDROID_NDK_VERSION
   690 ANDROID_GDBSERVER
   691 GUI_ANDROID_TRUE
   692 GUI_ANDROID_FALSE
   693 CC
   694 CFLAGS
   695 LDFLAGS
   696 CPPFLAGS
   697 ac_ct_CC
   698 EXEEXT
   699 OBJEXT
   700 DEPDIR
   701 am__include
   702 am__quote
   703 AMDEP_TRUE
   704 AMDEP_FALSE
   705 AMDEPBACKSLASH
   706 CCDEPMODE
   707 am__fastdepCC_TRUE
   708 am__fastdepCC_FALSE
   709 CPP
   710 CC
   711 CFLAGS
   712 CPPFLAGS
   713 CC_FOR_BUILD
   714 ac_ct_CC_FOR_BUILD
   715 CC_FOR_BUILDDEPMODE
   716 am__fastdepCC_FOR_BUILD_TRUE
   717 am__fastdepCC_FOR_BUILD_FALSE
   718 CPP
   719 CPPFLAGS
   720 CPP_FOR_BUILD
   721 BUILD_EXEEXT
   722 BUILD_OBJEXT
   723 CFLAGS_FOR_BUILD
   724 CPPFLAGS_FOR_BUILD
   725 OBJC
   726 OBJCFLAGS
   727 ac_ct_OBJC
   728 SED
   729 CCAS
   730 CCASFLAGS
   731 RANLIB
   732 GREP
   733 EGREP
   734 OBJCDEPMODE
   735 am__fastdepOBJC_TRUE
   736 am__fastdepOBJC_FALSE
   737 POD2MAN
   738 POD2HTML
   739 GUI_COCOA_TRUE
   740 GUI_COCOA_FALSE
   741 SOEXT
   742 PLUGINCFLAGS
   743 PLUGINLDFLAGS
   744 LXDREAMLDFLAGS
   745 BUILD_PLUGINS_TRUE
   746 BUILD_PLUGINS_FALSE
   747 LXDREAMCPPFLAGS
   748 PKG_CONFIG
   749 LIBPNG_CFLAGS
   750 LIBPNG_LIBS
   751 GLIB_CFLAGS
   752 GLIB_LIBS
   753 GTK_CFLAGS
   754 GTK_LIBS
   755 GLIB_FOR_BUILD_CFLAGS
   756 GLIB_FOR_BUILD_LIBS
   757 GUI_GTK_TRUE
   758 GUI_GTK_FALSE
   759 LIBISOFS_CFLAGS
   760 LIBISOFS_LIBS
   761 LIBGL_CFLAGS
   762 LIBGL_LIBS
   763 VIDEO_OSMESA_TRUE
   764 VIDEO_OSMESA_FALSE
   765 VIDEO_GLX_TRUE
   766 VIDEO_GLX_FALSE
   767 VIDEO_NSGL_TRUE
   768 VIDEO_NSGL_FALSE
   769 BUILD_SH4X86_TRUE
   770 BUILD_SH4X86_FALSE
   771 AUDIO_OSX_TRUE
   772 AUDIO_OSX_FALSE
   773 SDL_CFLAGS
   774 SDL_LIBS
   775 AUDIO_SDL_TRUE
   776 AUDIO_SDL_FALSE
   777 PULSE_CFLAGS
   778 PULSE_LIBS
   779 AUDIO_PULSE_TRUE
   780 AUDIO_PULSE_FALSE
   781 ESOUND_CFLAGS
   782 ESOUND_LIBS
   783 AUDIO_ESOUND_TRUE
   784 AUDIO_ESOUND_FALSE
   785 ALSA_CFLAGS
   786 ALSA_LIBS
   787 AUDIO_ALSA_TRUE
   788 AUDIO_ALSA_FALSE
   789 CDROM_LINUX_TRUE
   790 CDROM_LINUX_FALSE
   791 CDROM_OSX_TRUE
   792 CDROM_OSX_FALSE
   793 CDROM_NONE_TRUE
   794 CDROM_NONE_FALSE
   795 JOY_LINUX_TRUE
   796 JOY_LINUX_FALSE
   797 INPUT_LIRC_TRUE
   798 INPUT_LIRC_FALSE
   799 SHCC
   800 SHLD
   801 SHOBJCOPY
   802 ARMCC
   803 ARMLD
   804 ARMOBJCOPY
   805 BUILD_SYSTEST_TRUE
   806 BUILD_SYSTEST_FALSE
   807 BUILD_ARMTEST_TRUE
   808 BUILD_ARMTEST_FALSE
   809 LXDREAM_LIBS
   810 GETTEXT_PACKAGE
   811 USE_NLS
   812 MSGFMT
   813 MSGFMT_OPTS
   814 GMSGFMT
   815 XGETTEXT
   816 CATALOGS
   817 CATOBJEXT
   818 DATADIRNAME
   819 GMOFILES
   820 INSTOBJEXT
   821 INTLLIBS
   822 PO_IN_DATADIR_TRUE
   823 PO_IN_DATADIR_FALSE
   824 POFILES
   825 POSUB
   826 MKINSTALLDIRS
   827 LIBOBJS
   828 LTLIBOBJS'
   829 ac_subst_files=''
   830       ac_precious_vars='build_alias
   831 host_alias
   832 target_alias
   833 CC
   834 CFLAGS
   835 LDFLAGS
   836 LIBS
   837 CPPFLAGS
   838 CPP
   839 CC
   840 CFLAGS
   841 CPPFLAGS
   842 CPP
   843 CPPFLAGS
   844 OBJC
   845 OBJCFLAGS
   846 CCAS
   847 CCASFLAGS
   848 PKG_CONFIG
   849 LIBPNG_CFLAGS
   850 LIBPNG_LIBS
   851 GLIB_CFLAGS
   852 GLIB_LIBS
   853 GTK_CFLAGS
   854 GTK_LIBS
   855 GLIB_FOR_BUILD_CFLAGS
   856 GLIB_FOR_BUILD_LIBS
   857 LIBISOFS_CFLAGS
   858 LIBISOFS_LIBS
   859 LIBGL_CFLAGS
   860 LIBGL_LIBS
   861 SDL_CFLAGS
   862 SDL_LIBS
   863 PULSE_CFLAGS
   864 PULSE_LIBS
   865 ESOUND_CFLAGS
   866 ESOUND_LIBS
   867 ALSA_CFLAGS
   868 ALSA_LIBS'
   871 # Initialize some variables set by options.
   872 ac_init_help=
   873 ac_init_version=false
   874 # The variables have the same names as the options, with
   875 # dashes changed to underlines.
   876 cache_file=/dev/null
   877 exec_prefix=NONE
   878 no_create=
   879 no_recursion=
   880 prefix=NONE
   881 program_prefix=NONE
   882 program_suffix=NONE
   883 program_transform_name=s,x,x,
   884 silent=
   885 site=
   886 srcdir=
   887 verbose=
   888 x_includes=NONE
   889 x_libraries=NONE
   891 # Installation directory options.
   892 # These are left unexpanded so users can "make install exec_prefix=/foo"
   893 # and all the variables that are supposed to be based on exec_prefix
   894 # by default will actually change.
   895 # Use braces instead of parens because sh, perl, etc. also accept them.
   896 # (The list follows the same order as the GNU Coding Standards.)
   897 bindir='${exec_prefix}/bin'
   898 sbindir='${exec_prefix}/sbin'
   899 libexecdir='${exec_prefix}/libexec'
   900 datarootdir='${prefix}/share'
   901 datadir='${datarootdir}'
   902 sysconfdir='${prefix}/etc'
   903 sharedstatedir='${prefix}/com'
   904 localstatedir='${prefix}/var'
   905 includedir='${prefix}/include'
   906 oldincludedir='/usr/include'
   907 docdir='${datarootdir}/doc/${PACKAGE}'
   908 infodir='${datarootdir}/info'
   909 htmldir='${docdir}'
   910 dvidir='${docdir}'
   911 pdfdir='${docdir}'
   912 psdir='${docdir}'
   913 libdir='${exec_prefix}/lib'
   914 localedir='${datarootdir}/locale'
   915 mandir='${datarootdir}/man'
   917 ac_prev=
   918 ac_dashdash=
   919 for ac_option
   920 do
   921   # If the previous option needs an argument, assign it.
   922   if test -n "$ac_prev"; then
   923     eval $ac_prev=\$ac_option
   924     ac_prev=
   925     continue
   926   fi
   928   case $ac_option in
   929   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   930   *)	ac_optarg=yes ;;
   931   esac
   933   # Accept the important Cygnus configure options, so we can diagnose typos.
   935   case $ac_dashdash$ac_option in
   936   --)
   937     ac_dashdash=yes ;;
   939   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   940     ac_prev=bindir ;;
   941   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   942     bindir=$ac_optarg ;;
   944   -build | --build | --buil | --bui | --bu)
   945     ac_prev=build_alias ;;
   946   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   947     build_alias=$ac_optarg ;;
   949   -cache-file | --cache-file | --cache-fil | --cache-fi \
   950   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   951     ac_prev=cache_file ;;
   952   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   953   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   954     cache_file=$ac_optarg ;;
   956   --config-cache | -C)
   957     cache_file=config.cache ;;
   959   -datadir | --datadir | --datadi | --datad)
   960     ac_prev=datadir ;;
   961   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   962     datadir=$ac_optarg ;;
   964   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   965   | --dataroo | --dataro | --datar)
   966     ac_prev=datarootdir ;;
   967   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   968   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   969     datarootdir=$ac_optarg ;;
   971   -disable-* | --disable-*)
   972     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   973     # Reject names that are not valid shell variable names.
   974     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   975       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   976    { (exit 1); exit 1; }; }
   977     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   978     eval enable_$ac_feature=no ;;
   980   -docdir | --docdir | --docdi | --doc | --do)
   981     ac_prev=docdir ;;
   982   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   983     docdir=$ac_optarg ;;
   985   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   986     ac_prev=dvidir ;;
   987   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   988     dvidir=$ac_optarg ;;
   990   -enable-* | --enable-*)
   991     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   992     # Reject names that are not valid shell variable names.
   993     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   994       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   995    { (exit 1); exit 1; }; }
   996     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   997     eval enable_$ac_feature=\$ac_optarg ;;
   999   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1000   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1001   | --exec | --exe | --ex)
  1002     ac_prev=exec_prefix ;;
  1003   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1004   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1005   | --exec=* | --exe=* | --ex=*)
  1006     exec_prefix=$ac_optarg ;;
  1008   -gas | --gas | --ga | --g)
  1009     # Obsolete; use --with-gas.
  1010     with_gas=yes ;;
  1012   -help | --help | --hel | --he | -h)
  1013     ac_init_help=long ;;
  1014   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1015     ac_init_help=recursive ;;
  1016   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1017     ac_init_help=short ;;
  1019   -host | --host | --hos | --ho)
  1020     ac_prev=host_alias ;;
  1021   -host=* | --host=* | --hos=* | --ho=*)
  1022     host_alias=$ac_optarg ;;
  1024   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1025     ac_prev=htmldir ;;
  1026   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1027   | --ht=*)
  1028     htmldir=$ac_optarg ;;
  1030   -includedir | --includedir | --includedi | --included | --include \
  1031   | --includ | --inclu | --incl | --inc)
  1032     ac_prev=includedir ;;
  1033   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1034   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1035     includedir=$ac_optarg ;;
  1037   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1038     ac_prev=infodir ;;
  1039   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1040     infodir=$ac_optarg ;;
  1042   -libdir | --libdir | --libdi | --libd)
  1043     ac_prev=libdir ;;
  1044   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1045     libdir=$ac_optarg ;;
  1047   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1048   | --libexe | --libex | --libe)
  1049     ac_prev=libexecdir ;;
  1050   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1051   | --libexe=* | --libex=* | --libe=*)
  1052     libexecdir=$ac_optarg ;;
  1054   -localedir | --localedir | --localedi | --localed | --locale)
  1055     ac_prev=localedir ;;
  1056   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1057     localedir=$ac_optarg ;;
  1059   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1060   | --localstate | --localstat | --localsta | --localst | --locals)
  1061     ac_prev=localstatedir ;;
  1062   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1063   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1064     localstatedir=$ac_optarg ;;
  1066   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1067     ac_prev=mandir ;;
  1068   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1069     mandir=$ac_optarg ;;
  1071   -nfp | --nfp | --nf)
  1072     # Obsolete; use --without-fp.
  1073     with_fp=no ;;
  1075   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1076   | --no-cr | --no-c | -n)
  1077     no_create=yes ;;
  1079   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1080   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1081     no_recursion=yes ;;
  1083   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1084   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1085   | --oldin | --oldi | --old | --ol | --o)
  1086     ac_prev=oldincludedir ;;
  1087   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1088   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1089   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1090     oldincludedir=$ac_optarg ;;
  1092   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1093     ac_prev=prefix ;;
  1094   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1095     prefix=$ac_optarg ;;
  1097   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1098   | --program-pre | --program-pr | --program-p)
  1099     ac_prev=program_prefix ;;
  1100   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1101   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1102     program_prefix=$ac_optarg ;;
  1104   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1105   | --program-suf | --program-su | --program-s)
  1106     ac_prev=program_suffix ;;
  1107   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1108   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1109     program_suffix=$ac_optarg ;;
  1111   -program-transform-name | --program-transform-name \
  1112   | --program-transform-nam | --program-transform-na \
  1113   | --program-transform-n | --program-transform- \
  1114   | --program-transform | --program-transfor \
  1115   | --program-transfo | --program-transf \
  1116   | --program-trans | --program-tran \
  1117   | --progr-tra | --program-tr | --program-t)
  1118     ac_prev=program_transform_name ;;
  1119   -program-transform-name=* | --program-transform-name=* \
  1120   | --program-transform-nam=* | --program-transform-na=* \
  1121   | --program-transform-n=* | --program-transform-=* \
  1122   | --program-transform=* | --program-transfor=* \
  1123   | --program-transfo=* | --program-transf=* \
  1124   | --program-trans=* | --program-tran=* \
  1125   | --progr-tra=* | --program-tr=* | --program-t=*)
  1126     program_transform_name=$ac_optarg ;;
  1128   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1129     ac_prev=pdfdir ;;
  1130   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1131     pdfdir=$ac_optarg ;;
  1133   -psdir | --psdir | --psdi | --psd | --ps)
  1134     ac_prev=psdir ;;
  1135   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1136     psdir=$ac_optarg ;;
  1138   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1139   | -silent | --silent | --silen | --sile | --sil)
  1140     silent=yes ;;
  1142   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1143     ac_prev=sbindir ;;
  1144   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1145   | --sbi=* | --sb=*)
  1146     sbindir=$ac_optarg ;;
  1148   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1149   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1150   | --sharedst | --shareds | --shared | --share | --shar \
  1151   | --sha | --sh)
  1152     ac_prev=sharedstatedir ;;
  1153   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1154   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1155   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1156   | --sha=* | --sh=*)
  1157     sharedstatedir=$ac_optarg ;;
  1159   -site | --site | --sit)
  1160     ac_prev=site ;;
  1161   -site=* | --site=* | --sit=*)
  1162     site=$ac_optarg ;;
  1164   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1165     ac_prev=srcdir ;;
  1166   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1167     srcdir=$ac_optarg ;;
  1169   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1170   | --syscon | --sysco | --sysc | --sys | --sy)
  1171     ac_prev=sysconfdir ;;
  1172   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1173   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1174     sysconfdir=$ac_optarg ;;
  1176   -target | --target | --targe | --targ | --tar | --ta | --t)
  1177     ac_prev=target_alias ;;
  1178   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1179     target_alias=$ac_optarg ;;
  1181   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1182     verbose=yes ;;
  1184   -version | --version | --versio | --versi | --vers | -V)
  1185     ac_init_version=: ;;
  1187   -with-* | --with-*)
  1188     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1189     # Reject names that are not valid shell variable names.
  1190     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1191       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1192    { (exit 1); exit 1; }; }
  1193     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1194     eval with_$ac_package=\$ac_optarg ;;
  1196   -without-* | --without-*)
  1197     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1198     # Reject names that are not valid shell variable names.
  1199     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1200       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1201    { (exit 1); exit 1; }; }
  1202     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1203     eval with_$ac_package=no ;;
  1205   --x)
  1206     # Obsolete; use --with-x.
  1207     with_x=yes ;;
  1209   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1210   | --x-incl | --x-inc | --x-in | --x-i)
  1211     ac_prev=x_includes ;;
  1212   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1213   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1214     x_includes=$ac_optarg ;;
  1216   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1217   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1218     ac_prev=x_libraries ;;
  1219   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1220   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1221     x_libraries=$ac_optarg ;;
  1223   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1224 Try \`$0 --help' for more information." >&2
  1225    { (exit 1); exit 1; }; }
  1226     ;;
  1228   *=*)
  1229     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1230     # Reject names that are not valid shell variable names.
  1231     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1232       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1233    { (exit 1); exit 1; }; }
  1234     eval $ac_envvar=\$ac_optarg
  1235     export $ac_envvar ;;
  1237   *)
  1238     # FIXME: should be removed in autoconf 3.0.
  1239     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1240     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1241       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1242     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1243     ;;
  1245   esac
  1246 done
  1248 if test -n "$ac_prev"; then
  1249   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1250   { echo "$as_me: error: missing argument to $ac_option" >&2
  1251    { (exit 1); exit 1; }; }
  1252 fi
  1254 # Be sure to have absolute directory names.
  1255 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1256 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1257 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1258 		libdir localedir mandir
  1259 do
  1260   eval ac_val=\$$ac_var
  1261   case $ac_val in
  1262     [\\/$]* | ?:[\\/]* )  continue;;
  1263     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1264   esac
  1265   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1266    { (exit 1); exit 1; }; }
  1267 done
  1269 # There might be people who depend on the old broken behavior: `$host'
  1270 # used to hold the argument of --host etc.
  1271 # FIXME: To remove some day.
  1272 build=$build_alias
  1273 host=$host_alias
  1274 target=$target_alias
  1276 # FIXME: To remove some day.
  1277 if test "x$host_alias" != x; then
  1278   if test "x$build_alias" = x; then
  1279     cross_compiling=maybe
  1280     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1281     If a cross compiler is detected then cross compile mode will be used." >&2
  1282   elif test "x$build_alias" != "x$host_alias"; then
  1283     cross_compiling=yes
  1284   fi
  1285 fi
  1287 ac_tool_prefix=
  1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1290 test "$silent" = yes && exec 6>/dev/null
  1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1294 ac_ls_di=`ls -di .` &&
  1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1296   { echo "$as_me: error: Working directory cannot be determined" >&2
  1297    { (exit 1); exit 1; }; }
  1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1299   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1300    { (exit 1); exit 1; }; }
  1303 # Find the source files, if location was not specified.
  1304 if test -z "$srcdir"; then
  1305   ac_srcdir_defaulted=yes
  1306   # Try the directory containing this script, then the parent directory.
  1307   ac_confdir=`$as_dirname -- "$0" ||
  1308 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1309 	 X"$0" : 'X\(//\)[^/]' \| \
  1310 	 X"$0" : 'X\(//\)$' \| \
  1311 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1312 echo X"$0" |
  1313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1314 	    s//\1/
  1317 	  /^X\(\/\/\)[^/].*/{
  1318 	    s//\1/
  1321 	  /^X\(\/\/\)$/{
  1322 	    s//\1/
  1325 	  /^X\(\/\).*/{
  1326 	    s//\1/
  1329 	  s/.*/./; q'`
  1330   srcdir=$ac_confdir
  1331   if test ! -r "$srcdir/$ac_unique_file"; then
  1332     srcdir=..
  1333   fi
  1334 else
  1335   ac_srcdir_defaulted=no
  1336 fi
  1337 if test ! -r "$srcdir/$ac_unique_file"; then
  1338   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1339   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1340    { (exit 1); exit 1; }; }
  1341 fi
  1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1343 ac_abs_confdir=`(
  1344 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1345    { (exit 1); exit 1; }; }
  1346 	pwd)`
  1347 # When building in place, set srcdir=.
  1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1349   srcdir=.
  1350 fi
  1351 # Remove unnecessary trailing slashes from srcdir.
  1352 # Double slashes in file names in object file debugging info
  1353 # mess up M-x gdb in Emacs.
  1354 case $srcdir in
  1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1356 esac
  1357 for ac_var in $ac_precious_vars; do
  1358   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1359   eval ac_env_${ac_var}_value=\$${ac_var}
  1360   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1361   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1362 done
  1365 # Report the --help message.
  1367 if test "$ac_init_help" = "long"; then
  1368   # Omit some internal or obsolete options to make the list less imposing.
  1369   # This message is too long to be a string in the A/UX 3.1 sh.
  1370   cat <<_ACEOF
  1371 \`configure' configures this package to adapt to many kinds of systems.
  1373 Usage: $0 [OPTION]... [VAR=VALUE]...
  1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1376 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1378 Defaults for the options are specified in brackets.
  1380 Configuration:
  1381   -h, --help              display this help and exit
  1382       --help=short        display options specific to this package
  1383       --help=recursive    display the short help of all the included packages
  1384   -V, --version           display version information and exit
  1385   -q, --quiet, --silent   do not print \`checking...' messages
  1386       --cache-file=FILE   cache test results in FILE [disabled]
  1387   -C, --config-cache      alias for \`--cache-file=config.cache'
  1388   -n, --no-create         do not create output files
  1389       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1391 Installation directories:
  1392   --prefix=PREFIX         install architecture-independent files in PREFIX
  1393 			  [$ac_default_prefix]
  1394   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1395 			  [PREFIX]
  1397 By default, \`make install' will install all the files in
  1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1400 for instance \`--prefix=\$HOME'.
  1402 For better control, use the options below.
  1404 Fine tuning of the installation directories:
  1405   --bindir=DIR           user executables [EPREFIX/bin]
  1406   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1407   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1408   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1409   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1410   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1411   --libdir=DIR           object code libraries [EPREFIX/lib]
  1412   --includedir=DIR       C header files [PREFIX/include]
  1413   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1414   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1415   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1416   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1417   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1418   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1419   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1420   --htmldir=DIR          html documentation [DOCDIR]
  1421   --dvidir=DIR           dvi documentation [DOCDIR]
  1422   --pdfdir=DIR           pdf documentation [DOCDIR]
  1423   --psdir=DIR            ps documentation [DOCDIR]
  1424 _ACEOF
  1426   cat <<\_ACEOF
  1428 Program names:
  1429   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1430   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1431   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1433 System types:
  1434   --build=BUILD     configure for building on BUILD [guessed]
  1435   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1436 _ACEOF
  1437 fi
  1439 if test -n "$ac_init_help"; then
  1441   cat <<\_ACEOF
  1443 Optional Features:
  1444   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1445   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1446   --enable-maintainer-mode  enable make rules and dependencies not useful
  1447 			  (and sometimes confusing) to the casual installer
  1448   --disable-dependency-tracking  speeds up one-time build
  1449   --enable-dependency-tracking   do not reject slow dependency extractors
  1450   --enable-strict-warn    Enable strict compilation warnings
  1451   --disable-translator    Disable the SH4 translator (Enabled by default)
  1452   --disable-optimized     Disable compile-time optimizations (Enabled by
  1453                           default)
  1454   --enable-shared         Build drivers as shared libraries (Enabled if
  1455                           available)
  1456   --enable-profiled       Enable profiling build
  1457   --enable-trace          Enable generation of IO traces (warning: hurts
  1458                           performance)
  1459   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1460                           performance)
  1461   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1463 Optional Packages:
  1464   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1465   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1466   --with-android=SDK      Specify the location of the Android SDK
  1467   --with-android-ndk=NDK  Specify the location of the Android NDK
  1468   --with-android-version  Specify target Android SDK version
  1469   --with-android-version  Specify target Android NDK version
  1470   --with-osmesa           Build with the osmesa GL library (software
  1471                           rendering)
  1472   --with-gtk              Build with the GTK UI. Default on X11 systems
  1473   --with-esd              Build with support for the ESounD audio system
  1474   --with-pulse            Build with support for the PulseAudio audio system
  1475   --with-sdl              Build with support for SDL audio
  1477 Some influential environment variables:
  1478   CC          C compiler command
  1479   CFLAGS      C compiler flags
  1480   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1481               nonstandard directory <lib dir>
  1482   LIBS        libraries to pass to the linker, e.g. -l<library>
  1483   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1484               you have headers in a nonstandard directory <include dir>
  1485   CPP         C preprocessor
  1486   OBJC        Objective C compiler command
  1487   OBJCFLAGS   Objective C compiler flags
  1488   CCAS        assembler compiler command (defaults to CC)
  1489   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1490   PKG_CONFIG  path to pkg-config utility
  1491   LIBPNG_CFLAGS
  1492               C compiler flags for LIBPNG, overriding pkg-config
  1493   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1494   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1495   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1496   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1497   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1498   GLIB_FOR_BUILD_CFLAGS
  1499               C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
  1500   GLIB_FOR_BUILD_LIBS
  1501               linker flags for GLIB_FOR_BUILD, overriding pkg-config
  1502   LIBISOFS_CFLAGS
  1503               C compiler flags for LIBISOFS, overriding pkg-config
  1504   LIBISOFS_LIBS
  1505               linker flags for LIBISOFS, overriding pkg-config
  1506   LIBGL_CFLAGS
  1507               C compiler flags for LIBGL, overriding pkg-config
  1508   LIBGL_LIBS  linker flags for LIBGL, overriding pkg-config
  1509   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
  1510   SDL_LIBS    linker flags for SDL, overriding pkg-config
  1511   PULSE_CFLAGS
  1512               C compiler flags for PULSE, overriding pkg-config
  1513   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1514   ESOUND_CFLAGS
  1515               C compiler flags for ESOUND, overriding pkg-config
  1516   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1517   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1518   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1520 Use these variables to override the choices made by `configure' or to help
  1521 it to find libraries and programs with nonstandard names/locations.
  1523 _ACEOF
  1524 ac_status=$?
  1525 fi
  1527 if test "$ac_init_help" = "recursive"; then
  1528   # If there are subdirs, report their specific --help.
  1529   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1530     test -d "$ac_dir" || continue
  1531     ac_builddir=.
  1533 case "$ac_dir" in
  1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1535 *)
  1536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1537   # A ".." for each directory in $ac_dir_suffix.
  1538   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1539   case $ac_top_builddir_sub in
  1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1542   esac ;;
  1543 esac
  1544 ac_abs_top_builddir=$ac_pwd
  1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1546 # for backward compatibility:
  1547 ac_top_builddir=$ac_top_build_prefix
  1549 case $srcdir in
  1550   .)  # We are building in place.
  1551     ac_srcdir=.
  1552     ac_top_srcdir=$ac_top_builddir_sub
  1553     ac_abs_top_srcdir=$ac_pwd ;;
  1554   [\\/]* | ?:[\\/]* )  # Absolute name.
  1555     ac_srcdir=$srcdir$ac_dir_suffix;
  1556     ac_top_srcdir=$srcdir
  1557     ac_abs_top_srcdir=$srcdir ;;
  1558   *) # Relative name.
  1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1562 esac
  1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1565     cd "$ac_dir" || { ac_status=$?; continue; }
  1566     # Check for guested configure.
  1567     if test -f "$ac_srcdir/configure.gnu"; then
  1568       echo &&
  1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1570     elif test -f "$ac_srcdir/configure"; then
  1571       echo &&
  1572       $SHELL "$ac_srcdir/configure" --help=recursive
  1573     else
  1574       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1575     fi || ac_status=$?
  1576     cd "$ac_pwd" || { ac_status=$?; break; }
  1577   done
  1578 fi
  1580 test -n "$ac_init_help" && exit $ac_status
  1581 if $ac_init_version; then
  1582   cat <<\_ACEOF
  1583 configure
  1584 generated by GNU Autoconf 2.61
  1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1588 This configure script is free software; the Free Software Foundation
  1589 gives unlimited permission to copy, distribute and modify it.
  1590 _ACEOF
  1591   exit
  1592 fi
  1593 cat >config.log <<_ACEOF
  1594 This file contains any messages produced by compilers while
  1595 running configure, to aid debugging if configure makes a mistake.
  1597 It was created by $as_me, which was
  1598 generated by GNU Autoconf 2.61.  Invocation command line was
  1600   $ $0 $@
  1602 _ACEOF
  1603 exec 5>>config.log
  1605 cat <<_ASUNAME
  1606 ## --------- ##
  1607 ## Platform. ##
  1608 ## --------- ##
  1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1617 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1619 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1620 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1622 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1623 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1624 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1625 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1627 _ASUNAME
  1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1630 for as_dir in $PATH
  1631 do
  1632   IFS=$as_save_IFS
  1633   test -z "$as_dir" && as_dir=.
  1634   echo "PATH: $as_dir"
  1635 done
  1636 IFS=$as_save_IFS
  1638 } >&5
  1640 cat >&5 <<_ACEOF
  1643 ## ----------- ##
  1644 ## Core tests. ##
  1645 ## ----------- ##
  1647 _ACEOF
  1650 # Keep a trace of the command line.
  1651 # Strip out --no-create and --no-recursion so they do not pile up.
  1652 # Strip out --silent because we don't want to record it for future runs.
  1653 # Also quote any args containing shell meta-characters.
  1654 # Make two passes to allow for proper duplicate-argument suppression.
  1655 ac_configure_args=
  1656 ac_configure_args0=
  1657 ac_configure_args1=
  1658 ac_must_keep_next=false
  1659 for ac_pass in 1 2
  1660 do
  1661   for ac_arg
  1662   do
  1663     case $ac_arg in
  1664     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1665     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1666     | -silent | --silent | --silen | --sile | --sil)
  1667       continue ;;
  1668     *\'*)
  1669       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1670     esac
  1671     case $ac_pass in
  1672     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1673     2)
  1674       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1675       if test $ac_must_keep_next = true; then
  1676 	ac_must_keep_next=false # Got value, back to normal.
  1677       else
  1678 	case $ac_arg in
  1679 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1680 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1681 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1682 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1683 	    case "$ac_configure_args0 " in
  1684 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1685 	    esac
  1686 	    ;;
  1687 	  -* ) ac_must_keep_next=true ;;
  1688 	esac
  1689       fi
  1690       ac_configure_args="$ac_configure_args '$ac_arg'"
  1691       ;;
  1692     esac
  1693   done
  1694 done
  1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1698 # When interrupted or exit'd, cleanup temporary files, and complete
  1699 # config.log.  We remove comments because anyway the quotes in there
  1700 # would cause problems or look ugly.
  1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1703 trap 'exit_status=$?
  1704   # Save into config.log some information that might help in debugging.
  1706     echo
  1708     cat <<\_ASBOX
  1709 ## ---------------- ##
  1710 ## Cache variables. ##
  1711 ## ---------------- ##
  1712 _ASBOX
  1713     echo
  1714     # The following way of writing the cache mishandles newlines in values,
  1716   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1717     eval ac_val=\$$ac_var
  1718     case $ac_val in #(
  1719     *${as_nl}*)
  1720       case $ac_var in #(
  1721       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1723       esac
  1724       case $ac_var in #(
  1725       _ | IFS | as_nl) ;; #(
  1726       *) $as_unset $ac_var ;;
  1727       esac ;;
  1728     esac
  1729   done
  1730   (set) 2>&1 |
  1731     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1732     *${as_nl}ac_space=\ *)
  1733       sed -n \
  1734 	"s/'\''/'\''\\\\'\'''\''/g;
  1735 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1736       ;; #(
  1737     *)
  1738       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1739       ;;
  1740     esac |
  1741     sort
  1743     echo
  1745     cat <<\_ASBOX
  1746 ## ----------------- ##
  1747 ## Output variables. ##
  1748 ## ----------------- ##
  1749 _ASBOX
  1750     echo
  1751     for ac_var in $ac_subst_vars
  1752     do
  1753       eval ac_val=\$$ac_var
  1754       case $ac_val in
  1755       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1756       esac
  1757       echo "$ac_var='\''$ac_val'\''"
  1758     done | sort
  1759     echo
  1761     if test -n "$ac_subst_files"; then
  1762       cat <<\_ASBOX
  1763 ## ------------------- ##
  1764 ## File substitutions. ##
  1765 ## ------------------- ##
  1766 _ASBOX
  1767       echo
  1768       for ac_var in $ac_subst_files
  1769       do
  1770 	eval ac_val=\$$ac_var
  1771 	case $ac_val in
  1772 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1773 	esac
  1774 	echo "$ac_var='\''$ac_val'\''"
  1775       done | sort
  1776       echo
  1777     fi
  1779     if test -s confdefs.h; then
  1780       cat <<\_ASBOX
  1781 ## ----------- ##
  1782 ## confdefs.h. ##
  1783 ## ----------- ##
  1784 _ASBOX
  1785       echo
  1786       cat confdefs.h
  1787       echo
  1788     fi
  1789     test "$ac_signal" != 0 &&
  1790       echo "$as_me: caught signal $ac_signal"
  1791     echo "$as_me: exit $exit_status"
  1792   } >&5
  1793   rm -f core *.core core.conftest.* &&
  1794     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1795     exit $exit_status
  1796 ' 0
  1797 for ac_signal in 1 2 13 15; do
  1798   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1799 done
  1800 ac_signal=0
  1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1803 rm -f -r conftest* confdefs.h
  1805 # Predefined preprocessor variables.
  1807 cat >>confdefs.h <<_ACEOF
  1808 #define PACKAGE_NAME "$PACKAGE_NAME"
  1809 _ACEOF
  1812 cat >>confdefs.h <<_ACEOF
  1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1814 _ACEOF
  1817 cat >>confdefs.h <<_ACEOF
  1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1819 _ACEOF
  1822 cat >>confdefs.h <<_ACEOF
  1823 #define PACKAGE_STRING "$PACKAGE_STRING"
  1824 _ACEOF
  1827 cat >>confdefs.h <<_ACEOF
  1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1829 _ACEOF
  1832 # Let the site file select an alternate cache file if it wants to.
  1833 # Prefer explicitly selected file to automatically selected ones.
  1834 if test -n "$CONFIG_SITE"; then
  1835   set x "$CONFIG_SITE"
  1836 elif test "x$prefix" != xNONE; then
  1837   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1838 else
  1839   set x "$ac_default_prefix/share/config.site" \
  1840 	"$ac_default_prefix/etc/config.site"
  1841 fi
  1842 shift
  1843 for ac_site_file
  1844 do
  1845   if test -r "$ac_site_file"; then
  1846     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1847 echo "$as_me: loading site script $ac_site_file" >&6;}
  1848     sed 's/^/| /' "$ac_site_file" >&5
  1849     . "$ac_site_file"
  1850   fi
  1851 done
  1853 if test -r "$cache_file"; then
  1854   # Some versions of bash will fail to source /dev/null (special
  1855   # files actually), so we avoid doing that.
  1856   if test -f "$cache_file"; then
  1857     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1858 echo "$as_me: loading cache $cache_file" >&6;}
  1859     case $cache_file in
  1860       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1861       *)                      . "./$cache_file";;
  1862     esac
  1863   fi
  1864 else
  1865   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1866 echo "$as_me: creating cache $cache_file" >&6;}
  1867   >$cache_file
  1868 fi
  1870 # Check that the precious variables saved in the cache have kept the same
  1871 # value.
  1872 ac_cache_corrupted=false
  1873 for ac_var in $ac_precious_vars; do
  1874   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1875   eval ac_new_set=\$ac_env_${ac_var}_set
  1876   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1877   eval ac_new_val=\$ac_env_${ac_var}_value
  1878   case $ac_old_set,$ac_new_set in
  1879     set,)
  1880       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1882       ac_cache_corrupted=: ;;
  1883     ,set)
  1884       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1886       ac_cache_corrupted=: ;;
  1887     ,);;
  1888     *)
  1889       if test "x$ac_old_val" != "x$ac_new_val"; then
  1890 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1892 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1893 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1894 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1895 echo "$as_me:   current value: $ac_new_val" >&2;}
  1896 	ac_cache_corrupted=:
  1897       fi;;
  1898   esac
  1899   # Pass precious variables to config.status.
  1900   if test "$ac_new_set" = set; then
  1901     case $ac_new_val in
  1902     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1903     *) ac_arg=$ac_var=$ac_new_val ;;
  1904     esac
  1905     case " $ac_configure_args " in
  1906       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1907       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1908     esac
  1909   fi
  1910 done
  1911 if $ac_cache_corrupted; then
  1912   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1914   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1916    { (exit 1); exit 1; }; }
  1917 fi
  1935 ac_ext=c
  1936 ac_cpp='$CPP $CPPFLAGS'
  1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1942 am__api_version="1.9"
  1943 ac_aux_dir=
  1944 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1945   if test -f "$ac_dir/install-sh"; then
  1946     ac_aux_dir=$ac_dir
  1947     ac_install_sh="$ac_aux_dir/install-sh -c"
  1948     break
  1949   elif test -f "$ac_dir/install.sh"; then
  1950     ac_aux_dir=$ac_dir
  1951     ac_install_sh="$ac_aux_dir/install.sh -c"
  1952     break
  1953   elif test -f "$ac_dir/shtool"; then
  1954     ac_aux_dir=$ac_dir
  1955     ac_install_sh="$ac_aux_dir/shtool install -c"
  1956     break
  1957   fi
  1958 done
  1959 if test -z "$ac_aux_dir"; then
  1960   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1961 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1962    { (exit 1); exit 1; }; }
  1963 fi
  1965 # These three variables are undocumented and unsupported,
  1966 # and are intended to be withdrawn in a future Autoconf release.
  1967 # They can cause serious problems if a builder's source tree is in a directory
  1968 # whose full name contains unusual characters.
  1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1971 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1974 # Find a good install program.  We prefer a C program (faster),
  1975 # so one script is as good as another.  But avoid the broken or
  1976 # incompatible versions:
  1977 # SysV /etc/install, /usr/sbin/install
  1978 # SunOS /usr/etc/install
  1979 # IRIX /sbin/install
  1980 # AIX /bin/install
  1981 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1985 # OS/2's system install, which has a completely different semantic
  1986 # ./install, which can be erroneously created by make from ./install.sh.
  1987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1989 if test -z "$INSTALL"; then
  1990 if test "${ac_cv_path_install+set}" = set; then
  1991   echo $ECHO_N "(cached) $ECHO_C" >&6
  1992 else
  1993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1994 for as_dir in $PATH
  1995 do
  1996   IFS=$as_save_IFS
  1997   test -z "$as_dir" && as_dir=.
  1998   # Account for people who put trailing slashes in PATH elements.
  1999 case $as_dir/ in
  2000   ./ | .// | /cC/* | \
  2001   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2002   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2003   /usr/ucb/* ) ;;
  2004   *)
  2005     # OSF1 and SCO ODT 3.0 have their own names for install.
  2006     # Don't use installbsd from OSF since it installs stuff as root
  2007     # by default.
  2008     for ac_prog in ginstall scoinst install; do
  2009       for ac_exec_ext in '' $ac_executable_extensions; do
  2010 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2011 	  if test $ac_prog = install &&
  2012 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2013 	    # AIX install.  It has an incompatible calling convention.
  2015 	  elif test $ac_prog = install &&
  2016 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2017 	    # program-specific install script used by HP pwplus--don't use.
  2019 	  else
  2020 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2021 	    break 3
  2022 	  fi
  2023 	fi
  2024       done
  2025     done
  2026     ;;
  2027 esac
  2028 done
  2029 IFS=$as_save_IFS
  2032 fi
  2033   if test "${ac_cv_path_install+set}" = set; then
  2034     INSTALL=$ac_cv_path_install
  2035   else
  2036     # As a last resort, use the slow shell script.  Don't cache a
  2037     # value for INSTALL within a source directory, because that will
  2038     # break other packages using the cache if that directory is
  2039     # removed, or if the value is a relative name.
  2040     INSTALL=$ac_install_sh
  2041   fi
  2042 fi
  2043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2044 echo "${ECHO_T}$INSTALL" >&6; }
  2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2047 # It thinks the first close brace ends the variable substitution.
  2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2054 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2055 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2056 # Just in case
  2057 sleep 1
  2058 echo timestamp > conftest.file
  2059 # Do `set' in a subshell so we don't clobber the current shell's
  2060 # arguments.  Must try -L first in case configure is actually a
  2061 # symlink; some systems play weird games with the mod time of symlinks
  2062 # (eg FreeBSD returns the mod time of the symlink's containing
  2063 # directory).
  2064 if (
  2065    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2066    if test "$*" = "X"; then
  2067       # -L didn't work.
  2068       set X `ls -t $srcdir/configure conftest.file`
  2069    fi
  2070    rm -f conftest.file
  2071    if test "$*" != "X $srcdir/configure conftest.file" \
  2072       && test "$*" != "X conftest.file $srcdir/configure"; then
  2074       # If neither matched, then we have a broken ls.  This can happen
  2075       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2076       # broken ls alias from the environment.  This has actually
  2077       # happened.  Such a system could not be considered "sane".
  2078       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2079 alias in your environment" >&5
  2080 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2081 alias in your environment" >&2;}
  2082    { (exit 1); exit 1; }; }
  2083    fi
  2085    test "$2" = conftest.file
  2087 then
  2088    # Ok.
  2090 else
  2091    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2092 Check your system clock" >&5
  2093 echo "$as_me: error: newly created file is older than distributed files!
  2094 Check your system clock" >&2;}
  2095    { (exit 1); exit 1; }; }
  2096 fi
  2097 { echo "$as_me:$LINENO: result: yes" >&5
  2098 echo "${ECHO_T}yes" >&6; }
  2099 test "$program_prefix" != NONE &&
  2100   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2101 # Use a double $ so make ignores it.
  2102 test "$program_suffix" != NONE &&
  2103   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2104 # Double any \ or $.  echo might interpret backslashes.
  2105 # By default was `s,x,x', remove it if useless.
  2106 cat <<\_ACEOF >conftest.sed
  2107 s/[\\$]/&&/g;s/;s,x,x,$//
  2108 _ACEOF
  2109 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2110 rm -f conftest.sed
  2112 # expand $ac_aux_dir to an absolute path
  2113 am_aux_dir=`cd $ac_aux_dir && pwd`
  2115 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2116 # Use eval to expand $SHELL
  2117 if eval "$MISSING --run true"; then
  2118   am_missing_run="$MISSING --run "
  2119 else
  2120   am_missing_run=
  2121   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2122 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2123 fi
  2125 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2126   # We used to keeping the `.' as first argument, in order to
  2127   # allow $(mkdir_p) to be used without argument.  As in
  2128   #   $(mkdir_p) $(somedir)
  2129   # where $(somedir) is conditionally defined.  However this is wrong
  2130   # for two reasons:
  2131   #  1. if the package is installed by a user who cannot write `.'
  2132   #     make install will fail,
  2133   #  2. the above comment should most certainly read
  2134   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2135   #     so it does not work when $(somedir) is undefined and
  2136   #     $(DESTDIR) is not.
  2137   #  To support the latter case, we have to write
  2138   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2139   #  so the `.' trick is pointless.
  2140   mkdir_p='mkdir -p --'
  2141 else
  2142   # On NextStep and OpenStep, the `mkdir' command does not
  2143   # recognize any option.  It will interpret all options as
  2144   # directories to create, and then abort because `.' already
  2145   # exists.
  2146   for d in ./-p ./--version;
  2147   do
  2148     test -d $d && rmdir $d
  2149   done
  2150   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2151   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2152     mkdir_p='$(mkinstalldirs)'
  2153   else
  2154     mkdir_p='$(install_sh) -d'
  2155   fi
  2156 fi
  2158 for ac_prog in gawk mawk nawk awk
  2159 do
  2160   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2161 set dummy $ac_prog; ac_word=$2
  2162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2164 if test "${ac_cv_prog_AWK+set}" = set; then
  2165   echo $ECHO_N "(cached) $ECHO_C" >&6
  2166 else
  2167   if test -n "$AWK"; then
  2168   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2169 else
  2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171 for as_dir in $PATH
  2172 do
  2173   IFS=$as_save_IFS
  2174   test -z "$as_dir" && as_dir=.
  2175   for ac_exec_ext in '' $ac_executable_extensions; do
  2176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2177     ac_cv_prog_AWK="$ac_prog"
  2178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2179     break 2
  2180   fi
  2181 done
  2182 done
  2183 IFS=$as_save_IFS
  2185 fi
  2186 fi
  2187 AWK=$ac_cv_prog_AWK
  2188 if test -n "$AWK"; then
  2189   { echo "$as_me:$LINENO: result: $AWK" >&5
  2190 echo "${ECHO_T}$AWK" >&6; }
  2191 else
  2192   { echo "$as_me:$LINENO: result: no" >&5
  2193 echo "${ECHO_T}no" >&6; }
  2194 fi
  2197   test -n "$AWK" && break
  2198 done
  2200 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2201 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2202 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2203 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2204   echo $ECHO_N "(cached) $ECHO_C" >&6
  2205 else
  2206   cat >conftest.make <<\_ACEOF
  2207 SHELL = /bin/sh
  2208 all:
  2209 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2210 _ACEOF
  2211 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2212 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2213   *@@@%%%=?*=@@@%%%*)
  2214     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2215   *)
  2216     eval ac_cv_prog_make_${ac_make}_set=no;;
  2217 esac
  2218 rm -f conftest.make
  2219 fi
  2220 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2221   { echo "$as_me:$LINENO: result: yes" >&5
  2222 echo "${ECHO_T}yes" >&6; }
  2223   SET_MAKE=
  2224 else
  2225   { echo "$as_me:$LINENO: result: no" >&5
  2226 echo "${ECHO_T}no" >&6; }
  2227   SET_MAKE="MAKE=${MAKE-make}"
  2228 fi
  2230 rm -rf .tst 2>/dev/null
  2231 mkdir .tst 2>/dev/null
  2232 if test -d .tst; then
  2233   am__leading_dot=.
  2234 else
  2235   am__leading_dot=_
  2236 fi
  2237 rmdir .tst 2>/dev/null
  2239 # test to see if srcdir already configured
  2240 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2241    test -f $srcdir/config.status; then
  2242   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2243 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2244    { (exit 1); exit 1; }; }
  2245 fi
  2247 # test whether we have cygpath
  2248 if test -z "$CYGPATH_W"; then
  2249   if (cygpath --version) >/dev/null 2>/dev/null; then
  2250     CYGPATH_W='cygpath -w'
  2251   else
  2252     CYGPATH_W=echo
  2253   fi
  2254 fi
  2257 # Define the identity of the package.
  2258  PACKAGE=lxdream
  2259  VERSION=0.9.1
  2262 cat >>confdefs.h <<_ACEOF
  2263 #define PACKAGE "$PACKAGE"
  2264 _ACEOF
  2267 cat >>confdefs.h <<_ACEOF
  2268 #define VERSION "$VERSION"
  2269 _ACEOF
  2271 # Some tools Automake needs.
  2273 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2276 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2279 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2282 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2285 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2287 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2289 # Installed binaries are usually stripped using `strip' when the user
  2290 # run `make install-strip'.  However `strip' might not be the right
  2291 # tool to use in cross-compilation environments, therefore Automake
  2292 # will honor the `STRIP' environment variable to overrule this program.
  2293 if test "$cross_compiling" != no; then
  2294   if test -n "$ac_tool_prefix"; then
  2295   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2296 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2299 if test "${ac_cv_prog_STRIP+set}" = set; then
  2300   echo $ECHO_N "(cached) $ECHO_C" >&6
  2301 else
  2302   if test -n "$STRIP"; then
  2303   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2304 else
  2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2306 for as_dir in $PATH
  2307 do
  2308   IFS=$as_save_IFS
  2309   test -z "$as_dir" && as_dir=.
  2310   for ac_exec_ext in '' $ac_executable_extensions; do
  2311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2312     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2314     break 2
  2315   fi
  2316 done
  2317 done
  2318 IFS=$as_save_IFS
  2320 fi
  2321 fi
  2322 STRIP=$ac_cv_prog_STRIP
  2323 if test -n "$STRIP"; then
  2324   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2325 echo "${ECHO_T}$STRIP" >&6; }
  2326 else
  2327   { echo "$as_me:$LINENO: result: no" >&5
  2328 echo "${ECHO_T}no" >&6; }
  2329 fi
  2332 fi
  2333 if test -z "$ac_cv_prog_STRIP"; then
  2334   ac_ct_STRIP=$STRIP
  2335   # Extract the first word of "strip", so it can be a program name with args.
  2336 set dummy strip; ac_word=$2
  2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2339 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2340   echo $ECHO_N "(cached) $ECHO_C" >&6
  2341 else
  2342   if test -n "$ac_ct_STRIP"; then
  2343   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2344 else
  2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2346 for as_dir in $PATH
  2347 do
  2348   IFS=$as_save_IFS
  2349   test -z "$as_dir" && as_dir=.
  2350   for ac_exec_ext in '' $ac_executable_extensions; do
  2351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2352     ac_cv_prog_ac_ct_STRIP="strip"
  2353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2354     break 2
  2355   fi
  2356 done
  2357 done
  2358 IFS=$as_save_IFS
  2360 fi
  2361 fi
  2362 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2363 if test -n "$ac_ct_STRIP"; then
  2364   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2365 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2366 else
  2367   { echo "$as_me:$LINENO: result: no" >&5
  2368 echo "${ECHO_T}no" >&6; }
  2369 fi
  2371   if test "x$ac_ct_STRIP" = x; then
  2372     STRIP=":"
  2373   else
  2374     case $cross_compiling:$ac_tool_warned in
  2375 yes:)
  2376 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2377 whose name does not start with the host triplet.  If you think this
  2378 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2379 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2380 whose name does not start with the host triplet.  If you think this
  2381 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2382 ac_tool_warned=yes ;;
  2383 esac
  2384     STRIP=$ac_ct_STRIP
  2385   fi
  2386 else
  2387   STRIP="$ac_cv_prog_STRIP"
  2388 fi
  2390 fi
  2391 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2393 # We need awk for the "check" target.  The system "awk" is bad on
  2394 # some platforms.
  2395 # Always define AMTAR for backward compatibility.
  2397 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2399 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2405 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2406 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2407     # Check whether --enable-maintainer-mode was given.
  2408 if test "${enable_maintainer_mode+set}" = set; then
  2409   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2410 else
  2411   USE_MAINTAINER_MODE=no
  2412 fi
  2414   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2415 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2418 if test $USE_MAINTAINER_MODE = yes; then
  2419   MAINTAINER_MODE_TRUE=
  2420   MAINTAINER_MODE_FALSE='#'
  2421 else
  2422   MAINTAINER_MODE_TRUE='#'
  2423   MAINTAINER_MODE_FALSE=
  2424 fi
  2426   MAINT=$MAINTAINER_MODE_TRUE
  2429 ac_config_headers="$ac_config_headers config.h"
  2432 # Make sure we can run config.sub.
  2433 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2434   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2435 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2436    { (exit 1); exit 1; }; }
  2438 { echo "$as_me:$LINENO: checking build system type" >&5
  2439 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2440 if test "${ac_cv_build+set}" = set; then
  2441   echo $ECHO_N "(cached) $ECHO_C" >&6
  2442 else
  2443   ac_build_alias=$build_alias
  2444 test "x$ac_build_alias" = x &&
  2445   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2446 test "x$ac_build_alias" = x &&
  2447   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2448 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2449    { (exit 1); exit 1; }; }
  2450 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2451   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2452 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2453    { (exit 1); exit 1; }; }
  2455 fi
  2456 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2457 echo "${ECHO_T}$ac_cv_build" >&6; }
  2458 case $ac_cv_build in
  2459 *-*-*) ;;
  2460 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2461 echo "$as_me: error: invalid value of canonical build" >&2;}
  2462    { (exit 1); exit 1; }; };;
  2463 esac
  2464 build=$ac_cv_build
  2465 ac_save_IFS=$IFS; IFS='-'
  2466 set x $ac_cv_build
  2467 shift
  2468 build_cpu=$1
  2469 build_vendor=$2
  2470 shift; shift
  2471 # Remember, the first character of IFS is used to create $*,
  2472 # except with old shells:
  2473 build_os=$*
  2474 IFS=$ac_save_IFS
  2475 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2478 { echo "$as_me:$LINENO: checking host system type" >&5
  2479 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2480 if test "${ac_cv_host+set}" = set; then
  2481   echo $ECHO_N "(cached) $ECHO_C" >&6
  2482 else
  2483   if test "x$host_alias" = x; then
  2484   ac_cv_host=$ac_cv_build
  2485 else
  2486   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2487     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2488 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2489    { (exit 1); exit 1; }; }
  2490 fi
  2492 fi
  2493 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2494 echo "${ECHO_T}$ac_cv_host" >&6; }
  2495 case $ac_cv_host in
  2496 *-*-*) ;;
  2497 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2498 echo "$as_me: error: invalid value of canonical host" >&2;}
  2499    { (exit 1); exit 1; }; };;
  2500 esac
  2501 host=$ac_cv_host
  2502 ac_save_IFS=$IFS; IFS='-'
  2503 set x $ac_cv_host
  2504 shift
  2505 host_cpu=$1
  2506 host_vendor=$2
  2507 shift; shift
  2508 # Remember, the first character of IFS is used to create $*,
  2509 # except with old shells:
  2510 host_os=$*
  2511 IFS=$ac_save_IFS
  2512 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2523 # LX_ANDROID_BUILD
  2524 # Defines --with-android, --with-android-ndk, and --with-android-version
  2525 # If specified, checks for a working install, and sets build parameters
  2526 # appropriately for an Android host.
  2532 # Check whether --with-android was given.
  2533 if test "${with_android+set}" = set; then
  2534   withval=$with_android;
  2535 fi
  2538 # Check whether --with-android-ndk was given.
  2539 if test "${with_android_ndk+set}" = set; then
  2540   withval=$with_android_ndk;
  2541 fi
  2544 # Check whether --with-android-version was given.
  2545 if test "${with_android_version+set}" = set; then
  2546   withval=$with_android_version;
  2547 else
  2548   with_android_version="android-11"
  2549 fi
  2552 # Check whether --with-android-ndk-version was given.
  2553 if test "${with_android_ndk_version+set}" = set; then
  2554   withval=$with_android_ndk_version;
  2555 else
  2556   with_ndk_version="android-9"
  2557 fi
  2560    if test "x$with_android" != "x"; then
  2561       if test "$with_android" = "yes"; then
  2562          { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
  2563 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
  2564    { (exit 1); exit 1; }; }
  2565       fi
  2566       if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
  2567          { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
  2568 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
  2569    { (exit 1); exit 1; }; }
  2570       fi
  2572       ANDROID_SDK_HOME="$with_android"
  2573       ANDROID_NDK_HOME="$with_android_ndk"
  2574       ANDROID_SDK_VERSION="$with_android_version"
  2575       ANDROID_NDK_VERSION="$with_ndk_version"
  2577       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
  2578 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
  2579 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
  2580 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2581   echo $ECHO_N "(cached) $ECHO_C" >&6
  2582 else
  2583   test "$cross_compiling" = yes &&
  2584   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2585 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2586    { (exit 1); exit 1; }; }
  2587 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
  2588   eval "$as_ac_File=yes"
  2589 else
  2590   eval "$as_ac_File=no"
  2591 fi
  2592 fi
  2593 ac_res=`eval echo '${'$as_ac_File'}'`
  2594 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2595 echo "${ECHO_T}$ac_res" >&6; }
  2596 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2598 else
  2599    { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
  2600 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
  2601    { (exit 1); exit 1; }; }
  2602 fi
  2604       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
  2605 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
  2606 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
  2607 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2608   echo $ECHO_N "(cached) $ECHO_C" >&6
  2609 else
  2610   test "$cross_compiling" = yes &&
  2611   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2612 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2613    { (exit 1); exit 1; }; }
  2614 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
  2615   eval "$as_ac_File=yes"
  2616 else
  2617   eval "$as_ac_File=no"
  2618 fi
  2619 fi
  2620 ac_res=`eval echo '${'$as_ac_File'}'`
  2621 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2622 echo "${ECHO_T}$ac_res" >&6; }
  2623 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2625 else
  2626    { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
  2627 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
  2628    { (exit 1); exit 1; }; }
  2629 fi
  2631       as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
  2632 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
  2633 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
  2634 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2635   echo $ECHO_N "(cached) $ECHO_C" >&6
  2636 else
  2637   test "$cross_compiling" = yes &&
  2638   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2639 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2640    { (exit 1); exit 1; }; }
  2641 if test -r "$ANDROID_NDK_HOME/toolchains"; then
  2642   eval "$as_ac_File=yes"
  2643 else
  2644   eval "$as_ac_File=no"
  2645 fi
  2646 fi
  2647 ac_res=`eval echo '${'$as_ac_File'}'`
  2648 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2649 echo "${ECHO_T}$ac_res" >&6; }
  2650 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2652 else
  2653    { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
  2654 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
  2655    { (exit 1); exit 1; }; }
  2656 fi
  2659       case $host_alias in
  2660          arm-* | "")
  2661             host_alias="arm-linux-androideabi"
  2662             host_cpu="arm"
  2663             host_vendor="unknown";
  2664             host_os="linux-androideabi"
  2665             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
  2666             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
  2667             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
  2668             TARGETFLAGS="-ffunction-sections -funwind-tables -fstack-protector -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wno-psabi -Wa,--noexecstack"
  2669             TARGETFLAGS="$TARGETFLAGS -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -march=armv5te -mtune=xscale -msoft-float -mthumb -Os"
  2670             ;;
  2671          i686-*)
  2672             host_alias="i686-android-linux"
  2673             host_cpu="i686"
  2674             host_vendor="android"
  2675             host_os="linux"
  2676             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
  2677             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
  2678             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
  2679             TARGETFLAGS=""
  2680             ;;
  2681          *)
  2682             { { echo "$as_me:$LINENO: error: Unsupported android host $host_alias" >&5
  2683 echo "$as_me: error: Unsupported android host $host_alias" >&2;}
  2684    { (exit 1); exit 1; }; }
  2685       	    ;;
  2686       esac
  2688       # Extract the first word of "ant ", so it can be a program name with args.
  2689 set dummy ant ; ac_word=$2
  2690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2692 if test "${ac_cv_path_ANT+set}" = set; then
  2693   echo $ECHO_N "(cached) $ECHO_C" >&6
  2694 else
  2695   case $ANT in
  2696   [\\/]* | ?:[\\/]*)
  2697   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  2698   ;;
  2699   *)
  2700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2701 for as_dir in $PATH
  2702 do
  2703   IFS=$as_save_IFS
  2704   test -z "$as_dir" && as_dir=.
  2705   for ac_exec_ext in '' $ac_executable_extensions; do
  2706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2707     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  2708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2709     break 2
  2710   fi
  2711 done
  2712 done
  2713 IFS=$as_save_IFS
  2715   ;;
  2716 esac
  2717 fi
  2718 ANT=$ac_cv_path_ANT
  2719 if test -n "$ANT"; then
  2720   { echo "$as_me:$LINENO: result: $ANT" >&5
  2721 echo "${ECHO_T}$ANT" >&6; }
  2722 else
  2723   { echo "$as_me:$LINENO: result: no" >&5
  2724 echo "${ECHO_T}no" >&6; }
  2725 fi
  2729       CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
  2730       CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
  2731       CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
  2732       LD="$ANDROID_NDK_BIN/${host_alias}-ld"
  2733       AR="$ANDROID_NDK_BIN/${host_alias}-ar"
  2734       RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
  2735       STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
  2736       OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
  2737       CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
  2738       LDFLAGS="-nostdlib -Wl,--no-undefined -L${ANDROID_SYSROOT}/usr/lib -Wl,-rpath-link,${ANDROID_SYSROOT}/usr/lib -Wl,-allow-shlib-undefined -Wl,-z,noexecstack $LDFLAGS"
  2739       LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
  2747       ANDROID_BUILD=yes
  2748       cross_compiling=yes
  2749    fi
  2753 if test "$ANDROID_BUILD" = "yes"; then
  2754   GUI_ANDROID_TRUE=
  2755   GUI_ANDROID_FALSE='#'
  2756 else
  2757   GUI_ANDROID_TRUE='#'
  2758   GUI_ANDROID_FALSE=
  2759 fi
  2764 DEPDIR="${am__leading_dot}deps"
  2766 ac_config_commands="$ac_config_commands depfiles"
  2769 am_make=${MAKE-make}
  2770 cat > confinc << 'END'
  2771 am__doit:
  2772 	@echo done
  2773 .PHONY: am__doit
  2774 END
  2775 # If we don't find an include directive, just comment out the code.
  2776 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2777 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2778 am__include="#"
  2779 am__quote=
  2780 _am_result=none
  2781 # First try GNU make style include.
  2782 echo "include confinc" > confmf
  2783 # We grep out `Entering directory' and `Leaving directory'
  2784 # messages which can occur if `w' ends up in MAKEFLAGS.
  2785 # In particular we don't look at `^make:' because GNU make might
  2786 # be invoked under some other name (usually "gmake"), in which
  2787 # case it prints its new name instead of `make'.
  2788 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2789    am__include=include
  2790    am__quote=
  2791    _am_result=GNU
  2792 fi
  2793 # Now try BSD make style include.
  2794 if test "$am__include" = "#"; then
  2795    echo '.include "confinc"' > confmf
  2796    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2797       am__include=.include
  2798       am__quote="\""
  2799       _am_result=BSD
  2800    fi
  2801 fi
  2804 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2805 echo "${ECHO_T}$_am_result" >&6; }
  2806 rm -f confinc confmf
  2808 # Check whether --enable-dependency-tracking was given.
  2809 if test "${enable_dependency_tracking+set}" = set; then
  2810   enableval=$enable_dependency_tracking;
  2811 fi
  2813 if test "x$enable_dependency_tracking" != xno; then
  2814   am_depcomp="$ac_aux_dir/depcomp"
  2815   AMDEPBACKSLASH='\'
  2816 fi
  2819 if test "x$enable_dependency_tracking" != xno; then
  2820   AMDEP_TRUE=
  2821   AMDEP_FALSE='#'
  2822 else
  2823   AMDEP_TRUE='#'
  2824   AMDEP_FALSE=
  2825 fi
  2829 ac_ext=c
  2830 ac_cpp='$CPP $CPPFLAGS'
  2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2834 if test -n "$ac_tool_prefix"; then
  2835   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2839 if test "${ac_cv_prog_CC+set}" = set; then
  2840   echo $ECHO_N "(cached) $ECHO_C" >&6
  2841 else
  2842   if test -n "$CC"; then
  2843   ac_cv_prog_CC="$CC" # Let the user override the test.
  2844 else
  2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2846 for as_dir in $PATH
  2847 do
  2848   IFS=$as_save_IFS
  2849   test -z "$as_dir" && as_dir=.
  2850   for ac_exec_ext in '' $ac_executable_extensions; do
  2851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2852     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2854     break 2
  2855   fi
  2856 done
  2857 done
  2858 IFS=$as_save_IFS
  2860 fi
  2861 fi
  2862 CC=$ac_cv_prog_CC
  2863 if test -n "$CC"; then
  2864   { echo "$as_me:$LINENO: result: $CC" >&5
  2865 echo "${ECHO_T}$CC" >&6; }
  2866 else
  2867   { echo "$as_me:$LINENO: result: no" >&5
  2868 echo "${ECHO_T}no" >&6; }
  2869 fi
  2872 fi
  2873 if test -z "$ac_cv_prog_CC"; then
  2874   ac_ct_CC=$CC
  2875   # Extract the first word of "gcc", so it can be a program name with args.
  2876 set dummy gcc; ac_word=$2
  2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2880   echo $ECHO_N "(cached) $ECHO_C" >&6
  2881 else
  2882   if test -n "$ac_ct_CC"; then
  2883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2884 else
  2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2886 for as_dir in $PATH
  2887 do
  2888   IFS=$as_save_IFS
  2889   test -z "$as_dir" && as_dir=.
  2890   for ac_exec_ext in '' $ac_executable_extensions; do
  2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2892     ac_cv_prog_ac_ct_CC="gcc"
  2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2894     break 2
  2895   fi
  2896 done
  2897 done
  2898 IFS=$as_save_IFS
  2900 fi
  2901 fi
  2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2903 if test -n "$ac_ct_CC"; then
  2904   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2905 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2906 else
  2907   { echo "$as_me:$LINENO: result: no" >&5
  2908 echo "${ECHO_T}no" >&6; }
  2909 fi
  2911   if test "x$ac_ct_CC" = x; then
  2912     CC=""
  2913   else
  2914     case $cross_compiling:$ac_tool_warned in
  2915 yes:)
  2916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2917 whose name does not start with the host triplet.  If you think this
  2918 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2920 whose name does not start with the host triplet.  If you think this
  2921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2922 ac_tool_warned=yes ;;
  2923 esac
  2924     CC=$ac_ct_CC
  2925   fi
  2926 else
  2927   CC="$ac_cv_prog_CC"
  2928 fi
  2930 if test -z "$CC"; then
  2931           if test -n "$ac_tool_prefix"; then
  2932     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2936 if test "${ac_cv_prog_CC+set}" = set; then
  2937   echo $ECHO_N "(cached) $ECHO_C" >&6
  2938 else
  2939   if test -n "$CC"; then
  2940   ac_cv_prog_CC="$CC" # Let the user override the test.
  2941 else
  2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2943 for as_dir in $PATH
  2944 do
  2945   IFS=$as_save_IFS
  2946   test -z "$as_dir" && as_dir=.
  2947   for ac_exec_ext in '' $ac_executable_extensions; do
  2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2949     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2951     break 2
  2952   fi
  2953 done
  2954 done
  2955 IFS=$as_save_IFS
  2957 fi
  2958 fi
  2959 CC=$ac_cv_prog_CC
  2960 if test -n "$CC"; then
  2961   { echo "$as_me:$LINENO: result: $CC" >&5
  2962 echo "${ECHO_T}$CC" >&6; }
  2963 else
  2964   { echo "$as_me:$LINENO: result: no" >&5
  2965 echo "${ECHO_T}no" >&6; }
  2966 fi
  2969   fi
  2970 fi
  2971 if test -z "$CC"; then
  2972   # Extract the first word of "cc", so it can be a program name with args.
  2973 set dummy cc; ac_word=$2
  2974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2976 if test "${ac_cv_prog_CC+set}" = set; then
  2977   echo $ECHO_N "(cached) $ECHO_C" >&6
  2978 else
  2979   if test -n "$CC"; then
  2980   ac_cv_prog_CC="$CC" # Let the user override the test.
  2981 else
  2982   ac_prog_rejected=no
  2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984 for as_dir in $PATH
  2985 do
  2986   IFS=$as_save_IFS
  2987   test -z "$as_dir" && as_dir=.
  2988   for ac_exec_ext in '' $ac_executable_extensions; do
  2989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2991        ac_prog_rejected=yes
  2992        continue
  2993      fi
  2994     ac_cv_prog_CC="cc"
  2995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2996     break 2
  2997   fi
  2998 done
  2999 done
  3000 IFS=$as_save_IFS
  3002 if test $ac_prog_rejected = yes; then
  3003   # We found a bogon in the path, so make sure we never use it.
  3004   set dummy $ac_cv_prog_CC
  3005   shift
  3006   if test $# != 0; then
  3007     # We chose a different compiler from the bogus one.
  3008     # However, it has the same basename, so the bogon will be chosen
  3009     # first if we set CC to just the basename; use the full file name.
  3010     shift
  3011     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3012   fi
  3013 fi
  3014 fi
  3015 fi
  3016 CC=$ac_cv_prog_CC
  3017 if test -n "$CC"; then
  3018   { echo "$as_me:$LINENO: result: $CC" >&5
  3019 echo "${ECHO_T}$CC" >&6; }
  3020 else
  3021   { echo "$as_me:$LINENO: result: no" >&5
  3022 echo "${ECHO_T}no" >&6; }
  3023 fi
  3026 fi
  3027 if test -z "$CC"; then
  3028   if test -n "$ac_tool_prefix"; then
  3029   for ac_prog in cl.exe
  3030   do
  3031     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3035 if test "${ac_cv_prog_CC+set}" = set; then
  3036   echo $ECHO_N "(cached) $ECHO_C" >&6
  3037 else
  3038   if test -n "$CC"; then
  3039   ac_cv_prog_CC="$CC" # Let the user override the test.
  3040 else
  3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3042 for as_dir in $PATH
  3043 do
  3044   IFS=$as_save_IFS
  3045   test -z "$as_dir" && as_dir=.
  3046   for ac_exec_ext in '' $ac_executable_extensions; do
  3047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3048     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3050     break 2
  3051   fi
  3052 done
  3053 done
  3054 IFS=$as_save_IFS
  3056 fi
  3057 fi
  3058 CC=$ac_cv_prog_CC
  3059 if test -n "$CC"; then
  3060   { echo "$as_me:$LINENO: result: $CC" >&5
  3061 echo "${ECHO_T}$CC" >&6; }
  3062 else
  3063   { echo "$as_me:$LINENO: result: no" >&5
  3064 echo "${ECHO_T}no" >&6; }
  3065 fi
  3068     test -n "$CC" && break
  3069   done
  3070 fi
  3071 if test -z "$CC"; then
  3072   ac_ct_CC=$CC
  3073   for ac_prog in cl.exe
  3074 do
  3075   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3076 set dummy $ac_prog; ac_word=$2
  3077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3080   echo $ECHO_N "(cached) $ECHO_C" >&6
  3081 else
  3082   if test -n "$ac_ct_CC"; then
  3083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3084 else
  3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3086 for as_dir in $PATH
  3087 do
  3088   IFS=$as_save_IFS
  3089   test -z "$as_dir" && as_dir=.
  3090   for ac_exec_ext in '' $ac_executable_extensions; do
  3091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3092     ac_cv_prog_ac_ct_CC="$ac_prog"
  3093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3094     break 2
  3095   fi
  3096 done
  3097 done
  3098 IFS=$as_save_IFS
  3100 fi
  3101 fi
  3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3103 if test -n "$ac_ct_CC"; then
  3104   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3105 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3106 else
  3107   { echo "$as_me:$LINENO: result: no" >&5
  3108 echo "${ECHO_T}no" >&6; }
  3109 fi
  3112   test -n "$ac_ct_CC" && break
  3113 done
  3115   if test "x$ac_ct_CC" = x; then
  3116     CC=""
  3117   else
  3118     case $cross_compiling:$ac_tool_warned in
  3119 yes:)
  3120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3121 whose name does not start with the host triplet.  If you think this
  3122 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3124 whose name does not start with the host triplet.  If you think this
  3125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3126 ac_tool_warned=yes ;;
  3127 esac
  3128     CC=$ac_ct_CC
  3129   fi
  3130 fi
  3132 fi
  3135 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3136 See \`config.log' for more details." >&5
  3137 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3138 See \`config.log' for more details." >&2;}
  3139    { (exit 1); exit 1; }; }
  3141 # Provide some information about the compiler.
  3142 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3143 ac_compiler=`set X $ac_compile; echo $2`
  3144 { (ac_try="$ac_compiler --version >&5"
  3145 case "(($ac_try" in
  3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3147   *) ac_try_echo=$ac_try;;
  3148 esac
  3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3150   (eval "$ac_compiler --version >&5") 2>&5
  3151   ac_status=$?
  3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3153   (exit $ac_status); }
  3154 { (ac_try="$ac_compiler -v >&5"
  3155 case "(($ac_try" in
  3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3157   *) ac_try_echo=$ac_try;;
  3158 esac
  3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3160   (eval "$ac_compiler -v >&5") 2>&5
  3161   ac_status=$?
  3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3163   (exit $ac_status); }
  3164 { (ac_try="$ac_compiler -V >&5"
  3165 case "(($ac_try" in
  3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3167   *) ac_try_echo=$ac_try;;
  3168 esac
  3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3170   (eval "$ac_compiler -V >&5") 2>&5
  3171   ac_status=$?
  3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3173   (exit $ac_status); }
  3175 cat >conftest.$ac_ext <<_ACEOF
  3176 /* confdefs.h.  */
  3177 _ACEOF
  3178 cat confdefs.h >>conftest.$ac_ext
  3179 cat >>conftest.$ac_ext <<_ACEOF
  3180 /* end confdefs.h.  */
  3182 int
  3183 main ()
  3187   return 0;
  3189 _ACEOF
  3190 ac_clean_files_save=$ac_clean_files
  3191 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  3192 # Try to create an executable without -o first, disregard a.out.
  3193 # It will help us diagnose broken compilers, and finding out an intuition
  3194 # of exeext.
  3195 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  3196 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  3197 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3199 # List of possible output files, starting from the most likely.
  3200 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  3201 # only as a last resort.  b.out is created by i960 compilers.
  3202 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  3204 # The IRIX 6 linker writes into existing files which may not be
  3205 # executable, retaining their permissions.  Remove them first so a
  3206 # subsequent execution test works.
  3207 ac_rmfiles=
  3208 for ac_file in $ac_files
  3209 do
  3210   case $ac_file in
  3211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3212     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3213   esac
  3214 done
  3215 rm -f $ac_rmfiles
  3217 if { (ac_try="$ac_link_default"
  3218 case "(($ac_try" in
  3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3220   *) ac_try_echo=$ac_try;;
  3221 esac
  3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3223   (eval "$ac_link_default") 2>&5
  3224   ac_status=$?
  3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3226   (exit $ac_status); }; then
  3227   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3228 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3229 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3230 # so that the user can short-circuit this test for compilers unknown to
  3231 # Autoconf.
  3232 for ac_file in $ac_files ''
  3233 do
  3234   test -f "$ac_file" || continue
  3235   case $ac_file in
  3236     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  3237 	;;
  3238     [ab].out )
  3239 	# We found the default executable, but exeext='' is most
  3240 	# certainly right.
  3241 	break;;
  3242     *.* )
  3243         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3244 	then :; else
  3245 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3246 	fi
  3247 	# We set ac_cv_exeext here because the later test for it is not
  3248 	# safe: cross compilers may not add the suffix if given an `-o'
  3249 	# argument, so we may need to know it at that point already.
  3250 	# Even if this section looks crufty: it has the advantage of
  3251 	# actually working.
  3252 	break;;
  3253     * )
  3254 	break;;
  3255   esac
  3256 done
  3257 test "$ac_cv_exeext" = no && ac_cv_exeext=
  3259 else
  3260   ac_file=''
  3261 fi
  3263 { echo "$as_me:$LINENO: result: $ac_file" >&5
  3264 echo "${ECHO_T}$ac_file" >&6; }
  3265 if test -z "$ac_file"; then
  3266   echo "$as_me: failed program was:" >&5
  3267 sed 's/^/| /' conftest.$ac_ext >&5
  3269 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  3270 See \`config.log' for more details." >&5
  3271 echo "$as_me: error: C compiler cannot create executables
  3272 See \`config.log' for more details." >&2;}
  3273    { (exit 77); exit 77; }; }
  3274 fi
  3276 ac_exeext=$ac_cv_exeext
  3278 # Check that the compiler produces executables we can run.  If not, either
  3279 # the compiler is broken, or we cross compile.
  3280 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3281 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  3282 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3283 # If not cross compiling, check that we can run a simple program.
  3284 if test "$cross_compiling" != yes; then
  3285   if { ac_try='./$ac_file'
  3286   { (case "(($ac_try" in
  3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3288   *) ac_try_echo=$ac_try;;
  3289 esac
  3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3291   (eval "$ac_try") 2>&5
  3292   ac_status=$?
  3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3294   (exit $ac_status); }; }; then
  3295     cross_compiling=no
  3296   else
  3297     if test "$cross_compiling" = maybe; then
  3298 	cross_compiling=yes
  3299     else
  3300 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3301 If you meant to cross compile, use \`--host'.
  3302 See \`config.log' for more details." >&5
  3303 echo "$as_me: error: cannot run C compiled programs.
  3304 If you meant to cross compile, use \`--host'.
  3305 See \`config.log' for more details." >&2;}
  3306    { (exit 1); exit 1; }; }
  3307     fi
  3308   fi
  3309 fi
  3310 { echo "$as_me:$LINENO: result: yes" >&5
  3311 echo "${ECHO_T}yes" >&6; }
  3313 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  3314 ac_clean_files=$ac_clean_files_save
  3315 # Check that the compiler produces executables we can run.  If not, either
  3316 # the compiler is broken, or we cross compile.
  3317 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3318 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3319 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3320 echo "${ECHO_T}$cross_compiling" >&6; }
  3322 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3323 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3324 if { (ac_try="$ac_link"
  3325 case "(($ac_try" in
  3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3327   *) ac_try_echo=$ac_try;;
  3328 esac
  3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3330   (eval "$ac_link") 2>&5
  3331   ac_status=$?
  3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3333   (exit $ac_status); }; then
  3334   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3335 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3336 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3337 # `rm'.
  3338 for ac_file in conftest.exe conftest conftest.*; do
  3339   test -f "$ac_file" || continue
  3340   case $ac_file in
  3341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3342     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3343 	  break;;
  3344     * ) break;;
  3345   esac
  3346 done
  3347 else
  3348   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3349 See \`config.log' for more details." >&5
  3350 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3351 See \`config.log' for more details." >&2;}
  3352    { (exit 1); exit 1; }; }
  3353 fi
  3355 rm -f conftest$ac_cv_exeext
  3356 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3357 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3359 rm -f conftest.$ac_ext
  3360 EXEEXT=$ac_cv_exeext
  3361 ac_exeext=$EXEEXT
  3362 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3363 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3364 if test "${ac_cv_objext+set}" = set; then
  3365   echo $ECHO_N "(cached) $ECHO_C" >&6
  3366 else
  3367   cat >conftest.$ac_ext <<_ACEOF
  3368 /* confdefs.h.  */
  3369 _ACEOF
  3370 cat confdefs.h >>conftest.$ac_ext
  3371 cat >>conftest.$ac_ext <<_ACEOF
  3372 /* end confdefs.h.  */
  3374 int
  3375 main ()
  3379   return 0;
  3381 _ACEOF
  3382 rm -f conftest.o conftest.obj
  3383 if { (ac_try="$ac_compile"
  3384 case "(($ac_try" in
  3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3386   *) ac_try_echo=$ac_try;;
  3387 esac
  3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3389   (eval "$ac_compile") 2>&5
  3390   ac_status=$?
  3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392   (exit $ac_status); }; then
  3393   for ac_file in conftest.o conftest.obj conftest.*; do
  3394   test -f "$ac_file" || continue;
  3395   case $ac_file in
  3396     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3397     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3398        break;;
  3399   esac
  3400 done
  3401 else
  3402   echo "$as_me: failed program was:" >&5
  3403 sed 's/^/| /' conftest.$ac_ext >&5
  3405 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3406 See \`config.log' for more details." >&5
  3407 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3408 See \`config.log' for more details." >&2;}
  3409    { (exit 1); exit 1; }; }
  3410 fi
  3412 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3413 fi
  3414 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3415 echo "${ECHO_T}$ac_cv_objext" >&6; }
  3416 OBJEXT=$ac_cv_objext
  3417 ac_objext=$OBJEXT
  3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3419 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3420 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3421   echo $ECHO_N "(cached) $ECHO_C" >&6
  3422 else
  3423   cat >conftest.$ac_ext <<_ACEOF
  3424 /* confdefs.h.  */
  3425 _ACEOF
  3426 cat confdefs.h >>conftest.$ac_ext
  3427 cat >>conftest.$ac_ext <<_ACEOF
  3428 /* end confdefs.h.  */
  3430 int
  3431 main ()
  3433 #ifndef __GNUC__
  3434        choke me
  3435 #endif
  3438   return 0;
  3440 _ACEOF
  3441 rm -f conftest.$ac_objext
  3442 if { (ac_try="$ac_compile"
  3443 case "(($ac_try" in
  3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3445   *) ac_try_echo=$ac_try;;
  3446 esac
  3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3448   (eval "$ac_compile") 2>conftest.er1
  3449   ac_status=$?
  3450   grep -v '^ *+' conftest.er1 >conftest.err
  3451   rm -f conftest.er1
  3452   cat conftest.err >&5
  3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3454   (exit $ac_status); } && {
  3455 	 test -z "$ac_c_werror_flag" ||
  3456 	 test ! -s conftest.err
  3457        } && test -s conftest.$ac_objext; then
  3458   ac_compiler_gnu=yes
  3459 else
  3460   echo "$as_me: failed program was:" >&5
  3461 sed 's/^/| /' conftest.$ac_ext >&5
  3463 	ac_compiler_gnu=no
  3464 fi
  3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3469 fi
  3470 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3471 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3472 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3473 ac_test_CFLAGS=${CFLAGS+set}
  3474 ac_save_CFLAGS=$CFLAGS
  3475 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3476 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3477 if test "${ac_cv_prog_cc_g+set}" = set; then
  3478   echo $ECHO_N "(cached) $ECHO_C" >&6
  3479 else
  3480   ac_save_c_werror_flag=$ac_c_werror_flag
  3481    ac_c_werror_flag=yes
  3482    ac_cv_prog_cc_g=no
  3483    CFLAGS="-g"
  3484    cat >conftest.$ac_ext <<_ACEOF
  3485 /* confdefs.h.  */
  3486 _ACEOF
  3487 cat confdefs.h >>conftest.$ac_ext
  3488 cat >>conftest.$ac_ext <<_ACEOF
  3489 /* end confdefs.h.  */
  3491 int
  3492 main ()
  3496   return 0;
  3498 _ACEOF
  3499 rm -f conftest.$ac_objext
  3500 if { (ac_try="$ac_compile"
  3501 case "(($ac_try" in
  3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3503   *) ac_try_echo=$ac_try;;
  3504 esac
  3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3506   (eval "$ac_compile") 2>conftest.er1
  3507   ac_status=$?
  3508   grep -v '^ *+' conftest.er1 >conftest.err
  3509   rm -f conftest.er1
  3510   cat conftest.err >&5
  3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3512   (exit $ac_status); } && {
  3513 	 test -z "$ac_c_werror_flag" ||
  3514 	 test ! -s conftest.err
  3515        } && test -s conftest.$ac_objext; then
  3516   ac_cv_prog_cc_g=yes
  3517 else
  3518   echo "$as_me: failed program was:" >&5
  3519 sed 's/^/| /' conftest.$ac_ext >&5
  3521 	CFLAGS=""
  3522       cat >conftest.$ac_ext <<_ACEOF
  3523 /* confdefs.h.  */
  3524 _ACEOF
  3525 cat confdefs.h >>conftest.$ac_ext
  3526 cat >>conftest.$ac_ext <<_ACEOF
  3527 /* end confdefs.h.  */
  3529 int
  3530 main ()
  3534   return 0;
  3536 _ACEOF
  3537 rm -f conftest.$ac_objext
  3538 if { (ac_try="$ac_compile"
  3539 case "(($ac_try" in
  3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3541   *) ac_try_echo=$ac_try;;
  3542 esac
  3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3544   (eval "$ac_compile") 2>conftest.er1
  3545   ac_status=$?
  3546   grep -v '^ *+' conftest.er1 >conftest.err
  3547   rm -f conftest.er1
  3548   cat conftest.err >&5
  3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3550   (exit $ac_status); } && {
  3551 	 test -z "$ac_c_werror_flag" ||
  3552 	 test ! -s conftest.err
  3553        } && test -s conftest.$ac_objext; then
  3555 else
  3556   echo "$as_me: failed program was:" >&5
  3557 sed 's/^/| /' conftest.$ac_ext >&5
  3559 	ac_c_werror_flag=$ac_save_c_werror_flag
  3560 	 CFLAGS="-g"
  3561 	 cat >conftest.$ac_ext <<_ACEOF
  3562 /* confdefs.h.  */
  3563 _ACEOF
  3564 cat confdefs.h >>conftest.$ac_ext
  3565 cat >>conftest.$ac_ext <<_ACEOF
  3566 /* end confdefs.h.  */
  3568 int
  3569 main ()
  3573   return 0;
  3575 _ACEOF
  3576 rm -f conftest.$ac_objext
  3577 if { (ac_try="$ac_compile"
  3578 case "(($ac_try" in
  3579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3580   *) ac_try_echo=$ac_try;;
  3581 esac
  3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3583   (eval "$ac_compile") 2>conftest.er1
  3584   ac_status=$?
  3585   grep -v '^ *+' conftest.er1 >conftest.err
  3586   rm -f conftest.er1
  3587   cat conftest.err >&5
  3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3589   (exit $ac_status); } && {
  3590 	 test -z "$ac_c_werror_flag" ||
  3591 	 test ! -s conftest.err
  3592        } && test -s conftest.$ac_objext; then
  3593   ac_cv_prog_cc_g=yes
  3594 else
  3595   echo "$as_me: failed program was:" >&5
  3596 sed 's/^/| /' conftest.$ac_ext >&5
  3599 fi
  3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3602 fi
  3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3605 fi
  3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3608    ac_c_werror_flag=$ac_save_c_werror_flag
  3609 fi
  3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3611 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3612 if test "$ac_test_CFLAGS" = set; then
  3613   CFLAGS=$ac_save_CFLAGS
  3614 elif test $ac_cv_prog_cc_g = yes; then
  3615   if test "$GCC" = yes; then
  3616     CFLAGS="-g -O2"
  3617   else
  3618     CFLAGS="-g"
  3619   fi
  3620 else
  3621   if test "$GCC" = yes; then
  3622     CFLAGS="-O2"
  3623   else
  3624     CFLAGS=
  3625   fi
  3626 fi
  3627 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3628 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3629 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3630   echo $ECHO_N "(cached) $ECHO_C" >&6
  3631 else
  3632   ac_cv_prog_cc_c89=no
  3633 ac_save_CC=$CC
  3634 cat >conftest.$ac_ext <<_ACEOF
  3635 /* confdefs.h.  */
  3636 _ACEOF
  3637 cat confdefs.h >>conftest.$ac_ext
  3638 cat >>conftest.$ac_ext <<_ACEOF
  3639 /* end confdefs.h.  */
  3640 #include <stdarg.h>
  3641 #include <stdio.h>
  3642 #include <sys/types.h>
  3643 #include <sys/stat.h>
  3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3645 struct buf { int x; };
  3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3647 static char *e (p, i)
  3648      char **p;
  3649      int i;
  3651   return p[i];
  3653 static char *f (char * (*g) (char **, int), char **p, ...)
  3655   char *s;
  3656   va_list v;
  3657   va_start (v,p);
  3658   s = g (p, va_arg (v,int));
  3659   va_end (v);
  3660   return s;
  3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3664    function prototypes and stuff, but not '\xHH' hex character constants.
  3665    These don't provoke an error unfortunately, instead are silently treated
  3666    as 'x'.  The following induces an error, until -std is added to get
  3667    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3668    array size at least.  It's necessary to write '\x00'==0 to get something
  3669    that's true only with -std.  */
  3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3673    inside strings and character constants.  */
  3674 #define FOO(x) 'x'
  3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3677 int test (int i, double x);
  3678 struct s1 {int (*f) (int a);};
  3679 struct s2 {int (*f) (double a);};
  3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3681 int argc;
  3682 char **argv;
  3683 int
  3684 main ()
  3686 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3688   return 0;
  3690 _ACEOF
  3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3692 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3693 do
  3694   CC="$ac_save_CC $ac_arg"
  3695   rm -f conftest.$ac_objext
  3696 if { (ac_try="$ac_compile"
  3697 case "(($ac_try" in
  3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3699   *) ac_try_echo=$ac_try;;
  3700 esac
  3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3702   (eval "$ac_compile") 2>conftest.er1
  3703   ac_status=$?
  3704   grep -v '^ *+' conftest.er1 >conftest.err
  3705   rm -f conftest.er1
  3706   cat conftest.err >&5
  3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3708   (exit $ac_status); } && {
  3709 	 test -z "$ac_c_werror_flag" ||
  3710 	 test ! -s conftest.err
  3711        } && test -s conftest.$ac_objext; then
  3712   ac_cv_prog_cc_c89=$ac_arg
  3713 else
  3714   echo "$as_me: failed program was:" >&5
  3715 sed 's/^/| /' conftest.$ac_ext >&5
  3718 fi
  3720 rm -f core conftest.err conftest.$ac_objext
  3721   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3722 done
  3723 rm -f conftest.$ac_ext
  3724 CC=$ac_save_CC
  3726 fi
  3727 # AC_CACHE_VAL
  3728 case "x$ac_cv_prog_cc_c89" in
  3729   x)
  3730     { echo "$as_me:$LINENO: result: none needed" >&5
  3731 echo "${ECHO_T}none needed" >&6; } ;;
  3732   xno)
  3733     { echo "$as_me:$LINENO: result: unsupported" >&5
  3734 echo "${ECHO_T}unsupported" >&6; } ;;
  3735   *)
  3736     CC="$CC $ac_cv_prog_cc_c89"
  3737     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3738 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3739 esac
  3742 ac_ext=c
  3743 ac_cpp='$CPP $CPPFLAGS'
  3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3748 depcc="$CC"   am_compiler_list=
  3750 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3751 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3752 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3753   echo $ECHO_N "(cached) $ECHO_C" >&6
  3754 else
  3755   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3756   # We make a subdir and do the tests there.  Otherwise we can end up
  3757   # making bogus files that we don't know about and never remove.  For
  3758   # instance it was reported that on HP-UX the gcc test will end up
  3759   # making a dummy file named `D' -- because `-MD' means `put the output
  3760   # in D'.
  3761   mkdir conftest.dir
  3762   # Copy depcomp to subdir because otherwise we won't find it if we're
  3763   # using a relative directory.
  3764   cp "$am_depcomp" conftest.dir
  3765   cd conftest.dir
  3766   # We will build objects and dependencies in a subdirectory because
  3767   # it helps to detect inapplicable dependency modes.  For instance
  3768   # both Tru64's cc and ICC support -MD to output dependencies as a
  3769   # side effect of compilation, but ICC will put the dependencies in
  3770   # the current directory while Tru64 will put them in the object
  3771   # directory.
  3772   mkdir sub
  3774   am_cv_CC_dependencies_compiler_type=none
  3775   if test "$am_compiler_list" = ""; then
  3776      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3777   fi
  3778   for depmode in $am_compiler_list; do
  3779     # Setup a source with many dependencies, because some compilers
  3780     # like to wrap large dependency lists on column 80 (with \), and
  3781     # we should not choose a depcomp mode which is confused by this.
  3783     # We need to recreate these files for each test, as the compiler may
  3784     # overwrite some of them when testing with obscure command lines.
  3785     # This happens at least with the AIX C compiler.
  3786     : > sub/conftest.c
  3787     for i in 1 2 3 4 5 6; do
  3788       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3789       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3790       # Solaris 8's {/usr,}/bin/sh.
  3791       touch sub/conftst$i.h
  3792     done
  3793     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3795     case $depmode in
  3796     nosideeffect)
  3797       # after this tag, mechanisms are not by side-effect, so they'll
  3798       # only be used when explicitly requested
  3799       if test "x$enable_dependency_tracking" = xyes; then
  3800 	continue
  3801       else
  3802 	break
  3803       fi
  3804       ;;
  3805     none) break ;;
  3806     esac
  3807     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3808     # mode.  It turns out that the SunPro C++ compiler does not properly
  3809     # handle `-M -o', and we need to detect this.
  3810     if depmode=$depmode \
  3811        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3812        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3813        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3814          >/dev/null 2>conftest.err &&
  3815        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3816        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3817        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3818       # icc doesn't choke on unknown options, it will just issue warnings
  3819       # or remarks (even with -Werror).  So we grep stderr for any message
  3820       # that says an option was ignored or not supported.
  3821       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3822       #   icc: Command line warning: ignoring option '-M'; no argument required
  3823       # The diagnosis changed in icc 8.0:
  3824       #   icc: Command line remark: option '-MP' not supported
  3825       if (grep 'ignoring option' conftest.err ||
  3826           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3827         am_cv_CC_dependencies_compiler_type=$depmode
  3828         break
  3829       fi
  3830     fi
  3831   done
  3833   cd ..
  3834   rm -rf conftest.dir
  3835 else
  3836   am_cv_CC_dependencies_compiler_type=none
  3837 fi
  3839 fi
  3840 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3841 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3842 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3846 if
  3847   test "x$enable_dependency_tracking" != xno \
  3848   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3849   am__fastdepCC_TRUE=
  3850   am__fastdepCC_FALSE='#'
  3851 else
  3852   am__fastdepCC_TRUE='#'
  3853   am__fastdepCC_FALSE=
  3854 fi
  3859         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3860 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  3861 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3862   echo $ECHO_N "(cached) $ECHO_C" >&6
  3863 else
  3864   ac_check_lib_save_LIBS=$LIBS
  3865 LIBS="-lcposix  $LIBS"
  3866 cat >conftest.$ac_ext <<_ACEOF
  3867 /* confdefs.h.  */
  3868 _ACEOF
  3869 cat confdefs.h >>conftest.$ac_ext
  3870 cat >>conftest.$ac_ext <<_ACEOF
  3871 /* end confdefs.h.  */
  3873 /* Override any GCC internal prototype to avoid an error.
  3874    Use char because int might match the return type of a GCC
  3875    builtin and then its argument prototype would still apply.  */
  3876 #ifdef __cplusplus
  3877 extern "C"
  3878 #endif
  3879 char strerror ();
  3880 int
  3881 main ()
  3883 return strerror ();
  3885   return 0;
  3887 _ACEOF
  3888 rm -f conftest.$ac_objext conftest$ac_exeext
  3889 if { (ac_try="$ac_link"
  3890 case "(($ac_try" in
  3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3892   *) ac_try_echo=$ac_try;;
  3893 esac
  3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3895   (eval "$ac_link") 2>conftest.er1
  3896   ac_status=$?
  3897   grep -v '^ *+' conftest.er1 >conftest.err
  3898   rm -f conftest.er1
  3899   cat conftest.err >&5
  3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3901   (exit $ac_status); } && {
  3902 	 test -z "$ac_c_werror_flag" ||
  3903 	 test ! -s conftest.err
  3904        } && test -s conftest$ac_exeext &&
  3905        $as_test_x conftest$ac_exeext; then
  3906   ac_cv_lib_cposix_strerror=yes
  3907 else
  3908   echo "$as_me: failed program was:" >&5
  3909 sed 's/^/| /' conftest.$ac_ext >&5
  3911 	ac_cv_lib_cposix_strerror=no
  3912 fi
  3914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3915       conftest$ac_exeext conftest.$ac_ext
  3916 LIBS=$ac_check_lib_save_LIBS
  3917 fi
  3918 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3919 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  3920 if test $ac_cv_lib_cposix_strerror = yes; then
  3921   LIBS="$LIBS -lcposix"
  3922 fi
  3926 ac_ext=c
  3927 ac_cpp='$CPP $CPPFLAGS'
  3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3931 if test -n "$ac_tool_prefix"; then
  3932   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3933 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3936 if test "${ac_cv_prog_CC+set}" = set; then
  3937   echo $ECHO_N "(cached) $ECHO_C" >&6
  3938 else
  3939   if test -n "$CC"; then
  3940   ac_cv_prog_CC="$CC" # Let the user override the test.
  3941 else
  3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3943 for as_dir in $PATH
  3944 do
  3945   IFS=$as_save_IFS
  3946   test -z "$as_dir" && as_dir=.
  3947   for ac_exec_ext in '' $ac_executable_extensions; do
  3948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3949     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3951     break 2
  3952   fi
  3953 done
  3954 done
  3955 IFS=$as_save_IFS
  3957 fi
  3958 fi
  3959 CC=$ac_cv_prog_CC
  3960 if test -n "$CC"; then
  3961   { echo "$as_me:$LINENO: result: $CC" >&5
  3962 echo "${ECHO_T}$CC" >&6; }
  3963 else
  3964   { echo "$as_me:$LINENO: result: no" >&5
  3965 echo "${ECHO_T}no" >&6; }
  3966 fi
  3969 fi
  3970 if test -z "$ac_cv_prog_CC"; then
  3971   ac_ct_CC=$CC
  3972   # Extract the first word of "gcc", so it can be a program name with args.
  3973 set dummy gcc; ac_word=$2
  3974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3977   echo $ECHO_N "(cached) $ECHO_C" >&6
  3978 else
  3979   if test -n "$ac_ct_CC"; then
  3980   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3981 else
  3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3983 for as_dir in $PATH
  3984 do
  3985   IFS=$as_save_IFS
  3986   test -z "$as_dir" && as_dir=.
  3987   for ac_exec_ext in '' $ac_executable_extensions; do
  3988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3989     ac_cv_prog_ac_ct_CC="gcc"
  3990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3991     break 2
  3992   fi
  3993 done
  3994 done
  3995 IFS=$as_save_IFS
  3997 fi
  3998 fi
  3999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4000 if test -n "$ac_ct_CC"; then
  4001   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4002 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4003 else
  4004   { echo "$as_me:$LINENO: result: no" >&5
  4005 echo "${ECHO_T}no" >&6; }
  4006 fi
  4008   if test "x$ac_ct_CC" = x; then
  4009     CC=""
  4010   else
  4011     case $cross_compiling:$ac_tool_warned in
  4012 yes:)
  4013 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4014 whose name does not start with the host triplet.  If you think this
  4015 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4016 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4017 whose name does not start with the host triplet.  If you think this
  4018 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4019 ac_tool_warned=yes ;;
  4020 esac
  4021     CC=$ac_ct_CC
  4022   fi
  4023 else
  4024   CC="$ac_cv_prog_CC"
  4025 fi
  4027 if test -z "$CC"; then
  4028           if test -n "$ac_tool_prefix"; then
  4029     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4030 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4033 if test "${ac_cv_prog_CC+set}" = set; then
  4034   echo $ECHO_N "(cached) $ECHO_C" >&6
  4035 else
  4036   if test -n "$CC"; then
  4037   ac_cv_prog_CC="$CC" # Let the user override the test.
  4038 else
  4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4040 for as_dir in $PATH
  4041 do
  4042   IFS=$as_save_IFS
  4043   test -z "$as_dir" && as_dir=.
  4044   for ac_exec_ext in '' $ac_executable_extensions; do
  4045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4046     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4048     break 2
  4049   fi
  4050 done
  4051 done
  4052 IFS=$as_save_IFS
  4054 fi
  4055 fi
  4056 CC=$ac_cv_prog_CC
  4057 if test -n "$CC"; then
  4058   { echo "$as_me:$LINENO: result: $CC" >&5
  4059 echo "${ECHO_T}$CC" >&6; }
  4060 else
  4061   { echo "$as_me:$LINENO: result: no" >&5
  4062 echo "${ECHO_T}no" >&6; }
  4063 fi
  4066   fi
  4067 fi
  4068 if test -z "$CC"; then
  4069   # Extract the first word of "cc", so it can be a program name with args.
  4070 set dummy cc; ac_word=$2
  4071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4073 if test "${ac_cv_prog_CC+set}" = set; then
  4074   echo $ECHO_N "(cached) $ECHO_C" >&6
  4075 else
  4076   if test -n "$CC"; then
  4077   ac_cv_prog_CC="$CC" # Let the user override the test.
  4078 else
  4079   ac_prog_rejected=no
  4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4081 for as_dir in $PATH
  4082 do
  4083   IFS=$as_save_IFS
  4084   test -z "$as_dir" && as_dir=.
  4085   for ac_exec_ext in '' $ac_executable_extensions; do
  4086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4087     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4088        ac_prog_rejected=yes
  4089        continue
  4090      fi
  4091     ac_cv_prog_CC="cc"
  4092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4093     break 2
  4094   fi
  4095 done
  4096 done
  4097 IFS=$as_save_IFS
  4099 if test $ac_prog_rejected = yes; then
  4100   # We found a bogon in the path, so make sure we never use it.
  4101   set dummy $ac_cv_prog_CC
  4102   shift
  4103   if test $# != 0; then
  4104     # We chose a different compiler from the bogus one.
  4105     # However, it has the same basename, so the bogon will be chosen
  4106     # first if we set CC to just the basename; use the full file name.
  4107     shift
  4108     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4109   fi
  4110 fi
  4111 fi
  4112 fi
  4113 CC=$ac_cv_prog_CC
  4114 if test -n "$CC"; then
  4115   { echo "$as_me:$LINENO: result: $CC" >&5
  4116 echo "${ECHO_T}$CC" >&6; }
  4117 else
  4118   { echo "$as_me:$LINENO: result: no" >&5
  4119 echo "${ECHO_T}no" >&6; }
  4120 fi
  4123 fi
  4124 if test -z "$CC"; then
  4125   if test -n "$ac_tool_prefix"; then
  4126   for ac_prog in cl.exe
  4127   do
  4128     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4132 if test "${ac_cv_prog_CC+set}" = set; then
  4133   echo $ECHO_N "(cached) $ECHO_C" >&6
  4134 else
  4135   if test -n "$CC"; then
  4136   ac_cv_prog_CC="$CC" # Let the user override the test.
  4137 else
  4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4139 for as_dir in $PATH
  4140 do
  4141   IFS=$as_save_IFS
  4142   test -z "$as_dir" && as_dir=.
  4143   for ac_exec_ext in '' $ac_executable_extensions; do
  4144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4145     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4147     break 2
  4148   fi
  4149 done
  4150 done
  4151 IFS=$as_save_IFS
  4153 fi
  4154 fi
  4155 CC=$ac_cv_prog_CC
  4156 if test -n "$CC"; then
  4157   { echo "$as_me:$LINENO: result: $CC" >&5
  4158 echo "${ECHO_T}$CC" >&6; }
  4159 else
  4160   { echo "$as_me:$LINENO: result: no" >&5
  4161 echo "${ECHO_T}no" >&6; }
  4162 fi
  4165     test -n "$CC" && break
  4166   done
  4167 fi
  4168 if test -z "$CC"; then
  4169   ac_ct_CC=$CC
  4170   for ac_prog in cl.exe
  4171 do
  4172   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4173 set dummy $ac_prog; ac_word=$2
  4174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4177   echo $ECHO_N "(cached) $ECHO_C" >&6
  4178 else
  4179   if test -n "$ac_ct_CC"; then
  4180   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4181 else
  4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4183 for as_dir in $PATH
  4184 do
  4185   IFS=$as_save_IFS
  4186   test -z "$as_dir" && as_dir=.
  4187   for ac_exec_ext in '' $ac_executable_extensions; do
  4188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4189     ac_cv_prog_ac_ct_CC="$ac_prog"
  4190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4191     break 2
  4192   fi
  4193 done
  4194 done
  4195 IFS=$as_save_IFS
  4197 fi
  4198 fi
  4199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4200 if test -n "$ac_ct_CC"; then
  4201   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4202 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4203 else
  4204   { echo "$as_me:$LINENO: result: no" >&5
  4205 echo "${ECHO_T}no" >&6; }
  4206 fi
  4209   test -n "$ac_ct_CC" && break
  4210 done
  4212   if test "x$ac_ct_CC" = x; then
  4213     CC=""
  4214   else
  4215     case $cross_compiling:$ac_tool_warned in
  4216 yes:)
  4217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4218 whose name does not start with the host triplet.  If you think this
  4219 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4221 whose name does not start with the host triplet.  If you think this
  4222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4223 ac_tool_warned=yes ;;
  4224 esac
  4225     CC=$ac_ct_CC
  4226   fi
  4227 fi
  4229 fi
  4232 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4233 See \`config.log' for more details." >&5
  4234 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4235 See \`config.log' for more details." >&2;}
  4236    { (exit 1); exit 1; }; }
  4238 # Provide some information about the compiler.
  4239 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4240 ac_compiler=`set X $ac_compile; echo $2`
  4241 { (ac_try="$ac_compiler --version >&5"
  4242 case "(($ac_try" in
  4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4244   *) ac_try_echo=$ac_try;;
  4245 esac
  4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4247   (eval "$ac_compiler --version >&5") 2>&5
  4248   ac_status=$?
  4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4250   (exit $ac_status); }
  4251 { (ac_try="$ac_compiler -v >&5"
  4252 case "(($ac_try" in
  4253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4254   *) ac_try_echo=$ac_try;;
  4255 esac
  4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4257   (eval "$ac_compiler -v >&5") 2>&5
  4258   ac_status=$?
  4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4260   (exit $ac_status); }
  4261 { (ac_try="$ac_compiler -V >&5"
  4262 case "(($ac_try" in
  4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4264   *) ac_try_echo=$ac_try;;
  4265 esac
  4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4267   (eval "$ac_compiler -V >&5") 2>&5
  4268   ac_status=$?
  4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4270   (exit $ac_status); }
  4272 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4275   echo $ECHO_N "(cached) $ECHO_C" >&6
  4276 else
  4277   cat >conftest.$ac_ext <<_ACEOF
  4278 /* confdefs.h.  */
  4279 _ACEOF
  4280 cat confdefs.h >>conftest.$ac_ext
  4281 cat >>conftest.$ac_ext <<_ACEOF
  4282 /* end confdefs.h.  */
  4284 int
  4285 main ()
  4287 #ifndef __GNUC__
  4288        choke me
  4289 #endif
  4292   return 0;
  4294 _ACEOF
  4295 rm -f conftest.$ac_objext
  4296 if { (ac_try="$ac_compile"
  4297 case "(($ac_try" in
  4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4299   *) ac_try_echo=$ac_try;;
  4300 esac
  4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4302   (eval "$ac_compile") 2>conftest.er1
  4303   ac_status=$?
  4304   grep -v '^ *+' conftest.er1 >conftest.err
  4305   rm -f conftest.er1
  4306   cat conftest.err >&5
  4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308   (exit $ac_status); } && {
  4309 	 test -z "$ac_c_werror_flag" ||
  4310 	 test ! -s conftest.err
  4311        } && test -s conftest.$ac_objext; then
  4312   ac_compiler_gnu=yes
  4313 else
  4314   echo "$as_me: failed program was:" >&5
  4315 sed 's/^/| /' conftest.$ac_ext >&5
  4317 	ac_compiler_gnu=no
  4318 fi
  4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4323 fi
  4324 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4325 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4326 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4327 ac_test_CFLAGS=${CFLAGS+set}
  4328 ac_save_CFLAGS=$CFLAGS
  4329 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4330 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4331 if test "${ac_cv_prog_cc_g+set}" = set; then
  4332   echo $ECHO_N "(cached) $ECHO_C" >&6
  4333 else
  4334   ac_save_c_werror_flag=$ac_c_werror_flag
  4335    ac_c_werror_flag=yes
  4336    ac_cv_prog_cc_g=no
  4337    CFLAGS="-g"
  4338    cat >conftest.$ac_ext <<_ACEOF
  4339 /* confdefs.h.  */
  4340 _ACEOF
  4341 cat confdefs.h >>conftest.$ac_ext
  4342 cat >>conftest.$ac_ext <<_ACEOF
  4343 /* end confdefs.h.  */
  4345 int
  4346 main ()
  4350   return 0;
  4352 _ACEOF
  4353 rm -f conftest.$ac_objext
  4354 if { (ac_try="$ac_compile"
  4355 case "(($ac_try" in
  4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4357   *) ac_try_echo=$ac_try;;
  4358 esac
  4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4360   (eval "$ac_compile") 2>conftest.er1
  4361   ac_status=$?
  4362   grep -v '^ *+' conftest.er1 >conftest.err
  4363   rm -f conftest.er1
  4364   cat conftest.err >&5
  4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4366   (exit $ac_status); } && {
  4367 	 test -z "$ac_c_werror_flag" ||
  4368 	 test ! -s conftest.err
  4369        } && test -s conftest.$ac_objext; then
  4370   ac_cv_prog_cc_g=yes
  4371 else
  4372   echo "$as_me: failed program was:" >&5
  4373 sed 's/^/| /' conftest.$ac_ext >&5
  4375 	CFLAGS=""
  4376       cat >conftest.$ac_ext <<_ACEOF
  4377 /* confdefs.h.  */
  4378 _ACEOF
  4379 cat confdefs.h >>conftest.$ac_ext
  4380 cat >>conftest.$ac_ext <<_ACEOF
  4381 /* end confdefs.h.  */
  4383 int
  4384 main ()
  4388   return 0;
  4390 _ACEOF
  4391 rm -f conftest.$ac_objext
  4392 if { (ac_try="$ac_compile"
  4393 case "(($ac_try" in
  4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4395   *) ac_try_echo=$ac_try;;
  4396 esac
  4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4398   (eval "$ac_compile") 2>conftest.er1
  4399   ac_status=$?
  4400   grep -v '^ *+' conftest.er1 >conftest.err
  4401   rm -f conftest.er1
  4402   cat conftest.err >&5
  4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4404   (exit $ac_status); } && {
  4405 	 test -z "$ac_c_werror_flag" ||
  4406 	 test ! -s conftest.err
  4407        } && test -s conftest.$ac_objext; then
  4409 else
  4410   echo "$as_me: failed program was:" >&5
  4411 sed 's/^/| /' conftest.$ac_ext >&5
  4413 	ac_c_werror_flag=$ac_save_c_werror_flag
  4414 	 CFLAGS="-g"
  4415 	 cat >conftest.$ac_ext <<_ACEOF
  4416 /* confdefs.h.  */
  4417 _ACEOF
  4418 cat confdefs.h >>conftest.$ac_ext
  4419 cat >>conftest.$ac_ext <<_ACEOF
  4420 /* end confdefs.h.  */
  4422 int
  4423 main ()
  4427   return 0;
  4429 _ACEOF
  4430 rm -f conftest.$ac_objext
  4431 if { (ac_try="$ac_compile"
  4432 case "(($ac_try" in
  4433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4434   *) ac_try_echo=$ac_try;;
  4435 esac
  4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4437   (eval "$ac_compile") 2>conftest.er1
  4438   ac_status=$?
  4439   grep -v '^ *+' conftest.er1 >conftest.err
  4440   rm -f conftest.er1
  4441   cat conftest.err >&5
  4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4443   (exit $ac_status); } && {
  4444 	 test -z "$ac_c_werror_flag" ||
  4445 	 test ! -s conftest.err
  4446        } && test -s conftest.$ac_objext; then
  4447   ac_cv_prog_cc_g=yes
  4448 else
  4449   echo "$as_me: failed program was:" >&5
  4450 sed 's/^/| /' conftest.$ac_ext >&5
  4453 fi
  4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4456 fi
  4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4459 fi
  4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4462    ac_c_werror_flag=$ac_save_c_werror_flag
  4463 fi
  4464 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4465 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4466 if test "$ac_test_CFLAGS" = set; then
  4467   CFLAGS=$ac_save_CFLAGS
  4468 elif test $ac_cv_prog_cc_g = yes; then
  4469   if test "$GCC" = yes; then
  4470     CFLAGS="-g -O2"
  4471   else
  4472     CFLAGS="-g"
  4473   fi
  4474 else
  4475   if test "$GCC" = yes; then
  4476     CFLAGS="-O2"
  4477   else
  4478     CFLAGS=
  4479   fi
  4480 fi
  4481 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4482 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4483 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4484   echo $ECHO_N "(cached) $ECHO_C" >&6
  4485 else
  4486   ac_cv_prog_cc_c89=no
  4487 ac_save_CC=$CC
  4488 cat >conftest.$ac_ext <<_ACEOF
  4489 /* confdefs.h.  */
  4490 _ACEOF
  4491 cat confdefs.h >>conftest.$ac_ext
  4492 cat >>conftest.$ac_ext <<_ACEOF
  4493 /* end confdefs.h.  */
  4494 #include <stdarg.h>
  4495 #include <stdio.h>
  4496 #include <sys/types.h>
  4497 #include <sys/stat.h>
  4498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4499 struct buf { int x; };
  4500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4501 static char *e (p, i)
  4502      char **p;
  4503      int i;
  4505   return p[i];
  4507 static char *f (char * (*g) (char **, int), char **p, ...)
  4509   char *s;
  4510   va_list v;
  4511   va_start (v,p);
  4512   s = g (p, va_arg (v,int));
  4513   va_end (v);
  4514   return s;
  4517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4518    function prototypes and stuff, but not '\xHH' hex character constants.
  4519    These don't provoke an error unfortunately, instead are silently treated
  4520    as 'x'.  The following induces an error, until -std is added to get
  4521    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4522    array size at least.  It's necessary to write '\x00'==0 to get something
  4523    that's true only with -std.  */
  4524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4527    inside strings and character constants.  */
  4528 #define FOO(x) 'x'
  4529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4531 int test (int i, double x);
  4532 struct s1 {int (*f) (int a);};
  4533 struct s2 {int (*f) (double a);};
  4534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4535 int argc;
  4536 char **argv;
  4537 int
  4538 main ()
  4540 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4542   return 0;
  4544 _ACEOF
  4545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4546 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4547 do
  4548   CC="$ac_save_CC $ac_arg"
  4549   rm -f conftest.$ac_objext
  4550 if { (ac_try="$ac_compile"
  4551 case "(($ac_try" in
  4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4553   *) ac_try_echo=$ac_try;;
  4554 esac
  4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4556   (eval "$ac_compile") 2>conftest.er1
  4557   ac_status=$?
  4558   grep -v '^ *+' conftest.er1 >conftest.err
  4559   rm -f conftest.er1
  4560   cat conftest.err >&5
  4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4562   (exit $ac_status); } && {
  4563 	 test -z "$ac_c_werror_flag" ||
  4564 	 test ! -s conftest.err
  4565        } && test -s conftest.$ac_objext; then
  4566   ac_cv_prog_cc_c89=$ac_arg
  4567 else
  4568   echo "$as_me: failed program was:" >&5
  4569 sed 's/^/| /' conftest.$ac_ext >&5
  4572 fi
  4574 rm -f core conftest.err conftest.$ac_objext
  4575   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4576 done
  4577 rm -f conftest.$ac_ext
  4578 CC=$ac_save_CC
  4580 fi
  4581 # AC_CACHE_VAL
  4582 case "x$ac_cv_prog_cc_c89" in
  4583   x)
  4584     { echo "$as_me:$LINENO: result: none needed" >&5
  4585 echo "${ECHO_T}none needed" >&6; } ;;
  4586   xno)
  4587     { echo "$as_me:$LINENO: result: unsupported" >&5
  4588 echo "${ECHO_T}unsupported" >&6; } ;;
  4589   *)
  4590     CC="$CC $ac_cv_prog_cc_c89"
  4591     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4592 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4593 esac
  4596 ac_ext=c
  4597 ac_cpp='$CPP $CPPFLAGS'
  4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4602 depcc="$CC"   am_compiler_list=
  4604 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4605 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4606 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4607   echo $ECHO_N "(cached) $ECHO_C" >&6
  4608 else
  4609   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4610   # We make a subdir and do the tests there.  Otherwise we can end up
  4611   # making bogus files that we don't know about and never remove.  For
  4612   # instance it was reported that on HP-UX the gcc test will end up
  4613   # making a dummy file named `D' -- because `-MD' means `put the output
  4614   # in D'.
  4615   mkdir conftest.dir
  4616   # Copy depcomp to subdir because otherwise we won't find it if we're
  4617   # using a relative directory.
  4618   cp "$am_depcomp" conftest.dir
  4619   cd conftest.dir
  4620   # We will build objects and dependencies in a subdirectory because
  4621   # it helps to detect inapplicable dependency modes.  For instance
  4622   # both Tru64's cc and ICC support -MD to output dependencies as a
  4623   # side effect of compilation, but ICC will put the dependencies in
  4624   # the current directory while Tru64 will put them in the object
  4625   # directory.
  4626   mkdir sub
  4628   am_cv_CC_dependencies_compiler_type=none
  4629   if test "$am_compiler_list" = ""; then
  4630      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4631   fi
  4632   for depmode in $am_compiler_list; do
  4633     # Setup a source with many dependencies, because some compilers
  4634     # like to wrap large dependency lists on column 80 (with \), and
  4635     # we should not choose a depcomp mode which is confused by this.
  4637     # We need to recreate these files for each test, as the compiler may
  4638     # overwrite some of them when testing with obscure command lines.
  4639     # This happens at least with the AIX C compiler.
  4640     : > sub/conftest.c
  4641     for i in 1 2 3 4 5 6; do
  4642       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4643       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4644       # Solaris 8's {/usr,}/bin/sh.
  4645       touch sub/conftst$i.h
  4646     done
  4647     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4649     case $depmode in
  4650     nosideeffect)
  4651       # after this tag, mechanisms are not by side-effect, so they'll
  4652       # only be used when explicitly requested
  4653       if test "x$enable_dependency_tracking" = xyes; then
  4654 	continue
  4655       else
  4656 	break
  4657       fi
  4658       ;;
  4659     none) break ;;
  4660     esac
  4661     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4662     # mode.  It turns out that the SunPro C++ compiler does not properly
  4663     # handle `-M -o', and we need to detect this.
  4664     if depmode=$depmode \
  4665        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4666        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4667        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4668          >/dev/null 2>conftest.err &&
  4669        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4670        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4671        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4672       # icc doesn't choke on unknown options, it will just issue warnings
  4673       # or remarks (even with -Werror).  So we grep stderr for any message
  4674       # that says an option was ignored or not supported.
  4675       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4676       #   icc: Command line warning: ignoring option '-M'; no argument required
  4677       # The diagnosis changed in icc 8.0:
  4678       #   icc: Command line remark: option '-MP' not supported
  4679       if (grep 'ignoring option' conftest.err ||
  4680           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4681         am_cv_CC_dependencies_compiler_type=$depmode
  4682         break
  4683       fi
  4684     fi
  4685   done
  4687   cd ..
  4688   rm -rf conftest.dir
  4689 else
  4690   am_cv_CC_dependencies_compiler_type=none
  4691 fi
  4693 fi
  4694 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4695 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4696 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4700 if
  4701   test "x$enable_dependency_tracking" != xno \
  4702   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4703   am__fastdepCC_TRUE=
  4704   am__fastdepCC_FALSE='#'
  4705 else
  4706   am__fastdepCC_TRUE='#'
  4707   am__fastdepCC_FALSE=
  4708 fi
  4711 ac_ext=c
  4712 ac_cpp='$CPP $CPPFLAGS'
  4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4716 if test -n "$ac_tool_prefix"; then
  4717   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4721 if test "${ac_cv_prog_CC+set}" = set; then
  4722   echo $ECHO_N "(cached) $ECHO_C" >&6
  4723 else
  4724   if test -n "$CC"; then
  4725   ac_cv_prog_CC="$CC" # Let the user override the test.
  4726 else
  4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4728 for as_dir in $PATH
  4729 do
  4730   IFS=$as_save_IFS
  4731   test -z "$as_dir" && as_dir=.
  4732   for ac_exec_ext in '' $ac_executable_extensions; do
  4733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4734     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4736     break 2
  4737   fi
  4738 done
  4739 done
  4740 IFS=$as_save_IFS
  4742 fi
  4743 fi
  4744 CC=$ac_cv_prog_CC
  4745 if test -n "$CC"; then
  4746   { echo "$as_me:$LINENO: result: $CC" >&5
  4747 echo "${ECHO_T}$CC" >&6; }
  4748 else
  4749   { echo "$as_me:$LINENO: result: no" >&5
  4750 echo "${ECHO_T}no" >&6; }
  4751 fi
  4754 fi
  4755 if test -z "$ac_cv_prog_CC"; then
  4756   ac_ct_CC=$CC
  4757   # Extract the first word of "gcc", so it can be a program name with args.
  4758 set dummy gcc; ac_word=$2
  4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4762   echo $ECHO_N "(cached) $ECHO_C" >&6
  4763 else
  4764   if test -n "$ac_ct_CC"; then
  4765   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4766 else
  4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4768 for as_dir in $PATH
  4769 do
  4770   IFS=$as_save_IFS
  4771   test -z "$as_dir" && as_dir=.
  4772   for ac_exec_ext in '' $ac_executable_extensions; do
  4773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4774     ac_cv_prog_ac_ct_CC="gcc"
  4775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4776     break 2
  4777   fi
  4778 done
  4779 done
  4780 IFS=$as_save_IFS
  4782 fi
  4783 fi
  4784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4785 if test -n "$ac_ct_CC"; then
  4786   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4787 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4788 else
  4789   { echo "$as_me:$LINENO: result: no" >&5
  4790 echo "${ECHO_T}no" >&6; }
  4791 fi
  4793   if test "x$ac_ct_CC" = x; then
  4794     CC=""
  4795   else
  4796     case $cross_compiling:$ac_tool_warned in
  4797 yes:)
  4798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4799 whose name does not start with the host triplet.  If you think this
  4800 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4802 whose name does not start with the host triplet.  If you think this
  4803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4804 ac_tool_warned=yes ;;
  4805 esac
  4806     CC=$ac_ct_CC
  4807   fi
  4808 else
  4809   CC="$ac_cv_prog_CC"
  4810 fi
  4812 if test -z "$CC"; then
  4813           if test -n "$ac_tool_prefix"; then
  4814     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4815 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4818 if test "${ac_cv_prog_CC+set}" = set; then
  4819   echo $ECHO_N "(cached) $ECHO_C" >&6
  4820 else
  4821   if test -n "$CC"; then
  4822   ac_cv_prog_CC="$CC" # Let the user override the test.
  4823 else
  4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4825 for as_dir in $PATH
  4826 do
  4827   IFS=$as_save_IFS
  4828   test -z "$as_dir" && as_dir=.
  4829   for ac_exec_ext in '' $ac_executable_extensions; do
  4830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4831     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4833     break 2
  4834   fi
  4835 done
  4836 done
  4837 IFS=$as_save_IFS
  4839 fi
  4840 fi
  4841 CC=$ac_cv_prog_CC
  4842 if test -n "$CC"; then
  4843   { echo "$as_me:$LINENO: result: $CC" >&5
  4844 echo "${ECHO_T}$CC" >&6; }
  4845 else
  4846   { echo "$as_me:$LINENO: result: no" >&5
  4847 echo "${ECHO_T}no" >&6; }
  4848 fi
  4851   fi
  4852 fi
  4853 if test -z "$CC"; then
  4854   # Extract the first word of "cc", so it can be a program name with args.
  4855 set dummy cc; ac_word=$2
  4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4858 if test "${ac_cv_prog_CC+set}" = set; then
  4859   echo $ECHO_N "(cached) $ECHO_C" >&6
  4860 else
  4861   if test -n "$CC"; then
  4862   ac_cv_prog_CC="$CC" # Let the user override the test.
  4863 else
  4864   ac_prog_rejected=no
  4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4866 for as_dir in $PATH
  4867 do
  4868   IFS=$as_save_IFS
  4869   test -z "$as_dir" && as_dir=.
  4870   for ac_exec_ext in '' $ac_executable_extensions; do
  4871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4872     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4873        ac_prog_rejected=yes
  4874        continue
  4875      fi
  4876     ac_cv_prog_CC="cc"
  4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4878     break 2
  4879   fi
  4880 done
  4881 done
  4882 IFS=$as_save_IFS
  4884 if test $ac_prog_rejected = yes; then
  4885   # We found a bogon in the path, so make sure we never use it.
  4886   set dummy $ac_cv_prog_CC
  4887   shift
  4888   if test $# != 0; then
  4889     # We chose a different compiler from the bogus one.
  4890     # However, it has the same basename, so the bogon will be chosen
  4891     # first if we set CC to just the basename; use the full file name.
  4892     shift
  4893     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4894   fi
  4895 fi
  4896 fi
  4897 fi
  4898 CC=$ac_cv_prog_CC
  4899 if test -n "$CC"; then
  4900   { echo "$as_me:$LINENO: result: $CC" >&5
  4901 echo "${ECHO_T}$CC" >&6; }
  4902 else
  4903   { echo "$as_me:$LINENO: result: no" >&5
  4904 echo "${ECHO_T}no" >&6; }
  4905 fi
  4908 fi
  4909 if test -z "$CC"; then
  4910   if test -n "$ac_tool_prefix"; then
  4911   for ac_prog in cl.exe
  4912   do
  4913     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4917 if test "${ac_cv_prog_CC+set}" = set; then
  4918   echo $ECHO_N "(cached) $ECHO_C" >&6
  4919 else
  4920   if test -n "$CC"; then
  4921   ac_cv_prog_CC="$CC" # Let the user override the test.
  4922 else
  4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4924 for as_dir in $PATH
  4925 do
  4926   IFS=$as_save_IFS
  4927   test -z "$as_dir" && as_dir=.
  4928   for ac_exec_ext in '' $ac_executable_extensions; do
  4929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4930     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4932     break 2
  4933   fi
  4934 done
  4935 done
  4936 IFS=$as_save_IFS
  4938 fi
  4939 fi
  4940 CC=$ac_cv_prog_CC
  4941 if test -n "$CC"; then
  4942   { echo "$as_me:$LINENO: result: $CC" >&5
  4943 echo "${ECHO_T}$CC" >&6; }
  4944 else
  4945   { echo "$as_me:$LINENO: result: no" >&5
  4946 echo "${ECHO_T}no" >&6; }
  4947 fi
  4950     test -n "$CC" && break
  4951   done
  4952 fi
  4953 if test -z "$CC"; then
  4954   ac_ct_CC=$CC
  4955   for ac_prog in cl.exe
  4956 do
  4957   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4958 set dummy $ac_prog; ac_word=$2
  4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4961 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4962   echo $ECHO_N "(cached) $ECHO_C" >&6
  4963 else
  4964   if test -n "$ac_ct_CC"; then
  4965   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4966 else
  4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4968 for as_dir in $PATH
  4969 do
  4970   IFS=$as_save_IFS
  4971   test -z "$as_dir" && as_dir=.
  4972   for ac_exec_ext in '' $ac_executable_extensions; do
  4973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4974     ac_cv_prog_ac_ct_CC="$ac_prog"
  4975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4976     break 2
  4977   fi
  4978 done
  4979 done
  4980 IFS=$as_save_IFS
  4982 fi
  4983 fi
  4984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4985 if test -n "$ac_ct_CC"; then
  4986   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4987 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4988 else
  4989   { echo "$as_me:$LINENO: result: no" >&5
  4990 echo "${ECHO_T}no" >&6; }
  4991 fi
  4994   test -n "$ac_ct_CC" && break
  4995 done
  4997   if test "x$ac_ct_CC" = x; then
  4998     CC=""
  4999   else
  5000     case $cross_compiling:$ac_tool_warned in
  5001 yes:)
  5002 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5003 whose name does not start with the host triplet.  If you think this
  5004 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5005 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5006 whose name does not start with the host triplet.  If you think this
  5007 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5008 ac_tool_warned=yes ;;
  5009 esac
  5010     CC=$ac_ct_CC
  5011   fi
  5012 fi
  5014 fi
  5017 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5018 See \`config.log' for more details." >&5
  5019 echo "$as_me: error: no acceptable C compiler found in \$PATH
  5020 See \`config.log' for more details." >&2;}
  5021    { (exit 1); exit 1; }; }
  5023 # Provide some information about the compiler.
  5024 echo "$as_me:$LINENO: checking for C compiler version" >&5
  5025 ac_compiler=`set X $ac_compile; echo $2`
  5026 { (ac_try="$ac_compiler --version >&5"
  5027 case "(($ac_try" in
  5028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5029   *) ac_try_echo=$ac_try;;
  5030 esac
  5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5032   (eval "$ac_compiler --version >&5") 2>&5
  5033   ac_status=$?
  5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5035   (exit $ac_status); }
  5036 { (ac_try="$ac_compiler -v >&5"
  5037 case "(($ac_try" in
  5038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5039   *) ac_try_echo=$ac_try;;
  5040 esac
  5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5042   (eval "$ac_compiler -v >&5") 2>&5
  5043   ac_status=$?
  5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5045   (exit $ac_status); }
  5046 { (ac_try="$ac_compiler -V >&5"
  5047 case "(($ac_try" in
  5048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5049   *) ac_try_echo=$ac_try;;
  5050 esac
  5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5052   (eval "$ac_compiler -V >&5") 2>&5
  5053   ac_status=$?
  5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5055   (exit $ac_status); }
  5057 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  5059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5060   echo $ECHO_N "(cached) $ECHO_C" >&6
  5061 else
  5062   cat >conftest.$ac_ext <<_ACEOF
  5063 /* confdefs.h.  */
  5064 _ACEOF
  5065 cat confdefs.h >>conftest.$ac_ext
  5066 cat >>conftest.$ac_ext <<_ACEOF
  5067 /* end confdefs.h.  */
  5069 int
  5070 main ()
  5072 #ifndef __GNUC__
  5073        choke me
  5074 #endif
  5077   return 0;
  5079 _ACEOF
  5080 rm -f conftest.$ac_objext
  5081 if { (ac_try="$ac_compile"
  5082 case "(($ac_try" in
  5083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5084   *) ac_try_echo=$ac_try;;
  5085 esac
  5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5087   (eval "$ac_compile") 2>conftest.er1
  5088   ac_status=$?
  5089   grep -v '^ *+' conftest.er1 >conftest.err
  5090   rm -f conftest.er1
  5091   cat conftest.err >&5
  5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5093   (exit $ac_status); } && {
  5094 	 test -z "$ac_c_werror_flag" ||
  5095 	 test ! -s conftest.err
  5096        } && test -s conftest.$ac_objext; then
  5097   ac_compiler_gnu=yes
  5098 else
  5099   echo "$as_me: failed program was:" >&5
  5100 sed 's/^/| /' conftest.$ac_ext >&5
  5102 	ac_compiler_gnu=no
  5103 fi
  5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5108 fi
  5109 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  5111 GCC=`test $ac_compiler_gnu = yes && echo yes`
  5112 ac_test_CFLAGS=${CFLAGS+set}
  5113 ac_save_CFLAGS=$CFLAGS
  5114 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5115 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  5116 if test "${ac_cv_prog_cc_g+set}" = set; then
  5117   echo $ECHO_N "(cached) $ECHO_C" >&6
  5118 else
  5119   ac_save_c_werror_flag=$ac_c_werror_flag
  5120    ac_c_werror_flag=yes
  5121    ac_cv_prog_cc_g=no
  5122    CFLAGS="-g"
  5123    cat >conftest.$ac_ext <<_ACEOF
  5124 /* confdefs.h.  */
  5125 _ACEOF
  5126 cat confdefs.h >>conftest.$ac_ext
  5127 cat >>conftest.$ac_ext <<_ACEOF
  5128 /* end confdefs.h.  */
  5130 int
  5131 main ()
  5135   return 0;
  5137 _ACEOF
  5138 rm -f conftest.$ac_objext
  5139 if { (ac_try="$ac_compile"
  5140 case "(($ac_try" in
  5141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5142   *) ac_try_echo=$ac_try;;
  5143 esac
  5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5145   (eval "$ac_compile") 2>conftest.er1
  5146   ac_status=$?
  5147   grep -v '^ *+' conftest.er1 >conftest.err
  5148   rm -f conftest.er1
  5149   cat conftest.err >&5
  5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5151   (exit $ac_status); } && {
  5152 	 test -z "$ac_c_werror_flag" ||
  5153 	 test ! -s conftest.err
  5154        } && test -s conftest.$ac_objext; then
  5155   ac_cv_prog_cc_g=yes
  5156 else
  5157   echo "$as_me: failed program was:" >&5
  5158 sed 's/^/| /' conftest.$ac_ext >&5
  5160 	CFLAGS=""
  5161       cat >conftest.$ac_ext <<_ACEOF
  5162 /* confdefs.h.  */
  5163 _ACEOF
  5164 cat confdefs.h >>conftest.$ac_ext
  5165 cat >>conftest.$ac_ext <<_ACEOF
  5166 /* end confdefs.h.  */
  5168 int
  5169 main ()
  5173   return 0;
  5175 _ACEOF
  5176 rm -f conftest.$ac_objext
  5177 if { (ac_try="$ac_compile"
  5178 case "(($ac_try" in
  5179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5180   *) ac_try_echo=$ac_try;;
  5181 esac
  5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5183   (eval "$ac_compile") 2>conftest.er1
  5184   ac_status=$?
  5185   grep -v '^ *+' conftest.er1 >conftest.err
  5186   rm -f conftest.er1
  5187   cat conftest.err >&5
  5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5189   (exit $ac_status); } && {
  5190 	 test -z "$ac_c_werror_flag" ||
  5191 	 test ! -s conftest.err
  5192        } && test -s conftest.$ac_objext; then
  5194 else
  5195   echo "$as_me: failed program was:" >&5
  5196 sed 's/^/| /' conftest.$ac_ext >&5
  5198 	ac_c_werror_flag=$ac_save_c_werror_flag
  5199 	 CFLAGS="-g"
  5200 	 cat >conftest.$ac_ext <<_ACEOF
  5201 /* confdefs.h.  */
  5202 _ACEOF
  5203 cat confdefs.h >>conftest.$ac_ext
  5204 cat >>conftest.$ac_ext <<_ACEOF
  5205 /* end confdefs.h.  */
  5207 int
  5208 main ()
  5212   return 0;
  5214 _ACEOF
  5215 rm -f conftest.$ac_objext
  5216 if { (ac_try="$ac_compile"
  5217 case "(($ac_try" in
  5218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5219   *) ac_try_echo=$ac_try;;
  5220 esac
  5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5222   (eval "$ac_compile") 2>conftest.er1
  5223   ac_status=$?
  5224   grep -v '^ *+' conftest.er1 >conftest.err
  5225   rm -f conftest.er1
  5226   cat conftest.err >&5
  5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5228   (exit $ac_status); } && {
  5229 	 test -z "$ac_c_werror_flag" ||
  5230 	 test ! -s conftest.err
  5231        } && test -s conftest.$ac_objext; then
  5232   ac_cv_prog_cc_g=yes
  5233 else
  5234   echo "$as_me: failed program was:" >&5
  5235 sed 's/^/| /' conftest.$ac_ext >&5
  5238 fi
  5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5241 fi
  5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5244 fi
  5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5247    ac_c_werror_flag=$ac_save_c_werror_flag
  5248 fi
  5249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5250 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  5251 if test "$ac_test_CFLAGS" = set; then
  5252   CFLAGS=$ac_save_CFLAGS
  5253 elif test $ac_cv_prog_cc_g = yes; then
  5254   if test "$GCC" = yes; then
  5255     CFLAGS="-g -O2"
  5256   else
  5257     CFLAGS="-g"
  5258   fi
  5259 else
  5260   if test "$GCC" = yes; then
  5261     CFLAGS="-O2"
  5262   else
  5263     CFLAGS=
  5264   fi
  5265 fi
  5266 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5267 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  5268 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5269   echo $ECHO_N "(cached) $ECHO_C" >&6
  5270 else
  5271   ac_cv_prog_cc_c89=no
  5272 ac_save_CC=$CC
  5273 cat >conftest.$ac_ext <<_ACEOF
  5274 /* confdefs.h.  */
  5275 _ACEOF
  5276 cat confdefs.h >>conftest.$ac_ext
  5277 cat >>conftest.$ac_ext <<_ACEOF
  5278 /* end confdefs.h.  */
  5279 #include <stdarg.h>
  5280 #include <stdio.h>
  5281 #include <sys/types.h>
  5282 #include <sys/stat.h>
  5283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5284 struct buf { int x; };
  5285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5286 static char *e (p, i)
  5287      char **p;
  5288      int i;
  5290   return p[i];
  5292 static char *f (char * (*g) (char **, int), char **p, ...)
  5294   char *s;
  5295   va_list v;
  5296   va_start (v,p);
  5297   s = g (p, va_arg (v,int));
  5298   va_end (v);
  5299   return s;
  5302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5303    function prototypes and stuff, but not '\xHH' hex character constants.
  5304    These don't provoke an error unfortunately, instead are silently treated
  5305    as 'x'.  The following induces an error, until -std is added to get
  5306    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5307    array size at least.  It's necessary to write '\x00'==0 to get something
  5308    that's true only with -std.  */
  5309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5312    inside strings and character constants.  */
  5313 #define FOO(x) 'x'
  5314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5316 int test (int i, double x);
  5317 struct s1 {int (*f) (int a);};
  5318 struct s2 {int (*f) (double a);};
  5319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5320 int argc;
  5321 char **argv;
  5322 int
  5323 main ()
  5325 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5327   return 0;
  5329 _ACEOF
  5330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5331 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5332 do
  5333   CC="$ac_save_CC $ac_arg"
  5334   rm -f conftest.$ac_objext
  5335 if { (ac_try="$ac_compile"
  5336 case "(($ac_try" in
  5337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5338   *) ac_try_echo=$ac_try;;
  5339 esac
  5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5341   (eval "$ac_compile") 2>conftest.er1
  5342   ac_status=$?
  5343   grep -v '^ *+' conftest.er1 >conftest.err
  5344   rm -f conftest.er1
  5345   cat conftest.err >&5
  5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5347   (exit $ac_status); } && {
  5348 	 test -z "$ac_c_werror_flag" ||
  5349 	 test ! -s conftest.err
  5350        } && test -s conftest.$ac_objext; then
  5351   ac_cv_prog_cc_c89=$ac_arg
  5352 else
  5353   echo "$as_me: failed program was:" >&5
  5354 sed 's/^/| /' conftest.$ac_ext >&5
  5357 fi
  5359 rm -f core conftest.err conftest.$ac_objext
  5360   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5361 done
  5362 rm -f conftest.$ac_ext
  5363 CC=$ac_save_CC
  5365 fi
  5366 # AC_CACHE_VAL
  5367 case "x$ac_cv_prog_cc_c89" in
  5368   x)
  5369     { echo "$as_me:$LINENO: result: none needed" >&5
  5370 echo "${ECHO_T}none needed" >&6; } ;;
  5371   xno)
  5372     { echo "$as_me:$LINENO: result: unsupported" >&5
  5373 echo "${ECHO_T}unsupported" >&6; } ;;
  5374   *)
  5375     CC="$CC $ac_cv_prog_cc_c89"
  5376     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  5378 esac
  5381 ac_ext=c
  5382 ac_cpp='$CPP $CPPFLAGS'
  5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5387 depcc="$CC"   am_compiler_list=
  5389 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5390 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5391 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5392   echo $ECHO_N "(cached) $ECHO_C" >&6
  5393 else
  5394   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5395   # We make a subdir and do the tests there.  Otherwise we can end up
  5396   # making bogus files that we don't know about and never remove.  For
  5397   # instance it was reported that on HP-UX the gcc test will end up
  5398   # making a dummy file named `D' -- because `-MD' means `put the output
  5399   # in D'.
  5400   mkdir conftest.dir
  5401   # Copy depcomp to subdir because otherwise we won't find it if we're
  5402   # using a relative directory.
  5403   cp "$am_depcomp" conftest.dir
  5404   cd conftest.dir
  5405   # We will build objects and dependencies in a subdirectory because
  5406   # it helps to detect inapplicable dependency modes.  For instance
  5407   # both Tru64's cc and ICC support -MD to output dependencies as a
  5408   # side effect of compilation, but ICC will put the dependencies in
  5409   # the current directory while Tru64 will put them in the object
  5410   # directory.
  5411   mkdir sub
  5413   am_cv_CC_dependencies_compiler_type=none
  5414   if test "$am_compiler_list" = ""; then
  5415      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5416   fi
  5417   for depmode in $am_compiler_list; do
  5418     # Setup a source with many dependencies, because some compilers
  5419     # like to wrap large dependency lists on column 80 (with \), and
  5420     # we should not choose a depcomp mode which is confused by this.
  5422     # We need to recreate these files for each test, as the compiler may
  5423     # overwrite some of them when testing with obscure command lines.
  5424     # This happens at least with the AIX C compiler.
  5425     : > sub/conftest.c
  5426     for i in 1 2 3 4 5 6; do
  5427       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5428       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5429       # Solaris 8's {/usr,}/bin/sh.
  5430       touch sub/conftst$i.h
  5431     done
  5432     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5434     case $depmode in
  5435     nosideeffect)
  5436       # after this tag, mechanisms are not by side-effect, so they'll
  5437       # only be used when explicitly requested
  5438       if test "x$enable_dependency_tracking" = xyes; then
  5439 	continue
  5440       else
  5441 	break
  5442       fi
  5443       ;;
  5444     none) break ;;
  5445     esac
  5446     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5447     # mode.  It turns out that the SunPro C++ compiler does not properly
  5448     # handle `-M -o', and we need to detect this.
  5449     if depmode=$depmode \
  5450        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5451        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5452        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5453          >/dev/null 2>conftest.err &&
  5454        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5455        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5456        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5457       # icc doesn't choke on unknown options, it will just issue warnings
  5458       # or remarks (even with -Werror).  So we grep stderr for any message
  5459       # that says an option was ignored or not supported.
  5460       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5461       #   icc: Command line warning: ignoring option '-M'; no argument required
  5462       # The diagnosis changed in icc 8.0:
  5463       #   icc: Command line remark: option '-MP' not supported
  5464       if (grep 'ignoring option' conftest.err ||
  5465           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5466         am_cv_CC_dependencies_compiler_type=$depmode
  5467         break
  5468       fi
  5469     fi
  5470   done
  5472   cd ..
  5473   rm -rf conftest.dir
  5474 else
  5475   am_cv_CC_dependencies_compiler_type=none
  5476 fi
  5478 fi
  5479 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5480 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  5481 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5485 if
  5486   test "x$enable_dependency_tracking" != xno \
  5487   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5488   am__fastdepCC_TRUE=
  5489   am__fastdepCC_FALSE='#'
  5490 else
  5491   am__fastdepCC_TRUE='#'
  5492   am__fastdepCC_FALSE=
  5493 fi
  5497 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5499 ac_ext=c
  5500 ac_cpp='$CPP $CPPFLAGS'
  5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5504 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5506 # On Suns, sometimes $CPP names a directory.
  5507 if test -n "$CPP" && test -d "$CPP"; then
  5508   CPP=
  5509 fi
  5510 if test -z "$CPP"; then
  5511   if test "${ac_cv_prog_CPP+set}" = set; then
  5512   echo $ECHO_N "(cached) $ECHO_C" >&6
  5513 else
  5514       # Double quotes because CPP needs to be expanded
  5515     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5516     do
  5517       ac_preproc_ok=false
  5518 for ac_c_preproc_warn_flag in '' yes
  5519 do
  5520   # Use a header file that comes with gcc, so configuring glibc
  5521   # with a fresh cross-compiler works.
  5522   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5523   # <limits.h> exists even on freestanding compilers.
  5524   # On the NeXT, cc -E runs the code through the compiler's parser,
  5525   # not just through cpp. "Syntax error" is here to catch this case.
  5526   cat >conftest.$ac_ext <<_ACEOF
  5527 /* confdefs.h.  */
  5528 _ACEOF
  5529 cat confdefs.h >>conftest.$ac_ext
  5530 cat >>conftest.$ac_ext <<_ACEOF
  5531 /* end confdefs.h.  */
  5532 #ifdef __STDC__
  5533 # include <limits.h>
  5534 #else
  5535 # include <assert.h>
  5536 #endif
  5537 		     Syntax error
  5538 _ACEOF
  5539 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5540 case "(($ac_try" in
  5541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5542   *) ac_try_echo=$ac_try;;
  5543 esac
  5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5546   ac_status=$?
  5547   grep -v '^ *+' conftest.er1 >conftest.err
  5548   rm -f conftest.er1
  5549   cat conftest.err >&5
  5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5551   (exit $ac_status); } >/dev/null && {
  5552 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5553 	 test ! -s conftest.err
  5554        }; then
  5556 else
  5557   echo "$as_me: failed program was:" >&5
  5558 sed 's/^/| /' conftest.$ac_ext >&5
  5560   # Broken: fails on valid input.
  5561 continue
  5562 fi
  5564 rm -f conftest.err conftest.$ac_ext
  5566   # OK, works on sane cases.  Now check whether nonexistent headers
  5567   # can be detected and how.
  5568   cat >conftest.$ac_ext <<_ACEOF
  5569 /* confdefs.h.  */
  5570 _ACEOF
  5571 cat confdefs.h >>conftest.$ac_ext
  5572 cat >>conftest.$ac_ext <<_ACEOF
  5573 /* end confdefs.h.  */
  5574 #include <ac_nonexistent.h>
  5575 _ACEOF
  5576 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5577 case "(($ac_try" in
  5578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5579   *) ac_try_echo=$ac_try;;
  5580 esac
  5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5583   ac_status=$?
  5584   grep -v '^ *+' conftest.er1 >conftest.err
  5585   rm -f conftest.er1
  5586   cat conftest.err >&5
  5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5588   (exit $ac_status); } >/dev/null && {
  5589 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5590 	 test ! -s conftest.err
  5591        }; then
  5592   # Broken: success on invalid input.
  5593 continue
  5594 else
  5595   echo "$as_me: failed program was:" >&5
  5596 sed 's/^/| /' conftest.$ac_ext >&5
  5598   # Passes both tests.
  5599 ac_preproc_ok=:
  5600 break
  5601 fi
  5603 rm -f conftest.err conftest.$ac_ext
  5605 done
  5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5607 rm -f conftest.err conftest.$ac_ext
  5608 if $ac_preproc_ok; then
  5609   break
  5610 fi
  5612     done
  5613     ac_cv_prog_CPP=$CPP
  5615 fi
  5616   CPP=$ac_cv_prog_CPP
  5617 else
  5618   ac_cv_prog_CPP=$CPP
  5619 fi
  5620 { echo "$as_me:$LINENO: result: $CPP" >&5
  5621 echo "${ECHO_T}$CPP" >&6; }
  5622 ac_preproc_ok=false
  5623 for ac_c_preproc_warn_flag in '' yes
  5624 do
  5625   # Use a header file that comes with gcc, so configuring glibc
  5626   # with a fresh cross-compiler works.
  5627   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5628   # <limits.h> exists even on freestanding compilers.
  5629   # On the NeXT, cc -E runs the code through the compiler's parser,
  5630   # not just through cpp. "Syntax error" is here to catch this case.
  5631   cat >conftest.$ac_ext <<_ACEOF
  5632 /* confdefs.h.  */
  5633 _ACEOF
  5634 cat confdefs.h >>conftest.$ac_ext
  5635 cat >>conftest.$ac_ext <<_ACEOF
  5636 /* end confdefs.h.  */
  5637 #ifdef __STDC__
  5638 # include <limits.h>
  5639 #else
  5640 # include <assert.h>
  5641 #endif
  5642 		     Syntax error
  5643 _ACEOF
  5644 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5645 case "(($ac_try" in
  5646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5647   *) ac_try_echo=$ac_try;;
  5648 esac
  5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5651   ac_status=$?
  5652   grep -v '^ *+' conftest.er1 >conftest.err
  5653   rm -f conftest.er1
  5654   cat conftest.err >&5
  5655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5656   (exit $ac_status); } >/dev/null && {
  5657 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5658 	 test ! -s conftest.err
  5659        }; then
  5661 else
  5662   echo "$as_me: failed program was:" >&5
  5663 sed 's/^/| /' conftest.$ac_ext >&5
  5665   # Broken: fails on valid input.
  5666 continue
  5667 fi
  5669 rm -f conftest.err conftest.$ac_ext
  5671   # OK, works on sane cases.  Now check whether nonexistent headers
  5672   # can be detected and how.
  5673   cat >conftest.$ac_ext <<_ACEOF
  5674 /* confdefs.h.  */
  5675 _ACEOF
  5676 cat confdefs.h >>conftest.$ac_ext
  5677 cat >>conftest.$ac_ext <<_ACEOF
  5678 /* end confdefs.h.  */
  5679 #include <ac_nonexistent.h>
  5680 _ACEOF
  5681 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5682 case "(($ac_try" in
  5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5684   *) ac_try_echo=$ac_try;;
  5685 esac
  5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5688   ac_status=$?
  5689   grep -v '^ *+' conftest.er1 >conftest.err
  5690   rm -f conftest.er1
  5691   cat conftest.err >&5
  5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5693   (exit $ac_status); } >/dev/null && {
  5694 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5695 	 test ! -s conftest.err
  5696        }; then
  5697   # Broken: success on invalid input.
  5698 continue
  5699 else
  5700   echo "$as_me: failed program was:" >&5
  5701 sed 's/^/| /' conftest.$ac_ext >&5
  5703   # Passes both tests.
  5704 ac_preproc_ok=:
  5705 break
  5706 fi
  5708 rm -f conftest.err conftest.$ac_ext
  5710 done
  5711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5712 rm -f conftest.err conftest.$ac_ext
  5713 if $ac_preproc_ok; then
  5715 else
  5716   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5717 See \`config.log' for more details." >&5
  5718 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5719 See \`config.log' for more details." >&2;}
  5720    { (exit 1); exit 1; }; }
  5721 fi
  5723 ac_ext=c
  5724 ac_cpp='$CPP $CPPFLAGS'
  5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5730 ac_main_cc="$CC"
  5731 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
  5733 if test -z "$CC_FOR_BUILD"; then
  5734     if test "$#" = yes; then
  5735   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  5736 See \`config.log' for more details." >&5
  5737 echo "$as_me: error: cannot run test program while cross compiling
  5738 See \`config.log' for more details." >&2;}
  5739    { (exit 1); exit 1; }; }
  5740 else
  5741   cat >conftest.$ac_ext <<_ACEOF
  5742 int main(){return 0;}
  5743 _ACEOF
  5744 rm -f conftest$ac_exeext
  5745 if { (ac_try="$ac_link"
  5746 case "(($ac_try" in
  5747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5748   *) ac_try_echo=$ac_try;;
  5749 esac
  5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5751   (eval "$ac_link") 2>&5
  5752   ac_status=$?
  5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5755   { (case "(($ac_try" in
  5756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5757   *) ac_try_echo=$ac_try;;
  5758 esac
  5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5760   (eval "$ac_try") 2>&5
  5761   ac_status=$?
  5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5763   (exit $ac_status); }; }; then
  5764   CC_FOR_BUILD="$CC"
  5765 else
  5766   echo "$as_me: program exited with status $ac_status" >&5
  5767 echo "$as_me: failed program was:" >&5
  5768 sed 's/^/| /' conftest.$ac_ext >&5
  5770 fi
  5771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5772 fi
  5775 fi
  5778 ac_ext=c
  5779 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  5780 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  5781 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5782 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  5783 if test -n "$ac_build_tool_prefix"; then
  5784   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5785 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
  5786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5788 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5789   echo $ECHO_N "(cached) $ECHO_C" >&6
  5790 else
  5791   if test -n "$CC_FOR_BUILD"; then
  5792   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5793 else
  5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795 for as_dir in $PATH
  5796 do
  5797   IFS=$as_save_IFS
  5798   test -z "$as_dir" && as_dir=.
  5799   for ac_exec_ext in '' $ac_executable_extensions; do
  5800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5801     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
  5802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803     break 2
  5804   fi
  5805 done
  5806 done
  5807 IFS=$as_save_IFS
  5809 fi
  5810 fi
  5811 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5812 if test -n "$CC_FOR_BUILD"; then
  5813   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5814 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5815 else
  5816   { echo "$as_me:$LINENO: result: no" >&5
  5817 echo "${ECHO_T}no" >&6; }
  5818 fi
  5821 fi
  5822 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
  5823   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  5824   # Extract the first word of "gcc", so it can be a program name with args.
  5825 set dummy gcc; ac_word=$2
  5826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5828 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  5829   echo $ECHO_N "(cached) $ECHO_C" >&6
  5830 else
  5831   if test -n "$ac_ct_CC_FOR_BUILD"; then
  5832   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  5833 else
  5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5835 for as_dir in $PATH
  5836 do
  5837   IFS=$as_save_IFS
  5838   test -z "$as_dir" && as_dir=.
  5839   for ac_exec_ext in '' $ac_executable_extensions; do
  5840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5841     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
  5842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5843     break 2
  5844   fi
  5845 done
  5846 done
  5847 IFS=$as_save_IFS
  5849 fi
  5850 fi
  5851 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  5852 if test -n "$ac_ct_CC_FOR_BUILD"; then
  5853   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  5854 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  5855 else
  5856   { echo "$as_me:$LINENO: result: no" >&5
  5857 echo "${ECHO_T}no" >&6; }
  5858 fi
  5860   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  5861     CC_FOR_BUILD=""
  5862   else
  5863     case $#:$ac_tool_warned in
  5864 yes:)
  5865 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5866 whose name does not start with the build triplet.  If you think this
  5867 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5868 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5869 whose name does not start with the build triplet.  If you think this
  5870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5871 ac_tool_warned=yes ;;
  5872 esac
  5873     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  5874   fi
  5875 else
  5876   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
  5877 fi
  5879 if test -z "$CC_FOR_BUILD"; then
  5880           if test -n "$ac_build_tool_prefix"; then
  5881     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5882 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
  5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5885 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5886   echo $ECHO_N "(cached) $ECHO_C" >&6
  5887 else
  5888   if test -n "$CC_FOR_BUILD"; then
  5889   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5890 else
  5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5892 for as_dir in $PATH
  5893 do
  5894   IFS=$as_save_IFS
  5895   test -z "$as_dir" && as_dir=.
  5896   for ac_exec_ext in '' $ac_executable_extensions; do
  5897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5898     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
  5899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5900     break 2
  5901   fi
  5902 done
  5903 done
  5904 IFS=$as_save_IFS
  5906 fi
  5907 fi
  5908 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5909 if test -n "$CC_FOR_BUILD"; then
  5910   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5911 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5912 else
  5913   { echo "$as_me:$LINENO: result: no" >&5
  5914 echo "${ECHO_T}no" >&6; }
  5915 fi
  5918   fi
  5919 fi
  5920 if test -z "$CC_FOR_BUILD"; then
  5921   # Extract the first word of "cc", so it can be a program name with args.
  5922 set dummy cc; ac_word=$2
  5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5925 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5926   echo $ECHO_N "(cached) $ECHO_C" >&6
  5927 else
  5928   if test -n "$CC_FOR_BUILD"; then
  5929   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5930 else
  5931   ac_prog_rejected=no
  5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5933 for as_dir in $PATH
  5934 do
  5935   IFS=$as_save_IFS
  5936   test -z "$as_dir" && as_dir=.
  5937   for ac_exec_ext in '' $ac_executable_extensions; do
  5938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5939     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5940        ac_prog_rejected=yes
  5941        continue
  5942      fi
  5943     ac_cv_prog_CC_FOR_BUILD="cc"
  5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5945     break 2
  5946   fi
  5947 done
  5948 done
  5949 IFS=$as_save_IFS
  5951 if test $ac_prog_rejected = yes; then
  5952   # We found a bogon in the path, so make sure we never use it.
  5953   set dummy $ac_cv_prog_CC_FOR_BUILD
  5954   shift
  5955   if test $# != 0; then
  5956     # We chose a different compiler from the bogus one.
  5957     # However, it has the same basename, so the bogon will be chosen
  5958     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
  5959     shift
  5960     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
  5961   fi
  5962 fi
  5963 fi
  5964 fi
  5965 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5966 if test -n "$CC_FOR_BUILD"; then
  5967   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5968 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5969 else
  5970   { echo "$as_me:$LINENO: result: no" >&5
  5971 echo "${ECHO_T}no" >&6; }
  5972 fi
  5975 fi
  5976 if test -z "$CC_FOR_BUILD"; then
  5977   if test -n "$ac_build_tool_prefix"; then
  5978   for ac_prog in cl.exe
  5979   do
  5980     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5981 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
  5982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5984 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5985   echo $ECHO_N "(cached) $ECHO_C" >&6
  5986 else
  5987   if test -n "$CC_FOR_BUILD"; then
  5988   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5989 else
  5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5991 for as_dir in $PATH
  5992 do
  5993   IFS=$as_save_IFS
  5994   test -z "$as_dir" && as_dir=.
  5995   for ac_exec_ext in '' $ac_executable_extensions; do
  5996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5997     ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
  5998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5999     break 2
  6000   fi
  6001 done
  6002 done
  6003 IFS=$as_save_IFS
  6005 fi
  6006 fi
  6007 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  6008 if test -n "$CC_FOR_BUILD"; then
  6009   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  6010 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  6011 else
  6012   { echo "$as_me:$LINENO: result: no" >&5
  6013 echo "${ECHO_T}no" >&6; }
  6014 fi
  6017     test -n "$CC_FOR_BUILD" && break
  6018   done
  6019 fi
  6020 if test -z "$CC_FOR_BUILD"; then
  6021   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  6022   for ac_prog in cl.exe
  6023 do
  6024   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6025 set dummy $ac_prog; ac_word=$2
  6026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6028 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  6029   echo $ECHO_N "(cached) $ECHO_C" >&6
  6030 else
  6031   if test -n "$ac_ct_CC_FOR_BUILD"; then
  6032   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  6033 else
  6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6035 for as_dir in $PATH
  6036 do
  6037   IFS=$as_save_IFS
  6038   test -z "$as_dir" && as_dir=.
  6039   for ac_exec_ext in '' $ac_executable_extensions; do
  6040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6041     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
  6042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6043     break 2
  6044   fi
  6045 done
  6046 done
  6047 IFS=$as_save_IFS
  6049 fi
  6050 fi
  6051 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  6052 if test -n "$ac_ct_CC_FOR_BUILD"; then
  6053   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  6054 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  6055 else
  6056   { echo "$as_me:$LINENO: result: no" >&5
  6057 echo "${ECHO_T}no" >&6; }
  6058 fi
  6061   test -n "$ac_ct_CC_FOR_BUILD" && break
  6062 done
  6064   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  6065     CC_FOR_BUILD=""
  6066   else
  6067     case $#:$ac_tool_warned in
  6068 yes:)
  6069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6070 whose name does not start with the build triplet.  If you think this
  6071 configuration is useful to you, please write to autoconf@gnu.org." >&5
  6072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6073 whose name does not start with the build triplet.  If you think this
  6074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6075 ac_tool_warned=yes ;;
  6076 esac
  6077     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  6078   fi
  6079 fi
  6081 fi
  6084 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  6085 See \`config.log' for more details." >&5
  6086 echo "$as_me: error: no acceptable C compiler found in \$PATH
  6087 See \`config.log' for more details." >&2;}
  6088    { (exit 1); exit 1; }; }
  6090 # Provide some information about the compiler.
  6091 echo "$as_me:$LINENO: checking for C compiler version" >&5
  6092 ac_compiler=`set X $ac_build_compile; echo $2`
  6093 { (ac_try="$ac_compiler --version >&5"
  6094 case "(($ac_try" in
  6095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6096   *) ac_try_echo=$ac_try;;
  6097 esac
  6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6099   (eval "$ac_compiler --version >&5") 2>&5
  6100   ac_status=$?
  6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6102   (exit $ac_status); }
  6103 { (ac_try="$ac_compiler -v >&5"
  6104 case "(($ac_try" in
  6105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6106   *) ac_try_echo=$ac_try;;
  6107 esac
  6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6109   (eval "$ac_compiler -v >&5") 2>&5
  6110   ac_status=$?
  6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6112   (exit $ac_status); }
  6113 { (ac_try="$ac_compiler -V >&5"
  6114 case "(($ac_try" in
  6115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6116   *) ac_try_echo=$ac_try;;
  6117 esac
  6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6119   (eval "$ac_compiler -V >&5") 2>&5
  6120   ac_status=$?
  6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6122   (exit $ac_status); }
  6124 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  6125 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  6126 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  6127   echo $ECHO_N "(cached) $ECHO_C" >&6
  6128 else
  6129   cat >conftest.$ac_ext <<_ACEOF
  6130 /* confdefs.h.  */
  6131 _ACEOF
  6132 cat confdefs.h >>conftest.$ac_ext
  6133 cat >>conftest.$ac_ext <<_ACEOF
  6134 /* end confdefs.h.  */
  6136 int
  6137 main ()
  6139 #ifndef __GNUC__
  6140        choke me
  6141 #endif
  6144   return 0;
  6146 _ACEOF
  6147 rm -f conftest.$ac_build_objext
  6148 if { (ac_try="$ac_build_compile"
  6149 case "(($ac_try" in
  6150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6151   *) ac_try_echo=$ac_try;;
  6152 esac
  6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6154   (eval "$ac_build_compile") 2>conftest.er1
  6155   ac_status=$?
  6156   grep -v '^ *+' conftest.er1 >conftest.err
  6157   rm -f conftest.er1
  6158   cat conftest.err >&5
  6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6160   (exit $ac_status); } && {
  6161 	 test -z "$ac_c_werror_flag" ||
  6162 	 test ! -s conftest.err
  6163        } && test -s conftest.$ac_build_objext; then
  6164   ac_build_compiler_gnu=yes
  6165 else
  6166   echo "$as_me: failed program was:" >&5
  6167 sed 's/^/| /' conftest.$ac_ext >&5
  6169 	ac_build_compiler_gnu=no
  6170 fi
  6172 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6173 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
  6175 fi
  6176 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  6177 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  6178 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
  6179 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
  6180 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
  6181 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
  6182 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
  6183 if test "${ac_cv_build_prog_cc_g+set}" = set; then
  6184   echo $ECHO_N "(cached) $ECHO_C" >&6
  6185 else
  6186   ac_save_c_werror_flag=$ac_c_werror_flag
  6187    ac_c_werror_flag=yes
  6188    ac_cv_build_prog_cc_g=no
  6189    CFLAGS_FOR_BUILD="-g"
  6190    cat >conftest.$ac_ext <<_ACEOF
  6191 /* confdefs.h.  */
  6192 _ACEOF
  6193 cat confdefs.h >>conftest.$ac_ext
  6194 cat >>conftest.$ac_ext <<_ACEOF
  6195 /* end confdefs.h.  */
  6197 int
  6198 main ()
  6202   return 0;
  6204 _ACEOF
  6205 rm -f conftest.$ac_build_objext
  6206 if { (ac_try="$ac_build_compile"
  6207 case "(($ac_try" in
  6208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6209   *) ac_try_echo=$ac_try;;
  6210 esac
  6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6212   (eval "$ac_build_compile") 2>conftest.er1
  6213   ac_status=$?
  6214   grep -v '^ *+' conftest.er1 >conftest.err
  6215   rm -f conftest.er1
  6216   cat conftest.err >&5
  6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6218   (exit $ac_status); } && {
  6219 	 test -z "$ac_c_werror_flag" ||
  6220 	 test ! -s conftest.err
  6221        } && test -s conftest.$ac_build_objext; then
  6222   ac_cv_build_prog_cc_g=yes
  6223 else
  6224   echo "$as_me: failed program was:" >&5
  6225 sed 's/^/| /' conftest.$ac_ext >&5
  6227 	CFLAGS_FOR_BUILD=""
  6228       cat >conftest.$ac_ext <<_ACEOF
  6229 /* confdefs.h.  */
  6230 _ACEOF
  6231 cat confdefs.h >>conftest.$ac_ext
  6232 cat >>conftest.$ac_ext <<_ACEOF
  6233 /* end confdefs.h.  */
  6235 int
  6236 main ()
  6240   return 0;
  6242 _ACEOF
  6243 rm -f conftest.$ac_build_objext
  6244 if { (ac_try="$ac_build_compile"
  6245 case "(($ac_try" in
  6246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6247   *) ac_try_echo=$ac_try;;
  6248 esac
  6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6250   (eval "$ac_build_compile") 2>conftest.er1
  6251   ac_status=$?
  6252   grep -v '^ *+' conftest.er1 >conftest.err
  6253   rm -f conftest.er1
  6254   cat conftest.err >&5
  6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256   (exit $ac_status); } && {
  6257 	 test -z "$ac_c_werror_flag" ||
  6258 	 test ! -s conftest.err
  6259        } && test -s conftest.$ac_build_objext; then
  6261 else
  6262   echo "$as_me: failed program was:" >&5
  6263 sed 's/^/| /' conftest.$ac_ext >&5
  6265 	ac_c_werror_flag=$ac_save_c_werror_flag
  6266 	 CFLAGS_FOR_BUILD="-g"
  6267 	 cat >conftest.$ac_ext <<_ACEOF
  6268 /* confdefs.h.  */
  6269 _ACEOF
  6270 cat confdefs.h >>conftest.$ac_ext
  6271 cat >>conftest.$ac_ext <<_ACEOF
  6272 /* end confdefs.h.  */
  6274 int
  6275 main ()
  6279   return 0;
  6281 _ACEOF
  6282 rm -f conftest.$ac_build_objext
  6283 if { (ac_try="$ac_build_compile"
  6284 case "(($ac_try" in
  6285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6286   *) ac_try_echo=$ac_try;;
  6287 esac
  6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6289   (eval "$ac_build_compile") 2>conftest.er1
  6290   ac_status=$?
  6291   grep -v '^ *+' conftest.er1 >conftest.err
  6292   rm -f conftest.er1
  6293   cat conftest.err >&5
  6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6295   (exit $ac_status); } && {
  6296 	 test -z "$ac_c_werror_flag" ||
  6297 	 test ! -s conftest.err
  6298        } && test -s conftest.$ac_build_objext; then
  6299   ac_cv_build_prog_cc_g=yes
  6300 else
  6301   echo "$as_me: failed program was:" >&5
  6302 sed 's/^/| /' conftest.$ac_ext >&5
  6305 fi
  6307 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6308 fi
  6310 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6311 fi
  6313 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6314    ac_c_werror_flag=$ac_save_c_werror_flag
  6315 fi
  6316 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
  6317 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
  6318 if test "$ac_test_CFLAGS" = set; then
  6319   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
  6320 elif test $ac_cv_build_prog_cc_g = yes; then
  6321   if test "$GCC" = yes; then
  6322     CFLAGS_FOR_BUILD="-g -O2"
  6323   else
  6324     CFLAGS_FOR_BUILD="-g"
  6325   fi
  6326 else
  6327   if test "$GCC" = yes; then
  6328     CFLAGS_FOR_BUILD="-O2"
  6329   else
  6330     CFLAGS_FOR_BUILD=
  6331   fi
  6332 fi
  6333 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6334 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6335 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6336   echo $ECHO_N "(cached) $ECHO_C" >&6
  6337 else
  6338   ac_cv_build_prog_cc_stdc=no
  6339 ac_save_CC=$CC_FOR_BUILD
  6340 cat >conftest.$ac_ext <<_ACEOF
  6341 /* confdefs.h.  */
  6342 _ACEOF
  6343 cat confdefs.h >>conftest.$ac_ext
  6344 cat >>conftest.$ac_ext <<_ACEOF
  6345 /* end confdefs.h.  */
  6346 #include <stdarg.h>
  6347 #include <stdio.h>
  6348 #include <sys/types.h>
  6349 #include <sys/stat.h>
  6350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6351 struct buf { int x; };
  6352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6353 static char *e (p, i)
  6354      char **p;
  6355      int i;
  6357   return p[i];
  6359 static char *f (char * (*g) (char **, int), char **p, ...)
  6361   char *s;
  6362   va_list v;
  6363   va_start (v,p);
  6364   s = g (p, va_arg (v,int));
  6365   va_end (v);
  6366   return s;
  6369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6370    function prototypes and stuff, but not '\xHH' hex character constants.
  6371    These don't provoke an error unfortunately, instead are silently treated
  6372    as 'x'.  The following induces an error, until -std is added to get
  6373    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6374    array size at least.  It's necessary to write '\x00'==0 to get something
  6375    that's true only with -std.  */
  6376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6379    inside strings and character constants.  */
  6380 #define FOO(x) 'x'
  6381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6383 int test (int i, double x);
  6384 struct s1 {int (*f) (int a);};
  6385 struct s2 {int (*f) (double a);};
  6386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6387 int argc;
  6388 char **argv;
  6389 int
  6390 main ()
  6392 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6394   return 0;
  6396 _ACEOF
  6397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6398 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6399 do
  6400   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6401   rm -f conftest.$ac_build_objext
  6402 if { (ac_try="$ac_build_compile"
  6403 case "(($ac_try" in
  6404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6405   *) ac_try_echo=$ac_try;;
  6406 esac
  6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6408   (eval "$ac_build_compile") 2>conftest.er1
  6409   ac_status=$?
  6410   grep -v '^ *+' conftest.er1 >conftest.err
  6411   rm -f conftest.er1
  6412   cat conftest.err >&5
  6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6414   (exit $ac_status); } && {
  6415 	 test -z "$ac_c_werror_flag" ||
  6416 	 test ! -s conftest.err
  6417        } && test -s conftest.$ac_build_objext; then
  6418   ac_cv_build_prog_cc_stdc=$ac_arg
  6419 else
  6420   echo "$as_me: failed program was:" >&5
  6421 sed 's/^/| /' conftest.$ac_ext >&5
  6424 fi
  6426 rm -f core conftest.err conftest.$ac_build_objext
  6427   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6428 done
  6429 rm -f conftest.$ac_ext
  6430 CC_FOR_BUILD=$ac_save_CC
  6432 fi
  6433 # AC_CACHE_VAL
  6434 case "x$ac_cv_build_prog_cc_stdc" in
  6435   x)
  6436     { echo "$as_me:$LINENO: result: none needed" >&5
  6437 echo "${ECHO_T}none needed" >&6; } ;;
  6438   xno)
  6439     { echo "$as_me:$LINENO: result: unsupported" >&5
  6440 echo "${ECHO_T}unsupported" >&6; } ;;
  6441   *)
  6442     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6443     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6444 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6445 esac
  6448 ac_ext=c
  6449 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6450 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6451 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6452 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6454 depcc="$CC_FOR_BUILD"   am_compiler_list=
  6456 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6457 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  6458 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
  6459   echo $ECHO_N "(cached) $ECHO_C" >&6
  6460 else
  6461   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6462   # We make a subdir and do the tests there.  Otherwise we can end up
  6463   # making bogus files that we don't know about and never remove.  For
  6464   # instance it was reported that on HP-UX the gcc test will end up
  6465   # making a dummy file named `D' -- because `-MD' means `put the output
  6466   # in D'.
  6467   mkdir conftest.dir
  6468   # Copy depcomp to subdir because otherwise we won't find it if we're
  6469   # using a relative directory.
  6470   cp "$am_depcomp" conftest.dir
  6471   cd conftest.dir
  6472   # We will build objects and dependencies in a subdirectory because
  6473   # it helps to detect inapplicable dependency modes.  For instance
  6474   # both Tru64's cc and ICC support -MD to output dependencies as a
  6475   # side effect of compilation, but ICC will put the dependencies in
  6476   # the current directory while Tru64 will put them in the object
  6477   # directory.
  6478   mkdir sub
  6480   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6481   if test "$am_compiler_list" = ""; then
  6482      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6483   fi
  6484   for depmode in $am_compiler_list; do
  6485     # Setup a source with many dependencies, because some compilers
  6486     # like to wrap large dependency lists on column 80 (with \), and
  6487     # we should not choose a depcomp mode which is confused by this.
  6489     # We need to recreate these files for each test, as the compiler may
  6490     # overwrite some of them when testing with obscure command lines.
  6491     # This happens at least with the AIX C compiler.
  6492     : > sub/conftest.c
  6493     for i in 1 2 3 4 5 6; do
  6494       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6495       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6496       # Solaris 8's {/usr,}/bin/sh.
  6497       touch sub/conftst$i.h
  6498     done
  6499     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6501     case $depmode in
  6502     nosideeffect)
  6503       # after this tag, mechanisms are not by side-effect, so they'll
  6504       # only be used when explicitly requested
  6505       if test "x$enable_dependency_tracking" = xyes; then
  6506 	continue
  6507       else
  6508 	break
  6509       fi
  6510       ;;
  6511     none) break ;;
  6512     esac
  6513     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6514     # mode.  It turns out that the SunPro C++ compiler does not properly
  6515     # handle `-M -o', and we need to detect this.
  6516     if depmode=$depmode \
  6517        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6518        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6519        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6520          >/dev/null 2>conftest.err &&
  6521        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6522        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6523        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6524       # icc doesn't choke on unknown options, it will just issue warnings
  6525       # or remarks (even with -Werror).  So we grep stderr for any message
  6526       # that says an option was ignored or not supported.
  6527       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6528       #   icc: Command line warning: ignoring option '-M'; no argument required
  6529       # The diagnosis changed in icc 8.0:
  6530       #   icc: Command line remark: option '-MP' not supported
  6531       if (grep 'ignoring option' conftest.err ||
  6532           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6533         am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
  6534         break
  6535       fi
  6536     fi
  6537   done
  6539   cd ..
  6540   rm -rf conftest.dir
  6541 else
  6542   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6543 fi
  6545 fi
  6546 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
  6547 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
  6548 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
  6552 if
  6553   test "x$enable_dependency_tracking" != xno \
  6554   && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
  6555   am__fastdepCC_FOR_BUILD_TRUE=
  6556   am__fastdepCC_FOR_BUILD_FALSE='#'
  6557 else
  6558   am__fastdepCC_FOR_BUILD_TRUE='#'
  6559   am__fastdepCC_FOR_BUILD_FALSE=
  6560 fi
  6563    case $ac_cv_build_prog_cc_stdc in
  6564   no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
  6565   *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
  6566 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
  6567 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6568   echo $ECHO_N "(cached) $ECHO_C" >&6
  6569 else
  6570   ac_cv_build_prog_cc_stdc=no
  6571 ac_save_CC=$CC_FOR_BUILD
  6572 cat >conftest.$ac_ext <<_ACEOF
  6573 /* confdefs.h.  */
  6574 _ACEOF
  6575 cat confdefs.h >>conftest.$ac_ext
  6576 cat >>conftest.$ac_ext <<_ACEOF
  6577 /* end confdefs.h.  */
  6578 #include <stdarg.h>
  6579 #include <stdbool.h>
  6580 #include <stdlib.h>
  6581 #include <wchar.h>
  6582 #include <stdio.h>
  6584 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
  6585 #define debug(...) fprintf (stderr, __VA_ARGS__)
  6586 #define showlist(...) puts (#__VA_ARGS__)
  6587 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  6588 static void
  6589 test_varargs_macros (void)
  6591   int x = 1234;
  6592   int y = 5678;
  6593   debug ("Flag");
  6594   debug ("X = %d\n", x);
  6595   showlist (The first, second, and third items.);
  6596   report (x>y, "x is %d but y is %d", x, y);
  6599 // Check long long types.
  6600 #define BIG64 18446744073709551615ull
  6601 #define BIG32 4294967295ul
  6602 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  6603 #if !BIG_OK
  6604   your preprocessor is broken;
  6605 #endif
  6606 #if BIG_OK
  6607 #else
  6608   your preprocessor is broken;
  6609 #endif
  6610 static long long int bignum = -9223372036854775807LL;
  6611 static unsigned long long int ubignum = BIG64;
  6613 struct incomplete_array
  6615   int datasize;
  6616   double data[];
  6617 };
  6619 struct named_init {
  6620   int number;
  6621   const wchar_t *name;
  6622   double average;
  6623 };
  6625 typedef const char *ccp;
  6627 static inline int
  6628 test_restrict (ccp restrict text)
  6630   // See if C++-style comments work.
  6631   // Iterate through items via the restricted pointer.
  6632   // Also check for declarations in for loops.
  6633   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  6634     continue;
  6635   return 0;
  6638 // Check varargs and va_copy.
  6639 static void
  6640 test_varargs (const char *format, ...)
  6642   va_list args;
  6643   va_start (args, format);
  6644   va_list args_copy;
  6645   va_copy (args_copy, args);
  6647   const char *str;
  6648   int number;
  6649   float fnumber;
  6651   while (*format)
  6653       switch (*format++)
  6655 	case 's': // string
  6656 	  str = va_arg (args_copy, const char *);
  6657 	  break;
  6658 	case 'd': // int
  6659 	  number = va_arg (args_copy, int);
  6660 	  break;
  6661 	case 'f': // float
  6662 	  fnumber = va_arg (args_copy, double);
  6663 	  break;
  6664 	default:
  6665 	  break;
  6668   va_end (args_copy);
  6669   va_end (args);
  6672 int
  6673 main ()
  6676   // Check bool.
  6677   _Bool success = false;
  6679   // Check restrict.
  6680   if (test_restrict ("String literal") == 0)
  6681     success = true;
  6682   char *restrict newvar = "Another string";
  6684   // Check varargs.
  6685   test_varargs ("s, d' f .", "string", 65, 34.234);
  6686   test_varargs_macros ();
  6688   // Check flexible array members.
  6689   struct incomplete_array *ia =
  6690     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  6691   ia->datasize = 10;
  6692   for (int i = 0; i < ia->datasize; ++i)
  6693     ia->data[i] = i * 1.234;
  6695   // Check named initializers.
  6696   struct named_init ni = {
  6697     .number = 34,
  6698     .name = L"Test wide string",
  6699     .average = 543.34343,
  6700   };
  6702   ni.number = 58;
  6704   int dynamic_array[ni.number];
  6705   dynamic_array[ni.number - 1] = 543;
  6707   // work around unused variable warnings
  6708   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  6709 	  || dynamic_array[ni.number - 1] != 543);
  6712   return 0;
  6714 _ACEOF
  6715 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  6716 do
  6717   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6718   rm -f conftest.$ac_build_objext
  6719 if { (ac_try="$ac_build_compile"
  6720 case "(($ac_try" in
  6721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6722   *) ac_try_echo=$ac_try;;
  6723 esac
  6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6725   (eval "$ac_build_compile") 2>conftest.er1
  6726   ac_status=$?
  6727   grep -v '^ *+' conftest.er1 >conftest.err
  6728   rm -f conftest.er1
  6729   cat conftest.err >&5
  6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6731   (exit $ac_status); } && {
  6732 	 test -z "$ac_c_werror_flag" ||
  6733 	 test ! -s conftest.err
  6734        } && test -s conftest.$ac_build_objext; then
  6735   ac_cv_build_prog_cc_stdc=$ac_arg
  6736 else
  6737   echo "$as_me: failed program was:" >&5
  6738 sed 's/^/| /' conftest.$ac_ext >&5
  6741 fi
  6743 rm -f core conftest.err conftest.$ac_build_objext
  6744   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6745 done
  6746 rm -f conftest.$ac_ext
  6747 CC_FOR_BUILD=$ac_save_CC
  6749 fi
  6750 # AC_CACHE_VAL
  6751 case "x$ac_cv_build_prog_cc_stdc" in
  6752   x)
  6753     { echo "$as_me:$LINENO: result: none needed" >&5
  6754 echo "${ECHO_T}none needed" >&6; } ;;
  6755   xno)
  6756     { echo "$as_me:$LINENO: result: unsupported" >&5
  6757 echo "${ECHO_T}unsupported" >&6; } ;;
  6758   *)
  6759     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
<