Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 503:36a668469e37
prev489:45c8ddcf52cb
next509:d72564edc482
author nkeynes
date Thu Nov 08 11:55:47 2007 +0000 (12 years ago)
permissions -rwxr-xr-x
last change Update name + version numbers
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 PKG_CONFIG
   694 PACKAGE_CFLAGS
   695 PACKAGE_LIBS
   696 CDROM_LINUX_TRUE
   697 CDROM_LINUX_FALSE
   698 GETTEXT_PACKAGE
   699 USE_NLS
   700 MSGFMT
   701 GMSGFMT
   702 XGETTEXT
   703 CATALOGS
   704 CATOBJEXT
   705 DATADIRNAME
   706 GMOFILES
   707 INSTOBJEXT
   708 INTLLIBS
   709 PO_IN_DATADIR_TRUE
   710 PO_IN_DATADIR_FALSE
   711 POFILES
   712 POSUB
   713 MKINSTALLDIRS
   714 LIBOBJS
   715 LTLIBOBJS'
   716 ac_subst_files=''
   717       ac_precious_vars='build_alias
   718 host_alias
   719 target_alias
   720 CC
   721 CFLAGS
   722 LDFLAGS
   723 LIBS
   724 CPPFLAGS
   725 CPP
   726 PKG_CONFIG
   727 PACKAGE_CFLAGS
   728 PACKAGE_LIBS'
   731 # Initialize some variables set by options.
   732 ac_init_help=
   733 ac_init_version=false
   734 # The variables have the same names as the options, with
   735 # dashes changed to underlines.
   736 cache_file=/dev/null
   737 exec_prefix=NONE
   738 no_create=
   739 no_recursion=
   740 prefix=NONE
   741 program_prefix=NONE
   742 program_suffix=NONE
   743 program_transform_name=s,x,x,
   744 silent=
   745 site=
   746 srcdir=
   747 verbose=
   748 x_includes=NONE
   749 x_libraries=NONE
   751 # Installation directory options.
   752 # These are left unexpanded so users can "make install exec_prefix=/foo"
   753 # and all the variables that are supposed to be based on exec_prefix
   754 # by default will actually change.
   755 # Use braces instead of parens because sh, perl, etc. also accept them.
   756 # (The list follows the same order as the GNU Coding Standards.)
   757 bindir='${exec_prefix}/bin'
   758 sbindir='${exec_prefix}/sbin'
   759 libexecdir='${exec_prefix}/libexec'
   760 datarootdir='${prefix}/share'
   761 datadir='${datarootdir}'
   762 sysconfdir='${prefix}/etc'
   763 sharedstatedir='${prefix}/com'
   764 localstatedir='${prefix}/var'
   765 includedir='${prefix}/include'
   766 oldincludedir='/usr/include'
   767 docdir='${datarootdir}/doc/${PACKAGE}'
   768 infodir='${datarootdir}/info'
   769 htmldir='${docdir}'
   770 dvidir='${docdir}'
   771 pdfdir='${docdir}'
   772 psdir='${docdir}'
   773 libdir='${exec_prefix}/lib'
   774 localedir='${datarootdir}/locale'
   775 mandir='${datarootdir}/man'
   777 ac_prev=
   778 ac_dashdash=
   779 for ac_option
   780 do
   781   # If the previous option needs an argument, assign it.
   782   if test -n "$ac_prev"; then
   783     eval $ac_prev=\$ac_option
   784     ac_prev=
   785     continue
   786   fi
   788   case $ac_option in
   789   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   790   *)	ac_optarg=yes ;;
   791   esac
   793   # Accept the important Cygnus configure options, so we can diagnose typos.
   795   case $ac_dashdash$ac_option in
   796   --)
   797     ac_dashdash=yes ;;
   799   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   800     ac_prev=bindir ;;
   801   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   802     bindir=$ac_optarg ;;
   804   -build | --build | --buil | --bui | --bu)
   805     ac_prev=build_alias ;;
   806   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   807     build_alias=$ac_optarg ;;
   809   -cache-file | --cache-file | --cache-fil | --cache-fi \
   810   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   811     ac_prev=cache_file ;;
   812   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   813   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   814     cache_file=$ac_optarg ;;
   816   --config-cache | -C)
   817     cache_file=config.cache ;;
   819   -datadir | --datadir | --datadi | --datad)
   820     ac_prev=datadir ;;
   821   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   822     datadir=$ac_optarg ;;
   824   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   825   | --dataroo | --dataro | --datar)
   826     ac_prev=datarootdir ;;
   827   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   828   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   829     datarootdir=$ac_optarg ;;
   831   -disable-* | --disable-*)
   832     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   833     # Reject names that are not valid shell variable names.
   834     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   835       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   836    { (exit 1); exit 1; }; }
   837     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   838     eval enable_$ac_feature=no ;;
   840   -docdir | --docdir | --docdi | --doc | --do)
   841     ac_prev=docdir ;;
   842   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   843     docdir=$ac_optarg ;;
   845   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   846     ac_prev=dvidir ;;
   847   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   848     dvidir=$ac_optarg ;;
   850   -enable-* | --enable-*)
   851     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   852     # Reject names that are not valid shell variable names.
   853     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   854       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   855    { (exit 1); exit 1; }; }
   856     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   857     eval enable_$ac_feature=\$ac_optarg ;;
   859   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   860   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   861   | --exec | --exe | --ex)
   862     ac_prev=exec_prefix ;;
   863   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   864   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   865   | --exec=* | --exe=* | --ex=*)
   866     exec_prefix=$ac_optarg ;;
   868   -gas | --gas | --ga | --g)
   869     # Obsolete; use --with-gas.
   870     with_gas=yes ;;
   872   -help | --help | --hel | --he | -h)
   873     ac_init_help=long ;;
   874   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   875     ac_init_help=recursive ;;
   876   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   877     ac_init_help=short ;;
   879   -host | --host | --hos | --ho)
   880     ac_prev=host_alias ;;
   881   -host=* | --host=* | --hos=* | --ho=*)
   882     host_alias=$ac_optarg ;;
   884   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   885     ac_prev=htmldir ;;
   886   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   887   | --ht=*)
   888     htmldir=$ac_optarg ;;
   890   -includedir | --includedir | --includedi | --included | --include \
   891   | --includ | --inclu | --incl | --inc)
   892     ac_prev=includedir ;;
   893   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   894   | --includ=* | --inclu=* | --incl=* | --inc=*)
   895     includedir=$ac_optarg ;;
   897   -infodir | --infodir | --infodi | --infod | --info | --inf)
   898     ac_prev=infodir ;;
   899   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   900     infodir=$ac_optarg ;;
   902   -libdir | --libdir | --libdi | --libd)
   903     ac_prev=libdir ;;
   904   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   905     libdir=$ac_optarg ;;
   907   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   908   | --libexe | --libex | --libe)
   909     ac_prev=libexecdir ;;
   910   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   911   | --libexe=* | --libex=* | --libe=*)
   912     libexecdir=$ac_optarg ;;
   914   -localedir | --localedir | --localedi | --localed | --locale)
   915     ac_prev=localedir ;;
   916   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   917     localedir=$ac_optarg ;;
   919   -localstatedir | --localstatedir | --localstatedi | --localstated \
   920   | --localstate | --localstat | --localsta | --localst | --locals)
   921     ac_prev=localstatedir ;;
   922   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   923   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   924     localstatedir=$ac_optarg ;;
   926   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   927     ac_prev=mandir ;;
   928   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   929     mandir=$ac_optarg ;;
   931   -nfp | --nfp | --nf)
   932     # Obsolete; use --without-fp.
   933     with_fp=no ;;
   935   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   936   | --no-cr | --no-c | -n)
   937     no_create=yes ;;
   939   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   940   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   941     no_recursion=yes ;;
   943   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   944   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   945   | --oldin | --oldi | --old | --ol | --o)
   946     ac_prev=oldincludedir ;;
   947   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   948   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   949   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   950     oldincludedir=$ac_optarg ;;
   952   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   953     ac_prev=prefix ;;
   954   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   955     prefix=$ac_optarg ;;
   957   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   958   | --program-pre | --program-pr | --program-p)
   959     ac_prev=program_prefix ;;
   960   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   961   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   962     program_prefix=$ac_optarg ;;
   964   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   965   | --program-suf | --program-su | --program-s)
   966     ac_prev=program_suffix ;;
   967   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   968   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   969     program_suffix=$ac_optarg ;;
   971   -program-transform-name | --program-transform-name \
   972   | --program-transform-nam | --program-transform-na \
   973   | --program-transform-n | --program-transform- \
   974   | --program-transform | --program-transfor \
   975   | --program-transfo | --program-transf \
   976   | --program-trans | --program-tran \
   977   | --progr-tra | --program-tr | --program-t)
   978     ac_prev=program_transform_name ;;
   979   -program-transform-name=* | --program-transform-name=* \
   980   | --program-transform-nam=* | --program-transform-na=* \
   981   | --program-transform-n=* | --program-transform-=* \
   982   | --program-transform=* | --program-transfor=* \
   983   | --program-transfo=* | --program-transf=* \
   984   | --program-trans=* | --program-tran=* \
   985   | --progr-tra=* | --program-tr=* | --program-t=*)
   986     program_transform_name=$ac_optarg ;;
   988   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   989     ac_prev=pdfdir ;;
   990   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   991     pdfdir=$ac_optarg ;;
   993   -psdir | --psdir | --psdi | --psd | --ps)
   994     ac_prev=psdir ;;
   995   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   996     psdir=$ac_optarg ;;
   998   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   999   | -silent | --silent | --silen | --sile | --sil)
  1000     silent=yes ;;
  1002   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1003     ac_prev=sbindir ;;
  1004   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1005   | --sbi=* | --sb=*)
  1006     sbindir=$ac_optarg ;;
  1008   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1009   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1010   | --sharedst | --shareds | --shared | --share | --shar \
  1011   | --sha | --sh)
  1012     ac_prev=sharedstatedir ;;
  1013   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1014   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1015   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1016   | --sha=* | --sh=*)
  1017     sharedstatedir=$ac_optarg ;;
  1019   -site | --site | --sit)
  1020     ac_prev=site ;;
  1021   -site=* | --site=* | --sit=*)
  1022     site=$ac_optarg ;;
  1024   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1025     ac_prev=srcdir ;;
  1026   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1027     srcdir=$ac_optarg ;;
  1029   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1030   | --syscon | --sysco | --sysc | --sys | --sy)
  1031     ac_prev=sysconfdir ;;
  1032   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1033   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1034     sysconfdir=$ac_optarg ;;
  1036   -target | --target | --targe | --targ | --tar | --ta | --t)
  1037     ac_prev=target_alias ;;
  1038   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1039     target_alias=$ac_optarg ;;
  1041   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1042     verbose=yes ;;
  1044   -version | --version | --versio | --versi | --vers | -V)
  1045     ac_init_version=: ;;
  1047   -with-* | --with-*)
  1048     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1049     # Reject names that are not valid shell variable names.
  1050     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1051       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1052    { (exit 1); exit 1; }; }
  1053     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1054     eval with_$ac_package=\$ac_optarg ;;
  1056   -without-* | --without-*)
  1057     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1058     # Reject names that are not valid shell variable names.
  1059     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1060       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1061    { (exit 1); exit 1; }; }
  1062     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1063     eval with_$ac_package=no ;;
  1065   --x)
  1066     # Obsolete; use --with-x.
  1067     with_x=yes ;;
  1069   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1070   | --x-incl | --x-inc | --x-in | --x-i)
  1071     ac_prev=x_includes ;;
  1072   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1073   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1074     x_includes=$ac_optarg ;;
  1076   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1077   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1078     ac_prev=x_libraries ;;
  1079   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1080   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1081     x_libraries=$ac_optarg ;;
  1083   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1084 Try \`$0 --help' for more information." >&2
  1085    { (exit 1); exit 1; }; }
  1086     ;;
  1088   *=*)
  1089     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1090     # Reject names that are not valid shell variable names.
  1091     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1092       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1093    { (exit 1); exit 1; }; }
  1094     eval $ac_envvar=\$ac_optarg
  1095     export $ac_envvar ;;
  1097   *)
  1098     # FIXME: should be removed in autoconf 3.0.
  1099     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1100     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1101       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1102     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1103     ;;
  1105   esac
  1106 done
  1108 if test -n "$ac_prev"; then
  1109   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1110   { echo "$as_me: error: missing argument to $ac_option" >&2
  1111    { (exit 1); exit 1; }; }
  1112 fi
  1114 # Be sure to have absolute directory names.
  1115 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1116 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1117 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1118 		libdir localedir mandir
  1119 do
  1120   eval ac_val=\$$ac_var
  1121   case $ac_val in
  1122     [\\/$]* | ?:[\\/]* )  continue;;
  1123     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1124   esac
  1125   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1126    { (exit 1); exit 1; }; }
  1127 done
  1129 # There might be people who depend on the old broken behavior: `$host'
  1130 # used to hold the argument of --host etc.
  1131 # FIXME: To remove some day.
  1132 build=$build_alias
  1133 host=$host_alias
  1134 target=$target_alias
  1136 # FIXME: To remove some day.
  1137 if test "x$host_alias" != x; then
  1138   if test "x$build_alias" = x; then
  1139     cross_compiling=maybe
  1140     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1141     If a cross compiler is detected then cross compile mode will be used." >&2
  1142   elif test "x$build_alias" != "x$host_alias"; then
  1143     cross_compiling=yes
  1144   fi
  1145 fi
  1147 ac_tool_prefix=
  1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1150 test "$silent" = yes && exec 6>/dev/null
  1153 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1154 ac_ls_di=`ls -di .` &&
  1155 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1156   { echo "$as_me: error: Working directory cannot be determined" >&2
  1157    { (exit 1); exit 1; }; }
  1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1159   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1160    { (exit 1); exit 1; }; }
  1163 # Find the source files, if location was not specified.
  1164 if test -z "$srcdir"; then
  1165   ac_srcdir_defaulted=yes
  1166   # Try the directory containing this script, then the parent directory.
  1167   ac_confdir=`$as_dirname -- "$0" ||
  1168 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1169 	 X"$0" : 'X\(//\)[^/]' \| \
  1170 	 X"$0" : 'X\(//\)$' \| \
  1171 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1172 echo X"$0" |
  1173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1174 	    s//\1/
  1177 	  /^X\(\/\/\)[^/].*/{
  1178 	    s//\1/
  1181 	  /^X\(\/\/\)$/{
  1182 	    s//\1/
  1185 	  /^X\(\/\).*/{
  1186 	    s//\1/
  1189 	  s/.*/./; q'`
  1190   srcdir=$ac_confdir
  1191   if test ! -r "$srcdir/$ac_unique_file"; then
  1192     srcdir=..
  1193   fi
  1194 else
  1195   ac_srcdir_defaulted=no
  1196 fi
  1197 if test ! -r "$srcdir/$ac_unique_file"; then
  1198   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1199   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1200    { (exit 1); exit 1; }; }
  1201 fi
  1202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1203 ac_abs_confdir=`(
  1204 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1205    { (exit 1); exit 1; }; }
  1206 	pwd)`
  1207 # When building in place, set srcdir=.
  1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1209   srcdir=.
  1210 fi
  1211 # Remove unnecessary trailing slashes from srcdir.
  1212 # Double slashes in file names in object file debugging info
  1213 # mess up M-x gdb in Emacs.
  1214 case $srcdir in
  1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1216 esac
  1217 for ac_var in $ac_precious_vars; do
  1218   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1219   eval ac_env_${ac_var}_value=\$${ac_var}
  1220   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1221   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1222 done
  1225 # Report the --help message.
  1227 if test "$ac_init_help" = "long"; then
  1228   # Omit some internal or obsolete options to make the list less imposing.
  1229   # This message is too long to be a string in the A/UX 3.1 sh.
  1230   cat <<_ACEOF
  1231 \`configure' configures this package to adapt to many kinds of systems.
  1233 Usage: $0 [OPTION]... [VAR=VALUE]...
  1235 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1236 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1238 Defaults for the options are specified in brackets.
  1240 Configuration:
  1241   -h, --help              display this help and exit
  1242       --help=short        display options specific to this package
  1243       --help=recursive    display the short help of all the included packages
  1244   -V, --version           display version information and exit
  1245   -q, --quiet, --silent   do not print \`checking...' messages
  1246       --cache-file=FILE   cache test results in FILE [disabled]
  1247   -C, --config-cache      alias for \`--cache-file=config.cache'
  1248   -n, --no-create         do not create output files
  1249       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1251 Installation directories:
  1252   --prefix=PREFIX         install architecture-independent files in PREFIX
  1253 			  [$ac_default_prefix]
  1254   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1255 			  [PREFIX]
  1257 By default, \`make install' will install all the files in
  1258 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1259 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1260 for instance \`--prefix=\$HOME'.
  1262 For better control, use the options below.
  1264 Fine tuning of the installation directories:
  1265   --bindir=DIR           user executables [EPREFIX/bin]
  1266   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1267   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1268   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1269   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1270   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1271   --libdir=DIR           object code libraries [EPREFIX/lib]
  1272   --includedir=DIR       C header files [PREFIX/include]
  1273   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1274   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1275   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1276   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1277   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1278   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1279   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1280   --htmldir=DIR          html documentation [DOCDIR]
  1281   --dvidir=DIR           dvi documentation [DOCDIR]
  1282   --pdfdir=DIR           pdf documentation [DOCDIR]
  1283   --psdir=DIR            ps documentation [DOCDIR]
  1284 _ACEOF
  1286   cat <<\_ACEOF
  1288 Program names:
  1289   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1290   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1291   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1292 _ACEOF
  1293 fi
  1295 if test -n "$ac_init_help"; then
  1297   cat <<\_ACEOF
  1299 Optional Features:
  1300   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1301   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1302   --enable-maintainer-mode enable make rules and dependencies not useful
  1303                           (and sometimes confusing) to the casual installer
  1304   --disable-dependency-tracking Speeds up one-time builds
  1305   --enable-dependency-tracking  Do not reject slow dependency extractors
  1307 Some influential environment variables:
  1308   CC          C compiler command
  1309   CFLAGS      C compiler flags
  1310   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1311               nonstandard directory <lib dir>
  1312   LIBS        libraries to pass to the linker, e.g. -l<library>
  1313   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1314               you have headers in a nonstandard directory <include dir>
  1315   CPP         C preprocessor
  1316   PKG_CONFIG  path to pkg-config utility
  1317   PACKAGE_CFLAGS
  1318               C compiler flags for PACKAGE, overriding pkg-config
  1319   PACKAGE_LIBS
  1320               linker flags for PACKAGE, overriding pkg-config
  1322 Use these variables to override the choices made by `configure' or to help
  1323 it to find libraries and programs with nonstandard names/locations.
  1325 _ACEOF
  1326 ac_status=$?
  1327 fi
  1329 if test "$ac_init_help" = "recursive"; then
  1330   # If there are subdirs, report their specific --help.
  1331   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1332     test -d "$ac_dir" || continue
  1333     ac_builddir=.
  1335 case "$ac_dir" in
  1336 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1337 *)
  1338   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1339   # A ".." for each directory in $ac_dir_suffix.
  1340   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1341   case $ac_top_builddir_sub in
  1342   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1343   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1344   esac ;;
  1345 esac
  1346 ac_abs_top_builddir=$ac_pwd
  1347 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1348 # for backward compatibility:
  1349 ac_top_builddir=$ac_top_build_prefix
  1351 case $srcdir in
  1352   .)  # We are building in place.
  1353     ac_srcdir=.
  1354     ac_top_srcdir=$ac_top_builddir_sub
  1355     ac_abs_top_srcdir=$ac_pwd ;;
  1356   [\\/]* | ?:[\\/]* )  # Absolute name.
  1357     ac_srcdir=$srcdir$ac_dir_suffix;
  1358     ac_top_srcdir=$srcdir
  1359     ac_abs_top_srcdir=$srcdir ;;
  1360   *) # Relative name.
  1361     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1362     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1363     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1364 esac
  1365 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1367     cd "$ac_dir" || { ac_status=$?; continue; }
  1368     # Check for guested configure.
  1369     if test -f "$ac_srcdir/configure.gnu"; then
  1370       echo &&
  1371       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1372     elif test -f "$ac_srcdir/configure"; then
  1373       echo &&
  1374       $SHELL "$ac_srcdir/configure" --help=recursive
  1375     else
  1376       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1377     fi || ac_status=$?
  1378     cd "$ac_pwd" || { ac_status=$?; break; }
  1379   done
  1380 fi
  1382 test -n "$ac_init_help" && exit $ac_status
  1383 if $ac_init_version; then
  1384   cat <<\_ACEOF
  1385 configure
  1386 generated by GNU Autoconf 2.61
  1388 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1389 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1390 This configure script is free software; the Free Software Foundation
  1391 gives unlimited permission to copy, distribute and modify it.
  1392 _ACEOF
  1393   exit
  1394 fi
  1395 cat >config.log <<_ACEOF
  1396 This file contains any messages produced by compilers while
  1397 running configure, to aid debugging if configure makes a mistake.
  1399 It was created by $as_me, which was
  1400 generated by GNU Autoconf 2.61.  Invocation command line was
  1402   $ $0 $@
  1404 _ACEOF
  1405 exec 5>>config.log
  1407 cat <<_ASUNAME
  1408 ## --------- ##
  1409 ## Platform. ##
  1410 ## --------- ##
  1412 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1413 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1414 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1415 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1416 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1418 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1419 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1421 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1422 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1423 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1424 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1425 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1426 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1427 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1429 _ASUNAME
  1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1432 for as_dir in $PATH
  1433 do
  1434   IFS=$as_save_IFS
  1435   test -z "$as_dir" && as_dir=.
  1436   echo "PATH: $as_dir"
  1437 done
  1438 IFS=$as_save_IFS
  1440 } >&5
  1442 cat >&5 <<_ACEOF
  1445 ## ----------- ##
  1446 ## Core tests. ##
  1447 ## ----------- ##
  1449 _ACEOF
  1452 # Keep a trace of the command line.
  1453 # Strip out --no-create and --no-recursion so they do not pile up.
  1454 # Strip out --silent because we don't want to record it for future runs.
  1455 # Also quote any args containing shell meta-characters.
  1456 # Make two passes to allow for proper duplicate-argument suppression.
  1457 ac_configure_args=
  1458 ac_configure_args0=
  1459 ac_configure_args1=
  1460 ac_must_keep_next=false
  1461 for ac_pass in 1 2
  1462 do
  1463   for ac_arg
  1464   do
  1465     case $ac_arg in
  1466     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1467     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1468     | -silent | --silent | --silen | --sile | --sil)
  1469       continue ;;
  1470     *\'*)
  1471       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1472     esac
  1473     case $ac_pass in
  1474     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1475     2)
  1476       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1477       if test $ac_must_keep_next = true; then
  1478 	ac_must_keep_next=false # Got value, back to normal.
  1479       else
  1480 	case $ac_arg in
  1481 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1482 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1483 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1484 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1485 	    case "$ac_configure_args0 " in
  1486 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1487 	    esac
  1488 	    ;;
  1489 	  -* ) ac_must_keep_next=true ;;
  1490 	esac
  1491       fi
  1492       ac_configure_args="$ac_configure_args '$ac_arg'"
  1493       ;;
  1494     esac
  1495   done
  1496 done
  1497 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1498 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1500 # When interrupted or exit'd, cleanup temporary files, and complete
  1501 # config.log.  We remove comments because anyway the quotes in there
  1502 # would cause problems or look ugly.
  1503 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1504 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1505 trap 'exit_status=$?
  1506   # Save into config.log some information that might help in debugging.
  1508     echo
  1510     cat <<\_ASBOX
  1511 ## ---------------- ##
  1512 ## Cache variables. ##
  1513 ## ---------------- ##
  1514 _ASBOX
  1515     echo
  1516     # The following way of writing the cache mishandles newlines in values,
  1518   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1519     eval ac_val=\$$ac_var
  1520     case $ac_val in #(
  1521     *${as_nl}*)
  1522       case $ac_var in #(
  1523       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1524 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1525       esac
  1526       case $ac_var in #(
  1527       _ | IFS | as_nl) ;; #(
  1528       *) $as_unset $ac_var ;;
  1529       esac ;;
  1530     esac
  1531   done
  1532   (set) 2>&1 |
  1533     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1534     *${as_nl}ac_space=\ *)
  1535       sed -n \
  1536 	"s/'\''/'\''\\\\'\'''\''/g;
  1537 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1538       ;; #(
  1539     *)
  1540       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1541       ;;
  1542     esac |
  1543     sort
  1545     echo
  1547     cat <<\_ASBOX
  1548 ## ----------------- ##
  1549 ## Output variables. ##
  1550 ## ----------------- ##
  1551 _ASBOX
  1552     echo
  1553     for ac_var in $ac_subst_vars
  1554     do
  1555       eval ac_val=\$$ac_var
  1556       case $ac_val in
  1557       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1558       esac
  1559       echo "$ac_var='\''$ac_val'\''"
  1560     done | sort
  1561     echo
  1563     if test -n "$ac_subst_files"; then
  1564       cat <<\_ASBOX
  1565 ## ------------------- ##
  1566 ## File substitutions. ##
  1567 ## ------------------- ##
  1568 _ASBOX
  1569       echo
  1570       for ac_var in $ac_subst_files
  1571       do
  1572 	eval ac_val=\$$ac_var
  1573 	case $ac_val in
  1574 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1575 	esac
  1576 	echo "$ac_var='\''$ac_val'\''"
  1577       done | sort
  1578       echo
  1579     fi
  1581     if test -s confdefs.h; then
  1582       cat <<\_ASBOX
  1583 ## ----------- ##
  1584 ## confdefs.h. ##
  1585 ## ----------- ##
  1586 _ASBOX
  1587       echo
  1588       cat confdefs.h
  1589       echo
  1590     fi
  1591     test "$ac_signal" != 0 &&
  1592       echo "$as_me: caught signal $ac_signal"
  1593     echo "$as_me: exit $exit_status"
  1594   } >&5
  1595   rm -f core *.core core.conftest.* &&
  1596     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1597     exit $exit_status
  1598 ' 0
  1599 for ac_signal in 1 2 13 15; do
  1600   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1601 done
  1602 ac_signal=0
  1604 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1605 rm -f -r conftest* confdefs.h
  1607 # Predefined preprocessor variables.
  1609 cat >>confdefs.h <<_ACEOF
  1610 #define PACKAGE_NAME "$PACKAGE_NAME"
  1611 _ACEOF
  1614 cat >>confdefs.h <<_ACEOF
  1615 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1616 _ACEOF
  1619 cat >>confdefs.h <<_ACEOF
  1620 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1621 _ACEOF
  1624 cat >>confdefs.h <<_ACEOF
  1625 #define PACKAGE_STRING "$PACKAGE_STRING"
  1626 _ACEOF
  1629 cat >>confdefs.h <<_ACEOF
  1630 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1631 _ACEOF
  1634 # Let the site file select an alternate cache file if it wants to.
  1635 # Prefer explicitly selected file to automatically selected ones.
  1636 if test -n "$CONFIG_SITE"; then
  1637   set x "$CONFIG_SITE"
  1638 elif test "x$prefix" != xNONE; then
  1639   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1640 else
  1641   set x "$ac_default_prefix/share/config.site" \
  1642 	"$ac_default_prefix/etc/config.site"
  1643 fi
  1644 shift
  1645 for ac_site_file
  1646 do
  1647   if test -r "$ac_site_file"; then
  1648     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1649 echo "$as_me: loading site script $ac_site_file" >&6;}
  1650     sed 's/^/| /' "$ac_site_file" >&5
  1651     . "$ac_site_file"
  1652   fi
  1653 done
  1655 if test -r "$cache_file"; then
  1656   # Some versions of bash will fail to source /dev/null (special
  1657   # files actually), so we avoid doing that.
  1658   if test -f "$cache_file"; then
  1659     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1660 echo "$as_me: loading cache $cache_file" >&6;}
  1661     case $cache_file in
  1662       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1663       *)                      . "./$cache_file";;
  1664     esac
  1665   fi
  1666 else
  1667   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1668 echo "$as_me: creating cache $cache_file" >&6;}
  1669   >$cache_file
  1670 fi
  1672 # Check that the precious variables saved in the cache have kept the same
  1673 # value.
  1674 ac_cache_corrupted=false
  1675 for ac_var in $ac_precious_vars; do
  1676   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1677   eval ac_new_set=\$ac_env_${ac_var}_set
  1678   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1679   eval ac_new_val=\$ac_env_${ac_var}_value
  1680   case $ac_old_set,$ac_new_set in
  1681     set,)
  1682       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1683 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1684       ac_cache_corrupted=: ;;
  1685     ,set)
  1686       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1687 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1688       ac_cache_corrupted=: ;;
  1689     ,);;
  1690     *)
  1691       if test "x$ac_old_val" != "x$ac_new_val"; then
  1692 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1693 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1694 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1695 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1696 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1697 echo "$as_me:   current value: $ac_new_val" >&2;}
  1698 	ac_cache_corrupted=:
  1699       fi;;
  1700   esac
  1701   # Pass precious variables to config.status.
  1702   if test "$ac_new_set" = set; then
  1703     case $ac_new_val in
  1704     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1705     *) ac_arg=$ac_var=$ac_new_val ;;
  1706     esac
  1707     case " $ac_configure_args " in
  1708       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1709       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1710     esac
  1711   fi
  1712 done
  1713 if $ac_cache_corrupted; then
  1714   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1715 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1716   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1717 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1718    { (exit 1); exit 1; }; }
  1719 fi
  1737 ac_ext=c
  1738 ac_cpp='$CPP $CPPFLAGS'
  1739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1744 am__api_version="1.7"
  1745 ac_aux_dir=
  1746 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1747   if test -f "$ac_dir/install-sh"; then
  1748     ac_aux_dir=$ac_dir
  1749     ac_install_sh="$ac_aux_dir/install-sh -c"
  1750     break
  1751   elif test -f "$ac_dir/install.sh"; then
  1752     ac_aux_dir=$ac_dir
  1753     ac_install_sh="$ac_aux_dir/install.sh -c"
  1754     break
  1755   elif test -f "$ac_dir/shtool"; then
  1756     ac_aux_dir=$ac_dir
  1757     ac_install_sh="$ac_aux_dir/shtool install -c"
  1758     break
  1759   fi
  1760 done
  1761 if test -z "$ac_aux_dir"; then
  1762   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1763 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1764    { (exit 1); exit 1; }; }
  1765 fi
  1767 # These three variables are undocumented and unsupported,
  1768 # and are intended to be withdrawn in a future Autoconf release.
  1769 # They can cause serious problems if a builder's source tree is in a directory
  1770 # whose full name contains unusual characters.
  1771 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1772 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1773 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1776 # Find a good install program.  We prefer a C program (faster),
  1777 # so one script is as good as another.  But avoid the broken or
  1778 # incompatible versions:
  1779 # SysV /etc/install, /usr/sbin/install
  1780 # SunOS /usr/etc/install
  1781 # IRIX /sbin/install
  1782 # AIX /bin/install
  1783 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1784 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1785 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1786 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1787 # OS/2's system install, which has a completely different semantic
  1788 # ./install, which can be erroneously created by make from ./install.sh.
  1789 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1790 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1791 if test -z "$INSTALL"; then
  1792 if test "${ac_cv_path_install+set}" = set; then
  1793   echo $ECHO_N "(cached) $ECHO_C" >&6
  1794 else
  1795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1796 for as_dir in $PATH
  1797 do
  1798   IFS=$as_save_IFS
  1799   test -z "$as_dir" && as_dir=.
  1800   # Account for people who put trailing slashes in PATH elements.
  1801 case $as_dir/ in
  1802   ./ | .// | /cC/* | \
  1803   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1804   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1805   /usr/ucb/* ) ;;
  1806   *)
  1807     # OSF1 and SCO ODT 3.0 have their own names for install.
  1808     # Don't use installbsd from OSF since it installs stuff as root
  1809     # by default.
  1810     for ac_prog in ginstall scoinst install; do
  1811       for ac_exec_ext in '' $ac_executable_extensions; do
  1812 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1813 	  if test $ac_prog = install &&
  1814 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1815 	    # AIX install.  It has an incompatible calling convention.
  1817 	  elif test $ac_prog = install &&
  1818 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1819 	    # program-specific install script used by HP pwplus--don't use.
  1821 	  else
  1822 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1823 	    break 3
  1824 	  fi
  1825 	fi
  1826       done
  1827     done
  1828     ;;
  1829 esac
  1830 done
  1831 IFS=$as_save_IFS
  1834 fi
  1835   if test "${ac_cv_path_install+set}" = set; then
  1836     INSTALL=$ac_cv_path_install
  1837   else
  1838     # As a last resort, use the slow shell script.  Don't cache a
  1839     # value for INSTALL within a source directory, because that will
  1840     # break other packages using the cache if that directory is
  1841     # removed, or if the value is a relative name.
  1842     INSTALL=$ac_install_sh
  1843   fi
  1844 fi
  1845 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1846 echo "${ECHO_T}$INSTALL" >&6; }
  1848 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1849 # It thinks the first close brace ends the variable substitution.
  1850 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1852 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1854 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1856 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1857 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1858 # Just in case
  1859 sleep 1
  1860 echo timestamp > conftest.file
  1861 # Do `set' in a subshell so we don't clobber the current shell's
  1862 # arguments.  Must try -L first in case configure is actually a
  1863 # symlink; some systems play weird games with the mod time of symlinks
  1864 # (eg FreeBSD returns the mod time of the symlink's containing
  1865 # directory).
  1866 if (
  1867    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1868    if test "$*" = "X"; then
  1869       # -L didn't work.
  1870       set X `ls -t $srcdir/configure conftest.file`
  1871    fi
  1872    rm -f conftest.file
  1873    if test "$*" != "X $srcdir/configure conftest.file" \
  1874       && test "$*" != "X conftest.file $srcdir/configure"; then
  1876       # If neither matched, then we have a broken ls.  This can happen
  1877       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1878       # broken ls alias from the environment.  This has actually
  1879       # happened.  Such a system could not be considered "sane".
  1880       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1881 alias in your environment" >&5
  1882 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1883 alias in your environment" >&2;}
  1884    { (exit 1); exit 1; }; }
  1885    fi
  1887    test "$2" = conftest.file
  1889 then
  1890    # Ok.
  1892 else
  1893    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1894 Check your system clock" >&5
  1895 echo "$as_me: error: newly created file is older than distributed files!
  1896 Check your system clock" >&2;}
  1897    { (exit 1); exit 1; }; }
  1898 fi
  1899 { echo "$as_me:$LINENO: result: yes" >&5
  1900 echo "${ECHO_T}yes" >&6; }
  1901 test "$program_prefix" != NONE &&
  1902   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1903 # Use a double $ so make ignores it.
  1904 test "$program_suffix" != NONE &&
  1905   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1906 # Double any \ or $.  echo might interpret backslashes.
  1907 # By default was `s,x,x', remove it if useless.
  1908 cat <<\_ACEOF >conftest.sed
  1909 s/[\\$]/&&/g;s/;s,x,x,$//
  1910 _ACEOF
  1911 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1912 rm -f conftest.sed
  1915 # expand $ac_aux_dir to an absolute path
  1916 am_aux_dir=`cd $ac_aux_dir && pwd`
  1918 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1919 # Use eval to expand $SHELL
  1920 if eval "$MISSING --run true"; then
  1921   am_missing_run="$MISSING --run "
  1922 else
  1923   am_missing_run=
  1924   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1925 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1926 fi
  1928 for ac_prog in gawk mawk nawk awk
  1929 do
  1930   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1931 set dummy $ac_prog; ac_word=$2
  1932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1934 if test "${ac_cv_prog_AWK+set}" = set; then
  1935   echo $ECHO_N "(cached) $ECHO_C" >&6
  1936 else
  1937   if test -n "$AWK"; then
  1938   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1939 else
  1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1941 for as_dir in $PATH
  1942 do
  1943   IFS=$as_save_IFS
  1944   test -z "$as_dir" && as_dir=.
  1945   for ac_exec_ext in '' $ac_executable_extensions; do
  1946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1947     ac_cv_prog_AWK="$ac_prog"
  1948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1949     break 2
  1950   fi
  1951 done
  1952 done
  1953 IFS=$as_save_IFS
  1955 fi
  1956 fi
  1957 AWK=$ac_cv_prog_AWK
  1958 if test -n "$AWK"; then
  1959   { echo "$as_me:$LINENO: result: $AWK" >&5
  1960 echo "${ECHO_T}$AWK" >&6; }
  1961 else
  1962   { echo "$as_me:$LINENO: result: no" >&5
  1963 echo "${ECHO_T}no" >&6; }
  1964 fi
  1967   test -n "$AWK" && break
  1968 done
  1970 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1971 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1972 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1973 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1974   echo $ECHO_N "(cached) $ECHO_C" >&6
  1975 else
  1976   cat >conftest.make <<\_ACEOF
  1977 SHELL = /bin/sh
  1978 all:
  1979 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  1980 _ACEOF
  1981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1982 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1983   *@@@%%%=?*=@@@%%%*)
  1984     eval ac_cv_prog_make_${ac_make}_set=yes;;
  1985   *)
  1986     eval ac_cv_prog_make_${ac_make}_set=no;;
  1987 esac
  1988 rm -f conftest.make
  1989 fi
  1990 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1991   { echo "$as_me:$LINENO: result: yes" >&5
  1992 echo "${ECHO_T}yes" >&6; }
  1993   SET_MAKE=
  1994 else
  1995   { echo "$as_me:$LINENO: result: no" >&5
  1996 echo "${ECHO_T}no" >&6; }
  1997   SET_MAKE="MAKE=${MAKE-make}"
  1998 fi
  2000 rm -rf .tst 2>/dev/null
  2001 mkdir .tst 2>/dev/null
  2002 if test -d .tst; then
  2003   am__leading_dot=.
  2004 else
  2005   am__leading_dot=_
  2006 fi
  2007 rmdir .tst 2>/dev/null
  2009  # test to see if srcdir already configured
  2010 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2011    test -f $srcdir/config.status; then
  2012   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2013 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2014    { (exit 1); exit 1; }; }
  2015 fi
  2017 # test whether we have cygpath
  2018 if test -z "$CYGPATH_W"; then
  2019   if (cygpath --version) >/dev/null 2>/dev/null; then
  2020     CYGPATH_W='cygpath -w'
  2021   else
  2022     CYGPATH_W=echo
  2023   fi
  2024 fi
  2027 # Define the identity of the package.
  2028  PACKAGE=lxdream
  2029  VERSION=0.8
  2032 cat >>confdefs.h <<_ACEOF
  2033 #define PACKAGE "$PACKAGE"
  2034 _ACEOF
  2037 cat >>confdefs.h <<_ACEOF
  2038 #define VERSION "$VERSION"
  2039 _ACEOF
  2041 # Some tools Automake needs.
  2043 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2046 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2049 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2052 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2055 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2058 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2060 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2062 # Installed binaries are usually stripped using `strip' when the user
  2063 # run `make install-strip'.  However `strip' might not be the right
  2064 # tool to use in cross-compilation environments, therefore Automake
  2065 # will honor the `STRIP' environment variable to overrule this program.
  2066 if test "$cross_compiling" != no; then
  2067   if test -n "$ac_tool_prefix"; then
  2068   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2069 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2072 if test "${ac_cv_prog_STRIP+set}" = set; then
  2073   echo $ECHO_N "(cached) $ECHO_C" >&6
  2074 else
  2075   if test -n "$STRIP"; then
  2076   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2077 else
  2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2079 for as_dir in $PATH
  2080 do
  2081   IFS=$as_save_IFS
  2082   test -z "$as_dir" && as_dir=.
  2083   for ac_exec_ext in '' $ac_executable_extensions; do
  2084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2085     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2087     break 2
  2088   fi
  2089 done
  2090 done
  2091 IFS=$as_save_IFS
  2093 fi
  2094 fi
  2095 STRIP=$ac_cv_prog_STRIP
  2096 if test -n "$STRIP"; then
  2097   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2098 echo "${ECHO_T}$STRIP" >&6; }
  2099 else
  2100   { echo "$as_me:$LINENO: result: no" >&5
  2101 echo "${ECHO_T}no" >&6; }
  2102 fi
  2105 fi
  2106 if test -z "$ac_cv_prog_STRIP"; then
  2107   ac_ct_STRIP=$STRIP
  2108   # Extract the first word of "strip", so it can be a program name with args.
  2109 set dummy 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_ac_ct_STRIP+set}" = set; then
  2113   echo $ECHO_N "(cached) $ECHO_C" >&6
  2114 else
  2115   if test -n "$ac_ct_STRIP"; then
  2116   ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2136 if test -n "$ac_ct_STRIP"; then
  2137   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2138 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2139 else
  2140   { echo "$as_me:$LINENO: result: no" >&5
  2141 echo "${ECHO_T}no" >&6; }
  2142 fi
  2144   if test "x$ac_ct_STRIP" = x; then
  2145     STRIP=":"
  2146   else
  2147     case $cross_compiling:$ac_tool_warned in
  2148 yes:)
  2149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2150 whose name does not start with the host triplet.  If you think this
  2151 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2153 whose name does not start with the host triplet.  If you think this
  2154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2155 ac_tool_warned=yes ;;
  2156 esac
  2157     STRIP=$ac_ct_STRIP
  2158   fi
  2159 else
  2160   STRIP="$ac_cv_prog_STRIP"
  2161 fi
  2163 fi
  2164 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2166 # We need awk for the "check" target.  The system "awk" is bad on
  2167 # some platforms.
  2171 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2172 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2173     # Check whether --enable-maintainer-mode was given.
  2174 if test "${enable_maintainer_mode+set}" = set; then
  2175   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2176 else
  2177   USE_MAINTAINER_MODE=no
  2178 fi
  2180   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2181 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2184 if test $USE_MAINTAINER_MODE = yes; then
  2185   MAINTAINER_MODE_TRUE=
  2186   MAINTAINER_MODE_FALSE='#'
  2187 else
  2188   MAINTAINER_MODE_TRUE='#'
  2189   MAINTAINER_MODE_FALSE=
  2190 fi
  2192   MAINT=$MAINTAINER_MODE_TRUE
  2195 ac_config_headers="$ac_config_headers config.h"
  2198 DEPDIR="${am__leading_dot}deps"
  2200 ac_config_commands="$ac_config_commands depfiles"
  2203 am_make=${MAKE-make}
  2204 cat > confinc << 'END'
  2205 am__doit:
  2206 	@echo done
  2207 .PHONY: am__doit
  2208 END
  2209 # If we don't find an include directive, just comment out the code.
  2210 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2211 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2212 am__include="#"
  2213 am__quote=
  2214 _am_result=none
  2215 # First try GNU make style include.
  2216 echo "include confinc" > confmf
  2217 # We grep out `Entering directory' and `Leaving directory'
  2218 # messages which can occur if `w' ends up in MAKEFLAGS.
  2219 # In particular we don't look at `^make:' because GNU make might
  2220 # be invoked under some other name (usually "gmake"), in which
  2221 # case it prints its new name instead of `make'.
  2222 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2223    am__include=include
  2224    am__quote=
  2225    _am_result=GNU
  2226 fi
  2227 # Now try BSD make style include.
  2228 if test "$am__include" = "#"; then
  2229    echo '.include "confinc"' > confmf
  2230    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2231       am__include=.include
  2232       am__quote="\""
  2233       _am_result=BSD
  2234    fi
  2235 fi
  2238 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2239 echo "${ECHO_T}$_am_result" >&6; }
  2240 rm -f confinc confmf
  2242 # Check whether --enable-dependency-tracking was given.
  2243 if test "${enable_dependency_tracking+set}" = set; then
  2244   enableval=$enable_dependency_tracking;
  2245 fi
  2247 if test "x$enable_dependency_tracking" != xno; then
  2248   am_depcomp="$ac_aux_dir/depcomp"
  2249   AMDEPBACKSLASH='\'
  2250 fi
  2253 if test "x$enable_dependency_tracking" != xno; then
  2254   AMDEP_TRUE=
  2255   AMDEP_FALSE='#'
  2256 else
  2257   AMDEP_TRUE='#'
  2258   AMDEP_FALSE=
  2259 fi
  2263 ac_ext=c
  2264 ac_cpp='$CPP $CPPFLAGS'
  2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2268 if test -n "$ac_tool_prefix"; then
  2269   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2273 if test "${ac_cv_prog_CC+set}" = set; then
  2274   echo $ECHO_N "(cached) $ECHO_C" >&6
  2275 else
  2276   if test -n "$CC"; then
  2277   ac_cv_prog_CC="$CC" # Let the user override the test.
  2278 else
  2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2280 for as_dir in $PATH
  2281 do
  2282   IFS=$as_save_IFS
  2283   test -z "$as_dir" && as_dir=.
  2284   for ac_exec_ext in '' $ac_executable_extensions; do
  2285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2286     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2288     break 2
  2289   fi
  2290 done
  2291 done
  2292 IFS=$as_save_IFS
  2294 fi
  2295 fi
  2296 CC=$ac_cv_prog_CC
  2297 if test -n "$CC"; then
  2298   { echo "$as_me:$LINENO: result: $CC" >&5
  2299 echo "${ECHO_T}$CC" >&6; }
  2300 else
  2301   { echo "$as_me:$LINENO: result: no" >&5
  2302 echo "${ECHO_T}no" >&6; }
  2303 fi
  2306 fi
  2307 if test -z "$ac_cv_prog_CC"; then
  2308   ac_ct_CC=$CC
  2309   # Extract the first word of "gcc", so it can be a program name with args.
  2310 set dummy 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_ac_ct_CC+set}" = set; then
  2314   echo $ECHO_N "(cached) $ECHO_C" >&6
  2315 else
  2316   if test -n "$ac_ct_CC"; then
  2317   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2337 if test -n "$ac_ct_CC"; then
  2338   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2339 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2340 else
  2341   { echo "$as_me:$LINENO: result: no" >&5
  2342 echo "${ECHO_T}no" >&6; }
  2343 fi
  2345   if test "x$ac_ct_CC" = x; then
  2346     CC=""
  2347   else
  2348     case $cross_compiling:$ac_tool_warned in
  2349 yes:)
  2350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2351 whose name does not start with the host triplet.  If you think this
  2352 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2354 whose name does not start with the host triplet.  If you think this
  2355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2356 ac_tool_warned=yes ;;
  2357 esac
  2358     CC=$ac_ct_CC
  2359   fi
  2360 else
  2361   CC="$ac_cv_prog_CC"
  2362 fi
  2364 if test -z "$CC"; then
  2365           if test -n "$ac_tool_prefix"; then
  2366     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2367 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2370 if test "${ac_cv_prog_CC+set}" = set; then
  2371   echo $ECHO_N "(cached) $ECHO_C" >&6
  2372 else
  2373   if test -n "$CC"; then
  2374   ac_cv_prog_CC="$CC" # Let the user override the test.
  2375 else
  2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2377 for as_dir in $PATH
  2378 do
  2379   IFS=$as_save_IFS
  2380   test -z "$as_dir" && as_dir=.
  2381   for ac_exec_ext in '' $ac_executable_extensions; do
  2382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2383     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2385     break 2
  2386   fi
  2387 done
  2388 done
  2389 IFS=$as_save_IFS
  2391 fi
  2392 fi
  2393 CC=$ac_cv_prog_CC
  2394 if test -n "$CC"; then
  2395   { echo "$as_me:$LINENO: result: $CC" >&5
  2396 echo "${ECHO_T}$CC" >&6; }
  2397 else
  2398   { echo "$as_me:$LINENO: result: no" >&5
  2399 echo "${ECHO_T}no" >&6; }
  2400 fi
  2403   fi
  2404 fi
  2405 if test -z "$CC"; then
  2406   # Extract the first word of "cc", so it can be a program name with args.
  2407 set dummy 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   ac_prog_rejected=no
  2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2418 for as_dir in $PATH
  2419 do
  2420   IFS=$as_save_IFS
  2421   test -z "$as_dir" && as_dir=.
  2422   for ac_exec_ext in '' $ac_executable_extensions; do
  2423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2424     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2425        ac_prog_rejected=yes
  2426        continue
  2427      fi
  2428     ac_cv_prog_CC="cc"
  2429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2430     break 2
  2431   fi
  2432 done
  2433 done
  2434 IFS=$as_save_IFS
  2436 if test $ac_prog_rejected = yes; then
  2437   # We found a bogon in the path, so make sure we never use it.
  2438   set dummy $ac_cv_prog_CC
  2439   shift
  2440   if test $# != 0; then
  2441     # We chose a different compiler from the bogus one.
  2442     # However, it has the same basename, so the bogon will be chosen
  2443     # first if we set CC to just the basename; use the full file name.
  2444     shift
  2445     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2446   fi
  2447 fi
  2448 fi
  2449 fi
  2450 CC=$ac_cv_prog_CC
  2451 if test -n "$CC"; then
  2452   { echo "$as_me:$LINENO: result: $CC" >&5
  2453 echo "${ECHO_T}$CC" >&6; }
  2454 else
  2455   { echo "$as_me:$LINENO: result: no" >&5
  2456 echo "${ECHO_T}no" >&6; }
  2457 fi
  2460 fi
  2461 if test -z "$CC"; then
  2462   if test -n "$ac_tool_prefix"; then
  2463   for ac_prog in cl.exe
  2464   do
  2465     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2469 if test "${ac_cv_prog_CC+set}" = set; then
  2470   echo $ECHO_N "(cached) $ECHO_C" >&6
  2471 else
  2472   if test -n "$CC"; then
  2473   ac_cv_prog_CC="$CC" # Let the user override the test.
  2474 else
  2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2476 for as_dir in $PATH
  2477 do
  2478   IFS=$as_save_IFS
  2479   test -z "$as_dir" && as_dir=.
  2480   for ac_exec_ext in '' $ac_executable_extensions; do
  2481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2482     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2484     break 2
  2485   fi
  2486 done
  2487 done
  2488 IFS=$as_save_IFS
  2490 fi
  2491 fi
  2492 CC=$ac_cv_prog_CC
  2493 if test -n "$CC"; then
  2494   { echo "$as_me:$LINENO: result: $CC" >&5
  2495 echo "${ECHO_T}$CC" >&6; }
  2496 else
  2497   { echo "$as_me:$LINENO: result: no" >&5
  2498 echo "${ECHO_T}no" >&6; }
  2499 fi
  2502     test -n "$CC" && break
  2503   done
  2504 fi
  2505 if test -z "$CC"; then
  2506   ac_ct_CC=$CC
  2507   for ac_prog in cl.exe
  2508 do
  2509   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2510 set dummy $ac_prog; ac_word=$2
  2511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2514   echo $ECHO_N "(cached) $ECHO_C" >&6
  2515 else
  2516   if test -n "$ac_ct_CC"; then
  2517   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2518 else
  2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2520 for as_dir in $PATH
  2521 do
  2522   IFS=$as_save_IFS
  2523   test -z "$as_dir" && as_dir=.
  2524   for ac_exec_ext in '' $ac_executable_extensions; do
  2525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2526     ac_cv_prog_ac_ct_CC="$ac_prog"
  2527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2528     break 2
  2529   fi
  2530 done
  2531 done
  2532 IFS=$as_save_IFS
  2534 fi
  2535 fi
  2536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2537 if test -n "$ac_ct_CC"; then
  2538   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2539 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2540 else
  2541   { echo "$as_me:$LINENO: result: no" >&5
  2542 echo "${ECHO_T}no" >&6; }
  2543 fi
  2546   test -n "$ac_ct_CC" && break
  2547 done
  2549   if test "x$ac_ct_CC" = x; then
  2550     CC=""
  2551   else
  2552     case $cross_compiling:$ac_tool_warned in
  2553 yes:)
  2554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2555 whose name does not start with the host triplet.  If you think this
  2556 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2558 whose name does not start with the host triplet.  If you think this
  2559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2560 ac_tool_warned=yes ;;
  2561 esac
  2562     CC=$ac_ct_CC
  2563   fi
  2564 fi
  2566 fi
  2569 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2570 See \`config.log' for more details." >&5
  2571 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2572 See \`config.log' for more details." >&2;}
  2573    { (exit 1); exit 1; }; }
  2575 # Provide some information about the compiler.
  2576 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2577 ac_compiler=`set X $ac_compile; echo $2`
  2578 { (ac_try="$ac_compiler --version >&5"
  2579 case "(($ac_try" in
  2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2581   *) ac_try_echo=$ac_try;;
  2582 esac
  2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2584   (eval "$ac_compiler --version >&5") 2>&5
  2585   ac_status=$?
  2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2587   (exit $ac_status); }
  2588 { (ac_try="$ac_compiler -v >&5"
  2589 case "(($ac_try" in
  2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2591   *) ac_try_echo=$ac_try;;
  2592 esac
  2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2594   (eval "$ac_compiler -v >&5") 2>&5
  2595   ac_status=$?
  2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2597   (exit $ac_status); }
  2598 { (ac_try="$ac_compiler -V >&5"
  2599 case "(($ac_try" in
  2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2601   *) ac_try_echo=$ac_try;;
  2602 esac
  2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2604   (eval "$ac_compiler -V >&5") 2>&5
  2605   ac_status=$?
  2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2607   (exit $ac_status); }
  2609 cat >conftest.$ac_ext <<_ACEOF
  2610 /* confdefs.h.  */
  2611 _ACEOF
  2612 cat confdefs.h >>conftest.$ac_ext
  2613 cat >>conftest.$ac_ext <<_ACEOF
  2614 /* end confdefs.h.  */
  2616 int
  2617 main ()
  2621   return 0;
  2623 _ACEOF
  2624 ac_clean_files_save=$ac_clean_files
  2625 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2626 # Try to create an executable without -o first, disregard a.out.
  2627 # It will help us diagnose broken compilers, and finding out an intuition
  2628 # of exeext.
  2629 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2630 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2631 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2633 # List of possible output files, starting from the most likely.
  2634 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2635 # only as a last resort.  b.out is created by i960 compilers.
  2636 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2638 # The IRIX 6 linker writes into existing files which may not be
  2639 # executable, retaining their permissions.  Remove them first so a
  2640 # subsequent execution test works.
  2641 ac_rmfiles=
  2642 for ac_file in $ac_files
  2643 do
  2644   case $ac_file in
  2645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2646     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2647   esac
  2648 done
  2649 rm -f $ac_rmfiles
  2651 if { (ac_try="$ac_link_default"
  2652 case "(($ac_try" in
  2653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2654   *) ac_try_echo=$ac_try;;
  2655 esac
  2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2657   (eval "$ac_link_default") 2>&5
  2658   ac_status=$?
  2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2660   (exit $ac_status); }; then
  2661   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2662 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2663 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2664 # so that the user can short-circuit this test for compilers unknown to
  2665 # Autoconf.
  2666 for ac_file in $ac_files ''
  2667 do
  2668   test -f "$ac_file" || continue
  2669   case $ac_file in
  2670     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2671 	;;
  2672     [ab].out )
  2673 	# We found the default executable, but exeext='' is most
  2674 	# certainly right.
  2675 	break;;
  2676     *.* )
  2677         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2678 	then :; else
  2679 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2680 	fi
  2681 	# We set ac_cv_exeext here because the later test for it is not
  2682 	# safe: cross compilers may not add the suffix if given an `-o'
  2683 	# argument, so we may need to know it at that point already.
  2684 	# Even if this section looks crufty: it has the advantage of
  2685 	# actually working.
  2686 	break;;
  2687     * )
  2688 	break;;
  2689   esac
  2690 done
  2691 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2693 else
  2694   ac_file=''
  2695 fi
  2697 { echo "$as_me:$LINENO: result: $ac_file" >&5
  2698 echo "${ECHO_T}$ac_file" >&6; }
  2699 if test -z "$ac_file"; then
  2700   echo "$as_me: failed program was:" >&5
  2701 sed 's/^/| /' conftest.$ac_ext >&5
  2703 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2704 See \`config.log' for more details." >&5
  2705 echo "$as_me: error: C compiler cannot create executables
  2706 See \`config.log' for more details." >&2;}
  2707    { (exit 77); exit 77; }; }
  2708 fi
  2710 ac_exeext=$ac_cv_exeext
  2712 # Check that the compiler produces executables we can run.  If not, either
  2713 # the compiler is broken, or we cross compile.
  2714 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2715 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2716 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2717 # If not cross compiling, check that we can run a simple program.
  2718 if test "$cross_compiling" != yes; then
  2719   if { ac_try='./$ac_file'
  2720   { (case "(($ac_try" in
  2721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2722   *) ac_try_echo=$ac_try;;
  2723 esac
  2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2725   (eval "$ac_try") 2>&5
  2726   ac_status=$?
  2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2728   (exit $ac_status); }; }; then
  2729     cross_compiling=no
  2730   else
  2731     if test "$cross_compiling" = maybe; then
  2732 	cross_compiling=yes
  2733     else
  2734 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2735 If you meant to cross compile, use \`--host'.
  2736 See \`config.log' for more details." >&5
  2737 echo "$as_me: error: cannot run C compiled programs.
  2738 If you meant to cross compile, use \`--host'.
  2739 See \`config.log' for more details." >&2;}
  2740    { (exit 1); exit 1; }; }
  2741     fi
  2742   fi
  2743 fi
  2744 { echo "$as_me:$LINENO: result: yes" >&5
  2745 echo "${ECHO_T}yes" >&6; }
  2747 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2748 ac_clean_files=$ac_clean_files_save
  2749 # Check that the compiler produces executables we can run.  If not, either
  2750 # the compiler is broken, or we cross compile.
  2751 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2752 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2753 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2754 echo "${ECHO_T}$cross_compiling" >&6; }
  2756 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2757 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2758 if { (ac_try="$ac_link"
  2759 case "(($ac_try" in
  2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2761   *) ac_try_echo=$ac_try;;
  2762 esac
  2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2764   (eval "$ac_link") 2>&5
  2765   ac_status=$?
  2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2767   (exit $ac_status); }; then
  2768   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2769 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2770 # work properly (i.e., refer to `conftest.exe'), while it won't with
  2771 # `rm'.
  2772 for ac_file in conftest.exe conftest conftest.*; do
  2773   test -f "$ac_file" || continue
  2774   case $ac_file in
  2775     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2776     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2777 	  break;;
  2778     * ) break;;
  2779   esac
  2780 done
  2781 else
  2782   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2783 See \`config.log' for more details." >&5
  2784 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2785 See \`config.log' for more details." >&2;}
  2786    { (exit 1); exit 1; }; }
  2787 fi
  2789 rm -f conftest$ac_cv_exeext
  2790 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2791 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2793 rm -f conftest.$ac_ext
  2794 EXEEXT=$ac_cv_exeext
  2795 ac_exeext=$EXEEXT
  2796 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2797 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2798 if test "${ac_cv_objext+set}" = set; then
  2799   echo $ECHO_N "(cached) $ECHO_C" >&6
  2800 else
  2801   cat >conftest.$ac_ext <<_ACEOF
  2802 /* confdefs.h.  */
  2803 _ACEOF
  2804 cat confdefs.h >>conftest.$ac_ext
  2805 cat >>conftest.$ac_ext <<_ACEOF
  2806 /* end confdefs.h.  */
  2808 int
  2809 main ()
  2813   return 0;
  2815 _ACEOF
  2816 rm -f conftest.o conftest.obj
  2817 if { (ac_try="$ac_compile"
  2818 case "(($ac_try" in
  2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2820   *) ac_try_echo=$ac_try;;
  2821 esac
  2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2823   (eval "$ac_compile") 2>&5
  2824   ac_status=$?
  2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2826   (exit $ac_status); }; then
  2827   for ac_file in conftest.o conftest.obj conftest.*; do
  2828   test -f "$ac_file" || continue;
  2829   case $ac_file in
  2830     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2831     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2832        break;;
  2833   esac
  2834 done
  2835 else
  2836   echo "$as_me: failed program was:" >&5
  2837 sed 's/^/| /' conftest.$ac_ext >&5
  2839 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2840 See \`config.log' for more details." >&5
  2841 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2842 See \`config.log' for more details." >&2;}
  2843    { (exit 1); exit 1; }; }
  2844 fi
  2846 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2847 fi
  2848 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2849 echo "${ECHO_T}$ac_cv_objext" >&6; }
  2850 OBJEXT=$ac_cv_objext
  2851 ac_objext=$OBJEXT
  2852 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2853 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2854 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2855   echo $ECHO_N "(cached) $ECHO_C" >&6
  2856 else
  2857   cat >conftest.$ac_ext <<_ACEOF
  2858 /* confdefs.h.  */
  2859 _ACEOF
  2860 cat confdefs.h >>conftest.$ac_ext
  2861 cat >>conftest.$ac_ext <<_ACEOF
  2862 /* end confdefs.h.  */
  2864 int
  2865 main ()
  2867 #ifndef __GNUC__
  2868        choke me
  2869 #endif
  2872   return 0;
  2874 _ACEOF
  2875 rm -f conftest.$ac_objext
  2876 if { (ac_try="$ac_compile"
  2877 case "(($ac_try" in
  2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2879   *) ac_try_echo=$ac_try;;
  2880 esac
  2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2882   (eval "$ac_compile") 2>conftest.er1
  2883   ac_status=$?
  2884   grep -v '^ *+' conftest.er1 >conftest.err
  2885   rm -f conftest.er1
  2886   cat conftest.err >&5
  2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2888   (exit $ac_status); } && {
  2889 	 test -z "$ac_c_werror_flag" ||
  2890 	 test ! -s conftest.err
  2891        } && test -s conftest.$ac_objext; then
  2892   ac_compiler_gnu=yes
  2893 else
  2894   echo "$as_me: failed program was:" >&5
  2895 sed 's/^/| /' conftest.$ac_ext >&5
  2897 	ac_compiler_gnu=no
  2898 fi
  2900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2901 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2903 fi
  2904 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2905 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2906 GCC=`test $ac_compiler_gnu = yes && echo yes`
  2907 ac_test_CFLAGS=${CFLAGS+set}
  2908 ac_save_CFLAGS=$CFLAGS
  2909 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2910 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2911 if test "${ac_cv_prog_cc_g+set}" = set; then
  2912   echo $ECHO_N "(cached) $ECHO_C" >&6
  2913 else
  2914   ac_save_c_werror_flag=$ac_c_werror_flag
  2915    ac_c_werror_flag=yes
  2916    ac_cv_prog_cc_g=no
  2917    CFLAGS="-g"
  2918    cat >conftest.$ac_ext <<_ACEOF
  2919 /* confdefs.h.  */
  2920 _ACEOF
  2921 cat confdefs.h >>conftest.$ac_ext
  2922 cat >>conftest.$ac_ext <<_ACEOF
  2923 /* end confdefs.h.  */
  2925 int
  2926 main ()
  2930   return 0;
  2932 _ACEOF
  2933 rm -f conftest.$ac_objext
  2934 if { (ac_try="$ac_compile"
  2935 case "(($ac_try" in
  2936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2937   *) ac_try_echo=$ac_try;;
  2938 esac
  2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2940   (eval "$ac_compile") 2>conftest.er1
  2941   ac_status=$?
  2942   grep -v '^ *+' conftest.er1 >conftest.err
  2943   rm -f conftest.er1
  2944   cat conftest.err >&5
  2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2946   (exit $ac_status); } && {
  2947 	 test -z "$ac_c_werror_flag" ||
  2948 	 test ! -s conftest.err
  2949        } && test -s conftest.$ac_objext; then
  2950   ac_cv_prog_cc_g=yes
  2951 else
  2952   echo "$as_me: failed program was:" >&5
  2953 sed 's/^/| /' conftest.$ac_ext >&5
  2955 	CFLAGS=""
  2956       cat >conftest.$ac_ext <<_ACEOF
  2957 /* confdefs.h.  */
  2958 _ACEOF
  2959 cat confdefs.h >>conftest.$ac_ext
  2960 cat >>conftest.$ac_ext <<_ACEOF
  2961 /* end confdefs.h.  */
  2963 int
  2964 main ()
  2968   return 0;
  2970 _ACEOF
  2971 rm -f conftest.$ac_objext
  2972 if { (ac_try="$ac_compile"
  2973 case "(($ac_try" in
  2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2975   *) ac_try_echo=$ac_try;;
  2976 esac
  2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2978   (eval "$ac_compile") 2>conftest.er1
  2979   ac_status=$?
  2980   grep -v '^ *+' conftest.er1 >conftest.err
  2981   rm -f conftest.er1
  2982   cat conftest.err >&5
  2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2984   (exit $ac_status); } && {
  2985 	 test -z "$ac_c_werror_flag" ||
  2986 	 test ! -s conftest.err
  2987        } && test -s conftest.$ac_objext; then
  2989 else
  2990   echo "$as_me: failed program was:" >&5
  2991 sed 's/^/| /' conftest.$ac_ext >&5
  2993 	ac_c_werror_flag=$ac_save_c_werror_flag
  2994 	 CFLAGS="-g"
  2995 	 cat >conftest.$ac_ext <<_ACEOF
  2996 /* confdefs.h.  */
  2997 _ACEOF
  2998 cat confdefs.h >>conftest.$ac_ext
  2999 cat >>conftest.$ac_ext <<_ACEOF
  3000 /* end confdefs.h.  */
  3002 int
  3003 main ()
  3007   return 0;
  3009 _ACEOF
  3010 rm -f conftest.$ac_objext
  3011 if { (ac_try="$ac_compile"
  3012 case "(($ac_try" in
  3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3014   *) ac_try_echo=$ac_try;;
  3015 esac
  3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3017   (eval "$ac_compile") 2>conftest.er1
  3018   ac_status=$?
  3019   grep -v '^ *+' conftest.er1 >conftest.err
  3020   rm -f conftest.er1
  3021   cat conftest.err >&5
  3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3023   (exit $ac_status); } && {
  3024 	 test -z "$ac_c_werror_flag" ||
  3025 	 test ! -s conftest.err
  3026        } && test -s conftest.$ac_objext; then
  3027   ac_cv_prog_cc_g=yes
  3028 else
  3029   echo "$as_me: failed program was:" >&5
  3030 sed 's/^/| /' conftest.$ac_ext >&5
  3033 fi
  3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3036 fi
  3038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3039 fi
  3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3042    ac_c_werror_flag=$ac_save_c_werror_flag
  3043 fi
  3044 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3045 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3046 if test "$ac_test_CFLAGS" = set; then
  3047   CFLAGS=$ac_save_CFLAGS
  3048 elif test $ac_cv_prog_cc_g = yes; then
  3049   if test "$GCC" = yes; then
  3050     CFLAGS="-g -O2"
  3051   else
  3052     CFLAGS="-g"
  3053   fi
  3054 else
  3055   if test "$GCC" = yes; then
  3056     CFLAGS="-O2"
  3057   else
  3058     CFLAGS=
  3059   fi
  3060 fi
  3061 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3062 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3063 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3064   echo $ECHO_N "(cached) $ECHO_C" >&6
  3065 else
  3066   ac_cv_prog_cc_c89=no
  3067 ac_save_CC=$CC
  3068 cat >conftest.$ac_ext <<_ACEOF
  3069 /* confdefs.h.  */
  3070 _ACEOF
  3071 cat confdefs.h >>conftest.$ac_ext
  3072 cat >>conftest.$ac_ext <<_ACEOF
  3073 /* end confdefs.h.  */
  3074 #include <stdarg.h>
  3075 #include <stdio.h>
  3076 #include <sys/types.h>
  3077 #include <sys/stat.h>
  3078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3079 struct buf { int x; };
  3080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3081 static char *e (p, i)
  3082      char **p;
  3083      int i;
  3085   return p[i];
  3087 static char *f (char * (*g) (char **, int), char **p, ...)
  3089   char *s;
  3090   va_list v;
  3091   va_start (v,p);
  3092   s = g (p, va_arg (v,int));
  3093   va_end (v);
  3094   return s;
  3097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3098    function prototypes and stuff, but not '\xHH' hex character constants.
  3099    These don't provoke an error unfortunately, instead are silently treated
  3100    as 'x'.  The following induces an error, until -std is added to get
  3101    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3102    array size at least.  It's necessary to write '\x00'==0 to get something
  3103    that's true only with -std.  */
  3104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3107    inside strings and character constants.  */
  3108 #define FOO(x) 'x'
  3109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3111 int test (int i, double x);
  3112 struct s1 {int (*f) (int a);};
  3113 struct s2 {int (*f) (double a);};
  3114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3115 int argc;
  3116 char **argv;
  3117 int
  3118 main ()
  3120 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3122   return 0;
  3124 _ACEOF
  3125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3126 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3127 do
  3128   CC="$ac_save_CC $ac_arg"
  3129   rm -f conftest.$ac_objext
  3130 if { (ac_try="$ac_compile"
  3131 case "(($ac_try" in
  3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3133   *) ac_try_echo=$ac_try;;
  3134 esac
  3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3136   (eval "$ac_compile") 2>conftest.er1
  3137   ac_status=$?
  3138   grep -v '^ *+' conftest.er1 >conftest.err
  3139   rm -f conftest.er1
  3140   cat conftest.err >&5
  3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3142   (exit $ac_status); } && {
  3143 	 test -z "$ac_c_werror_flag" ||
  3144 	 test ! -s conftest.err
  3145        } && test -s conftest.$ac_objext; then
  3146   ac_cv_prog_cc_c89=$ac_arg
  3147 else
  3148   echo "$as_me: failed program was:" >&5
  3149 sed 's/^/| /' conftest.$ac_ext >&5
  3152 fi
  3154 rm -f core conftest.err conftest.$ac_objext
  3155   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3156 done
  3157 rm -f conftest.$ac_ext
  3158 CC=$ac_save_CC
  3160 fi
  3161 # AC_CACHE_VAL
  3162 case "x$ac_cv_prog_cc_c89" in
  3163   x)
  3164     { echo "$as_me:$LINENO: result: none needed" >&5
  3165 echo "${ECHO_T}none needed" >&6; } ;;
  3166   xno)
  3167     { echo "$as_me:$LINENO: result: unsupported" >&5
  3168 echo "${ECHO_T}unsupported" >&6; } ;;
  3169   *)
  3170     CC="$CC $ac_cv_prog_cc_c89"
  3171     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3172 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3173 esac
  3176 ac_ext=c
  3177 ac_cpp='$CPP $CPPFLAGS'
  3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3182 depcc="$CC"   am_compiler_list=
  3184 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3185 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3186 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3187   echo $ECHO_N "(cached) $ECHO_C" >&6
  3188 else
  3189   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3190   # We make a subdir and do the tests there.  Otherwise we can end up
  3191   # making bogus files that we don't know about and never remove.  For
  3192   # instance it was reported that on HP-UX the gcc test will end up
  3193   # making a dummy file named `D' -- because `-MD' means `put the output
  3194   # in D'.
  3195   mkdir conftest.dir
  3196   # Copy depcomp to subdir because otherwise we won't find it if we're
  3197   # using a relative directory.
  3198   cp "$am_depcomp" conftest.dir
  3199   cd conftest.dir
  3200   # We will build objects and dependencies in a subdirectory because
  3201   # it helps to detect inapplicable dependency modes.  For instance
  3202   # both Tru64's cc and ICC support -MD to output dependencies as a
  3203   # side effect of compilation, but ICC will put the dependencies in
  3204   # the current directory while Tru64 will put them in the object
  3205   # directory.
  3206   mkdir sub
  3208   am_cv_CC_dependencies_compiler_type=none
  3209   if test "$am_compiler_list" = ""; then
  3210      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3211   fi
  3212   for depmode in $am_compiler_list; do
  3213     # Setup a source with many dependencies, because some compilers
  3214     # like to wrap large dependency lists on column 80 (with \), and
  3215     # we should not choose a depcomp mode which is confused by this.
  3217     # We need to recreate these files for each test, as the compiler may
  3218     # overwrite some of them when testing with obscure command lines.
  3219     # This happens at least with the AIX C compiler.
  3220     : > sub/conftest.c
  3221     for i in 1 2 3 4 5 6; do
  3222       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3223       : > sub/conftst$i.h
  3224     done
  3225     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3227     case $depmode in
  3228     nosideeffect)
  3229       # after this tag, mechanisms are not by side-effect, so they'll
  3230       # only be used when explicitly requested
  3231       if test "x$enable_dependency_tracking" = xyes; then
  3232 	continue
  3233       else
  3234 	break
  3235       fi
  3236       ;;
  3237     none) break ;;
  3238     esac
  3239     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3240     # mode.  It turns out that the SunPro C++ compiler does not properly
  3241     # handle `-M -o', and we need to detect this.
  3242     if depmode=$depmode \
  3243        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3244        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3245        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3246          >/dev/null 2>conftest.err &&
  3247        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3248        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3249        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3250       # icc doesn't choke on unknown options, it will just issue warnings
  3251       # (even with -Werror).  So we grep stderr for any message
  3252       # that says an option was ignored.
  3253       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  3254         am_cv_CC_dependencies_compiler_type=$depmode
  3255         break
  3256       fi
  3257     fi
  3258   done
  3260   cd ..
  3261   rm -rf conftest.dir
  3262 else
  3263   am_cv_CC_dependencies_compiler_type=none
  3264 fi
  3266 fi
  3267 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3268 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3269 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3273 if
  3274   test "x$enable_dependency_tracking" != xno \
  3275   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3276   am__fastdepCC_TRUE=
  3277   am__fastdepCC_FALSE='#'
  3278 else
  3279   am__fastdepCC_TRUE='#'
  3280   am__fastdepCC_FALSE=
  3281 fi
  3285 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3286 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  3287 if test "${ac_cv_search_strerror+set}" = set; then
  3288   echo $ECHO_N "(cached) $ECHO_C" >&6
  3289 else
  3290   ac_func_search_save_LIBS=$LIBS
  3291 cat >conftest.$ac_ext <<_ACEOF
  3292 /* confdefs.h.  */
  3293 _ACEOF
  3294 cat confdefs.h >>conftest.$ac_ext
  3295 cat >>conftest.$ac_ext <<_ACEOF
  3296 /* end confdefs.h.  */
  3298 /* Override any GCC internal prototype to avoid an error.
  3299    Use char because int might match the return type of a GCC
  3300    builtin and then its argument prototype would still apply.  */
  3301 #ifdef __cplusplus
  3302 extern "C"
  3303 #endif
  3304 char strerror ();
  3305 int
  3306 main ()
  3308 return strerror ();
  3310   return 0;
  3312 _ACEOF
  3313 for ac_lib in '' cposix; do
  3314   if test -z "$ac_lib"; then
  3315     ac_res="none required"
  3316   else
  3317     ac_res=-l$ac_lib
  3318     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  3319   fi
  3320   rm -f conftest.$ac_objext conftest$ac_exeext
  3321 if { (ac_try="$ac_link"
  3322 case "(($ac_try" in
  3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3324   *) ac_try_echo=$ac_try;;
  3325 esac
  3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3327   (eval "$ac_link") 2>conftest.er1
  3328   ac_status=$?
  3329   grep -v '^ *+' conftest.er1 >conftest.err
  3330   rm -f conftest.er1
  3331   cat conftest.err >&5
  3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3333   (exit $ac_status); } && {
  3334 	 test -z "$ac_c_werror_flag" ||
  3335 	 test ! -s conftest.err
  3336        } && test -s conftest$ac_exeext &&
  3337        $as_test_x conftest$ac_exeext; then
  3338   ac_cv_search_strerror=$ac_res
  3339 else
  3340   echo "$as_me: failed program was:" >&5
  3341 sed 's/^/| /' conftest.$ac_ext >&5
  3344 fi
  3346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3347       conftest$ac_exeext
  3348   if test "${ac_cv_search_strerror+set}" = set; then
  3349   break
  3350 fi
  3351 done
  3352 if test "${ac_cv_search_strerror+set}" = set; then
  3354 else
  3355   ac_cv_search_strerror=no
  3356 fi
  3357 rm conftest.$ac_ext
  3358 LIBS=$ac_func_search_save_LIBS
  3359 fi
  3360 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3361 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  3362 ac_res=$ac_cv_search_strerror
  3363 if test "$ac_res" != no; then
  3364   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3366 fi
  3368 ac_ext=c
  3369 ac_cpp='$CPP $CPPFLAGS'
  3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3373 if test -n "$ac_tool_prefix"; then
  3374   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3378 if test "${ac_cv_prog_CC+set}" = set; then
  3379   echo $ECHO_N "(cached) $ECHO_C" >&6
  3380 else
  3381   if test -n "$CC"; then
  3382   ac_cv_prog_CC="$CC" # Let the user override the test.
  3383 else
  3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3385 for as_dir in $PATH
  3386 do
  3387   IFS=$as_save_IFS
  3388   test -z "$as_dir" && as_dir=.
  3389   for ac_exec_ext in '' $ac_executable_extensions; do
  3390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3391     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3393     break 2
  3394   fi
  3395 done
  3396 done
  3397 IFS=$as_save_IFS
  3399 fi
  3400 fi
  3401 CC=$ac_cv_prog_CC
  3402 if test -n "$CC"; then
  3403   { echo "$as_me:$LINENO: result: $CC" >&5
  3404 echo "${ECHO_T}$CC" >&6; }
  3405 else
  3406   { echo "$as_me:$LINENO: result: no" >&5
  3407 echo "${ECHO_T}no" >&6; }
  3408 fi
  3411 fi
  3412 if test -z "$ac_cv_prog_CC"; then
  3413   ac_ct_CC=$CC
  3414   # Extract the first word of "gcc", so it can be a program name with args.
  3415 set dummy 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_ac_ct_CC+set}" = set; then
  3419   echo $ECHO_N "(cached) $ECHO_C" >&6
  3420 else
  3421   if test -n "$ac_ct_CC"; then
  3422   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3442 if test -n "$ac_ct_CC"; then
  3443   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3444 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3445 else
  3446   { echo "$as_me:$LINENO: result: no" >&5
  3447 echo "${ECHO_T}no" >&6; }
  3448 fi
  3450   if test "x$ac_ct_CC" = x; then
  3451     CC=""
  3452   else
  3453     case $cross_compiling:$ac_tool_warned in
  3454 yes:)
  3455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3456 whose name does not start with the host triplet.  If you think this
  3457 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3459 whose name does not start with the host triplet.  If you think this
  3460 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3461 ac_tool_warned=yes ;;
  3462 esac
  3463     CC=$ac_ct_CC
  3464   fi
  3465 else
  3466   CC="$ac_cv_prog_CC"
  3467 fi
  3469 if test -z "$CC"; then
  3470           if test -n "$ac_tool_prefix"; then
  3471     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3472 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3475 if test "${ac_cv_prog_CC+set}" = set; then
  3476   echo $ECHO_N "(cached) $ECHO_C" >&6
  3477 else
  3478   if test -n "$CC"; then
  3479   ac_cv_prog_CC="$CC" # Let the user override the test.
  3480 else
  3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3482 for as_dir in $PATH
  3483 do
  3484   IFS=$as_save_IFS
  3485   test -z "$as_dir" && as_dir=.
  3486   for ac_exec_ext in '' $ac_executable_extensions; do
  3487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3488     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3490     break 2
  3491   fi
  3492 done
  3493 done
  3494 IFS=$as_save_IFS
  3496 fi
  3497 fi
  3498 CC=$ac_cv_prog_CC
  3499 if test -n "$CC"; then
  3500   { echo "$as_me:$LINENO: result: $CC" >&5
  3501 echo "${ECHO_T}$CC" >&6; }
  3502 else
  3503   { echo "$as_me:$LINENO: result: no" >&5
  3504 echo "${ECHO_T}no" >&6; }
  3505 fi
  3508   fi
  3509 fi
  3510 if test -z "$CC"; then
  3511   # Extract the first word of "cc", so it can be a program name with args.
  3512 set dummy 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   ac_prog_rejected=no
  3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3523 for as_dir in $PATH
  3524 do
  3525   IFS=$as_save_IFS
  3526   test -z "$as_dir" && as_dir=.
  3527   for ac_exec_ext in '' $ac_executable_extensions; do
  3528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3529     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3530        ac_prog_rejected=yes
  3531        continue
  3532      fi
  3533     ac_cv_prog_CC="cc"
  3534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3535     break 2
  3536   fi
  3537 done
  3538 done
  3539 IFS=$as_save_IFS
  3541 if test $ac_prog_rejected = yes; then
  3542   # We found a bogon in the path, so make sure we never use it.
  3543   set dummy $ac_cv_prog_CC
  3544   shift
  3545   if test $# != 0; then
  3546     # We chose a different compiler from the bogus one.
  3547     # However, it has the same basename, so the bogon will be chosen
  3548     # first if we set CC to just the basename; use the full file name.
  3549     shift
  3550     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3551   fi
  3552 fi
  3553 fi
  3554 fi
  3555 CC=$ac_cv_prog_CC
  3556 if test -n "$CC"; then
  3557   { echo "$as_me:$LINENO: result: $CC" >&5
  3558 echo "${ECHO_T}$CC" >&6; }
  3559 else
  3560   { echo "$as_me:$LINENO: result: no" >&5
  3561 echo "${ECHO_T}no" >&6; }
  3562 fi
  3565 fi
  3566 if test -z "$CC"; then
  3567   if test -n "$ac_tool_prefix"; then
  3568   for ac_prog in cl.exe
  3569   do
  3570     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3574 if test "${ac_cv_prog_CC+set}" = set; then
  3575   echo $ECHO_N "(cached) $ECHO_C" >&6
  3576 else
  3577   if test -n "$CC"; then
  3578   ac_cv_prog_CC="$CC" # Let the user override the test.
  3579 else
  3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3581 for as_dir in $PATH
  3582 do
  3583   IFS=$as_save_IFS
  3584   test -z "$as_dir" && as_dir=.
  3585   for ac_exec_ext in '' $ac_executable_extensions; do
  3586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3587     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3589     break 2
  3590   fi
  3591 done
  3592 done
  3593 IFS=$as_save_IFS
  3595 fi
  3596 fi
  3597 CC=$ac_cv_prog_CC
  3598 if test -n "$CC"; then
  3599   { echo "$as_me:$LINENO: result: $CC" >&5
  3600 echo "${ECHO_T}$CC" >&6; }
  3601 else
  3602   { echo "$as_me:$LINENO: result: no" >&5
  3603 echo "${ECHO_T}no" >&6; }
  3604 fi
  3607     test -n "$CC" && break
  3608   done
  3609 fi
  3610 if test -z "$CC"; then
  3611   ac_ct_CC=$CC
  3612   for ac_prog in cl.exe
  3613 do
  3614   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3615 set dummy $ac_prog; ac_word=$2
  3616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3619   echo $ECHO_N "(cached) $ECHO_C" >&6
  3620 else
  3621   if test -n "$ac_ct_CC"; then
  3622   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3623 else
  3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3625 for as_dir in $PATH
  3626 do
  3627   IFS=$as_save_IFS
  3628   test -z "$as_dir" && as_dir=.
  3629   for ac_exec_ext in '' $ac_executable_extensions; do
  3630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3631     ac_cv_prog_ac_ct_CC="$ac_prog"
  3632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3633     break 2
  3634   fi
  3635 done
  3636 done
  3637 IFS=$as_save_IFS
  3639 fi
  3640 fi
  3641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3642 if test -n "$ac_ct_CC"; then
  3643   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3644 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3645 else
  3646   { echo "$as_me:$LINENO: result: no" >&5
  3647 echo "${ECHO_T}no" >&6; }
  3648 fi
  3651   test -n "$ac_ct_CC" && break
  3652 done
  3654   if test "x$ac_ct_CC" = x; then
  3655     CC=""
  3656   else
  3657     case $cross_compiling:$ac_tool_warned in
  3658 yes:)
  3659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3660 whose name does not start with the host triplet.  If you think this
  3661 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3663 whose name does not start with the host triplet.  If you think this
  3664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3665 ac_tool_warned=yes ;;
  3666 esac
  3667     CC=$ac_ct_CC
  3668   fi
  3669 fi
  3671 fi
  3674 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3675 See \`config.log' for more details." >&5
  3676 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3677 See \`config.log' for more details." >&2;}
  3678    { (exit 1); exit 1; }; }
  3680 # Provide some information about the compiler.
  3681 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3682 ac_compiler=`set X $ac_compile; echo $2`
  3683 { (ac_try="$ac_compiler --version >&5"
  3684 case "(($ac_try" in
  3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3686   *) ac_try_echo=$ac_try;;
  3687 esac
  3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3689   (eval "$ac_compiler --version >&5") 2>&5
  3690   ac_status=$?
  3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3692   (exit $ac_status); }
  3693 { (ac_try="$ac_compiler -v >&5"
  3694 case "(($ac_try" in
  3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3696   *) ac_try_echo=$ac_try;;
  3697 esac
  3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3699   (eval "$ac_compiler -v >&5") 2>&5
  3700   ac_status=$?
  3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3702   (exit $ac_status); }
  3703 { (ac_try="$ac_compiler -V >&5"
  3704 case "(($ac_try" in
  3705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3706   *) ac_try_echo=$ac_try;;
  3707 esac
  3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3709   (eval "$ac_compiler -V >&5") 2>&5
  3710   ac_status=$?
  3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3712   (exit $ac_status); }
  3714 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3715 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3716 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3717   echo $ECHO_N "(cached) $ECHO_C" >&6
  3718 else
  3719   cat >conftest.$ac_ext <<_ACEOF
  3720 /* confdefs.h.  */
  3721 _ACEOF
  3722 cat confdefs.h >>conftest.$ac_ext
  3723 cat >>conftest.$ac_ext <<_ACEOF
  3724 /* end confdefs.h.  */
  3726 int
  3727 main ()
  3729 #ifndef __GNUC__
  3730        choke me
  3731 #endif
  3734   return 0;
  3736 _ACEOF
  3737 rm -f conftest.$ac_objext
  3738 if { (ac_try="$ac_compile"
  3739 case "(($ac_try" in
  3740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3741   *) ac_try_echo=$ac_try;;
  3742 esac
  3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3744   (eval "$ac_compile") 2>conftest.er1
  3745   ac_status=$?
  3746   grep -v '^ *+' conftest.er1 >conftest.err
  3747   rm -f conftest.er1
  3748   cat conftest.err >&5
  3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3750   (exit $ac_status); } && {
  3751 	 test -z "$ac_c_werror_flag" ||
  3752 	 test ! -s conftest.err
  3753        } && test -s conftest.$ac_objext; then
  3754   ac_compiler_gnu=yes
  3755 else
  3756   echo "$as_me: failed program was:" >&5
  3757 sed 's/^/| /' conftest.$ac_ext >&5
  3759 	ac_compiler_gnu=no
  3760 fi
  3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3763 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3765 fi
  3766 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3767 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3768 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3769 ac_test_CFLAGS=${CFLAGS+set}
  3770 ac_save_CFLAGS=$CFLAGS
  3771 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3772 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3773 if test "${ac_cv_prog_cc_g+set}" = set; then
  3774   echo $ECHO_N "(cached) $ECHO_C" >&6
  3775 else
  3776   ac_save_c_werror_flag=$ac_c_werror_flag
  3777    ac_c_werror_flag=yes
  3778    ac_cv_prog_cc_g=no
  3779    CFLAGS="-g"
  3780    cat >conftest.$ac_ext <<_ACEOF
  3781 /* confdefs.h.  */
  3782 _ACEOF
  3783 cat confdefs.h >>conftest.$ac_ext
  3784 cat >>conftest.$ac_ext <<_ACEOF
  3785 /* end confdefs.h.  */
  3787 int
  3788 main ()
  3792   return 0;
  3794 _ACEOF
  3795 rm -f conftest.$ac_objext
  3796 if { (ac_try="$ac_compile"
  3797 case "(($ac_try" in
  3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3799   *) ac_try_echo=$ac_try;;
  3800 esac
  3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3802   (eval "$ac_compile") 2>conftest.er1
  3803   ac_status=$?
  3804   grep -v '^ *+' conftest.er1 >conftest.err
  3805   rm -f conftest.er1
  3806   cat conftest.err >&5
  3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3808   (exit $ac_status); } && {
  3809 	 test -z "$ac_c_werror_flag" ||
  3810 	 test ! -s conftest.err
  3811        } && test -s conftest.$ac_objext; then
  3812   ac_cv_prog_cc_g=yes
  3813 else
  3814   echo "$as_me: failed program was:" >&5
  3815 sed 's/^/| /' conftest.$ac_ext >&5
  3817 	CFLAGS=""
  3818       cat >conftest.$ac_ext <<_ACEOF
  3819 /* confdefs.h.  */
  3820 _ACEOF
  3821 cat confdefs.h >>conftest.$ac_ext
  3822 cat >>conftest.$ac_ext <<_ACEOF
  3823 /* end confdefs.h.  */
  3825 int
  3826 main ()
  3830   return 0;
  3832 _ACEOF
  3833 rm -f conftest.$ac_objext
  3834 if { (ac_try="$ac_compile"
  3835 case "(($ac_try" in
  3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3837   *) ac_try_echo=$ac_try;;
  3838 esac
  3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3840   (eval "$ac_compile") 2>conftest.er1
  3841   ac_status=$?
  3842   grep -v '^ *+' conftest.er1 >conftest.err
  3843   rm -f conftest.er1
  3844   cat conftest.err >&5
  3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3846   (exit $ac_status); } && {
  3847 	 test -z "$ac_c_werror_flag" ||
  3848 	 test ! -s conftest.err
  3849        } && test -s conftest.$ac_objext; then
  3851 else
  3852   echo "$as_me: failed program was:" >&5
  3853 sed 's/^/| /' conftest.$ac_ext >&5
  3855 	ac_c_werror_flag=$ac_save_c_werror_flag
  3856 	 CFLAGS="-g"
  3857 	 cat >conftest.$ac_ext <<_ACEOF
  3858 /* confdefs.h.  */
  3859 _ACEOF
  3860 cat confdefs.h >>conftest.$ac_ext
  3861 cat >>conftest.$ac_ext <<_ACEOF
  3862 /* end confdefs.h.  */
  3864 int
  3865 main ()
  3869   return 0;
  3871 _ACEOF
  3872 rm -f conftest.$ac_objext
  3873 if { (ac_try="$ac_compile"
  3874 case "(($ac_try" in
  3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3876   *) ac_try_echo=$ac_try;;
  3877 esac
  3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3879   (eval "$ac_compile") 2>conftest.er1
  3880   ac_status=$?
  3881   grep -v '^ *+' conftest.er1 >conftest.err
  3882   rm -f conftest.er1
  3883   cat conftest.err >&5
  3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3885   (exit $ac_status); } && {
  3886 	 test -z "$ac_c_werror_flag" ||
  3887 	 test ! -s conftest.err
  3888        } && test -s conftest.$ac_objext; then
  3889   ac_cv_prog_cc_g=yes
  3890 else
  3891   echo "$as_me: failed program was:" >&5
  3892 sed 's/^/| /' conftest.$ac_ext >&5
  3895 fi
  3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3898 fi
  3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3901 fi
  3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3904    ac_c_werror_flag=$ac_save_c_werror_flag
  3905 fi
  3906 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3907 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3908 if test "$ac_test_CFLAGS" = set; then
  3909   CFLAGS=$ac_save_CFLAGS
  3910 elif test $ac_cv_prog_cc_g = yes; then
  3911   if test "$GCC" = yes; then
  3912     CFLAGS="-g -O2"
  3913   else
  3914     CFLAGS="-g"
  3915   fi
  3916 else
  3917   if test "$GCC" = yes; then
  3918     CFLAGS="-O2"
  3919   else
  3920     CFLAGS=
  3921   fi
  3922 fi
  3923 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3924 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3925 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3926   echo $ECHO_N "(cached) $ECHO_C" >&6
  3927 else
  3928   ac_cv_prog_cc_c89=no
  3929 ac_save_CC=$CC
  3930 cat >conftest.$ac_ext <<_ACEOF
  3931 /* confdefs.h.  */
  3932 _ACEOF
  3933 cat confdefs.h >>conftest.$ac_ext
  3934 cat >>conftest.$ac_ext <<_ACEOF
  3935 /* end confdefs.h.  */
  3936 #include <stdarg.h>
  3937 #include <stdio.h>
  3938 #include <sys/types.h>
  3939 #include <sys/stat.h>
  3940 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3941 struct buf { int x; };
  3942 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3943 static char *e (p, i)
  3944      char **p;
  3945      int i;
  3947   return p[i];
  3949 static char *f (char * (*g) (char **, int), char **p, ...)
  3951   char *s;
  3952   va_list v;
  3953   va_start (v,p);
  3954   s = g (p, va_arg (v,int));
  3955   va_end (v);
  3956   return s;
  3959 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3960    function prototypes and stuff, but not '\xHH' hex character constants.
  3961    These don't provoke an error unfortunately, instead are silently treated
  3962    as 'x'.  The following induces an error, until -std is added to get
  3963    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3964    array size at least.  It's necessary to write '\x00'==0 to get something
  3965    that's true only with -std.  */
  3966 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3968 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3969    inside strings and character constants.  */
  3970 #define FOO(x) 'x'
  3971 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3973 int test (int i, double x);
  3974 struct s1 {int (*f) (int a);};
  3975 struct s2 {int (*f) (double a);};
  3976 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3977 int argc;
  3978 char **argv;
  3979 int
  3980 main ()
  3982 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3984   return 0;
  3986 _ACEOF
  3987 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3988 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3989 do
  3990   CC="$ac_save_CC $ac_arg"
  3991   rm -f conftest.$ac_objext
  3992 if { (ac_try="$ac_compile"
  3993 case "(($ac_try" in
  3994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3995   *) ac_try_echo=$ac_try;;
  3996 esac
  3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3998   (eval "$ac_compile") 2>conftest.er1
  3999   ac_status=$?
  4000   grep -v '^ *+' conftest.er1 >conftest.err
  4001   rm -f conftest.er1
  4002   cat conftest.err >&5
  4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4004   (exit $ac_status); } && {
  4005 	 test -z "$ac_c_werror_flag" ||
  4006 	 test ! -s conftest.err
  4007        } && test -s conftest.$ac_objext; then
  4008   ac_cv_prog_cc_c89=$ac_arg
  4009 else
  4010   echo "$as_me: failed program was:" >&5
  4011 sed 's/^/| /' conftest.$ac_ext >&5
  4014 fi
  4016 rm -f core conftest.err conftest.$ac_objext
  4017   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4018 done
  4019 rm -f conftest.$ac_ext
  4020 CC=$ac_save_CC
  4022 fi
  4023 # AC_CACHE_VAL
  4024 case "x$ac_cv_prog_cc_c89" in
  4025   x)
  4026     { echo "$as_me:$LINENO: result: none needed" >&5
  4027 echo "${ECHO_T}none needed" >&6; } ;;
  4028   xno)
  4029     { echo "$as_me:$LINENO: result: unsupported" >&5
  4030 echo "${ECHO_T}unsupported" >&6; } ;;
  4031   *)
  4032     CC="$CC $ac_cv_prog_cc_c89"
  4033     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4034 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4035 esac
  4038 ac_ext=c
  4039 ac_cpp='$CPP $CPPFLAGS'
  4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4044 depcc="$CC"   am_compiler_list=
  4046 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4047 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4048 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4049   echo $ECHO_N "(cached) $ECHO_C" >&6
  4050 else
  4051   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4052   # We make a subdir and do the tests there.  Otherwise we can end up
  4053   # making bogus files that we don't know about and never remove.  For
  4054   # instance it was reported that on HP-UX the gcc test will end up
  4055   # making a dummy file named `D' -- because `-MD' means `put the output
  4056   # in D'.
  4057   mkdir conftest.dir
  4058   # Copy depcomp to subdir because otherwise we won't find it if we're
  4059   # using a relative directory.
  4060   cp "$am_depcomp" conftest.dir
  4061   cd conftest.dir
  4062   # We will build objects and dependencies in a subdirectory because
  4063   # it helps to detect inapplicable dependency modes.  For instance
  4064   # both Tru64's cc and ICC support -MD to output dependencies as a
  4065   # side effect of compilation, but ICC will put the dependencies in
  4066   # the current directory while Tru64 will put them in the object
  4067   # directory.
  4068   mkdir sub
  4070   am_cv_CC_dependencies_compiler_type=none
  4071   if test "$am_compiler_list" = ""; then
  4072      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4073   fi
  4074   for depmode in $am_compiler_list; do
  4075     # Setup a source with many dependencies, because some compilers
  4076     # like to wrap large dependency lists on column 80 (with \), and
  4077     # we should not choose a depcomp mode which is confused by this.
  4079     # We need to recreate these files for each test, as the compiler may
  4080     # overwrite some of them when testing with obscure command lines.
  4081     # This happens at least with the AIX C compiler.
  4082     : > sub/conftest.c
  4083     for i in 1 2 3 4 5 6; do
  4084       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4085       : > sub/conftst$i.h
  4086     done
  4087     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4089     case $depmode in
  4090     nosideeffect)
  4091       # after this tag, mechanisms are not by side-effect, so they'll
  4092       # only be used when explicitly requested
  4093       if test "x$enable_dependency_tracking" = xyes; then
  4094 	continue
  4095       else
  4096 	break
  4097       fi
  4098       ;;
  4099     none) break ;;
  4100     esac
  4101     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4102     # mode.  It turns out that the SunPro C++ compiler does not properly
  4103     # handle `-M -o', and we need to detect this.
  4104     if depmode=$depmode \
  4105        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4106        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4107        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4108          >/dev/null 2>conftest.err &&
  4109        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4110        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4111        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4112       # icc doesn't choke on unknown options, it will just issue warnings
  4113       # (even with -Werror).  So we grep stderr for any message
  4114       # that says an option was ignored.
  4115       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  4116         am_cv_CC_dependencies_compiler_type=$depmode
  4117         break
  4118       fi
  4119     fi
  4120   done
  4122   cd ..
  4123   rm -rf conftest.dir
  4124 else
  4125   am_cv_CC_dependencies_compiler_type=none
  4126 fi
  4128 fi
  4129 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4130 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4131 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4135 if
  4136   test "x$enable_dependency_tracking" != xno \
  4137   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4138   am__fastdepCC_TRUE=
  4139   am__fastdepCC_FALSE='#'
  4140 else
  4141   am__fastdepCC_TRUE='#'
  4142   am__fastdepCC_FALSE=
  4143 fi
  4149 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  4150 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
  4151 if test "${am_cv_prog_cc_stdc+set}" = set; then
  4152   echo $ECHO_N "(cached) $ECHO_C" >&6
  4153 else
  4154   am_cv_prog_cc_stdc=no
  4155 ac_save_CC="$CC"
  4156 # Don't try gcc -ansi; that turns off useful extensions and
  4157 # breaks some systems' header files.
  4158 # AIX			-qlanglvl=ansi
  4159 # Ultrix and OSF/1	-std1
  4160 # HP-UX 10.20 and later	-Ae
  4161 # HP-UX older versions	-Aa -D_HPUX_SOURCE
  4162 # SVR4			-Xc -D__EXTENSIONS__
  4163 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4164 do
  4165   CC="$ac_save_CC $ac_arg"
  4166   cat >conftest.$ac_ext <<_ACEOF
  4167 /* confdefs.h.  */
  4168 _ACEOF
  4169 cat confdefs.h >>conftest.$ac_ext
  4170 cat >>conftest.$ac_ext <<_ACEOF
  4171 /* end confdefs.h.  */
  4172 #include <stdarg.h>
  4173 #include <stdio.h>
  4174 #include <sys/types.h>
  4175 #include <sys/stat.h>
  4176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4177 struct buf { int x; };
  4178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4179 static char *e (p, i)
  4180      char **p;
  4181      int i;
  4183   return p[i];
  4185 static char *f (char * (*g) (char **, int), char **p, ...)
  4187   char *s;
  4188   va_list v;
  4189   va_start (v,p);
  4190   s = g (p, va_arg (v,int));
  4191   va_end (v);
  4192   return s;
  4194 int test (int i, double x);
  4195 struct s1 {int (*f) (int a);};
  4196 struct s2 {int (*f) (double a);};
  4197 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4198 int argc;
  4199 char **argv;
  4201 int
  4202 main ()
  4205 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4208   return 0;
  4210 _ACEOF
  4211 rm -f conftest.$ac_objext
  4212 if { (ac_try="$ac_compile"
  4213 case "(($ac_try" in
  4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4215   *) ac_try_echo=$ac_try;;
  4216 esac
  4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4218   (eval "$ac_compile") 2>conftest.er1
  4219   ac_status=$?
  4220   grep -v '^ *+' conftest.er1 >conftest.err
  4221   rm -f conftest.er1
  4222   cat conftest.err >&5
  4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4224   (exit $ac_status); } && {
  4225 	 test -z "$ac_c_werror_flag" ||
  4226 	 test ! -s conftest.err
  4227        } && test -s conftest.$ac_objext; then
  4228   am_cv_prog_cc_stdc="$ac_arg"; break
  4229 else
  4230   echo "$as_me: failed program was:" >&5
  4231 sed 's/^/| /' conftest.$ac_ext >&5
  4234 fi
  4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4237 done
  4238 CC="$ac_save_CC"
  4240 fi
  4242 if test -z "$am_cv_prog_cc_stdc"; then
  4243   { echo "$as_me:$LINENO: result: none needed" >&5
  4244 echo "${ECHO_T}none needed" >&6; }
  4245 else
  4246   { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  4247 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
  4248 fi
  4249 case "x$am_cv_prog_cc_stdc" in
  4250   x|xno) ;;
  4251   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  4252 esac
  4254 ac_ext=c
  4255 ac_cpp='$CPP $CPPFLAGS'
  4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4259 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4260 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4261 # On Suns, sometimes $CPP names a directory.
  4262 if test -n "$CPP" && test -d "$CPP"; then
  4263   CPP=
  4264 fi
  4265 if test -z "$CPP"; then
  4266   if test "${ac_cv_prog_CPP+set}" = set; then
  4267   echo $ECHO_N "(cached) $ECHO_C" >&6
  4268 else
  4269       # Double quotes because CPP needs to be expanded
  4270     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4271     do
  4272       ac_preproc_ok=false
  4273 for ac_c_preproc_warn_flag in '' yes
  4274 do
  4275   # Use a header file that comes with gcc, so configuring glibc
  4276   # with a fresh cross-compiler works.
  4277   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4278   # <limits.h> exists even on freestanding compilers.
  4279   # On the NeXT, cc -E runs the code through the compiler's parser,
  4280   # not just through cpp. "Syntax error" is here to catch this case.
  4281   cat >conftest.$ac_ext <<_ACEOF
  4282 /* confdefs.h.  */
  4283 _ACEOF
  4284 cat confdefs.h >>conftest.$ac_ext
  4285 cat >>conftest.$ac_ext <<_ACEOF
  4286 /* end confdefs.h.  */
  4287 #ifdef __STDC__
  4288 # include <limits.h>
  4289 #else
  4290 # include <assert.h>
  4291 #endif
  4292 		     Syntax error
  4293 _ACEOF
  4294 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4295 case "(($ac_try" in
  4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4297   *) ac_try_echo=$ac_try;;
  4298 esac
  4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4301   ac_status=$?
  4302   grep -v '^ *+' conftest.er1 >conftest.err
  4303   rm -f conftest.er1
  4304   cat conftest.err >&5
  4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4306   (exit $ac_status); } >/dev/null && {
  4307 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4308 	 test ! -s conftest.err
  4309        }; then
  4311 else
  4312   echo "$as_me: failed program was:" >&5
  4313 sed 's/^/| /' conftest.$ac_ext >&5
  4315   # Broken: fails on valid input.
  4316 continue
  4317 fi
  4319 rm -f conftest.err conftest.$ac_ext
  4321   # OK, works on sane cases.  Now check whether nonexistent headers
  4322   # can be detected and how.
  4323   cat >conftest.$ac_ext <<_ACEOF
  4324 /* confdefs.h.  */
  4325 _ACEOF
  4326 cat confdefs.h >>conftest.$ac_ext
  4327 cat >>conftest.$ac_ext <<_ACEOF
  4328 /* end confdefs.h.  */
  4329 #include <ac_nonexistent.h>
  4330 _ACEOF
  4331 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4332 case "(($ac_try" in
  4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4334   *) ac_try_echo=$ac_try;;
  4335 esac
  4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4338   ac_status=$?
  4339   grep -v '^ *+' conftest.er1 >conftest.err
  4340   rm -f conftest.er1
  4341   cat conftest.err >&5
  4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4343   (exit $ac_status); } >/dev/null && {
  4344 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4345 	 test ! -s conftest.err
  4346        }; then
  4347   # Broken: success on invalid input.
  4348 continue
  4349 else
  4350   echo "$as_me: failed program was:" >&5
  4351 sed 's/^/| /' conftest.$ac_ext >&5
  4353   # Passes both tests.
  4354 ac_preproc_ok=:
  4355 break
  4356 fi
  4358 rm -f conftest.err conftest.$ac_ext
  4360 done
  4361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4362 rm -f conftest.err conftest.$ac_ext
  4363 if $ac_preproc_ok; then
  4364   break
  4365 fi
  4367     done
  4368     ac_cv_prog_CPP=$CPP
  4370 fi
  4371   CPP=$ac_cv_prog_CPP
  4372 else
  4373   ac_cv_prog_CPP=$CPP
  4374 fi
  4375 { echo "$as_me:$LINENO: result: $CPP" >&5
  4376 echo "${ECHO_T}$CPP" >&6; }
  4377 ac_preproc_ok=false
  4378 for ac_c_preproc_warn_flag in '' yes
  4379 do
  4380   # Use a header file that comes with gcc, so configuring glibc
  4381   # with a fresh cross-compiler works.
  4382   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4383   # <limits.h> exists even on freestanding compilers.
  4384   # On the NeXT, cc -E runs the code through the compiler's parser,
  4385   # not just through cpp. "Syntax error" is here to catch this case.
  4386   cat >conftest.$ac_ext <<_ACEOF
  4387 /* confdefs.h.  */
  4388 _ACEOF
  4389 cat confdefs.h >>conftest.$ac_ext
  4390 cat >>conftest.$ac_ext <<_ACEOF
  4391 /* end confdefs.h.  */
  4392 #ifdef __STDC__
  4393 # include <limits.h>
  4394 #else
  4395 # include <assert.h>
  4396 #endif
  4397 		     Syntax error
  4398 _ACEOF
  4399 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4400 case "(($ac_try" in
  4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4402   *) ac_try_echo=$ac_try;;
  4403 esac
  4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4406   ac_status=$?
  4407   grep -v '^ *+' conftest.er1 >conftest.err
  4408   rm -f conftest.er1
  4409   cat conftest.err >&5
  4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4411   (exit $ac_status); } >/dev/null && {
  4412 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4413 	 test ! -s conftest.err
  4414        }; then
  4416 else
  4417   echo "$as_me: failed program was:" >&5
  4418 sed 's/^/| /' conftest.$ac_ext >&5
  4420   # Broken: fails on valid input.
  4421 continue
  4422 fi
  4424 rm -f conftest.err conftest.$ac_ext
  4426   # OK, works on sane cases.  Now check whether nonexistent headers
  4427   # can be detected and how.
  4428   cat >conftest.$ac_ext <<_ACEOF
  4429 /* confdefs.h.  */
  4430 _ACEOF
  4431 cat confdefs.h >>conftest.$ac_ext
  4432 cat >>conftest.$ac_ext <<_ACEOF
  4433 /* end confdefs.h.  */
  4434 #include <ac_nonexistent.h>
  4435 _ACEOF
  4436 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4437 case "(($ac_try" in
  4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4439   *) ac_try_echo=$ac_try;;
  4440 esac
  4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4443   ac_status=$?
  4444   grep -v '^ *+' conftest.er1 >conftest.err
  4445   rm -f conftest.er1
  4446   cat conftest.err >&5
  4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4448   (exit $ac_status); } >/dev/null && {
  4449 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4450 	 test ! -s conftest.err
  4451        }; then
  4452   # Broken: success on invalid input.
  4453 continue
  4454 else
  4455   echo "$as_me: failed program was:" >&5
  4456 sed 's/^/| /' conftest.$ac_ext >&5
  4458   # Passes both tests.
  4459 ac_preproc_ok=:
  4460 break
  4461 fi
  4463 rm -f conftest.err conftest.$ac_ext
  4465 done
  4466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4467 rm -f conftest.err conftest.$ac_ext
  4468 if $ac_preproc_ok; then
  4470 else
  4471   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4472 See \`config.log' for more details." >&5
  4473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4474 See \`config.log' for more details." >&2;}
  4475    { (exit 1); exit 1; }; }
  4476 fi
  4478 ac_ext=c
  4479 ac_cpp='$CPP $CPPFLAGS'
  4480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4485 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4486 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4487 if test "${ac_cv_path_GREP+set}" = set; then
  4488   echo $ECHO_N "(cached) $ECHO_C" >&6
  4489 else
  4490   # Extract the first word of "grep ggrep" to use in msg output
  4491 if test -z "$GREP"; then
  4492 set dummy grep ggrep; ac_prog_name=$2
  4493 if test "${ac_cv_path_GREP+set}" = set; then
  4494   echo $ECHO_N "(cached) $ECHO_C" >&6
  4495 else
  4496   ac_path_GREP_found=false
  4497 # Loop through the user's path and test for each of PROGNAME-LIST
  4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4499 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4500 do
  4501   IFS=$as_save_IFS
  4502   test -z "$as_dir" && as_dir=.
  4503   for ac_prog in grep ggrep; do
  4504   for ac_exec_ext in '' $ac_executable_extensions; do
  4505     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4506     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4507     # Check for GNU ac_path_GREP and select it if it is found.
  4508   # Check for GNU $ac_path_GREP
  4509 case `"$ac_path_GREP" --version 2>&1` in
  4510 *GNU*)
  4511   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4512 *)
  4513   ac_count=0
  4514   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4515   while :
  4516   do
  4517     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4518     mv "conftest.tmp" "conftest.in"
  4519     cp "conftest.in" "conftest.nl"
  4520     echo 'GREP' >> "conftest.nl"
  4521     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4522     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4523     ac_count=`expr $ac_count + 1`
  4524     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4525       # Best one so far, save it but keep looking for a better one
  4526       ac_cv_path_GREP="$ac_path_GREP"
  4527       ac_path_GREP_max=$ac_count
  4528     fi
  4529     # 10*(2^10) chars as input seems more than enough
  4530     test $ac_count -gt 10 && break
  4531   done
  4532   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4533 esac
  4536     $ac_path_GREP_found && break 3
  4537   done
  4538 done
  4540 done
  4541 IFS=$as_save_IFS
  4544 fi
  4546 GREP="$ac_cv_path_GREP"
  4547 if test -z "$GREP"; then
  4548   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4549 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4550    { (exit 1); exit 1; }; }
  4551 fi
  4553 else
  4554   ac_cv_path_GREP=$GREP
  4555 fi
  4558 fi
  4559 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4560 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4561  GREP="$ac_cv_path_GREP"
  4564 { echo "$as_me:$LINENO: checking for egrep" >&5
  4565 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4566 if test "${ac_cv_path_EGREP+set}" = set; then
  4567   echo $ECHO_N "(cached) $ECHO_C" >&6
  4568 else
  4569   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4570    then ac_cv_path_EGREP="$GREP -E"
  4571    else
  4572      # Extract the first word of "egrep" to use in msg output
  4573 if test -z "$EGREP"; then
  4574 set dummy egrep; ac_prog_name=$2
  4575 if test "${ac_cv_path_EGREP+set}" = set; then
  4576   echo $ECHO_N "(cached) $ECHO_C" >&6
  4577 else
  4578   ac_path_EGREP_found=false
  4579 # Loop through the user's path and test for each of PROGNAME-LIST
  4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4582 do
  4583   IFS=$as_save_IFS
  4584   test -z "$as_dir" && as_dir=.
  4585   for ac_prog in egrep; do
  4586   for ac_exec_ext in '' $ac_executable_extensions; do
  4587     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4588     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4589     # Check for GNU ac_path_EGREP and select it if it is found.
  4590   # Check for GNU $ac_path_EGREP
  4591 case `"$ac_path_EGREP" --version 2>&1` in
  4592 *GNU*)
  4593   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4594 *)
  4595   ac_count=0
  4596   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4597   while :
  4598   do
  4599     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4600     mv "conftest.tmp" "conftest.in"
  4601     cp "conftest.in" "conftest.nl"
  4602     echo 'EGREP' >> "conftest.nl"
  4603     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4605     ac_count=`expr $ac_count + 1`
  4606     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4607       # Best one so far, save it but keep looking for a better one
  4608       ac_cv_path_EGREP="$ac_path_EGREP"
  4609       ac_path_EGREP_max=$ac_count
  4610     fi
  4611     # 10*(2^10) chars as input seems more than enough
  4612     test $ac_count -gt 10 && break
  4613   done
  4614   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4615 esac
  4618     $ac_path_EGREP_found && break 3
  4619   done
  4620 done
  4622 done
  4623 IFS=$as_save_IFS
  4626 fi
  4628 EGREP="$ac_cv_path_EGREP"
  4629 if test -z "$EGREP"; then
  4630   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4631 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4632    { (exit 1); exit 1; }; }
  4633 fi
  4635 else
  4636   ac_cv_path_EGREP=$EGREP
  4637 fi
  4640    fi
  4641 fi
  4642 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4643 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4644  EGREP="$ac_cv_path_EGREP"
  4647 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4648 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4649 if test "${ac_cv_header_stdc+set}" = set; then
  4650   echo $ECHO_N "(cached) $ECHO_C" >&6
  4651 else
  4652   cat >conftest.$ac_ext <<_ACEOF
  4653 /* confdefs.h.  */
  4654 _ACEOF
  4655 cat confdefs.h >>conftest.$ac_ext
  4656 cat >>conftest.$ac_ext <<_ACEOF
  4657 /* end confdefs.h.  */
  4658 #include <stdlib.h>
  4659 #include <stdarg.h>
  4660 #include <string.h>
  4661 #include <float.h>
  4663 int
  4664 main ()
  4668   return 0;
  4670 _ACEOF
  4671 rm -f conftest.$ac_objext
  4672 if { (ac_try="$ac_compile"
  4673 case "(($ac_try" in
  4674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4675   *) ac_try_echo=$ac_try;;
  4676 esac
  4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4678   (eval "$ac_compile") 2>conftest.er1
  4679   ac_status=$?
  4680   grep -v '^ *+' conftest.er1 >conftest.err
  4681   rm -f conftest.er1
  4682   cat conftest.err >&5
  4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4684   (exit $ac_status); } && {
  4685 	 test -z "$ac_c_werror_flag" ||
  4686 	 test ! -s conftest.err
  4687        } && test -s conftest.$ac_objext; then
  4688   ac_cv_header_stdc=yes
  4689 else
  4690   echo "$as_me: failed program was:" >&5
  4691 sed 's/^/| /' conftest.$ac_ext >&5
  4693 	ac_cv_header_stdc=no
  4694 fi
  4696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4698 if test $ac_cv_header_stdc = yes; then
  4699   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4700   cat >conftest.$ac_ext <<_ACEOF
  4701 /* confdefs.h.  */
  4702 _ACEOF
  4703 cat confdefs.h >>conftest.$ac_ext
  4704 cat >>conftest.$ac_ext <<_ACEOF
  4705 /* end confdefs.h.  */
  4706 #include <string.h>
  4708 _ACEOF
  4709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4710   $EGREP "memchr" >/dev/null 2>&1; then
  4712 else
  4713   ac_cv_header_stdc=no
  4714 fi
  4715 rm -f conftest*
  4717 fi
  4719 if test $ac_cv_header_stdc = yes; then
  4720   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4721   cat >conftest.$ac_ext <<_ACEOF
  4722 /* confdefs.h.  */
  4723 _ACEOF
  4724 cat confdefs.h >>conftest.$ac_ext
  4725 cat >>conftest.$ac_ext <<_ACEOF
  4726 /* end confdefs.h.  */
  4727 #include <stdlib.h>
  4729 _ACEOF
  4730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4731   $EGREP "free" >/dev/null 2>&1; then
  4733 else
  4734   ac_cv_header_stdc=no
  4735 fi
  4736 rm -f conftest*
  4738 fi
  4740 if test $ac_cv_header_stdc = yes; then
  4741   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4742   if test "$cross_compiling" = yes; then
  4744 else
  4745   cat >conftest.$ac_ext <<_ACEOF
  4746 /* confdefs.h.  */
  4747 _ACEOF
  4748 cat confdefs.h >>conftest.$ac_ext
  4749 cat >>conftest.$ac_ext <<_ACEOF
  4750 /* end confdefs.h.  */
  4751 #include <ctype.h>
  4752 #include <stdlib.h>
  4753 #if ((' ' & 0x0FF) == 0x020)
  4754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4756 #else
  4757 # define ISLOWER(c) \
  4758 		   (('a' <= (c) && (c) <= 'i') \
  4759 		     || ('j' <= (c) && (c) <= 'r') \
  4760 		     || ('s' <= (c) && (c) <= 'z'))
  4761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4762 #endif
  4764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4765 int
  4766 main ()
  4768   int i;
  4769   for (i = 0; i < 256; i++)
  4770     if (XOR (islower (i), ISLOWER (i))
  4771 	|| toupper (i) != TOUPPER (i))
  4772       return 2;
  4773   return 0;
  4775 _ACEOF
  4776 rm -f conftest$ac_exeext
  4777 if { (ac_try="$ac_link"
  4778 case "(($ac_try" in
  4779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4780   *) ac_try_echo=$ac_try;;
  4781 esac
  4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4783   (eval "$ac_link") 2>&5
  4784   ac_status=$?
  4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4787   { (case "(($ac_try" in
  4788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4789   *) ac_try_echo=$ac_try;;
  4790 esac
  4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4792   (eval "$ac_try") 2>&5
  4793   ac_status=$?
  4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4795   (exit $ac_status); }; }; then
  4797 else
  4798   echo "$as_me: program exited with status $ac_status" >&5
  4799 echo "$as_me: failed program was:" >&5
  4800 sed 's/^/| /' conftest.$ac_ext >&5
  4802 ( exit $ac_status )
  4803 ac_cv_header_stdc=no
  4804 fi
  4805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4806 fi
  4809 fi
  4810 fi
  4811 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4812 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4813 if test $ac_cv_header_stdc = yes; then
  4815 cat >>confdefs.h <<\_ACEOF
  4816 #define STDC_HEADERS 1
  4817 _ACEOF
  4819 fi
  4824 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  4825 	if test -n "$ac_tool_prefix"; then
  4826   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  4827 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  4828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4830 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  4831   echo $ECHO_N "(cached) $ECHO_C" >&6
  4832 else
  4833   case $PKG_CONFIG in
  4834   [\\/]* | ?:[\\/]*)
  4835   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  4836   ;;
  4837   *)
  4838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4839 for as_dir in $PATH
  4840 do
  4841   IFS=$as_save_IFS
  4842   test -z "$as_dir" && as_dir=.
  4843   for ac_exec_ext in '' $ac_executable_extensions; do
  4844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4845     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4847     break 2
  4848   fi
  4849 done
  4850 done
  4851 IFS=$as_save_IFS
  4853   ;;
  4854 esac
  4855 fi
  4856 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4857 if test -n "$PKG_CONFIG"; then
  4858   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  4859 echo "${ECHO_T}$PKG_CONFIG" >&6; }
  4860 else
  4861   { echo "$as_me:$LINENO: result: no" >&5
  4862 echo "${ECHO_T}no" >&6; }
  4863 fi
  4866 fi
  4867 if test -z "$ac_cv_path_PKG_CONFIG"; then
  4868   ac_pt_PKG_CONFIG=$PKG_CONFIG
  4869   # Extract the first word of "pkg-config", so it can be a program name with args.
  4870 set dummy pkg-config; ac_word=$2
  4871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4873 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  4874   echo $ECHO_N "(cached) $ECHO_C" >&6
  4875 else
  4876   case $ac_pt_PKG_CONFIG in
  4877   [\\/]* | ?:[\\/]*)
  4878   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  4879   ;;
  4880   *)
  4881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4882 for as_dir in $PATH
  4883 do
  4884   IFS=$as_save_IFS
  4885   test -z "$as_dir" && as_dir=.
  4886   for ac_exec_ext in '' $ac_executable_extensions; do
  4887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4888     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4890     break 2
  4891   fi
  4892 done
  4893 done
  4894 IFS=$as_save_IFS
  4896   ;;
  4897 esac
  4898 fi
  4899 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  4900 if test -n "$ac_pt_PKG_CONFIG"; then
  4901   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  4902 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  4903 else
  4904   { echo "$as_me:$LINENO: result: no" >&5
  4905 echo "${ECHO_T}no" >&6; }
  4906 fi
  4908   if test "x$ac_pt_PKG_CONFIG" = x; then
  4909     PKG_CONFIG=""
  4910   else
  4911     case $cross_compiling:$ac_tool_warned in
  4912 yes:)
  4913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4914 whose name does not start with the host triplet.  If you think this
  4915 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4917 whose name does not start with the host triplet.  If you think this
  4918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4919 ac_tool_warned=yes ;;
  4920 esac
  4921     PKG_CONFIG=$ac_pt_PKG_CONFIG
  4922   fi
  4923 else
  4924   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4925 fi
  4927 fi
  4928 if test -n "$PKG_CONFIG"; then
  4929 	_pkg_min_version=0.9.0
  4930 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  4931 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  4932 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4933 		{ echo "$as_me:$LINENO: result: yes" >&5
  4934 echo "${ECHO_T}yes" >&6; }
  4935 	else
  4936 		{ echo "$as_me:$LINENO: result: no" >&5
  4937 echo "${ECHO_T}no" >&6; }
  4938 		PKG_CONFIG=""
  4939 	fi
  4941 fi
  4943 pkg_failed=no
  4944 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
  4945 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
  4947 if test -n "$PKG_CONFIG"; then
  4948     if test -n "$PACKAGE_CFLAGS"; then
  4949         pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
  4950     else
  4951         if test -n "$PKG_CONFIG" && \
  4952     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0      esound      libpng \"") >&5
  4953   ($PKG_CONFIG --exists --print-errors " gtk+-2.0      esound      libpng ") 2>&5
  4954   ac_status=$?
  4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4956   (exit $ac_status); }; then
  4957   pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags " gtk+-2.0      esound      libpng " 2>/dev/null`
  4958 else
  4959   pkg_failed=yes
  4960 fi
  4961     fi
  4962 else
  4963 	pkg_failed=untried
  4964 fi
  4965 if test -n "$PKG_CONFIG"; then
  4966     if test -n "$PACKAGE_LIBS"; then
  4967         pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
  4968     else
  4969         if test -n "$PKG_CONFIG" && \
  4970     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0      esound      libpng \"") >&5
  4971   ($PKG_CONFIG --exists --print-errors " gtk+-2.0      esound      libpng ") 2>&5
  4972   ac_status=$?
  4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4974   (exit $ac_status); }; then
  4975   pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs " gtk+-2.0      esound      libpng " 2>/dev/null`
  4976 else
  4977   pkg_failed=yes
  4978 fi
  4979     fi
  4980 else
  4981 	pkg_failed=untried
  4982 fi
  4986 if test $pkg_failed = yes; then
  4988 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  4989         _pkg_short_errors_supported=yes
  4990 else
  4991         _pkg_short_errors_supported=no
  4992 fi
  4993         if test $_pkg_short_errors_supported = yes; then
  4994 	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " gtk+-2.0      esound      libpng "`
  4995         else
  4996 	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " gtk+-2.0      esound      libpng "`
  4997         fi
  4998 	# Put the nasty error message in config.log where it belongs
  4999 	echo "$PACKAGE_PKG_ERRORS" >&5
  5001 	{ { echo "$as_me:$LINENO: error: Package requirements ( gtk+-2.0      esound      libpng ) were not met:
  5003 $PACKAGE_PKG_ERRORS
  5005 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5006 installed software in a non-standard prefix.
  5008 Alternatively, you may set the environment variables PACKAGE_CFLAGS
  5009 and PACKAGE_LIBS to avoid the need to call pkg-config.
  5010 See the pkg-config man page for more details.
  5011 " >&5
  5012 echo "$as_me: error: Package requirements ( gtk+-2.0      esound      libpng ) were not met:
  5014 $PACKAGE_PKG_ERRORS
  5016 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5017 installed software in a non-standard prefix.
  5019 Alternatively, you may set the environment variables PACKAGE_CFLAGS
  5020 and PACKAGE_LIBS to avoid the need to call pkg-config.
  5021 See the pkg-config man page for more details.
  5022 " >&2;}
  5023    { (exit 1); exit 1; }; }
  5024 elif test $pkg_failed = untried; then
  5025 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  5026 is in your PATH or set the PKG_CONFIG environment variable to the full
  5027 path to pkg-config.
  5029 Alternatively, you may set the environment variables PACKAGE_CFLAGS
  5030 and PACKAGE_LIBS to avoid the need to call pkg-config.
  5031 See the pkg-config man page for more details.
  5033 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5034 See \`config.log' for more details." >&5
  5035 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  5036 is in your PATH or set the PKG_CONFIG environment variable to the full
  5037 path to pkg-config.
  5039 Alternatively, you may set the environment variables PACKAGE_CFLAGS
  5040 and PACKAGE_LIBS to avoid the need to call pkg-config.
  5041 See the pkg-config man page for more details.
  5043 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5044 See \`config.log' for more details." >&2;}
  5045    { (exit 1); exit 1; }; }
  5046 else
  5047 	PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
  5048 	PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
  5049         { echo "$as_me:$LINENO: result: yes" >&5
  5050 echo "${ECHO_T}yes" >&6; }
  5052 fi
  5054 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  5055 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
  5056 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  5057   echo $ECHO_N "(cached) $ECHO_C" >&6
  5058 else
  5059   ac_check_lib_save_LIBS=$LIBS
  5060 LIBS="-lz  $LIBS"
  5061 cat >conftest.$ac_ext <<_ACEOF
  5062 /* confdefs.h.  */
  5063 _ACEOF
  5064 cat confdefs.h >>conftest.$ac_ext
  5065 cat >>conftest.$ac_ext <<_ACEOF
  5066 /* end confdefs.h.  */
  5068 /* Override any GCC internal prototype to avoid an error.
  5069    Use char because int might match the return type of a GCC
  5070    builtin and then its argument prototype would still apply.  */
  5071 #ifdef __cplusplus
  5072 extern "C"
  5073 #endif
  5074 char uncompress ();
  5075 int
  5076 main ()
  5078 return uncompress ();
  5080   return 0;
  5082 _ACEOF
  5083 rm -f conftest.$ac_objext conftest$ac_exeext
  5084 if { (ac_try="$ac_link"
  5085 case "(($ac_try" in
  5086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5087   *) ac_try_echo=$ac_try;;
  5088 esac
  5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5090   (eval "$ac_link") 2>conftest.er1
  5091   ac_status=$?
  5092   grep -v '^ *+' conftest.er1 >conftest.err
  5093   rm -f conftest.er1
  5094   cat conftest.err >&5
  5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5096   (exit $ac_status); } && {
  5097 	 test -z "$ac_c_werror_flag" ||
  5098 	 test ! -s conftest.err
  5099        } && test -s conftest$ac_exeext &&
  5100        $as_test_x conftest$ac_exeext; then
  5101   ac_cv_lib_z_uncompress=yes
  5102 else
  5103   echo "$as_me: failed program was:" >&5
  5104 sed 's/^/| /' conftest.$ac_ext >&5
  5106 	ac_cv_lib_z_uncompress=no
  5107 fi
  5109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5110       conftest$ac_exeext conftest.$ac_ext
  5111 LIBS=$ac_check_lib_save_LIBS
  5112 fi
  5113 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  5114 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
  5115 if test $ac_cv_lib_z_uncompress = yes; then
  5116   cat >>confdefs.h <<_ACEOF
  5117 #define HAVE_LIBZ 1
  5118 _ACEOF
  5120   LIBS="-lz $LIBS"
  5122 else
  5124     echo "Zlib (libz.so) could not be found, but is required."
  5125     exit 1
  5126 fi
  5129 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
  5130 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
  5131 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
  5132   echo $ECHO_N "(cached) $ECHO_C" >&6
  5133 else
  5134   ac_check_lib_save_LIBS=$LIBS
  5135 LIBS="-lGL  $LIBS"
  5136 cat >conftest.$ac_ext <<_ACEOF
  5137 /* confdefs.h.  */
  5138 _ACEOF
  5139 cat confdefs.h >>conftest.$ac_ext
  5140 cat >>conftest.$ac_ext <<_ACEOF
  5141 /* end confdefs.h.  */
  5143 /* Override any GCC internal prototype to avoid an error.
  5144    Use char because int might match the return type of a GCC
  5145    builtin and then its argument prototype would still apply.  */
  5146 #ifdef __cplusplus
  5147 extern "C"
  5148 #endif
  5149 char glXQueryVersion ();
  5150 int
  5151 main ()
  5153 return glXQueryVersion ();
  5155   return 0;
  5157 _ACEOF
  5158 rm -f conftest.$ac_objext conftest$ac_exeext
  5159 if { (ac_try="$ac_link"
  5160 case "(($ac_try" in
  5161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5162   *) ac_try_echo=$ac_try;;
  5163 esac
  5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5165   (eval "$ac_link") 2>conftest.er1
  5166   ac_status=$?
  5167   grep -v '^ *+' conftest.er1 >conftest.err
  5168   rm -f conftest.er1
  5169   cat conftest.err >&5
  5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5171   (exit $ac_status); } && {
  5172 	 test -z "$ac_c_werror_flag" ||
  5173 	 test ! -s conftest.err
  5174        } && test -s conftest$ac_exeext &&
  5175        $as_test_x conftest$ac_exeext; then
  5176   ac_cv_lib_GL_glXQueryVersion=yes
  5177 else
  5178   echo "$as_me: failed program was:" >&5
  5179 sed 's/^/| /' conftest.$ac_ext >&5
  5181 	ac_cv_lib_GL_glXQueryVersion=no
  5182 fi
  5184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5185       conftest$ac_exeext conftest.$ac_ext
  5186 LIBS=$ac_check_lib_save_LIBS
  5187 fi
  5188 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
  5189 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
  5190 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
  5191   cat >>confdefs.h <<_ACEOF
  5192 #define HAVE_LIBGL 1
  5193 _ACEOF
  5195   LIBS="-lGL $LIBS"
  5197 else
  5199     echo "The OpenGL library (libGL.so) could not be found, but is required."
  5200     exit 1
  5201 fi
  5204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5215 		  inttypes.h stdint.h unistd.h
  5216 do
  5217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5221   echo $ECHO_N "(cached) $ECHO_C" >&6
  5222 else
  5223   cat >conftest.$ac_ext <<_ACEOF
  5224 /* confdefs.h.  */
  5225 _ACEOF
  5226 cat confdefs.h >>conftest.$ac_ext
  5227 cat >>conftest.$ac_ext <<_ACEOF
  5228 /* end confdefs.h.  */
  5229 $ac_includes_default
  5231 #include <$ac_header>
  5232 _ACEOF
  5233 rm -f conftest.$ac_objext
  5234 if { (ac_try="$ac_compile"
  5235 case "(($ac_try" in
  5236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5237   *) ac_try_echo=$ac_try;;
  5238 esac
  5239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5240   (eval "$ac_compile") 2>conftest.er1
  5241   ac_status=$?
  5242   grep -v '^ *+' conftest.er1 >conftest.err
  5243   rm -f conftest.er1
  5244   cat conftest.err >&5
  5245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5246   (exit $ac_status); } && {
  5247 	 test -z "$ac_c_werror_flag" ||
  5248 	 test ! -s conftest.err
  5249        } && test -s conftest.$ac_objext; then
  5250   eval "$as_ac_Header=yes"
  5251 else
  5252   echo "$as_me: failed program was:" >&5
  5253 sed 's/^/| /' conftest.$ac_ext >&5
  5255 	eval "$as_ac_Header=no"
  5256 fi
  5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5259 fi
  5260 ac_res=`eval echo '${'$as_ac_Header'}'`
  5261 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  5262 echo "${ECHO_T}$ac_res" >&6; }
  5263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5264   cat >>confdefs.h <<_ACEOF
  5265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5266 _ACEOF
  5268 fi
  5270 done
  5273 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  5274   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  5275 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  5276 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  5277   echo $ECHO_N "(cached) $ECHO_C" >&6
  5278 fi
  5279 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  5280 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  5281 else
  5282   # Is the header compilable?
  5283 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  5284 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
  5285 cat >conftest.$ac_ext <<_ACEOF
  5286 /* confdefs.h.  */
  5287 _ACEOF
  5288 cat confdefs.h >>conftest.$ac_ext
  5289 cat >>conftest.$ac_ext <<_ACEOF
  5290 /* end confdefs.h.  */
  5291 $ac_includes_default
  5292 #include <linux/cdrom.h>
  5293 _ACEOF
  5294 rm -f conftest.$ac_objext
  5295 if { (ac_try="$ac_compile"
  5296 case "(($ac_try" in
  5297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5298   *) ac_try_echo=$ac_try;;
  5299 esac
  5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5301   (eval "$ac_compile") 2>conftest.er1
  5302   ac_status=$?
  5303   grep -v '^ *+' conftest.er1 >conftest.err
  5304   rm -f conftest.er1
  5305   cat conftest.err >&5
  5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5307   (exit $ac_status); } && {
  5308 	 test -z "$ac_c_werror_flag" ||
  5309 	 test ! -s conftest.err
  5310        } && test -s conftest.$ac_objext; then
  5311   ac_header_compiler=yes
  5312 else
  5313   echo "$as_me: failed program was:" >&5
  5314 sed 's/^/| /' conftest.$ac_ext >&5
  5316 	ac_header_compiler=no
  5317 fi
  5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5321 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5323 # Is the header present?
  5324 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  5325 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
  5326 cat >conftest.$ac_ext <<_ACEOF
  5327 /* confdefs.h.  */
  5328 _ACEOF
  5329 cat confdefs.h >>conftest.$ac_ext
  5330 cat >>conftest.$ac_ext <<_ACEOF
  5331 /* end confdefs.h.  */
  5332 #include <linux/cdrom.h>
  5333 _ACEOF
  5334 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5335 case "(($ac_try" in
  5336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5337   *) ac_try_echo=$ac_try;;
  5338 esac
  5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5341   ac_status=$?
  5342   grep -v '^ *+' conftest.er1 >conftest.err
  5343   rm -f conftest.er1
  5344   cat conftest.err >&5
  5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5346   (exit $ac_status); } >/dev/null && {
  5347 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5348 	 test ! -s conftest.err
  5349        }; then
  5350   ac_header_preproc=yes
  5351 else
  5352   echo "$as_me: failed program was:" >&5
  5353 sed 's/^/| /' conftest.$ac_ext >&5
  5355   ac_header_preproc=no
  5356 fi
  5358 rm -f conftest.err conftest.$ac_ext
  5359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5360 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5362 # So?  What about this header?
  5363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5364   yes:no: )
  5365     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5366 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5367     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
  5368 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
  5369     ac_header_preproc=yes
  5370     ;;
  5371   no:yes:* )
  5372     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
  5373 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
  5374     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
  5375 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
  5376     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
  5377 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
  5378     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
  5379 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5380     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
  5381 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
  5382     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
  5383 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
  5385     ;;
  5386 esac
  5387 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  5388 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  5389 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  5390   echo $ECHO_N "(cached) $ECHO_C" >&6
  5391 else
  5392   ac_cv_header_linux_cdrom_h=$ac_header_preproc
  5393 fi
  5394 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  5395 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  5397 fi
  5398 if test $ac_cv_header_linux_cdrom_h = yes; then
  5399   HAVE_LINUX_CDROM_H=yes
  5400 else
  5402     echo "Linux CDROM support not found, building without it."
  5403 fi
  5408 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
  5409   CDROM_LINUX_TRUE=
  5410   CDROM_LINUX_FALSE='#'
  5411 else
  5412   CDROM_LINUX_TRUE='#'
  5413   CDROM_LINUX_FALSE=
  5414 fi
  5417 GETTEXT_PACKAGE=lxdream
  5419 cat >>confdefs.h <<_ACEOF
  5420 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  5421 _ACEOF
  5427 ALL_LINGUAS=""
  5430 for ac_header in locale.h
  5431 do
  5432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5434   { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5437   echo $ECHO_N "(cached) $ECHO_C" >&6
  5438 fi
  5439 ac_res=`eval echo '${'$as_ac_Header'}'`
  5440 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  5441 echo "${ECHO_T}$ac_res" >&6; }
  5442 else
  5443   # Is the header compilable?
  5444 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5446 cat >conftest.$ac_ext <<_ACEOF
  5447 /* confdefs.h.  */
  5448 _ACEOF
  5449 cat confdefs.h >>conftest.$ac_ext
  5450 cat >>conftest.$ac_ext <<_ACEOF
  5451 /* end confdefs.h.  */
  5452 $ac_includes_default
  5453 #include <$ac_header>
  5454 _ACEOF
  5455 rm -f conftest.$ac_objext
  5456 if { (ac_try="$ac_compile"
  5457 case "(($ac_try" in
  5458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5459   *) ac_try_echo=$ac_try;;
  5460 esac
  5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5462   (eval "$ac_compile") 2>conftest.er1
  5463   ac_status=$?
  5464   grep -v '^ *+' conftest.er1 >conftest.err
  5465   rm -f conftest.er1
  5466   cat conftest.err >&5
  5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5468   (exit $ac_status); } && {
  5469 	 test -z "$ac_c_werror_flag" ||
  5470 	 test ! -s conftest.err
  5471        } && test -s conftest.$ac_objext; then
  5472   ac_header_compiler=yes
  5473 else
  5474   echo "$as_me: failed program was:" >&5
  5475 sed 's/^/| /' conftest.$ac_ext >&5
  5477 	ac_header_compiler=no
  5478 fi
  5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5482 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5484 # Is the header present?
  5485 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5487 cat >conftest.$ac_ext <<_ACEOF
  5488 /* confdefs.h.  */
  5489 _ACEOF
  5490 cat confdefs.h >>conftest.$ac_ext
  5491 cat >>conftest.$ac_ext <<_ACEOF
  5492 /* end confdefs.h.  */
  5493 #include <$ac_header>
  5494 _ACEOF
  5495 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5496 case "(($ac_try" in
  5497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5498   *) ac_try_echo=$ac_try;;
  5499 esac
  5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5502   ac_status=$?
  5503   grep -v '^ *+' conftest.er1 >conftest.err
  5504   rm -f conftest.er1
  5505   cat conftest.err >&5
  5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5507   (exit $ac_status); } >/dev/null && {
  5508 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5509 	 test ! -s conftest.err
  5510        }; then
  5511   ac_header_preproc=yes
  5512 else
  5513   echo "$as_me: failed program was:" >&5
  5514 sed 's/^/| /' conftest.$ac_ext >&5
  5516   ac_header_preproc=no
  5517 fi
  5519 rm -f conftest.err conftest.$ac_ext
  5520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5521 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5523 # So?  What about this header?
  5524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5525   yes:no: )
  5526     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5530     ac_header_preproc=yes
  5531     ;;
  5532   no:yes:* )
  5533     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5535     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  5536 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  5537     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5539     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  5540 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  5541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5543     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5546     ;;
  5547 esac
  5548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5551   echo $ECHO_N "(cached) $ECHO_C" >&6
  5552 else
  5553   eval "$as_ac_Header=\$ac_header_preproc"
  5554 fi
  5555 ac_res=`eval echo '${'$as_ac_Header'}'`
  5556 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  5557 echo "${ECHO_T}$ac_res" >&6; }
  5559 fi
  5560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5561   cat >>confdefs.h <<_ACEOF
  5562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5563 _ACEOF
  5565 fi
  5567 done
  5569     if test $ac_cv_header_locale_h = yes; then
  5570     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  5571 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  5572 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  5573   echo $ECHO_N "(cached) $ECHO_C" >&6
  5574 else
  5575   cat >conftest.$ac_ext <<_ACEOF
  5576 /* confdefs.h.  */
  5577 _ACEOF
  5578 cat confdefs.h >>conftest.$ac_ext
  5579 cat >>conftest.$ac_ext <<_ACEOF
  5580 /* end confdefs.h.  */
  5581 #include <locale.h>
  5582 int
  5583 main ()
  5585 return LC_MESSAGES
  5587   return 0;
  5589 _ACEOF
  5590 rm -f conftest.$ac_objext conftest$ac_exeext
  5591 if { (ac_try="$ac_link"
  5592 case "(($ac_try" in
  5593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5594   *) ac_try_echo=$ac_try;;
  5595 esac
  5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5597   (eval "$ac_link") 2>conftest.er1
  5598   ac_status=$?
  5599   grep -v '^ *+' conftest.er1 >conftest.err
  5600   rm -f conftest.er1
  5601   cat conftest.err >&5
  5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5603   (exit $ac_status); } && {
  5604 	 test -z "$ac_c_werror_flag" ||
  5605 	 test ! -s conftest.err
  5606        } && test -s conftest$ac_exeext &&
  5607        $as_test_x conftest$ac_exeext; then
  5608   am_cv_val_LC_MESSAGES=yes
  5609 else
  5610   echo "$as_me: failed program was:" >&5
  5611 sed 's/^/| /' conftest.$ac_ext >&5
  5613 	am_cv_val_LC_MESSAGES=no
  5614 fi
  5616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5617       conftest$ac_exeext conftest.$ac_ext
  5618 fi
  5619 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  5620 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  5621     if test $am_cv_val_LC_MESSAGES = yes; then
  5623 cat >>confdefs.h <<\_ACEOF
  5624 #define HAVE_LC_MESSAGES 1
  5625 _ACEOF
  5627     fi
  5628   fi
  5629      USE_NLS=yes
  5632     gt_cv_have_gettext=no
  5634     CATOBJEXT=NONE
  5635     XGETTEXT=:
  5636     INTLLIBS=
  5638     if test "${ac_cv_header_libintl_h+set}" = set; then
  5639   { echo "$as_me:$LINENO: checking for libintl.h" >&5
  5640 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
  5641 if test "${ac_cv_header_libintl_h+set}" = set; then
  5642   echo $ECHO_N "(cached) $ECHO_C" >&6
  5643 fi
  5644 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  5645 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
  5646 else
  5647   # Is the header compilable?
  5648 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
  5649 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
  5650 cat >conftest.$ac_ext <<_ACEOF
  5651 /* confdefs.h.  */
  5652 _ACEOF
  5653 cat confdefs.h >>conftest.$ac_ext
  5654 cat >>conftest.$ac_ext <<_ACEOF
  5655 /* end confdefs.h.  */
  5656 $ac_includes_default
  5657 #include <libintl.h>
  5658 _ACEOF
  5659 rm -f conftest.$ac_objext
  5660 if { (ac_try="$ac_compile"
  5661 case "(($ac_try" in
  5662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5663   *) ac_try_echo=$ac_try;;
  5664 esac
  5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5666   (eval "$ac_compile") 2>conftest.er1
  5667   ac_status=$?
  5668   grep -v '^ *+' conftest.er1 >conftest.err
  5669   rm -f conftest.er1
  5670   cat conftest.err >&5
  5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5672   (exit $ac_status); } && {
  5673 	 test -z "$ac_c_werror_flag" ||
  5674 	 test ! -s conftest.err
  5675        } && test -s conftest.$ac_objext; then
  5676   ac_header_compiler=yes
  5677 else
  5678   echo "$as_me: failed program was:" >&5
  5679 sed 's/^/| /' conftest.$ac_ext >&5
  5681 	ac_header_compiler=no
  5682 fi
  5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5686 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5688 # Is the header present?
  5689 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
  5690 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
  5691 cat >conftest.$ac_ext <<_ACEOF
  5692 /* confdefs.h.  */
  5693 _ACEOF
  5694 cat confdefs.h >>conftest.$ac_ext
  5695 cat >>conftest.$ac_ext <<_ACEOF
  5696 /* end confdefs.h.  */
  5697 #include <libintl.h>
  5698 _ACEOF
  5699 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5700 case "(($ac_try" in
  5701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5702   *) ac_try_echo=$ac_try;;
  5703 esac
  5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5706   ac_status=$?
  5707   grep -v '^ *+' conftest.er1 >conftest.err
  5708   rm -f conftest.er1
  5709   cat conftest.err >&5
  5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5711   (exit $ac_status); } >/dev/null && {
  5712 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5713 	 test ! -s conftest.err
  5714        }; then
  5715   ac_header_preproc=yes
  5716 else
  5717   echo "$as_me: failed program was:" >&5
  5718 sed 's/^/| /' conftest.$ac_ext >&5
  5720   ac_header_preproc=no
  5721 fi
  5723 rm -f conftest.err conftest.$ac_ext
  5724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5725 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5727 # So?  What about this header?
  5728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5729   yes:no: )
  5730     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5731 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5732     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
  5733 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
  5734     ac_header_preproc=yes
  5735     ;;
  5736   no:yes:* )
  5737     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
  5738 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
  5739     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
  5740 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
  5741     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
  5742 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
  5743     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
  5744 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5745     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
  5746 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
  5747     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
  5748 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
  5750     ;;
  5751 esac
  5752 { echo "$as_me:$LINENO: checking for libintl.h" >&5
  5753 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
  5754 if test "${ac_cv_header_libintl_h+set}" = set; then
  5755   echo $ECHO_N "(cached) $ECHO_C" >&6
  5756 else
  5757   ac_cv_header_libintl_h=$ac_header_preproc
  5758 fi
  5759 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  5760 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
  5762 fi
  5763 if test $ac_cv_header_libintl_h = yes; then
  5764   gt_cv_func_dgettext_libintl="no"
  5765       libintl_extra_libs=""
  5768       # First check in libc
  5770       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
  5771 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
  5772 if test "${gt_cv_func_ngettext_libc+set}" = set; then
  5773   echo $ECHO_N "(cached) $ECHO_C" >&6
  5774 else
  5775   cat >conftest.$ac_ext <<_ACEOF
  5776 /* confdefs.h.  */
  5777 _ACEOF
  5778 cat confdefs.h >>conftest.$ac_ext
  5779 cat >>conftest.$ac_ext <<_ACEOF
  5780 /* end confdefs.h.  */
  5782 #include <libintl.h>
  5784 int
  5785 main ()
  5787 return !ngettext ("","", 1)
  5789   return 0;
  5791 _ACEOF
  5792 rm -f conftest.$ac_objext conftest$ac_exeext
  5793 if { (ac_try="$ac_link"
  5794 case "(($ac_try" in
  5795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5796   *) ac_try_echo=$ac_try;;
  5797 esac
  5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5799   (eval "$ac_link") 2>conftest.er1
  5800   ac_status=$?
  5801   grep -v '^ *+' conftest.er1 >conftest.err
  5802   rm -f conftest.er1
  5803   cat conftest.err >&5
  5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5805   (exit $ac_status); } && {
  5806 	 test -z "$ac_c_werror_flag" ||
  5807 	 test ! -s conftest.err
  5808        } && test -s conftest$ac_exeext &&
  5809        $as_test_x conftest$ac_exeext; then
  5810   gt_cv_func_ngettext_libc=yes
  5811 else
  5812   echo "$as_me: failed program was:" >&5
  5813 sed 's/^/| /' conftest.$ac_ext >&5
  5815 	gt_cv_func_ngettext_libc=no
  5816 fi
  5818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5819       conftest$ac_exeext conftest.$ac_ext
  5821 fi
  5822 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
  5823 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
  5825       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  5826 	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
  5827 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
  5828 if test "${gt_cv_func_dgettext_libc+set}" = set; then
  5829   echo $ECHO_N "(cached) $ECHO_C" >&6
  5830 else
  5831   cat >conftest.$ac_ext <<_ACEOF
  5832 /* confdefs.h.  */
  5833 _ACEOF
  5834 cat confdefs.h >>conftest.$ac_ext
  5835 cat >>conftest.$ac_ext <<_ACEOF
  5836 /* end confdefs.h.  */
  5838 #include <libintl.h>
  5840 int
  5841 main ()
  5843 return !dgettext ("","")
  5845   return 0;
  5847 _ACEOF
  5848 rm -f conftest.$ac_objext conftest$ac_exeext
  5849 if { (ac_try="$ac_link"
  5850 case "(($ac_try" in
  5851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5852   *) ac_try_echo=$ac_try;;
  5853 esac
  5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5855   (eval "$ac_link") 2>conftest.er1
  5856   ac_status=$?
  5857   grep -v '^ *+' conftest.er1 >conftest.err
  5858   rm -f conftest.er1
  5859   cat conftest.err >&5
  5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5861   (exit $ac_status); } && {
  5862 	 test -z "$ac_c_werror_flag" ||
  5863 	 test ! -s conftest.err
  5864        } && test -s conftest$ac_exeext &&
  5865        $as_test_x conftest$ac_exeext; then
  5866   gt_cv_func_dgettext_libc=yes
  5867 else
  5868   echo "$as_me: failed program was:" >&5
  5869 sed 's/^/| /' conftest.$ac_ext >&5
  5871 	gt_cv_func_dgettext_libc=no
  5872 fi
  5874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5875       conftest$ac_exeext conftest.$ac_ext
  5877 fi
  5878 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
  5879 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
  5880       fi
  5882       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  5884 for ac_func in bind_textdomain_codeset
  5885 do
  5886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5890   echo $ECHO_N "(cached) $ECHO_C" >&6
  5891 else
  5892   cat >conftest.$ac_ext <<_ACEOF
  5893 /* confdefs.h.  */
  5894 _ACEOF
  5895 cat confdefs.h >>conftest.$ac_ext
  5896 cat >>conftest.$ac_ext <<_ACEOF
  5897 /* end confdefs.h.  */
  5898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  5900 #define $ac_func innocuous_$ac_func
  5902 /* System header to define __stub macros and hopefully few prototypes,
  5903     which can conflict with char $ac_func (); below.
  5904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5905     <limits.h> exists even on freestanding compilers.  */
  5907 #ifdef __STDC__
  5908 # include <limits.h>
  5909 #else
  5910 # include <assert.h>
  5911 #endif
  5913 #undef $ac_func
  5915 /* Override any GCC internal prototype to avoid an error.
  5916    Use char because int might match the return type of a GCC
  5917    builtin and then its argument prototype would still apply.  */
  5918 #ifdef __cplusplus
  5919 extern "C"
  5920 #endif
  5921 char $ac_func ();
  5922 /* The GNU C library defines this for functions which it implements
  5923     to always fail with ENOSYS.  Some functions are actually named
  5924     something starting with __ and the normal name is an alias.  */
  5925 #if defined __stub_$ac_func || defined __stub___$ac_func
  5926 choke me
  5927 #endif
  5929 int
  5930 main ()
  5932 return $ac_func ();
  5934   return 0;
  5936 _ACEOF
  5937 rm -f conftest.$ac_objext conftest$ac_exeext
  5938 if { (ac_try="$ac_link"
  5939 case "(($ac_try" in
  5940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5941   *) ac_try_echo=$ac_try;;
  5942 esac
  5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5944   (eval "$ac_link") 2>conftest.er1
  5945   ac_status=$?
  5946   grep -v '^ *+' conftest.er1 >conftest.err
  5947   rm -f conftest.er1
  5948   cat conftest.err >&5
  5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5950   (exit $ac_status); } && {
  5951 	 test -z "$ac_c_werror_flag" ||
  5952 	 test ! -s conftest.err
  5953        } && test -s conftest$ac_exeext &&
  5954        $as_test_x conftest$ac_exeext; then
  5955   eval "$as_ac_var=yes"
  5956 else
  5957   echo "$as_me: failed program was:" >&5
  5958 sed 's/^/| /' conftest.$ac_ext >&5
  5960 	eval "$as_ac_var=no"
  5961 fi
  5963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5964       conftest$ac_exeext conftest.$ac_ext
  5965 fi
  5966 ac_res=`eval echo '${'$as_ac_var'}'`
  5967 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  5968 echo "${ECHO_T}$ac_res" >&6; }
  5969 if test `eval echo '${'$as_ac_var'}'` = yes; then
  5970   cat >>confdefs.h <<_ACEOF
  5971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5972 _ACEOF
  5974 fi
  5975 done
  5977       fi
  5980       # If we don't have everything we want, check in libintl
  5982       if test "$gt_cv_func_dgettext_libc" != "yes" \
  5983 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
  5984          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  5986         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
  5987 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
  5988 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
  5989   echo $ECHO_N "(cached) $ECHO_C" >&6
  5990 else
  5991   ac_check_lib_save_LIBS=$LIBS
  5992 LIBS="-lintl  $LIBS"
  5993 cat >conftest.$ac_ext <<_ACEOF
  5994 /* confdefs.h.  */
  5995 _ACEOF
  5996 cat confdefs.h >>conftest.$ac_ext
  5997 cat >>conftest.$ac_ext <<_ACEOF
  5998 /* end confdefs.h.  */
  6000 /* Override any GCC internal prototype to avoid an error.
  6001    Use char because int might match the return type of a GCC
  6002    builtin and then its argument prototype would still apply.  */
  6003 #ifdef __cplusplus
  6004 extern "C"
  6005 #endif
  6006 char bindtextdomain ();
  6007 int
  6008 main ()
  6010 return bindtextdomain ();
  6012   return 0;
  6014 _ACEOF
  6015 rm -f conftest.$ac_objext conftest$ac_exeext
  6016 if { (ac_try="$ac_link"
  6017 case "(($ac_try" in
  6018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6019   *) ac_try_echo=$ac_try;;
  6020 esac
  6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6022   (eval "$ac_link") 2>conftest.er1
  6023   ac_status=$?
  6024   grep -v '^ *+' conftest.er1 >conftest.err
  6025   rm -f conftest.er1
  6026   cat conftest.err >&5
  6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6028   (exit $ac_status); } && {
  6029 	 test -z "$ac_c_werror_flag" ||
  6030 	 test ! -s conftest.err
  6031        } && test -s conftest$ac_exeext &&
  6032        $as_test_x conftest$ac_exeext; then
  6033   ac_cv_lib_intl_bindtextdomain=yes
  6034 else
  6035   echo "$as_me: failed program was:" >&5
  6036 sed 's/^/| /' conftest.$ac_ext >&5
  6038 	ac_cv_lib_intl_bindtextdomain=no
  6039 fi
  6041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6042       conftest$ac_exeext conftest.$ac_ext
  6043 LIBS=$ac_check_lib_save_LIBS
  6044 fi
  6045 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
  6046 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
  6047 if test $ac_cv_lib_intl_bindtextdomain = yes; then
  6048   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  6049 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
  6050 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  6051   echo $ECHO_N "(cached) $ECHO_C" >&6
  6052 else
  6053   ac_check_lib_save_LIBS=$LIBS
  6054 LIBS="-lintl  $LIBS"
  6055 cat >conftest.$ac_ext <<_ACEOF
  6056 /* confdefs.h.  */
  6057 _ACEOF
  6058 cat confdefs.h >>conftest.$ac_ext
  6059 cat >>conftest.$ac_ext <<_ACEOF
  6060 /* end confdefs.h.  */
  6062 /* Override any GCC internal prototype to avoid an error.
  6063    Use char because int might match the return type of a GCC
  6064    builtin and then its argument prototype would still apply.  */
  6065 #ifdef __cplusplus
  6066 extern "C"
  6067 #endif
  6068 char ngettext ();
  6069 int
  6070 main ()
  6072 return ngettext ();
  6074   return 0;
  6076 _ACEOF
  6077 rm -f conftest.$ac_objext conftest$ac_exeext
  6078 if { (ac_try="$ac_link"
  6079 case "(($ac_try" in
  6080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6081   *) ac_try_echo=$ac_try;;
  6082 esac
  6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6084   (eval "$ac_link") 2>conftest.er1
  6085   ac_status=$?
  6086   grep -v '^ *+' conftest.er1 >conftest.err
  6087   rm -f conftest.er1
  6088   cat conftest.err >&5
  6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6090   (exit $ac_status); } && {
  6091 	 test -z "$ac_c_werror_flag" ||
  6092 	 test ! -s conftest.err
  6093        } && test -s conftest$ac_exeext &&
  6094        $as_test_x conftest$ac_exeext; then
  6095   ac_cv_lib_intl_ngettext=yes
  6096 else
  6097   echo "$as_me: failed program was:" >&5
  6098 sed 's/^/| /' conftest.$ac_ext >&5
  6100 	ac_cv_lib_intl_ngettext=no
  6101 fi
  6103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6104       conftest$ac_exeext conftest.$ac_ext
  6105 LIBS=$ac_check_lib_save_LIBS
  6106 fi
  6107 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  6108 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
  6109 if test $ac_cv_lib_intl_ngettext = yes; then
  6110   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
  6111 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
  6112 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
  6113   echo $ECHO_N "(cached) $ECHO_C" >&6
  6114 else
  6115   ac_check_lib_save_LIBS=$LIBS
  6116 LIBS="-lintl  $LIBS"
  6117 cat >conftest.$ac_ext <<_ACEOF
  6118 /* confdefs.h.  */
  6119 _ACEOF
  6120 cat confdefs.h >>conftest.$ac_ext
  6121 cat >>conftest.$ac_ext <<_ACEOF
  6122 /* end confdefs.h.  */
  6124 /* Override any GCC internal prototype to avoid an error.
  6125    Use char because int might match the return type of a GCC
  6126    builtin and then its argument prototype would still apply.  */
  6127 #ifdef __cplusplus
  6128 extern "C"
  6129 #endif
  6130 char dgettext ();
  6131 int
  6132 main ()
  6134 return dgettext ();
  6136   return 0;
  6138 _ACEOF
  6139 rm -f conftest.$ac_objext conftest$ac_exeext
  6140 if { (ac_try="$ac_link"
  6141 case "(($ac_try" in
  6142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6143   *) ac_try_echo=$ac_try;;
  6144 esac
  6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6146   (eval "$ac_link") 2>conftest.er1
  6147   ac_status=$?
  6148   grep -v '^ *+' conftest.er1 >conftest.err
  6149   rm -f conftest.er1
  6150   cat conftest.err >&5
  6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6152   (exit $ac_status); } && {
  6153 	 test -z "$ac_c_werror_flag" ||
  6154 	 test ! -s conftest.err
  6155        } && test -s conftest$ac_exeext &&
  6156        $as_test_x conftest$ac_exeext; then
  6157   ac_cv_lib_intl_dgettext=yes
  6158 else
  6159   echo "$as_me: failed program was:" >&5
  6160 sed 's/^/| /' conftest.$ac_ext >&5
  6162 	ac_cv_lib_intl_dgettext=no
  6163 fi
  6165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6166       conftest$ac_exeext conftest.$ac_ext
  6167 LIBS=$ac_check_lib_save_LIBS
  6168 fi
  6169 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
  6170 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
  6171 if test $ac_cv_lib_intl_dgettext = yes; then
  6172   gt_cv_func_dgettext_libintl=yes
  6173 fi
  6175 fi
  6177 fi
  6180 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  6181 	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
  6182 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
  6183 	  { echo "$as_me:$LINENO: result: " >&5
  6184 echo "${ECHO_T}" >&6; }
  6185   	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  6186 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
  6187 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  6188   echo $ECHO_N "(cached) $ECHO_C" >&6
  6189 else
  6190   ac_check_lib_save_LIBS=$LIBS
  6191 LIBS="-lintl -liconv $LIBS"
  6192 cat >conftest.$ac_ext <<_ACEOF
  6193 /* confdefs.h.  */
  6194 _ACEOF
  6195 cat confdefs.h >>conftest.$ac_ext
  6196 cat >>conftest.$ac_ext <<_ACEOF
  6197 /* end confdefs.h.  */
  6199 /* Override any GCC internal prototype to avoid an error.
  6200    Use char because int might match the return type of a GCC
  6201    builtin and then its argument prototype would still apply.  */
  6202 #ifdef __cplusplus
  6203 extern "C"
  6204 #endif
  6205 char ngettext ();
  6206 int
  6207 main ()
  6209 return ngettext ();
  6211   return 0;
  6213 _ACEOF
  6214 rm -f conftest.$ac_objext conftest$ac_exeext
  6215 if { (ac_try="$ac_link"
  6216 case "(($ac_try" in
  6217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6218   *) ac_try_echo=$ac_try;;
  6219 esac
  6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6221   (eval "$ac_link") 2>conftest.er1
  6222   ac_status=$?
  6223   grep -v '^ *+' conftest.er1 >conftest.err
  6224   rm -f conftest.er1
  6225   cat conftest.err >&5
  6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6227   (exit $ac_status); } && {
  6228 	 test -z "$ac_c_werror_flag" ||
  6229 	 test ! -s conftest.err
  6230        } && test -s conftest$ac_exeext &&
  6231        $as_test_x conftest$ac_exeext; then
  6232   ac_cv_lib_intl_ngettext=yes
  6233 else
  6234   echo "$as_me: failed program was:" >&5
  6235 sed 's/^/| /' conftest.$ac_ext >&5
  6237 	ac_cv_lib_intl_ngettext=no
  6238 fi
  6240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6241       conftest$ac_exeext conftest.$ac_ext
  6242 LIBS=$ac_check_lib_save_LIBS
  6243 fi
  6244 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  6245 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
  6246 if test $ac_cv_lib_intl_ngettext = yes; then
  6247   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
  6248 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
  6249 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
  6250   echo $ECHO_N "(cached) $ECHO_C" >&6
  6251 else
  6252   ac_check_lib_save_LIBS=$LIBS
  6253 LIBS="-lintl -liconv $LIBS"
  6254 cat >conftest.$ac_ext <<_ACEOF
  6255 /* confdefs.h.  */
  6256 _ACEOF
  6257 cat confdefs.h >>conftest.$ac_ext
  6258 cat >>conftest.$ac_ext <<_ACEOF
  6259 /* end confdefs.h.  */
  6261 /* Override any GCC internal prototype to avoid an error.
  6262    Use char because int might match the return type of a GCC
  6263    builtin and then its argument prototype would still apply.  */
  6264 #ifdef __cplusplus
  6265 extern "C"
  6266 #endif
  6267 char dcgettext ();
  6268 int
  6269 main ()
  6271 return dcgettext ();
  6273   return 0;
  6275 _ACEOF
  6276 rm -f conftest.$ac_objext conftest$ac_exeext
  6277 if { (ac_try="$ac_link"
  6278 case "(($ac_try" in
  6279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6280   *) ac_try_echo=$ac_try;;
  6281 esac
  6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6283   (eval "$ac_link") 2>conftest.er1
  6284   ac_status=$?
  6285   grep -v '^ *+' conftest.er1 >conftest.err
  6286   rm -f conftest.er1
  6287   cat conftest.err >&5
  6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6289   (exit $ac_status); } && {
  6290 	 test -z "$ac_c_werror_flag" ||
  6291 	 test ! -s conftest.err
  6292        } && test -s conftest$ac_exeext &&
  6293        $as_test_x conftest$ac_exeext; then
  6294   ac_cv_lib_intl_dcgettext=yes
  6295 else
  6296   echo "$as_me: failed program was:" >&5
  6297 sed 's/^/| /' conftest.$ac_ext >&5
  6299 	ac_cv_lib_intl_dcgettext=no
  6300 fi
  6302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6303       conftest$ac_exeext conftest.$ac_ext
  6304 LIBS=$ac_check_lib_save_LIBS
  6305 fi
  6306 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
  6307 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
  6308 if test $ac_cv_lib_intl_dcgettext = yes; then
  6309   gt_cv_func_dgettext_libintl=yes
  6310 			libintl_extra_libs=-liconv
  6311 else
  6313 fi
  6315 else
  6317 fi
  6319         fi
  6322         # If we found libintl, then check in it for bind_textdomain_codeset();
  6323         # we'll prefer libc if neither have bind_textdomain_codeset(),
  6324         # and both have dgettext and ngettext
  6326         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  6327           glib_save_LIBS="$LIBS"
  6328           LIBS="$LIBS -lintl $libintl_extra_libs"
  6329           unset ac_cv_func_bind_textdomain_codeset
  6331 for ac_func in bind_textdomain_codeset
  6332 do
  6333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6337   echo $ECHO_N "(cached) $ECHO_C" >&6
  6338 else
  6339   cat >conftest.$ac_ext <<_ACEOF
  6340 /* confdefs.h.  */
  6341 _ACEOF
  6342 cat confdefs.h >>conftest.$ac_ext
  6343 cat >>conftest.$ac_ext <<_ACEOF
  6344 /* end confdefs.h.  */
  6345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  6347 #define $ac_func innocuous_$ac_func
  6349 /* System header to define __stub macros and hopefully few prototypes,
  6350     which can conflict with char $ac_func (); below.
  6351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6352     <limits.h> exists even on freestanding compilers.  */
  6354 #ifdef __STDC__
  6355 # include <limits.h>
  6356 #else
  6357 # include <assert.h>
  6358 #endif
  6360 #undef $ac_func
  6362 /* Override any GCC internal prototype to avoid an error.
  6363    Use char because int might match the return type of a GCC
  6364    builtin and then its argument prototype would still apply.  */
  6365 #ifdef __cplusplus
  6366 extern "C"
  6367 #endif
  6368 char $ac_func ();
  6369 /* The GNU C library defines this for functions which it implements
  6370     to always fail with ENOSYS.  Some functions are actually named
  6371     something starting with __ and the normal name is an alias.  */
  6372 #if defined __stub_$ac_func || defined __stub___$ac_func
  6373 choke me
  6374 #endif
  6376 int
  6377 main ()
  6379 return $ac_func ();
  6381   return 0;
  6383 _ACEOF
  6384 rm -f conftest.$ac_objext conftest$ac_exeext
  6385 if { (ac_try="$ac_link"
  6386 case "(($ac_try" in
  6387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6388   *) ac_try_echo=$ac_try;;
  6389 esac
  6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6391   (eval "$ac_link") 2>conftest.er1
  6392   ac_status=$?
  6393   grep -v '^ *+' conftest.er1 >conftest.err
  6394   rm -f conftest.er1
  6395   cat conftest.err >&5
  6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6397   (exit $ac_status); } && {
  6398 	 test -z "$ac_c_werror_flag" ||
  6399 	 test ! -s conftest.err
  6400        } && test -s conftest$ac_exeext &&
  6401        $as_test_x conftest$ac_exeext; then
  6402   eval "$as_ac_var=yes"
  6403 else
  6404   echo "$as_me: failed program was:" >&5
  6405 sed 's/^/| /' conftest.$ac_ext >&5
  6407 	eval "$as_ac_var=no"
  6408 fi
  6410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6411       conftest$ac_exeext conftest.$ac_ext
  6412 fi
  6413 ac_res=`eval echo '${'$as_ac_var'}'`
  6414 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  6415 echo "${ECHO_T}$ac_res" >&6; }
  6416 if test `eval echo '${'$as_ac_var'}'` = yes; then
  6417   cat >>confdefs.h <<_ACEOF
  6418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6419 _ACEOF
  6421 fi
  6422 done
  6424           LIBS="$glib_save_LIBS"
  6426           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
  6427             gt_cv_func_dgettext_libc=no
  6428           else
  6429             if test "$gt_cv_func_dgettext_libc" = "yes" \
  6430 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
  6431               gt_cv_func_dgettext_libintl=no
  6432             fi
  6433           fi
  6434         fi
  6435       fi
  6437       if test "$gt_cv_func_dgettext_libc" = "yes" \
  6438 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
  6439         gt_cv_have_gettext=yes
  6440       fi
  6442       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
  6443         INTLLIBS="-lintl $libintl_extra_libs"
  6444       fi
  6446       if test "$gt_cv_have_gettext" = "yes"; then
  6448 cat >>confdefs.h <<\_ACEOF
  6449 #define HAVE_GETTEXT 1
  6450 _ACEOF
  6452 	# Extract the first word of "msgfmt", so it can be a program name with args.
  6453 set dummy msgfmt; ac_word=$2
  6454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6456 if test "${ac_cv_path_MSGFMT+set}" = set; then
  6457   echo $ECHO_N "(cached) $ECHO_C" >&6
  6458 else
  6459   case "$MSGFMT" in
  6460   /*)
  6461   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6462   ;;
  6463   *)
  6464   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6465   for ac_dir in $PATH; do
  6466     test -z "$ac_dir" && ac_dir=.
  6467     if test -f $ac_dir/$ac_word; then
  6468       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  6469 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  6470 	break
  6471       fi
  6472     fi
  6473   done
  6474   IFS="$ac_save_ifs"
  6475   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  6476   ;;
  6477 esac
  6478 fi
  6479 MSGFMT="$ac_cv_path_MSGFMT"
  6480 if test "$MSGFMT" != "no"; then
  6481   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  6482 echo "${ECHO_T}$MSGFMT" >&6; }
  6483 else
  6484   { echo "$as_me:$LINENO: result: no" >&5
  6485 echo "${ECHO_T}no" >&6; }
  6486 fi
  6487 	if test "$MSGFMT" != "no"; then
  6488           glib_save_LIBS="$LIBS"
  6489           LIBS="$LIBS $INTLLIBS"
  6491 for ac_func in dcgettext
  6492 do
  6493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6497   echo $ECHO_N "(cached) $ECHO_C" >&6
  6498 else
  6499   cat >conftest.$ac_ext <<_ACEOF
  6500 /* confdefs.h.  */
  6501 _ACEOF
  6502 cat confdefs.h >>conftest.$ac_ext
  6503 cat >>conftest.$ac_ext <<_ACEOF
  6504 /* end confdefs.h.  */
  6505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  6507 #define $ac_func innocuous_$ac_func
  6509 /* System header to define __stub macros and hopefully few prototypes,
  6510     which can conflict with char $ac_func (); below.
  6511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6512     <limits.h> exists even on freestanding compilers.  */
  6514 #ifdef __STDC__
  6515 # include <limits.h>
  6516 #else
  6517 # include <assert.h>
  6518 #endif
  6520 #undef $ac_func
  6522 /* Override any GCC internal prototype to avoid an error.
  6523    Use char because int might match the return type of a GCC
  6524    builtin and then its argument prototype would still apply.  */
  6525 #ifdef __cplusplus
  6526 extern "C"
  6527 #endif
  6528 char $ac_func ();
  6529 /* The GNU C library defines this for functions which it implements
  6530     to always fail with ENOSYS.  Some functions are actually named
  6531     something starting with __ and the normal name is an alias.  */
  6532 #if defined __stub_$ac_func || defined __stub___$ac_func
  6533 choke me
  6534 #endif
  6536 int
  6537 main ()
  6539 return $ac_func ();
  6541   return 0;
  6543 _ACEOF
  6544 rm -f conftest.$ac_objext conftest$ac_exeext
  6545 if { (ac_try="$ac_link"
  6546 case "(($ac_try" in
  6547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6548   *) ac_try_echo=$ac_try;;
  6549 esac
  6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6551   (eval "$ac_link") 2>conftest.er1
  6552   ac_status=$?
  6553   grep -v '^ *+' conftest.er1 >conftest.err
  6554   rm -f conftest.er1
  6555   cat conftest.err >&5
  6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6557   (exit $ac_status); } && {
  6558 	 test -z "$ac_c_werror_flag" ||
  6559 	 test ! -s conftest.err
  6560        } && test -s conftest$ac_exeext &&
  6561        $as_test_x conftest$ac_exeext; then
  6562   eval "$as_ac_var=yes"
  6563 else
  6564   echo "$as_me: failed program was:" >&5
  6565 sed 's/^/| /' conftest.$ac_ext >&5
  6567 	eval "$as_ac_var=no"
  6568 fi
  6570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6571       conftest$ac_exeext conftest.$ac_ext
  6572 fi
  6573 ac_res=`eval echo '${'$as_ac_var'}'`
  6574 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  6575 echo "${ECHO_T}$ac_res" >&6; }
  6576 if test `eval echo '${'$as_ac_var'}'` = yes; then
  6577   cat >>confdefs.h <<_ACEOF
  6578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6579 _ACEOF
  6581 fi
  6582 done
  6584 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6585 set dummy gmsgfmt; ac_word=$2
  6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6588 if test "${ac_cv_path_GMSGFMT+set}" = set; then
  6589   echo $ECHO_N "(cached) $ECHO_C" >&6
  6590 else
  6591   case $GMSGFMT in
  6592   [\\/]* | ?:[\\/]*)
  6593   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6594   ;;
  6595   *)
  6596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6597 for as_dir in $PATH
  6598 do
  6599   IFS=$as_save_IFS
  6600   test -z "$as_dir" && as_dir=.
  6601   for ac_exec_ext in '' $ac_executable_extensions; do
  6602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6603     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6605     break 2
  6606   fi
  6607 done
  6608 done
  6609 IFS=$as_save_IFS
  6611   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6612   ;;
  6613 esac
  6614 fi
  6615 GMSGFMT=$ac_cv_path_GMSGFMT
  6616 if test -n "$GMSGFMT"; then
  6617   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  6618 echo "${ECHO_T}$GMSGFMT" >&6; }
  6619 else
  6620   { echo "$as_me:$LINENO: result: no" >&5
  6621 echo "${ECHO_T}no" >&6; }
  6622 fi
  6625 	  # Extract the first word of "xgettext", so it can be a program name with args.
  6626 set dummy xgettext; ac_word=$2
  6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6629 if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6630   echo $ECHO_N "(cached) $ECHO_C" >&6
  6631 else
  6632   case "$XGETTEXT" in
  6633   /*)
  6634   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6635   ;;
  6636   *)
  6637   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6638   for ac_dir in $PATH; do
  6639     test -z "$ac_dir" && ac_dir=.
  6640     if test -f $ac_dir/$ac_word; then
  6641       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  6642 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  6643 	break
  6644       fi
  6645     fi
  6646   done
  6647   IFS="$ac_save_ifs"
  6648   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6649   ;;
  6650 esac
  6651 fi
  6652 XGETTEXT="$ac_cv_path_XGETTEXT"
  6653 if test "$XGETTEXT" != ":"; then
  6654   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  6655 echo "${ECHO_T}$XGETTEXT" >&6; }
  6656 else
  6657   { echo "$as_me:$LINENO: result: no" >&5
  6658 echo "${ECHO_T}no" >&6; }
  6659 fi
  6661 	  cat >conftest.$ac_ext <<_ACEOF
  6662 /* confdefs.h.  */
  6663 _ACEOF
  6664 cat confdefs.h >>conftest.$ac_ext
  6665 cat >>conftest.$ac_ext <<_ACEOF
  6666 /* end confdefs.h.  */
  6668 int
  6669 main ()
  6671 extern int _nl_msg_cat_cntr;
  6672 			 return _nl_msg_cat_cntr
  6674   return 0;
  6676 _ACEOF
  6677 rm -f conftest.$ac_objext conftest$ac_exeext
  6678 if { (ac_try="$ac_link"
  6679 case "(($ac_try" in
  6680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6681   *) ac_try_echo=$ac_try;;
  6682 esac
  6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6684   (eval "$ac_link") 2>conftest.er1
  6685   ac_status=$?
  6686   grep -v '^ *+' conftest.er1 >conftest.err
  6687   rm -f conftest.er1
  6688   cat conftest.err >&5
  6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6690   (exit $ac_status); } && {
  6691 	 test -z "$ac_c_werror_flag" ||
  6692 	 test ! -s conftest.err
  6693        } && test -s conftest$ac_exeext &&
  6694        $as_test_x conftest$ac_exeext; then
  6695   CATOBJEXT=.gmo
  6696              DATADIRNAME=share
  6697 else
  6698   echo "$as_me: failed program was:" >&5
  6699 sed 's/^/| /' conftest.$ac_ext >&5
  6701 	case $host in
  6702 	    *-*-solaris*)
  6703 	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
  6704 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
  6705 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
  6706   echo $ECHO_N "(cached) $ECHO_C" >&6
  6707 else
  6708   cat >conftest.$ac_ext <<_ACEOF
  6709 /* confdefs.h.  */
  6710 _ACEOF
  6711 cat confdefs.h >>conftest.$ac_ext
  6712 cat >>conftest.$ac_ext <<_ACEOF
  6713 /* end confdefs.h.  */
  6714 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
  6715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  6716 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
  6718 /* System header to define __stub macros and hopefully few prototypes,
  6719     which can conflict with char bind_textdomain_codeset (); below.
  6720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6721     <limits.h> exists even on freestanding compilers.  */
  6723 #ifdef __STDC__
  6724 # include <limits.h>
  6725 #else
  6726 # include <assert.h>
  6727 #endif
  6729 #undef bind_textdomain_codeset
  6731 /* Override any GCC internal prototype to avoid an error.
  6732    Use char because int might match the return type of a GCC
  6733    builtin and then its argument prototype would still apply.  */
  6734 #ifdef __cplusplus
  6735 extern "C"
  6736 #endif
  6737 char bind_textdomain_codeset ();
  6738 /* The GNU C library defines this for functions which it implements
  6739     to always fail with ENOSYS.  Some functions are actually named
  6740     something starting with __ and the normal name is an alias.  */
  6741 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
  6742 choke me
  6743 #endif
  6745 int
  6746 main ()
  6748 return bind_textdomain_codeset ();
  6750   return 0;
  6752 _ACEOF
  6753 rm -f conftest.$ac_objext conftest$ac_exeext
  6754 if { (ac_try="$ac_link"
  6755 case "(($ac_try" in
  6756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;