Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 537:d924be49e192
prev529:06ffbecc7262
next539:75f3e594d4a7
author nkeynes
date Tue Nov 20 10:27:58 2007 +0000 (12 years ago)
permissions -rwxr-xr-x
last change Move gtk UI into gtkui subdir (prep for non-gtk builds), and protect with
an automake conditional
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 AMTAR
   665 install_sh
   666 STRIP
   667 INSTALL_STRIP_PROGRAM
   668 AWK
   669 SET_MAKE
   670 am__leading_dot
   671 MAINTAINER_MODE_TRUE
   672 MAINTAINER_MODE_FALSE
   673 MAINT
   674 CC
   675 CFLAGS
   676 LDFLAGS
   677 CPPFLAGS
   678 ac_ct_CC
   679 EXEEXT
   680 OBJEXT
   681 DEPDIR
   682 am__include
   683 am__quote
   684 AMDEP_TRUE
   685 AMDEP_FALSE
   686 AMDEPBACKSLASH
   687 CCDEPMODE
   688 am__fastdepCC_TRUE
   689 am__fastdepCC_FALSE
   690 CPP
   691 GREP
   692 EGREP
   693 build
   694 build_cpu
   695 build_vendor
   696 build_os
   697 host
   698 host_cpu
   699 host_vendor
   700 host_os
   701 PKG_CONFIG
   702 LIBPNG_CFLAGS
   703 LIBPNG_LIBS
   704 GTK_CFLAGS
   705 GTK_LIBS
   706 GUI_GTK_TRUE
   707 GUI_GTK_FALSE
   708 BUILD_SH4X86_TRUE
   709 BUILD_SH4X86_FALSE
   710 ESOUND_CFLAGS
   711 ESOUND_LIBS
   712 AUDIO_ESOUND_TRUE
   713 AUDIO_ESOUND_FALSE
   714 CDROM_LINUX_TRUE
   715 CDROM_LINUX_FALSE
   716 SHCC
   717 SHLD
   718 SHOBJCOPY
   719 ARMCC
   720 ARMLD
   721 ARMOBJCOPY
   722 BUILD_SYSTEST_TRUE
   723 BUILD_SYSTEST_FALSE
   724 BUILD_ARMTEST_TRUE
   725 BUILD_ARMTEST_FALSE
   726 GETTEXT_PACKAGE
   727 USE_NLS
   728 MSGFMT
   729 GMSGFMT
   730 XGETTEXT
   731 CATALOGS
   732 CATOBJEXT
   733 DATADIRNAME
   734 GMOFILES
   735 INSTOBJEXT
   736 INTLLIBS
   737 PO_IN_DATADIR_TRUE
   738 PO_IN_DATADIR_FALSE
   739 POFILES
   740 POSUB
   741 MKINSTALLDIRS
   742 LIBOBJS
   743 LTLIBOBJS'
   744 ac_subst_files=''
   745       ac_precious_vars='build_alias
   746 host_alias
   747 target_alias
   748 CC
   749 CFLAGS
   750 LDFLAGS
   751 LIBS
   752 CPPFLAGS
   753 CPP
   754 PKG_CONFIG
   755 LIBPNG_CFLAGS
   756 LIBPNG_LIBS
   757 GTK_CFLAGS
   758 GTK_LIBS
   759 ESOUND_CFLAGS
   760 ESOUND_LIBS'
   763 # Initialize some variables set by options.
   764 ac_init_help=
   765 ac_init_version=false
   766 # The variables have the same names as the options, with
   767 # dashes changed to underlines.
   768 cache_file=/dev/null
   769 exec_prefix=NONE
   770 no_create=
   771 no_recursion=
   772 prefix=NONE
   773 program_prefix=NONE
   774 program_suffix=NONE
   775 program_transform_name=s,x,x,
   776 silent=
   777 site=
   778 srcdir=
   779 verbose=
   780 x_includes=NONE
   781 x_libraries=NONE
   783 # Installation directory options.
   784 # These are left unexpanded so users can "make install exec_prefix=/foo"
   785 # and all the variables that are supposed to be based on exec_prefix
   786 # by default will actually change.
   787 # Use braces instead of parens because sh, perl, etc. also accept them.
   788 # (The list follows the same order as the GNU Coding Standards.)
   789 bindir='${exec_prefix}/bin'
   790 sbindir='${exec_prefix}/sbin'
   791 libexecdir='${exec_prefix}/libexec'
   792 datarootdir='${prefix}/share'
   793 datadir='${datarootdir}'
   794 sysconfdir='${prefix}/etc'
   795 sharedstatedir='${prefix}/com'
   796 localstatedir='${prefix}/var'
   797 includedir='${prefix}/include'
   798 oldincludedir='/usr/include'
   799 docdir='${datarootdir}/doc/${PACKAGE}'
   800 infodir='${datarootdir}/info'
   801 htmldir='${docdir}'
   802 dvidir='${docdir}'
   803 pdfdir='${docdir}'
   804 psdir='${docdir}'
   805 libdir='${exec_prefix}/lib'
   806 localedir='${datarootdir}/locale'
   807 mandir='${datarootdir}/man'
   809 ac_prev=
   810 ac_dashdash=
   811 for ac_option
   812 do
   813   # If the previous option needs an argument, assign it.
   814   if test -n "$ac_prev"; then
   815     eval $ac_prev=\$ac_option
   816     ac_prev=
   817     continue
   818   fi
   820   case $ac_option in
   821   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   822   *)	ac_optarg=yes ;;
   823   esac
   825   # Accept the important Cygnus configure options, so we can diagnose typos.
   827   case $ac_dashdash$ac_option in
   828   --)
   829     ac_dashdash=yes ;;
   831   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   832     ac_prev=bindir ;;
   833   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   834     bindir=$ac_optarg ;;
   836   -build | --build | --buil | --bui | --bu)
   837     ac_prev=build_alias ;;
   838   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   839     build_alias=$ac_optarg ;;
   841   -cache-file | --cache-file | --cache-fil | --cache-fi \
   842   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   843     ac_prev=cache_file ;;
   844   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   845   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   846     cache_file=$ac_optarg ;;
   848   --config-cache | -C)
   849     cache_file=config.cache ;;
   851   -datadir | --datadir | --datadi | --datad)
   852     ac_prev=datadir ;;
   853   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   854     datadir=$ac_optarg ;;
   856   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   857   | --dataroo | --dataro | --datar)
   858     ac_prev=datarootdir ;;
   859   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   860   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   861     datarootdir=$ac_optarg ;;
   863   -disable-* | --disable-*)
   864     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   865     # Reject names that are not valid shell variable names.
   866     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   867       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   868    { (exit 1); exit 1; }; }
   869     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   870     eval enable_$ac_feature=no ;;
   872   -docdir | --docdir | --docdi | --doc | --do)
   873     ac_prev=docdir ;;
   874   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   875     docdir=$ac_optarg ;;
   877   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   878     ac_prev=dvidir ;;
   879   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   880     dvidir=$ac_optarg ;;
   882   -enable-* | --enable-*)
   883     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   884     # Reject names that are not valid shell variable names.
   885     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   886       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   887    { (exit 1); exit 1; }; }
   888     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   889     eval enable_$ac_feature=\$ac_optarg ;;
   891   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   892   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   893   | --exec | --exe | --ex)
   894     ac_prev=exec_prefix ;;
   895   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   896   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   897   | --exec=* | --exe=* | --ex=*)
   898     exec_prefix=$ac_optarg ;;
   900   -gas | --gas | --ga | --g)
   901     # Obsolete; use --with-gas.
   902     with_gas=yes ;;
   904   -help | --help | --hel | --he | -h)
   905     ac_init_help=long ;;
   906   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   907     ac_init_help=recursive ;;
   908   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   909     ac_init_help=short ;;
   911   -host | --host | --hos | --ho)
   912     ac_prev=host_alias ;;
   913   -host=* | --host=* | --hos=* | --ho=*)
   914     host_alias=$ac_optarg ;;
   916   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   917     ac_prev=htmldir ;;
   918   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   919   | --ht=*)
   920     htmldir=$ac_optarg ;;
   922   -includedir | --includedir | --includedi | --included | --include \
   923   | --includ | --inclu | --incl | --inc)
   924     ac_prev=includedir ;;
   925   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   926   | --includ=* | --inclu=* | --incl=* | --inc=*)
   927     includedir=$ac_optarg ;;
   929   -infodir | --infodir | --infodi | --infod | --info | --inf)
   930     ac_prev=infodir ;;
   931   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   932     infodir=$ac_optarg ;;
   934   -libdir | --libdir | --libdi | --libd)
   935     ac_prev=libdir ;;
   936   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   937     libdir=$ac_optarg ;;
   939   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   940   | --libexe | --libex | --libe)
   941     ac_prev=libexecdir ;;
   942   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   943   | --libexe=* | --libex=* | --libe=*)
   944     libexecdir=$ac_optarg ;;
   946   -localedir | --localedir | --localedi | --localed | --locale)
   947     ac_prev=localedir ;;
   948   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   949     localedir=$ac_optarg ;;
   951   -localstatedir | --localstatedir | --localstatedi | --localstated \
   952   | --localstate | --localstat | --localsta | --localst | --locals)
   953     ac_prev=localstatedir ;;
   954   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   955   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   956     localstatedir=$ac_optarg ;;
   958   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   959     ac_prev=mandir ;;
   960   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   961     mandir=$ac_optarg ;;
   963   -nfp | --nfp | --nf)
   964     # Obsolete; use --without-fp.
   965     with_fp=no ;;
   967   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   968   | --no-cr | --no-c | -n)
   969     no_create=yes ;;
   971   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   972   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   973     no_recursion=yes ;;
   975   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   976   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   977   | --oldin | --oldi | --old | --ol | --o)
   978     ac_prev=oldincludedir ;;
   979   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   980   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   981   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   982     oldincludedir=$ac_optarg ;;
   984   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   985     ac_prev=prefix ;;
   986   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   987     prefix=$ac_optarg ;;
   989   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   990   | --program-pre | --program-pr | --program-p)
   991     ac_prev=program_prefix ;;
   992   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   993   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   994     program_prefix=$ac_optarg ;;
   996   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   997   | --program-suf | --program-su | --program-s)
   998     ac_prev=program_suffix ;;
   999   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1000   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1001     program_suffix=$ac_optarg ;;
  1003   -program-transform-name | --program-transform-name \
  1004   | --program-transform-nam | --program-transform-na \
  1005   | --program-transform-n | --program-transform- \
  1006   | --program-transform | --program-transfor \
  1007   | --program-transfo | --program-transf \
  1008   | --program-trans | --program-tran \
  1009   | --progr-tra | --program-tr | --program-t)
  1010     ac_prev=program_transform_name ;;
  1011   -program-transform-name=* | --program-transform-name=* \
  1012   | --program-transform-nam=* | --program-transform-na=* \
  1013   | --program-transform-n=* | --program-transform-=* \
  1014   | --program-transform=* | --program-transfor=* \
  1015   | --program-transfo=* | --program-transf=* \
  1016   | --program-trans=* | --program-tran=* \
  1017   | --progr-tra=* | --program-tr=* | --program-t=*)
  1018     program_transform_name=$ac_optarg ;;
  1020   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1021     ac_prev=pdfdir ;;
  1022   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1023     pdfdir=$ac_optarg ;;
  1025   -psdir | --psdir | --psdi | --psd | --ps)
  1026     ac_prev=psdir ;;
  1027   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1028     psdir=$ac_optarg ;;
  1030   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1031   | -silent | --silent | --silen | --sile | --sil)
  1032     silent=yes ;;
  1034   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1035     ac_prev=sbindir ;;
  1036   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1037   | --sbi=* | --sb=*)
  1038     sbindir=$ac_optarg ;;
  1040   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1041   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1042   | --sharedst | --shareds | --shared | --share | --shar \
  1043   | --sha | --sh)
  1044     ac_prev=sharedstatedir ;;
  1045   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1046   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1047   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1048   | --sha=* | --sh=*)
  1049     sharedstatedir=$ac_optarg ;;
  1051   -site | --site | --sit)
  1052     ac_prev=site ;;
  1053   -site=* | --site=* | --sit=*)
  1054     site=$ac_optarg ;;
  1056   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1057     ac_prev=srcdir ;;
  1058   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1059     srcdir=$ac_optarg ;;
  1061   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1062   | --syscon | --sysco | --sysc | --sys | --sy)
  1063     ac_prev=sysconfdir ;;
  1064   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1065   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1066     sysconfdir=$ac_optarg ;;
  1068   -target | --target | --targe | --targ | --tar | --ta | --t)
  1069     ac_prev=target_alias ;;
  1070   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1071     target_alias=$ac_optarg ;;
  1073   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1074     verbose=yes ;;
  1076   -version | --version | --versio | --versi | --vers | -V)
  1077     ac_init_version=: ;;
  1079   -with-* | --with-*)
  1080     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1081     # Reject names that are not valid shell variable names.
  1082     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1083       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1084    { (exit 1); exit 1; }; }
  1085     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1086     eval with_$ac_package=\$ac_optarg ;;
  1088   -without-* | --without-*)
  1089     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1090     # Reject names that are not valid shell variable names.
  1091     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1092       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1093    { (exit 1); exit 1; }; }
  1094     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1095     eval with_$ac_package=no ;;
  1097   --x)
  1098     # Obsolete; use --with-x.
  1099     with_x=yes ;;
  1101   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1102   | --x-incl | --x-inc | --x-in | --x-i)
  1103     ac_prev=x_includes ;;
  1104   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1105   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1106     x_includes=$ac_optarg ;;
  1108   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1109   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1110     ac_prev=x_libraries ;;
  1111   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1112   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1113     x_libraries=$ac_optarg ;;
  1115   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1116 Try \`$0 --help' for more information." >&2
  1117    { (exit 1); exit 1; }; }
  1118     ;;
  1120   *=*)
  1121     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1122     # Reject names that are not valid shell variable names.
  1123     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1124       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1125    { (exit 1); exit 1; }; }
  1126     eval $ac_envvar=\$ac_optarg
  1127     export $ac_envvar ;;
  1129   *)
  1130     # FIXME: should be removed in autoconf 3.0.
  1131     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1132     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1133       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1134     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1135     ;;
  1137   esac
  1138 done
  1140 if test -n "$ac_prev"; then
  1141   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1142   { echo "$as_me: error: missing argument to $ac_option" >&2
  1143    { (exit 1); exit 1; }; }
  1144 fi
  1146 # Be sure to have absolute directory names.
  1147 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1148 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1149 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1150 		libdir localedir mandir
  1151 do
  1152   eval ac_val=\$$ac_var
  1153   case $ac_val in
  1154     [\\/$]* | ?:[\\/]* )  continue;;
  1155     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1156   esac
  1157   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1158    { (exit 1); exit 1; }; }
  1159 done
  1161 # There might be people who depend on the old broken behavior: `$host'
  1162 # used to hold the argument of --host etc.
  1163 # FIXME: To remove some day.
  1164 build=$build_alias
  1165 host=$host_alias
  1166 target=$target_alias
  1168 # FIXME: To remove some day.
  1169 if test "x$host_alias" != x; then
  1170   if test "x$build_alias" = x; then
  1171     cross_compiling=maybe
  1172     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1173     If a cross compiler is detected then cross compile mode will be used." >&2
  1174   elif test "x$build_alias" != "x$host_alias"; then
  1175     cross_compiling=yes
  1176   fi
  1177 fi
  1179 ac_tool_prefix=
  1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1182 test "$silent" = yes && exec 6>/dev/null
  1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1186 ac_ls_di=`ls -di .` &&
  1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1188   { echo "$as_me: error: Working directory cannot be determined" >&2
  1189    { (exit 1); exit 1; }; }
  1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1191   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1192    { (exit 1); exit 1; }; }
  1195 # Find the source files, if location was not specified.
  1196 if test -z "$srcdir"; then
  1197   ac_srcdir_defaulted=yes
  1198   # Try the directory containing this script, then the parent directory.
  1199   ac_confdir=`$as_dirname -- "$0" ||
  1200 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1201 	 X"$0" : 'X\(//\)[^/]' \| \
  1202 	 X"$0" : 'X\(//\)$' \| \
  1203 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1204 echo X"$0" |
  1205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1206 	    s//\1/
  1209 	  /^X\(\/\/\)[^/].*/{
  1210 	    s//\1/
  1213 	  /^X\(\/\/\)$/{
  1214 	    s//\1/
  1217 	  /^X\(\/\).*/{
  1218 	    s//\1/
  1221 	  s/.*/./; q'`
  1222   srcdir=$ac_confdir
  1223   if test ! -r "$srcdir/$ac_unique_file"; then
  1224     srcdir=..
  1225   fi
  1226 else
  1227   ac_srcdir_defaulted=no
  1228 fi
  1229 if test ! -r "$srcdir/$ac_unique_file"; then
  1230   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1231   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1232    { (exit 1); exit 1; }; }
  1233 fi
  1234 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1235 ac_abs_confdir=`(
  1236 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1237    { (exit 1); exit 1; }; }
  1238 	pwd)`
  1239 # When building in place, set srcdir=.
  1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1241   srcdir=.
  1242 fi
  1243 # Remove unnecessary trailing slashes from srcdir.
  1244 # Double slashes in file names in object file debugging info
  1245 # mess up M-x gdb in Emacs.
  1246 case $srcdir in
  1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1248 esac
  1249 for ac_var in $ac_precious_vars; do
  1250   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1251   eval ac_env_${ac_var}_value=\$${ac_var}
  1252   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1253   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1254 done
  1257 # Report the --help message.
  1259 if test "$ac_init_help" = "long"; then
  1260   # Omit some internal or obsolete options to make the list less imposing.
  1261   # This message is too long to be a string in the A/UX 3.1 sh.
  1262   cat <<_ACEOF
  1263 \`configure' configures this package to adapt to many kinds of systems.
  1265 Usage: $0 [OPTION]... [VAR=VALUE]...
  1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1268 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1270 Defaults for the options are specified in brackets.
  1272 Configuration:
  1273   -h, --help              display this help and exit
  1274       --help=short        display options specific to this package
  1275       --help=recursive    display the short help of all the included packages
  1276   -V, --version           display version information and exit
  1277   -q, --quiet, --silent   do not print \`checking...' messages
  1278       --cache-file=FILE   cache test results in FILE [disabled]
  1279   -C, --config-cache      alias for \`--cache-file=config.cache'
  1280   -n, --no-create         do not create output files
  1281       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1283 Installation directories:
  1284   --prefix=PREFIX         install architecture-independent files in PREFIX
  1285 			  [$ac_default_prefix]
  1286   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1287 			  [PREFIX]
  1289 By default, \`make install' will install all the files in
  1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1292 for instance \`--prefix=\$HOME'.
  1294 For better control, use the options below.
  1296 Fine tuning of the installation directories:
  1297   --bindir=DIR           user executables [EPREFIX/bin]
  1298   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1299   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1300   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1301   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1302   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1303   --libdir=DIR           object code libraries [EPREFIX/lib]
  1304   --includedir=DIR       C header files [PREFIX/include]
  1305   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1306   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1307   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1308   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1309   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1310   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1311   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1312   --htmldir=DIR          html documentation [DOCDIR]
  1313   --dvidir=DIR           dvi documentation [DOCDIR]
  1314   --pdfdir=DIR           pdf documentation [DOCDIR]
  1315   --psdir=DIR            ps documentation [DOCDIR]
  1316 _ACEOF
  1318   cat <<\_ACEOF
  1320 Program names:
  1321   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1322   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1323   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1325 System types:
  1326   --build=BUILD     configure for building on BUILD [guessed]
  1327   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1328 _ACEOF
  1329 fi
  1331 if test -n "$ac_init_help"; then
  1333   cat <<\_ACEOF
  1335 Optional Features:
  1336   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1337   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1338   --enable-maintainer-mode enable make rules and dependencies not useful
  1339                           (and sometimes confusing) to the casual installer
  1340   --disable-dependency-tracking Speeds up one-time builds
  1341   --enable-dependency-tracking  Do not reject slow dependency extractors
  1343 Some influential environment variables:
  1344   CC          C compiler command
  1345   CFLAGS      C compiler flags
  1346   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1347               nonstandard directory <lib dir>
  1348   LIBS        libraries to pass to the linker, e.g. -l<library>
  1349   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1350               you have headers in a nonstandard directory <include dir>
  1351   CPP         C preprocessor
  1352   PKG_CONFIG  path to pkg-config utility
  1353   LIBPNG_CFLAGS
  1354               C compiler flags for LIBPNG, overriding pkg-config
  1355   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1356   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1357   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1358   ESOUND_CFLAGS
  1359               C compiler flags for ESOUND, overriding pkg-config
  1360   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1362 Use these variables to override the choices made by `configure' or to help
  1363 it to find libraries and programs with nonstandard names/locations.
  1365 _ACEOF
  1366 ac_status=$?
  1367 fi
  1369 if test "$ac_init_help" = "recursive"; then
  1370   # If there are subdirs, report their specific --help.
  1371   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1372     test -d "$ac_dir" || continue
  1373     ac_builddir=.
  1375 case "$ac_dir" in
  1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1377 *)
  1378   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1379   # A ".." for each directory in $ac_dir_suffix.
  1380   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1381   case $ac_top_builddir_sub in
  1382   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1383   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1384   esac ;;
  1385 esac
  1386 ac_abs_top_builddir=$ac_pwd
  1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1388 # for backward compatibility:
  1389 ac_top_builddir=$ac_top_build_prefix
  1391 case $srcdir in
  1392   .)  # We are building in place.
  1393     ac_srcdir=.
  1394     ac_top_srcdir=$ac_top_builddir_sub
  1395     ac_abs_top_srcdir=$ac_pwd ;;
  1396   [\\/]* | ?:[\\/]* )  # Absolute name.
  1397     ac_srcdir=$srcdir$ac_dir_suffix;
  1398     ac_top_srcdir=$srcdir
  1399     ac_abs_top_srcdir=$srcdir ;;
  1400   *) # Relative name.
  1401     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1402     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1403     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1404 esac
  1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1407     cd "$ac_dir" || { ac_status=$?; continue; }
  1408     # Check for guested configure.
  1409     if test -f "$ac_srcdir/configure.gnu"; then
  1410       echo &&
  1411       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1412     elif test -f "$ac_srcdir/configure"; then
  1413       echo &&
  1414       $SHELL "$ac_srcdir/configure" --help=recursive
  1415     else
  1416       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1417     fi || ac_status=$?
  1418     cd "$ac_pwd" || { ac_status=$?; break; }
  1419   done
  1420 fi
  1422 test -n "$ac_init_help" && exit $ac_status
  1423 if $ac_init_version; then
  1424   cat <<\_ACEOF
  1425 configure
  1426 generated by GNU Autoconf 2.61
  1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1430 This configure script is free software; the Free Software Foundation
  1431 gives unlimited permission to copy, distribute and modify it.
  1432 _ACEOF
  1433   exit
  1434 fi
  1435 cat >config.log <<_ACEOF
  1436 This file contains any messages produced by compilers while
  1437 running configure, to aid debugging if configure makes a mistake.
  1439 It was created by $as_me, which was
  1440 generated by GNU Autoconf 2.61.  Invocation command line was
  1442   $ $0 $@
  1444 _ACEOF
  1445 exec 5>>config.log
  1447 cat <<_ASUNAME
  1448 ## --------- ##
  1449 ## Platform. ##
  1450 ## --------- ##
  1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1459 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1461 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1462 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1464 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1465 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1466 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1467 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1469 _ASUNAME
  1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1472 for as_dir in $PATH
  1473 do
  1474   IFS=$as_save_IFS
  1475   test -z "$as_dir" && as_dir=.
  1476   echo "PATH: $as_dir"
  1477 done
  1478 IFS=$as_save_IFS
  1480 } >&5
  1482 cat >&5 <<_ACEOF
  1485 ## ----------- ##
  1486 ## Core tests. ##
  1487 ## ----------- ##
  1489 _ACEOF
  1492 # Keep a trace of the command line.
  1493 # Strip out --no-create and --no-recursion so they do not pile up.
  1494 # Strip out --silent because we don't want to record it for future runs.
  1495 # Also quote any args containing shell meta-characters.
  1496 # Make two passes to allow for proper duplicate-argument suppression.
  1497 ac_configure_args=
  1498 ac_configure_args0=
  1499 ac_configure_args1=
  1500 ac_must_keep_next=false
  1501 for ac_pass in 1 2
  1502 do
  1503   for ac_arg
  1504   do
  1505     case $ac_arg in
  1506     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1507     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1508     | -silent | --silent | --silen | --sile | --sil)
  1509       continue ;;
  1510     *\'*)
  1511       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1512     esac
  1513     case $ac_pass in
  1514     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1515     2)
  1516       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1517       if test $ac_must_keep_next = true; then
  1518 	ac_must_keep_next=false # Got value, back to normal.
  1519       else
  1520 	case $ac_arg in
  1521 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1522 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1523 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1524 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1525 	    case "$ac_configure_args0 " in
  1526 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1527 	    esac
  1528 	    ;;
  1529 	  -* ) ac_must_keep_next=true ;;
  1530 	esac
  1531       fi
  1532       ac_configure_args="$ac_configure_args '$ac_arg'"
  1533       ;;
  1534     esac
  1535   done
  1536 done
  1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1540 # When interrupted or exit'd, cleanup temporary files, and complete
  1541 # config.log.  We remove comments because anyway the quotes in there
  1542 # would cause problems or look ugly.
  1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1545 trap 'exit_status=$?
  1546   # Save into config.log some information that might help in debugging.
  1548     echo
  1550     cat <<\_ASBOX
  1551 ## ---------------- ##
  1552 ## Cache variables. ##
  1553 ## ---------------- ##
  1554 _ASBOX
  1555     echo
  1556     # The following way of writing the cache mishandles newlines in values,
  1558   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1559     eval ac_val=\$$ac_var
  1560     case $ac_val in #(
  1561     *${as_nl}*)
  1562       case $ac_var in #(
  1563       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1565       esac
  1566       case $ac_var in #(
  1567       _ | IFS | as_nl) ;; #(
  1568       *) $as_unset $ac_var ;;
  1569       esac ;;
  1570     esac
  1571   done
  1572   (set) 2>&1 |
  1573     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1574     *${as_nl}ac_space=\ *)
  1575       sed -n \
  1576 	"s/'\''/'\''\\\\'\'''\''/g;
  1577 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1578       ;; #(
  1579     *)
  1580       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1581       ;;
  1582     esac |
  1583     sort
  1585     echo
  1587     cat <<\_ASBOX
  1588 ## ----------------- ##
  1589 ## Output variables. ##
  1590 ## ----------------- ##
  1591 _ASBOX
  1592     echo
  1593     for ac_var in $ac_subst_vars
  1594     do
  1595       eval ac_val=\$$ac_var
  1596       case $ac_val in
  1597       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1598       esac
  1599       echo "$ac_var='\''$ac_val'\''"
  1600     done | sort
  1601     echo
  1603     if test -n "$ac_subst_files"; then
  1604       cat <<\_ASBOX
  1605 ## ------------------- ##
  1606 ## File substitutions. ##
  1607 ## ------------------- ##
  1608 _ASBOX
  1609       echo
  1610       for ac_var in $ac_subst_files
  1611       do
  1612 	eval ac_val=\$$ac_var
  1613 	case $ac_val in
  1614 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1615 	esac
  1616 	echo "$ac_var='\''$ac_val'\''"
  1617       done | sort
  1618       echo
  1619     fi
  1621     if test -s confdefs.h; then
  1622       cat <<\_ASBOX
  1623 ## ----------- ##
  1624 ## confdefs.h. ##
  1625 ## ----------- ##
  1626 _ASBOX
  1627       echo
  1628       cat confdefs.h
  1629       echo
  1630     fi
  1631     test "$ac_signal" != 0 &&
  1632       echo "$as_me: caught signal $ac_signal"
  1633     echo "$as_me: exit $exit_status"
  1634   } >&5
  1635   rm -f core *.core core.conftest.* &&
  1636     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1637     exit $exit_status
  1638 ' 0
  1639 for ac_signal in 1 2 13 15; do
  1640   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1641 done
  1642 ac_signal=0
  1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1645 rm -f -r conftest* confdefs.h
  1647 # Predefined preprocessor variables.
  1649 cat >>confdefs.h <<_ACEOF
  1650 #define PACKAGE_NAME "$PACKAGE_NAME"
  1651 _ACEOF
  1654 cat >>confdefs.h <<_ACEOF
  1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1656 _ACEOF
  1659 cat >>confdefs.h <<_ACEOF
  1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1661 _ACEOF
  1664 cat >>confdefs.h <<_ACEOF
  1665 #define PACKAGE_STRING "$PACKAGE_STRING"
  1666 _ACEOF
  1669 cat >>confdefs.h <<_ACEOF
  1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1671 _ACEOF
  1674 # Let the site file select an alternate cache file if it wants to.
  1675 # Prefer explicitly selected file to automatically selected ones.
  1676 if test -n "$CONFIG_SITE"; then
  1677   set x "$CONFIG_SITE"
  1678 elif test "x$prefix" != xNONE; then
  1679   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1680 else
  1681   set x "$ac_default_prefix/share/config.site" \
  1682 	"$ac_default_prefix/etc/config.site"
  1683 fi
  1684 shift
  1685 for ac_site_file
  1686 do
  1687   if test -r "$ac_site_file"; then
  1688     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1689 echo "$as_me: loading site script $ac_site_file" >&6;}
  1690     sed 's/^/| /' "$ac_site_file" >&5
  1691     . "$ac_site_file"
  1692   fi
  1693 done
  1695 if test -r "$cache_file"; then
  1696   # Some versions of bash will fail to source /dev/null (special
  1697   # files actually), so we avoid doing that.
  1698   if test -f "$cache_file"; then
  1699     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1700 echo "$as_me: loading cache $cache_file" >&6;}
  1701     case $cache_file in
  1702       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1703       *)                      . "./$cache_file";;
  1704     esac
  1705   fi
  1706 else
  1707   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1708 echo "$as_me: creating cache $cache_file" >&6;}
  1709   >$cache_file
  1710 fi
  1712 # Check that the precious variables saved in the cache have kept the same
  1713 # value.
  1714 ac_cache_corrupted=false
  1715 for ac_var in $ac_precious_vars; do
  1716   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1717   eval ac_new_set=\$ac_env_${ac_var}_set
  1718   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1719   eval ac_new_val=\$ac_env_${ac_var}_value
  1720   case $ac_old_set,$ac_new_set in
  1721     set,)
  1722       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1723 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1724       ac_cache_corrupted=: ;;
  1725     ,set)
  1726       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1727 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1728       ac_cache_corrupted=: ;;
  1729     ,);;
  1730     *)
  1731       if test "x$ac_old_val" != "x$ac_new_val"; then
  1732 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1733 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1734 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1735 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1736 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1737 echo "$as_me:   current value: $ac_new_val" >&2;}
  1738 	ac_cache_corrupted=:
  1739       fi;;
  1740   esac
  1741   # Pass precious variables to config.status.
  1742   if test "$ac_new_set" = set; then
  1743     case $ac_new_val in
  1744     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1745     *) ac_arg=$ac_var=$ac_new_val ;;
  1746     esac
  1747     case " $ac_configure_args " in
  1748       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1749       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1750     esac
  1751   fi
  1752 done
  1753 if $ac_cache_corrupted; then
  1754   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1755 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1756   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1757 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1758    { (exit 1); exit 1; }; }
  1759 fi
  1777 ac_ext=c
  1778 ac_cpp='$CPP $CPPFLAGS'
  1779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1784 am__api_version="1.7"
  1785 ac_aux_dir=
  1786 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1787   if test -f "$ac_dir/install-sh"; then
  1788     ac_aux_dir=$ac_dir
  1789     ac_install_sh="$ac_aux_dir/install-sh -c"
  1790     break
  1791   elif test -f "$ac_dir/install.sh"; then
  1792     ac_aux_dir=$ac_dir
  1793     ac_install_sh="$ac_aux_dir/install.sh -c"
  1794     break
  1795   elif test -f "$ac_dir/shtool"; then
  1796     ac_aux_dir=$ac_dir
  1797     ac_install_sh="$ac_aux_dir/shtool install -c"
  1798     break
  1799   fi
  1800 done
  1801 if test -z "$ac_aux_dir"; then
  1802   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1803 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1804    { (exit 1); exit 1; }; }
  1805 fi
  1807 # These three variables are undocumented and unsupported,
  1808 # and are intended to be withdrawn in a future Autoconf release.
  1809 # They can cause serious problems if a builder's source tree is in a directory
  1810 # whose full name contains unusual characters.
  1811 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1812 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1813 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1816 # Find a good install program.  We prefer a C program (faster),
  1817 # so one script is as good as another.  But avoid the broken or
  1818 # incompatible versions:
  1819 # SysV /etc/install, /usr/sbin/install
  1820 # SunOS /usr/etc/install
  1821 # IRIX /sbin/install
  1822 # AIX /bin/install
  1823 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1824 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1827 # OS/2's system install, which has a completely different semantic
  1828 # ./install, which can be erroneously created by make from ./install.sh.
  1829 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1830 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1831 if test -z "$INSTALL"; then
  1832 if test "${ac_cv_path_install+set}" = set; then
  1833   echo $ECHO_N "(cached) $ECHO_C" >&6
  1834 else
  1835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1836 for as_dir in $PATH
  1837 do
  1838   IFS=$as_save_IFS
  1839   test -z "$as_dir" && as_dir=.
  1840   # Account for people who put trailing slashes in PATH elements.
  1841 case $as_dir/ in
  1842   ./ | .// | /cC/* | \
  1843   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1844   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1845   /usr/ucb/* ) ;;
  1846   *)
  1847     # OSF1 and SCO ODT 3.0 have their own names for install.
  1848     # Don't use installbsd from OSF since it installs stuff as root
  1849     # by default.
  1850     for ac_prog in ginstall scoinst install; do
  1851       for ac_exec_ext in '' $ac_executable_extensions; do
  1852 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1853 	  if test $ac_prog = install &&
  1854 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1855 	    # AIX install.  It has an incompatible calling convention.
  1857 	  elif test $ac_prog = install &&
  1858 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1859 	    # program-specific install script used by HP pwplus--don't use.
  1861 	  else
  1862 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1863 	    break 3
  1864 	  fi
  1865 	fi
  1866       done
  1867     done
  1868     ;;
  1869 esac
  1870 done
  1871 IFS=$as_save_IFS
  1874 fi
  1875   if test "${ac_cv_path_install+set}" = set; then
  1876     INSTALL=$ac_cv_path_install
  1877   else
  1878     # As a last resort, use the slow shell script.  Don't cache a
  1879     # value for INSTALL within a source directory, because that will
  1880     # break other packages using the cache if that directory is
  1881     # removed, or if the value is a relative name.
  1882     INSTALL=$ac_install_sh
  1883   fi
  1884 fi
  1885 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1886 echo "${ECHO_T}$INSTALL" >&6; }
  1888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1889 # It thinks the first close brace ends the variable substitution.
  1890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1896 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1897 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1898 # Just in case
  1899 sleep 1
  1900 echo timestamp > conftest.file
  1901 # Do `set' in a subshell so we don't clobber the current shell's
  1902 # arguments.  Must try -L first in case configure is actually a
  1903 # symlink; some systems play weird games with the mod time of symlinks
  1904 # (eg FreeBSD returns the mod time of the symlink's containing
  1905 # directory).
  1906 if (
  1907    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1908    if test "$*" = "X"; then
  1909       # -L didn't work.
  1910       set X `ls -t $srcdir/configure conftest.file`
  1911    fi
  1912    rm -f conftest.file
  1913    if test "$*" != "X $srcdir/configure conftest.file" \
  1914       && test "$*" != "X conftest.file $srcdir/configure"; then
  1916       # If neither matched, then we have a broken ls.  This can happen
  1917       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1918       # broken ls alias from the environment.  This has actually
  1919       # happened.  Such a system could not be considered "sane".
  1920       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1921 alias in your environment" >&5
  1922 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1923 alias in your environment" >&2;}
  1924    { (exit 1); exit 1; }; }
  1925    fi
  1927    test "$2" = conftest.file
  1929 then
  1930    # Ok.
  1932 else
  1933    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1934 Check your system clock" >&5
  1935 echo "$as_me: error: newly created file is older than distributed files!
  1936 Check your system clock" >&2;}
  1937    { (exit 1); exit 1; }; }
  1938 fi
  1939 { echo "$as_me:$LINENO: result: yes" >&5
  1940 echo "${ECHO_T}yes" >&6; }
  1941 test "$program_prefix" != NONE &&
  1942   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1943 # Use a double $ so make ignores it.
  1944 test "$program_suffix" != NONE &&
  1945   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1946 # Double any \ or $.  echo might interpret backslashes.
  1947 # By default was `s,x,x', remove it if useless.
  1948 cat <<\_ACEOF >conftest.sed
  1949 s/[\\$]/&&/g;s/;s,x,x,$//
  1950 _ACEOF
  1951 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1952 rm -f conftest.sed
  1955 # expand $ac_aux_dir to an absolute path
  1956 am_aux_dir=`cd $ac_aux_dir && pwd`
  1958 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1959 # Use eval to expand $SHELL
  1960 if eval "$MISSING --run true"; then
  1961   am_missing_run="$MISSING --run "
  1962 else
  1963   am_missing_run=
  1964   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1965 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1966 fi
  1968 for ac_prog in gawk mawk nawk awk
  1969 do
  1970   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1971 set dummy $ac_prog; ac_word=$2
  1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1974 if test "${ac_cv_prog_AWK+set}" = set; then
  1975   echo $ECHO_N "(cached) $ECHO_C" >&6
  1976 else
  1977   if test -n "$AWK"; then
  1978   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1979 else
  1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1981 for as_dir in $PATH
  1982 do
  1983   IFS=$as_save_IFS
  1984   test -z "$as_dir" && as_dir=.
  1985   for ac_exec_ext in '' $ac_executable_extensions; do
  1986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1987     ac_cv_prog_AWK="$ac_prog"
  1988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1989     break 2
  1990   fi
  1991 done
  1992 done
  1993 IFS=$as_save_IFS
  1995 fi
  1996 fi
  1997 AWK=$ac_cv_prog_AWK
  1998 if test -n "$AWK"; then
  1999   { echo "$as_me:$LINENO: result: $AWK" >&5
  2000 echo "${ECHO_T}$AWK" >&6; }
  2001 else
  2002   { echo "$as_me:$LINENO: result: no" >&5
  2003 echo "${ECHO_T}no" >&6; }
  2004 fi
  2007   test -n "$AWK" && break
  2008 done
  2010 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2011 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2012 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2013 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2014   echo $ECHO_N "(cached) $ECHO_C" >&6
  2015 else
  2016   cat >conftest.make <<\_ACEOF
  2017 SHELL = /bin/sh
  2018 all:
  2019 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2020 _ACEOF
  2021 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2022 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2023   *@@@%%%=?*=@@@%%%*)
  2024     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2025   *)
  2026     eval ac_cv_prog_make_${ac_make}_set=no;;
  2027 esac
  2028 rm -f conftest.make
  2029 fi
  2030 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2031   { echo "$as_me:$LINENO: result: yes" >&5
  2032 echo "${ECHO_T}yes" >&6; }
  2033   SET_MAKE=
  2034 else
  2035   { echo "$as_me:$LINENO: result: no" >&5
  2036 echo "${ECHO_T}no" >&6; }
  2037   SET_MAKE="MAKE=${MAKE-make}"
  2038 fi
  2040 rm -rf .tst 2>/dev/null
  2041 mkdir .tst 2>/dev/null
  2042 if test -d .tst; then
  2043   am__leading_dot=.
  2044 else
  2045   am__leading_dot=_
  2046 fi
  2047 rmdir .tst 2>/dev/null
  2049  # test to see if srcdir already configured
  2050 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2051    test -f $srcdir/config.status; then
  2052   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2053 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2054    { (exit 1); exit 1; }; }
  2055 fi
  2057 # test whether we have cygpath
  2058 if test -z "$CYGPATH_W"; then
  2059   if (cygpath --version) >/dev/null 2>/dev/null; then
  2060     CYGPATH_W='cygpath -w'
  2061   else
  2062     CYGPATH_W=echo
  2063   fi
  2064 fi
  2067 # Define the identity of the package.
  2068  PACKAGE=lxdream
  2069  VERSION=0.8.1
  2072 cat >>confdefs.h <<_ACEOF
  2073 #define PACKAGE "$PACKAGE"
  2074 _ACEOF
  2077 cat >>confdefs.h <<_ACEOF
  2078 #define VERSION "$VERSION"
  2079 _ACEOF
  2081 # Some tools Automake needs.
  2083 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2086 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2089 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2092 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2095 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2098 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2100 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2102 # Installed binaries are usually stripped using `strip' when the user
  2103 # run `make install-strip'.  However `strip' might not be the right
  2104 # tool to use in cross-compilation environments, therefore Automake
  2105 # will honor the `STRIP' environment variable to overrule this program.
  2106 if test "$cross_compiling" != no; then
  2107   if test -n "$ac_tool_prefix"; then
  2108   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2109 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2112 if test "${ac_cv_prog_STRIP+set}" = set; then
  2113   echo $ECHO_N "(cached) $ECHO_C" >&6
  2114 else
  2115   if test -n "$STRIP"; then
  2116   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2117 else
  2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2119 for as_dir in $PATH
  2120 do
  2121   IFS=$as_save_IFS
  2122   test -z "$as_dir" && as_dir=.
  2123   for ac_exec_ext in '' $ac_executable_extensions; do
  2124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2125     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2127     break 2
  2128   fi
  2129 done
  2130 done
  2131 IFS=$as_save_IFS
  2133 fi
  2134 fi
  2135 STRIP=$ac_cv_prog_STRIP
  2136 if test -n "$STRIP"; then
  2137   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2138 echo "${ECHO_T}$STRIP" >&6; }
  2139 else
  2140   { echo "$as_me:$LINENO: result: no" >&5
  2141 echo "${ECHO_T}no" >&6; }
  2142 fi
  2145 fi
  2146 if test -z "$ac_cv_prog_STRIP"; then
  2147   ac_ct_STRIP=$STRIP
  2148   # Extract the first word of "strip", so it can be a program name with args.
  2149 set dummy strip; ac_word=$2
  2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2152 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2153   echo $ECHO_N "(cached) $ECHO_C" >&6
  2154 else
  2155   if test -n "$ac_ct_STRIP"; then
  2156   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2157 else
  2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2159 for as_dir in $PATH
  2160 do
  2161   IFS=$as_save_IFS
  2162   test -z "$as_dir" && as_dir=.
  2163   for ac_exec_ext in '' $ac_executable_extensions; do
  2164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2165     ac_cv_prog_ac_ct_STRIP="strip"
  2166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2167     break 2
  2168   fi
  2169 done
  2170 done
  2171 IFS=$as_save_IFS
  2173 fi
  2174 fi
  2175 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2176 if test -n "$ac_ct_STRIP"; then
  2177   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2178 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2179 else
  2180   { echo "$as_me:$LINENO: result: no" >&5
  2181 echo "${ECHO_T}no" >&6; }
  2182 fi
  2184   if test "x$ac_ct_STRIP" = x; then
  2185     STRIP=":"
  2186   else
  2187     case $cross_compiling:$ac_tool_warned in
  2188 yes:)
  2189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2190 whose name does not start with the host triplet.  If you think this
  2191 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2193 whose name does not start with the host triplet.  If you think this
  2194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2195 ac_tool_warned=yes ;;
  2196 esac
  2197     STRIP=$ac_ct_STRIP
  2198   fi
  2199 else
  2200   STRIP="$ac_cv_prog_STRIP"
  2201 fi
  2203 fi
  2204 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2206 # We need awk for the "check" target.  The system "awk" is bad on
  2207 # some platforms.
  2211 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2212 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2213     # Check whether --enable-maintainer-mode was given.
  2214 if test "${enable_maintainer_mode+set}" = set; then
  2215   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2216 else
  2217   USE_MAINTAINER_MODE=no
  2218 fi
  2220   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2221 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2224 if test $USE_MAINTAINER_MODE = yes; then
  2225   MAINTAINER_MODE_TRUE=
  2226   MAINTAINER_MODE_FALSE='#'
  2227 else
  2228   MAINTAINER_MODE_TRUE='#'
  2229   MAINTAINER_MODE_FALSE=
  2230 fi
  2232   MAINT=$MAINTAINER_MODE_TRUE
  2235 ac_config_headers="$ac_config_headers config.h"
  2238 DEPDIR="${am__leading_dot}deps"
  2240 ac_config_commands="$ac_config_commands depfiles"
  2243 am_make=${MAKE-make}
  2244 cat > confinc << 'END'
  2245 am__doit:
  2246 	@echo done
  2247 .PHONY: am__doit
  2248 END
  2249 # If we don't find an include directive, just comment out the code.
  2250 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2251 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2252 am__include="#"
  2253 am__quote=
  2254 _am_result=none
  2255 # First try GNU make style include.
  2256 echo "include confinc" > confmf
  2257 # We grep out `Entering directory' and `Leaving directory'
  2258 # messages which can occur if `w' ends up in MAKEFLAGS.
  2259 # In particular we don't look at `^make:' because GNU make might
  2260 # be invoked under some other name (usually "gmake"), in which
  2261 # case it prints its new name instead of `make'.
  2262 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2263    am__include=include
  2264    am__quote=
  2265    _am_result=GNU
  2266 fi
  2267 # Now try BSD make style include.
  2268 if test "$am__include" = "#"; then
  2269    echo '.include "confinc"' > confmf
  2270    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2271       am__include=.include
  2272       am__quote="\""
  2273       _am_result=BSD
  2274    fi
  2275 fi
  2278 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2279 echo "${ECHO_T}$_am_result" >&6; }
  2280 rm -f confinc confmf
  2282 # Check whether --enable-dependency-tracking was given.
  2283 if test "${enable_dependency_tracking+set}" = set; then
  2284   enableval=$enable_dependency_tracking;
  2285 fi
  2287 if test "x$enable_dependency_tracking" != xno; then
  2288   am_depcomp="$ac_aux_dir/depcomp"
  2289   AMDEPBACKSLASH='\'
  2290 fi
  2293 if test "x$enable_dependency_tracking" != xno; then
  2294   AMDEP_TRUE=
  2295   AMDEP_FALSE='#'
  2296 else
  2297   AMDEP_TRUE='#'
  2298   AMDEP_FALSE=
  2299 fi
  2303 ac_ext=c
  2304 ac_cpp='$CPP $CPPFLAGS'
  2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2308 if test -n "$ac_tool_prefix"; then
  2309   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2313 if test "${ac_cv_prog_CC+set}" = set; then
  2314   echo $ECHO_N "(cached) $ECHO_C" >&6
  2315 else
  2316   if test -n "$CC"; then
  2317   ac_cv_prog_CC="$CC" # Let the user override the test.
  2318 else
  2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2320 for as_dir in $PATH
  2321 do
  2322   IFS=$as_save_IFS
  2323   test -z "$as_dir" && as_dir=.
  2324   for ac_exec_ext in '' $ac_executable_extensions; do
  2325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2326     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2328     break 2
  2329   fi
  2330 done
  2331 done
  2332 IFS=$as_save_IFS
  2334 fi
  2335 fi
  2336 CC=$ac_cv_prog_CC
  2337 if test -n "$CC"; then
  2338   { echo "$as_me:$LINENO: result: $CC" >&5
  2339 echo "${ECHO_T}$CC" >&6; }
  2340 else
  2341   { echo "$as_me:$LINENO: result: no" >&5
  2342 echo "${ECHO_T}no" >&6; }
  2343 fi
  2346 fi
  2347 if test -z "$ac_cv_prog_CC"; then
  2348   ac_ct_CC=$CC
  2349   # Extract the first word of "gcc", so it can be a program name with args.
  2350 set dummy gcc; ac_word=$2
  2351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2354   echo $ECHO_N "(cached) $ECHO_C" >&6
  2355 else
  2356   if test -n "$ac_ct_CC"; then
  2357   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2358 else
  2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2360 for as_dir in $PATH
  2361 do
  2362   IFS=$as_save_IFS
  2363   test -z "$as_dir" && as_dir=.
  2364   for ac_exec_ext in '' $ac_executable_extensions; do
  2365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2366     ac_cv_prog_ac_ct_CC="gcc"
  2367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2368     break 2
  2369   fi
  2370 done
  2371 done
  2372 IFS=$as_save_IFS
  2374 fi
  2375 fi
  2376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2377 if test -n "$ac_ct_CC"; then
  2378   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2379 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2380 else
  2381   { echo "$as_me:$LINENO: result: no" >&5
  2382 echo "${ECHO_T}no" >&6; }
  2383 fi
  2385   if test "x$ac_ct_CC" = x; then
  2386     CC=""
  2387   else
  2388     case $cross_compiling:$ac_tool_warned in
  2389 yes:)
  2390 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2391 whose name does not start with the host triplet.  If you think this
  2392 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2394 whose name does not start with the host triplet.  If you think this
  2395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2396 ac_tool_warned=yes ;;
  2397 esac
  2398     CC=$ac_ct_CC
  2399   fi
  2400 else
  2401   CC="$ac_cv_prog_CC"
  2402 fi
  2404 if test -z "$CC"; then
  2405           if test -n "$ac_tool_prefix"; then
  2406     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2407 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2410 if test "${ac_cv_prog_CC+set}" = set; then
  2411   echo $ECHO_N "(cached) $ECHO_C" >&6
  2412 else
  2413   if test -n "$CC"; then
  2414   ac_cv_prog_CC="$CC" # Let the user override the test.
  2415 else
  2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2417 for as_dir in $PATH
  2418 do
  2419   IFS=$as_save_IFS
  2420   test -z "$as_dir" && as_dir=.
  2421   for ac_exec_ext in '' $ac_executable_extensions; do
  2422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2423     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2425     break 2
  2426   fi
  2427 done
  2428 done
  2429 IFS=$as_save_IFS
  2431 fi
  2432 fi
  2433 CC=$ac_cv_prog_CC
  2434 if test -n "$CC"; then
  2435   { echo "$as_me:$LINENO: result: $CC" >&5
  2436 echo "${ECHO_T}$CC" >&6; }
  2437 else
  2438   { echo "$as_me:$LINENO: result: no" >&5
  2439 echo "${ECHO_T}no" >&6; }
  2440 fi
  2443   fi
  2444 fi
  2445 if test -z "$CC"; then
  2446   # Extract the first word of "cc", so it can be a program name with args.
  2447 set dummy cc; ac_word=$2
  2448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2450 if test "${ac_cv_prog_CC+set}" = set; then
  2451   echo $ECHO_N "(cached) $ECHO_C" >&6
  2452 else
  2453   if test -n "$CC"; then
  2454   ac_cv_prog_CC="$CC" # Let the user override the test.
  2455 else
  2456   ac_prog_rejected=no
  2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2458 for as_dir in $PATH
  2459 do
  2460   IFS=$as_save_IFS
  2461   test -z "$as_dir" && as_dir=.
  2462   for ac_exec_ext in '' $ac_executable_extensions; do
  2463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2464     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2465        ac_prog_rejected=yes
  2466        continue
  2467      fi
  2468     ac_cv_prog_CC="cc"
  2469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2470     break 2
  2471   fi
  2472 done
  2473 done
  2474 IFS=$as_save_IFS
  2476 if test $ac_prog_rejected = yes; then
  2477   # We found a bogon in the path, so make sure we never use it.
  2478   set dummy $ac_cv_prog_CC
  2479   shift
  2480   if test $# != 0; then
  2481     # We chose a different compiler from the bogus one.
  2482     # However, it has the same basename, so the bogon will be chosen
  2483     # first if we set CC to just the basename; use the full file name.
  2484     shift
  2485     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2486   fi
  2487 fi
  2488 fi
  2489 fi
  2490 CC=$ac_cv_prog_CC
  2491 if test -n "$CC"; then
  2492   { echo "$as_me:$LINENO: result: $CC" >&5
  2493 echo "${ECHO_T}$CC" >&6; }
  2494 else
  2495   { echo "$as_me:$LINENO: result: no" >&5
  2496 echo "${ECHO_T}no" >&6; }
  2497 fi
  2500 fi
  2501 if test -z "$CC"; then
  2502   if test -n "$ac_tool_prefix"; then
  2503   for ac_prog in cl.exe
  2504   do
  2505     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2509 if test "${ac_cv_prog_CC+set}" = set; then
  2510   echo $ECHO_N "(cached) $ECHO_C" >&6
  2511 else
  2512   if test -n "$CC"; then
  2513   ac_cv_prog_CC="$CC" # Let the user override the test.
  2514 else
  2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2516 for as_dir in $PATH
  2517 do
  2518   IFS=$as_save_IFS
  2519   test -z "$as_dir" && as_dir=.
  2520   for ac_exec_ext in '' $ac_executable_extensions; do
  2521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2522     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2524     break 2
  2525   fi
  2526 done
  2527 done
  2528 IFS=$as_save_IFS
  2530 fi
  2531 fi
  2532 CC=$ac_cv_prog_CC
  2533 if test -n "$CC"; then
  2534   { echo "$as_me:$LINENO: result: $CC" >&5
  2535 echo "${ECHO_T}$CC" >&6; }
  2536 else
  2537   { echo "$as_me:$LINENO: result: no" >&5
  2538 echo "${ECHO_T}no" >&6; }
  2539 fi
  2542     test -n "$CC" && break
  2543   done
  2544 fi
  2545 if test -z "$CC"; then
  2546   ac_ct_CC=$CC
  2547   for ac_prog in cl.exe
  2548 do
  2549   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2550 set dummy $ac_prog; ac_word=$2
  2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2554   echo $ECHO_N "(cached) $ECHO_C" >&6
  2555 else
  2556   if test -n "$ac_ct_CC"; then
  2557   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2558 else
  2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2560 for as_dir in $PATH
  2561 do
  2562   IFS=$as_save_IFS
  2563   test -z "$as_dir" && as_dir=.
  2564   for ac_exec_ext in '' $ac_executable_extensions; do
  2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2566     ac_cv_prog_ac_ct_CC="$ac_prog"
  2567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2568     break 2
  2569   fi
  2570 done
  2571 done
  2572 IFS=$as_save_IFS
  2574 fi
  2575 fi
  2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2577 if test -n "$ac_ct_CC"; then
  2578   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2579 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2580 else
  2581   { echo "$as_me:$LINENO: result: no" >&5
  2582 echo "${ECHO_T}no" >&6; }
  2583 fi
  2586   test -n "$ac_ct_CC" && break
  2587 done
  2589   if test "x$ac_ct_CC" = x; then
  2590     CC=""
  2591   else
  2592     case $cross_compiling:$ac_tool_warned in
  2593 yes:)
  2594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2595 whose name does not start with the host triplet.  If you think this
  2596 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2598 whose name does not start with the host triplet.  If you think this
  2599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2600 ac_tool_warned=yes ;;
  2601 esac
  2602     CC=$ac_ct_CC
  2603   fi
  2604 fi
  2606 fi
  2609 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2610 See \`config.log' for more details." >&5
  2611 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2612 See \`config.log' for more details." >&2;}
  2613    { (exit 1); exit 1; }; }
  2615 # Provide some information about the compiler.
  2616 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2617 ac_compiler=`set X $ac_compile; echo $2`
  2618 { (ac_try="$ac_compiler --version >&5"
  2619 case "(($ac_try" in
  2620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2621   *) ac_try_echo=$ac_try;;
  2622 esac
  2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2624   (eval "$ac_compiler --version >&5") 2>&5
  2625   ac_status=$?
  2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2627   (exit $ac_status); }
  2628 { (ac_try="$ac_compiler -v >&5"
  2629 case "(($ac_try" in
  2630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2631   *) ac_try_echo=$ac_try;;
  2632 esac
  2633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2634   (eval "$ac_compiler -v >&5") 2>&5
  2635   ac_status=$?
  2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2637   (exit $ac_status); }
  2638 { (ac_try="$ac_compiler -V >&5"
  2639 case "(($ac_try" in
  2640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2641   *) ac_try_echo=$ac_try;;
  2642 esac
  2643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2644   (eval "$ac_compiler -V >&5") 2>&5
  2645   ac_status=$?
  2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2647   (exit $ac_status); }
  2649 cat >conftest.$ac_ext <<_ACEOF
  2650 /* confdefs.h.  */
  2651 _ACEOF
  2652 cat confdefs.h >>conftest.$ac_ext
  2653 cat >>conftest.$ac_ext <<_ACEOF
  2654 /* end confdefs.h.  */
  2656 int
  2657 main ()
  2661   return 0;
  2663 _ACEOF
  2664 ac_clean_files_save=$ac_clean_files
  2665 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2666 # Try to create an executable without -o first, disregard a.out.
  2667 # It will help us diagnose broken compilers, and finding out an intuition
  2668 # of exeext.
  2669 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2670 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2671 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2673 # List of possible output files, starting from the most likely.
  2674 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2675 # only as a last resort.  b.out is created by i960 compilers.
  2676 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2678 # The IRIX 6 linker writes into existing files which may not be
  2679 # executable, retaining their permissions.  Remove them first so a
  2680 # subsequent execution test works.
  2681 ac_rmfiles=
  2682 for ac_file in $ac_files
  2683 do
  2684   case $ac_file in
  2685     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2686     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2687   esac
  2688 done
  2689 rm -f $ac_rmfiles
  2691 if { (ac_try="$ac_link_default"
  2692 case "(($ac_try" in
  2693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2694   *) ac_try_echo=$ac_try;;
  2695 esac
  2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2697   (eval "$ac_link_default") 2>&5
  2698   ac_status=$?
  2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2700   (exit $ac_status); }; then
  2701   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2702 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2703 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2704 # so that the user can short-circuit this test for compilers unknown to
  2705 # Autoconf.
  2706 for ac_file in $ac_files ''
  2707 do
  2708   test -f "$ac_file" || continue
  2709   case $ac_file in
  2710     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2711 	;;
  2712     [ab].out )
  2713 	# We found the default executable, but exeext='' is most
  2714 	# certainly right.
  2715 	break;;
  2716     *.* )
  2717         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2718 	then :; else
  2719 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2720 	fi
  2721 	# We set ac_cv_exeext here because the later test for it is not
  2722 	# safe: cross compilers may not add the suffix if given an `-o'
  2723 	# argument, so we may need to know it at that point already.
  2724 	# Even if this section looks crufty: it has the advantage of
  2725 	# actually working.
  2726 	break;;
  2727     * )
  2728 	break;;
  2729   esac
  2730 done
  2731 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2733 else
  2734   ac_file=''
  2735 fi
  2737 { echo "$as_me:$LINENO: result: $ac_file" >&5
  2738 echo "${ECHO_T}$ac_file" >&6; }
  2739 if test -z "$ac_file"; then
  2740   echo "$as_me: failed program was:" >&5
  2741 sed 's/^/| /' conftest.$ac_ext >&5
  2743 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2744 See \`config.log' for more details." >&5
  2745 echo "$as_me: error: C compiler cannot create executables
  2746 See \`config.log' for more details." >&2;}
  2747    { (exit 77); exit 77; }; }
  2748 fi
  2750 ac_exeext=$ac_cv_exeext
  2752 # Check that the compiler produces executables we can run.  If not, either
  2753 # the compiler is broken, or we cross compile.
  2754 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2755 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2756 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2757 # If not cross compiling, check that we can run a simple program.
  2758 if test "$cross_compiling" != yes; then
  2759   if { ac_try='./$ac_file'
  2760   { (case "(($ac_try" in
  2761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2762   *) ac_try_echo=$ac_try;;
  2763 esac
  2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2765   (eval "$ac_try") 2>&5
  2766   ac_status=$?
  2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2768   (exit $ac_status); }; }; then
  2769     cross_compiling=no
  2770   else
  2771     if test "$cross_compiling" = maybe; then
  2772 	cross_compiling=yes
  2773     else
  2774 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2775 If you meant to cross compile, use \`--host'.
  2776 See \`config.log' for more details." >&5
  2777 echo "$as_me: error: cannot run C compiled programs.
  2778 If you meant to cross compile, use \`--host'.
  2779 See \`config.log' for more details." >&2;}
  2780    { (exit 1); exit 1; }; }
  2781     fi
  2782   fi
  2783 fi
  2784 { echo "$as_me:$LINENO: result: yes" >&5
  2785 echo "${ECHO_T}yes" >&6; }
  2787 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2788 ac_clean_files=$ac_clean_files_save
  2789 # Check that the compiler produces executables we can run.  If not, either
  2790 # the compiler is broken, or we cross compile.
  2791 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2792 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2793 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2794 echo "${ECHO_T}$cross_compiling" >&6; }
  2796 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2797 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2798 if { (ac_try="$ac_link"
  2799 case "(($ac_try" in
  2800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2801   *) ac_try_echo=$ac_try;;
  2802 esac
  2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2804   (eval "$ac_link") 2>&5
  2805   ac_status=$?
  2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2807   (exit $ac_status); }; then
  2808   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2809 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2810 # work properly (i.e., refer to `conftest.exe'), while it won't with
  2811 # `rm'.
  2812 for ac_file in conftest.exe conftest conftest.*; do
  2813   test -f "$ac_file" || continue
  2814   case $ac_file in
  2815     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2816     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2817 	  break;;
  2818     * ) break;;
  2819   esac
  2820 done
  2821 else
  2822   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2823 See \`config.log' for more details." >&5
  2824 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2825 See \`config.log' for more details." >&2;}
  2826    { (exit 1); exit 1; }; }
  2827 fi
  2829 rm -f conftest$ac_cv_exeext
  2830 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2831 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2833 rm -f conftest.$ac_ext
  2834 EXEEXT=$ac_cv_exeext
  2835 ac_exeext=$EXEEXT
  2836 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2837 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2838 if test "${ac_cv_objext+set}" = set; then
  2839   echo $ECHO_N "(cached) $ECHO_C" >&6
  2840 else
  2841   cat >conftest.$ac_ext <<_ACEOF
  2842 /* confdefs.h.  */
  2843 _ACEOF
  2844 cat confdefs.h >>conftest.$ac_ext
  2845 cat >>conftest.$ac_ext <<_ACEOF
  2846 /* end confdefs.h.  */
  2848 int
  2849 main ()
  2853   return 0;
  2855 _ACEOF
  2856 rm -f conftest.o conftest.obj
  2857 if { (ac_try="$ac_compile"
  2858 case "(($ac_try" in
  2859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2860   *) ac_try_echo=$ac_try;;
  2861 esac
  2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2863   (eval "$ac_compile") 2>&5
  2864   ac_status=$?
  2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2866   (exit $ac_status); }; then
  2867   for ac_file in conftest.o conftest.obj conftest.*; do
  2868   test -f "$ac_file" || continue;
  2869   case $ac_file in
  2870     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2871     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2872        break;;
  2873   esac
  2874 done
  2875 else
  2876   echo "$as_me: failed program was:" >&5
  2877 sed 's/^/| /' conftest.$ac_ext >&5
  2879 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2880 See \`config.log' for more details." >&5
  2881 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2882 See \`config.log' for more details." >&2;}
  2883    { (exit 1); exit 1; }; }
  2884 fi
  2886 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2887 fi
  2888 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2889 echo "${ECHO_T}$ac_cv_objext" >&6; }
  2890 OBJEXT=$ac_cv_objext
  2891 ac_objext=$OBJEXT
  2892 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2893 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2894 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2895   echo $ECHO_N "(cached) $ECHO_C" >&6
  2896 else
  2897   cat >conftest.$ac_ext <<_ACEOF
  2898 /* confdefs.h.  */
  2899 _ACEOF
  2900 cat confdefs.h >>conftest.$ac_ext
  2901 cat >>conftest.$ac_ext <<_ACEOF
  2902 /* end confdefs.h.  */
  2904 int
  2905 main ()
  2907 #ifndef __GNUC__
  2908        choke me
  2909 #endif
  2912   return 0;
  2914 _ACEOF
  2915 rm -f conftest.$ac_objext
  2916 if { (ac_try="$ac_compile"
  2917 case "(($ac_try" in
  2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2919   *) ac_try_echo=$ac_try;;
  2920 esac
  2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2922   (eval "$ac_compile") 2>conftest.er1
  2923   ac_status=$?
  2924   grep -v '^ *+' conftest.er1 >conftest.err
  2925   rm -f conftest.er1
  2926   cat conftest.err >&5
  2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2928   (exit $ac_status); } && {
  2929 	 test -z "$ac_c_werror_flag" ||
  2930 	 test ! -s conftest.err
  2931        } && test -s conftest.$ac_objext; then
  2932   ac_compiler_gnu=yes
  2933 else
  2934   echo "$as_me: failed program was:" >&5
  2935 sed 's/^/| /' conftest.$ac_ext >&5
  2937 	ac_compiler_gnu=no
  2938 fi
  2940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2941 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2943 fi
  2944 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2945 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2946 GCC=`test $ac_compiler_gnu = yes && echo yes`
  2947 ac_test_CFLAGS=${CFLAGS+set}
  2948 ac_save_CFLAGS=$CFLAGS
  2949 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2950 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2951 if test "${ac_cv_prog_cc_g+set}" = set; then
  2952   echo $ECHO_N "(cached) $ECHO_C" >&6
  2953 else
  2954   ac_save_c_werror_flag=$ac_c_werror_flag
  2955    ac_c_werror_flag=yes
  2956    ac_cv_prog_cc_g=no
  2957    CFLAGS="-g"
  2958    cat >conftest.$ac_ext <<_ACEOF
  2959 /* confdefs.h.  */
  2960 _ACEOF
  2961 cat confdefs.h >>conftest.$ac_ext
  2962 cat >>conftest.$ac_ext <<_ACEOF
  2963 /* end confdefs.h.  */
  2965 int
  2966 main ()
  2970   return 0;
  2972 _ACEOF
  2973 rm -f conftest.$ac_objext
  2974 if { (ac_try="$ac_compile"
  2975 case "(($ac_try" in
  2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2977   *) ac_try_echo=$ac_try;;
  2978 esac
  2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2980   (eval "$ac_compile") 2>conftest.er1
  2981   ac_status=$?
  2982   grep -v '^ *+' conftest.er1 >conftest.err
  2983   rm -f conftest.er1
  2984   cat conftest.err >&5
  2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2986   (exit $ac_status); } && {
  2987 	 test -z "$ac_c_werror_flag" ||
  2988 	 test ! -s conftest.err
  2989        } && test -s conftest.$ac_objext; then
  2990   ac_cv_prog_cc_g=yes
  2991 else
  2992   echo "$as_me: failed program was:" >&5
  2993 sed 's/^/| /' conftest.$ac_ext >&5
  2995 	CFLAGS=""
  2996       cat >conftest.$ac_ext <<_ACEOF
  2997 /* confdefs.h.  */
  2998 _ACEOF
  2999 cat confdefs.h >>conftest.$ac_ext
  3000 cat >>conftest.$ac_ext <<_ACEOF
  3001 /* end confdefs.h.  */
  3003 int
  3004 main ()
  3008   return 0;
  3010 _ACEOF
  3011 rm -f conftest.$ac_objext
  3012 if { (ac_try="$ac_compile"
  3013 case "(($ac_try" in
  3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3015   *) ac_try_echo=$ac_try;;
  3016 esac
  3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3018   (eval "$ac_compile") 2>conftest.er1
  3019   ac_status=$?
  3020   grep -v '^ *+' conftest.er1 >conftest.err
  3021   rm -f conftest.er1
  3022   cat conftest.err >&5
  3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3024   (exit $ac_status); } && {
  3025 	 test -z "$ac_c_werror_flag" ||
  3026 	 test ! -s conftest.err
  3027        } && test -s conftest.$ac_objext; then
  3029 else
  3030   echo "$as_me: failed program was:" >&5
  3031 sed 's/^/| /' conftest.$ac_ext >&5
  3033 	ac_c_werror_flag=$ac_save_c_werror_flag
  3034 	 CFLAGS="-g"
  3035 	 cat >conftest.$ac_ext <<_ACEOF
  3036 /* confdefs.h.  */
  3037 _ACEOF
  3038 cat confdefs.h >>conftest.$ac_ext
  3039 cat >>conftest.$ac_ext <<_ACEOF
  3040 /* end confdefs.h.  */
  3042 int
  3043 main ()
  3047   return 0;
  3049 _ACEOF
  3050 rm -f conftest.$ac_objext
  3051 if { (ac_try="$ac_compile"
  3052 case "(($ac_try" in
  3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3054   *) ac_try_echo=$ac_try;;
  3055 esac
  3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3057   (eval "$ac_compile") 2>conftest.er1
  3058   ac_status=$?
  3059   grep -v '^ *+' conftest.er1 >conftest.err
  3060   rm -f conftest.er1
  3061   cat conftest.err >&5
  3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3063   (exit $ac_status); } && {
  3064 	 test -z "$ac_c_werror_flag" ||
  3065 	 test ! -s conftest.err
  3066        } && test -s conftest.$ac_objext; then
  3067   ac_cv_prog_cc_g=yes
  3068 else
  3069   echo "$as_me: failed program was:" >&5
  3070 sed 's/^/| /' conftest.$ac_ext >&5
  3073 fi
  3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3076 fi
  3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3079 fi
  3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3082    ac_c_werror_flag=$ac_save_c_werror_flag
  3083 fi
  3084 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3085 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3086 if test "$ac_test_CFLAGS" = set; then
  3087   CFLAGS=$ac_save_CFLAGS
  3088 elif test $ac_cv_prog_cc_g = yes; then
  3089   if test "$GCC" = yes; then
  3090     CFLAGS="-g -O2"
  3091   else
  3092     CFLAGS="-g"
  3093   fi
  3094 else
  3095   if test "$GCC" = yes; then
  3096     CFLAGS="-O2"
  3097   else
  3098     CFLAGS=
  3099   fi
  3100 fi
  3101 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3102 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3103 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3104   echo $ECHO_N "(cached) $ECHO_C" >&6
  3105 else
  3106   ac_cv_prog_cc_c89=no
  3107 ac_save_CC=$CC
  3108 cat >conftest.$ac_ext <<_ACEOF
  3109 /* confdefs.h.  */
  3110 _ACEOF
  3111 cat confdefs.h >>conftest.$ac_ext
  3112 cat >>conftest.$ac_ext <<_ACEOF
  3113 /* end confdefs.h.  */
  3114 #include <stdarg.h>
  3115 #include <stdio.h>
  3116 #include <sys/types.h>
  3117 #include <sys/stat.h>
  3118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3119 struct buf { int x; };
  3120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3121 static char *e (p, i)
  3122      char **p;
  3123      int i;
  3125   return p[i];
  3127 static char *f (char * (*g) (char **, int), char **p, ...)
  3129   char *s;
  3130   va_list v;
  3131   va_start (v,p);
  3132   s = g (p, va_arg (v,int));
  3133   va_end (v);
  3134   return s;
  3137 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3138    function prototypes and stuff, but not '\xHH' hex character constants.
  3139    These don't provoke an error unfortunately, instead are silently treated
  3140    as 'x'.  The following induces an error, until -std is added to get
  3141    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3142    array size at least.  It's necessary to write '\x00'==0 to get something
  3143    that's true only with -std.  */
  3144 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3146 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3147    inside strings and character constants.  */
  3148 #define FOO(x) 'x'
  3149 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3151 int test (int i, double x);
  3152 struct s1 {int (*f) (int a);};
  3153 struct s2 {int (*f) (double a);};
  3154 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3155 int argc;
  3156 char **argv;
  3157 int
  3158 main ()
  3160 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3162   return 0;
  3164 _ACEOF
  3165 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3166 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3167 do
  3168   CC="$ac_save_CC $ac_arg"
  3169   rm -f conftest.$ac_objext
  3170 if { (ac_try="$ac_compile"
  3171 case "(($ac_try" in
  3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3173   *) ac_try_echo=$ac_try;;
  3174 esac
  3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3176   (eval "$ac_compile") 2>conftest.er1
  3177   ac_status=$?
  3178   grep -v '^ *+' conftest.er1 >conftest.err
  3179   rm -f conftest.er1
  3180   cat conftest.err >&5
  3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3182   (exit $ac_status); } && {
  3183 	 test -z "$ac_c_werror_flag" ||
  3184 	 test ! -s conftest.err
  3185        } && test -s conftest.$ac_objext; then
  3186   ac_cv_prog_cc_c89=$ac_arg
  3187 else
  3188   echo "$as_me: failed program was:" >&5
  3189 sed 's/^/| /' conftest.$ac_ext >&5
  3192 fi
  3194 rm -f core conftest.err conftest.$ac_objext
  3195   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3196 done
  3197 rm -f conftest.$ac_ext
  3198 CC=$ac_save_CC
  3200 fi
  3201 # AC_CACHE_VAL
  3202 case "x$ac_cv_prog_cc_c89" in
  3203   x)
  3204     { echo "$as_me:$LINENO: result: none needed" >&5
  3205 echo "${ECHO_T}none needed" >&6; } ;;
  3206   xno)
  3207     { echo "$as_me:$LINENO: result: unsupported" >&5
  3208 echo "${ECHO_T}unsupported" >&6; } ;;
  3209   *)
  3210     CC="$CC $ac_cv_prog_cc_c89"
  3211     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3212 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3213 esac
  3216 ac_ext=c
  3217 ac_cpp='$CPP $CPPFLAGS'
  3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3222 depcc="$CC"   am_compiler_list=
  3224 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3225 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3226 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3227   echo $ECHO_N "(cached) $ECHO_C" >&6
  3228 else
  3229   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3230   # We make a subdir and do the tests there.  Otherwise we can end up
  3231   # making bogus files that we don't know about and never remove.  For
  3232   # instance it was reported that on HP-UX the gcc test will end up
  3233   # making a dummy file named `D' -- because `-MD' means `put the output
  3234   # in D'.
  3235   mkdir conftest.dir
  3236   # Copy depcomp to subdir because otherwise we won't find it if we're
  3237   # using a relative directory.
  3238   cp "$am_depcomp" conftest.dir
  3239   cd conftest.dir
  3240   # We will build objects and dependencies in a subdirectory because
  3241   # it helps to detect inapplicable dependency modes.  For instance
  3242   # both Tru64's cc and ICC support -MD to output dependencies as a
  3243   # side effect of compilation, but ICC will put the dependencies in
  3244   # the current directory while Tru64 will put them in the object
  3245   # directory.
  3246   mkdir sub
  3248   am_cv_CC_dependencies_compiler_type=none
  3249   if test "$am_compiler_list" = ""; then
  3250      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3251   fi
  3252   for depmode in $am_compiler_list; do
  3253     # Setup a source with many dependencies, because some compilers
  3254     # like to wrap large dependency lists on column 80 (with \), and
  3255     # we should not choose a depcomp mode which is confused by this.
  3257     # We need to recreate these files for each test, as the compiler may
  3258     # overwrite some of them when testing with obscure command lines.
  3259     # This happens at least with the AIX C compiler.
  3260     : > sub/conftest.c
  3261     for i in 1 2 3 4 5 6; do
  3262       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3263       : > sub/conftst$i.h
  3264     done
  3265     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3267     case $depmode in
  3268     nosideeffect)
  3269       # after this tag, mechanisms are not by side-effect, so they'll
  3270       # only be used when explicitly requested
  3271       if test "x$enable_dependency_tracking" = xyes; then
  3272 	continue
  3273       else
  3274 	break
  3275       fi
  3276       ;;
  3277     none) break ;;
  3278     esac
  3279     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3280     # mode.  It turns out that the SunPro C++ compiler does not properly
  3281     # handle `-M -o', and we need to detect this.
  3282     if depmode=$depmode \
  3283        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3284        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3285        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3286          >/dev/null 2>conftest.err &&
  3287        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3288        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3289        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3290       # icc doesn't choke on unknown options, it will just issue warnings
  3291       # (even with -Werror).  So we grep stderr for any message
  3292       # that says an option was ignored.
  3293       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  3294         am_cv_CC_dependencies_compiler_type=$depmode
  3295         break
  3296       fi
  3297     fi
  3298   done
  3300   cd ..
  3301   rm -rf conftest.dir
  3302 else
  3303   am_cv_CC_dependencies_compiler_type=none
  3304 fi
  3306 fi
  3307 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3308 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3309 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3313 if
  3314   test "x$enable_dependency_tracking" != xno \
  3315   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3316   am__fastdepCC_TRUE=
  3317   am__fastdepCC_FALSE='#'
  3318 else
  3319   am__fastdepCC_TRUE='#'
  3320   am__fastdepCC_FALSE=
  3321 fi
  3325 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3326 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  3327 if test "${ac_cv_search_strerror+set}" = set; then
  3328   echo $ECHO_N "(cached) $ECHO_C" >&6
  3329 else
  3330   ac_func_search_save_LIBS=$LIBS
  3331 cat >conftest.$ac_ext <<_ACEOF
  3332 /* confdefs.h.  */
  3333 _ACEOF
  3334 cat confdefs.h >>conftest.$ac_ext
  3335 cat >>conftest.$ac_ext <<_ACEOF
  3336 /* end confdefs.h.  */
  3338 /* Override any GCC internal prototype to avoid an error.
  3339    Use char because int might match the return type of a GCC
  3340    builtin and then its argument prototype would still apply.  */
  3341 #ifdef __cplusplus
  3342 extern "C"
  3343 #endif
  3344 char strerror ();
  3345 int
  3346 main ()
  3348 return strerror ();
  3350   return 0;
  3352 _ACEOF
  3353 for ac_lib in '' cposix; do
  3354   if test -z "$ac_lib"; then
  3355     ac_res="none required"
  3356   else
  3357     ac_res=-l$ac_lib
  3358     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  3359   fi
  3360   rm -f conftest.$ac_objext conftest$ac_exeext
  3361 if { (ac_try="$ac_link"
  3362 case "(($ac_try" in
  3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3364   *) ac_try_echo=$ac_try;;
  3365 esac
  3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3367   (eval "$ac_link") 2>conftest.er1
  3368   ac_status=$?
  3369   grep -v '^ *+' conftest.er1 >conftest.err
  3370   rm -f conftest.er1
  3371   cat conftest.err >&5
  3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3373   (exit $ac_status); } && {
  3374 	 test -z "$ac_c_werror_flag" ||
  3375 	 test ! -s conftest.err
  3376        } && test -s conftest$ac_exeext &&
  3377        $as_test_x conftest$ac_exeext; then
  3378   ac_cv_search_strerror=$ac_res
  3379 else
  3380   echo "$as_me: failed program was:" >&5
  3381 sed 's/^/| /' conftest.$ac_ext >&5
  3384 fi
  3386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3387       conftest$ac_exeext
  3388   if test "${ac_cv_search_strerror+set}" = set; then
  3389   break
  3390 fi
  3391 done
  3392 if test "${ac_cv_search_strerror+set}" = set; then
  3394 else
  3395   ac_cv_search_strerror=no
  3396 fi
  3397 rm conftest.$ac_ext
  3398 LIBS=$ac_func_search_save_LIBS
  3399 fi
  3400 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3401 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  3402 ac_res=$ac_cv_search_strerror
  3403 if test "$ac_res" != no; then
  3404   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3406 fi
  3408 ac_ext=c
  3409 ac_cpp='$CPP $CPPFLAGS'
  3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3413 if test -n "$ac_tool_prefix"; then
  3414   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3415 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3418 if test "${ac_cv_prog_CC+set}" = set; then
  3419   echo $ECHO_N "(cached) $ECHO_C" >&6
  3420 else
  3421   if test -n "$CC"; then
  3422   ac_cv_prog_CC="$CC" # Let the user override the test.
  3423 else
  3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3425 for as_dir in $PATH
  3426 do
  3427   IFS=$as_save_IFS
  3428   test -z "$as_dir" && as_dir=.
  3429   for ac_exec_ext in '' $ac_executable_extensions; do
  3430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3431     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3433     break 2
  3434   fi
  3435 done
  3436 done
  3437 IFS=$as_save_IFS
  3439 fi
  3440 fi
  3441 CC=$ac_cv_prog_CC
  3442 if test -n "$CC"; then
  3443   { echo "$as_me:$LINENO: result: $CC" >&5
  3444 echo "${ECHO_T}$CC" >&6; }
  3445 else
  3446   { echo "$as_me:$LINENO: result: no" >&5
  3447 echo "${ECHO_T}no" >&6; }
  3448 fi
  3451 fi
  3452 if test -z "$ac_cv_prog_CC"; then
  3453   ac_ct_CC=$CC
  3454   # Extract the first word of "gcc", so it can be a program name with args.
  3455 set dummy gcc; ac_word=$2
  3456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3459   echo $ECHO_N "(cached) $ECHO_C" >&6
  3460 else
  3461   if test -n "$ac_ct_CC"; then
  3462   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3463 else
  3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3465 for as_dir in $PATH
  3466 do
  3467   IFS=$as_save_IFS
  3468   test -z "$as_dir" && as_dir=.
  3469   for ac_exec_ext in '' $ac_executable_extensions; do
  3470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3471     ac_cv_prog_ac_ct_CC="gcc"
  3472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3473     break 2
  3474   fi
  3475 done
  3476 done
  3477 IFS=$as_save_IFS
  3479 fi
  3480 fi
  3481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3482 if test -n "$ac_ct_CC"; then
  3483   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3484 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3485 else
  3486   { echo "$as_me:$LINENO: result: no" >&5
  3487 echo "${ECHO_T}no" >&6; }
  3488 fi
  3490   if test "x$ac_ct_CC" = x; then
  3491     CC=""
  3492   else
  3493     case $cross_compiling:$ac_tool_warned in
  3494 yes:)
  3495 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3496 whose name does not start with the host triplet.  If you think this
  3497 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3498 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3499 whose name does not start with the host triplet.  If you think this
  3500 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3501 ac_tool_warned=yes ;;
  3502 esac
  3503     CC=$ac_ct_CC
  3504   fi
  3505 else
  3506   CC="$ac_cv_prog_CC"
  3507 fi
  3509 if test -z "$CC"; then
  3510           if test -n "$ac_tool_prefix"; then
  3511     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3512 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3515 if test "${ac_cv_prog_CC+set}" = set; then
  3516   echo $ECHO_N "(cached) $ECHO_C" >&6
  3517 else
  3518   if test -n "$CC"; then
  3519   ac_cv_prog_CC="$CC" # Let the user override the test.
  3520 else
  3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3522 for as_dir in $PATH
  3523 do
  3524   IFS=$as_save_IFS
  3525   test -z "$as_dir" && as_dir=.
  3526   for ac_exec_ext in '' $ac_executable_extensions; do
  3527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3528     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3530     break 2
  3531   fi
  3532 done
  3533 done
  3534 IFS=$as_save_IFS
  3536 fi
  3537 fi
  3538 CC=$ac_cv_prog_CC
  3539 if test -n "$CC"; then
  3540   { echo "$as_me:$LINENO: result: $CC" >&5
  3541 echo "${ECHO_T}$CC" >&6; }
  3542 else
  3543   { echo "$as_me:$LINENO: result: no" >&5
  3544 echo "${ECHO_T}no" >&6; }
  3545 fi
  3548   fi
  3549 fi
  3550 if test -z "$CC"; then
  3551   # Extract the first word of "cc", so it can be a program name with args.
  3552 set dummy cc; ac_word=$2
  3553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3555 if test "${ac_cv_prog_CC+set}" = set; then
  3556   echo $ECHO_N "(cached) $ECHO_C" >&6
  3557 else
  3558   if test -n "$CC"; then
  3559   ac_cv_prog_CC="$CC" # Let the user override the test.
  3560 else
  3561   ac_prog_rejected=no
  3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3563 for as_dir in $PATH
  3564 do
  3565   IFS=$as_save_IFS
  3566   test -z "$as_dir" && as_dir=.
  3567   for ac_exec_ext in '' $ac_executable_extensions; do
  3568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3569     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3570        ac_prog_rejected=yes
  3571        continue
  3572      fi
  3573     ac_cv_prog_CC="cc"
  3574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3575     break 2
  3576   fi
  3577 done
  3578 done
  3579 IFS=$as_save_IFS
  3581 if test $ac_prog_rejected = yes; then
  3582   # We found a bogon in the path, so make sure we never use it.
  3583   set dummy $ac_cv_prog_CC
  3584   shift
  3585   if test $# != 0; then
  3586     # We chose a different compiler from the bogus one.
  3587     # However, it has the same basename, so the bogon will be chosen
  3588     # first if we set CC to just the basename; use the full file name.
  3589     shift
  3590     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3591   fi
  3592 fi
  3593 fi
  3594 fi
  3595 CC=$ac_cv_prog_CC
  3596 if test -n "$CC"; then
  3597   { echo "$as_me:$LINENO: result: $CC" >&5
  3598 echo "${ECHO_T}$CC" >&6; }
  3599 else
  3600   { echo "$as_me:$LINENO: result: no" >&5
  3601 echo "${ECHO_T}no" >&6; }
  3602 fi
  3605 fi
  3606 if test -z "$CC"; then
  3607   if test -n "$ac_tool_prefix"; then
  3608   for ac_prog in cl.exe
  3609   do
  3610     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3614 if test "${ac_cv_prog_CC+set}" = set; then
  3615   echo $ECHO_N "(cached) $ECHO_C" >&6
  3616 else
  3617   if test -n "$CC"; then
  3618   ac_cv_prog_CC="$CC" # Let the user override the test.
  3619 else
  3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3621 for as_dir in $PATH
  3622 do
  3623   IFS=$as_save_IFS
  3624   test -z "$as_dir" && as_dir=.
  3625   for ac_exec_ext in '' $ac_executable_extensions; do
  3626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3627     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3629     break 2
  3630   fi
  3631 done
  3632 done
  3633 IFS=$as_save_IFS
  3635 fi
  3636 fi
  3637 CC=$ac_cv_prog_CC
  3638 if test -n "$CC"; then
  3639   { echo "$as_me:$LINENO: result: $CC" >&5
  3640 echo "${ECHO_T}$CC" >&6; }
  3641 else
  3642   { echo "$as_me:$LINENO: result: no" >&5
  3643 echo "${ECHO_T}no" >&6; }
  3644 fi
  3647     test -n "$CC" && break
  3648   done
  3649 fi
  3650 if test -z "$CC"; then
  3651   ac_ct_CC=$CC
  3652   for ac_prog in cl.exe
  3653 do
  3654   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3655 set dummy $ac_prog; ac_word=$2
  3656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3659   echo $ECHO_N "(cached) $ECHO_C" >&6
  3660 else
  3661   if test -n "$ac_ct_CC"; then
  3662   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3663 else
  3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3665 for as_dir in $PATH
  3666 do
  3667   IFS=$as_save_IFS
  3668   test -z "$as_dir" && as_dir=.
  3669   for ac_exec_ext in '' $ac_executable_extensions; do
  3670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3671     ac_cv_prog_ac_ct_CC="$ac_prog"
  3672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3673     break 2
  3674   fi
  3675 done
  3676 done
  3677 IFS=$as_save_IFS
  3679 fi
  3680 fi
  3681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3682 if test -n "$ac_ct_CC"; then
  3683   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3684 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3685 else
  3686   { echo "$as_me:$LINENO: result: no" >&5
  3687 echo "${ECHO_T}no" >&6; }
  3688 fi
  3691   test -n "$ac_ct_CC" && break
  3692 done
  3694   if test "x$ac_ct_CC" = x; then
  3695     CC=""
  3696   else
  3697     case $cross_compiling:$ac_tool_warned in
  3698 yes:)
  3699 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3700 whose name does not start with the host triplet.  If you think this
  3701 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3702 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3703 whose name does not start with the host triplet.  If you think this
  3704 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3705 ac_tool_warned=yes ;;
  3706 esac
  3707     CC=$ac_ct_CC
  3708   fi
  3709 fi
  3711 fi
  3714 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3715 See \`config.log' for more details." >&5
  3716 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3717 See \`config.log' for more details." >&2;}
  3718    { (exit 1); exit 1; }; }
  3720 # Provide some information about the compiler.
  3721 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3722 ac_compiler=`set X $ac_compile; echo $2`
  3723 { (ac_try="$ac_compiler --version >&5"
  3724 case "(($ac_try" in
  3725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3726   *) ac_try_echo=$ac_try;;
  3727 esac
  3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3729   (eval "$ac_compiler --version >&5") 2>&5
  3730   ac_status=$?
  3731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3732   (exit $ac_status); }
  3733 { (ac_try="$ac_compiler -v >&5"
  3734 case "(($ac_try" in
  3735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3736   *) ac_try_echo=$ac_try;;
  3737 esac
  3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3739   (eval "$ac_compiler -v >&5") 2>&5
  3740   ac_status=$?
  3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3742   (exit $ac_status); }
  3743 { (ac_try="$ac_compiler -V >&5"
  3744 case "(($ac_try" in
  3745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3746   *) ac_try_echo=$ac_try;;
  3747 esac
  3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3749   (eval "$ac_compiler -V >&5") 2>&5
  3750   ac_status=$?
  3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3752   (exit $ac_status); }
  3754 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3755 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3756 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3757   echo $ECHO_N "(cached) $ECHO_C" >&6
  3758 else
  3759   cat >conftest.$ac_ext <<_ACEOF
  3760 /* confdefs.h.  */
  3761 _ACEOF
  3762 cat confdefs.h >>conftest.$ac_ext
  3763 cat >>conftest.$ac_ext <<_ACEOF
  3764 /* end confdefs.h.  */
  3766 int
  3767 main ()
  3769 #ifndef __GNUC__
  3770        choke me
  3771 #endif
  3774   return 0;
  3776 _ACEOF
  3777 rm -f conftest.$ac_objext
  3778 if { (ac_try="$ac_compile"
  3779 case "(($ac_try" in
  3780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3781   *) ac_try_echo=$ac_try;;
  3782 esac
  3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3784   (eval "$ac_compile") 2>conftest.er1
  3785   ac_status=$?
  3786   grep -v '^ *+' conftest.er1 >conftest.err
  3787   rm -f conftest.er1
  3788   cat conftest.err >&5
  3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3790   (exit $ac_status); } && {
  3791 	 test -z "$ac_c_werror_flag" ||
  3792 	 test ! -s conftest.err
  3793        } && test -s conftest.$ac_objext; then
  3794   ac_compiler_gnu=yes
  3795 else
  3796   echo "$as_me: failed program was:" >&5
  3797 sed 's/^/| /' conftest.$ac_ext >&5
  3799 	ac_compiler_gnu=no
  3800 fi
  3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3803 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3805 fi
  3806 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3807 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3808 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3809 ac_test_CFLAGS=${CFLAGS+set}
  3810 ac_save_CFLAGS=$CFLAGS
  3811 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3812 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3813 if test "${ac_cv_prog_cc_g+set}" = set; then
  3814   echo $ECHO_N "(cached) $ECHO_C" >&6
  3815 else
  3816   ac_save_c_werror_flag=$ac_c_werror_flag
  3817    ac_c_werror_flag=yes
  3818    ac_cv_prog_cc_g=no
  3819    CFLAGS="-g"
  3820    cat >conftest.$ac_ext <<_ACEOF
  3821 /* confdefs.h.  */
  3822 _ACEOF
  3823 cat confdefs.h >>conftest.$ac_ext
  3824 cat >>conftest.$ac_ext <<_ACEOF
  3825 /* end confdefs.h.  */
  3827 int
  3828 main ()
  3832   return 0;
  3834 _ACEOF
  3835 rm -f conftest.$ac_objext
  3836 if { (ac_try="$ac_compile"
  3837 case "(($ac_try" in
  3838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3839   *) ac_try_echo=$ac_try;;
  3840 esac
  3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3842   (eval "$ac_compile") 2>conftest.er1
  3843   ac_status=$?
  3844   grep -v '^ *+' conftest.er1 >conftest.err
  3845   rm -f conftest.er1
  3846   cat conftest.err >&5
  3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3848   (exit $ac_status); } && {
  3849 	 test -z "$ac_c_werror_flag" ||
  3850 	 test ! -s conftest.err
  3851        } && test -s conftest.$ac_objext; then
  3852   ac_cv_prog_cc_g=yes
  3853 else
  3854   echo "$as_me: failed program was:" >&5
  3855 sed 's/^/| /' conftest.$ac_ext >&5
  3857 	CFLAGS=""
  3858       cat >conftest.$ac_ext <<_ACEOF
  3859 /* confdefs.h.  */
  3860 _ACEOF
  3861 cat confdefs.h >>conftest.$ac_ext
  3862 cat >>conftest.$ac_ext <<_ACEOF
  3863 /* end confdefs.h.  */
  3865 int
  3866 main ()
  3870   return 0;
  3872 _ACEOF
  3873 rm -f conftest.$ac_objext
  3874 if { (ac_try="$ac_compile"
  3875 case "(($ac_try" in
  3876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3877   *) ac_try_echo=$ac_try;;
  3878 esac
  3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3880   (eval "$ac_compile") 2>conftest.er1
  3881   ac_status=$?
  3882   grep -v '^ *+' conftest.er1 >conftest.err
  3883   rm -f conftest.er1
  3884   cat conftest.err >&5
  3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3886   (exit $ac_status); } && {
  3887 	 test -z "$ac_c_werror_flag" ||
  3888 	 test ! -s conftest.err
  3889        } && test -s conftest.$ac_objext; then
  3891 else
  3892   echo "$as_me: failed program was:" >&5
  3893 sed 's/^/| /' conftest.$ac_ext >&5
  3895 	ac_c_werror_flag=$ac_save_c_werror_flag
  3896 	 CFLAGS="-g"
  3897 	 cat >conftest.$ac_ext <<_ACEOF
  3898 /* confdefs.h.  */
  3899 _ACEOF
  3900 cat confdefs.h >>conftest.$ac_ext
  3901 cat >>conftest.$ac_ext <<_ACEOF
  3902 /* end confdefs.h.  */
  3904 int
  3905 main ()
  3909   return 0;
  3911 _ACEOF
  3912 rm -f conftest.$ac_objext
  3913 if { (ac_try="$ac_compile"
  3914 case "(($ac_try" in
  3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3916   *) ac_try_echo=$ac_try;;
  3917 esac
  3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3919   (eval "$ac_compile") 2>conftest.er1
  3920   ac_status=$?
  3921   grep -v '^ *+' conftest.er1 >conftest.err
  3922   rm -f conftest.er1
  3923   cat conftest.err >&5
  3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3925   (exit $ac_status); } && {
  3926 	 test -z "$ac_c_werror_flag" ||
  3927 	 test ! -s conftest.err
  3928        } && test -s conftest.$ac_objext; then
  3929   ac_cv_prog_cc_g=yes
  3930 else
  3931   echo "$as_me: failed program was:" >&5
  3932 sed 's/^/| /' conftest.$ac_ext >&5
  3935 fi
  3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3938 fi
  3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3941 fi
  3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3944    ac_c_werror_flag=$ac_save_c_werror_flag
  3945 fi
  3946 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3947 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3948 if test "$ac_test_CFLAGS" = set; then
  3949   CFLAGS=$ac_save_CFLAGS
  3950 elif test $ac_cv_prog_cc_g = yes; then
  3951   if test "$GCC" = yes; then
  3952     CFLAGS="-g -O2"
  3953   else
  3954     CFLAGS="-g"
  3955   fi
  3956 else
  3957   if test "$GCC" = yes; then
  3958     CFLAGS="-O2"
  3959   else
  3960     CFLAGS=
  3961   fi
  3962 fi
  3963 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3964 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3965 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3966   echo $ECHO_N "(cached) $ECHO_C" >&6
  3967 else
  3968   ac_cv_prog_cc_c89=no
  3969 ac_save_CC=$CC
  3970 cat >conftest.$ac_ext <<_ACEOF
  3971 /* confdefs.h.  */
  3972 _ACEOF
  3973 cat confdefs.h >>conftest.$ac_ext
  3974 cat >>conftest.$ac_ext <<_ACEOF
  3975 /* end confdefs.h.  */
  3976 #include <stdarg.h>
  3977 #include <stdio.h>
  3978 #include <sys/types.h>
  3979 #include <sys/stat.h>
  3980 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3981 struct buf { int x; };
  3982 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3983 static char *e (p, i)
  3984      char **p;
  3985      int i;
  3987   return p[i];
  3989 static char *f (char * (*g) (char **, int), char **p, ...)
  3991   char *s;
  3992   va_list v;
  3993   va_start (v,p);
  3994   s = g (p, va_arg (v,int));
  3995   va_end (v);
  3996   return s;
  3999 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4000    function prototypes and stuff, but not '\xHH' hex character constants.
  4001    These don't provoke an error unfortunately, instead are silently treated
  4002    as 'x'.  The following induces an error, until -std is added to get
  4003    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4004    array size at least.  It's necessary to write '\x00'==0 to get something
  4005    that's true only with -std.  */
  4006 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4008 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4009    inside strings and character constants.  */
  4010 #define FOO(x) 'x'
  4011 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4013 int test (int i, double x);
  4014 struct s1 {int (*f) (int a);};
  4015 struct s2 {int (*f) (double a);};
  4016 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4017 int argc;
  4018 char **argv;
  4019 int
  4020 main ()
  4022 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4024   return 0;
  4026 _ACEOF
  4027 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4028 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4029 do
  4030   CC="$ac_save_CC $ac_arg"
  4031   rm -f conftest.$ac_objext
  4032 if { (ac_try="$ac_compile"
  4033 case "(($ac_try" in
  4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4035   *) ac_try_echo=$ac_try;;
  4036 esac
  4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4038   (eval "$ac_compile") 2>conftest.er1
  4039   ac_status=$?
  4040   grep -v '^ *+' conftest.er1 >conftest.err
  4041   rm -f conftest.er1
  4042   cat conftest.err >&5
  4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4044   (exit $ac_status); } && {
  4045 	 test -z "$ac_c_werror_flag" ||
  4046 	 test ! -s conftest.err
  4047        } && test -s conftest.$ac_objext; then
  4048   ac_cv_prog_cc_c89=$ac_arg
  4049 else
  4050   echo "$as_me: failed program was:" >&5
  4051 sed 's/^/| /' conftest.$ac_ext >&5
  4054 fi
  4056 rm -f core conftest.err conftest.$ac_objext
  4057   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4058 done
  4059 rm -f conftest.$ac_ext
  4060 CC=$ac_save_CC
  4062 fi
  4063 # AC_CACHE_VAL
  4064 case "x$ac_cv_prog_cc_c89" in
  4065   x)
  4066     { echo "$as_me:$LINENO: result: none needed" >&5
  4067 echo "${ECHO_T}none needed" >&6; } ;;
  4068   xno)
  4069     { echo "$as_me:$LINENO: result: unsupported" >&5
  4070 echo "${ECHO_T}unsupported" >&6; } ;;
  4071   *)
  4072     CC="$CC $ac_cv_prog_cc_c89"
  4073     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4074 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4075 esac
  4078 ac_ext=c
  4079 ac_cpp='$CPP $CPPFLAGS'
  4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4084 depcc="$CC"   am_compiler_list=
  4086 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4087 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4088 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4089   echo $ECHO_N "(cached) $ECHO_C" >&6
  4090 else
  4091   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4092   # We make a subdir and do the tests there.  Otherwise we can end up
  4093   # making bogus files that we don't know about and never remove.  For
  4094   # instance it was reported that on HP-UX the gcc test will end up
  4095   # making a dummy file named `D' -- because `-MD' means `put the output
  4096   # in D'.
  4097   mkdir conftest.dir
  4098   # Copy depcomp to subdir because otherwise we won't find it if we're
  4099   # using a relative directory.
  4100   cp "$am_depcomp" conftest.dir
  4101   cd conftest.dir
  4102   # We will build objects and dependencies in a subdirectory because
  4103   # it helps to detect inapplicable dependency modes.  For instance
  4104   # both Tru64's cc and ICC support -MD to output dependencies as a
  4105   # side effect of compilation, but ICC will put the dependencies in
  4106   # the current directory while Tru64 will put them in the object
  4107   # directory.
  4108   mkdir sub
  4110   am_cv_CC_dependencies_compiler_type=none
  4111   if test "$am_compiler_list" = ""; then
  4112      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4113   fi
  4114   for depmode in $am_compiler_list; do
  4115     # Setup a source with many dependencies, because some compilers
  4116     # like to wrap large dependency lists on column 80 (with \), and
  4117     # we should not choose a depcomp mode which is confused by this.
  4119     # We need to recreate these files for each test, as the compiler may
  4120     # overwrite some of them when testing with obscure command lines.
  4121     # This happens at least with the AIX C compiler.
  4122     : > sub/conftest.c
  4123     for i in 1 2 3 4 5 6; do
  4124       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4125       : > sub/conftst$i.h
  4126     done
  4127     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4129     case $depmode in
  4130     nosideeffect)
  4131       # after this tag, mechanisms are not by side-effect, so they'll
  4132       # only be used when explicitly requested
  4133       if test "x$enable_dependency_tracking" = xyes; then
  4134 	continue
  4135       else
  4136 	break
  4137       fi
  4138       ;;
  4139     none) break ;;
  4140     esac
  4141     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4142     # mode.  It turns out that the SunPro C++ compiler does not properly
  4143     # handle `-M -o', and we need to detect this.
  4144     if depmode=$depmode \
  4145        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4146        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4147        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4148          >/dev/null 2>conftest.err &&
  4149        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4150        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4151        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4152       # icc doesn't choke on unknown options, it will just issue warnings
  4153       # (even with -Werror).  So we grep stderr for any message
  4154       # that says an option was ignored.
  4155       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  4156         am_cv_CC_dependencies_compiler_type=$depmode
  4157         break
  4158       fi
  4159     fi
  4160   done
  4162   cd ..
  4163   rm -rf conftest.dir
  4164 else
  4165   am_cv_CC_dependencies_compiler_type=none
  4166 fi
  4168 fi
  4169 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4170 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4171 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4175 if
  4176   test "x$enable_dependency_tracking" != xno \
  4177   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4178   am__fastdepCC_TRUE=
  4179   am__fastdepCC_FALSE='#'
  4180 else
  4181   am__fastdepCC_TRUE='#'
  4182   am__fastdepCC_FALSE=
  4183 fi
  4189 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  4190 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
  4191 if test "${am_cv_prog_cc_stdc+set}" = set; then
  4192   echo $ECHO_N "(cached) $ECHO_C" >&6
  4193 else
  4194   am_cv_prog_cc_stdc=no
  4195 ac_save_CC="$CC"
  4196 # Don't try gcc -ansi; that turns off useful extensions and
  4197 # breaks some systems' header files.
  4198 # AIX			-qlanglvl=ansi
  4199 # Ultrix and OSF/1	-std1
  4200 # HP-UX 10.20 and later	-Ae
  4201 # HP-UX older versions	-Aa -D_HPUX_SOURCE
  4202 # SVR4			-Xc -D__EXTENSIONS__
  4203 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4204 do
  4205   CC="$ac_save_CC $ac_arg"
  4206   cat >conftest.$ac_ext <<_ACEOF
  4207 /* confdefs.h.  */
  4208 _ACEOF
  4209 cat confdefs.h >>conftest.$ac_ext
  4210 cat >>conftest.$ac_ext <<_ACEOF
  4211 /* end confdefs.h.  */
  4212 #include <stdarg.h>
  4213 #include <stdio.h>
  4214 #include <sys/types.h>
  4215 #include <sys/stat.h>
  4216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4217 struct buf { int x; };
  4218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4219 static char *e (p, i)
  4220      char **p;
  4221      int i;
  4223   return p[i];
  4225 static char *f (char * (*g) (char **, int), char **p, ...)
  4227   char *s;
  4228   va_list v;
  4229   va_start (v,p);
  4230   s = g (p, va_arg (v,int));
  4231   va_end (v);
  4232   return s;
  4234 int test (int i, double x);
  4235 struct s1 {int (*f) (int a);};
  4236 struct s2 {int (*f) (double a);};
  4237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4238 int argc;
  4239 char **argv;
  4241 int
  4242 main ()
  4245 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4248   return 0;
  4250 _ACEOF
  4251 rm -f conftest.$ac_objext
  4252 if { (ac_try="$ac_compile"
  4253 case "(($ac_try" in
  4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4255   *) ac_try_echo=$ac_try;;
  4256 esac
  4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4258   (eval "$ac_compile") 2>conftest.er1
  4259   ac_status=$?
  4260   grep -v '^ *+' conftest.er1 >conftest.err
  4261   rm -f conftest.er1
  4262   cat conftest.err >&5
  4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4264   (exit $ac_status); } && {
  4265 	 test -z "$ac_c_werror_flag" ||
  4266 	 test ! -s conftest.err
  4267        } && test -s conftest.$ac_objext; then
  4268   am_cv_prog_cc_stdc="$ac_arg"; break
  4269 else
  4270   echo "$as_me: failed program was:" >&5
  4271 sed 's/^/| /' conftest.$ac_ext >&5
  4274 fi
  4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4277 done
  4278 CC="$ac_save_CC"
  4280 fi
  4282 if test -z "$am_cv_prog_cc_stdc"; then
  4283   { echo "$as_me:$LINENO: result: none needed" >&5
  4284 echo "${ECHO_T}none needed" >&6; }
  4285 else
  4286   { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  4287 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
  4288 fi
  4289 case "x$am_cv_prog_cc_stdc" in
  4290   x|xno) ;;
  4291   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  4292 esac
  4294 ac_ext=c
  4295 ac_cpp='$CPP $CPPFLAGS'
  4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4299 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4300 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4301 # On Suns, sometimes $CPP names a directory.
  4302 if test -n "$CPP" && test -d "$CPP"; then
  4303   CPP=
  4304 fi
  4305 if test -z "$CPP"; then
  4306   if test "${ac_cv_prog_CPP+set}" = set; then
  4307   echo $ECHO_N "(cached) $ECHO_C" >&6
  4308 else
  4309       # Double quotes because CPP needs to be expanded
  4310     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4311     do
  4312       ac_preproc_ok=false
  4313 for ac_c_preproc_warn_flag in '' yes
  4314 do
  4315   # Use a header file that comes with gcc, so configuring glibc
  4316   # with a fresh cross-compiler works.
  4317   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4318   # <limits.h> exists even on freestanding compilers.
  4319   # On the NeXT, cc -E runs the code through the compiler's parser,
  4320   # not just through cpp. "Syntax error" is here to catch this case.
  4321   cat >conftest.$ac_ext <<_ACEOF
  4322 /* confdefs.h.  */
  4323 _ACEOF
  4324 cat confdefs.h >>conftest.$ac_ext
  4325 cat >>conftest.$ac_ext <<_ACEOF
  4326 /* end confdefs.h.  */
  4327 #ifdef __STDC__
  4328 # include <limits.h>
  4329 #else
  4330 # include <assert.h>
  4331 #endif
  4332 		     Syntax error
  4333 _ACEOF
  4334 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4335 case "(($ac_try" in
  4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4337   *) ac_try_echo=$ac_try;;
  4338 esac
  4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4341   ac_status=$?
  4342   grep -v '^ *+' conftest.er1 >conftest.err
  4343   rm -f conftest.er1
  4344   cat conftest.err >&5
  4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4346   (exit $ac_status); } >/dev/null && {
  4347 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4348 	 test ! -s conftest.err
  4349        }; then
  4351 else
  4352   echo "$as_me: failed program was:" >&5
  4353 sed 's/^/| /' conftest.$ac_ext >&5
  4355   # Broken: fails on valid input.
  4356 continue
  4357 fi
  4359 rm -f conftest.err conftest.$ac_ext
  4361   # OK, works on sane cases.  Now check whether nonexistent headers
  4362   # can be detected and how.
  4363   cat >conftest.$ac_ext <<_ACEOF
  4364 /* confdefs.h.  */
  4365 _ACEOF
  4366 cat confdefs.h >>conftest.$ac_ext
  4367 cat >>conftest.$ac_ext <<_ACEOF
  4368 /* end confdefs.h.  */
  4369 #include <ac_nonexistent.h>
  4370 _ACEOF
  4371 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4372 case "(($ac_try" in
  4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4374   *) ac_try_echo=$ac_try;;
  4375 esac
  4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4377   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4378   ac_status=$?
  4379   grep -v '^ *+' conftest.er1 >conftest.err
  4380   rm -f conftest.er1
  4381   cat conftest.err >&5
  4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4383   (exit $ac_status); } >/dev/null && {
  4384 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4385 	 test ! -s conftest.err
  4386        }; then
  4387   # Broken: success on invalid input.
  4388 continue
  4389 else
  4390   echo "$as_me: failed program was:" >&5
  4391 sed 's/^/| /' conftest.$ac_ext >&5
  4393   # Passes both tests.
  4394 ac_preproc_ok=:
  4395 break
  4396 fi
  4398 rm -f conftest.err conftest.$ac_ext
  4400 done
  4401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4402 rm -f conftest.err conftest.$ac_ext
  4403 if $ac_preproc_ok; then
  4404   break
  4405 fi
  4407     done
  4408     ac_cv_prog_CPP=$CPP
  4410 fi
  4411   CPP=$ac_cv_prog_CPP
  4412 else
  4413   ac_cv_prog_CPP=$CPP
  4414 fi
  4415 { echo "$as_me:$LINENO: result: $CPP" >&5
  4416 echo "${ECHO_T}$CPP" >&6; }
  4417 ac_preproc_ok=false
  4418 for ac_c_preproc_warn_flag in '' yes
  4419 do
  4420   # Use a header file that comes with gcc, so configuring glibc
  4421   # with a fresh cross-compiler works.
  4422   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4423   # <limits.h> exists even on freestanding compilers.
  4424   # On the NeXT, cc -E runs the code through the compiler's parser,
  4425   # not just through cpp. "Syntax error" is here to catch this case.
  4426   cat >conftest.$ac_ext <<_ACEOF
  4427 /* confdefs.h.  */
  4428 _ACEOF
  4429 cat confdefs.h >>conftest.$ac_ext
  4430 cat >>conftest.$ac_ext <<_ACEOF
  4431 /* end confdefs.h.  */
  4432 #ifdef __STDC__
  4433 # include <limits.h>
  4434 #else
  4435 # include <assert.h>
  4436 #endif
  4437 		     Syntax error
  4438 _ACEOF
  4439 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4440 case "(($ac_try" in
  4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4442   *) ac_try_echo=$ac_try;;
  4443 esac
  4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4446   ac_status=$?
  4447   grep -v '^ *+' conftest.er1 >conftest.err
  4448   rm -f conftest.er1
  4449   cat conftest.err >&5
  4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4451   (exit $ac_status); } >/dev/null && {
  4452 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4453 	 test ! -s conftest.err
  4454        }; then
  4456 else
  4457   echo "$as_me: failed program was:" >&5
  4458 sed 's/^/| /' conftest.$ac_ext >&5
  4460   # Broken: fails on valid input.
  4461 continue
  4462 fi
  4464 rm -f conftest.err conftest.$ac_ext
  4466   # OK, works on sane cases.  Now check whether nonexistent headers
  4467   # can be detected and how.
  4468   cat >conftest.$ac_ext <<_ACEOF
  4469 /* confdefs.h.  */
  4470 _ACEOF
  4471 cat confdefs.h >>conftest.$ac_ext
  4472 cat >>conftest.$ac_ext <<_ACEOF
  4473 /* end confdefs.h.  */
  4474 #include <ac_nonexistent.h>
  4475 _ACEOF
  4476 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4477 case "(($ac_try" in
  4478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4479   *) ac_try_echo=$ac_try;;
  4480 esac
  4481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4483   ac_status=$?
  4484   grep -v '^ *+' conftest.er1 >conftest.err
  4485   rm -f conftest.er1
  4486   cat conftest.err >&5
  4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4488   (exit $ac_status); } >/dev/null && {
  4489 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4490 	 test ! -s conftest.err
  4491        }; then
  4492   # Broken: success on invalid input.
  4493 continue
  4494 else
  4495   echo "$as_me: failed program was:" >&5
  4496 sed 's/^/| /' conftest.$ac_ext >&5
  4498   # Passes both tests.
  4499 ac_preproc_ok=:
  4500 break
  4501 fi
  4503 rm -f conftest.err conftest.$ac_ext
  4505 done
  4506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4507 rm -f conftest.err conftest.$ac_ext
  4508 if $ac_preproc_ok; then
  4510 else
  4511   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4512 See \`config.log' for more details." >&5
  4513 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4514 See \`config.log' for more details." >&2;}
  4515    { (exit 1); exit 1; }; }
  4516 fi
  4518 ac_ext=c
  4519 ac_cpp='$CPP $CPPFLAGS'
  4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4525 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4526 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4527 if test "${ac_cv_path_GREP+set}" = set; then
  4528   echo $ECHO_N "(cached) $ECHO_C" >&6
  4529 else
  4530   # Extract the first word of "grep ggrep" to use in msg output
  4531 if test -z "$GREP"; then
  4532 set dummy grep ggrep; ac_prog_name=$2
  4533 if test "${ac_cv_path_GREP+set}" = set; then
  4534   echo $ECHO_N "(cached) $ECHO_C" >&6
  4535 else
  4536   ac_path_GREP_found=false
  4537 # Loop through the user's path and test for each of PROGNAME-LIST
  4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4540 do
  4541   IFS=$as_save_IFS
  4542   test -z "$as_dir" && as_dir=.
  4543   for ac_prog in grep ggrep; do
  4544   for ac_exec_ext in '' $ac_executable_extensions; do
  4545     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4546     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4547     # Check for GNU ac_path_GREP and select it if it is found.
  4548   # Check for GNU $ac_path_GREP
  4549 case `"$ac_path_GREP" --version 2>&1` in
  4550 *GNU*)
  4551   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4552 *)
  4553   ac_count=0
  4554   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4555   while :
  4556   do
  4557     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4558     mv "conftest.tmp" "conftest.in"
  4559     cp "conftest.in" "conftest.nl"
  4560     echo 'GREP' >> "conftest.nl"
  4561     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4562     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4563     ac_count=`expr $ac_count + 1`
  4564     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4565       # Best one so far, save it but keep looking for a better one
  4566       ac_cv_path_GREP="$ac_path_GREP"
  4567       ac_path_GREP_max=$ac_count
  4568     fi
  4569     # 10*(2^10) chars as input seems more than enough
  4570     test $ac_count -gt 10 && break
  4571   done
  4572   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4573 esac
  4576     $ac_path_GREP_found && break 3
  4577   done
  4578 done
  4580 done
  4581 IFS=$as_save_IFS
  4584 fi
  4586 GREP="$ac_cv_path_GREP"
  4587 if test -z "$GREP"; then
  4588   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4589 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4590    { (exit 1); exit 1; }; }
  4591 fi
  4593 else
  4594   ac_cv_path_GREP=$GREP
  4595 fi
  4598 fi
  4599 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4600 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4601  GREP="$ac_cv_path_GREP"
  4604 { echo "$as_me:$LINENO: checking for egrep" >&5
  4605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4606 if test "${ac_cv_path_EGREP+set}" = set; then
  4607   echo $ECHO_N "(cached) $ECHO_C" >&6
  4608 else
  4609   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4610    then ac_cv_path_EGREP="$GREP -E"
  4611    else
  4612      # Extract the first word of "egrep" to use in msg output
  4613 if test -z "$EGREP"; then
  4614 set dummy egrep; ac_prog_name=$2
  4615 if test "${ac_cv_path_EGREP+set}" = set; then
  4616   echo $ECHO_N "(cached) $ECHO_C" >&6
  4617 else
  4618   ac_path_EGREP_found=false
  4619 # Loop through the user's path and test for each of PROGNAME-LIST
  4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4622 do
  4623   IFS=$as_save_IFS
  4624   test -z "$as_dir" && as_dir=.
  4625   for ac_prog in egrep; do
  4626   for ac_exec_ext in '' $ac_executable_extensions; do
  4627     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4628     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4629     # Check for GNU ac_path_EGREP and select it if it is found.
  4630   # Check for GNU $ac_path_EGREP
  4631 case `"$ac_path_EGREP" --version 2>&1` in
  4632 *GNU*)
  4633   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4634 *)
  4635   ac_count=0
  4636   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4637   while :
  4638   do
  4639     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4640     mv "conftest.tmp" "conftest.in"
  4641     cp "conftest.in" "conftest.nl"
  4642     echo 'EGREP' >> "conftest.nl"
  4643     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4644     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4645     ac_count=`expr $ac_count + 1`
  4646     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4647       # Best one so far, save it but keep looking for a better one
  4648       ac_cv_path_EGREP="$ac_path_EGREP"
  4649       ac_path_EGREP_max=$ac_count
  4650     fi
  4651     # 10*(2^10) chars as input seems more than enough
  4652     test $ac_count -gt 10 && break
  4653   done
  4654   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4655 esac
  4658     $ac_path_EGREP_found && break 3
  4659   done
  4660 done
  4662 done
  4663 IFS=$as_save_IFS
  4666 fi
  4668 EGREP="$ac_cv_path_EGREP"
  4669 if test -z "$EGREP"; then
  4670   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4671 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4672    { (exit 1); exit 1; }; }
  4673 fi
  4675 else
  4676   ac_cv_path_EGREP=$EGREP
  4677 fi
  4680    fi
  4681 fi
  4682 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4683 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4684  EGREP="$ac_cv_path_EGREP"
  4687 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4688 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4689 if test "${ac_cv_header_stdc+set}" = set; then
  4690   echo $ECHO_N "(cached) $ECHO_C" >&6
  4691 else
  4692   cat >conftest.$ac_ext <<_ACEOF
  4693 /* confdefs.h.  */
  4694 _ACEOF
  4695 cat confdefs.h >>conftest.$ac_ext
  4696 cat >>conftest.$ac_ext <<_ACEOF
  4697 /* end confdefs.h.  */
  4698 #include <stdlib.h>
  4699 #include <stdarg.h>
  4700 #include <string.h>
  4701 #include <float.h>
  4703 int
  4704 main ()
  4708   return 0;
  4710 _ACEOF
  4711 rm -f conftest.$ac_objext
  4712 if { (ac_try="$ac_compile"
  4713 case "(($ac_try" in
  4714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4715   *) ac_try_echo=$ac_try;;
  4716 esac
  4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4718   (eval "$ac_compile") 2>conftest.er1
  4719   ac_status=$?
  4720   grep -v '^ *+' conftest.er1 >conftest.err
  4721   rm -f conftest.er1
  4722   cat conftest.err >&5
  4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4724   (exit $ac_status); } && {
  4725 	 test -z "$ac_c_werror_flag" ||
  4726 	 test ! -s conftest.err
  4727        } && test -s conftest.$ac_objext; then
  4728   ac_cv_header_stdc=yes
  4729 else
  4730   echo "$as_me: failed program was:" >&5
  4731 sed 's/^/| /' conftest.$ac_ext >&5
  4733 	ac_cv_header_stdc=no
  4734 fi
  4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4738 if test $ac_cv_header_stdc = yes; then
  4739   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4740   cat >conftest.$ac_ext <<_ACEOF
  4741 /* confdefs.h.  */
  4742 _ACEOF
  4743 cat confdefs.h >>conftest.$ac_ext
  4744 cat >>conftest.$ac_ext <<_ACEOF
  4745 /* end confdefs.h.  */
  4746 #include <string.h>
  4748 _ACEOF
  4749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4750   $EGREP "memchr" >/dev/null 2>&1; then
  4752 else
  4753   ac_cv_header_stdc=no
  4754 fi
  4755 rm -f conftest*
  4757 fi
  4759 if test $ac_cv_header_stdc = yes; then
  4760   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4761   cat >conftest.$ac_ext <<_ACEOF
  4762 /* confdefs.h.  */
  4763 _ACEOF
  4764 cat confdefs.h >>conftest.$ac_ext
  4765 cat >>conftest.$ac_ext <<_ACEOF
  4766 /* end confdefs.h.  */
  4767 #include <stdlib.h>
  4769 _ACEOF
  4770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4771   $EGREP "free" >/dev/null 2>&1; then
  4773 else
  4774   ac_cv_header_stdc=no
  4775 fi
  4776 rm -f conftest*
  4778 fi
  4780 if test $ac_cv_header_stdc = yes; then
  4781   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4782   if test "$cross_compiling" = yes; then
  4784 else
  4785   cat >conftest.$ac_ext <<_ACEOF
  4786 /* confdefs.h.  */
  4787 _ACEOF
  4788 cat confdefs.h >>conftest.$ac_ext
  4789 cat >>conftest.$ac_ext <<_ACEOF
  4790 /* end confdefs.h.  */
  4791 #include <ctype.h>
  4792 #include <stdlib.h>
  4793 #if ((' ' & 0x0FF) == 0x020)
  4794 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4795 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4796 #else
  4797 # define ISLOWER(c) \
  4798 		   (('a' <= (c) && (c) <= 'i') \
  4799 		     || ('j' <= (c) && (c) <= 'r') \
  4800 		     || ('s' <= (c) && (c) <= 'z'))
  4801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4802 #endif
  4804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4805 int
  4806 main ()
  4808   int i;
  4809   for (i = 0; i < 256; i++)
  4810     if (XOR (islower (i), ISLOWER (i))
  4811 	|| toupper (i) != TOUPPER (i))
  4812       return 2;
  4813   return 0;
  4815 _ACEOF
  4816 rm -f conftest$ac_exeext
  4817 if { (ac_try="$ac_link"
  4818 case "(($ac_try" in
  4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4820   *) ac_try_echo=$ac_try;;
  4821 esac
  4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4823   (eval "$ac_link") 2>&5
  4824   ac_status=$?
  4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4827   { (case "(($ac_try" in
  4828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4829   *) ac_try_echo=$ac_try;;
  4830 esac
  4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4832   (eval "$ac_try") 2>&5
  4833   ac_status=$?
  4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4835   (exit $ac_status); }; }; then
  4837 else
  4838   echo "$as_me: program exited with status $ac_status" >&5
  4839 echo "$as_me: failed program was:" >&5
  4840 sed 's/^/| /' conftest.$ac_ext >&5
  4842 ( exit $ac_status )
  4843 ac_cv_header_stdc=no
  4844 fi
  4845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4846 fi
  4849 fi
  4850 fi
  4851 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4852 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4853 if test $ac_cv_header_stdc = yes; then
  4855 cat >>confdefs.h <<\_ACEOF
  4856 #define STDC_HEADERS 1
  4857 _ACEOF
  4859 fi
  4861 # Make sure we can run config.sub.
  4862 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4863   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  4864 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  4865    { (exit 1); exit 1; }; }
  4867 { echo "$as_me:$LINENO: checking build system type" >&5
  4868 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  4869 if test "${ac_cv_build+set}" = set; then
  4870   echo $ECHO_N "(cached) $ECHO_C" >&6
  4871 else
  4872   ac_build_alias=$build_alias
  4873 test "x$ac_build_alias" = x &&
  4874   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4875 test "x$ac_build_alias" = x &&
  4876   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4877 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4878    { (exit 1); exit 1; }; }
  4879 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4880   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  4881 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  4882    { (exit 1); exit 1; }; }
  4884 fi
  4885 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4886 echo "${ECHO_T}$ac_cv_build" >&6; }
  4887 case $ac_cv_build in
  4888 *-*-*) ;;
  4889 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  4890 echo "$as_me: error: invalid value of canonical build" >&2;}
  4891    { (exit 1); exit 1; }; };;
  4892 esac
  4893 build=$ac_cv_build
  4894 ac_save_IFS=$IFS; IFS='-'
  4895 set x $ac_cv_build
  4896 shift
  4897 build_cpu=$1
  4898 build_vendor=$2
  4899 shift; shift
  4900 # Remember, the first character of IFS is used to create $*,
  4901 # except with old shells:
  4902 build_os=$*
  4903 IFS=$ac_save_IFS
  4904 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4907 { echo "$as_me:$LINENO: checking host system type" >&5
  4908 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  4909 if test "${ac_cv_host+set}" = set; then
  4910   echo $ECHO_N "(cached) $ECHO_C" >&6
  4911 else
  4912   if test "x$host_alias" = x; then
  4913   ac_cv_host=$ac_cv_build
  4914 else
  4915   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4916     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  4917 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  4918    { (exit 1); exit 1; }; }
  4919 fi
  4921 fi
  4922 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4923 echo "${ECHO_T}$ac_cv_host" >&6; }
  4924 case $ac_cv_host in
  4925 *-*-*) ;;
  4926 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  4927 echo "$as_me: error: invalid value of canonical host" >&2;}
  4928    { (exit 1); exit 1; }; };;
  4929 esac
  4930 host=$ac_cv_host
  4931 ac_save_IFS=$IFS; IFS='-'
  4932 set x $ac_cv_host
  4933 shift
  4934 host_cpu=$1
  4935 host_vendor=$2
  4936 shift; shift
  4937 # Remember, the first character of IFS is used to create $*,
  4938 # except with old shells:
  4939 host_os=$*
  4940 IFS=$ac_save_IFS
  4941 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4947 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  4948 	if test -n "$ac_tool_prefix"; then
  4949   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  4950 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  4951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4953 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  4954   echo $ECHO_N "(cached) $ECHO_C" >&6
  4955 else
  4956   case $PKG_CONFIG in
  4957   [\\/]* | ?:[\\/]*)
  4958   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  4959   ;;
  4960   *)
  4961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4962 for as_dir in $PATH
  4963 do
  4964   IFS=$as_save_IFS
  4965   test -z "$as_dir" && as_dir=.
  4966   for ac_exec_ext in '' $ac_executable_extensions; do
  4967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4968     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4970     break 2
  4971   fi
  4972 done
  4973 done
  4974 IFS=$as_save_IFS
  4976   ;;
  4977 esac
  4978 fi
  4979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4980 if test -n "$PKG_CONFIG"; then
  4981   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  4982 echo "${ECHO_T}$PKG_CONFIG" >&6; }
  4983 else
  4984   { echo "$as_me:$LINENO: result: no" >&5
  4985 echo "${ECHO_T}no" >&6; }
  4986 fi
  4989 fi
  4990 if test -z "$ac_cv_path_PKG_CONFIG"; then
  4991   ac_pt_PKG_CONFIG=$PKG_CONFIG
  4992   # Extract the first word of "pkg-config", so it can be a program name with args.
  4993 set dummy pkg-config; ac_word=$2
  4994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4996 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  4997   echo $ECHO_N "(cached) $ECHO_C" >&6
  4998 else
  4999   case $ac_pt_PKG_CONFIG in
  5000   [\\/]* | ?:[\\/]*)
  5001   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5002   ;;
  5003   *)
  5004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5005 for as_dir in $PATH
  5006 do
  5007   IFS=$as_save_IFS
  5008   test -z "$as_dir" && as_dir=.
  5009   for ac_exec_ext in '' $ac_executable_extensions; do
  5010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5011     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5013     break 2
  5014   fi
  5015 done
  5016 done
  5017 IFS=$as_save_IFS
  5019   ;;
  5020 esac
  5021 fi
  5022 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5023 if test -n "$ac_pt_PKG_CONFIG"; then
  5024   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  5025 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  5026 else
  5027   { echo "$as_me:$LINENO: result: no" >&5
  5028 echo "${ECHO_T}no" >&6; }
  5029 fi
  5031   if test "x$ac_pt_PKG_CONFIG" = x; then
  5032     PKG_CONFIG=""
  5033   else
  5034     case $cross_compiling:$ac_tool_warned in
  5035 yes:)
  5036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5037 whose name does not start with the host triplet.  If you think this
  5038 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5040 whose name does not start with the host triplet.  If you think this
  5041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5042 ac_tool_warned=yes ;;
  5043 esac
  5044     PKG_CONFIG=$ac_pt_PKG_CONFIG
  5045   fi
  5046 else
  5047   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5048 fi
  5050 fi
  5051 if test -n "$PKG_CONFIG"; then
  5052 	_pkg_min_version=0.9.0
  5053 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  5054 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  5055 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5056 		{ echo "$as_me:$LINENO: result: yes" >&5
  5057 echo "${ECHO_T}yes" >&6; }
  5058 	else
  5059 		{ echo "$as_me:$LINENO: result: no" >&5
  5060 echo "${ECHO_T}no" >&6; }
  5061 		PKG_CONFIG=""
  5062 	fi
  5064 fi
  5066 pkg_failed=no
  5067 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
  5068 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
  5070 if test -n "$PKG_CONFIG"; then
  5071     if test -n "$LIBPNG_CFLAGS"; then
  5072         pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  5073     else
  5074         if test -n "$PKG_CONFIG" && \
  5075     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5076   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5077   ac_status=$?
  5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5079   (exit $ac_status); }; then
  5080   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  5081 else
  5082   pkg_failed=yes
  5083 fi
  5084     fi
  5085 else
  5086 	pkg_failed=untried
  5087 fi
  5088 if test -n "$PKG_CONFIG"; then
  5089     if test -n "$LIBPNG_LIBS"; then
  5090         pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  5091     else
  5092         if test -n "$PKG_CONFIG" && \
  5093     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5094   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5095   ac_status=$?
  5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5097   (exit $ac_status); }; then
  5098   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  5099 else
  5100   pkg_failed=yes
  5101 fi
  5102     fi
  5103 else
  5104 	pkg_failed=untried
  5105 fi
  5109 if test $pkg_failed = yes; then
  5111 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5112         _pkg_short_errors_supported=yes
  5113 else
  5114         _pkg_short_errors_supported=no
  5115 fi
  5116         if test $_pkg_short_errors_supported = yes; then
  5117 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
  5118         else
  5119 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
  5120         fi
  5121 	# Put the nasty error message in config.log where it belongs
  5122 	echo "$LIBPNG_PKG_ERRORS" >&5
  5124 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  5126 $LIBPNG_PKG_ERRORS
  5128 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5129 installed software in a non-standard prefix.
  5131 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5132 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5133 See the pkg-config man page for more details.
  5134 " >&5
  5135 echo "$as_me: error: Package requirements (libpng ) were not met:
  5137 $LIBPNG_PKG_ERRORS
  5139 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5140 installed software in a non-standard prefix.
  5142 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5143 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5144 See the pkg-config man page for more details.
  5145 " >&2;}
  5146    { (exit 1); exit 1; }; }
  5147 elif test $pkg_failed = untried; then
  5148 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  5149 is in your PATH or set the PKG_CONFIG environment variable to the full
  5150 path to pkg-config.
  5152 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5153 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5154 See the pkg-config man page for more details.
  5156 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5157 See \`config.log' for more details." >&5
  5158 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  5159 is in your PATH or set the PKG_CONFIG environment variable to the full
  5160 path to pkg-config.
  5162 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5163 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5164 See the pkg-config man page for more details.
  5166 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5167 See \`config.log' for more details." >&2;}
  5168    { (exit 1); exit 1; }; }
  5169 else
  5170 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  5171 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  5172         { echo "$as_me:$LINENO: result: yes" >&5
  5173 echo "${ECHO_T}yes" >&6; }
  5175 fi
  5178 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
  5179 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
  5180 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
  5181   echo $ECHO_N "(cached) $ECHO_C" >&6
  5182 else
  5183   ac_check_lib_save_LIBS=$LIBS
  5184 LIBS="-lGL  $LIBS"
  5185 cat >conftest.$ac_ext <<_ACEOF
  5186 /* confdefs.h.  */
  5187 _ACEOF
  5188 cat confdefs.h >>conftest.$ac_ext
  5189 cat >>conftest.$ac_ext <<_ACEOF
  5190 /* end confdefs.h.  */
  5192 /* Override any GCC internal prototype to avoid an error.
  5193    Use char because int might match the return type of a GCC
  5194    builtin and then its argument prototype would still apply.  */
  5195 #ifdef __cplusplus
  5196 extern "C"
  5197 #endif
  5198 char glXQueryVersion ();
  5199 int
  5200 main ()
  5202 return glXQueryVersion ();
  5204   return 0;
  5206 _ACEOF
  5207 rm -f conftest.$ac_objext conftest$ac_exeext
  5208 if { (ac_try="$ac_link"
  5209 case "(($ac_try" in
  5210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5211   *) ac_try_echo=$ac_try;;
  5212 esac
  5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5214   (eval "$ac_link") 2>conftest.er1
  5215   ac_status=$?
  5216   grep -v '^ *+' conftest.er1 >conftest.err
  5217   rm -f conftest.er1
  5218   cat conftest.err >&5
  5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5220   (exit $ac_status); } && {
  5221 	 test -z "$ac_c_werror_flag" ||
  5222 	 test ! -s conftest.err
  5223        } && test -s conftest$ac_exeext &&
  5224        $as_test_x conftest$ac_exeext; then
  5225   ac_cv_lib_GL_glXQueryVersion=yes
  5226 else
  5227   echo "$as_me: failed program was:" >&5
  5228 sed 's/^/| /' conftest.$ac_ext >&5
  5230 	ac_cv_lib_GL_glXQueryVersion=no
  5231 fi
  5233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5234       conftest$ac_exeext conftest.$ac_ext
  5235 LIBS=$ac_check_lib_save_LIBS
  5236 fi
  5237 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
  5238 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
  5239 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
  5240   cat >>confdefs.h <<_ACEOF
  5241 #define HAVE_LIBGL 1
  5242 _ACEOF
  5244   LIBS="-lGL $LIBS"
  5246 else
  5248     echo "The OpenGL library (libGL.so) could not be found, but is required."
  5249     exit 1
  5250 fi
  5252 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5262 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5263 		  inttypes.h stdint.h unistd.h
  5264 do
  5265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5269   echo $ECHO_N "(cached) $ECHO_C" >&6
  5270 else
  5271   cat >conftest.$ac_ext <<_ACEOF
  5272 /* confdefs.h.  */
  5273 _ACEOF
  5274 cat confdefs.h >>conftest.$ac_ext
  5275 cat >>conftest.$ac_ext <<_ACEOF
  5276 /* end confdefs.h.  */
  5277 $ac_includes_default
  5279 #include <$ac_header>
  5280 _ACEOF
  5281 rm -f conftest.$ac_objext
  5282 if { (ac_try="$ac_compile"
  5283 case "(($ac_try" in
  5284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5285   *) ac_try_echo=$ac_try;;
  5286 esac
  5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5288   (eval "$ac_compile") 2>conftest.er1
  5289   ac_status=$?
  5290   grep -v '^ *+' conftest.er1 >conftest.err
  5291   rm -f conftest.er1
  5292   cat conftest.err >&5
  5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5294   (exit $ac_status); } && {
  5295 	 test -z "$ac_c_werror_flag" ||
  5296 	 test ! -s conftest.err
  5297        } && test -s conftest.$ac_objext; then
  5298   eval "$as_ac_Header=yes"
  5299 else
  5300   echo "$as_me: failed program was:" >&5
  5301 sed 's/^/| /' conftest.$ac_ext >&5
  5303 	eval "$as_ac_Header=no"
  5304 fi
  5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5307 fi
  5308 ac_res=`eval echo '${'$as_ac_Header'}'`
  5309 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  5310 echo "${ECHO_T}$ac_res" >&6; }
  5311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5312   cat >>confdefs.h <<_ACEOF
  5313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5314 _ACEOF
  5316 fi
  5318 done
  5321 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5322   { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5323 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5324 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5325   echo $ECHO_N "(cached) $ECHO_C" >&6
  5326 fi
  5327 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5328 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5329 else
  5330   # Is the header compilable?
  5331 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  5332 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
  5333 cat >conftest.$ac_ext <<_ACEOF
  5334 /* confdefs.h.  */
  5335 _ACEOF
  5336 cat confdefs.h >>conftest.$ac_ext
  5337 cat >>conftest.$ac_ext <<_ACEOF
  5338 /* end confdefs.h.  */
  5339 $ac_includes_default
  5340 #include <GL/gl.h>
  5341 _ACEOF
  5342 rm -f conftest.$ac_objext
  5343 if { (ac_try="$ac_compile"
  5344 case "(($ac_try" in
  5345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5346   *) ac_try_echo=$ac_try;;
  5347 esac
  5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5349   (eval "$ac_compile") 2>conftest.er1
  5350   ac_status=$?
  5351   grep -v '^ *+' conftest.er1 >conftest.err
  5352   rm -f conftest.er1
  5353   cat conftest.err >&5
  5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5355   (exit $ac_status); } && {
  5356 	 test -z "$ac_c_werror_flag" ||
  5357 	 test ! -s conftest.err
  5358        } && test -s conftest.$ac_objext; then
  5359   ac_header_compiler=yes
  5360 else
  5361   echo "$as_me: failed program was:" >&5
  5362 sed 's/^/| /' conftest.$ac_ext >&5
  5364 	ac_header_compiler=no
  5365 fi
  5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5369 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5371 # Is the header present?
  5372 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  5373 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
  5374 cat >conftest.$ac_ext <<_ACEOF
  5375 /* confdefs.h.  */
  5376 _ACEOF
  5377 cat confdefs.h >>conftest.$ac_ext
  5378 cat >>conftest.$ac_ext <<_ACEOF
  5379 /* end confdefs.h.  */
  5380 #include <GL/gl.h>
  5381 _ACEOF
  5382 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5383 case "(($ac_try" in
  5384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5385   *) ac_try_echo=$ac_try;;
  5386 esac
  5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5389   ac_status=$?
  5390   grep -v '^ *+' conftest.er1 >conftest.err
  5391   rm -f conftest.er1
  5392   cat conftest.err >&5
  5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5394   (exit $ac_status); } >/dev/null && {
  5395 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5396 	 test ! -s conftest.err
  5397        }; then
  5398   ac_header_preproc=yes
  5399 else
  5400   echo "$as_me: failed program was:" >&5
  5401 sed 's/^/| /' conftest.$ac_ext >&5
  5403   ac_header_preproc=no
  5404 fi
  5406 rm -f conftest.err conftest.$ac_ext
  5407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5408 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5410 # So?  What about this header?
  5411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5412   yes:no: )
  5413     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5414 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5415     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  5416 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  5417     ac_header_preproc=yes
  5418     ;;
  5419   no:yes:* )
  5420     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  5421 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  5422     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  5423 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  5424     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  5425 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  5426     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  5427 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5428     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  5429 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  5430     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  5431 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  5433     ;;
  5434 esac
  5435 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5436 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5437 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5438   echo $ECHO_N "(cached) $ECHO_C" >&6
  5439 else
  5440   ac_cv_header_GL_gl_h=$ac_header_preproc
  5441 fi
  5442 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5443 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5445 fi
  5446 if test $ac_cv_header_GL_gl_h = yes; then
  5448 else
  5450     echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
  5451     exit 1
  5452 fi
  5456 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  5457 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
  5458 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  5459   echo $ECHO_N "(cached) $ECHO_C" >&6
  5460 else
  5461   ac_check_lib_save_LIBS=$LIBS
  5462 LIBS="-lz  $LIBS"
  5463 cat >conftest.$ac_ext <<_ACEOF
  5464 /* confdefs.h.  */
  5465 _ACEOF
  5466 cat confdefs.h >>conftest.$ac_ext
  5467 cat >>conftest.$ac_ext <<_ACEOF
  5468 /* end confdefs.h.  */
  5470 /* Override any GCC internal prototype to avoid an error.
  5471    Use char because int might match the return type of a GCC
  5472    builtin and then its argument prototype would still apply.  */
  5473 #ifdef __cplusplus
  5474 extern "C"
  5475 #endif
  5476 char uncompress ();
  5477 int
  5478 main ()
  5480 return uncompress ();
  5482   return 0;
  5484 _ACEOF
  5485 rm -f conftest.$ac_objext conftest$ac_exeext
  5486 if { (ac_try="$ac_link"
  5487 case "(($ac_try" in
  5488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5489   *) ac_try_echo=$ac_try;;
  5490 esac
  5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5492   (eval "$ac_link") 2>conftest.er1
  5493   ac_status=$?
  5494   grep -v '^ *+' conftest.er1 >conftest.err
  5495   rm -f conftest.er1
  5496   cat conftest.err >&5
  5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5498   (exit $ac_status); } && {
  5499 	 test -z "$ac_c_werror_flag" ||
  5500 	 test ! -s conftest.err
  5501        } && test -s conftest$ac_exeext &&
  5502        $as_test_x conftest$ac_exeext; then
  5503   ac_cv_lib_z_uncompress=yes
  5504 else
  5505   echo "$as_me: failed program was:" >&5
  5506 sed 's/^/| /' conftest.$ac_ext >&5
  5508 	ac_cv_lib_z_uncompress=no
  5509 fi
  5511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5512       conftest$ac_exeext conftest.$ac_ext
  5513 LIBS=$ac_check_lib_save_LIBS
  5514 fi
  5515 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  5516 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
  5517 if test $ac_cv_lib_z_uncompress = yes; then
  5518   cat >>confdefs.h <<_ACEOF
  5519 #define HAVE_LIBZ 1
  5520 _ACEOF
  5522   LIBS="-lz $LIBS"
  5524 else
  5526     echo "Zlib (libz.so) could not be found, but is required."
  5527     exit 1
  5528 fi
  5532 pkg_failed=no
  5533 { echo "$as_me:$LINENO: checking for GTK" >&5
  5534 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
  5536 if test -n "$PKG_CONFIG"; then
  5537     if test -n "$GTK_CFLAGS"; then
  5538         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  5539     else
  5540         if test -n "$PKG_CONFIG" && \
  5541     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  5542   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  5543   ac_status=$?
  5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5545   (exit $ac_status); }; then
  5546   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  5547 else
  5548   pkg_failed=yes
  5549 fi
  5550     fi
  5551 else
  5552 	pkg_failed=untried
  5553 fi
  5554 if test -n "$PKG_CONFIG"; then
  5555     if test -n "$GTK_LIBS"; then
  5556         pkg_cv_GTK_LIBS="$GTK_LIBS"
  5557     else
  5558         if test -n "$PKG_CONFIG" && \
  5559     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  5560   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  5561   ac_status=$?
  5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5563   (exit $ac_status); }; then
  5564   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  5565 else
  5566   pkg_failed=yes
  5567 fi
  5568     fi
  5569 else
  5570 	pkg_failed=untried
  5571 fi
  5575 if test $pkg_failed = yes; then
  5577 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5578         _pkg_short_errors_supported=yes
  5579 else
  5580         _pkg_short_errors_supported=no
  5581 fi
  5582         if test $_pkg_short_errors_supported = yes; then
  5583 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
  5584         else
  5585 	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
  5586         fi
  5587 	# Put the nasty error message in config.log where it belongs
  5588 	echo "$GTK_PKG_ERRORS" >&5
  5590 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  5592 $GTK_PKG_ERRORS
  5594 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5595 installed software in a non-standard prefix.
  5597 Alternatively, you may set the environment variables GTK_CFLAGS
  5598 and GTK_LIBS to avoid the need to call pkg-config.
  5599 See the pkg-config man page for more details.
  5600 " >&5
  5601 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  5603 $GTK_PKG_ERRORS
  5605 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5606 installed software in a non-standard prefix.
  5608 Alternatively, you may set the environment variables GTK_CFLAGS
  5609 and GTK_LIBS to avoid the need to call pkg-config.
  5610 See the pkg-config man page for more details.
  5611 " >&2;}
  5612    { (exit 1); exit 1; }; }
  5613 elif test $pkg_failed = untried; then
  5614 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  5615 is in your PATH or set the PKG_CONFIG environment variable to the full
  5616 path to pkg-config.
  5618 Alternatively, you may set the environment variables GTK_CFLAGS
  5619 and GTK_LIBS to avoid the need to call pkg-config.
  5620 See the pkg-config man page for more details.
  5622 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5623 See \`config.log' for more details." >&5
  5624 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  5625 is in your PATH or set the PKG_CONFIG environment variable to the full
  5626 path to pkg-config.
  5628 Alternatively, you may set the environment variables GTK_CFLAGS
  5629 and GTK_LIBS to avoid the need to call pkg-config.
  5630 See the pkg-config man page for more details.
  5632 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5633 See \`config.log' for more details." >&2;}
  5634    { (exit 1); exit 1; }; }
  5635 else
  5636 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  5637 	GTK_LIBS=$pkg_cv_GTK_LIBS
  5638         { echo "$as_me:$LINENO: result: yes" >&5
  5639 echo "${ECHO_T}yes" >&6; }
  5640 	HAVE_GTK='yes'
  5641 fi
  5644 if test "$HAVE_GTK" = 'yes'; then
  5645   GUI_GTK_TRUE=
  5646   GUI_GTK_FALSE='#'
  5647 else
  5648   GUI_GTK_TRUE='#'
  5649   GUI_GTK_FALSE=
  5650 fi
  5653 case $host_cpu in
  5654     i386|i486|i586|i686)
  5655 	SH4_TRANSLATOR="x86"
  5657 cat >>confdefs.h <<_ACEOF
  5658 #define SH4_TRANSLATOR TARGET_X86
  5659 _ACEOF
  5660 ;;
  5661     x86_64)
  5662 	SH4_TRANSLATOR="x86_64"
  5664 cat >>confdefs.h <<_ACEOF
  5665 #define SH4_TRANSLATOR TARGET_X86_64
  5666 _ACEOF
  5667 ;;
  5668     *)
  5669 	echo "Warning: No translator available for $host. Building emulation core only";;
  5670 esac
  5673 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
  5674   BUILD_SH4X86_TRUE=
  5675   BUILD_SH4X86_FALSE='#'
  5676 else
  5677   BUILD_SH4X86_TRUE='#'
  5678   BUILD_SH4X86_FALSE=
  5679 fi
  5683 pkg_failed=no
  5684 { echo "$as_me:$LINENO: checking for ESOUND" >&5
  5685 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
  5687 if test -n "$PKG_CONFIG"; then
  5688     if test -n "$ESOUND_CFLAGS"; then
  5689         pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
  5690     else
  5691         if test -n "$PKG_CONFIG" && \
  5692     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  5693   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  5694   ac_status=$?
  5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5696   (exit $ac_status); }; then
  5697   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  5698 else
  5699   pkg_failed=yes
  5700 fi
  5701     fi
  5702 else
  5703 	pkg_failed=untried
  5704 fi
  5705 if test -n "$PKG_CONFIG"; then
  5706     if test -n "$ESOUND_LIBS"; then
  5707         pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
  5708     else
  5709         if test -n "$PKG_CONFIG" && \
  5710     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  5711   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  5712   ac_status=$?
  5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5714   (exit $ac_status); }; then
  5715   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  5716 else
  5717   pkg_failed=yes
  5718 fi
  5719     fi
  5720 else
  5721 	pkg_failed=untried
  5722 fi
  5726 if test $pkg_failed = yes; then
  5728 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5729         _pkg_short_errors_supported=yes
  5730 else
  5731         _pkg_short_errors_supported=no
  5732 fi
  5733         if test $_pkg_short_errors_supported = yes; then
  5734 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
  5735         else
  5736 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
  5737         fi
  5738 	# Put the nasty error message in config.log where it belongs
  5739 	echo "$ESOUND_PKG_ERRORS" >&5
  5741 	 echo "Warning: esound not found - building without audio support"
  5742 elif test $pkg_failed = untried; then
  5743 	 echo "Warning: esound not found - building without audio support"
  5744 else
  5745 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
  5746 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
  5747         { echo "$as_me:$LINENO: result: yes" >&5
  5748 echo "${ECHO_T}yes" >&6; }
  5750      HAVE_ESOUND='yes'
  5752 cat >>confdefs.h <<\_ACEOF
  5753 #define HAVE_ESOUND 1
  5754 _ACEOF
  5756 fi
  5759 if test "$HAVE_ESOUND" = 'yes' ; then
  5760   AUDIO_ESOUND_TRUE=
  5761   AUDIO_ESOUND_FALSE='#'
  5762 else
  5763   AUDIO_ESOUND_TRUE='#'
  5764   AUDIO_ESOUND_FALSE=
  5765 fi
  5768 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  5769   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  5770 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  5771 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  5772   echo $ECHO_N "(cached) $ECHO_C" >&6
  5773 fi
  5774 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  5775 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  5776 else
  5777   # Is the header compilable?
  5778 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  5779 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
  5780 cat >conftest.$ac_ext <<_ACEOF
  5781 /* confdefs.h.  */
  5782 _ACEOF
  5783 cat confdefs.h >>conftest.$ac_ext
  5784 cat >>conftest.$ac_ext <<_ACEOF
  5785 /* end confdefs.h.  */
  5786 $ac_includes_default
  5787 #include <linux/cdrom.h>
  5788 _ACEOF
  5789 rm -f conftest.$ac_objext
  5790 if { (ac_try="$ac_compile"
  5791 case "(($ac_try" in
  5792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5793   *) ac_try_echo=$ac_try;;
  5794 esac
  5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5796   (eval "$ac_compile") 2>conftest.er1
  5797   ac_status=$?
  5798   grep -v '^ *+' conftest.er1 >conftest.err
  5799   rm -f conftest.er1
  5800   cat conftest.err >&5
  5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5802   (exit $ac_status); } && {
  5803 	 test -z "$ac_c_werror_flag" ||
  5804 	 test ! -s conftest.err
  5805        } && test -s conftest.$ac_objext; then
  5806   ac_header_compiler=yes
  5807 else
  5808   echo "$as_me: failed program was:" >&5
  5809 sed 's/^/| /' conftest.$ac_ext >&5
  5811 	ac_header_compiler=no
  5812 fi
  5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5816 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5818 # Is the header present?
  5819 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  5820 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
  5821 cat >conftest.$ac_ext <<_ACEOF
  5822 /* confdefs.h.  */
  5823 _ACEOF
  5824 cat confdefs.h >>conftest.$ac_ext
  5825 cat >>conftest.$ac_ext <<_ACEOF
  5826 /* end confdefs.h.  */
  5827 #include <linux/cdrom.h>
  5828 _ACEOF
  5829 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5830 case "(($ac_try" in
  5831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5832   *) ac_try_echo=$ac_try;;
  5833 esac
  5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5836   ac_status=$?
  5837   grep -v '^ *+' conftest.er1 >conftest.err
  5838   rm -f conftest.er1
  5839   cat conftest.err >&5
  5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5841   (exit $ac_status); } >/dev/null && {
  5842 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5843 	 test ! -s conftest.err
  5844        }; then
  5845   ac_header_preproc=yes
  5846 else
  5847   echo "$as_me: failed program was:" >&5
  5848 sed 's/^/| /' conftest.$ac_ext >&5
  5850   ac_header_preproc=no
  5851 fi
  5853 rm -f conftest.err conftest.$ac_ext
  5854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5855 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5857 # So?  What about this header?
  5858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5859   yes:no: )
  5860     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5861 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5862     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
  5863 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
  5864     ac_header_preproc=yes
  5865     ;;
  5866   no:yes:* )
  5867     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
  5868 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
  5869     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
  5870 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
  5871     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
  5872 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
  5873     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
  5874 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5875     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
  5876 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
  5877     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
  5878 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
  5880     ;;
  5881 esac
  5882 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  5883 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  5884 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  5885   echo $ECHO_N "(cached) $ECHO_C" >&6
  5886 else
  5887   ac_cv_header_linux_cdrom_h=$ac_header_preproc
  5888 fi
  5889 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  5890 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  5892 fi
  5893 if test $ac_cv_header_linux_cdrom_h = yes; then
  5894   HAVE_LINUX_CDROM_H=yes
  5895 else
  5897     echo "Linux CDROM support not found, building without it."
  5898 fi
  5903 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
  5904   CDROM_LINUX_TRUE=
  5905   CDROM_LINUX_FALSE='#'
  5906 else
  5907   CDROM_LINUX_TRUE='#'
  5908   CDROM_LINUX_FALSE=
  5909 fi
  5912 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
  5913 set dummy sh-elf-gcc; ac_word=$2
  5914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5916 if test "${ac_cv_path_SHCC+set}" = set; then
  5917   echo $ECHO_N "(cached) $ECHO_C" >&6
  5918 else
  5919   case $SHCC in
  5920   [\\/]* | ?:[\\/]*)
  5921   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
  5922   ;;
  5923   *)
  5924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5925 for as_dir in $PATH
  5926 do
  5927   IFS=$as_save_IFS
  5928   test -z "$as_dir" && as_dir=.
  5929   for ac_exec_ext in '' $ac_executable_extensions; do
  5930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5931     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
  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   ;;
  5940 esac
  5941 fi
  5942 SHCC=$ac_cv_path_SHCC
  5943 if test -n "$SHCC"; then
  5944   { echo "$as_me:$LINENO: result: $SHCC" >&5
  5945 echo "${ECHO_T}$SHCC" >&6; }
  5946 else
  5947   { echo "$as_me:$LINENO: result: no" >&5
  5948 echo "${ECHO_T}no" >&6; }
  5949 fi
  5952 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
  5953 set dummy sh-elf-ld; ac_word=$2
  5954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5956 if test "${ac_cv_path_SHLD+set}" = set; then
  5957   echo $ECHO_N "(cached) $ECHO_C" >&6
  5958 else
  5959   case $SHLD in
  5960   [\\/]* | ?:[\\/]*)
  5961   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
  5962   ;;
  5963   *)
  5964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5965 for as_dir in $PATH
  5966 do
  5967   IFS=$as_save_IFS
  5968   test -z "$as_dir" && as_dir=.
  5969   for ac_exec_ext in '' $ac_executable_extensions; do
  5970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5971     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
  5972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5973     break 2
  5974   fi
  5975 done
  5976 done
  5977 IFS=$as_save_IFS
  5979   ;;
  5980 esac
  5981 fi
  5982 SHLD=$ac_cv_path_SHLD
  5983 if test -n "$SHLD"; then
  5984   { echo "$as_me:$LINENO: result: $SHLD" >&5
  5985 echo "${ECHO_T}$SHLD" >&6; }
  5986 else
  5987   { echo "$as_me:$LINENO: result: no" >&5
  5988 echo "${ECHO_T}no" >&6; }
  5989 fi
  5992 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
  5993 set dummy sh-elf-objcopy; ac_word=$2
  5994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5996 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
  5997   echo $ECHO_N "(cached) $ECHO_C" >&6
  5998 else
  5999   case $SHOBJCOPY in
  6000   [\\/]* | ?:[\\/]*)
  6001   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
  6002   ;;
  6003   *)
  6004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6005 for as_dir in $PATH
  6006 do
  6007   IFS=$as_save_IFS
  6008   test -z "$as_dir" && as_dir=.
  6009   for ac_exec_ext in '' $ac_executable_extensions; do
  6010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6011     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  6012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6013     break 2
  6014   fi
  6015 done
  6016 done
  6017 IFS=$as_save_IFS
  6019   ;;
  6020 esac
  6021 fi
  6022 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
  6023 if test -n "$SHOBJCOPY"; then
  6024   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
  6025 echo "${ECHO_T}$SHOBJCOPY" >&6; }
  6026 else
  6027   { echo "$as_me:$LINENO: result: no" >&5
  6028 echo "${ECHO_T}no" >&6; }
  6029 fi
  6032 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
  6033 set dummy arm-elf-gcc; ac_word=$2
  6034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6036 if test "${ac_cv_path_ARMCC+set}" = set; then
  6037   echo $ECHO_N "(cached) $ECHO_C" >&6
  6038 else
  6039   case $ARMCC in
  6040   [\\/]* | ?:[\\/]*)
  6041   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
  6042   ;;
  6043   *)
  6044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6045 for as_dir in $PATH
  6046 do
  6047   IFS=$as_save_IFS
  6048   test -z "$as_dir" && as_dir=.
  6049   for ac_exec_ext in '' $ac_executable_extensions; do
  6050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6051     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
  6052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6053     break 2
  6054   fi
  6055 done
  6056 done
  6057 IFS=$as_save_IFS
  6059   ;;
  6060 esac
  6061 fi
  6062 ARMCC=$ac_cv_path_ARMCC
  6063 if test -n "$ARMCC"; then
  6064   { echo "$as_me:$LINENO: result: $ARMCC" >&5
  6065 echo "${ECHO_T}$ARMCC" >&6; }
  6066 else
  6067   { echo "$as_me:$LINENO: result: no" >&5
  6068 echo "${ECHO_T}no" >&6; }
  6069 fi
  6072 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
  6073 set dummy arm-elf-ld; ac_word=$2
  6074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6076 if test "${ac_cv_path_ARMLD+set}" = set; then
  6077   echo $ECHO_N "(cached) $ECHO_C" >&6
  6078 else
  6079   case $ARMLD in
  6080   [\\/]* | ?:[\\/]*)
  6081   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
  6082   ;;
  6083   *)
  6084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6085 for as_dir in $PATH
  6086 do
  6087   IFS=$as_save_IFS
  6088   test -z "$as_dir" && as_dir=.
  6089   for ac_exec_ext in '' $ac_executable_extensions; do
  6090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6091     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
  6092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6093     break 2
  6094   fi
  6095 done
  6096 done
  6097 IFS=$as_save_IFS
  6099   ;;
  6100 esac
  6101 fi
  6102 ARMLD=$ac_cv_path_ARMLD
  6103 if test -n "$ARMLD"; then
  6104   { echo "$as_me:$LINENO: result: $ARMLD" >&5
  6105 echo "${ECHO_T}$ARMLD" >&6; }
  6106 else
  6107   { echo "$as_me:$LINENO: result: no" >&5
  6108 echo "${ECHO_T}no" >&6; }
  6109 fi
  6112 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
  6113 set dummy arm-elf-objcopy; ac_word=$2
  6114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6116 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
  6117   echo $ECHO_N "(cached) $ECHO_C" >&6
  6118 else
  6119   case $ARMOBJCOPY in
  6120   [\\/]* | ?:[\\/]*)
  6121   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
  6122   ;;
  6123   *)
  6124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6125 for as_dir in $PATH
  6126 do
  6127   IFS=$as_save_IFS
  6128   test -z "$as_dir" && as_dir=.
  6129   for ac_exec_ext in '' $ac_executable_extensions; do
  6130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6131     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  6132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6133     break 2
  6134   fi
  6135 done
  6136 done
  6137 IFS=$as_save_IFS
  6139   ;;
  6140 esac
  6141 fi
  6142 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
  6143 if test -n "$ARMOBJCOPY"; then
  6144   { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
  6145 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
  6146 else
  6147   { echo "$as_me:$LINENO: result: no" >&5
  6148 echo "${ECHO_T}no" >&6; }
  6149 fi
  6153 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
  6154   BUILD_SH="no"
  6155   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
  6156 else
  6157   BUILD_SH="yes"
  6158 fi
  6159 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
  6160   BUILD_ARM="no"
  6161   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
  6162 else
  6163   BUILD_ARM="yes"
  6164 fi
  6167 if test "$BUILD_SH" = "yes"; then
  6168   BUILD_SYSTEST_TRUE=
  6169   BUILD_SYSTEST_FALSE='#'
  6170 else
  6171   BUILD_SYSTEST_TRUE='#'
  6172   BUILD_SYSTEST_FALSE=
  6173 fi
  6177 if test "$BUILD_ARM" = "yes"; then
  6178   BUILD_ARMTEST_TRUE=
  6179   BUILD_ARMTEST_FALSE='#'
  6180 else
  6181   BUILD_ARMTEST_TRUE='#'
  6182   BUILD_ARMTEST_FALSE=
  6183 fi
  6187 GETTEXT_PACKAGE=lxdream
  6190 cat >>confdefs.h <<_ACEOF
  6191 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  6192 _ACEOF
  6195 ALL_LINGUAS="de pt_BR"
  6198 for ac_header in locale.h
  6199 do
  6200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6202   { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6205   echo $ECHO_N "(cached) $ECHO_C" >&6
  6206 fi
  6207 ac_res=`eval echo '${'$as_ac_Header'}'`
  6208 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  6209 echo "${ECHO_T}$ac_res" >&6; }
  6210 else
  6211   # Is the header compilable?
  6212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6214 cat >conftest.$ac_ext <<_ACEOF
  6215 /* confdefs.h.  */
  6216 _ACEOF
  6217 cat confdefs.h >>conftest.$ac_ext
  6218 cat >>conftest.$ac_ext <<_ACEOF
  6219 /* end confdefs.h.  */
  6220 $ac_includes_default
  6221 #include <$ac_header>
  6222 _ACEOF
  6223 rm -f conftest.$ac_objext
  6224 if { (ac_try="$ac_compile"
  6225 case "(($ac_try" in
  6226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6227   *) ac_try_echo=$ac_try;;
  6228 esac
  6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6230   (eval "$ac_compile") 2>conftest.er1
  6231   ac_status=$?
  6232   grep -v '^ *+' conftest.er1 >conftest.err
  6233   rm -f conftest.er1
  6234   cat conftest.err >&5
  6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6236   (exit $ac_status); } && {
  6237 	 test -z "$ac_c_werror_flag" ||
  6238 	 test ! -s conftest.err
  6239        } && test -s conftest.$ac_objext; then
  6240   ac_header_compiler=yes
  6241 else
  6242   echo "$as_me: failed program was:" >&5
  6243 sed 's/^/| /' conftest.$ac_ext >&5
  6245 	ac_header_compiler=no
  6246 fi
  6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6250 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6252 # Is the header present?
  6253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  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.  */
  6261 #include <$ac_header>
  6262 _ACEOF
  6263 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6264 case "(($ac_try" in
  6265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6266   *) ac_try_echo=$ac_try;;
  6267 esac
  6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6270   ac_status=$?
  6271   grep -v '^ *+' conftest.er1 >conftest.err
  6272   rm -f conftest.er1
  6273   cat conftest.err >&5
  6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6275   (exit $ac_status); } >/dev/null && {
  6276 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6277 	 test ! -s conftest.err
  6278        }; then
  6279   ac_header_preproc=yes
  6280 else
  6281   echo "$as_me: failed program was:" >&5
  6282 sed 's/^/| /' conftest.$ac_ext >&5
  6284   ac_header_preproc=no
  6285 fi
  6287 rm -f conftest.err conftest.$ac_ext
  6288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6289 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6291 # So?  What about this header?
  6292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6293   yes:no: )
  6294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6298     ac_header_preproc=yes
  6299     ;;
  6300   no:yes:* )
  6301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  6304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  6305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  6308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  6309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6314     ;;
  6315 esac
  6316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6319   echo $ECHO_N "(cached) $ECHO_C" >&6
  6320 else
  6321   eval "$as_ac_Header=\$ac_header_preproc"
  6322 fi
  6323 ac_res=`eval echo '${'$as_ac_Header'}'`
  6324 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  6325 echo "${ECHO_T}$ac_res" >&6; }
  6327 fi
  6328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6329   cat >>confdefs.h <<_ACEOF
  6330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6331 _ACEOF
  6333 fi
  6335 done
  6337     if test $ac_cv_header_locale_h = yes; then
  6338     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  6339 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  6340 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  6341   echo $ECHO_N "(cached) $ECHO_C" >&6
  6342 else
  6343   cat >conftest.$ac_ext <<_ACEOF
  6344 /* confdefs.h.  */
  6345 _ACEOF
  6346 cat confdefs.h >>conftest.$ac_ext
  6347 cat >>conftest.$ac_ext <<_ACEOF
  6348 /* end confdefs.h.  */
  6349 #include <locale.h>
  6350 int
  6351 main ()
  6353 return LC_MESSAGES
  6355   return 0;
  6357 _ACEOF
  6358 rm -f conftest.$ac_objext conftest$ac_exeext
  6359 if { (ac_try="$ac_link"
  6360 case "(($ac_try" in
  6361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6362   *) ac_try_echo=$ac_try;;
  6363 esac
  6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6365   (eval "$ac_link") 2>conftest.er1
  6366   ac_status=$?
  6367   grep -v '^ *+' conftest.er1 >conftest.err
  6368   rm -f conftest.er1
  6369   cat conftest.err >&5
  6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6371   (exit $ac_status); } && {
  6372 	 test -z "$ac_c_werror_flag" ||
  6373 	 test ! -s conftest.err
  6374        } && test -s conftest$ac_exeext &&
  6375        $as_test_x conftest$ac_exeext; then
  6376   am_cv_val_LC_MESSAGES=yes
  6377 else
  6378   echo "$as_me: failed program was:" >&5
  6379 sed 's/^/| /' conftest.$ac_ext >&5
  6381 	am_cv_val_LC_MESSAGES=no
  6382 fi
  6384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6385       conftest$ac_exeext conftest.$ac_ext
  6386 fi
  6387 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  6388 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  6389     if test $am_cv_val_LC_MESSAGES = yes; then
  6391 cat >>confdefs.h <<\_ACEOF
  6392 #define HAVE_LC_MESSAGES 1
  6393 _ACEOF
  6395     fi
  6396   fi
  6397      USE_NLS=yes
  6400     gt_cv_have_gettext=no
  6402     CATOBJEXT=NONE
  6403     XGETTEXT=:
  6404     INTLLIBS=
  6406     if test "${ac_cv_header_libintl_h+set}" = set; then
  6407   { echo "$as_me:$LINENO: checking for libintl.h" >&5
  6408 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
  6409 if test "${ac_cv_header_libintl_h+set}" = set; then
  6410   echo $ECHO_N "(cached) $ECHO_C" >&6
  6411 fi
  6412 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  6413 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
  6414 else
  6415   # Is the header compilable?
  6416 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
  6417 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
  6418 cat >conftest.$ac_ext <<_ACEOF
  6419 /* confdefs.h.  */
  6420 _ACEOF
  6421 cat confdefs.h >>conftest.$ac_ext
  6422 cat >>conftest.$ac_ext <<_ACEOF
  6423 /* end confdefs.h.  */
  6424 $ac_includes_default
  6425 #include <libintl.h>
  6426 _ACEOF
  6427 rm -f conftest.$ac_objext
  6428 if { (ac_try="$ac_compile"
  6429 case "(($ac_try" in
  6430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6431   *) ac_try_echo=$ac_try;;
  6432 esac
  6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6434   (eval "$ac_compile") 2>conftest.er1
  6435   ac_status=$?
  6436   grep -v '^ *+' conftest.er1 >conftest.err
  6437   rm -f conftest.er1
  6438   cat conftest.err >&5
  6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6440   (exit $ac_status); } && {
  6441 	 test -z "$ac_c_werror_flag" ||
  6442 	 test ! -s conftest.err
  6443        } && test -s conftest.$ac_objext; then
  6444   ac_header_compiler=yes
  6445 else
  6446   echo "$as_me: failed program was:" >&5
  6447 sed 's/^/| /' conftest.$ac_ext >&5
  6449 	ac_header_compiler=no
  6450 fi
  6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6454 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6456 # Is the header present?
  6457 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
  6458 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
  6459 cat >conftest.$ac_ext <<_ACEOF
  6460 /* confdefs.h.  */
  6461 _ACEOF
  6462 cat confdefs.h >>conftest.$ac_ext
  6463 cat >>conftest.$ac_ext <<_ACEOF
  6464 /* end confdefs.h.  */
  6465 #include <libintl.h>
  6466 _ACEOF
  6467 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6468 case "(($ac_try" in
  6469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6470   *) ac_try_echo=$ac_try;;
  6471 esac
  6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6474   ac_status=$?
  6475   grep -v '^ *+' conftest.er1 >conftest.err
  6476   rm -f conftest.er1
  6477   cat conftest.err >&5
  6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6479   (exit $ac_status); } >/dev/null && {
  6480 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6481 	 test ! -s conftest.err
  6482        }; then
  6483   ac_header_preproc=yes
  6484 else
  6485   echo "$as_me: failed program was:" >&5
  6486 sed 's/^/| /' conftest.$ac_ext >&5
  6488   ac_header_preproc=no
  6489 fi
  6491 rm -f conftest.err conftest.$ac_ext
  6492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6493 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6495 # So?  What about this header?
  6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6497   yes:no: )
  6498     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6499 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6500     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
  6501 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
  6502     ac_header_preproc=yes
  6503     ;;
  6504   no:yes:* )
  6505     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
  6506 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
  6507     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
  6508 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
  6509     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
  6510 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
  6511     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
  6512 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6513     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
  6514 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
  6515     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
  6516 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
  6518     ;;
  6519 esac
  6520 { echo "$as_me:$LINENO: checking for libintl.h" >&5
  6521 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
  6522 if test "${ac_cv_header_libintl_h+set}" = set; then
  6523   echo $ECHO_N "(cached) $ECHO_C" >&6
  6524 else
  6525   ac_cv_header_libintl_h=$ac_header_preproc
  6526 fi
  6527 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  6528 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
  6530 fi
  6531 if test $ac_cv_header_libintl_h = yes; then
  6532   gt_cv_func_dgettext_libintl="no"
  6533       libintl_extra_libs=""
  6536       # First check in libc
  6538       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
  6539 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
  6540 if test "${gt_cv_func_ngettext_libc+set}" = set; then
  6541   echo $ECHO_N "(cached) $ECHO_C" >&6
  6542 else
  6543   cat >conftest.$ac_ext <<_ACEOF
  6544 /* confdefs.h.  */
  6545 _ACEOF
  6546 cat confdefs.h >>conftest.$ac_ext
  6547 cat >>conftest.$ac_ext <<_ACEOF
  6548 /* end confdefs.h.  */
  6550 #include <libintl.h>
  6552 int
  6553 main ()
  6555 return !ngettext ("","", 1)
  6557   return 0;
  6559 _ACEOF
  6560 rm -f conftest.$ac_objext conftest$ac_exeext
  6561 if { (ac_try="$ac_link"
  6562 case "(($ac_try" in
  6563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6564   *) ac_try_echo=$ac_try;;
  6565 esac
  6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6567   (eval "$ac_link") 2>conftest.er1
  6568   ac_status=$?
  6569   grep -v '^ *+' conftest.er1 >conftest.err
  6570   rm -f conftest.er1
  6571   cat conftest.err >&5
  6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6573   (exit $ac_status); } && {
  6574 	 test -z "$ac_c_werror_flag" ||
  6575 	 test ! -s conftest.err
  6576        } && test -s conftest$ac_exeext &&
  6577        $as_test_x conftest$ac_exeext; then
  6578   gt_cv_func_ngettext_libc=yes
  6579 else
  6580   echo "$as_me: failed program was:" >&5
  6581 sed 's/^/| /' conftest.$ac_ext >&5
  6583 	gt_cv_func_ngettext_libc=no
  6584 fi
  6586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6587       conftest$ac_exeext conftest.$ac_ext
  6589 fi
  6590 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
  6591 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
  6593       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  6594 	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
  6595 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
  6596 if test "${gt_cv_func_dgettext_libc+set}" = set; then
  6597   echo $ECHO_N "(cached) $ECHO_C" >&6
  6598 else
  6599   cat >conftest.$ac_ext <<_ACEOF
  6600 /* confdefs.h.  */
  6601 _ACEOF
  6602 cat confdefs.h >>conftest.$ac_ext
  6603 cat >>conftest.$ac_ext <<_ACEOF
  6604 /* end confdefs.h.  */
  6606 #include <libintl.h>
  6608 int
  6609 main ()
  6611 return !dgettext ("","")
  6613   return 0;
  6615 _ACEOF
  6616 rm -f conftest.$ac_objext conftest$ac_exeext
  6617 if { (ac_try="$ac_link"
  6618 case "(($ac_try" in
  6619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6620   *) ac_try_echo=$ac_try;;
  6621 esac
  6622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6623   (eval "$ac_link") 2>conftest.er1
  6624   ac_status=$?
  6625   grep -v '^ *+' conftest.er1 >conftest.err
  6626   rm -f conftest.er1
  6627   cat conftest.err >&5
  6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6629   (exit $ac_status); } && {
  6630 	 test -z "$ac_c_werror_flag" ||
  6631 	 test ! -s conftest.err
  6632        } && test -s conftest$ac_exeext &&
  6633        $as_test_x conftest$ac_exeext; then
  6634   gt_cv_func_dgettext_libc=yes
  6635 else
  6636   echo "$as_me: failed program was:" >&5
  6637 sed 's/^/| /' conftest.$ac_ext >&5
  6639 	gt_cv_func_dgettext_libc=no
  6640 fi
  6642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6643       conftest$ac_exeext conftest.$ac_ext
  6645 fi
  6646 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
  6647 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
  6648       fi
  6650       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  6652 for ac_func in bind_textdomain_codeset
  6653 do
  6654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6658   echo $ECHO_N "(cached) $ECHO_C" >&6
  6659 else
  6660   cat >conftest.$ac_ext <<_ACEOF
  6661 /* confdefs.h.  */
  6662 _ACEOF
  6663 cat confdefs.h >>conftest.$ac_ext
  6664 cat >>conftest.$ac_ext <<_ACEOF
  6665 /* end confdefs.h.  */
  6666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  6668 #define $ac_func innocuous_$ac_func
  6670 /* System header to define __stub macros and hopefully few prototypes,
  6671     which can conflict with char $ac_func (); below.
  6672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6673     <limits.h> exists even on freestanding compilers.  */
  6675 #ifdef __STDC__
  6676 # include <limits.h>
  6677 #else
  6678 # include <assert.h>
  6679 #endif
  6681 #undef $ac_func
  6683 /* Override any GCC internal prototype to avoid an error.
  6684    Use char because int might match the return type of a GCC
  6685    builtin and then its argument prototype would still apply.  */
  6686 #ifdef __cplusplus
  6687 extern "C"
  6688 #endif
  6689 char $ac_func ();
  6690 /* The GNU C library defines this for functions which it implements
  6691     to always fail with ENOSYS.  Some functions are actually named
  6692     something starting with __ and the normal name is an alias.  */
  6693 #if defined __stub_$ac_func || defined __stub___$ac_func
  6694 choke me
  6695 #endif
  6697 int
  6698 main ()
  6700 return $ac_func ();
  6702   return 0;
  6704 _ACEOF
  6705 rm -f conftest.$ac_objext conftest$ac_exeext
  6706 if { (ac_try="$ac_link"
  6707 case "(($ac_try" in
  6708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6709   *) ac_try_echo=$ac_try;;
  6710 esac
  6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6712   (eval "$ac_link") 2>conftest.er1
  6713   ac_status=$?
  6714   grep -v '^ *+' conftest.er1 >conftest.err
  6715   rm -f conftest.er1
  6716   cat conftest.err >&5
  6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6718   (exit $ac_status); } && {
  6719 	 test -z "$ac_c_werror_flag" ||
  6720 	 test ! -s conftest.err
  6721        } && test -s conftest$ac_exeext &&
  6722        $as_test_x conftest$ac_exeext; then
  6723   eval "$as_ac_var=yes"
  6724 else
  6725   echo "$as_me: failed program was:" >&5
  6726 sed 's/^/| /' conftest.$ac_ext >&5
  6728 	eval "$as_ac_var=no"
  6729 fi
  6731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6732       conftest$ac_exeext conftest.$ac_ext
  6733 fi
  6734 ac_res=`eval echo '${'$as_ac_var'}'`
  6735 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  6736 echo "${ECHO_T}$ac_res" >&6; }
  6737 if test `eval echo '${'$as_ac_var'}'` = yes; then
  6738   cat >>confdefs.h <<_ACEOF
  6739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6740 _ACEOF
  6742 fi
  6743 done
  6745       fi
  6748       # If we don't have everything we want, check in libintl
  6750       if test "$gt_cv_func_dgettext_libc" != "yes" \
  6751 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
  6752          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  6754         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&