Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1239:be3121267597
prev1235:8da2f3dad9c0
next1245:01e0020adf88
author nkeynes
date Sat Feb 25 21:30:49 2012 +1000 (7 years ago)
permissions -rwxr-xr-x
last change Android support WIP
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_GDBSERVER
   690 GUI_ANDROID_TRUE
   691 GUI_ANDROID_FALSE
   692 CC
   693 CFLAGS
   694 LDFLAGS
   695 CPPFLAGS
   696 ac_ct_CC
   697 EXEEXT
   698 OBJEXT
   699 DEPDIR
   700 am__include
   701 am__quote
   702 AMDEP_TRUE
   703 AMDEP_FALSE
   704 AMDEPBACKSLASH
   705 CCDEPMODE
   706 am__fastdepCC_TRUE
   707 am__fastdepCC_FALSE
   708 CPP
   709 CC
   710 CFLAGS
   711 CPPFLAGS
   712 CC_FOR_BUILD
   713 ac_ct_CC_FOR_BUILD
   714 CC_FOR_BUILDDEPMODE
   715 am__fastdepCC_FOR_BUILD_TRUE
   716 am__fastdepCC_FOR_BUILD_FALSE
   717 CPP
   718 CPPFLAGS
   719 CPP_FOR_BUILD
   720 BUILD_EXEEXT
   721 BUILD_OBJEXT
   722 CFLAGS_FOR_BUILD
   723 CPPFLAGS_FOR_BUILD
   724 OBJC
   725 OBJCFLAGS
   726 ac_ct_OBJC
   727 SED
   728 CCAS
   729 CCASFLAGS
   730 RANLIB
   731 GREP
   732 EGREP
   733 OBJCDEPMODE
   734 am__fastdepOBJC_TRUE
   735 am__fastdepOBJC_FALSE
   736 POD2MAN
   737 POD2HTML
   738 GUI_COCOA_TRUE
   739 GUI_COCOA_FALSE
   740 SOEXT
   741 PLUGINCFLAGS
   742 PLUGINLDFLAGS
   743 LXDREAMLDFLAGS
   744 BUILD_PLUGINS_TRUE
   745 BUILD_PLUGINS_FALSE
   746 LXDREAMCPPFLAGS
   747 PKG_CONFIG
   748 LIBPNG_CFLAGS
   749 LIBPNG_LIBS
   750 GLIB_CFLAGS
   751 GLIB_LIBS
   752 GTK_CFLAGS
   753 GTK_LIBS
   754 GLIB_FOR_BUILD_CFLAGS
   755 GLIB_FOR_BUILD_LIBS
   756 GUI_GTK_TRUE
   757 GUI_GTK_FALSE
   758 LIBISOFS_CFLAGS
   759 LIBISOFS_LIBS
   760 LIBGL_CFLAGS
   761 LIBGL_LIBS
   762 VIDEO_OSMESA_TRUE
   763 VIDEO_OSMESA_FALSE
   764 VIDEO_GLX_TRUE
   765 VIDEO_GLX_FALSE
   766 VIDEO_NSGL_TRUE
   767 VIDEO_NSGL_FALSE
   768 BUILD_SH4X86_TRUE
   769 BUILD_SH4X86_FALSE
   770 AUDIO_OSX_TRUE
   771 AUDIO_OSX_FALSE
   772 SDL_CFLAGS
   773 SDL_LIBS
   774 AUDIO_SDL_TRUE
   775 AUDIO_SDL_FALSE
   776 PULSE_CFLAGS
   777 PULSE_LIBS
   778 AUDIO_PULSE_TRUE
   779 AUDIO_PULSE_FALSE
   780 ESOUND_CFLAGS
   781 ESOUND_LIBS
   782 AUDIO_ESOUND_TRUE
   783 AUDIO_ESOUND_FALSE
   784 ALSA_CFLAGS
   785 ALSA_LIBS
   786 AUDIO_ALSA_TRUE
   787 AUDIO_ALSA_FALSE
   788 CDROM_LINUX_TRUE
   789 CDROM_LINUX_FALSE
   790 CDROM_OSX_TRUE
   791 CDROM_OSX_FALSE
   792 CDROM_NONE_TRUE
   793 CDROM_NONE_FALSE
   794 JOY_LINUX_TRUE
   795 JOY_LINUX_FALSE
   796 INPUT_LIRC_TRUE
   797 INPUT_LIRC_FALSE
   798 SHCC
   799 SHLD
   800 SHOBJCOPY
   801 ARMCC
   802 ARMLD
   803 ARMOBJCOPY
   804 BUILD_SYSTEST_TRUE
   805 BUILD_SYSTEST_FALSE
   806 BUILD_ARMTEST_TRUE
   807 BUILD_ARMTEST_FALSE
   808 LXDREAM_LIBS
   809 GETTEXT_PACKAGE
   810 USE_NLS
   811 MSGFMT
   812 MSGFMT_OPTS
   813 GMSGFMT
   814 XGETTEXT
   815 CATALOGS
   816 CATOBJEXT
   817 DATADIRNAME
   818 GMOFILES
   819 INSTOBJEXT
   820 INTLLIBS
   821 PO_IN_DATADIR_TRUE
   822 PO_IN_DATADIR_FALSE
   823 POFILES
   824 POSUB
   825 MKINSTALLDIRS
   826 LIBOBJS
   827 LTLIBOBJS'
   828 ac_subst_files=''
   829       ac_precious_vars='build_alias
   830 host_alias
   831 target_alias
   832 CC
   833 CFLAGS
   834 LDFLAGS
   835 LIBS
   836 CPPFLAGS
   837 CPP
   838 CC
   839 CFLAGS
   840 CPPFLAGS
   841 CPP
   842 CPPFLAGS
   843 OBJC
   844 OBJCFLAGS
   845 CCAS
   846 CCASFLAGS
   847 PKG_CONFIG
   848 LIBPNG_CFLAGS
   849 LIBPNG_LIBS
   850 GLIB_CFLAGS
   851 GLIB_LIBS
   852 GTK_CFLAGS
   853 GTK_LIBS
   854 GLIB_FOR_BUILD_CFLAGS
   855 GLIB_FOR_BUILD_LIBS
   856 LIBISOFS_CFLAGS
   857 LIBISOFS_LIBS
   858 LIBGL_CFLAGS
   859 LIBGL_LIBS
   860 SDL_CFLAGS
   861 SDL_LIBS
   862 PULSE_CFLAGS
   863 PULSE_LIBS
   864 ESOUND_CFLAGS
   865 ESOUND_LIBS
   866 ALSA_CFLAGS
   867 ALSA_LIBS'
   870 # Initialize some variables set by options.
   871 ac_init_help=
   872 ac_init_version=false
   873 # The variables have the same names as the options, with
   874 # dashes changed to underlines.
   875 cache_file=/dev/null
   876 exec_prefix=NONE
   877 no_create=
   878 no_recursion=
   879 prefix=NONE
   880 program_prefix=NONE
   881 program_suffix=NONE
   882 program_transform_name=s,x,x,
   883 silent=
   884 site=
   885 srcdir=
   886 verbose=
   887 x_includes=NONE
   888 x_libraries=NONE
   890 # Installation directory options.
   891 # These are left unexpanded so users can "make install exec_prefix=/foo"
   892 # and all the variables that are supposed to be based on exec_prefix
   893 # by default will actually change.
   894 # Use braces instead of parens because sh, perl, etc. also accept them.
   895 # (The list follows the same order as the GNU Coding Standards.)
   896 bindir='${exec_prefix}/bin'
   897 sbindir='${exec_prefix}/sbin'
   898 libexecdir='${exec_prefix}/libexec'
   899 datarootdir='${prefix}/share'
   900 datadir='${datarootdir}'
   901 sysconfdir='${prefix}/etc'
   902 sharedstatedir='${prefix}/com'
   903 localstatedir='${prefix}/var'
   904 includedir='${prefix}/include'
   905 oldincludedir='/usr/include'
   906 docdir='${datarootdir}/doc/${PACKAGE}'
   907 infodir='${datarootdir}/info'
   908 htmldir='${docdir}'
   909 dvidir='${docdir}'
   910 pdfdir='${docdir}'
   911 psdir='${docdir}'
   912 libdir='${exec_prefix}/lib'
   913 localedir='${datarootdir}/locale'
   914 mandir='${datarootdir}/man'
   916 ac_prev=
   917 ac_dashdash=
   918 for ac_option
   919 do
   920   # If the previous option needs an argument, assign it.
   921   if test -n "$ac_prev"; then
   922     eval $ac_prev=\$ac_option
   923     ac_prev=
   924     continue
   925   fi
   927   case $ac_option in
   928   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   929   *)	ac_optarg=yes ;;
   930   esac
   932   # Accept the important Cygnus configure options, so we can diagnose typos.
   934   case $ac_dashdash$ac_option in
   935   --)
   936     ac_dashdash=yes ;;
   938   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   939     ac_prev=bindir ;;
   940   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   941     bindir=$ac_optarg ;;
   943   -build | --build | --buil | --bui | --bu)
   944     ac_prev=build_alias ;;
   945   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   946     build_alias=$ac_optarg ;;
   948   -cache-file | --cache-file | --cache-fil | --cache-fi \
   949   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   950     ac_prev=cache_file ;;
   951   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   952   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   953     cache_file=$ac_optarg ;;
   955   --config-cache | -C)
   956     cache_file=config.cache ;;
   958   -datadir | --datadir | --datadi | --datad)
   959     ac_prev=datadir ;;
   960   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   961     datadir=$ac_optarg ;;
   963   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   964   | --dataroo | --dataro | --datar)
   965     ac_prev=datarootdir ;;
   966   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   967   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   968     datarootdir=$ac_optarg ;;
   970   -disable-* | --disable-*)
   971     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   972     # Reject names that are not valid shell variable names.
   973     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   974       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   975    { (exit 1); exit 1; }; }
   976     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   977     eval enable_$ac_feature=no ;;
   979   -docdir | --docdir | --docdi | --doc | --do)
   980     ac_prev=docdir ;;
   981   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   982     docdir=$ac_optarg ;;
   984   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   985     ac_prev=dvidir ;;
   986   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   987     dvidir=$ac_optarg ;;
   989   -enable-* | --enable-*)
   990     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   991     # Reject names that are not valid shell variable names.
   992     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   993       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   994    { (exit 1); exit 1; }; }
   995     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   996     eval enable_$ac_feature=\$ac_optarg ;;
   998   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   999   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1000   | --exec | --exe | --ex)
  1001     ac_prev=exec_prefix ;;
  1002   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1003   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1004   | --exec=* | --exe=* | --ex=*)
  1005     exec_prefix=$ac_optarg ;;
  1007   -gas | --gas | --ga | --g)
  1008     # Obsolete; use --with-gas.
  1009     with_gas=yes ;;
  1011   -help | --help | --hel | --he | -h)
  1012     ac_init_help=long ;;
  1013   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1014     ac_init_help=recursive ;;
  1015   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1016     ac_init_help=short ;;
  1018   -host | --host | --hos | --ho)
  1019     ac_prev=host_alias ;;
  1020   -host=* | --host=* | --hos=* | --ho=*)
  1021     host_alias=$ac_optarg ;;
  1023   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1024     ac_prev=htmldir ;;
  1025   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1026   | --ht=*)
  1027     htmldir=$ac_optarg ;;
  1029   -includedir | --includedir | --includedi | --included | --include \
  1030   | --includ | --inclu | --incl | --inc)
  1031     ac_prev=includedir ;;
  1032   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1033   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1034     includedir=$ac_optarg ;;
  1036   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1037     ac_prev=infodir ;;
  1038   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1039     infodir=$ac_optarg ;;
  1041   -libdir | --libdir | --libdi | --libd)
  1042     ac_prev=libdir ;;
  1043   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1044     libdir=$ac_optarg ;;
  1046   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1047   | --libexe | --libex | --libe)
  1048     ac_prev=libexecdir ;;
  1049   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1050   | --libexe=* | --libex=* | --libe=*)
  1051     libexecdir=$ac_optarg ;;
  1053   -localedir | --localedir | --localedi | --localed | --locale)
  1054     ac_prev=localedir ;;
  1055   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1056     localedir=$ac_optarg ;;
  1058   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1059   | --localstate | --localstat | --localsta | --localst | --locals)
  1060     ac_prev=localstatedir ;;
  1061   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1062   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1063     localstatedir=$ac_optarg ;;
  1065   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1066     ac_prev=mandir ;;
  1067   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1068     mandir=$ac_optarg ;;
  1070   -nfp | --nfp | --nf)
  1071     # Obsolete; use --without-fp.
  1072     with_fp=no ;;
  1074   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1075   | --no-cr | --no-c | -n)
  1076     no_create=yes ;;
  1078   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1079   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1080     no_recursion=yes ;;
  1082   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1083   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1084   | --oldin | --oldi | --old | --ol | --o)
  1085     ac_prev=oldincludedir ;;
  1086   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1087   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1088   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1089     oldincludedir=$ac_optarg ;;
  1091   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1092     ac_prev=prefix ;;
  1093   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1094     prefix=$ac_optarg ;;
  1096   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1097   | --program-pre | --program-pr | --program-p)
  1098     ac_prev=program_prefix ;;
  1099   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1100   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1101     program_prefix=$ac_optarg ;;
  1103   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1104   | --program-suf | --program-su | --program-s)
  1105     ac_prev=program_suffix ;;
  1106   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1107   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1108     program_suffix=$ac_optarg ;;
  1110   -program-transform-name | --program-transform-name \
  1111   | --program-transform-nam | --program-transform-na \
  1112   | --program-transform-n | --program-transform- \
  1113   | --program-transform | --program-transfor \
  1114   | --program-transfo | --program-transf \
  1115   | --program-trans | --program-tran \
  1116   | --progr-tra | --program-tr | --program-t)
  1117     ac_prev=program_transform_name ;;
  1118   -program-transform-name=* | --program-transform-name=* \
  1119   | --program-transform-nam=* | --program-transform-na=* \
  1120   | --program-transform-n=* | --program-transform-=* \
  1121   | --program-transform=* | --program-transfor=* \
  1122   | --program-transfo=* | --program-transf=* \
  1123   | --program-trans=* | --program-tran=* \
  1124   | --progr-tra=* | --program-tr=* | --program-t=*)
  1125     program_transform_name=$ac_optarg ;;
  1127   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1128     ac_prev=pdfdir ;;
  1129   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1130     pdfdir=$ac_optarg ;;
  1132   -psdir | --psdir | --psdi | --psd | --ps)
  1133     ac_prev=psdir ;;
  1134   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1135     psdir=$ac_optarg ;;
  1137   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1138   | -silent | --silent | --silen | --sile | --sil)
  1139     silent=yes ;;
  1141   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1142     ac_prev=sbindir ;;
  1143   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1144   | --sbi=* | --sb=*)
  1145     sbindir=$ac_optarg ;;
  1147   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1148   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1149   | --sharedst | --shareds | --shared | --share | --shar \
  1150   | --sha | --sh)
  1151     ac_prev=sharedstatedir ;;
  1152   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1153   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1154   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1155   | --sha=* | --sh=*)
  1156     sharedstatedir=$ac_optarg ;;
  1158   -site | --site | --sit)
  1159     ac_prev=site ;;
  1160   -site=* | --site=* | --sit=*)
  1161     site=$ac_optarg ;;
  1163   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1164     ac_prev=srcdir ;;
  1165   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1166     srcdir=$ac_optarg ;;
  1168   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1169   | --syscon | --sysco | --sysc | --sys | --sy)
  1170     ac_prev=sysconfdir ;;
  1171   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1172   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1173     sysconfdir=$ac_optarg ;;
  1175   -target | --target | --targe | --targ | --tar | --ta | --t)
  1176     ac_prev=target_alias ;;
  1177   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1178     target_alias=$ac_optarg ;;
  1180   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1181     verbose=yes ;;
  1183   -version | --version | --versio | --versi | --vers | -V)
  1184     ac_init_version=: ;;
  1186   -with-* | --with-*)
  1187     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1188     # Reject names that are not valid shell variable names.
  1189     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1190       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1191    { (exit 1); exit 1; }; }
  1192     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1193     eval with_$ac_package=\$ac_optarg ;;
  1195   -without-* | --without-*)
  1196     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1197     # Reject names that are not valid shell variable names.
  1198     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1199       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1200    { (exit 1); exit 1; }; }
  1201     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1202     eval with_$ac_package=no ;;
  1204   --x)
  1205     # Obsolete; use --with-x.
  1206     with_x=yes ;;
  1208   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1209   | --x-incl | --x-inc | --x-in | --x-i)
  1210     ac_prev=x_includes ;;
  1211   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1212   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1213     x_includes=$ac_optarg ;;
  1215   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1216   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1217     ac_prev=x_libraries ;;
  1218   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1219   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1220     x_libraries=$ac_optarg ;;
  1222   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1223 Try \`$0 --help' for more information." >&2
  1224    { (exit 1); exit 1; }; }
  1225     ;;
  1227   *=*)
  1228     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1229     # Reject names that are not valid shell variable names.
  1230     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1231       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1232    { (exit 1); exit 1; }; }
  1233     eval $ac_envvar=\$ac_optarg
  1234     export $ac_envvar ;;
  1236   *)
  1237     # FIXME: should be removed in autoconf 3.0.
  1238     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1239     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1240       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1241     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1242     ;;
  1244   esac
  1245 done
  1247 if test -n "$ac_prev"; then
  1248   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1249   { echo "$as_me: error: missing argument to $ac_option" >&2
  1250    { (exit 1); exit 1; }; }
  1251 fi
  1253 # Be sure to have absolute directory names.
  1254 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1255 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1256 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1257 		libdir localedir mandir
  1258 do
  1259   eval ac_val=\$$ac_var
  1260   case $ac_val in
  1261     [\\/$]* | ?:[\\/]* )  continue;;
  1262     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1263   esac
  1264   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1265    { (exit 1); exit 1; }; }
  1266 done
  1268 # There might be people who depend on the old broken behavior: `$host'
  1269 # used to hold the argument of --host etc.
  1270 # FIXME: To remove some day.
  1271 build=$build_alias
  1272 host=$host_alias
  1273 target=$target_alias
  1275 # FIXME: To remove some day.
  1276 if test "x$host_alias" != x; then
  1277   if test "x$build_alias" = x; then
  1278     cross_compiling=maybe
  1279     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1280     If a cross compiler is detected then cross compile mode will be used." >&2
  1281   elif test "x$build_alias" != "x$host_alias"; then
  1282     cross_compiling=yes
  1283   fi
  1284 fi
  1286 ac_tool_prefix=
  1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1289 test "$silent" = yes && exec 6>/dev/null
  1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1293 ac_ls_di=`ls -di .` &&
  1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1295   { echo "$as_me: error: Working directory cannot be determined" >&2
  1296    { (exit 1); exit 1; }; }
  1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1298   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1299    { (exit 1); exit 1; }; }
  1302 # Find the source files, if location was not specified.
  1303 if test -z "$srcdir"; then
  1304   ac_srcdir_defaulted=yes
  1305   # Try the directory containing this script, then the parent directory.
  1306   ac_confdir=`$as_dirname -- "$0" ||
  1307 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1308 	 X"$0" : 'X\(//\)[^/]' \| \
  1309 	 X"$0" : 'X\(//\)$' \| \
  1310 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1311 echo X"$0" |
  1312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1313 	    s//\1/
  1316 	  /^X\(\/\/\)[^/].*/{
  1317 	    s//\1/
  1320 	  /^X\(\/\/\)$/{
  1321 	    s//\1/
  1324 	  /^X\(\/\).*/{
  1325 	    s//\1/
  1328 	  s/.*/./; q'`
  1329   srcdir=$ac_confdir
  1330   if test ! -r "$srcdir/$ac_unique_file"; then
  1331     srcdir=..
  1332   fi
  1333 else
  1334   ac_srcdir_defaulted=no
  1335 fi
  1336 if test ! -r "$srcdir/$ac_unique_file"; then
  1337   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1338   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1339    { (exit 1); exit 1; }; }
  1340 fi
  1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1342 ac_abs_confdir=`(
  1343 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1344    { (exit 1); exit 1; }; }
  1345 	pwd)`
  1346 # When building in place, set srcdir=.
  1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1348   srcdir=.
  1349 fi
  1350 # Remove unnecessary trailing slashes from srcdir.
  1351 # Double slashes in file names in object file debugging info
  1352 # mess up M-x gdb in Emacs.
  1353 case $srcdir in
  1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1355 esac
  1356 for ac_var in $ac_precious_vars; do
  1357   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1358   eval ac_env_${ac_var}_value=\$${ac_var}
  1359   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1360   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1361 done
  1364 # Report the --help message.
  1366 if test "$ac_init_help" = "long"; then
  1367   # Omit some internal or obsolete options to make the list less imposing.
  1368   # This message is too long to be a string in the A/UX 3.1 sh.
  1369   cat <<_ACEOF
  1370 \`configure' configures this package to adapt to many kinds of systems.
  1372 Usage: $0 [OPTION]... [VAR=VALUE]...
  1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1375 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1377 Defaults for the options are specified in brackets.
  1379 Configuration:
  1380   -h, --help              display this help and exit
  1381       --help=short        display options specific to this package
  1382       --help=recursive    display the short help of all the included packages
  1383   -V, --version           display version information and exit
  1384   -q, --quiet, --silent   do not print \`checking...' messages
  1385       --cache-file=FILE   cache test results in FILE [disabled]
  1386   -C, --config-cache      alias for \`--cache-file=config.cache'
  1387   -n, --no-create         do not create output files
  1388       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1390 Installation directories:
  1391   --prefix=PREFIX         install architecture-independent files in PREFIX
  1392 			  [$ac_default_prefix]
  1393   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1394 			  [PREFIX]
  1396 By default, \`make install' will install all the files in
  1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1399 for instance \`--prefix=\$HOME'.
  1401 For better control, use the options below.
  1403 Fine tuning of the installation directories:
  1404   --bindir=DIR           user executables [EPREFIX/bin]
  1405   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1406   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1407   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1408   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1409   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1410   --libdir=DIR           object code libraries [EPREFIX/lib]
  1411   --includedir=DIR       C header files [PREFIX/include]
  1412   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1413   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1414   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1415   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1416   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1417   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1418   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1419   --htmldir=DIR          html documentation [DOCDIR]
  1420   --dvidir=DIR           dvi documentation [DOCDIR]
  1421   --pdfdir=DIR           pdf documentation [DOCDIR]
  1422   --psdir=DIR            ps documentation [DOCDIR]
  1423 _ACEOF
  1425   cat <<\_ACEOF
  1427 Program names:
  1428   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1429   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1430   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1432 System types:
  1433   --build=BUILD     configure for building on BUILD [guessed]
  1434   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1435 _ACEOF
  1436 fi
  1438 if test -n "$ac_init_help"; then
  1440   cat <<\_ACEOF
  1442 Optional Features:
  1443   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1444   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1445   --enable-maintainer-mode  enable make rules and dependencies not useful
  1446 			  (and sometimes confusing) to the casual installer
  1447   --disable-dependency-tracking  speeds up one-time build
  1448   --enable-dependency-tracking   do not reject slow dependency extractors
  1449   --enable-strict-warn    Enable strict compilation warnings
  1450   --disable-translator    Disable the SH4 translator (Enabled by default)
  1451   --disable-optimized     Disable compile-time optimizations (Enabled by
  1452                           default)
  1453   --enable-shared         Build drivers as shared libraries (Enabled if
  1454                           available)
  1455   --enable-profiled       Enable profiling build
  1456   --enable-trace          Enable generation of IO traces (warning: hurts
  1457                           performance)
  1458   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1459                           performance)
  1460   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1462 Optional Packages:
  1463   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1464   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1465   --with-android=SDK      Specify the location of the Android SDK
  1466   --with-android-ndk=NDK  Specify the location of the Android NDK
  1467   --with-android-version  Specify target Android SDK version
  1468   --with-osmesa           Build with the osmesa GL library (software
  1469                           rendering)
  1470   --with-gtk              Build with the GTK UI. Default on X11 systems
  1471   --with-esd              Build with support for the ESounD audio system
  1472   --with-pulse            Build with support for the PulseAudio audio system
  1473   --with-sdl              Build with support for SDL audio
  1475 Some influential environment variables:
  1476   CC          C compiler command
  1477   CFLAGS      C compiler flags
  1478   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1479               nonstandard directory <lib dir>
  1480   LIBS        libraries to pass to the linker, e.g. -l<library>
  1481   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1482               you have headers in a nonstandard directory <include dir>
  1483   CPP         C preprocessor
  1484   OBJC        Objective C compiler command
  1485   OBJCFLAGS   Objective C compiler flags
  1486   CCAS        assembler compiler command (defaults to CC)
  1487   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1488   PKG_CONFIG  path to pkg-config utility
  1489   LIBPNG_CFLAGS
  1490               C compiler flags for LIBPNG, overriding pkg-config
  1491   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1492   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1493   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1494   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1495   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1496   GLIB_FOR_BUILD_CFLAGS
  1497               C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
  1498   GLIB_FOR_BUILD_LIBS
  1499               linker flags for GLIB_FOR_BUILD, overriding pkg-config
  1500   LIBISOFS_CFLAGS
  1501               C compiler flags for LIBISOFS, overriding pkg-config
  1502   LIBISOFS_LIBS
  1503               linker flags for LIBISOFS, overriding pkg-config
  1504   LIBGL_CFLAGS
  1505               C compiler flags for LIBGL, overriding pkg-config
  1506   LIBGL_LIBS  linker flags for LIBGL, overriding pkg-config
  1507   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
  1508   SDL_LIBS    linker flags for SDL, overriding pkg-config
  1509   PULSE_CFLAGS
  1510               C compiler flags for PULSE, overriding pkg-config
  1511   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1512   ESOUND_CFLAGS
  1513               C compiler flags for ESOUND, overriding pkg-config
  1514   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1515   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1516   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1518 Use these variables to override the choices made by `configure' or to help
  1519 it to find libraries and programs with nonstandard names/locations.
  1521 _ACEOF
  1522 ac_status=$?
  1523 fi
  1525 if test "$ac_init_help" = "recursive"; then
  1526   # If there are subdirs, report their specific --help.
  1527   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1528     test -d "$ac_dir" || continue
  1529     ac_builddir=.
  1531 case "$ac_dir" in
  1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1533 *)
  1534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1535   # A ".." for each directory in $ac_dir_suffix.
  1536   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1537   case $ac_top_builddir_sub in
  1538   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1539   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1540   esac ;;
  1541 esac
  1542 ac_abs_top_builddir=$ac_pwd
  1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1544 # for backward compatibility:
  1545 ac_top_builddir=$ac_top_build_prefix
  1547 case $srcdir in
  1548   .)  # We are building in place.
  1549     ac_srcdir=.
  1550     ac_top_srcdir=$ac_top_builddir_sub
  1551     ac_abs_top_srcdir=$ac_pwd ;;
  1552   [\\/]* | ?:[\\/]* )  # Absolute name.
  1553     ac_srcdir=$srcdir$ac_dir_suffix;
  1554     ac_top_srcdir=$srcdir
  1555     ac_abs_top_srcdir=$srcdir ;;
  1556   *) # Relative name.
  1557     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1558     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1559     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1560 esac
  1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1563     cd "$ac_dir" || { ac_status=$?; continue; }
  1564     # Check for guested configure.
  1565     if test -f "$ac_srcdir/configure.gnu"; then
  1566       echo &&
  1567       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1568     elif test -f "$ac_srcdir/configure"; then
  1569       echo &&
  1570       $SHELL "$ac_srcdir/configure" --help=recursive
  1571     else
  1572       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1573     fi || ac_status=$?
  1574     cd "$ac_pwd" || { ac_status=$?; break; }
  1575   done
  1576 fi
  1578 test -n "$ac_init_help" && exit $ac_status
  1579 if $ac_init_version; then
  1580   cat <<\_ACEOF
  1581 configure
  1582 generated by GNU Autoconf 2.61
  1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1586 This configure script is free software; the Free Software Foundation
  1587 gives unlimited permission to copy, distribute and modify it.
  1588 _ACEOF
  1589   exit
  1590 fi
  1591 cat >config.log <<_ACEOF
  1592 This file contains any messages produced by compilers while
  1593 running configure, to aid debugging if configure makes a mistake.
  1595 It was created by $as_me, which was
  1596 generated by GNU Autoconf 2.61.  Invocation command line was
  1598   $ $0 $@
  1600 _ACEOF
  1601 exec 5>>config.log
  1603 cat <<_ASUNAME
  1604 ## --------- ##
  1605 ## Platform. ##
  1606 ## --------- ##
  1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1615 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1617 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1618 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1620 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1621 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1622 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1623 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1625 _ASUNAME
  1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1628 for as_dir in $PATH
  1629 do
  1630   IFS=$as_save_IFS
  1631   test -z "$as_dir" && as_dir=.
  1632   echo "PATH: $as_dir"
  1633 done
  1634 IFS=$as_save_IFS
  1636 } >&5
  1638 cat >&5 <<_ACEOF
  1641 ## ----------- ##
  1642 ## Core tests. ##
  1643 ## ----------- ##
  1645 _ACEOF
  1648 # Keep a trace of the command line.
  1649 # Strip out --no-create and --no-recursion so they do not pile up.
  1650 # Strip out --silent because we don't want to record it for future runs.
  1651 # Also quote any args containing shell meta-characters.
  1652 # Make two passes to allow for proper duplicate-argument suppression.
  1653 ac_configure_args=
  1654 ac_configure_args0=
  1655 ac_configure_args1=
  1656 ac_must_keep_next=false
  1657 for ac_pass in 1 2
  1658 do
  1659   for ac_arg
  1660   do
  1661     case $ac_arg in
  1662     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1663     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1664     | -silent | --silent | --silen | --sile | --sil)
  1665       continue ;;
  1666     *\'*)
  1667       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1668     esac
  1669     case $ac_pass in
  1670     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1671     2)
  1672       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1673       if test $ac_must_keep_next = true; then
  1674 	ac_must_keep_next=false # Got value, back to normal.
  1675       else
  1676 	case $ac_arg in
  1677 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1678 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1679 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1680 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1681 	    case "$ac_configure_args0 " in
  1682 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1683 	    esac
  1684 	    ;;
  1685 	  -* ) ac_must_keep_next=true ;;
  1686 	esac
  1687       fi
  1688       ac_configure_args="$ac_configure_args '$ac_arg'"
  1689       ;;
  1690     esac
  1691   done
  1692 done
  1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1696 # When interrupted or exit'd, cleanup temporary files, and complete
  1697 # config.log.  We remove comments because anyway the quotes in there
  1698 # would cause problems or look ugly.
  1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1701 trap 'exit_status=$?
  1702   # Save into config.log some information that might help in debugging.
  1704     echo
  1706     cat <<\_ASBOX
  1707 ## ---------------- ##
  1708 ## Cache variables. ##
  1709 ## ---------------- ##
  1710 _ASBOX
  1711     echo
  1712     # The following way of writing the cache mishandles newlines in values,
  1714   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1715     eval ac_val=\$$ac_var
  1716     case $ac_val in #(
  1717     *${as_nl}*)
  1718       case $ac_var in #(
  1719       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1721       esac
  1722       case $ac_var in #(
  1723       _ | IFS | as_nl) ;; #(
  1724       *) $as_unset $ac_var ;;
  1725       esac ;;
  1726     esac
  1727   done
  1728   (set) 2>&1 |
  1729     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1730     *${as_nl}ac_space=\ *)
  1731       sed -n \
  1732 	"s/'\''/'\''\\\\'\'''\''/g;
  1733 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1734       ;; #(
  1735     *)
  1736       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1737       ;;
  1738     esac |
  1739     sort
  1741     echo
  1743     cat <<\_ASBOX
  1744 ## ----------------- ##
  1745 ## Output variables. ##
  1746 ## ----------------- ##
  1747 _ASBOX
  1748     echo
  1749     for ac_var in $ac_subst_vars
  1750     do
  1751       eval ac_val=\$$ac_var
  1752       case $ac_val in
  1753       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1754       esac
  1755       echo "$ac_var='\''$ac_val'\''"
  1756     done | sort
  1757     echo
  1759     if test -n "$ac_subst_files"; then
  1760       cat <<\_ASBOX
  1761 ## ------------------- ##
  1762 ## File substitutions. ##
  1763 ## ------------------- ##
  1764 _ASBOX
  1765       echo
  1766       for ac_var in $ac_subst_files
  1767       do
  1768 	eval ac_val=\$$ac_var
  1769 	case $ac_val in
  1770 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1771 	esac
  1772 	echo "$ac_var='\''$ac_val'\''"
  1773       done | sort
  1774       echo
  1775     fi
  1777     if test -s confdefs.h; then
  1778       cat <<\_ASBOX
  1779 ## ----------- ##
  1780 ## confdefs.h. ##
  1781 ## ----------- ##
  1782 _ASBOX
  1783       echo
  1784       cat confdefs.h
  1785       echo
  1786     fi
  1787     test "$ac_signal" != 0 &&
  1788       echo "$as_me: caught signal $ac_signal"
  1789     echo "$as_me: exit $exit_status"
  1790   } >&5
  1791   rm -f core *.core core.conftest.* &&
  1792     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1793     exit $exit_status
  1794 ' 0
  1795 for ac_signal in 1 2 13 15; do
  1796   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1797 done
  1798 ac_signal=0
  1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1801 rm -f -r conftest* confdefs.h
  1803 # Predefined preprocessor variables.
  1805 cat >>confdefs.h <<_ACEOF
  1806 #define PACKAGE_NAME "$PACKAGE_NAME"
  1807 _ACEOF
  1810 cat >>confdefs.h <<_ACEOF
  1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1812 _ACEOF
  1815 cat >>confdefs.h <<_ACEOF
  1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1817 _ACEOF
  1820 cat >>confdefs.h <<_ACEOF
  1821 #define PACKAGE_STRING "$PACKAGE_STRING"
  1822 _ACEOF
  1825 cat >>confdefs.h <<_ACEOF
  1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1827 _ACEOF
  1830 # Let the site file select an alternate cache file if it wants to.
  1831 # Prefer explicitly selected file to automatically selected ones.
  1832 if test -n "$CONFIG_SITE"; then
  1833   set x "$CONFIG_SITE"
  1834 elif test "x$prefix" != xNONE; then
  1835   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1836 else
  1837   set x "$ac_default_prefix/share/config.site" \
  1838 	"$ac_default_prefix/etc/config.site"
  1839 fi
  1840 shift
  1841 for ac_site_file
  1842 do
  1843   if test -r "$ac_site_file"; then
  1844     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1845 echo "$as_me: loading site script $ac_site_file" >&6;}
  1846     sed 's/^/| /' "$ac_site_file" >&5
  1847     . "$ac_site_file"
  1848   fi
  1849 done
  1851 if test -r "$cache_file"; then
  1852   # Some versions of bash will fail to source /dev/null (special
  1853   # files actually), so we avoid doing that.
  1854   if test -f "$cache_file"; then
  1855     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1856 echo "$as_me: loading cache $cache_file" >&6;}
  1857     case $cache_file in
  1858       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1859       *)                      . "./$cache_file";;
  1860     esac
  1861   fi
  1862 else
  1863   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1864 echo "$as_me: creating cache $cache_file" >&6;}
  1865   >$cache_file
  1866 fi
  1868 # Check that the precious variables saved in the cache have kept the same
  1869 # value.
  1870 ac_cache_corrupted=false
  1871 for ac_var in $ac_precious_vars; do
  1872   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1873   eval ac_new_set=\$ac_env_${ac_var}_set
  1874   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1875   eval ac_new_val=\$ac_env_${ac_var}_value
  1876   case $ac_old_set,$ac_new_set in
  1877     set,)
  1878       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1880       ac_cache_corrupted=: ;;
  1881     ,set)
  1882       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1884       ac_cache_corrupted=: ;;
  1885     ,);;
  1886     *)
  1887       if test "x$ac_old_val" != "x$ac_new_val"; then
  1888 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1890 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1891 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1892 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1893 echo "$as_me:   current value: $ac_new_val" >&2;}
  1894 	ac_cache_corrupted=:
  1895       fi;;
  1896   esac
  1897   # Pass precious variables to config.status.
  1898   if test "$ac_new_set" = set; then
  1899     case $ac_new_val in
  1900     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1901     *) ac_arg=$ac_var=$ac_new_val ;;
  1902     esac
  1903     case " $ac_configure_args " in
  1904       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1905       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1906     esac
  1907   fi
  1908 done
  1909 if $ac_cache_corrupted; then
  1910   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1912   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1914    { (exit 1); exit 1; }; }
  1915 fi
  1933 ac_ext=c
  1934 ac_cpp='$CPP $CPPFLAGS'
  1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1940 am__api_version="1.9"
  1941 ac_aux_dir=
  1942 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1943   if test -f "$ac_dir/install-sh"; then
  1944     ac_aux_dir=$ac_dir
  1945     ac_install_sh="$ac_aux_dir/install-sh -c"
  1946     break
  1947   elif test -f "$ac_dir/install.sh"; then
  1948     ac_aux_dir=$ac_dir
  1949     ac_install_sh="$ac_aux_dir/install.sh -c"
  1950     break
  1951   elif test -f "$ac_dir/shtool"; then
  1952     ac_aux_dir=$ac_dir
  1953     ac_install_sh="$ac_aux_dir/shtool install -c"
  1954     break
  1955   fi
  1956 done
  1957 if test -z "$ac_aux_dir"; then
  1958   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1959 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1960    { (exit 1); exit 1; }; }
  1961 fi
  1963 # These three variables are undocumented and unsupported,
  1964 # and are intended to be withdrawn in a future Autoconf release.
  1965 # They can cause serious problems if a builder's source tree is in a directory
  1966 # whose full name contains unusual characters.
  1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1969 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1972 # Find a good install program.  We prefer a C program (faster),
  1973 # so one script is as good as another.  But avoid the broken or
  1974 # incompatible versions:
  1975 # SysV /etc/install, /usr/sbin/install
  1976 # SunOS /usr/etc/install
  1977 # IRIX /sbin/install
  1978 # AIX /bin/install
  1979 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1983 # OS/2's system install, which has a completely different semantic
  1984 # ./install, which can be erroneously created by make from ./install.sh.
  1985 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1986 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1987 if test -z "$INSTALL"; then
  1988 if test "${ac_cv_path_install+set}" = set; then
  1989   echo $ECHO_N "(cached) $ECHO_C" >&6
  1990 else
  1991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1992 for as_dir in $PATH
  1993 do
  1994   IFS=$as_save_IFS
  1995   test -z "$as_dir" && as_dir=.
  1996   # Account for people who put trailing slashes in PATH elements.
  1997 case $as_dir/ in
  1998   ./ | .// | /cC/* | \
  1999   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2000   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2001   /usr/ucb/* ) ;;
  2002   *)
  2003     # OSF1 and SCO ODT 3.0 have their own names for install.
  2004     # Don't use installbsd from OSF since it installs stuff as root
  2005     # by default.
  2006     for ac_prog in ginstall scoinst install; do
  2007       for ac_exec_ext in '' $ac_executable_extensions; do
  2008 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2009 	  if test $ac_prog = install &&
  2010 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2011 	    # AIX install.  It has an incompatible calling convention.
  2013 	  elif test $ac_prog = install &&
  2014 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2015 	    # program-specific install script used by HP pwplus--don't use.
  2017 	  else
  2018 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2019 	    break 3
  2020 	  fi
  2021 	fi
  2022       done
  2023     done
  2024     ;;
  2025 esac
  2026 done
  2027 IFS=$as_save_IFS
  2030 fi
  2031   if test "${ac_cv_path_install+set}" = set; then
  2032     INSTALL=$ac_cv_path_install
  2033   else
  2034     # As a last resort, use the slow shell script.  Don't cache a
  2035     # value for INSTALL within a source directory, because that will
  2036     # break other packages using the cache if that directory is
  2037     # removed, or if the value is a relative name.
  2038     INSTALL=$ac_install_sh
  2039   fi
  2040 fi
  2041 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2042 echo "${ECHO_T}$INSTALL" >&6; }
  2044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2045 # It thinks the first close brace ends the variable substitution.
  2046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2052 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2053 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2054 # Just in case
  2055 sleep 1
  2056 echo timestamp > conftest.file
  2057 # Do `set' in a subshell so we don't clobber the current shell's
  2058 # arguments.  Must try -L first in case configure is actually a
  2059 # symlink; some systems play weird games with the mod time of symlinks
  2060 # (eg FreeBSD returns the mod time of the symlink's containing
  2061 # directory).
  2062 if (
  2063    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2064    if test "$*" = "X"; then
  2065       # -L didn't work.
  2066       set X `ls -t $srcdir/configure conftest.file`
  2067    fi
  2068    rm -f conftest.file
  2069    if test "$*" != "X $srcdir/configure conftest.file" \
  2070       && test "$*" != "X conftest.file $srcdir/configure"; then
  2072       # If neither matched, then we have a broken ls.  This can happen
  2073       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2074       # broken ls alias from the environment.  This has actually
  2075       # happened.  Such a system could not be considered "sane".
  2076       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2077 alias in your environment" >&5
  2078 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2079 alias in your environment" >&2;}
  2080    { (exit 1); exit 1; }; }
  2081    fi
  2083    test "$2" = conftest.file
  2085 then
  2086    # Ok.
  2088 else
  2089    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2090 Check your system clock" >&5
  2091 echo "$as_me: error: newly created file is older than distributed files!
  2092 Check your system clock" >&2;}
  2093    { (exit 1); exit 1; }; }
  2094 fi
  2095 { echo "$as_me:$LINENO: result: yes" >&5
  2096 echo "${ECHO_T}yes" >&6; }
  2097 test "$program_prefix" != NONE &&
  2098   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2099 # Use a double $ so make ignores it.
  2100 test "$program_suffix" != NONE &&
  2101   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2102 # Double any \ or $.  echo might interpret backslashes.
  2103 # By default was `s,x,x', remove it if useless.
  2104 cat <<\_ACEOF >conftest.sed
  2105 s/[\\$]/&&/g;s/;s,x,x,$//
  2106 _ACEOF
  2107 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2108 rm -f conftest.sed
  2110 # expand $ac_aux_dir to an absolute path
  2111 am_aux_dir=`cd $ac_aux_dir && pwd`
  2113 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2114 # Use eval to expand $SHELL
  2115 if eval "$MISSING --run true"; then
  2116   am_missing_run="$MISSING --run "
  2117 else
  2118   am_missing_run=
  2119   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2120 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2121 fi
  2123 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2124   # We used to keeping the `.' as first argument, in order to
  2125   # allow $(mkdir_p) to be used without argument.  As in
  2126   #   $(mkdir_p) $(somedir)
  2127   # where $(somedir) is conditionally defined.  However this is wrong
  2128   # for two reasons:
  2129   #  1. if the package is installed by a user who cannot write `.'
  2130   #     make install will fail,
  2131   #  2. the above comment should most certainly read
  2132   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2133   #     so it does not work when $(somedir) is undefined and
  2134   #     $(DESTDIR) is not.
  2135   #  To support the latter case, we have to write
  2136   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2137   #  so the `.' trick is pointless.
  2138   mkdir_p='mkdir -p --'
  2139 else
  2140   # On NextStep and OpenStep, the `mkdir' command does not
  2141   # recognize any option.  It will interpret all options as
  2142   # directories to create, and then abort because `.' already
  2143   # exists.
  2144   for d in ./-p ./--version;
  2145   do
  2146     test -d $d && rmdir $d
  2147   done
  2148   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2149   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2150     mkdir_p='$(mkinstalldirs)'
  2151   else
  2152     mkdir_p='$(install_sh) -d'
  2153   fi
  2154 fi
  2156 for ac_prog in gawk mawk nawk awk
  2157 do
  2158   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2159 set dummy $ac_prog; ac_word=$2
  2160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2162 if test "${ac_cv_prog_AWK+set}" = set; then
  2163   echo $ECHO_N "(cached) $ECHO_C" >&6
  2164 else
  2165   if test -n "$AWK"; then
  2166   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2167 else
  2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2169 for as_dir in $PATH
  2170 do
  2171   IFS=$as_save_IFS
  2172   test -z "$as_dir" && as_dir=.
  2173   for ac_exec_ext in '' $ac_executable_extensions; do
  2174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2175     ac_cv_prog_AWK="$ac_prog"
  2176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2177     break 2
  2178   fi
  2179 done
  2180 done
  2181 IFS=$as_save_IFS
  2183 fi
  2184 fi
  2185 AWK=$ac_cv_prog_AWK
  2186 if test -n "$AWK"; then
  2187   { echo "$as_me:$LINENO: result: $AWK" >&5
  2188 echo "${ECHO_T}$AWK" >&6; }
  2189 else
  2190   { echo "$as_me:$LINENO: result: no" >&5
  2191 echo "${ECHO_T}no" >&6; }
  2192 fi
  2195   test -n "$AWK" && break
  2196 done
  2198 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2199 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2200 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2201 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2202   echo $ECHO_N "(cached) $ECHO_C" >&6
  2203 else
  2204   cat >conftest.make <<\_ACEOF
  2205 SHELL = /bin/sh
  2206 all:
  2207 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2208 _ACEOF
  2209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2211   *@@@%%%=?*=@@@%%%*)
  2212     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2213   *)
  2214     eval ac_cv_prog_make_${ac_make}_set=no;;
  2215 esac
  2216 rm -f conftest.make
  2217 fi
  2218 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2219   { echo "$as_me:$LINENO: result: yes" >&5
  2220 echo "${ECHO_T}yes" >&6; }
  2221   SET_MAKE=
  2222 else
  2223   { echo "$as_me:$LINENO: result: no" >&5
  2224 echo "${ECHO_T}no" >&6; }
  2225   SET_MAKE="MAKE=${MAKE-make}"
  2226 fi
  2228 rm -rf .tst 2>/dev/null
  2229 mkdir .tst 2>/dev/null
  2230 if test -d .tst; then
  2231   am__leading_dot=.
  2232 else
  2233   am__leading_dot=_
  2234 fi
  2235 rmdir .tst 2>/dev/null
  2237 # test to see if srcdir already configured
  2238 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2239    test -f $srcdir/config.status; then
  2240   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2241 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2242    { (exit 1); exit 1; }; }
  2243 fi
  2245 # test whether we have cygpath
  2246 if test -z "$CYGPATH_W"; then
  2247   if (cygpath --version) >/dev/null 2>/dev/null; then
  2248     CYGPATH_W='cygpath -w'
  2249   else
  2250     CYGPATH_W=echo
  2251   fi
  2252 fi
  2255 # Define the identity of the package.
  2256  PACKAGE=lxdream
  2257  VERSION=0.9.1
  2260 cat >>confdefs.h <<_ACEOF
  2261 #define PACKAGE "$PACKAGE"
  2262 _ACEOF
  2265 cat >>confdefs.h <<_ACEOF
  2266 #define VERSION "$VERSION"
  2267 _ACEOF
  2269 # Some tools Automake needs.
  2271 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2274 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2277 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2280 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2283 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2285 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2287 # Installed binaries are usually stripped using `strip' when the user
  2288 # run `make install-strip'.  However `strip' might not be the right
  2289 # tool to use in cross-compilation environments, therefore Automake
  2290 # will honor the `STRIP' environment variable to overrule this program.
  2291 if test "$cross_compiling" != no; then
  2292   if test -n "$ac_tool_prefix"; then
  2293   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2294 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2297 if test "${ac_cv_prog_STRIP+set}" = set; then
  2298   echo $ECHO_N "(cached) $ECHO_C" >&6
  2299 else
  2300   if test -n "$STRIP"; then
  2301   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2302 else
  2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304 for as_dir in $PATH
  2305 do
  2306   IFS=$as_save_IFS
  2307   test -z "$as_dir" && as_dir=.
  2308   for ac_exec_ext in '' $ac_executable_extensions; do
  2309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2310     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2312     break 2
  2313   fi
  2314 done
  2315 done
  2316 IFS=$as_save_IFS
  2318 fi
  2319 fi
  2320 STRIP=$ac_cv_prog_STRIP
  2321 if test -n "$STRIP"; then
  2322   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2323 echo "${ECHO_T}$STRIP" >&6; }
  2324 else
  2325   { echo "$as_me:$LINENO: result: no" >&5
  2326 echo "${ECHO_T}no" >&6; }
  2327 fi
  2330 fi
  2331 if test -z "$ac_cv_prog_STRIP"; then
  2332   ac_ct_STRIP=$STRIP
  2333   # Extract the first word of "strip", so it can be a program name with args.
  2334 set dummy strip; ac_word=$2
  2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2337 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2338   echo $ECHO_N "(cached) $ECHO_C" >&6
  2339 else
  2340   if test -n "$ac_ct_STRIP"; then
  2341   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2342 else
  2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344 for as_dir in $PATH
  2345 do
  2346   IFS=$as_save_IFS
  2347   test -z "$as_dir" && as_dir=.
  2348   for ac_exec_ext in '' $ac_executable_extensions; do
  2349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350     ac_cv_prog_ac_ct_STRIP="strip"
  2351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352     break 2
  2353   fi
  2354 done
  2355 done
  2356 IFS=$as_save_IFS
  2358 fi
  2359 fi
  2360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2361 if test -n "$ac_ct_STRIP"; then
  2362   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2363 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2364 else
  2365   { echo "$as_me:$LINENO: result: no" >&5
  2366 echo "${ECHO_T}no" >&6; }
  2367 fi
  2369   if test "x$ac_ct_STRIP" = x; then
  2370     STRIP=":"
  2371   else
  2372     case $cross_compiling:$ac_tool_warned in
  2373 yes:)
  2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2375 whose name does not start with the host triplet.  If you think this
  2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2378 whose name does not start with the host triplet.  If you think this
  2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2380 ac_tool_warned=yes ;;
  2381 esac
  2382     STRIP=$ac_ct_STRIP
  2383   fi
  2384 else
  2385   STRIP="$ac_cv_prog_STRIP"
  2386 fi
  2388 fi
  2389 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2391 # We need awk for the "check" target.  The system "awk" is bad on
  2392 # some platforms.
  2393 # Always define AMTAR for backward compatibility.
  2395 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2397 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2403 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2404 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2405     # Check whether --enable-maintainer-mode was given.
  2406 if test "${enable_maintainer_mode+set}" = set; then
  2407   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2408 else
  2409   USE_MAINTAINER_MODE=no
  2410 fi
  2412   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2413 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2416 if test $USE_MAINTAINER_MODE = yes; then
  2417   MAINTAINER_MODE_TRUE=
  2418   MAINTAINER_MODE_FALSE='#'
  2419 else
  2420   MAINTAINER_MODE_TRUE='#'
  2421   MAINTAINER_MODE_FALSE=
  2422 fi
  2424   MAINT=$MAINTAINER_MODE_TRUE
  2427 ac_config_headers="$ac_config_headers config.h"
  2430 # Make sure we can run config.sub.
  2431 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2432   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2433 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2434    { (exit 1); exit 1; }; }
  2436 { echo "$as_me:$LINENO: checking build system type" >&5
  2437 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2438 if test "${ac_cv_build+set}" = set; then
  2439   echo $ECHO_N "(cached) $ECHO_C" >&6
  2440 else
  2441   ac_build_alias=$build_alias
  2442 test "x$ac_build_alias" = x &&
  2443   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2444 test "x$ac_build_alias" = x &&
  2445   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2447    { (exit 1); exit 1; }; }
  2448 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2449   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2450 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2451    { (exit 1); exit 1; }; }
  2453 fi
  2454 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2455 echo "${ECHO_T}$ac_cv_build" >&6; }
  2456 case $ac_cv_build in
  2457 *-*-*) ;;
  2458 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2459 echo "$as_me: error: invalid value of canonical build" >&2;}
  2460    { (exit 1); exit 1; }; };;
  2461 esac
  2462 build=$ac_cv_build
  2463 ac_save_IFS=$IFS; IFS='-'
  2464 set x $ac_cv_build
  2465 shift
  2466 build_cpu=$1
  2467 build_vendor=$2
  2468 shift; shift
  2469 # Remember, the first character of IFS is used to create $*,
  2470 # except with old shells:
  2471 build_os=$*
  2472 IFS=$ac_save_IFS
  2473 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2476 { echo "$as_me:$LINENO: checking host system type" >&5
  2477 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2478 if test "${ac_cv_host+set}" = set; then
  2479   echo $ECHO_N "(cached) $ECHO_C" >&6
  2480 else
  2481   if test "x$host_alias" = x; then
  2482   ac_cv_host=$ac_cv_build
  2483 else
  2484   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2485     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2486 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2487    { (exit 1); exit 1; }; }
  2488 fi
  2490 fi
  2491 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2492 echo "${ECHO_T}$ac_cv_host" >&6; }
  2493 case $ac_cv_host in
  2494 *-*-*) ;;
  2495 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2496 echo "$as_me: error: invalid value of canonical host" >&2;}
  2497    { (exit 1); exit 1; }; };;
  2498 esac
  2499 host=$ac_cv_host
  2500 ac_save_IFS=$IFS; IFS='-'
  2501 set x $ac_cv_host
  2502 shift
  2503 host_cpu=$1
  2504 host_vendor=$2
  2505 shift; shift
  2506 # Remember, the first character of IFS is used to create $*,
  2507 # except with old shells:
  2508 host_os=$*
  2509 IFS=$ac_save_IFS
  2510 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2521 # LX_ANDROID_BUILD
  2522 # Defines --with-android, --with-android-ndk, and --with-android-version
  2523 # If specified, checks for a working install, and sets build parameters
  2524 # appropriately for an Android host.
  2530 # Check whether --with-android was given.
  2531 if test "${with_android+set}" = set; then
  2532   withval=$with_android;
  2533 fi
  2536 # Check whether --with-android-ndk was given.
  2537 if test "${with_android_ndk+set}" = set; then
  2538   withval=$with_android_ndk;
  2539 fi
  2542 # Check whether --with-android-version was given.
  2543 if test "${with_android_version+set}" = set; then
  2544   withval=$with_android_version;
  2545 else
  2546   with_android_version="android-8"
  2547 fi
  2550    if test "x$with_android" != "x"; then
  2551       if test "$with_android" = "yes"; then
  2552          { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
  2553 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
  2554    { (exit 1); exit 1; }; }
  2555       fi
  2556       if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
  2557          { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
  2558 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
  2559    { (exit 1); exit 1; }; }
  2560       fi
  2562       ANDROID_SDK_HOME="$with_android"
  2563       ANDROID_NDK_HOME="$with_android_ndk"
  2564       ANDROID_SDK_VERSION="$with_android_version"
  2566       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
  2567 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
  2568 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
  2569 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2570   echo $ECHO_N "(cached) $ECHO_C" >&6
  2571 else
  2572   test "$cross_compiling" = yes &&
  2573   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2574 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2575    { (exit 1); exit 1; }; }
  2576 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
  2577   eval "$as_ac_File=yes"
  2578 else
  2579   eval "$as_ac_File=no"
  2580 fi
  2581 fi
  2582 ac_res=`eval echo '${'$as_ac_File'}'`
  2583 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2584 echo "${ECHO_T}$ac_res" >&6; }
  2585 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2587 else
  2588    { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
  2589 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
  2590    { (exit 1); exit 1; }; }
  2591 fi
  2593       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
  2594 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
  2595 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
  2596 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2597   echo $ECHO_N "(cached) $ECHO_C" >&6
  2598 else
  2599   test "$cross_compiling" = yes &&
  2600   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2601 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2602    { (exit 1); exit 1; }; }
  2603 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
  2604   eval "$as_ac_File=yes"
  2605 else
  2606   eval "$as_ac_File=no"
  2607 fi
  2608 fi
  2609 ac_res=`eval echo '${'$as_ac_File'}'`
  2610 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2611 echo "${ECHO_T}$ac_res" >&6; }
  2612 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2614 else
  2615    { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
  2616 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
  2617    { (exit 1); exit 1; }; }
  2618 fi
  2620       as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
  2621 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
  2622 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
  2623 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2624   echo $ECHO_N "(cached) $ECHO_C" >&6
  2625 else
  2626   test "$cross_compiling" = yes &&
  2627   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2628 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2629    { (exit 1); exit 1; }; }
  2630 if test -r "$ANDROID_NDK_HOME/toolchains"; then
  2631   eval "$as_ac_File=yes"
  2632 else
  2633   eval "$as_ac_File=no"
  2634 fi
  2635 fi
  2636 ac_res=`eval echo '${'$as_ac_File'}'`
  2637 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2638 echo "${ECHO_T}$ac_res" >&6; }
  2639 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2641 else
  2642    { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
  2643 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
  2644    { (exit 1); exit 1; }; }
  2645 fi
  2648       case $host_alias in
  2649          arm-* | "")
  2650             host_alias="arm-linux-androideabi"
  2651             host_cpu="arm"
  2652             host_vendor="unknown";
  2653             host_os="linux-androideabi"
  2654             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
  2655             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
  2656             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_SDK_VERSION/arch-arm"
  2657             TARGETFLAGS="-ffunction-sections -funwind-tables -fstack-protector -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wno-psabi -Wa,--noexecstack"
  2658             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"
  2659             ;;
  2660          i686-*)
  2661             host_alias="i686-android-linux"
  2662             host_cpu="i686"
  2663             host_vendor="android"
  2664             host_os="linux"
  2665             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
  2666             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
  2667             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_SDK_VERSION/arch-x86"
  2668             TARGETFLAGS=""
  2669             ;;
  2670          *)
  2671             { { echo "$as_me:$LINENO: error: Unsupported android host $host_alias" >&5
  2672 echo "$as_me: error: Unsupported android host $host_alias" >&2;}
  2673    { (exit 1); exit 1; }; }
  2674       	    ;;
  2675       esac
  2677       # Extract the first word of "ant ", so it can be a program name with args.
  2678 set dummy ant ; ac_word=$2
  2679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2681 if test "${ac_cv_path_ANT+set}" = set; then
  2682   echo $ECHO_N "(cached) $ECHO_C" >&6
  2683 else
  2684   case $ANT in
  2685   [\\/]* | ?:[\\/]*)
  2686   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  2687   ;;
  2688   *)
  2689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2690 for as_dir in $PATH
  2691 do
  2692   IFS=$as_save_IFS
  2693   test -z "$as_dir" && as_dir=.
  2694   for ac_exec_ext in '' $ac_executable_extensions; do
  2695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2696     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  2697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2698     break 2
  2699   fi
  2700 done
  2701 done
  2702 IFS=$as_save_IFS
  2704   ;;
  2705 esac
  2706 fi
  2707 ANT=$ac_cv_path_ANT
  2708 if test -n "$ANT"; then
  2709   { echo "$as_me:$LINENO: result: $ANT" >&5
  2710 echo "${ECHO_T}$ANT" >&6; }
  2711 else
  2712   { echo "$as_me:$LINENO: result: no" >&5
  2713 echo "${ECHO_T}no" >&6; }
  2714 fi
  2718       CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
  2719       CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
  2720       CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
  2721       LD="$ANDROID_NDK_BIN/${host_alias}-ld"
  2722       AR="$ANDROID_NDK_BIN/${host_alias}-ar"
  2723       RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
  2724       STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
  2725       OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
  2726       CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
  2727       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"
  2728       LIBS="$LIBS -liconv -llog -lgcc -lc"
  2735       ANDROID_BUILD=yes
  2736       cross_compiling=yes
  2737    fi
  2741 if test "$ANDROID_BUILD" = "yes"; then
  2742   GUI_ANDROID_TRUE=
  2743   GUI_ANDROID_FALSE='#'
  2744 else
  2745   GUI_ANDROID_TRUE='#'
  2746   GUI_ANDROID_FALSE=
  2747 fi
  2752 DEPDIR="${am__leading_dot}deps"
  2754 ac_config_commands="$ac_config_commands depfiles"
  2757 am_make=${MAKE-make}
  2758 cat > confinc << 'END'
  2759 am__doit:
  2760 	@echo done
  2761 .PHONY: am__doit
  2762 END
  2763 # If we don't find an include directive, just comment out the code.
  2764 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2765 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2766 am__include="#"
  2767 am__quote=
  2768 _am_result=none
  2769 # First try GNU make style include.
  2770 echo "include confinc" > confmf
  2771 # We grep out `Entering directory' and `Leaving directory'
  2772 # messages which can occur if `w' ends up in MAKEFLAGS.
  2773 # In particular we don't look at `^make:' because GNU make might
  2774 # be invoked under some other name (usually "gmake"), in which
  2775 # case it prints its new name instead of `make'.
  2776 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2777    am__include=include
  2778    am__quote=
  2779    _am_result=GNU
  2780 fi
  2781 # Now try BSD make style include.
  2782 if test "$am__include" = "#"; then
  2783    echo '.include "confinc"' > confmf
  2784    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2785       am__include=.include
  2786       am__quote="\""
  2787       _am_result=BSD
  2788    fi
  2789 fi
  2792 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2793 echo "${ECHO_T}$_am_result" >&6; }
  2794 rm -f confinc confmf
  2796 # Check whether --enable-dependency-tracking was given.
  2797 if test "${enable_dependency_tracking+set}" = set; then
  2798   enableval=$enable_dependency_tracking;
  2799 fi
  2801 if test "x$enable_dependency_tracking" != xno; then
  2802   am_depcomp="$ac_aux_dir/depcomp"
  2803   AMDEPBACKSLASH='\'
  2804 fi
  2807 if test "x$enable_dependency_tracking" != xno; then
  2808   AMDEP_TRUE=
  2809   AMDEP_FALSE='#'
  2810 else
  2811   AMDEP_TRUE='#'
  2812   AMDEP_FALSE=
  2813 fi
  2817 ac_ext=c
  2818 ac_cpp='$CPP $CPPFLAGS'
  2819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2822 if test -n "$ac_tool_prefix"; then
  2823   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2827 if test "${ac_cv_prog_CC+set}" = set; then
  2828   echo $ECHO_N "(cached) $ECHO_C" >&6
  2829 else
  2830   if test -n "$CC"; then
  2831   ac_cv_prog_CC="$CC" # Let the user override the test.
  2832 else
  2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2834 for as_dir in $PATH
  2835 do
  2836   IFS=$as_save_IFS
  2837   test -z "$as_dir" && as_dir=.
  2838   for ac_exec_ext in '' $ac_executable_extensions; do
  2839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2840     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2842     break 2
  2843   fi
  2844 done
  2845 done
  2846 IFS=$as_save_IFS
  2848 fi
  2849 fi
  2850 CC=$ac_cv_prog_CC
  2851 if test -n "$CC"; then
  2852   { echo "$as_me:$LINENO: result: $CC" >&5
  2853 echo "${ECHO_T}$CC" >&6; }
  2854 else
  2855   { echo "$as_me:$LINENO: result: no" >&5
  2856 echo "${ECHO_T}no" >&6; }
  2857 fi
  2860 fi
  2861 if test -z "$ac_cv_prog_CC"; then
  2862   ac_ct_CC=$CC
  2863   # Extract the first word of "gcc", so it can be a program name with args.
  2864 set dummy gcc; ac_word=$2
  2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2868   echo $ECHO_N "(cached) $ECHO_C" >&6
  2869 else
  2870   if test -n "$ac_ct_CC"; then
  2871   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2872 else
  2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2874 for as_dir in $PATH
  2875 do
  2876   IFS=$as_save_IFS
  2877   test -z "$as_dir" && as_dir=.
  2878   for ac_exec_ext in '' $ac_executable_extensions; do
  2879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2880     ac_cv_prog_ac_ct_CC="gcc"
  2881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2882     break 2
  2883   fi
  2884 done
  2885 done
  2886 IFS=$as_save_IFS
  2888 fi
  2889 fi
  2890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2891 if test -n "$ac_ct_CC"; then
  2892   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2893 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2894 else
  2895   { echo "$as_me:$LINENO: result: no" >&5
  2896 echo "${ECHO_T}no" >&6; }
  2897 fi
  2899   if test "x$ac_ct_CC" = x; then
  2900     CC=""
  2901   else
  2902     case $cross_compiling:$ac_tool_warned in
  2903 yes:)
  2904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2905 whose name does not start with the host triplet.  If you think this
  2906 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2908 whose name does not start with the host triplet.  If you think this
  2909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2910 ac_tool_warned=yes ;;
  2911 esac
  2912     CC=$ac_ct_CC
  2913   fi
  2914 else
  2915   CC="$ac_cv_prog_CC"
  2916 fi
  2918 if test -z "$CC"; then
  2919           if test -n "$ac_tool_prefix"; then
  2920     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2921 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2924 if test "${ac_cv_prog_CC+set}" = set; then
  2925   echo $ECHO_N "(cached) $ECHO_C" >&6
  2926 else
  2927   if test -n "$CC"; then
  2928   ac_cv_prog_CC="$CC" # Let the user override the test.
  2929 else
  2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2931 for as_dir in $PATH
  2932 do
  2933   IFS=$as_save_IFS
  2934   test -z "$as_dir" && as_dir=.
  2935   for ac_exec_ext in '' $ac_executable_extensions; do
  2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2937     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2939     break 2
  2940   fi
  2941 done
  2942 done
  2943 IFS=$as_save_IFS
  2945 fi
  2946 fi
  2947 CC=$ac_cv_prog_CC
  2948 if test -n "$CC"; then
  2949   { echo "$as_me:$LINENO: result: $CC" >&5
  2950 echo "${ECHO_T}$CC" >&6; }
  2951 else
  2952   { echo "$as_me:$LINENO: result: no" >&5
  2953 echo "${ECHO_T}no" >&6; }
  2954 fi
  2957   fi
  2958 fi
  2959 if test -z "$CC"; then
  2960   # Extract the first word of "cc", so it can be a program name with args.
  2961 set dummy cc; ac_word=$2
  2962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2964 if test "${ac_cv_prog_CC+set}" = set; then
  2965   echo $ECHO_N "(cached) $ECHO_C" >&6
  2966 else
  2967   if test -n "$CC"; then
  2968   ac_cv_prog_CC="$CC" # Let the user override the test.
  2969 else
  2970   ac_prog_rejected=no
  2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2972 for as_dir in $PATH
  2973 do
  2974   IFS=$as_save_IFS
  2975   test -z "$as_dir" && as_dir=.
  2976   for ac_exec_ext in '' $ac_executable_extensions; do
  2977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2978     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2979        ac_prog_rejected=yes
  2980        continue
  2981      fi
  2982     ac_cv_prog_CC="cc"
  2983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2984     break 2
  2985   fi
  2986 done
  2987 done
  2988 IFS=$as_save_IFS
  2990 if test $ac_prog_rejected = yes; then
  2991   # We found a bogon in the path, so make sure we never use it.
  2992   set dummy $ac_cv_prog_CC
  2993   shift
  2994   if test $# != 0; then
  2995     # We chose a different compiler from the bogus one.
  2996     # However, it has the same basename, so the bogon will be chosen
  2997     # first if we set CC to just the basename; use the full file name.
  2998     shift
  2999     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3000   fi
  3001 fi
  3002 fi
  3003 fi
  3004 CC=$ac_cv_prog_CC
  3005 if test -n "$CC"; then
  3006   { echo "$as_me:$LINENO: result: $CC" >&5
  3007 echo "${ECHO_T}$CC" >&6; }
  3008 else
  3009   { echo "$as_me:$LINENO: result: no" >&5
  3010 echo "${ECHO_T}no" >&6; }
  3011 fi
  3014 fi
  3015 if test -z "$CC"; then
  3016   if test -n "$ac_tool_prefix"; then
  3017   for ac_prog in cl.exe
  3018   do
  3019     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3023 if test "${ac_cv_prog_CC+set}" = set; then
  3024   echo $ECHO_N "(cached) $ECHO_C" >&6
  3025 else
  3026   if test -n "$CC"; then
  3027   ac_cv_prog_CC="$CC" # Let the user override the test.
  3028 else
  3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3030 for as_dir in $PATH
  3031 do
  3032   IFS=$as_save_IFS
  3033   test -z "$as_dir" && as_dir=.
  3034   for ac_exec_ext in '' $ac_executable_extensions; do
  3035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3036     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3038     break 2
  3039   fi
  3040 done
  3041 done
  3042 IFS=$as_save_IFS
  3044 fi
  3045 fi
  3046 CC=$ac_cv_prog_CC
  3047 if test -n "$CC"; then
  3048   { echo "$as_me:$LINENO: result: $CC" >&5
  3049 echo "${ECHO_T}$CC" >&6; }
  3050 else
  3051   { echo "$as_me:$LINENO: result: no" >&5
  3052 echo "${ECHO_T}no" >&6; }
  3053 fi
  3056     test -n "$CC" && break
  3057   done
  3058 fi
  3059 if test -z "$CC"; then
  3060   ac_ct_CC=$CC
  3061   for ac_prog in cl.exe
  3062 do
  3063   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3064 set dummy $ac_prog; ac_word=$2
  3065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3068   echo $ECHO_N "(cached) $ECHO_C" >&6
  3069 else
  3070   if test -n "$ac_ct_CC"; then
  3071   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3072 else
  3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3074 for as_dir in $PATH
  3075 do
  3076   IFS=$as_save_IFS
  3077   test -z "$as_dir" && as_dir=.
  3078   for ac_exec_ext in '' $ac_executable_extensions; do
  3079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3080     ac_cv_prog_ac_ct_CC="$ac_prog"
  3081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3082     break 2
  3083   fi
  3084 done
  3085 done
  3086 IFS=$as_save_IFS
  3088 fi
  3089 fi
  3090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3091 if test -n "$ac_ct_CC"; then
  3092   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3093 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3094 else
  3095   { echo "$as_me:$LINENO: result: no" >&5
  3096 echo "${ECHO_T}no" >&6; }
  3097 fi
  3100   test -n "$ac_ct_CC" && break
  3101 done
  3103   if test "x$ac_ct_CC" = x; then
  3104     CC=""
  3105   else
  3106     case $cross_compiling:$ac_tool_warned in
  3107 yes:)
  3108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3109 whose name does not start with the host triplet.  If you think this
  3110 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3112 whose name does not start with the host triplet.  If you think this
  3113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3114 ac_tool_warned=yes ;;
  3115 esac
  3116     CC=$ac_ct_CC
  3117   fi
  3118 fi
  3120 fi
  3123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3124 See \`config.log' for more details." >&5
  3125 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3126 See \`config.log' for more details." >&2;}
  3127    { (exit 1); exit 1; }; }
  3129 # Provide some information about the compiler.
  3130 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3131 ac_compiler=`set X $ac_compile; echo $2`
  3132 { (ac_try="$ac_compiler --version >&5"
  3133 case "(($ac_try" in
  3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3135   *) ac_try_echo=$ac_try;;
  3136 esac
  3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3138   (eval "$ac_compiler --version >&5") 2>&5
  3139   ac_status=$?
  3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3141   (exit $ac_status); }
  3142 { (ac_try="$ac_compiler -v >&5"
  3143 case "(($ac_try" in
  3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3145   *) ac_try_echo=$ac_try;;
  3146 esac
  3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3148   (eval "$ac_compiler -v >&5") 2>&5
  3149   ac_status=$?
  3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3151   (exit $ac_status); }
  3152 { (ac_try="$ac_compiler -V >&5"
  3153 case "(($ac_try" in
  3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3155   *) ac_try_echo=$ac_try;;
  3156 esac
  3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3158   (eval "$ac_compiler -V >&5") 2>&5
  3159   ac_status=$?
  3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3161   (exit $ac_status); }
  3163 cat >conftest.$ac_ext <<_ACEOF
  3164 /* confdefs.h.  */
  3165 _ACEOF
  3166 cat confdefs.h >>conftest.$ac_ext
  3167 cat >>conftest.$ac_ext <<_ACEOF
  3168 /* end confdefs.h.  */
  3170 int
  3171 main ()
  3175   return 0;
  3177 _ACEOF
  3178 ac_clean_files_save=$ac_clean_files
  3179 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  3180 # Try to create an executable without -o first, disregard a.out.
  3181 # It will help us diagnose broken compilers, and finding out an intuition
  3182 # of exeext.
  3183 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  3184 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  3185 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3187 # List of possible output files, starting from the most likely.
  3188 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  3189 # only as a last resort.  b.out is created by i960 compilers.
  3190 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  3192 # The IRIX 6 linker writes into existing files which may not be
  3193 # executable, retaining their permissions.  Remove them first so a
  3194 # subsequent execution test works.
  3195 ac_rmfiles=
  3196 for ac_file in $ac_files
  3197 do
  3198   case $ac_file in
  3199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3200     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3201   esac
  3202 done
  3203 rm -f $ac_rmfiles
  3205 if { (ac_try="$ac_link_default"
  3206 case "(($ac_try" in
  3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3208   *) ac_try_echo=$ac_try;;
  3209 esac
  3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3211   (eval "$ac_link_default") 2>&5
  3212   ac_status=$?
  3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3214   (exit $ac_status); }; then
  3215   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3217 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3218 # so that the user can short-circuit this test for compilers unknown to
  3219 # Autoconf.
  3220 for ac_file in $ac_files ''
  3221 do
  3222   test -f "$ac_file" || continue
  3223   case $ac_file in
  3224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  3225 	;;
  3226     [ab].out )
  3227 	# We found the default executable, but exeext='' is most
  3228 	# certainly right.
  3229 	break;;
  3230     *.* )
  3231         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3232 	then :; else
  3233 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3234 	fi
  3235 	# We set ac_cv_exeext here because the later test for it is not
  3236 	# safe: cross compilers may not add the suffix if given an `-o'
  3237 	# argument, so we may need to know it at that point already.
  3238 	# Even if this section looks crufty: it has the advantage of
  3239 	# actually working.
  3240 	break;;
  3241     * )
  3242 	break;;
  3243   esac
  3244 done
  3245 test "$ac_cv_exeext" = no && ac_cv_exeext=
  3247 else
  3248   ac_file=''
  3249 fi
  3251 { echo "$as_me:$LINENO: result: $ac_file" >&5
  3252 echo "${ECHO_T}$ac_file" >&6; }
  3253 if test -z "$ac_file"; then
  3254   echo "$as_me: failed program was:" >&5
  3255 sed 's/^/| /' conftest.$ac_ext >&5
  3257 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  3258 See \`config.log' for more details." >&5
  3259 echo "$as_me: error: C compiler cannot create executables
  3260 See \`config.log' for more details." >&2;}
  3261    { (exit 77); exit 77; }; }
  3262 fi
  3264 ac_exeext=$ac_cv_exeext
  3266 # Check that the compiler produces executables we can run.  If not, either
  3267 # the compiler is broken, or we cross compile.
  3268 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3269 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  3270 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3271 # If not cross compiling, check that we can run a simple program.
  3272 if test "$cross_compiling" != yes; then
  3273   if { ac_try='./$ac_file'
  3274   { (case "(($ac_try" in
  3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3276   *) ac_try_echo=$ac_try;;
  3277 esac
  3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3279   (eval "$ac_try") 2>&5
  3280   ac_status=$?
  3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3282   (exit $ac_status); }; }; then
  3283     cross_compiling=no
  3284   else
  3285     if test "$cross_compiling" = maybe; then
  3286 	cross_compiling=yes
  3287     else
  3288 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3289 If you meant to cross compile, use \`--host'.
  3290 See \`config.log' for more details." >&5
  3291 echo "$as_me: error: cannot run C compiled programs.
  3292 If you meant to cross compile, use \`--host'.
  3293 See \`config.log' for more details." >&2;}
  3294    { (exit 1); exit 1; }; }
  3295     fi
  3296   fi
  3297 fi
  3298 { echo "$as_me:$LINENO: result: yes" >&5
  3299 echo "${ECHO_T}yes" >&6; }
  3301 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  3302 ac_clean_files=$ac_clean_files_save
  3303 # Check that the compiler produces executables we can run.  If not, either
  3304 # the compiler is broken, or we cross compile.
  3305 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3306 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3307 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3308 echo "${ECHO_T}$cross_compiling" >&6; }
  3310 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3311 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3312 if { (ac_try="$ac_link"
  3313 case "(($ac_try" in
  3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3315   *) ac_try_echo=$ac_try;;
  3316 esac
  3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3318   (eval "$ac_link") 2>&5
  3319   ac_status=$?
  3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3321   (exit $ac_status); }; then
  3322   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3323 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3324 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3325 # `rm'.
  3326 for ac_file in conftest.exe conftest conftest.*; do
  3327   test -f "$ac_file" || continue
  3328   case $ac_file in
  3329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3330     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3331 	  break;;
  3332     * ) break;;
  3333   esac
  3334 done
  3335 else
  3336   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3337 See \`config.log' for more details." >&5
  3338 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3339 See \`config.log' for more details." >&2;}
  3340    { (exit 1); exit 1; }; }
  3341 fi
  3343 rm -f conftest$ac_cv_exeext
  3344 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3345 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3347 rm -f conftest.$ac_ext
  3348 EXEEXT=$ac_cv_exeext
  3349 ac_exeext=$EXEEXT
  3350 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3351 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3352 if test "${ac_cv_objext+set}" = set; then
  3353   echo $ECHO_N "(cached) $ECHO_C" >&6
  3354 else
  3355   cat >conftest.$ac_ext <<_ACEOF
  3356 /* confdefs.h.  */
  3357 _ACEOF
  3358 cat confdefs.h >>conftest.$ac_ext
  3359 cat >>conftest.$ac_ext <<_ACEOF
  3360 /* end confdefs.h.  */
  3362 int
  3363 main ()
  3367   return 0;
  3369 _ACEOF
  3370 rm -f conftest.o conftest.obj
  3371 if { (ac_try="$ac_compile"
  3372 case "(($ac_try" in
  3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3374   *) ac_try_echo=$ac_try;;
  3375 esac
  3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3377   (eval "$ac_compile") 2>&5
  3378   ac_status=$?
  3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3380   (exit $ac_status); }; then
  3381   for ac_file in conftest.o conftest.obj conftest.*; do
  3382   test -f "$ac_file" || continue;
  3383   case $ac_file in
  3384     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3385     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3386        break;;
  3387   esac
  3388 done
  3389 else
  3390   echo "$as_me: failed program was:" >&5
  3391 sed 's/^/| /' conftest.$ac_ext >&5
  3393 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3394 See \`config.log' for more details." >&5
  3395 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3396 See \`config.log' for more details." >&2;}
  3397    { (exit 1); exit 1; }; }
  3398 fi
  3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3401 fi
  3402 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3403 echo "${ECHO_T}$ac_cv_objext" >&6; }
  3404 OBJEXT=$ac_cv_objext
  3405 ac_objext=$OBJEXT
  3406 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3407 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3408 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3409   echo $ECHO_N "(cached) $ECHO_C" >&6
  3410 else
  3411   cat >conftest.$ac_ext <<_ACEOF
  3412 /* confdefs.h.  */
  3413 _ACEOF
  3414 cat confdefs.h >>conftest.$ac_ext
  3415 cat >>conftest.$ac_ext <<_ACEOF
  3416 /* end confdefs.h.  */
  3418 int
  3419 main ()
  3421 #ifndef __GNUC__
  3422        choke me
  3423 #endif
  3426   return 0;
  3428 _ACEOF
  3429 rm -f conftest.$ac_objext
  3430 if { (ac_try="$ac_compile"
  3431 case "(($ac_try" in
  3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433   *) ac_try_echo=$ac_try;;
  3434 esac
  3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3436   (eval "$ac_compile") 2>conftest.er1
  3437   ac_status=$?
  3438   grep -v '^ *+' conftest.er1 >conftest.err
  3439   rm -f conftest.er1
  3440   cat conftest.err >&5
  3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3442   (exit $ac_status); } && {
  3443 	 test -z "$ac_c_werror_flag" ||
  3444 	 test ! -s conftest.err
  3445        } && test -s conftest.$ac_objext; then
  3446   ac_compiler_gnu=yes
  3447 else
  3448   echo "$as_me: failed program was:" >&5
  3449 sed 's/^/| /' conftest.$ac_ext >&5
  3451 	ac_compiler_gnu=no
  3452 fi
  3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3457 fi
  3458 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3460 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3461 ac_test_CFLAGS=${CFLAGS+set}
  3462 ac_save_CFLAGS=$CFLAGS
  3463 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3464 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3465 if test "${ac_cv_prog_cc_g+set}" = set; then
  3466   echo $ECHO_N "(cached) $ECHO_C" >&6
  3467 else
  3468   ac_save_c_werror_flag=$ac_c_werror_flag
  3469    ac_c_werror_flag=yes
  3470    ac_cv_prog_cc_g=no
  3471    CFLAGS="-g"
  3472    cat >conftest.$ac_ext <<_ACEOF
  3473 /* confdefs.h.  */
  3474 _ACEOF
  3475 cat confdefs.h >>conftest.$ac_ext
  3476 cat >>conftest.$ac_ext <<_ACEOF
  3477 /* end confdefs.h.  */
  3479 int
  3480 main ()
  3484   return 0;
  3486 _ACEOF
  3487 rm -f conftest.$ac_objext
  3488 if { (ac_try="$ac_compile"
  3489 case "(($ac_try" in
  3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3491   *) ac_try_echo=$ac_try;;
  3492 esac
  3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3494   (eval "$ac_compile") 2>conftest.er1
  3495   ac_status=$?
  3496   grep -v '^ *+' conftest.er1 >conftest.err
  3497   rm -f conftest.er1
  3498   cat conftest.err >&5
  3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3500   (exit $ac_status); } && {
  3501 	 test -z "$ac_c_werror_flag" ||
  3502 	 test ! -s conftest.err
  3503        } && test -s conftest.$ac_objext; then
  3504   ac_cv_prog_cc_g=yes
  3505 else
  3506   echo "$as_me: failed program was:" >&5
  3507 sed 's/^/| /' conftest.$ac_ext >&5
  3509 	CFLAGS=""
  3510       cat >conftest.$ac_ext <<_ACEOF
  3511 /* confdefs.h.  */
  3512 _ACEOF
  3513 cat confdefs.h >>conftest.$ac_ext
  3514 cat >>conftest.$ac_ext <<_ACEOF
  3515 /* end confdefs.h.  */
  3517 int
  3518 main ()
  3522   return 0;
  3524 _ACEOF
  3525 rm -f conftest.$ac_objext
  3526 if { (ac_try="$ac_compile"
  3527 case "(($ac_try" in
  3528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3529   *) ac_try_echo=$ac_try;;
  3530 esac
  3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3532   (eval "$ac_compile") 2>conftest.er1
  3533   ac_status=$?
  3534   grep -v '^ *+' conftest.er1 >conftest.err
  3535   rm -f conftest.er1
  3536   cat conftest.err >&5
  3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3538   (exit $ac_status); } && {
  3539 	 test -z "$ac_c_werror_flag" ||
  3540 	 test ! -s conftest.err
  3541        } && test -s conftest.$ac_objext; then
  3543 else
  3544   echo "$as_me: failed program was:" >&5
  3545 sed 's/^/| /' conftest.$ac_ext >&5
  3547 	ac_c_werror_flag=$ac_save_c_werror_flag
  3548 	 CFLAGS="-g"
  3549 	 cat >conftest.$ac_ext <<_ACEOF
  3550 /* confdefs.h.  */
  3551 _ACEOF
  3552 cat confdefs.h >>conftest.$ac_ext
  3553 cat >>conftest.$ac_ext <<_ACEOF
  3554 /* end confdefs.h.  */
  3556 int
  3557 main ()
  3561   return 0;
  3563 _ACEOF
  3564 rm -f conftest.$ac_objext
  3565 if { (ac_try="$ac_compile"
  3566 case "(($ac_try" in
  3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3568   *) ac_try_echo=$ac_try;;
  3569 esac
  3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3571   (eval "$ac_compile") 2>conftest.er1
  3572   ac_status=$?
  3573   grep -v '^ *+' conftest.er1 >conftest.err
  3574   rm -f conftest.er1
  3575   cat conftest.err >&5
  3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3577   (exit $ac_status); } && {
  3578 	 test -z "$ac_c_werror_flag" ||
  3579 	 test ! -s conftest.err
  3580        } && test -s conftest.$ac_objext; then
  3581   ac_cv_prog_cc_g=yes
  3582 else
  3583   echo "$as_me: failed program was:" >&5
  3584 sed 's/^/| /' conftest.$ac_ext >&5
  3587 fi
  3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3590 fi
  3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3593 fi
  3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3596    ac_c_werror_flag=$ac_save_c_werror_flag
  3597 fi
  3598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3599 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3600 if test "$ac_test_CFLAGS" = set; then
  3601   CFLAGS=$ac_save_CFLAGS
  3602 elif test $ac_cv_prog_cc_g = yes; then
  3603   if test "$GCC" = yes; then
  3604     CFLAGS="-g -O2"
  3605   else
  3606     CFLAGS="-g"
  3607   fi
  3608 else
  3609   if test "$GCC" = yes; then
  3610     CFLAGS="-O2"
  3611   else
  3612     CFLAGS=
  3613   fi
  3614 fi
  3615 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3616 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3617 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3618   echo $ECHO_N "(cached) $ECHO_C" >&6
  3619 else
  3620   ac_cv_prog_cc_c89=no
  3621 ac_save_CC=$CC
  3622 cat >conftest.$ac_ext <<_ACEOF
  3623 /* confdefs.h.  */
  3624 _ACEOF
  3625 cat confdefs.h >>conftest.$ac_ext
  3626 cat >>conftest.$ac_ext <<_ACEOF
  3627 /* end confdefs.h.  */
  3628 #include <stdarg.h>
  3629 #include <stdio.h>
  3630 #include <sys/types.h>
  3631 #include <sys/stat.h>
  3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3633 struct buf { int x; };
  3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3635 static char *e (p, i)
  3636      char **p;
  3637      int i;
  3639   return p[i];
  3641 static char *f (char * (*g) (char **, int), char **p, ...)
  3643   char *s;
  3644   va_list v;
  3645   va_start (v,p);
  3646   s = g (p, va_arg (v,int));
  3647   va_end (v);
  3648   return s;
  3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3652    function prototypes and stuff, but not '\xHH' hex character constants.
  3653    These don't provoke an error unfortunately, instead are silently treated
  3654    as 'x'.  The following induces an error, until -std is added to get
  3655    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3656    array size at least.  It's necessary to write '\x00'==0 to get something
  3657    that's true only with -std.  */
  3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3661    inside strings and character constants.  */
  3662 #define FOO(x) 'x'
  3663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3665 int test (int i, double x);
  3666 struct s1 {int (*f) (int a);};
  3667 struct s2 {int (*f) (double a);};
  3668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3669 int argc;
  3670 char **argv;
  3671 int
  3672 main ()
  3674 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3676   return 0;
  3678 _ACEOF
  3679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3680 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3681 do
  3682   CC="$ac_save_CC $ac_arg"
  3683   rm -f conftest.$ac_objext
  3684 if { (ac_try="$ac_compile"
  3685 case "(($ac_try" in
  3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3687   *) ac_try_echo=$ac_try;;
  3688 esac
  3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3690   (eval "$ac_compile") 2>conftest.er1
  3691   ac_status=$?
  3692   grep -v '^ *+' conftest.er1 >conftest.err
  3693   rm -f conftest.er1
  3694   cat conftest.err >&5
  3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3696   (exit $ac_status); } && {
  3697 	 test -z "$ac_c_werror_flag" ||
  3698 	 test ! -s conftest.err
  3699        } && test -s conftest.$ac_objext; then
  3700   ac_cv_prog_cc_c89=$ac_arg
  3701 else
  3702   echo "$as_me: failed program was:" >&5
  3703 sed 's/^/| /' conftest.$ac_ext >&5
  3706 fi
  3708 rm -f core conftest.err conftest.$ac_objext
  3709   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3710 done
  3711 rm -f conftest.$ac_ext
  3712 CC=$ac_save_CC
  3714 fi
  3715 # AC_CACHE_VAL
  3716 case "x$ac_cv_prog_cc_c89" in
  3717   x)
  3718     { echo "$as_me:$LINENO: result: none needed" >&5
  3719 echo "${ECHO_T}none needed" >&6; } ;;
  3720   xno)
  3721     { echo "$as_me:$LINENO: result: unsupported" >&5
  3722 echo "${ECHO_T}unsupported" >&6; } ;;
  3723   *)
  3724     CC="$CC $ac_cv_prog_cc_c89"
  3725     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3726 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3727 esac
  3730 ac_ext=c
  3731 ac_cpp='$CPP $CPPFLAGS'
  3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3736 depcc="$CC"   am_compiler_list=
  3738 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3739 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3740 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3741   echo $ECHO_N "(cached) $ECHO_C" >&6
  3742 else
  3743   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3744   # We make a subdir and do the tests there.  Otherwise we can end up
  3745   # making bogus files that we don't know about and never remove.  For
  3746   # instance it was reported that on HP-UX the gcc test will end up
  3747   # making a dummy file named `D' -- because `-MD' means `put the output
  3748   # in D'.
  3749   mkdir conftest.dir
  3750   # Copy depcomp to subdir because otherwise we won't find it if we're
  3751   # using a relative directory.
  3752   cp "$am_depcomp" conftest.dir
  3753   cd conftest.dir
  3754   # We will build objects and dependencies in a subdirectory because
  3755   # it helps to detect inapplicable dependency modes.  For instance
  3756   # both Tru64's cc and ICC support -MD to output dependencies as a
  3757   # side effect of compilation, but ICC will put the dependencies in
  3758   # the current directory while Tru64 will put them in the object
  3759   # directory.
  3760   mkdir sub
  3762   am_cv_CC_dependencies_compiler_type=none
  3763   if test "$am_compiler_list" = ""; then
  3764      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3765   fi
  3766   for depmode in $am_compiler_list; do
  3767     # Setup a source with many dependencies, because some compilers
  3768     # like to wrap large dependency lists on column 80 (with \), and
  3769     # we should not choose a depcomp mode which is confused by this.
  3771     # We need to recreate these files for each test, as the compiler may
  3772     # overwrite some of them when testing with obscure command lines.
  3773     # This happens at least with the AIX C compiler.
  3774     : > sub/conftest.c
  3775     for i in 1 2 3 4 5 6; do
  3776       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3777       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3778       # Solaris 8's {/usr,}/bin/sh.
  3779       touch sub/conftst$i.h
  3780     done
  3781     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3783     case $depmode in
  3784     nosideeffect)
  3785       # after this tag, mechanisms are not by side-effect, so they'll
  3786       # only be used when explicitly requested
  3787       if test "x$enable_dependency_tracking" = xyes; then
  3788 	continue
  3789       else
  3790 	break
  3791       fi
  3792       ;;
  3793     none) break ;;
  3794     esac
  3795     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3796     # mode.  It turns out that the SunPro C++ compiler does not properly
  3797     # handle `-M -o', and we need to detect this.
  3798     if depmode=$depmode \
  3799        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3800        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3801        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3802          >/dev/null 2>conftest.err &&
  3803        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3804        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3805        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3806       # icc doesn't choke on unknown options, it will just issue warnings
  3807       # or remarks (even with -Werror).  So we grep stderr for any message
  3808       # that says an option was ignored or not supported.
  3809       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3810       #   icc: Command line warning: ignoring option '-M'; no argument required
  3811       # The diagnosis changed in icc 8.0:
  3812       #   icc: Command line remark: option '-MP' not supported
  3813       if (grep 'ignoring option' conftest.err ||
  3814           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3815         am_cv_CC_dependencies_compiler_type=$depmode
  3816         break
  3817       fi
  3818     fi
  3819   done
  3821   cd ..
  3822   rm -rf conftest.dir
  3823 else
  3824   am_cv_CC_dependencies_compiler_type=none
  3825 fi
  3827 fi
  3828 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3829 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3830 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3834 if
  3835   test "x$enable_dependency_tracking" != xno \
  3836   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3837   am__fastdepCC_TRUE=
  3838   am__fastdepCC_FALSE='#'
  3839 else
  3840   am__fastdepCC_TRUE='#'
  3841   am__fastdepCC_FALSE=
  3842 fi
  3847         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3848 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  3849 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3850   echo $ECHO_N "(cached) $ECHO_C" >&6
  3851 else
  3852   ac_check_lib_save_LIBS=$LIBS
  3853 LIBS="-lcposix  $LIBS"
  3854 cat >conftest.$ac_ext <<_ACEOF
  3855 /* confdefs.h.  */
  3856 _ACEOF
  3857 cat confdefs.h >>conftest.$ac_ext
  3858 cat >>conftest.$ac_ext <<_ACEOF
  3859 /* end confdefs.h.  */
  3861 /* Override any GCC internal prototype to avoid an error.
  3862    Use char because int might match the return type of a GCC
  3863    builtin and then its argument prototype would still apply.  */
  3864 #ifdef __cplusplus
  3865 extern "C"
  3866 #endif
  3867 char strerror ();
  3868 int
  3869 main ()
  3871 return strerror ();
  3873   return 0;
  3875 _ACEOF
  3876 rm -f conftest.$ac_objext conftest$ac_exeext
  3877 if { (ac_try="$ac_link"
  3878 case "(($ac_try" in
  3879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3880   *) ac_try_echo=$ac_try;;
  3881 esac
  3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3883   (eval "$ac_link") 2>conftest.er1
  3884   ac_status=$?
  3885   grep -v '^ *+' conftest.er1 >conftest.err
  3886   rm -f conftest.er1
  3887   cat conftest.err >&5
  3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3889   (exit $ac_status); } && {
  3890 	 test -z "$ac_c_werror_flag" ||
  3891 	 test ! -s conftest.err
  3892        } && test -s conftest$ac_exeext &&
  3893        $as_test_x conftest$ac_exeext; then
  3894   ac_cv_lib_cposix_strerror=yes
  3895 else
  3896   echo "$as_me: failed program was:" >&5
  3897 sed 's/^/| /' conftest.$ac_ext >&5
  3899 	ac_cv_lib_cposix_strerror=no
  3900 fi
  3902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3903       conftest$ac_exeext conftest.$ac_ext
  3904 LIBS=$ac_check_lib_save_LIBS
  3905 fi
  3906 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3907 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  3908 if test $ac_cv_lib_cposix_strerror = yes; then
  3909   LIBS="$LIBS -lcposix"
  3910 fi
  3914 ac_ext=c
  3915 ac_cpp='$CPP $CPPFLAGS'
  3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3919 if test -n "$ac_tool_prefix"; then
  3920   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3924 if test "${ac_cv_prog_CC+set}" = set; then
  3925   echo $ECHO_N "(cached) $ECHO_C" >&6
  3926 else
  3927   if test -n "$CC"; then
  3928   ac_cv_prog_CC="$CC" # Let the user override the test.
  3929 else
  3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3931 for as_dir in $PATH
  3932 do
  3933   IFS=$as_save_IFS
  3934   test -z "$as_dir" && as_dir=.
  3935   for ac_exec_ext in '' $ac_executable_extensions; do
  3936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3937     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3939     break 2
  3940   fi
  3941 done
  3942 done
  3943 IFS=$as_save_IFS
  3945 fi
  3946 fi
  3947 CC=$ac_cv_prog_CC
  3948 if test -n "$CC"; then
  3949   { echo "$as_me:$LINENO: result: $CC" >&5
  3950 echo "${ECHO_T}$CC" >&6; }
  3951 else
  3952   { echo "$as_me:$LINENO: result: no" >&5
  3953 echo "${ECHO_T}no" >&6; }
  3954 fi
  3957 fi
  3958 if test -z "$ac_cv_prog_CC"; then
  3959   ac_ct_CC=$CC
  3960   # Extract the first word of "gcc", so it can be a program name with args.
  3961 set dummy gcc; ac_word=$2
  3962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3965   echo $ECHO_N "(cached) $ECHO_C" >&6
  3966 else
  3967   if test -n "$ac_ct_CC"; then
  3968   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3969 else
  3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3971 for as_dir in $PATH
  3972 do
  3973   IFS=$as_save_IFS
  3974   test -z "$as_dir" && as_dir=.
  3975   for ac_exec_ext in '' $ac_executable_extensions; do
  3976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3977     ac_cv_prog_ac_ct_CC="gcc"
  3978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3979     break 2
  3980   fi
  3981 done
  3982 done
  3983 IFS=$as_save_IFS
  3985 fi
  3986 fi
  3987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3988 if test -n "$ac_ct_CC"; then
  3989   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3990 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3991 else
  3992   { echo "$as_me:$LINENO: result: no" >&5
  3993 echo "${ECHO_T}no" >&6; }
  3994 fi
  3996   if test "x$ac_ct_CC" = x; then
  3997     CC=""
  3998   else
  3999     case $cross_compiling:$ac_tool_warned in
  4000 yes:)
  4001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4002 whose name does not start with the host triplet.  If you think this
  4003 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4005 whose name does not start with the host triplet.  If you think this
  4006 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4007 ac_tool_warned=yes ;;
  4008 esac
  4009     CC=$ac_ct_CC
  4010   fi
  4011 else
  4012   CC="$ac_cv_prog_CC"
  4013 fi
  4015 if test -z "$CC"; then
  4016           if test -n "$ac_tool_prefix"; then
  4017     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4018 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4021 if test "${ac_cv_prog_CC+set}" = set; then
  4022   echo $ECHO_N "(cached) $ECHO_C" >&6
  4023 else
  4024   if test -n "$CC"; then
  4025   ac_cv_prog_CC="$CC" # Let the user override the test.
  4026 else
  4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4028 for as_dir in $PATH
  4029 do
  4030   IFS=$as_save_IFS
  4031   test -z "$as_dir" && as_dir=.
  4032   for ac_exec_ext in '' $ac_executable_extensions; do
  4033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4034     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4036     break 2
  4037   fi
  4038 done
  4039 done
  4040 IFS=$as_save_IFS
  4042 fi
  4043 fi
  4044 CC=$ac_cv_prog_CC
  4045 if test -n "$CC"; then
  4046   { echo "$as_me:$LINENO: result: $CC" >&5
  4047 echo "${ECHO_T}$CC" >&6; }
  4048 else
  4049   { echo "$as_me:$LINENO: result: no" >&5
  4050 echo "${ECHO_T}no" >&6; }
  4051 fi
  4054   fi
  4055 fi
  4056 if test -z "$CC"; then
  4057   # Extract the first word of "cc", so it can be a program name with args.
  4058 set dummy cc; ac_word=$2
  4059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4061 if test "${ac_cv_prog_CC+set}" = set; then
  4062   echo $ECHO_N "(cached) $ECHO_C" >&6
  4063 else
  4064   if test -n "$CC"; then
  4065   ac_cv_prog_CC="$CC" # Let the user override the test.
  4066 else
  4067   ac_prog_rejected=no
  4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4069 for as_dir in $PATH
  4070 do
  4071   IFS=$as_save_IFS
  4072   test -z "$as_dir" && as_dir=.
  4073   for ac_exec_ext in '' $ac_executable_extensions; do
  4074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4075     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4076        ac_prog_rejected=yes
  4077        continue
  4078      fi
  4079     ac_cv_prog_CC="cc"
  4080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4081     break 2
  4082   fi
  4083 done
  4084 done
  4085 IFS=$as_save_IFS
  4087 if test $ac_prog_rejected = yes; then
  4088   # We found a bogon in the path, so make sure we never use it.
  4089   set dummy $ac_cv_prog_CC
  4090   shift
  4091   if test $# != 0; then
  4092     # We chose a different compiler from the bogus one.
  4093     # However, it has the same basename, so the bogon will be chosen
  4094     # first if we set CC to just the basename; use the full file name.
  4095     shift
  4096     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4097   fi
  4098 fi
  4099 fi
  4100 fi
  4101 CC=$ac_cv_prog_CC
  4102 if test -n "$CC"; then
  4103   { echo "$as_me:$LINENO: result: $CC" >&5
  4104 echo "${ECHO_T}$CC" >&6; }
  4105 else
  4106   { echo "$as_me:$LINENO: result: no" >&5
  4107 echo "${ECHO_T}no" >&6; }
  4108 fi
  4111 fi
  4112 if test -z "$CC"; then
  4113   if test -n "$ac_tool_prefix"; then
  4114   for ac_prog in cl.exe
  4115   do
  4116     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4120 if test "${ac_cv_prog_CC+set}" = set; then
  4121   echo $ECHO_N "(cached) $ECHO_C" >&6
  4122 else
  4123   if test -n "$CC"; then
  4124   ac_cv_prog_CC="$CC" # Let the user override the test.
  4125 else
  4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4127 for as_dir in $PATH
  4128 do
  4129   IFS=$as_save_IFS
  4130   test -z "$as_dir" && as_dir=.
  4131   for ac_exec_ext in '' $ac_executable_extensions; do
  4132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4133     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4135     break 2
  4136   fi
  4137 done
  4138 done
  4139 IFS=$as_save_IFS
  4141 fi
  4142 fi
  4143 CC=$ac_cv_prog_CC
  4144 if test -n "$CC"; then
  4145   { echo "$as_me:$LINENO: result: $CC" >&5
  4146 echo "${ECHO_T}$CC" >&6; }
  4147 else
  4148   { echo "$as_me:$LINENO: result: no" >&5
  4149 echo "${ECHO_T}no" >&6; }
  4150 fi
  4153     test -n "$CC" && break
  4154   done
  4155 fi
  4156 if test -z "$CC"; then
  4157   ac_ct_CC=$CC
  4158   for ac_prog in cl.exe
  4159 do
  4160   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4161 set dummy $ac_prog; ac_word=$2
  4162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4165   echo $ECHO_N "(cached) $ECHO_C" >&6
  4166 else
  4167   if test -n "$ac_ct_CC"; then
  4168   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4169 else
  4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4171 for as_dir in $PATH
  4172 do
  4173   IFS=$as_save_IFS
  4174   test -z "$as_dir" && as_dir=.
  4175   for ac_exec_ext in '' $ac_executable_extensions; do
  4176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4177     ac_cv_prog_ac_ct_CC="$ac_prog"
  4178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4179     break 2
  4180   fi
  4181 done
  4182 done
  4183 IFS=$as_save_IFS
  4185 fi
  4186 fi
  4187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4188 if test -n "$ac_ct_CC"; then
  4189   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4190 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4191 else
  4192   { echo "$as_me:$LINENO: result: no" >&5
  4193 echo "${ECHO_T}no" >&6; }
  4194 fi
  4197   test -n "$ac_ct_CC" && break
  4198 done
  4200   if test "x$ac_ct_CC" = x; then
  4201     CC=""
  4202   else
  4203     case $cross_compiling:$ac_tool_warned in
  4204 yes:)
  4205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4206 whose name does not start with the host triplet.  If you think this
  4207 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4209 whose name does not start with the host triplet.  If you think this
  4210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4211 ac_tool_warned=yes ;;
  4212 esac
  4213     CC=$ac_ct_CC
  4214   fi
  4215 fi
  4217 fi
  4220 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4221 See \`config.log' for more details." >&5
  4222 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4223 See \`config.log' for more details." >&2;}
  4224    { (exit 1); exit 1; }; }
  4226 # Provide some information about the compiler.
  4227 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4228 ac_compiler=`set X $ac_compile; echo $2`
  4229 { (ac_try="$ac_compiler --version >&5"
  4230 case "(($ac_try" in
  4231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4232   *) ac_try_echo=$ac_try;;
  4233 esac
  4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4235   (eval "$ac_compiler --version >&5") 2>&5
  4236   ac_status=$?
  4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4238   (exit $ac_status); }
  4239 { (ac_try="$ac_compiler -v >&5"
  4240 case "(($ac_try" in
  4241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4242   *) ac_try_echo=$ac_try;;
  4243 esac
  4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4245   (eval "$ac_compiler -v >&5") 2>&5
  4246   ac_status=$?
  4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248   (exit $ac_status); }
  4249 { (ac_try="$ac_compiler -V >&5"
  4250 case "(($ac_try" in
  4251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4252   *) ac_try_echo=$ac_try;;
  4253 esac
  4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4255   (eval "$ac_compiler -V >&5") 2>&5
  4256   ac_status=$?
  4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4258   (exit $ac_status); }
  4260 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4261 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4262 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4263   echo $ECHO_N "(cached) $ECHO_C" >&6
  4264 else
  4265   cat >conftest.$ac_ext <<_ACEOF
  4266 /* confdefs.h.  */
  4267 _ACEOF
  4268 cat confdefs.h >>conftest.$ac_ext
  4269 cat >>conftest.$ac_ext <<_ACEOF
  4270 /* end confdefs.h.  */
  4272 int
  4273 main ()
  4275 #ifndef __GNUC__
  4276        choke me
  4277 #endif
  4280   return 0;
  4282 _ACEOF
  4283 rm -f conftest.$ac_objext
  4284 if { (ac_try="$ac_compile"
  4285 case "(($ac_try" in
  4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4287   *) ac_try_echo=$ac_try;;
  4288 esac
  4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4290   (eval "$ac_compile") 2>conftest.er1
  4291   ac_status=$?
  4292   grep -v '^ *+' conftest.er1 >conftest.err
  4293   rm -f conftest.er1
  4294   cat conftest.err >&5
  4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4296   (exit $ac_status); } && {
  4297 	 test -z "$ac_c_werror_flag" ||
  4298 	 test ! -s conftest.err
  4299        } && test -s conftest.$ac_objext; then
  4300   ac_compiler_gnu=yes
  4301 else
  4302   echo "$as_me: failed program was:" >&5
  4303 sed 's/^/| /' conftest.$ac_ext >&5
  4305 	ac_compiler_gnu=no
  4306 fi
  4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4311 fi
  4312 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4313 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4314 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4315 ac_test_CFLAGS=${CFLAGS+set}
  4316 ac_save_CFLAGS=$CFLAGS
  4317 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4318 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4319 if test "${ac_cv_prog_cc_g+set}" = set; then
  4320   echo $ECHO_N "(cached) $ECHO_C" >&6
  4321 else
  4322   ac_save_c_werror_flag=$ac_c_werror_flag
  4323    ac_c_werror_flag=yes
  4324    ac_cv_prog_cc_g=no
  4325    CFLAGS="-g"
  4326    cat >conftest.$ac_ext <<_ACEOF
  4327 /* confdefs.h.  */
  4328 _ACEOF
  4329 cat confdefs.h >>conftest.$ac_ext
  4330 cat >>conftest.$ac_ext <<_ACEOF
  4331 /* end confdefs.h.  */
  4333 int
  4334 main ()
  4338   return 0;
  4340 _ACEOF
  4341 rm -f conftest.$ac_objext
  4342 if { (ac_try="$ac_compile"
  4343 case "(($ac_try" in
  4344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4345   *) ac_try_echo=$ac_try;;
  4346 esac
  4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4348   (eval "$ac_compile") 2>conftest.er1
  4349   ac_status=$?
  4350   grep -v '^ *+' conftest.er1 >conftest.err
  4351   rm -f conftest.er1
  4352   cat conftest.err >&5
  4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4354   (exit $ac_status); } && {
  4355 	 test -z "$ac_c_werror_flag" ||
  4356 	 test ! -s conftest.err
  4357        } && test -s conftest.$ac_objext; then
  4358   ac_cv_prog_cc_g=yes
  4359 else
  4360   echo "$as_me: failed program was:" >&5
  4361 sed 's/^/| /' conftest.$ac_ext >&5
  4363 	CFLAGS=""
  4364       cat >conftest.$ac_ext <<_ACEOF
  4365 /* confdefs.h.  */
  4366 _ACEOF
  4367 cat confdefs.h >>conftest.$ac_ext
  4368 cat >>conftest.$ac_ext <<_ACEOF
  4369 /* end confdefs.h.  */
  4371 int
  4372 main ()
  4376   return 0;
  4378 _ACEOF
  4379 rm -f conftest.$ac_objext
  4380 if { (ac_try="$ac_compile"
  4381 case "(($ac_try" in
  4382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4383   *) ac_try_echo=$ac_try;;
  4384 esac
  4385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4386   (eval "$ac_compile") 2>conftest.er1
  4387   ac_status=$?
  4388   grep -v '^ *+' conftest.er1 >conftest.err
  4389   rm -f conftest.er1
  4390   cat conftest.err >&5
  4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4392   (exit $ac_status); } && {
  4393 	 test -z "$ac_c_werror_flag" ||
  4394 	 test ! -s conftest.err
  4395        } && test -s conftest.$ac_objext; then
  4397 else
  4398   echo "$as_me: failed program was:" >&5
  4399 sed 's/^/| /' conftest.$ac_ext >&5
  4401 	ac_c_werror_flag=$ac_save_c_werror_flag
  4402 	 CFLAGS="-g"
  4403 	 cat >conftest.$ac_ext <<_ACEOF
  4404 /* confdefs.h.  */
  4405 _ACEOF
  4406 cat confdefs.h >>conftest.$ac_ext
  4407 cat >>conftest.$ac_ext <<_ACEOF
  4408 /* end confdefs.h.  */
  4410 int
  4411 main ()
  4415   return 0;
  4417 _ACEOF
  4418 rm -f conftest.$ac_objext
  4419 if { (ac_try="$ac_compile"
  4420 case "(($ac_try" in
  4421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4422   *) ac_try_echo=$ac_try;;
  4423 esac
  4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4425   (eval "$ac_compile") 2>conftest.er1
  4426   ac_status=$?
  4427   grep -v '^ *+' conftest.er1 >conftest.err
  4428   rm -f conftest.er1
  4429   cat conftest.err >&5
  4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4431   (exit $ac_status); } && {
  4432 	 test -z "$ac_c_werror_flag" ||
  4433 	 test ! -s conftest.err
  4434        } && test -s conftest.$ac_objext; then
  4435   ac_cv_prog_cc_g=yes
  4436 else
  4437   echo "$as_me: failed program was:" >&5
  4438 sed 's/^/| /' conftest.$ac_ext >&5
  4441 fi
  4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4444 fi
  4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4447 fi
  4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4450    ac_c_werror_flag=$ac_save_c_werror_flag
  4451 fi
  4452 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4453 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4454 if test "$ac_test_CFLAGS" = set; then
  4455   CFLAGS=$ac_save_CFLAGS
  4456 elif test $ac_cv_prog_cc_g = yes; then
  4457   if test "$GCC" = yes; then
  4458     CFLAGS="-g -O2"
  4459   else
  4460     CFLAGS="-g"
  4461   fi
  4462 else
  4463   if test "$GCC" = yes; then
  4464     CFLAGS="-O2"
  4465   else
  4466     CFLAGS=
  4467   fi
  4468 fi
  4469 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4470 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4471 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4472   echo $ECHO_N "(cached) $ECHO_C" >&6
  4473 else
  4474   ac_cv_prog_cc_c89=no
  4475 ac_save_CC=$CC
  4476 cat >conftest.$ac_ext <<_ACEOF
  4477 /* confdefs.h.  */
  4478 _ACEOF
  4479 cat confdefs.h >>conftest.$ac_ext
  4480 cat >>conftest.$ac_ext <<_ACEOF
  4481 /* end confdefs.h.  */
  4482 #include <stdarg.h>
  4483 #include <stdio.h>
  4484 #include <sys/types.h>
  4485 #include <sys/stat.h>
  4486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4487 struct buf { int x; };
  4488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4489 static char *e (p, i)
  4490      char **p;
  4491      int i;
  4493   return p[i];
  4495 static char *f (char * (*g) (char **, int), char **p, ...)
  4497   char *s;
  4498   va_list v;
  4499   va_start (v,p);
  4500   s = g (p, va_arg (v,int));
  4501   va_end (v);
  4502   return s;
  4505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4506    function prototypes and stuff, but not '\xHH' hex character constants.
  4507    These don't provoke an error unfortunately, instead are silently treated
  4508    as 'x'.  The following induces an error, until -std is added to get
  4509    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4510    array size at least.  It's necessary to write '\x00'==0 to get something
  4511    that's true only with -std.  */
  4512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4514 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4515    inside strings and character constants.  */
  4516 #define FOO(x) 'x'
  4517 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4519 int test (int i, double x);
  4520 struct s1 {int (*f) (int a);};
  4521 struct s2 {int (*f) (double a);};
  4522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4523 int argc;
  4524 char **argv;
  4525 int
  4526 main ()
  4528 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4530   return 0;
  4532 _ACEOF
  4533 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4534 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4535 do
  4536   CC="$ac_save_CC $ac_arg"
  4537   rm -f conftest.$ac_objext
  4538 if { (ac_try="$ac_compile"
  4539 case "(($ac_try" in
  4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4541   *) ac_try_echo=$ac_try;;
  4542 esac
  4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4544   (eval "$ac_compile") 2>conftest.er1
  4545   ac_status=$?
  4546   grep -v '^ *+' conftest.er1 >conftest.err
  4547   rm -f conftest.er1
  4548   cat conftest.err >&5
  4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4550   (exit $ac_status); } && {
  4551 	 test -z "$ac_c_werror_flag" ||
  4552 	 test ! -s conftest.err
  4553        } && test -s conftest.$ac_objext; then
  4554   ac_cv_prog_cc_c89=$ac_arg
  4555 else
  4556   echo "$as_me: failed program was:" >&5
  4557 sed 's/^/| /' conftest.$ac_ext >&5
  4560 fi
  4562 rm -f core conftest.err conftest.$ac_objext
  4563   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4564 done
  4565 rm -f conftest.$ac_ext
  4566 CC=$ac_save_CC
  4568 fi
  4569 # AC_CACHE_VAL
  4570 case "x$ac_cv_prog_cc_c89" in
  4571   x)
  4572     { echo "$as_me:$LINENO: result: none needed" >&5
  4573 echo "${ECHO_T}none needed" >&6; } ;;
  4574   xno)
  4575     { echo "$as_me:$LINENO: result: unsupported" >&5
  4576 echo "${ECHO_T}unsupported" >&6; } ;;
  4577   *)
  4578     CC="$CC $ac_cv_prog_cc_c89"
  4579     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4580 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4581 esac
  4584 ac_ext=c
  4585 ac_cpp='$CPP $CPPFLAGS'
  4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4590 depcc="$CC"   am_compiler_list=
  4592 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4593 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4594 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4595   echo $ECHO_N "(cached) $ECHO_C" >&6
  4596 else
  4597   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4598   # We make a subdir and do the tests there.  Otherwise we can end up
  4599   # making bogus files that we don't know about and never remove.  For
  4600   # instance it was reported that on HP-UX the gcc test will end up
  4601   # making a dummy file named `D' -- because `-MD' means `put the output
  4602   # in D'.
  4603   mkdir conftest.dir
  4604   # Copy depcomp to subdir because otherwise we won't find it if we're
  4605   # using a relative directory.
  4606   cp "$am_depcomp" conftest.dir
  4607   cd conftest.dir
  4608   # We will build objects and dependencies in a subdirectory because
  4609   # it helps to detect inapplicable dependency modes.  For instance
  4610   # both Tru64's cc and ICC support -MD to output dependencies as a
  4611   # side effect of compilation, but ICC will put the dependencies in
  4612   # the current directory while Tru64 will put them in the object
  4613   # directory.
  4614   mkdir sub
  4616   am_cv_CC_dependencies_compiler_type=none
  4617   if test "$am_compiler_list" = ""; then
  4618      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4619   fi
  4620   for depmode in $am_compiler_list; do
  4621     # Setup a source with many dependencies, because some compilers
  4622     # like to wrap large dependency lists on column 80 (with \), and
  4623     # we should not choose a depcomp mode which is confused by this.
  4625     # We need to recreate these files for each test, as the compiler may
  4626     # overwrite some of them when testing with obscure command lines.
  4627     # This happens at least with the AIX C compiler.
  4628     : > sub/conftest.c
  4629     for i in 1 2 3 4 5 6; do
  4630       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4631       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4632       # Solaris 8's {/usr,}/bin/sh.
  4633       touch sub/conftst$i.h
  4634     done
  4635     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4637     case $depmode in
  4638     nosideeffect)
  4639       # after this tag, mechanisms are not by side-effect, so they'll
  4640       # only be used when explicitly requested
  4641       if test "x$enable_dependency_tracking" = xyes; then
  4642 	continue
  4643       else
  4644 	break
  4645       fi
  4646       ;;
  4647     none) break ;;
  4648     esac
  4649     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4650     # mode.  It turns out that the SunPro C++ compiler does not properly
  4651     # handle `-M -o', and we need to detect this.
  4652     if depmode=$depmode \
  4653        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4654        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4655        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4656          >/dev/null 2>conftest.err &&
  4657        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4658        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4659        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4660       # icc doesn't choke on unknown options, it will just issue warnings
  4661       # or remarks (even with -Werror).  So we grep stderr for any message
  4662       # that says an option was ignored or not supported.
  4663       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4664       #   icc: Command line warning: ignoring option '-M'; no argument required
  4665       # The diagnosis changed in icc 8.0:
  4666       #   icc: Command line remark: option '-MP' not supported
  4667       if (grep 'ignoring option' conftest.err ||
  4668           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4669         am_cv_CC_dependencies_compiler_type=$depmode
  4670         break
  4671       fi
  4672     fi
  4673   done
  4675   cd ..
  4676   rm -rf conftest.dir
  4677 else
  4678   am_cv_CC_dependencies_compiler_type=none
  4679 fi
  4681 fi
  4682 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4683 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4684 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4688 if
  4689   test "x$enable_dependency_tracking" != xno \
  4690   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4691   am__fastdepCC_TRUE=
  4692   am__fastdepCC_FALSE='#'
  4693 else
  4694   am__fastdepCC_TRUE='#'
  4695   am__fastdepCC_FALSE=
  4696 fi
  4699 ac_ext=c
  4700 ac_cpp='$CPP $CPPFLAGS'
  4701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4704 if test -n "$ac_tool_prefix"; then
  4705   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4706 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4709 if test "${ac_cv_prog_CC+set}" = set; then
  4710   echo $ECHO_N "(cached) $ECHO_C" >&6
  4711 else
  4712   if test -n "$CC"; then
  4713   ac_cv_prog_CC="$CC" # Let the user override the test.
  4714 else
  4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4716 for as_dir in $PATH
  4717 do
  4718   IFS=$as_save_IFS
  4719   test -z "$as_dir" && as_dir=.
  4720   for ac_exec_ext in '' $ac_executable_extensions; do
  4721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4722     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4724     break 2
  4725   fi
  4726 done
  4727 done
  4728 IFS=$as_save_IFS
  4730 fi
  4731 fi
  4732 CC=$ac_cv_prog_CC
  4733 if test -n "$CC"; then
  4734   { echo "$as_me:$LINENO: result: $CC" >&5
  4735 echo "${ECHO_T}$CC" >&6; }
  4736 else
  4737   { echo "$as_me:$LINENO: result: no" >&5
  4738 echo "${ECHO_T}no" >&6; }
  4739 fi
  4742 fi
  4743 if test -z "$ac_cv_prog_CC"; then
  4744   ac_ct_CC=$CC
  4745   # Extract the first word of "gcc", so it can be a program name with args.
  4746 set dummy gcc; ac_word=$2
  4747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4749 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4750   echo $ECHO_N "(cached) $ECHO_C" >&6
  4751 else
  4752   if test -n "$ac_ct_CC"; then
  4753   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4754 else
  4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4756 for as_dir in $PATH
  4757 do
  4758   IFS=$as_save_IFS
  4759   test -z "$as_dir" && as_dir=.
  4760   for ac_exec_ext in '' $ac_executable_extensions; do
  4761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4762     ac_cv_prog_ac_ct_CC="gcc"
  4763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4764     break 2
  4765   fi
  4766 done
  4767 done
  4768 IFS=$as_save_IFS
  4770 fi
  4771 fi
  4772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4773 if test -n "$ac_ct_CC"; then
  4774   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4775 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4776 else
  4777   { echo "$as_me:$LINENO: result: no" >&5
  4778 echo "${ECHO_T}no" >&6; }
  4779 fi
  4781   if test "x$ac_ct_CC" = x; then
  4782     CC=""
  4783   else
  4784     case $cross_compiling:$ac_tool_warned in
  4785 yes:)
  4786 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4787 whose name does not start with the host triplet.  If you think this
  4788 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4789 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4790 whose name does not start with the host triplet.  If you think this
  4791 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4792 ac_tool_warned=yes ;;
  4793 esac
  4794     CC=$ac_ct_CC
  4795   fi
  4796 else
  4797   CC="$ac_cv_prog_CC"
  4798 fi
  4800 if test -z "$CC"; then
  4801           if test -n "$ac_tool_prefix"; then
  4802     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4803 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4806 if test "${ac_cv_prog_CC+set}" = set; then
  4807   echo $ECHO_N "(cached) $ECHO_C" >&6
  4808 else
  4809   if test -n "$CC"; then
  4810   ac_cv_prog_CC="$CC" # Let the user override the test.
  4811 else
  4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4813 for as_dir in $PATH
  4814 do
  4815   IFS=$as_save_IFS
  4816   test -z "$as_dir" && as_dir=.
  4817   for ac_exec_ext in '' $ac_executable_extensions; do
  4818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4819     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4821     break 2
  4822   fi
  4823 done
  4824 done
  4825 IFS=$as_save_IFS
  4827 fi
  4828 fi
  4829 CC=$ac_cv_prog_CC
  4830 if test -n "$CC"; then
  4831   { echo "$as_me:$LINENO: result: $CC" >&5
  4832 echo "${ECHO_T}$CC" >&6; }
  4833 else
  4834   { echo "$as_me:$LINENO: result: no" >&5
  4835 echo "${ECHO_T}no" >&6; }
  4836 fi
  4839   fi
  4840 fi
  4841 if test -z "$CC"; then
  4842   # Extract the first word of "cc", so it can be a program name with args.
  4843 set dummy cc; ac_word=$2
  4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4846 if test "${ac_cv_prog_CC+set}" = set; then
  4847   echo $ECHO_N "(cached) $ECHO_C" >&6
  4848 else
  4849   if test -n "$CC"; then
  4850   ac_cv_prog_CC="$CC" # Let the user override the test.
  4851 else
  4852   ac_prog_rejected=no
  4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854 for as_dir in $PATH
  4855 do
  4856   IFS=$as_save_IFS
  4857   test -z "$as_dir" && as_dir=.
  4858   for ac_exec_ext in '' $ac_executable_extensions; do
  4859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4860     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4861        ac_prog_rejected=yes
  4862        continue
  4863      fi
  4864     ac_cv_prog_CC="cc"
  4865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4866     break 2
  4867   fi
  4868 done
  4869 done
  4870 IFS=$as_save_IFS
  4872 if test $ac_prog_rejected = yes; then
  4873   # We found a bogon in the path, so make sure we never use it.
  4874   set dummy $ac_cv_prog_CC
  4875   shift
  4876   if test $# != 0; then
  4877     # We chose a different compiler from the bogus one.
  4878     # However, it has the same basename, so the bogon will be chosen
  4879     # first if we set CC to just the basename; use the full file name.
  4880     shift
  4881     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4882   fi
  4883 fi
  4884 fi
  4885 fi
  4886 CC=$ac_cv_prog_CC
  4887 if test -n "$CC"; then
  4888   { echo "$as_me:$LINENO: result: $CC" >&5
  4889 echo "${ECHO_T}$CC" >&6; }
  4890 else
  4891   { echo "$as_me:$LINENO: result: no" >&5
  4892 echo "${ECHO_T}no" >&6; }
  4893 fi
  4896 fi
  4897 if test -z "$CC"; then
  4898   if test -n "$ac_tool_prefix"; then
  4899   for ac_prog in cl.exe
  4900   do
  4901     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4905 if test "${ac_cv_prog_CC+set}" = set; then
  4906   echo $ECHO_N "(cached) $ECHO_C" >&6
  4907 else
  4908   if test -n "$CC"; then
  4909   ac_cv_prog_CC="$CC" # Let the user override the test.
  4910 else
  4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4912 for as_dir in $PATH
  4913 do
  4914   IFS=$as_save_IFS
  4915   test -z "$as_dir" && as_dir=.
  4916   for ac_exec_ext in '' $ac_executable_extensions; do
  4917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4918     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4920     break 2
  4921   fi
  4922 done
  4923 done
  4924 IFS=$as_save_IFS
  4926 fi
  4927 fi
  4928 CC=$ac_cv_prog_CC
  4929 if test -n "$CC"; then
  4930   { echo "$as_me:$LINENO: result: $CC" >&5
  4931 echo "${ECHO_T}$CC" >&6; }
  4932 else
  4933   { echo "$as_me:$LINENO: result: no" >&5
  4934 echo "${ECHO_T}no" >&6; }
  4935 fi
  4938     test -n "$CC" && break
  4939   done
  4940 fi
  4941 if test -z "$CC"; then
  4942   ac_ct_CC=$CC
  4943   for ac_prog in cl.exe
  4944 do
  4945   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4946 set dummy $ac_prog; ac_word=$2
  4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4950   echo $ECHO_N "(cached) $ECHO_C" >&6
  4951 else
  4952   if test -n "$ac_ct_CC"; then
  4953   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4954 else
  4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4956 for as_dir in $PATH
  4957 do
  4958   IFS=$as_save_IFS
  4959   test -z "$as_dir" && as_dir=.
  4960   for ac_exec_ext in '' $ac_executable_extensions; do
  4961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4962     ac_cv_prog_ac_ct_CC="$ac_prog"
  4963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4964     break 2
  4965   fi
  4966 done
  4967 done
  4968 IFS=$as_save_IFS
  4970 fi
  4971 fi
  4972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4973 if test -n "$ac_ct_CC"; then
  4974   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4975 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4976 else
  4977   { echo "$as_me:$LINENO: result: no" >&5
  4978 echo "${ECHO_T}no" >&6; }
  4979 fi
  4982   test -n "$ac_ct_CC" && break
  4983 done
  4985   if test "x$ac_ct_CC" = x; then
  4986     CC=""
  4987   else
  4988     case $cross_compiling:$ac_tool_warned in
  4989 yes:)
  4990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4991 whose name does not start with the host triplet.  If you think this
  4992 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4994 whose name does not start with the host triplet.  If you think this
  4995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4996 ac_tool_warned=yes ;;
  4997 esac
  4998     CC=$ac_ct_CC
  4999   fi
  5000 fi
  5002 fi
  5005 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5006 See \`config.log' for more details." >&5
  5007 echo "$as_me: error: no acceptable C compiler found in \$PATH
  5008 See \`config.log' for more details." >&2;}
  5009    { (exit 1); exit 1; }; }
  5011 # Provide some information about the compiler.
  5012 echo "$as_me:$LINENO: checking for C compiler version" >&5
  5013 ac_compiler=`set X $ac_compile; echo $2`
  5014 { (ac_try="$ac_compiler --version >&5"
  5015 case "(($ac_try" in
  5016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5017   *) ac_try_echo=$ac_try;;
  5018 esac
  5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5020   (eval "$ac_compiler --version >&5") 2>&5
  5021   ac_status=$?
  5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5023   (exit $ac_status); }
  5024 { (ac_try="$ac_compiler -v >&5"
  5025 case "(($ac_try" in
  5026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5027   *) ac_try_echo=$ac_try;;
  5028 esac
  5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5030   (eval "$ac_compiler -v >&5") 2>&5
  5031   ac_status=$?
  5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5033   (exit $ac_status); }
  5034 { (ac_try="$ac_compiler -V >&5"
  5035 case "(($ac_try" in
  5036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5037   *) ac_try_echo=$ac_try;;
  5038 esac
  5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5040   (eval "$ac_compiler -V >&5") 2>&5
  5041   ac_status=$?
  5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5043   (exit $ac_status); }
  5045 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5046 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  5047 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5048   echo $ECHO_N "(cached) $ECHO_C" >&6
  5049 else
  5050   cat >conftest.$ac_ext <<_ACEOF
  5051 /* confdefs.h.  */
  5052 _ACEOF
  5053 cat confdefs.h >>conftest.$ac_ext
  5054 cat >>conftest.$ac_ext <<_ACEOF
  5055 /* end confdefs.h.  */
  5057 int
  5058 main ()
  5060 #ifndef __GNUC__
  5061        choke me
  5062 #endif
  5065   return 0;
  5067 _ACEOF
  5068 rm -f conftest.$ac_objext
  5069 if { (ac_try="$ac_compile"
  5070 case "(($ac_try" in
  5071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5072   *) ac_try_echo=$ac_try;;
  5073 esac
  5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5075   (eval "$ac_compile") 2>conftest.er1
  5076   ac_status=$?
  5077   grep -v '^ *+' conftest.er1 >conftest.err
  5078   rm -f conftest.er1
  5079   cat conftest.err >&5
  5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5081   (exit $ac_status); } && {
  5082 	 test -z "$ac_c_werror_flag" ||
  5083 	 test ! -s conftest.err
  5084        } && test -s conftest.$ac_objext; then
  5085   ac_compiler_gnu=yes
  5086 else
  5087   echo "$as_me: failed program was:" >&5
  5088 sed 's/^/| /' conftest.$ac_ext >&5
  5090 	ac_compiler_gnu=no
  5091 fi
  5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5096 fi
  5097 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  5099 GCC=`test $ac_compiler_gnu = yes && echo yes`
  5100 ac_test_CFLAGS=${CFLAGS+set}
  5101 ac_save_CFLAGS=$CFLAGS
  5102 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5103 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  5104 if test "${ac_cv_prog_cc_g+set}" = set; then
  5105   echo $ECHO_N "(cached) $ECHO_C" >&6
  5106 else
  5107   ac_save_c_werror_flag=$ac_c_werror_flag
  5108    ac_c_werror_flag=yes
  5109    ac_cv_prog_cc_g=no
  5110    CFLAGS="-g"
  5111    cat >conftest.$ac_ext <<_ACEOF
  5112 /* confdefs.h.  */
  5113 _ACEOF
  5114 cat confdefs.h >>conftest.$ac_ext
  5115 cat >>conftest.$ac_ext <<_ACEOF
  5116 /* end confdefs.h.  */
  5118 int
  5119 main ()
  5123   return 0;
  5125 _ACEOF
  5126 rm -f conftest.$ac_objext
  5127 if { (ac_try="$ac_compile"
  5128 case "(($ac_try" in
  5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5130   *) ac_try_echo=$ac_try;;
  5131 esac
  5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5133   (eval "$ac_compile") 2>conftest.er1
  5134   ac_status=$?
  5135   grep -v '^ *+' conftest.er1 >conftest.err
  5136   rm -f conftest.er1
  5137   cat conftest.err >&5
  5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5139   (exit $ac_status); } && {
  5140 	 test -z "$ac_c_werror_flag" ||
  5141 	 test ! -s conftest.err
  5142        } && test -s conftest.$ac_objext; then
  5143   ac_cv_prog_cc_g=yes
  5144 else
  5145   echo "$as_me: failed program was:" >&5
  5146 sed 's/^/| /' conftest.$ac_ext >&5
  5148 	CFLAGS=""
  5149       cat >conftest.$ac_ext <<_ACEOF
  5150 /* confdefs.h.  */
  5151 _ACEOF
  5152 cat confdefs.h >>conftest.$ac_ext
  5153 cat >>conftest.$ac_ext <<_ACEOF
  5154 /* end confdefs.h.  */
  5156 int
  5157 main ()
  5161   return 0;
  5163 _ACEOF
  5164 rm -f conftest.$ac_objext
  5165 if { (ac_try="$ac_compile"
  5166 case "(($ac_try" in
  5167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5168   *) ac_try_echo=$ac_try;;
  5169 esac
  5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5171   (eval "$ac_compile") 2>conftest.er1
  5172   ac_status=$?
  5173   grep -v '^ *+' conftest.er1 >conftest.err
  5174   rm -f conftest.er1
  5175   cat conftest.err >&5
  5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5177   (exit $ac_status); } && {
  5178 	 test -z "$ac_c_werror_flag" ||
  5179 	 test ! -s conftest.err
  5180        } && test -s conftest.$ac_objext; then
  5182 else
  5183   echo "$as_me: failed program was:" >&5
  5184 sed 's/^/| /' conftest.$ac_ext >&5
  5186 	ac_c_werror_flag=$ac_save_c_werror_flag
  5187 	 CFLAGS="-g"
  5188 	 cat >conftest.$ac_ext <<_ACEOF
  5189 /* confdefs.h.  */
  5190 _ACEOF
  5191 cat confdefs.h >>conftest.$ac_ext
  5192 cat >>conftest.$ac_ext <<_ACEOF
  5193 /* end confdefs.h.  */
  5195 int
  5196 main ()
  5200   return 0;
  5202 _ACEOF
  5203 rm -f conftest.$ac_objext
  5204 if { (ac_try="$ac_compile"
  5205 case "(($ac_try" in
  5206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5207   *) ac_try_echo=$ac_try;;
  5208 esac
  5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5210   (eval "$ac_compile") 2>conftest.er1
  5211   ac_status=$?
  5212   grep -v '^ *+' conftest.er1 >conftest.err
  5213   rm -f conftest.er1
  5214   cat conftest.err >&5
  5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5216   (exit $ac_status); } && {
  5217 	 test -z "$ac_c_werror_flag" ||
  5218 	 test ! -s conftest.err
  5219        } && test -s conftest.$ac_objext; then
  5220   ac_cv_prog_cc_g=yes
  5221 else
  5222   echo "$as_me: failed program was:" >&5
  5223 sed 's/^/| /' conftest.$ac_ext >&5
  5226 fi
  5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5229 fi
  5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5232 fi
  5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5235    ac_c_werror_flag=$ac_save_c_werror_flag
  5236 fi
  5237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  5239 if test "$ac_test_CFLAGS" = set; then
  5240   CFLAGS=$ac_save_CFLAGS
  5241 elif test $ac_cv_prog_cc_g = yes; then
  5242   if test "$GCC" = yes; then
  5243     CFLAGS="-g -O2"
  5244   else
  5245     CFLAGS="-g"
  5246   fi
  5247 else
  5248   if test "$GCC" = yes; then
  5249     CFLAGS="-O2"
  5250   else
  5251     CFLAGS=
  5252   fi
  5253 fi
  5254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  5256 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5257   echo $ECHO_N "(cached) $ECHO_C" >&6
  5258 else
  5259   ac_cv_prog_cc_c89=no
  5260 ac_save_CC=$CC
  5261 cat >conftest.$ac_ext <<_ACEOF
  5262 /* confdefs.h.  */
  5263 _ACEOF
  5264 cat confdefs.h >>conftest.$ac_ext
  5265 cat >>conftest.$ac_ext <<_ACEOF
  5266 /* end confdefs.h.  */
  5267 #include <stdarg.h>
  5268 #include <stdio.h>
  5269 #include <sys/types.h>
  5270 #include <sys/stat.h>
  5271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5272 struct buf { int x; };
  5273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5274 static char *e (p, i)
  5275      char **p;
  5276      int i;
  5278   return p[i];
  5280 static char *f (char * (*g) (char **, int), char **p, ...)
  5282   char *s;
  5283   va_list v;
  5284   va_start (v,p);
  5285   s = g (p, va_arg (v,int));
  5286   va_end (v);
  5287   return s;
  5290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5291    function prototypes and stuff, but not '\xHH' hex character constants.
  5292    These don't provoke an error unfortunately, instead are silently treated
  5293    as 'x'.  The following induces an error, until -std is added to get
  5294    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5295    array size at least.  It's necessary to write '\x00'==0 to get something
  5296    that's true only with -std.  */
  5297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5300    inside strings and character constants.  */
  5301 #define FOO(x) 'x'
  5302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5304 int test (int i, double x);
  5305 struct s1 {int (*f) (int a);};
  5306 struct s2 {int (*f) (double a);};
  5307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5308 int argc;
  5309 char **argv;
  5310 int
  5311 main ()
  5313 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5315   return 0;
  5317 _ACEOF
  5318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5319 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5320 do
  5321   CC="$ac_save_CC $ac_arg"
  5322   rm -f conftest.$ac_objext
  5323 if { (ac_try="$ac_compile"
  5324 case "(($ac_try" in
  5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5326   *) ac_try_echo=$ac_try;;
  5327 esac
  5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5329   (eval "$ac_compile") 2>conftest.er1
  5330   ac_status=$?
  5331   grep -v '^ *+' conftest.er1 >conftest.err
  5332   rm -f conftest.er1
  5333   cat conftest.err >&5
  5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5335   (exit $ac_status); } && {
  5336 	 test -z "$ac_c_werror_flag" ||
  5337 	 test ! -s conftest.err
  5338        } && test -s conftest.$ac_objext; then
  5339   ac_cv_prog_cc_c89=$ac_arg
  5340 else
  5341   echo "$as_me: failed program was:" >&5
  5342 sed 's/^/| /' conftest.$ac_ext >&5
  5345 fi
  5347 rm -f core conftest.err conftest.$ac_objext
  5348   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5349 done
  5350 rm -f conftest.$ac_ext
  5351 CC=$ac_save_CC
  5353 fi
  5354 # AC_CACHE_VAL
  5355 case "x$ac_cv_prog_cc_c89" in
  5356   x)
  5357     { echo "$as_me:$LINENO: result: none needed" >&5
  5358 echo "${ECHO_T}none needed" >&6; } ;;
  5359   xno)
  5360     { echo "$as_me:$LINENO: result: unsupported" >&5
  5361 echo "${ECHO_T}unsupported" >&6; } ;;
  5362   *)
  5363     CC="$CC $ac_cv_prog_cc_c89"
  5364     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5365 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  5366 esac
  5369 ac_ext=c
  5370 ac_cpp='$CPP $CPPFLAGS'
  5371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5375 depcc="$CC"   am_compiler_list=
  5377 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5378 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5379 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5380   echo $ECHO_N "(cached) $ECHO_C" >&6
  5381 else
  5382   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5383   # We make a subdir and do the tests there.  Otherwise we can end up
  5384   # making bogus files that we don't know about and never remove.  For
  5385   # instance it was reported that on HP-UX the gcc test will end up
  5386   # making a dummy file named `D' -- because `-MD' means `put the output
  5387   # in D'.
  5388   mkdir conftest.dir
  5389   # Copy depcomp to subdir because otherwise we won't find it if we're
  5390   # using a relative directory.
  5391   cp "$am_depcomp" conftest.dir
  5392   cd conftest.dir
  5393   # We will build objects and dependencies in a subdirectory because
  5394   # it helps to detect inapplicable dependency modes.  For instance
  5395   # both Tru64's cc and ICC support -MD to output dependencies as a
  5396   # side effect of compilation, but ICC will put the dependencies in
  5397   # the current directory while Tru64 will put them in the object
  5398   # directory.
  5399   mkdir sub
  5401   am_cv_CC_dependencies_compiler_type=none
  5402   if test "$am_compiler_list" = ""; then
  5403      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5404   fi
  5405   for depmode in $am_compiler_list; do
  5406     # Setup a source with many dependencies, because some compilers
  5407     # like to wrap large dependency lists on column 80 (with \), and
  5408     # we should not choose a depcomp mode which is confused by this.
  5410     # We need to recreate these files for each test, as the compiler may
  5411     # overwrite some of them when testing with obscure command lines.
  5412     # This happens at least with the AIX C compiler.
  5413     : > sub/conftest.c
  5414     for i in 1 2 3 4 5 6; do
  5415       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5416       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5417       # Solaris 8's {/usr,}/bin/sh.
  5418       touch sub/conftst$i.h
  5419     done
  5420     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5422     case $depmode in
  5423     nosideeffect)
  5424       # after this tag, mechanisms are not by side-effect, so they'll
  5425       # only be used when explicitly requested
  5426       if test "x$enable_dependency_tracking" = xyes; then
  5427 	continue
  5428       else
  5429 	break
  5430       fi
  5431       ;;
  5432     none) break ;;
  5433     esac
  5434     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5435     # mode.  It turns out that the SunPro C++ compiler does not properly
  5436     # handle `-M -o', and we need to detect this.
  5437     if depmode=$depmode \
  5438        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5439        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5440        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5441          >/dev/null 2>conftest.err &&
  5442        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5443        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5444        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5445       # icc doesn't choke on unknown options, it will just issue warnings
  5446       # or remarks (even with -Werror).  So we grep stderr for any message
  5447       # that says an option was ignored or not supported.
  5448       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5449       #   icc: Command line warning: ignoring option '-M'; no argument required
  5450       # The diagnosis changed in icc 8.0:
  5451       #   icc: Command line remark: option '-MP' not supported
  5452       if (grep 'ignoring option' conftest.err ||
  5453           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5454         am_cv_CC_dependencies_compiler_type=$depmode
  5455         break
  5456       fi
  5457     fi
  5458   done
  5460   cd ..
  5461   rm -rf conftest.dir
  5462 else
  5463   am_cv_CC_dependencies_compiler_type=none
  5464 fi
  5466 fi
  5467 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5468 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  5469 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5473 if
  5474   test "x$enable_dependency_tracking" != xno \
  5475   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5476   am__fastdepCC_TRUE=
  5477   am__fastdepCC_FALSE='#'
  5478 else
  5479   am__fastdepCC_TRUE='#'
  5480   am__fastdepCC_FALSE=
  5481 fi
  5485 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5487 ac_ext=c
  5488 ac_cpp='$CPP $CPPFLAGS'
  5489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5492 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5493 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5494 # On Suns, sometimes $CPP names a directory.
  5495 if test -n "$CPP" && test -d "$CPP"; then
  5496   CPP=
  5497 fi
  5498 if test -z "$CPP"; then
  5499   if test "${ac_cv_prog_CPP+set}" = set; then
  5500   echo $ECHO_N "(cached) $ECHO_C" >&6
  5501 else
  5502       # Double quotes because CPP needs to be expanded
  5503     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5504     do
  5505       ac_preproc_ok=false
  5506 for ac_c_preproc_warn_flag in '' yes
  5507 do
  5508   # Use a header file that comes with gcc, so configuring glibc
  5509   # with a fresh cross-compiler works.
  5510   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5511   # <limits.h> exists even on freestanding compilers.
  5512   # On the NeXT, cc -E runs the code through the compiler's parser,
  5513   # not just through cpp. "Syntax error" is here to catch this case.
  5514   cat >conftest.$ac_ext <<_ACEOF
  5515 /* confdefs.h.  */
  5516 _ACEOF
  5517 cat confdefs.h >>conftest.$ac_ext
  5518 cat >>conftest.$ac_ext <<_ACEOF
  5519 /* end confdefs.h.  */
  5520 #ifdef __STDC__
  5521 # include <limits.h>
  5522 #else
  5523 # include <assert.h>
  5524 #endif
  5525 		     Syntax error
  5526 _ACEOF
  5527 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5528 case "(($ac_try" in
  5529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5530   *) ac_try_echo=$ac_try;;
  5531 esac
  5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5534   ac_status=$?
  5535   grep -v '^ *+' conftest.er1 >conftest.err
  5536   rm -f conftest.er1
  5537   cat conftest.err >&5
  5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5539   (exit $ac_status); } >/dev/null && {
  5540 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5541 	 test ! -s conftest.err
  5542        }; then
  5544 else
  5545   echo "$as_me: failed program was:" >&5
  5546 sed 's/^/| /' conftest.$ac_ext >&5
  5548   # Broken: fails on valid input.
  5549 continue
  5550 fi
  5552 rm -f conftest.err conftest.$ac_ext
  5554   # OK, works on sane cases.  Now check whether nonexistent headers
  5555   # can be detected and how.
  5556   cat >conftest.$ac_ext <<_ACEOF
  5557 /* confdefs.h.  */
  5558 _ACEOF
  5559 cat confdefs.h >>conftest.$ac_ext
  5560 cat >>conftest.$ac_ext <<_ACEOF
  5561 /* end confdefs.h.  */
  5562 #include <ac_nonexistent.h>
  5563 _ACEOF
  5564 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5565 case "(($ac_try" in
  5566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5567   *) ac_try_echo=$ac_try;;
  5568 esac
  5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5571   ac_status=$?
  5572   grep -v '^ *+' conftest.er1 >conftest.err
  5573   rm -f conftest.er1
  5574   cat conftest.err >&5
  5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5576   (exit $ac_status); } >/dev/null && {
  5577 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5578 	 test ! -s conftest.err
  5579        }; then
  5580   # Broken: success on invalid input.
  5581 continue
  5582 else
  5583   echo "$as_me: failed program was:" >&5
  5584 sed 's/^/| /' conftest.$ac_ext >&5
  5586   # Passes both tests.
  5587 ac_preproc_ok=:
  5588 break
  5589 fi
  5591 rm -f conftest.err conftest.$ac_ext
  5593 done
  5594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5595 rm -f conftest.err conftest.$ac_ext
  5596 if $ac_preproc_ok; then
  5597   break
  5598 fi
  5600     done
  5601     ac_cv_prog_CPP=$CPP
  5603 fi
  5604   CPP=$ac_cv_prog_CPP
  5605 else
  5606   ac_cv_prog_CPP=$CPP
  5607 fi
  5608 { echo "$as_me:$LINENO: result: $CPP" >&5
  5609 echo "${ECHO_T}$CPP" >&6; }
  5610 ac_preproc_ok=false
  5611 for ac_c_preproc_warn_flag in '' yes
  5612 do
  5613   # Use a header file that comes with gcc, so configuring glibc
  5614   # with a fresh cross-compiler works.
  5615   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5616   # <limits.h> exists even on freestanding compilers.
  5617   # On the NeXT, cc -E runs the code through the compiler's parser,
  5618   # not just through cpp. "Syntax error" is here to catch this case.
  5619   cat >conftest.$ac_ext <<_ACEOF
  5620 /* confdefs.h.  */
  5621 _ACEOF
  5622 cat confdefs.h >>conftest.$ac_ext
  5623 cat >>conftest.$ac_ext <<_ACEOF
  5624 /* end confdefs.h.  */
  5625 #ifdef __STDC__
  5626 # include <limits.h>
  5627 #else
  5628 # include <assert.h>
  5629 #endif
  5630 		     Syntax error
  5631 _ACEOF
  5632 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5633 case "(($ac_try" in
  5634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5635   *) ac_try_echo=$ac_try;;
  5636 esac
  5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5639   ac_status=$?
  5640   grep -v '^ *+' conftest.er1 >conftest.err
  5641   rm -f conftest.er1
  5642   cat conftest.err >&5
  5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5644   (exit $ac_status); } >/dev/null && {
  5645 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5646 	 test ! -s conftest.err
  5647        }; then
  5649 else
  5650   echo "$as_me: failed program was:" >&5
  5651 sed 's/^/| /' conftest.$ac_ext >&5
  5653   # Broken: fails on valid input.
  5654 continue
  5655 fi
  5657 rm -f conftest.err conftest.$ac_ext
  5659   # OK, works on sane cases.  Now check whether nonexistent headers
  5660   # can be detected and how.
  5661   cat >conftest.$ac_ext <<_ACEOF
  5662 /* confdefs.h.  */
  5663 _ACEOF
  5664 cat confdefs.h >>conftest.$ac_ext
  5665 cat >>conftest.$ac_ext <<_ACEOF
  5666 /* end confdefs.h.  */
  5667 #include <ac_nonexistent.h>
  5668 _ACEOF
  5669 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5670 case "(($ac_try" in
  5671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5672   *) ac_try_echo=$ac_try;;
  5673 esac
  5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5676   ac_status=$?
  5677   grep -v '^ *+' conftest.er1 >conftest.err
  5678   rm -f conftest.er1
  5679   cat conftest.err >&5
  5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5681   (exit $ac_status); } >/dev/null && {
  5682 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5683 	 test ! -s conftest.err
  5684        }; then
  5685   # Broken: success on invalid input.
  5686 continue
  5687 else
  5688   echo "$as_me: failed program was:" >&5
  5689 sed 's/^/| /' conftest.$ac_ext >&5
  5691   # Passes both tests.
  5692 ac_preproc_ok=:
  5693 break
  5694 fi
  5696 rm -f conftest.err conftest.$ac_ext
  5698 done
  5699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5700 rm -f conftest.err conftest.$ac_ext
  5701 if $ac_preproc_ok; then
  5703 else
  5704   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5705 See \`config.log' for more details." >&5
  5706 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5707 See \`config.log' for more details." >&2;}
  5708    { (exit 1); exit 1; }; }
  5709 fi
  5711 ac_ext=c
  5712 ac_cpp='$CPP $CPPFLAGS'
  5713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5718 ac_main_cc="$CC"
  5719 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
  5721 if test -z "$CC_FOR_BUILD"; then
  5722     if test "$#" = yes; then
  5723   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  5724 See \`config.log' for more details." >&5
  5725 echo "$as_me: error: cannot run test program while cross compiling
  5726 See \`config.log' for more details." >&2;}
  5727    { (exit 1); exit 1; }; }
  5728 else
  5729   cat >conftest.$ac_ext <<_ACEOF
  5730 int main(){return 0;}
  5731 _ACEOF
  5732 rm -f conftest$ac_exeext
  5733 if { (ac_try="$ac_link"
  5734 case "(($ac_try" in
  5735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5736   *) ac_try_echo=$ac_try;;
  5737 esac
  5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5739   (eval "$ac_link") 2>&5
  5740   ac_status=$?
  5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5743   { (case "(($ac_try" in
  5744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5745   *) ac_try_echo=$ac_try;;
  5746 esac
  5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5748   (eval "$ac_try") 2>&5
  5749   ac_status=$?
  5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5751   (exit $ac_status); }; }; then
  5752   CC_FOR_BUILD="$CC"
  5753 else
  5754   echo "$as_me: program exited with status $ac_status" >&5
  5755 echo "$as_me: failed program was:" >&5
  5756 sed 's/^/| /' conftest.$ac_ext >&5
  5758 fi
  5759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5760 fi
  5763 fi
  5766 ac_ext=c
  5767 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  5768 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  5769 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5770 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  5771 if test -n "$ac_build_tool_prefix"; then
  5772   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5773 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
  5774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5776 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5777   echo $ECHO_N "(cached) $ECHO_C" >&6
  5778 else
  5779   if test -n "$CC_FOR_BUILD"; then
  5780   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5781 else
  5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5783 for as_dir in $PATH
  5784 do
  5785   IFS=$as_save_IFS
  5786   test -z "$as_dir" && as_dir=.
  5787   for ac_exec_ext in '' $ac_executable_extensions; do
  5788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5789     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
  5790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5791     break 2
  5792   fi
  5793 done
  5794 done
  5795 IFS=$as_save_IFS
  5797 fi
  5798 fi
  5799 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5800 if test -n "$CC_FOR_BUILD"; then
  5801   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5802 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5803 else
  5804   { echo "$as_me:$LINENO: result: no" >&5
  5805 echo "${ECHO_T}no" >&6; }
  5806 fi
  5809 fi
  5810 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
  5811   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  5812   # Extract the first word of "gcc", so it can be a program name with args.
  5813 set dummy gcc; ac_word=$2
  5814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5816 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  5817   echo $ECHO_N "(cached) $ECHO_C" >&6
  5818 else
  5819   if test -n "$ac_ct_CC_FOR_BUILD"; then
  5820   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  5821 else
  5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5823 for as_dir in $PATH
  5824 do
  5825   IFS=$as_save_IFS
  5826   test -z "$as_dir" && as_dir=.
  5827   for ac_exec_ext in '' $ac_executable_extensions; do
  5828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5829     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
  5830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5831     break 2
  5832   fi
  5833 done
  5834 done
  5835 IFS=$as_save_IFS
  5837 fi
  5838 fi
  5839 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  5840 if test -n "$ac_ct_CC_FOR_BUILD"; then
  5841   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  5842 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  5843 else
  5844   { echo "$as_me:$LINENO: result: no" >&5
  5845 echo "${ECHO_T}no" >&6; }
  5846 fi
  5848   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  5849     CC_FOR_BUILD=""
  5850   else
  5851     case $#:$ac_tool_warned in
  5852 yes:)
  5853 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5854 whose name does not start with the build triplet.  If you think this
  5855 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5856 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5857 whose name does not start with the build triplet.  If you think this
  5858 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5859 ac_tool_warned=yes ;;
  5860 esac
  5861     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  5862   fi
  5863 else
  5864   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
  5865 fi
  5867 if test -z "$CC_FOR_BUILD"; then
  5868           if test -n "$ac_build_tool_prefix"; then
  5869     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5870 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
  5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5873 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5874   echo $ECHO_N "(cached) $ECHO_C" >&6
  5875 else
  5876   if test -n "$CC_FOR_BUILD"; then
  5877   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5878 else
  5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5880 for as_dir in $PATH
  5881 do
  5882   IFS=$as_save_IFS
  5883   test -z "$as_dir" && as_dir=.
  5884   for ac_exec_ext in '' $ac_executable_extensions; do
  5885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5886     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
  5887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5888     break 2
  5889   fi
  5890 done
  5891 done
  5892 IFS=$as_save_IFS
  5894 fi
  5895 fi
  5896 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5897 if test -n "$CC_FOR_BUILD"; then
  5898   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5899 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5900 else
  5901   { echo "$as_me:$LINENO: result: no" >&5
  5902 echo "${ECHO_T}no" >&6; }
  5903 fi
  5906   fi
  5907 fi
  5908 if test -z "$CC_FOR_BUILD"; then
  5909   # Extract the first word of "cc", so it can be a program name with args.
  5910 set dummy cc; ac_word=$2
  5911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5913 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5914   echo $ECHO_N "(cached) $ECHO_C" >&6
  5915 else
  5916   if test -n "$CC_FOR_BUILD"; then
  5917   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5918 else
  5919   ac_prog_rejected=no
  5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5921 for as_dir in $PATH
  5922 do
  5923   IFS=$as_save_IFS
  5924   test -z "$as_dir" && as_dir=.
  5925   for ac_exec_ext in '' $ac_executable_extensions; do
  5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5927     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5928        ac_prog_rejected=yes
  5929        continue
  5930      fi
  5931     ac_cv_prog_CC_FOR_BUILD="cc"
  5932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5933     break 2
  5934   fi
  5935 done
  5936 done
  5937 IFS=$as_save_IFS
  5939 if test $ac_prog_rejected = yes; then
  5940   # We found a bogon in the path, so make sure we never use it.
  5941   set dummy $ac_cv_prog_CC_FOR_BUILD
  5942   shift
  5943   if test $# != 0; then
  5944     # We chose a different compiler from the bogus one.
  5945     # However, it has the same basename, so the bogon will be chosen
  5946     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
  5947     shift
  5948     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
  5949   fi
  5950 fi
  5951 fi
  5952 fi
  5953 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5954 if test -n "$CC_FOR_BUILD"; then
  5955   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5956 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5957 else
  5958   { echo "$as_me:$LINENO: result: no" >&5
  5959 echo "${ECHO_T}no" >&6; }
  5960 fi
  5963 fi
  5964 if test -z "$CC_FOR_BUILD"; then
  5965   if test -n "$ac_build_tool_prefix"; then
  5966   for ac_prog in cl.exe
  5967   do
  5968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5969 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
  5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5972 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5973   echo $ECHO_N "(cached) $ECHO_C" >&6
  5974 else
  5975   if test -n "$CC_FOR_BUILD"; then
  5976   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5977 else
  5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5979 for as_dir in $PATH
  5980 do
  5981   IFS=$as_save_IFS
  5982   test -z "$as_dir" && as_dir=.
  5983   for ac_exec_ext in '' $ac_executable_extensions; do
  5984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5985     ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
  5986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5987     break 2
  5988   fi
  5989 done
  5990 done
  5991 IFS=$as_save_IFS
  5993 fi
  5994 fi
  5995 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5996 if test -n "$CC_FOR_BUILD"; then
  5997   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5998 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5999 else
  6000   { echo "$as_me:$LINENO: result: no" >&5
  6001 echo "${ECHO_T}no" >&6; }
  6002 fi
  6005     test -n "$CC_FOR_BUILD" && break
  6006   done
  6007 fi
  6008 if test -z "$CC_FOR_BUILD"; then
  6009   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  6010   for ac_prog in cl.exe
  6011 do
  6012   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6013 set dummy $ac_prog; ac_word=$2
  6014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6016 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  6017   echo $ECHO_N "(cached) $ECHO_C" >&6
  6018 else
  6019   if test -n "$ac_ct_CC_FOR_BUILD"; then
  6020   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  6021 else
  6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6023 for as_dir in $PATH
  6024 do
  6025   IFS=$as_save_IFS
  6026   test -z "$as_dir" && as_dir=.
  6027   for ac_exec_ext in '' $ac_executable_extensions; do
  6028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6029     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
  6030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6031     break 2
  6032   fi
  6033 done
  6034 done
  6035 IFS=$as_save_IFS
  6037 fi
  6038 fi
  6039 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  6040 if test -n "$ac_ct_CC_FOR_BUILD"; then
  6041   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  6042 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  6043 else
  6044   { echo "$as_me:$LINENO: result: no" >&5
  6045 echo "${ECHO_T}no" >&6; }
  6046 fi
  6049   test -n "$ac_ct_CC_FOR_BUILD" && break
  6050 done
  6052   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  6053     CC_FOR_BUILD=""
  6054   else
  6055     case $#:$ac_tool_warned in
  6056 yes:)
  6057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6058 whose name does not start with the build triplet.  If you think this
  6059 configuration is useful to you, please write to autoconf@gnu.org." >&5
  6060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6061 whose name does not start with the build triplet.  If you think this
  6062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6063 ac_tool_warned=yes ;;
  6064 esac
  6065     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  6066   fi
  6067 fi
  6069 fi
  6072 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  6073 See \`config.log' for more details." >&5
  6074 echo "$as_me: error: no acceptable C compiler found in \$PATH
  6075 See \`config.log' for more details." >&2;}
  6076    { (exit 1); exit 1; }; }
  6078 # Provide some information about the compiler.
  6079 echo "$as_me:$LINENO: checking for C compiler version" >&5
  6080 ac_compiler=`set X $ac_build_compile; echo $2`
  6081 { (ac_try="$ac_compiler --version >&5"
  6082 case "(($ac_try" in
  6083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6084   *) ac_try_echo=$ac_try;;
  6085 esac
  6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6087   (eval "$ac_compiler --version >&5") 2>&5
  6088   ac_status=$?
  6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6090   (exit $ac_status); }
  6091 { (ac_try="$ac_compiler -v >&5"
  6092 case "(($ac_try" in
  6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6094   *) ac_try_echo=$ac_try;;
  6095 esac
  6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6097   (eval "$ac_compiler -v >&5") 2>&5
  6098   ac_status=$?
  6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6100   (exit $ac_status); }
  6101 { (ac_try="$ac_compiler -V >&5"
  6102 case "(($ac_try" in
  6103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6104   *) ac_try_echo=$ac_try;;
  6105 esac
  6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6107   (eval "$ac_compiler -V >&5") 2>&5
  6108   ac_status=$?
  6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6110   (exit $ac_status); }
  6112 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  6113 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  6114 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  6115   echo $ECHO_N "(cached) $ECHO_C" >&6
  6116 else
  6117   cat >conftest.$ac_ext <<_ACEOF
  6118 /* confdefs.h.  */
  6119 _ACEOF
  6120 cat confdefs.h >>conftest.$ac_ext
  6121 cat >>conftest.$ac_ext <<_ACEOF
  6122 /* end confdefs.h.  */
  6124 int
  6125 main ()
  6127 #ifndef __GNUC__
  6128        choke me
  6129 #endif
  6132   return 0;
  6134 _ACEOF
  6135 rm -f conftest.$ac_build_objext
  6136 if { (ac_try="$ac_build_compile"
  6137 case "(($ac_try" in
  6138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6139   *) ac_try_echo=$ac_try;;
  6140 esac
  6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6142   (eval "$ac_build_compile") 2>conftest.er1
  6143   ac_status=$?
  6144   grep -v '^ *+' conftest.er1 >conftest.err
  6145   rm -f conftest.er1
  6146   cat conftest.err >&5
  6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6148   (exit $ac_status); } && {
  6149 	 test -z "$ac_c_werror_flag" ||
  6150 	 test ! -s conftest.err
  6151        } && test -s conftest.$ac_build_objext; then
  6152   ac_build_compiler_gnu=yes
  6153 else
  6154   echo "$as_me: failed program was:" >&5
  6155 sed 's/^/| /' conftest.$ac_ext >&5
  6157 	ac_build_compiler_gnu=no
  6158 fi
  6160 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6161 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
  6163 fi
  6164 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  6165 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  6166 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
  6167 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
  6168 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
  6169 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
  6170 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
  6171 if test "${ac_cv_build_prog_cc_g+set}" = set; then
  6172   echo $ECHO_N "(cached) $ECHO_C" >&6
  6173 else
  6174   ac_save_c_werror_flag=$ac_c_werror_flag
  6175    ac_c_werror_flag=yes
  6176    ac_cv_build_prog_cc_g=no
  6177    CFLAGS_FOR_BUILD="-g"
  6178    cat >conftest.$ac_ext <<_ACEOF
  6179 /* confdefs.h.  */
  6180 _ACEOF
  6181 cat confdefs.h >>conftest.$ac_ext
  6182 cat >>conftest.$ac_ext <<_ACEOF
  6183 /* end confdefs.h.  */
  6185 int
  6186 main ()
  6190   return 0;
  6192 _ACEOF
  6193 rm -f conftest.$ac_build_objext
  6194 if { (ac_try="$ac_build_compile"
  6195 case "(($ac_try" in
  6196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6197   *) ac_try_echo=$ac_try;;
  6198 esac
  6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6200   (eval "$ac_build_compile") 2>conftest.er1
  6201   ac_status=$?
  6202   grep -v '^ *+' conftest.er1 >conftest.err
  6203   rm -f conftest.er1
  6204   cat conftest.err >&5
  6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6206   (exit $ac_status); } && {
  6207 	 test -z "$ac_c_werror_flag" ||
  6208 	 test ! -s conftest.err
  6209        } && test -s conftest.$ac_build_objext; then
  6210   ac_cv_build_prog_cc_g=yes
  6211 else
  6212   echo "$as_me: failed program was:" >&5
  6213 sed 's/^/| /' conftest.$ac_ext >&5
  6215 	CFLAGS_FOR_BUILD=""
  6216       cat >conftest.$ac_ext <<_ACEOF
  6217 /* confdefs.h.  */
  6218 _ACEOF
  6219 cat confdefs.h >>conftest.$ac_ext
  6220 cat >>conftest.$ac_ext <<_ACEOF
  6221 /* end confdefs.h.  */
  6223 int
  6224 main ()
  6228   return 0;
  6230 _ACEOF
  6231 rm -f conftest.$ac_build_objext
  6232 if { (ac_try="$ac_build_compile"
  6233 case "(($ac_try" in
  6234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6235   *) ac_try_echo=$ac_try;;
  6236 esac
  6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6238   (eval "$ac_build_compile") 2>conftest.er1
  6239   ac_status=$?
  6240   grep -v '^ *+' conftest.er1 >conftest.err
  6241   rm -f conftest.er1
  6242   cat conftest.err >&5
  6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6244   (exit $ac_status); } && {
  6245 	 test -z "$ac_c_werror_flag" ||
  6246 	 test ! -s conftest.err
  6247        } && test -s conftest.$ac_build_objext; then
  6249 else
  6250   echo "$as_me: failed program was:" >&5
  6251 sed 's/^/| /' conftest.$ac_ext >&5
  6253 	ac_c_werror_flag=$ac_save_c_werror_flag
  6254 	 CFLAGS_FOR_BUILD="-g"
  6255 	 cat >conftest.$ac_ext <<_ACEOF
  6256 /* confdefs.h.  */
  6257 _ACEOF
  6258 cat confdefs.h >>conftest.$ac_ext
  6259 cat >>conftest.$ac_ext <<_ACEOF
  6260 /* end confdefs.h.  */
  6262 int
  6263 main ()
  6267   return 0;
  6269 _ACEOF
  6270 rm -f conftest.$ac_build_objext
  6271 if { (ac_try="$ac_build_compile"
  6272 case "(($ac_try" in
  6273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6274   *) ac_try_echo=$ac_try;;
  6275 esac
  6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6277   (eval "$ac_build_compile") 2>conftest.er1
  6278   ac_status=$?
  6279   grep -v '^ *+' conftest.er1 >conftest.err
  6280   rm -f conftest.er1
  6281   cat conftest.err >&5
  6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6283   (exit $ac_status); } && {
  6284 	 test -z "$ac_c_werror_flag" ||
  6285 	 test ! -s conftest.err
  6286        } && test -s conftest.$ac_build_objext; then
  6287   ac_cv_build_prog_cc_g=yes
  6288 else
  6289   echo "$as_me: failed program was:" >&5
  6290 sed 's/^/| /' conftest.$ac_ext >&5
  6293 fi
  6295 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6296 fi
  6298 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6299 fi
  6301 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6302    ac_c_werror_flag=$ac_save_c_werror_flag
  6303 fi
  6304 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
  6305 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
  6306 if test "$ac_test_CFLAGS" = set; then
  6307   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
  6308 elif test $ac_cv_build_prog_cc_g = yes; then
  6309   if test "$GCC" = yes; then
  6310     CFLAGS_FOR_BUILD="-g -O2"
  6311   else
  6312     CFLAGS_FOR_BUILD="-g"
  6313   fi
  6314 else
  6315   if test "$GCC" = yes; then
  6316     CFLAGS_FOR_BUILD="-O2"
  6317   else
  6318     CFLAGS_FOR_BUILD=
  6319   fi
  6320 fi
  6321 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6322 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6323 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6324   echo $ECHO_N "(cached) $ECHO_C" >&6
  6325 else
  6326   ac_cv_build_prog_cc_stdc=no
  6327 ac_save_CC=$CC_FOR_BUILD
  6328 cat >conftest.$ac_ext <<_ACEOF
  6329 /* confdefs.h.  */
  6330 _ACEOF
  6331 cat confdefs.h >>conftest.$ac_ext
  6332 cat >>conftest.$ac_ext <<_ACEOF
  6333 /* end confdefs.h.  */
  6334 #include <stdarg.h>
  6335 #include <stdio.h>
  6336 #include <sys/types.h>
  6337 #include <sys/stat.h>
  6338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6339 struct buf { int x; };
  6340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6341 static char *e (p, i)
  6342      char **p;
  6343      int i;
  6345   return p[i];
  6347 static char *f (char * (*g) (char **, int), char **p, ...)
  6349   char *s;
  6350   va_list v;
  6351   va_start (v,p);
  6352   s = g (p, va_arg (v,int));
  6353   va_end (v);
  6354   return s;
  6357 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6358    function prototypes and stuff, but not '\xHH' hex character constants.
  6359    These don't provoke an error unfortunately, instead are silently treated
  6360    as 'x'.  The following induces an error, until -std is added to get
  6361    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6362    array size at least.  It's necessary to write '\x00'==0 to get something
  6363    that's true only with -std.  */
  6364 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6366 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6367    inside strings and character constants.  */
  6368 #define FOO(x) 'x'
  6369 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6371 int test (int i, double x);
  6372 struct s1 {int (*f) (int a);};
  6373 struct s2 {int (*f) (double a);};
  6374 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6375 int argc;
  6376 char **argv;
  6377 int
  6378 main ()
  6380 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6382   return 0;
  6384 _ACEOF
  6385 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6386 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6387 do
  6388   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6389   rm -f conftest.$ac_build_objext
  6390 if { (ac_try="$ac_build_compile"
  6391 case "(($ac_try" in
  6392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6393   *) ac_try_echo=$ac_try;;
  6394 esac
  6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6396   (eval "$ac_build_compile") 2>conftest.er1
  6397   ac_status=$?
  6398   grep -v '^ *+' conftest.er1 >conftest.err
  6399   rm -f conftest.er1
  6400   cat conftest.err >&5
  6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6402   (exit $ac_status); } && {
  6403 	 test -z "$ac_c_werror_flag" ||
  6404 	 test ! -s conftest.err
  6405        } && test -s conftest.$ac_build_objext; then
  6406   ac_cv_build_prog_cc_stdc=$ac_arg
  6407 else
  6408   echo "$as_me: failed program was:" >&5
  6409 sed 's/^/| /' conftest.$ac_ext >&5
  6412 fi
  6414 rm -f core conftest.err conftest.$ac_build_objext
  6415   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6416 done
  6417 rm -f conftest.$ac_ext
  6418 CC_FOR_BUILD=$ac_save_CC
  6420 fi
  6421 # AC_CACHE_VAL
  6422 case "x$ac_cv_build_prog_cc_stdc" in
  6423   x)
  6424     { echo "$as_me:$LINENO: result: none needed" >&5
  6425 echo "${ECHO_T}none needed" >&6; } ;;
  6426   xno)
  6427     { echo "$as_me:$LINENO: result: unsupported" >&5
  6428 echo "${ECHO_T}unsupported" >&6; } ;;
  6429   *)
  6430     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6431     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6432 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6433 esac
  6436 ac_ext=c
  6437 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6438 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6439 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6440 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6442 depcc="$CC_FOR_BUILD"   am_compiler_list=
  6444 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6445 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  6446 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
  6447   echo $ECHO_N "(cached) $ECHO_C" >&6
  6448 else
  6449   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6450   # We make a subdir and do the tests there.  Otherwise we can end up
  6451   # making bogus files that we don't know about and never remove.  For
  6452   # instance it was reported that on HP-UX the gcc test will end up
  6453   # making a dummy file named `D' -- because `-MD' means `put the output
  6454   # in D'.
  6455   mkdir conftest.dir
  6456   # Copy depcomp to subdir because otherwise we won't find it if we're
  6457   # using a relative directory.
  6458   cp "$am_depcomp" conftest.dir
  6459   cd conftest.dir
  6460   # We will build objects and dependencies in a subdirectory because
  6461   # it helps to detect inapplicable dependency modes.  For instance
  6462   # both Tru64's cc and ICC support -MD to output dependencies as a
  6463   # side effect of compilation, but ICC will put the dependencies in
  6464   # the current directory while Tru64 will put them in the object
  6465   # directory.
  6466   mkdir sub
  6468   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6469   if test "$am_compiler_list" = ""; then
  6470      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6471   fi
  6472   for depmode in $am_compiler_list; do
  6473     # Setup a source with many dependencies, because some compilers
  6474     # like to wrap large dependency lists on column 80 (with \), and
  6475     # we should not choose a depcomp mode which is confused by this.
  6477     # We need to recreate these files for each test, as the compiler may
  6478     # overwrite some of them when testing with obscure command lines.
  6479     # This happens at least with the AIX C compiler.
  6480     : > sub/conftest.c
  6481     for i in 1 2 3 4 5 6; do
  6482       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6483       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6484       # Solaris 8's {/usr,}/bin/sh.
  6485       touch sub/conftst$i.h
  6486     done
  6487     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6489     case $depmode in
  6490     nosideeffect)
  6491       # after this tag, mechanisms are not by side-effect, so they'll
  6492       # only be used when explicitly requested
  6493       if test "x$enable_dependency_tracking" = xyes; then
  6494 	continue
  6495       else
  6496 	break
  6497       fi
  6498       ;;
  6499     none) break ;;
  6500     esac
  6501     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6502     # mode.  It turns out that the SunPro C++ compiler does not properly
  6503     # handle `-M -o', and we need to detect this.
  6504     if depmode=$depmode \
  6505        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6506        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6507        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6508          >/dev/null 2>conftest.err &&
  6509        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6510        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6511        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6512       # icc doesn't choke on unknown options, it will just issue warnings
  6513       # or remarks (even with -Werror).  So we grep stderr for any message
  6514       # that says an option was ignored or not supported.
  6515       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6516       #   icc: Command line warning: ignoring option '-M'; no argument required
  6517       # The diagnosis changed in icc 8.0:
  6518       #   icc: Command line remark: option '-MP' not supported
  6519       if (grep 'ignoring option' conftest.err ||
  6520           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6521         am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
  6522         break
  6523       fi
  6524     fi
  6525   done
  6527   cd ..
  6528   rm -rf conftest.dir
  6529 else
  6530   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6531 fi
  6533 fi
  6534 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
  6535 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
  6536 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
  6540 if
  6541   test "x$enable_dependency_tracking" != xno \
  6542   && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
  6543   am__fastdepCC_FOR_BUILD_TRUE=
  6544   am__fastdepCC_FOR_BUILD_FALSE='#'
  6545 else
  6546   am__fastdepCC_FOR_BUILD_TRUE='#'
  6547   am__fastdepCC_FOR_BUILD_FALSE=
  6548 fi
  6551    case $ac_cv_build_prog_cc_stdc in
  6552   no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
  6553   *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
  6554 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
  6555 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6556   echo $ECHO_N "(cached) $ECHO_C" >&6
  6557 else
  6558   ac_cv_build_prog_cc_stdc=no
  6559 ac_save_CC=$CC_FOR_BUILD
  6560 cat >conftest.$ac_ext <<_ACEOF
  6561 /* confdefs.h.  */
  6562 _ACEOF
  6563 cat confdefs.h >>conftest.$ac_ext
  6564 cat >>conftest.$ac_ext <<_ACEOF
  6565 /* end confdefs.h.  */
  6566 #include <stdarg.h>
  6567 #include <stdbool.h>
  6568 #include <stdlib.h>
  6569 #include <wchar.h>
  6570 #include <stdio.h>
  6572 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
  6573 #define debug(...) fprintf (stderr, __VA_ARGS__)
  6574 #define showlist(...) puts (#__VA_ARGS__)
  6575 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  6576 static void
  6577 test_varargs_macros (void)
  6579   int x = 1234;
  6580   int y = 5678;
  6581   debug ("Flag");
  6582   debug ("X = %d\n", x);
  6583   showlist (The first, second, and third items.);
  6584   report (x>y, "x is %d but y is %d", x, y);
  6587 // Check long long types.
  6588 #define BIG64 18446744073709551615ull
  6589 #define BIG32 4294967295ul
  6590 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  6591 #if !BIG_OK
  6592   your preprocessor is broken;
  6593 #endif
  6594 #if BIG_OK
  6595 #else
  6596   your preprocessor is broken;
  6597 #endif
  6598 static long long int bignum = -9223372036854775807LL;
  6599 static unsigned long long int ubignum = BIG64;
  6601 struct incomplete_array
  6603   int datasize;
  6604   double data[];
  6605 };
  6607 struct named_init {
  6608   int number;
  6609   const wchar_t *name;
  6610   double average;
  6611 };
  6613 typedef const char *ccp;
  6615 static inline int
  6616 test_restrict (ccp restrict text)
  6618   // See if C++-style comments work.
  6619   // Iterate through items via the restricted pointer.
  6620   // Also check for declarations in for loops.
  6621   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  6622     continue;
  6623   return 0;
  6626 // Check varargs and va_copy.
  6627 static void
  6628 test_varargs (const char *format, ...)
  6630   va_list args;
  6631   va_start (args, format);
  6632   va_list args_copy;
  6633   va_copy (args_copy, args);
  6635   const char *str;
  6636   int number;
  6637   float fnumber;
  6639   while (*format)
  6641       switch (*format++)
  6643 	case 's': // string
  6644 	  str = va_arg (args_copy, const char *);
  6645 	  break;
  6646 	case 'd': // int
  6647 	  number = va_arg (args_copy, int);
  6648 	  break;
  6649 	case 'f': // float
  6650 	  fnumber = va_arg (args_copy, double);
  6651 	  break;
  6652 	default:
  6653 	  break;
  6656   va_end (args_copy);
  6657   va_end (args);
  6660 int
  6661 main ()
  6664   // Check bool.
  6665   _Bool success = false;
  6667   // Check restrict.
  6668   if (test_restrict ("String literal") == 0)
  6669     success = true;
  6670   char *restrict newvar = "Another string";
  6672   // Check varargs.
  6673   test_varargs ("s, d' f .", "string", 65, 34.234);
  6674   test_varargs_macros ();
  6676   // Check flexible array members.
  6677   struct incomplete_array *ia =
  6678     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  6679   ia->datasize = 10;
  6680   for (int i = 0; i < ia->datasize; ++i)
  6681     ia->data[i] = i * 1.234;
  6683   // Check named initializers.
  6684   struct named_init ni = {
  6685     .number = 34,
  6686     .name = L"Test wide string",
  6687     .average = 543.34343,
  6688   };
  6690   ni.number = 58;
  6692   int dynamic_array[ni.number];
  6693   dynamic_array[ni.number - 1] = 543;
  6695   // work around unused variable warnings
  6696   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  6697 	  || dynamic_array[ni.number - 1] != 543);
  6700   return 0;
  6702 _ACEOF
  6703 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  6704 do
  6705   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6706   rm -f conftest.$ac_build_objext
  6707 if { (ac_try="$ac_build_compile"
  6708 case "(($ac_try" in
  6709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6710   *) ac_try_echo=$ac_try;;
  6711 esac
  6712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6713   (eval "$ac_build_compile") 2>conftest.er1
  6714   ac_status=$?
  6715   grep -v '^ *+' conftest.er1 >conftest.err
  6716   rm -f conftest.er1
  6717   cat conftest.err >&5
  6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6719   (exit $ac_status); } && {
  6720 	 test -z "$ac_c_werror_flag" ||
  6721 	 test ! -s conftest.err
  6722        } && test -s conftest.$ac_build_objext; then
  6723   ac_cv_build_prog_cc_stdc=$ac_arg
  6724 else
  6725   echo "$as_me: failed program was:" >&5
  6726 sed 's/^/| /' conftest.$ac_ext >&5
  6729 fi
  6731 rm -f core conftest.err conftest.$ac_build_objext
  6732   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6733 done
  6734 rm -f conftest.$ac_ext
  6735 CC_FOR_BUILD=$ac_save_CC
  6737 fi
  6738 # AC_CACHE_VAL
  6739 case "x$ac_cv_build_prog_cc_stdc" in
  6740   x)
  6741     { echo "$as_me:$LINENO: result: none needed" >&5
  6742 echo "${ECHO_T}none needed" >&6; } ;;
  6743   xno)
  6744     { echo "$as_me:$LINENO: result: unsupported" >&5
  6745 echo "${ECHO_T}unsupported" >&6; } ;;
  6746   *)
  6747     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6748     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6749 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6750 esac
  6751 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6752   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6753 else
  6754   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6755 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6756 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6757   echo $ECHO_N "(cached) $ECHO_C" >&6