Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 635:76c63aac3590
prev614:a2d239d4438a
next1066:ddffe9d2b332
author nkeynes
date Tue Mar 11 08:50:16 2008 +0000 (16 years ago)
branchlxdream-render
permissions -rwxr-xr-x
last change Use maxz rather than minz for tri sorting (better results atm)
Change depth-test-disable to depth-mask (more correct)
Implement alpha test for punchthru polys
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 CCAS
   691 CCASFLAGS
   692 CPP
   693 GREP
   694 EGREP
   695 build
   696 build_cpu
   697 build_vendor
   698 build_os
   699 host
   700 host_cpu
   701 host_vendor
   702 host_os
   703 OSMESA_DRIVER_TRUE
   704 OSMESA_DRIVER_FALSE
   705 PKG_CONFIG
   706 LIBPNG_CFLAGS
   707 LIBPNG_LIBS
   708 GTK_CFLAGS
   709 GTK_LIBS
   710 GUI_CARBON_TRUE
   711 GUI_CARBON_FALSE
   712 GUI_GTK_TRUE
   713 GUI_GTK_FALSE
   714 BUILD_SH4X86_TRUE
   715 BUILD_SH4X86_FALSE
   716 BUILD_X86_64_TRUE
   717 BUILD_X86_64_FALSE
   718 ESOUND_CFLAGS
   719 ESOUND_LIBS
   720 AUDIO_ESOUND_TRUE
   721 AUDIO_ESOUND_FALSE
   722 CDROM_LINUX_TRUE
   723 CDROM_LINUX_FALSE
   724 JOY_LINUX_TRUE
   725 JOY_LINUX_FALSE
   726 SHCC
   727 SHLD
   728 SHOBJCOPY
   729 ARMCC
   730 ARMLD
   731 ARMOBJCOPY
   732 BUILD_SYSTEST_TRUE
   733 BUILD_SYSTEST_FALSE
   734 BUILD_ARMTEST_TRUE
   735 BUILD_ARMTEST_FALSE
   736 GETTEXT_PACKAGE
   737 USE_NLS
   738 MSGFMT
   739 MSGFMT_OPTS
   740 GMSGFMT
   741 XGETTEXT
   742 CATALOGS
   743 CATOBJEXT
   744 DATADIRNAME
   745 GMOFILES
   746 INSTOBJEXT
   747 INTLLIBS
   748 PO_IN_DATADIR_TRUE
   749 PO_IN_DATADIR_FALSE
   750 POFILES
   751 POSUB
   752 MKINSTALLDIRS
   753 LIBOBJS
   754 LTLIBOBJS'
   755 ac_subst_files=''
   756       ac_precious_vars='build_alias
   757 host_alias
   758 target_alias
   759 CC
   760 CFLAGS
   761 LDFLAGS
   762 LIBS
   763 CPPFLAGS
   764 CPP
   765 PKG_CONFIG
   766 LIBPNG_CFLAGS
   767 LIBPNG_LIBS
   768 GTK_CFLAGS
   769 GTK_LIBS
   770 ESOUND_CFLAGS
   771 ESOUND_LIBS'
   774 # Initialize some variables set by options.
   775 ac_init_help=
   776 ac_init_version=false
   777 # The variables have the same names as the options, with
   778 # dashes changed to underlines.
   779 cache_file=/dev/null
   780 exec_prefix=NONE
   781 no_create=
   782 no_recursion=
   783 prefix=NONE
   784 program_prefix=NONE
   785 program_suffix=NONE
   786 program_transform_name=s,x,x,
   787 silent=
   788 site=
   789 srcdir=
   790 verbose=
   791 x_includes=NONE
   792 x_libraries=NONE
   794 # Installation directory options.
   795 # These are left unexpanded so users can "make install exec_prefix=/foo"
   796 # and all the variables that are supposed to be based on exec_prefix
   797 # by default will actually change.
   798 # Use braces instead of parens because sh, perl, etc. also accept them.
   799 # (The list follows the same order as the GNU Coding Standards.)
   800 bindir='${exec_prefix}/bin'
   801 sbindir='${exec_prefix}/sbin'
   802 libexecdir='${exec_prefix}/libexec'
   803 datarootdir='${prefix}/share'
   804 datadir='${datarootdir}'
   805 sysconfdir='${prefix}/etc'
   806 sharedstatedir='${prefix}/com'
   807 localstatedir='${prefix}/var'
   808 includedir='${prefix}/include'
   809 oldincludedir='/usr/include'
   810 docdir='${datarootdir}/doc/${PACKAGE}'
   811 infodir='${datarootdir}/info'
   812 htmldir='${docdir}'
   813 dvidir='${docdir}'
   814 pdfdir='${docdir}'
   815 psdir='${docdir}'
   816 libdir='${exec_prefix}/lib'
   817 localedir='${datarootdir}/locale'
   818 mandir='${datarootdir}/man'
   820 ac_prev=
   821 ac_dashdash=
   822 for ac_option
   823 do
   824   # If the previous option needs an argument, assign it.
   825   if test -n "$ac_prev"; then
   826     eval $ac_prev=\$ac_option
   827     ac_prev=
   828     continue
   829   fi
   831   case $ac_option in
   832   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   833   *)	ac_optarg=yes ;;
   834   esac
   836   # Accept the important Cygnus configure options, so we can diagnose typos.
   838   case $ac_dashdash$ac_option in
   839   --)
   840     ac_dashdash=yes ;;
   842   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   843     ac_prev=bindir ;;
   844   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   845     bindir=$ac_optarg ;;
   847   -build | --build | --buil | --bui | --bu)
   848     ac_prev=build_alias ;;
   849   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   850     build_alias=$ac_optarg ;;
   852   -cache-file | --cache-file | --cache-fil | --cache-fi \
   853   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   854     ac_prev=cache_file ;;
   855   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   856   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   857     cache_file=$ac_optarg ;;
   859   --config-cache | -C)
   860     cache_file=config.cache ;;
   862   -datadir | --datadir | --datadi | --datad)
   863     ac_prev=datadir ;;
   864   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   865     datadir=$ac_optarg ;;
   867   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   868   | --dataroo | --dataro | --datar)
   869     ac_prev=datarootdir ;;
   870   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   871   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   872     datarootdir=$ac_optarg ;;
   874   -disable-* | --disable-*)
   875     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   876     # Reject names that are not valid shell variable names.
   877     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   878       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   879    { (exit 1); exit 1; }; }
   880     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   881     eval enable_$ac_feature=no ;;
   883   -docdir | --docdir | --docdi | --doc | --do)
   884     ac_prev=docdir ;;
   885   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   886     docdir=$ac_optarg ;;
   888   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   889     ac_prev=dvidir ;;
   890   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   891     dvidir=$ac_optarg ;;
   893   -enable-* | --enable-*)
   894     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   895     # Reject names that are not valid shell variable names.
   896     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   897       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   898    { (exit 1); exit 1; }; }
   899     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   900     eval enable_$ac_feature=\$ac_optarg ;;
   902   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   903   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   904   | --exec | --exe | --ex)
   905     ac_prev=exec_prefix ;;
   906   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   907   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   908   | --exec=* | --exe=* | --ex=*)
   909     exec_prefix=$ac_optarg ;;
   911   -gas | --gas | --ga | --g)
   912     # Obsolete; use --with-gas.
   913     with_gas=yes ;;
   915   -help | --help | --hel | --he | -h)
   916     ac_init_help=long ;;
   917   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   918     ac_init_help=recursive ;;
   919   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   920     ac_init_help=short ;;
   922   -host | --host | --hos | --ho)
   923     ac_prev=host_alias ;;
   924   -host=* | --host=* | --hos=* | --ho=*)
   925     host_alias=$ac_optarg ;;
   927   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   928     ac_prev=htmldir ;;
   929   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   930   | --ht=*)
   931     htmldir=$ac_optarg ;;
   933   -includedir | --includedir | --includedi | --included | --include \
   934   | --includ | --inclu | --incl | --inc)
   935     ac_prev=includedir ;;
   936   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   937   | --includ=* | --inclu=* | --incl=* | --inc=*)
   938     includedir=$ac_optarg ;;
   940   -infodir | --infodir | --infodi | --infod | --info | --inf)
   941     ac_prev=infodir ;;
   942   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   943     infodir=$ac_optarg ;;
   945   -libdir | --libdir | --libdi | --libd)
   946     ac_prev=libdir ;;
   947   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   948     libdir=$ac_optarg ;;
   950   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   951   | --libexe | --libex | --libe)
   952     ac_prev=libexecdir ;;
   953   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   954   | --libexe=* | --libex=* | --libe=*)
   955     libexecdir=$ac_optarg ;;
   957   -localedir | --localedir | --localedi | --localed | --locale)
   958     ac_prev=localedir ;;
   959   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   960     localedir=$ac_optarg ;;
   962   -localstatedir | --localstatedir | --localstatedi | --localstated \
   963   | --localstate | --localstat | --localsta | --localst | --locals)
   964     ac_prev=localstatedir ;;
   965   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   966   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   967     localstatedir=$ac_optarg ;;
   969   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   970     ac_prev=mandir ;;
   971   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   972     mandir=$ac_optarg ;;
   974   -nfp | --nfp | --nf)
   975     # Obsolete; use --without-fp.
   976     with_fp=no ;;
   978   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   979   | --no-cr | --no-c | -n)
   980     no_create=yes ;;
   982   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   983   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   984     no_recursion=yes ;;
   986   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   987   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   988   | --oldin | --oldi | --old | --ol | --o)
   989     ac_prev=oldincludedir ;;
   990   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   991   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   992   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   993     oldincludedir=$ac_optarg ;;
   995   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   996     ac_prev=prefix ;;
   997   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   998     prefix=$ac_optarg ;;
  1000   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1001   | --program-pre | --program-pr | --program-p)
  1002     ac_prev=program_prefix ;;
  1003   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1004   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1005     program_prefix=$ac_optarg ;;
  1007   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1008   | --program-suf | --program-su | --program-s)
  1009     ac_prev=program_suffix ;;
  1010   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1011   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1012     program_suffix=$ac_optarg ;;
  1014   -program-transform-name | --program-transform-name \
  1015   | --program-transform-nam | --program-transform-na \
  1016   | --program-transform-n | --program-transform- \
  1017   | --program-transform | --program-transfor \
  1018   | --program-transfo | --program-transf \
  1019   | --program-trans | --program-tran \
  1020   | --progr-tra | --program-tr | --program-t)
  1021     ac_prev=program_transform_name ;;
  1022   -program-transform-name=* | --program-transform-name=* \
  1023   | --program-transform-nam=* | --program-transform-na=* \
  1024   | --program-transform-n=* | --program-transform-=* \
  1025   | --program-transform=* | --program-transfor=* \
  1026   | --program-transfo=* | --program-transf=* \
  1027   | --program-trans=* | --program-tran=* \
  1028   | --progr-tra=* | --program-tr=* | --program-t=*)
  1029     program_transform_name=$ac_optarg ;;
  1031   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1032     ac_prev=pdfdir ;;
  1033   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1034     pdfdir=$ac_optarg ;;
  1036   -psdir | --psdir | --psdi | --psd | --ps)
  1037     ac_prev=psdir ;;
  1038   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1039     psdir=$ac_optarg ;;
  1041   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1042   | -silent | --silent | --silen | --sile | --sil)
  1043     silent=yes ;;
  1045   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1046     ac_prev=sbindir ;;
  1047   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1048   | --sbi=* | --sb=*)
  1049     sbindir=$ac_optarg ;;
  1051   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1052   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1053   | --sharedst | --shareds | --shared | --share | --shar \
  1054   | --sha | --sh)
  1055     ac_prev=sharedstatedir ;;
  1056   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1057   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1058   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1059   | --sha=* | --sh=*)
  1060     sharedstatedir=$ac_optarg ;;
  1062   -site | --site | --sit)
  1063     ac_prev=site ;;
  1064   -site=* | --site=* | --sit=*)
  1065     site=$ac_optarg ;;
  1067   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1068     ac_prev=srcdir ;;
  1069   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1070     srcdir=$ac_optarg ;;
  1072   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1073   | --syscon | --sysco | --sysc | --sys | --sy)
  1074     ac_prev=sysconfdir ;;
  1075   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1076   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1077     sysconfdir=$ac_optarg ;;
  1079   -target | --target | --targe | --targ | --tar | --ta | --t)
  1080     ac_prev=target_alias ;;
  1081   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1082     target_alias=$ac_optarg ;;
  1084   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1085     verbose=yes ;;
  1087   -version | --version | --versio | --versi | --vers | -V)
  1088     ac_init_version=: ;;
  1090   -with-* | --with-*)
  1091     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1092     # Reject names that are not valid shell variable names.
  1093     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1094       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1095    { (exit 1); exit 1; }; }
  1096     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1097     eval with_$ac_package=\$ac_optarg ;;
  1099   -without-* | --without-*)
  1100     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1101     # Reject names that are not valid shell variable names.
  1102     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1103       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1104    { (exit 1); exit 1; }; }
  1105     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1106     eval with_$ac_package=no ;;
  1108   --x)
  1109     # Obsolete; use --with-x.
  1110     with_x=yes ;;
  1112   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1113   | --x-incl | --x-inc | --x-in | --x-i)
  1114     ac_prev=x_includes ;;
  1115   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1116   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1117     x_includes=$ac_optarg ;;
  1119   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1120   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1121     ac_prev=x_libraries ;;
  1122   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1123   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1124     x_libraries=$ac_optarg ;;
  1126   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1127 Try \`$0 --help' for more information." >&2
  1128    { (exit 1); exit 1; }; }
  1129     ;;
  1131   *=*)
  1132     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1133     # Reject names that are not valid shell variable names.
  1134     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1135       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1136    { (exit 1); exit 1; }; }
  1137     eval $ac_envvar=\$ac_optarg
  1138     export $ac_envvar ;;
  1140   *)
  1141     # FIXME: should be removed in autoconf 3.0.
  1142     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1143     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1144       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1145     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1146     ;;
  1148   esac
  1149 done
  1151 if test -n "$ac_prev"; then
  1152   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1153   { echo "$as_me: error: missing argument to $ac_option" >&2
  1154    { (exit 1); exit 1; }; }
  1155 fi
  1157 # Be sure to have absolute directory names.
  1158 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1159 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1160 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1161 		libdir localedir mandir
  1162 do
  1163   eval ac_val=\$$ac_var
  1164   case $ac_val in
  1165     [\\/$]* | ?:[\\/]* )  continue;;
  1166     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1167   esac
  1168   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1169    { (exit 1); exit 1; }; }
  1170 done
  1172 # There might be people who depend on the old broken behavior: `$host'
  1173 # used to hold the argument of --host etc.
  1174 # FIXME: To remove some day.
  1175 build=$build_alias
  1176 host=$host_alias
  1177 target=$target_alias
  1179 # FIXME: To remove some day.
  1180 if test "x$host_alias" != x; then
  1181   if test "x$build_alias" = x; then
  1182     cross_compiling=maybe
  1183     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1184     If a cross compiler is detected then cross compile mode will be used." >&2
  1185   elif test "x$build_alias" != "x$host_alias"; then
  1186     cross_compiling=yes
  1187   fi
  1188 fi
  1190 ac_tool_prefix=
  1191 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1193 test "$silent" = yes && exec 6>/dev/null
  1196 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1197 ac_ls_di=`ls -di .` &&
  1198 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1199   { echo "$as_me: error: Working directory cannot be determined" >&2
  1200    { (exit 1); exit 1; }; }
  1201 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1202   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1203    { (exit 1); exit 1; }; }
  1206 # Find the source files, if location was not specified.
  1207 if test -z "$srcdir"; then
  1208   ac_srcdir_defaulted=yes
  1209   # Try the directory containing this script, then the parent directory.
  1210   ac_confdir=`$as_dirname -- "$0" ||
  1211 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1212 	 X"$0" : 'X\(//\)[^/]' \| \
  1213 	 X"$0" : 'X\(//\)$' \| \
  1214 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1215 echo X"$0" |
  1216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1217 	    s//\1/
  1220 	  /^X\(\/\/\)[^/].*/{
  1221 	    s//\1/
  1224 	  /^X\(\/\/\)$/{
  1225 	    s//\1/
  1228 	  /^X\(\/\).*/{
  1229 	    s//\1/
  1232 	  s/.*/./; q'`
  1233   srcdir=$ac_confdir
  1234   if test ! -r "$srcdir/$ac_unique_file"; then
  1235     srcdir=..
  1236   fi
  1237 else
  1238   ac_srcdir_defaulted=no
  1239 fi
  1240 if test ! -r "$srcdir/$ac_unique_file"; then
  1241   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1242   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1243    { (exit 1); exit 1; }; }
  1244 fi
  1245 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1246 ac_abs_confdir=`(
  1247 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1248    { (exit 1); exit 1; }; }
  1249 	pwd)`
  1250 # When building in place, set srcdir=.
  1251 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1252   srcdir=.
  1253 fi
  1254 # Remove unnecessary trailing slashes from srcdir.
  1255 # Double slashes in file names in object file debugging info
  1256 # mess up M-x gdb in Emacs.
  1257 case $srcdir in
  1258 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1259 esac
  1260 for ac_var in $ac_precious_vars; do
  1261   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1262   eval ac_env_${ac_var}_value=\$${ac_var}
  1263   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1264   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1265 done
  1268 # Report the --help message.
  1270 if test "$ac_init_help" = "long"; then
  1271   # Omit some internal or obsolete options to make the list less imposing.
  1272   # This message is too long to be a string in the A/UX 3.1 sh.
  1273   cat <<_ACEOF
  1274 \`configure' configures this package to adapt to many kinds of systems.
  1276 Usage: $0 [OPTION]... [VAR=VALUE]...
  1278 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1279 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1281 Defaults for the options are specified in brackets.
  1283 Configuration:
  1284   -h, --help              display this help and exit
  1285       --help=short        display options specific to this package
  1286       --help=recursive    display the short help of all the included packages
  1287   -V, --version           display version information and exit
  1288   -q, --quiet, --silent   do not print \`checking...' messages
  1289       --cache-file=FILE   cache test results in FILE [disabled]
  1290   -C, --config-cache      alias for \`--cache-file=config.cache'
  1291   -n, --no-create         do not create output files
  1292       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1294 Installation directories:
  1295   --prefix=PREFIX         install architecture-independent files in PREFIX
  1296 			  [$ac_default_prefix]
  1297   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1298 			  [PREFIX]
  1300 By default, \`make install' will install all the files in
  1301 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1302 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1303 for instance \`--prefix=\$HOME'.
  1305 For better control, use the options below.
  1307 Fine tuning of the installation directories:
  1308   --bindir=DIR           user executables [EPREFIX/bin]
  1309   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1310   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1311   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1312   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1313   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1314   --libdir=DIR           object code libraries [EPREFIX/lib]
  1315   --includedir=DIR       C header files [PREFIX/include]
  1316   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1317   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1318   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1319   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1320   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1321   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1322   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1323   --htmldir=DIR          html documentation [DOCDIR]
  1324   --dvidir=DIR           dvi documentation [DOCDIR]
  1325   --pdfdir=DIR           pdf documentation [DOCDIR]
  1326   --psdir=DIR            ps documentation [DOCDIR]
  1327 _ACEOF
  1329   cat <<\_ACEOF
  1331 Program names:
  1332   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1333   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1334   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1336 System types:
  1337   --build=BUILD     configure for building on BUILD [guessed]
  1338   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1339 _ACEOF
  1340 fi
  1342 if test -n "$ac_init_help"; then
  1344   cat <<\_ACEOF
  1346 Optional Features:
  1347   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1348   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1349   --enable-maintainer-mode enable make rules and dependencies not useful
  1350                           (and sometimes confusing) to the casual installer
  1351   --disable-dependency-tracking Speeds up one-time builds
  1352   --enable-dependency-tracking  Do not reject slow dependency extractors
  1353   --enable-trace          Enable generation of IO traces (warning: hurts
  1354                           performance)
  1355   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1356                           performance)
  1358 Optional Packages:
  1359   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1360   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1361   --with-osmesa           Build with the osmesa GL library (software
  1362                           rendering)
  1364 Some influential environment variables:
  1365   CC          C compiler command
  1366   CFLAGS      C compiler flags
  1367   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1368               nonstandard directory <lib dir>
  1369   LIBS        libraries to pass to the linker, e.g. -l<library>
  1370   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1371               you have headers in a nonstandard directory <include dir>
  1372   CPP         C preprocessor
  1373   PKG_CONFIG  path to pkg-config utility
  1374   LIBPNG_CFLAGS
  1375               C compiler flags for LIBPNG, overriding pkg-config
  1376   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1377   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1378   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1379   ESOUND_CFLAGS
  1380               C compiler flags for ESOUND, overriding pkg-config
  1381   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1383 Use these variables to override the choices made by `configure' or to help
  1384 it to find libraries and programs with nonstandard names/locations.
  1386 _ACEOF
  1387 ac_status=$?
  1388 fi
  1390 if test "$ac_init_help" = "recursive"; then
  1391   # If there are subdirs, report their specific --help.
  1392   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1393     test -d "$ac_dir" || continue
  1394     ac_builddir=.
  1396 case "$ac_dir" in
  1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1398 *)
  1399   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1400   # A ".." for each directory in $ac_dir_suffix.
  1401   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1402   case $ac_top_builddir_sub in
  1403   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1404   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1405   esac ;;
  1406 esac
  1407 ac_abs_top_builddir=$ac_pwd
  1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1409 # for backward compatibility:
  1410 ac_top_builddir=$ac_top_build_prefix
  1412 case $srcdir in
  1413   .)  # We are building in place.
  1414     ac_srcdir=.
  1415     ac_top_srcdir=$ac_top_builddir_sub
  1416     ac_abs_top_srcdir=$ac_pwd ;;
  1417   [\\/]* | ?:[\\/]* )  # Absolute name.
  1418     ac_srcdir=$srcdir$ac_dir_suffix;
  1419     ac_top_srcdir=$srcdir
  1420     ac_abs_top_srcdir=$srcdir ;;
  1421   *) # Relative name.
  1422     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1423     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1424     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1425 esac
  1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1428     cd "$ac_dir" || { ac_status=$?; continue; }
  1429     # Check for guested configure.
  1430     if test -f "$ac_srcdir/configure.gnu"; then
  1431       echo &&
  1432       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1433     elif test -f "$ac_srcdir/configure"; then
  1434       echo &&
  1435       $SHELL "$ac_srcdir/configure" --help=recursive
  1436     else
  1437       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1438     fi || ac_status=$?
  1439     cd "$ac_pwd" || { ac_status=$?; break; }
  1440   done
  1441 fi
  1443 test -n "$ac_init_help" && exit $ac_status
  1444 if $ac_init_version; then
  1445   cat <<\_ACEOF
  1446 configure
  1447 generated by GNU Autoconf 2.61
  1449 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1450 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1451 This configure script is free software; the Free Software Foundation
  1452 gives unlimited permission to copy, distribute and modify it.
  1453 _ACEOF
  1454   exit
  1455 fi
  1456 cat >config.log <<_ACEOF
  1457 This file contains any messages produced by compilers while
  1458 running configure, to aid debugging if configure makes a mistake.
  1460 It was created by $as_me, which was
  1461 generated by GNU Autoconf 2.61.  Invocation command line was
  1463   $ $0 $@
  1465 _ACEOF
  1466 exec 5>>config.log
  1468 cat <<_ASUNAME
  1469 ## --------- ##
  1470 ## Platform. ##
  1471 ## --------- ##
  1473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1480 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1482 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1483 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1485 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1486 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1487 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1488 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1490 _ASUNAME
  1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1493 for as_dir in $PATH
  1494 do
  1495   IFS=$as_save_IFS
  1496   test -z "$as_dir" && as_dir=.
  1497   echo "PATH: $as_dir"
  1498 done
  1499 IFS=$as_save_IFS
  1501 } >&5
  1503 cat >&5 <<_ACEOF
  1506 ## ----------- ##
  1507 ## Core tests. ##
  1508 ## ----------- ##
  1510 _ACEOF
  1513 # Keep a trace of the command line.
  1514 # Strip out --no-create and --no-recursion so they do not pile up.
  1515 # Strip out --silent because we don't want to record it for future runs.
  1516 # Also quote any args containing shell meta-characters.
  1517 # Make two passes to allow for proper duplicate-argument suppression.
  1518 ac_configure_args=
  1519 ac_configure_args0=
  1520 ac_configure_args1=
  1521 ac_must_keep_next=false
  1522 for ac_pass in 1 2
  1523 do
  1524   for ac_arg
  1525   do
  1526     case $ac_arg in
  1527     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1528     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1529     | -silent | --silent | --silen | --sile | --sil)
  1530       continue ;;
  1531     *\'*)
  1532       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1533     esac
  1534     case $ac_pass in
  1535     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1536     2)
  1537       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1538       if test $ac_must_keep_next = true; then
  1539 	ac_must_keep_next=false # Got value, back to normal.
  1540       else
  1541 	case $ac_arg in
  1542 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1543 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1544 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1545 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1546 	    case "$ac_configure_args0 " in
  1547 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1548 	    esac
  1549 	    ;;
  1550 	  -* ) ac_must_keep_next=true ;;
  1551 	esac
  1552       fi
  1553       ac_configure_args="$ac_configure_args '$ac_arg'"
  1554       ;;
  1555     esac
  1556   done
  1557 done
  1558 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1559 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1561 # When interrupted or exit'd, cleanup temporary files, and complete
  1562 # config.log.  We remove comments because anyway the quotes in there
  1563 # would cause problems or look ugly.
  1564 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1566 trap 'exit_status=$?
  1567   # Save into config.log some information that might help in debugging.
  1569     echo
  1571     cat <<\_ASBOX
  1572 ## ---------------- ##
  1573 ## Cache variables. ##
  1574 ## ---------------- ##
  1575 _ASBOX
  1576     echo
  1577     # The following way of writing the cache mishandles newlines in values,
  1579   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1580     eval ac_val=\$$ac_var
  1581     case $ac_val in #(
  1582     *${as_nl}*)
  1583       case $ac_var in #(
  1584       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1586       esac
  1587       case $ac_var in #(
  1588       _ | IFS | as_nl) ;; #(
  1589       *) $as_unset $ac_var ;;
  1590       esac ;;
  1591     esac
  1592   done
  1593   (set) 2>&1 |
  1594     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1595     *${as_nl}ac_space=\ *)
  1596       sed -n \
  1597 	"s/'\''/'\''\\\\'\'''\''/g;
  1598 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1599       ;; #(
  1600     *)
  1601       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1602       ;;
  1603     esac |
  1604     sort
  1606     echo
  1608     cat <<\_ASBOX
  1609 ## ----------------- ##
  1610 ## Output variables. ##
  1611 ## ----------------- ##
  1612 _ASBOX
  1613     echo
  1614     for ac_var in $ac_subst_vars
  1615     do
  1616       eval ac_val=\$$ac_var
  1617       case $ac_val in
  1618       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1619       esac
  1620       echo "$ac_var='\''$ac_val'\''"
  1621     done | sort
  1622     echo
  1624     if test -n "$ac_subst_files"; then
  1625       cat <<\_ASBOX
  1626 ## ------------------- ##
  1627 ## File substitutions. ##
  1628 ## ------------------- ##
  1629 _ASBOX
  1630       echo
  1631       for ac_var in $ac_subst_files
  1632       do
  1633 	eval ac_val=\$$ac_var
  1634 	case $ac_val in
  1635 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1636 	esac
  1637 	echo "$ac_var='\''$ac_val'\''"
  1638       done | sort
  1639       echo
  1640     fi
  1642     if test -s confdefs.h; then
  1643       cat <<\_ASBOX
  1644 ## ----------- ##
  1645 ## confdefs.h. ##
  1646 ## ----------- ##
  1647 _ASBOX
  1648       echo
  1649       cat confdefs.h
  1650       echo
  1651     fi
  1652     test "$ac_signal" != 0 &&
  1653       echo "$as_me: caught signal $ac_signal"
  1654     echo "$as_me: exit $exit_status"
  1655   } >&5
  1656   rm -f core *.core core.conftest.* &&
  1657     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1658     exit $exit_status
  1659 ' 0
  1660 for ac_signal in 1 2 13 15; do
  1661   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1662 done
  1663 ac_signal=0
  1665 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1666 rm -f -r conftest* confdefs.h
  1668 # Predefined preprocessor variables.
  1670 cat >>confdefs.h <<_ACEOF
  1671 #define PACKAGE_NAME "$PACKAGE_NAME"
  1672 _ACEOF
  1675 cat >>confdefs.h <<_ACEOF
  1676 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1677 _ACEOF
  1680 cat >>confdefs.h <<_ACEOF
  1681 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1682 _ACEOF
  1685 cat >>confdefs.h <<_ACEOF
  1686 #define PACKAGE_STRING "$PACKAGE_STRING"
  1687 _ACEOF
  1690 cat >>confdefs.h <<_ACEOF
  1691 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1692 _ACEOF
  1695 # Let the site file select an alternate cache file if it wants to.
  1696 # Prefer explicitly selected file to automatically selected ones.
  1697 if test -n "$CONFIG_SITE"; then
  1698   set x "$CONFIG_SITE"
  1699 elif test "x$prefix" != xNONE; then
  1700   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1701 else
  1702   set x "$ac_default_prefix/share/config.site" \
  1703 	"$ac_default_prefix/etc/config.site"
  1704 fi
  1705 shift
  1706 for ac_site_file
  1707 do
  1708   if test -r "$ac_site_file"; then
  1709     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1710 echo "$as_me: loading site script $ac_site_file" >&6;}
  1711     sed 's/^/| /' "$ac_site_file" >&5
  1712     . "$ac_site_file"
  1713   fi
  1714 done
  1716 if test -r "$cache_file"; then
  1717   # Some versions of bash will fail to source /dev/null (special
  1718   # files actually), so we avoid doing that.
  1719   if test -f "$cache_file"; then
  1720     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1721 echo "$as_me: loading cache $cache_file" >&6;}
  1722     case $cache_file in
  1723       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1724       *)                      . "./$cache_file";;
  1725     esac
  1726   fi
  1727 else
  1728   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1729 echo "$as_me: creating cache $cache_file" >&6;}
  1730   >$cache_file
  1731 fi
  1733 # Check that the precious variables saved in the cache have kept the same
  1734 # value.
  1735 ac_cache_corrupted=false
  1736 for ac_var in $ac_precious_vars; do
  1737   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1738   eval ac_new_set=\$ac_env_${ac_var}_set
  1739   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1740   eval ac_new_val=\$ac_env_${ac_var}_value
  1741   case $ac_old_set,$ac_new_set in
  1742     set,)
  1743       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1744 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1745       ac_cache_corrupted=: ;;
  1746     ,set)
  1747       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1748 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1749       ac_cache_corrupted=: ;;
  1750     ,);;
  1751     *)
  1752       if test "x$ac_old_val" != "x$ac_new_val"; then
  1753 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1754 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1755 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1756 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1757 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1758 echo "$as_me:   current value: $ac_new_val" >&2;}
  1759 	ac_cache_corrupted=:
  1760       fi;;
  1761   esac
  1762   # Pass precious variables to config.status.
  1763   if test "$ac_new_set" = set; then
  1764     case $ac_new_val in
  1765     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1766     *) ac_arg=$ac_var=$ac_new_val ;;
  1767     esac
  1768     case " $ac_configure_args " in
  1769       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1770       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1771     esac
  1772   fi
  1773 done
  1774 if $ac_cache_corrupted; then
  1775   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1776 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1777   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1778 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1779    { (exit 1); exit 1; }; }
  1780 fi
  1798 ac_ext=c
  1799 ac_cpp='$CPP $CPPFLAGS'
  1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1805 am__api_version="1.7"
  1806 ac_aux_dir=
  1807 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1808   if test -f "$ac_dir/install-sh"; then
  1809     ac_aux_dir=$ac_dir
  1810     ac_install_sh="$ac_aux_dir/install-sh -c"
  1811     break
  1812   elif test -f "$ac_dir/install.sh"; then
  1813     ac_aux_dir=$ac_dir
  1814     ac_install_sh="$ac_aux_dir/install.sh -c"
  1815     break
  1816   elif test -f "$ac_dir/shtool"; then
  1817     ac_aux_dir=$ac_dir
  1818     ac_install_sh="$ac_aux_dir/shtool install -c"
  1819     break
  1820   fi
  1821 done
  1822 if test -z "$ac_aux_dir"; then
  1823   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1824 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1825    { (exit 1); exit 1; }; }
  1826 fi
  1828 # These three variables are undocumented and unsupported,
  1829 # and are intended to be withdrawn in a future Autoconf release.
  1830 # They can cause serious problems if a builder's source tree is in a directory
  1831 # whose full name contains unusual characters.
  1832 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1833 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1834 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1837 # Find a good install program.  We prefer a C program (faster),
  1838 # so one script is as good as another.  But avoid the broken or
  1839 # incompatible versions:
  1840 # SysV /etc/install, /usr/sbin/install
  1841 # SunOS /usr/etc/install
  1842 # IRIX /sbin/install
  1843 # AIX /bin/install
  1844 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1845 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1846 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1847 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1848 # OS/2's system install, which has a completely different semantic
  1849 # ./install, which can be erroneously created by make from ./install.sh.
  1850 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1851 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1852 if test -z "$INSTALL"; then
  1853 if test "${ac_cv_path_install+set}" = set; then
  1854   echo $ECHO_N "(cached) $ECHO_C" >&6
  1855 else
  1856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1857 for as_dir in $PATH
  1858 do
  1859   IFS=$as_save_IFS
  1860   test -z "$as_dir" && as_dir=.
  1861   # Account for people who put trailing slashes in PATH elements.
  1862 case $as_dir/ in
  1863   ./ | .// | /cC/* | \
  1864   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1865   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1866   /usr/ucb/* ) ;;
  1867   *)
  1868     # OSF1 and SCO ODT 3.0 have their own names for install.
  1869     # Don't use installbsd from OSF since it installs stuff as root
  1870     # by default.
  1871     for ac_prog in ginstall scoinst install; do
  1872       for ac_exec_ext in '' $ac_executable_extensions; do
  1873 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1874 	  if test $ac_prog = install &&
  1875 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1876 	    # AIX install.  It has an incompatible calling convention.
  1878 	  elif test $ac_prog = install &&
  1879 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1880 	    # program-specific install script used by HP pwplus--don't use.
  1882 	  else
  1883 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1884 	    break 3
  1885 	  fi
  1886 	fi
  1887       done
  1888     done
  1889     ;;
  1890 esac
  1891 done
  1892 IFS=$as_save_IFS
  1895 fi
  1896   if test "${ac_cv_path_install+set}" = set; then
  1897     INSTALL=$ac_cv_path_install
  1898   else
  1899     # As a last resort, use the slow shell script.  Don't cache a
  1900     # value for INSTALL within a source directory, because that will
  1901     # break other packages using the cache if that directory is
  1902     # removed, or if the value is a relative name.
  1903     INSTALL=$ac_install_sh
  1904   fi
  1905 fi
  1906 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1907 echo "${ECHO_T}$INSTALL" >&6; }
  1909 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1910 # It thinks the first close brace ends the variable substitution.
  1911 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1913 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1915 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1917 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1918 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1919 # Just in case
  1920 sleep 1
  1921 echo timestamp > conftest.file
  1922 # Do `set' in a subshell so we don't clobber the current shell's
  1923 # arguments.  Must try -L first in case configure is actually a
  1924 # symlink; some systems play weird games with the mod time of symlinks
  1925 # (eg FreeBSD returns the mod time of the symlink's containing
  1926 # directory).
  1927 if (
  1928    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1929    if test "$*" = "X"; then
  1930       # -L didn't work.
  1931       set X `ls -t $srcdir/configure conftest.file`
  1932    fi
  1933    rm -f conftest.file
  1934    if test "$*" != "X $srcdir/configure conftest.file" \
  1935       && test "$*" != "X conftest.file $srcdir/configure"; then
  1937       # If neither matched, then we have a broken ls.  This can happen
  1938       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1939       # broken ls alias from the environment.  This has actually
  1940       # happened.  Such a system could not be considered "sane".
  1941       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1942 alias in your environment" >&5
  1943 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1944 alias in your environment" >&2;}
  1945    { (exit 1); exit 1; }; }
  1946    fi
  1948    test "$2" = conftest.file
  1950 then
  1951    # Ok.
  1953 else
  1954    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1955 Check your system clock" >&5
  1956 echo "$as_me: error: newly created file is older than distributed files!
  1957 Check your system clock" >&2;}
  1958    { (exit 1); exit 1; }; }
  1959 fi
  1960 { echo "$as_me:$LINENO: result: yes" >&5
  1961 echo "${ECHO_T}yes" >&6; }
  1962 test "$program_prefix" != NONE &&
  1963   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1964 # Use a double $ so make ignores it.
  1965 test "$program_suffix" != NONE &&
  1966   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1967 # Double any \ or $.  echo might interpret backslashes.
  1968 # By default was `s,x,x', remove it if useless.
  1969 cat <<\_ACEOF >conftest.sed
  1970 s/[\\$]/&&/g;s/;s,x,x,$//
  1971 _ACEOF
  1972 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1973 rm -f conftest.sed
  1976 # expand $ac_aux_dir to an absolute path
  1977 am_aux_dir=`cd $ac_aux_dir && pwd`
  1979 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1980 # Use eval to expand $SHELL
  1981 if eval "$MISSING --run true"; then
  1982   am_missing_run="$MISSING --run "
  1983 else
  1984   am_missing_run=
  1985   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1986 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1987 fi
  1989 for ac_prog in gawk mawk nawk awk
  1990 do
  1991   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1992 set dummy $ac_prog; ac_word=$2
  1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1995 if test "${ac_cv_prog_AWK+set}" = set; then
  1996   echo $ECHO_N "(cached) $ECHO_C" >&6
  1997 else
  1998   if test -n "$AWK"; then
  1999   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2000 else
  2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2002 for as_dir in $PATH
  2003 do
  2004   IFS=$as_save_IFS
  2005   test -z "$as_dir" && as_dir=.
  2006   for ac_exec_ext in '' $ac_executable_extensions; do
  2007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2008     ac_cv_prog_AWK="$ac_prog"
  2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2010     break 2
  2011   fi
  2012 done
  2013 done
  2014 IFS=$as_save_IFS
  2016 fi
  2017 fi
  2018 AWK=$ac_cv_prog_AWK
  2019 if test -n "$AWK"; then
  2020   { echo "$as_me:$LINENO: result: $AWK" >&5
  2021 echo "${ECHO_T}$AWK" >&6; }
  2022 else
  2023   { echo "$as_me:$LINENO: result: no" >&5
  2024 echo "${ECHO_T}no" >&6; }
  2025 fi
  2028   test -n "$AWK" && break
  2029 done
  2031 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2032 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2033 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2034 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2035   echo $ECHO_N "(cached) $ECHO_C" >&6
  2036 else
  2037   cat >conftest.make <<\_ACEOF
  2038 SHELL = /bin/sh
  2039 all:
  2040 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2041 _ACEOF
  2042 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2043 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2044   *@@@%%%=?*=@@@%%%*)
  2045     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2046   *)
  2047     eval ac_cv_prog_make_${ac_make}_set=no;;
  2048 esac
  2049 rm -f conftest.make
  2050 fi
  2051 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2052   { echo "$as_me:$LINENO: result: yes" >&5
  2053 echo "${ECHO_T}yes" >&6; }
  2054   SET_MAKE=
  2055 else
  2056   { echo "$as_me:$LINENO: result: no" >&5
  2057 echo "${ECHO_T}no" >&6; }
  2058   SET_MAKE="MAKE=${MAKE-make}"
  2059 fi
  2061 rm -rf .tst 2>/dev/null
  2062 mkdir .tst 2>/dev/null
  2063 if test -d .tst; then
  2064   am__leading_dot=.
  2065 else
  2066   am__leading_dot=_
  2067 fi
  2068 rmdir .tst 2>/dev/null
  2070  # test to see if srcdir already configured
  2071 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2072    test -f $srcdir/config.status; then
  2073   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2074 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2075    { (exit 1); exit 1; }; }
  2076 fi
  2078 # test whether we have cygpath
  2079 if test -z "$CYGPATH_W"; then
  2080   if (cygpath --version) >/dev/null 2>/dev/null; then
  2081     CYGPATH_W='cygpath -w'
  2082   else
  2083     CYGPATH_W=echo
  2084   fi
  2085 fi
  2088 # Define the identity of the package.
  2089  PACKAGE=lxdream
  2090  VERSION=0.8.1
  2093 cat >>confdefs.h <<_ACEOF
  2094 #define PACKAGE "$PACKAGE"
  2095 _ACEOF
  2098 cat >>confdefs.h <<_ACEOF
  2099 #define VERSION "$VERSION"
  2100 _ACEOF
  2102 # Some tools Automake needs.
  2104 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2107 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2110 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2113 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2116 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2119 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2121 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2123 # Installed binaries are usually stripped using `strip' when the user
  2124 # run `make install-strip'.  However `strip' might not be the right
  2125 # tool to use in cross-compilation environments, therefore Automake
  2126 # will honor the `STRIP' environment variable to overrule this program.
  2127 if test "$cross_compiling" != no; then
  2128   if test -n "$ac_tool_prefix"; then
  2129   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2130 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2133 if test "${ac_cv_prog_STRIP+set}" = set; then
  2134   echo $ECHO_N "(cached) $ECHO_C" >&6
  2135 else
  2136   if test -n "$STRIP"; then
  2137   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2138 else
  2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2140 for as_dir in $PATH
  2141 do
  2142   IFS=$as_save_IFS
  2143   test -z "$as_dir" && as_dir=.
  2144   for ac_exec_ext in '' $ac_executable_extensions; do
  2145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2146     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2148     break 2
  2149   fi
  2150 done
  2151 done
  2152 IFS=$as_save_IFS
  2154 fi
  2155 fi
  2156 STRIP=$ac_cv_prog_STRIP
  2157 if test -n "$STRIP"; then
  2158   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2159 echo "${ECHO_T}$STRIP" >&6; }
  2160 else
  2161   { echo "$as_me:$LINENO: result: no" >&5
  2162 echo "${ECHO_T}no" >&6; }
  2163 fi
  2166 fi
  2167 if test -z "$ac_cv_prog_STRIP"; then
  2168   ac_ct_STRIP=$STRIP
  2169   # Extract the first word of "strip", so it can be a program name with args.
  2170 set dummy strip; ac_word=$2
  2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2173 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2174   echo $ECHO_N "(cached) $ECHO_C" >&6
  2175 else
  2176   if test -n "$ac_ct_STRIP"; then
  2177   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2178 else
  2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2180 for as_dir in $PATH
  2181 do
  2182   IFS=$as_save_IFS
  2183   test -z "$as_dir" && as_dir=.
  2184   for ac_exec_ext in '' $ac_executable_extensions; do
  2185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2186     ac_cv_prog_ac_ct_STRIP="strip"
  2187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2188     break 2
  2189   fi
  2190 done
  2191 done
  2192 IFS=$as_save_IFS
  2194 fi
  2195 fi
  2196 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2197 if test -n "$ac_ct_STRIP"; then
  2198   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2199 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2200 else
  2201   { echo "$as_me:$LINENO: result: no" >&5
  2202 echo "${ECHO_T}no" >&6; }
  2203 fi
  2205   if test "x$ac_ct_STRIP" = x; then
  2206     STRIP=":"
  2207   else
  2208     case $cross_compiling:$ac_tool_warned in
  2209 yes:)
  2210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2211 whose name does not start with the host triplet.  If you think this
  2212 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2214 whose name does not start with the host triplet.  If you think this
  2215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2216 ac_tool_warned=yes ;;
  2217 esac
  2218     STRIP=$ac_ct_STRIP
  2219   fi
  2220 else
  2221   STRIP="$ac_cv_prog_STRIP"
  2222 fi
  2224 fi
  2225 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2227 # We need awk for the "check" target.  The system "awk" is bad on
  2228 # some platforms.
  2232 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2233 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2234     # Check whether --enable-maintainer-mode was given.
  2235 if test "${enable_maintainer_mode+set}" = set; then
  2236   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2237 else
  2238   USE_MAINTAINER_MODE=no
  2239 fi
  2241   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2242 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2245 if test $USE_MAINTAINER_MODE = yes; then
  2246   MAINTAINER_MODE_TRUE=
  2247   MAINTAINER_MODE_FALSE='#'
  2248 else
  2249   MAINTAINER_MODE_TRUE='#'
  2250   MAINTAINER_MODE_FALSE=
  2251 fi
  2253   MAINT=$MAINTAINER_MODE_TRUE
  2256 ac_config_headers="$ac_config_headers config.h"
  2259 DEPDIR="${am__leading_dot}deps"
  2261 ac_config_commands="$ac_config_commands depfiles"
  2264 am_make=${MAKE-make}
  2265 cat > confinc << 'END'
  2266 am__doit:
  2267 	@echo done
  2268 .PHONY: am__doit
  2269 END
  2270 # If we don't find an include directive, just comment out the code.
  2271 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2272 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2273 am__include="#"
  2274 am__quote=
  2275 _am_result=none
  2276 # First try GNU make style include.
  2277 echo "include confinc" > confmf
  2278 # We grep out `Entering directory' and `Leaving directory'
  2279 # messages which can occur if `w' ends up in MAKEFLAGS.
  2280 # In particular we don't look at `^make:' because GNU make might
  2281 # be invoked under some other name (usually "gmake"), in which
  2282 # case it prints its new name instead of `make'.
  2283 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2284    am__include=include
  2285    am__quote=
  2286    _am_result=GNU
  2287 fi
  2288 # Now try BSD make style include.
  2289 if test "$am__include" = "#"; then
  2290    echo '.include "confinc"' > confmf
  2291    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2292       am__include=.include
  2293       am__quote="\""
  2294       _am_result=BSD
  2295    fi
  2296 fi
  2299 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2300 echo "${ECHO_T}$_am_result" >&6; }
  2301 rm -f confinc confmf
  2303 # Check whether --enable-dependency-tracking was given.
  2304 if test "${enable_dependency_tracking+set}" = set; then
  2305   enableval=$enable_dependency_tracking;
  2306 fi
  2308 if test "x$enable_dependency_tracking" != xno; then
  2309   am_depcomp="$ac_aux_dir/depcomp"
  2310   AMDEPBACKSLASH='\'
  2311 fi
  2314 if test "x$enable_dependency_tracking" != xno; then
  2315   AMDEP_TRUE=
  2316   AMDEP_FALSE='#'
  2317 else
  2318   AMDEP_TRUE='#'
  2319   AMDEP_FALSE=
  2320 fi
  2324 ac_ext=c
  2325 ac_cpp='$CPP $CPPFLAGS'
  2326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2329 if test -n "$ac_tool_prefix"; then
  2330   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2331 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2334 if test "${ac_cv_prog_CC+set}" = set; then
  2335   echo $ECHO_N "(cached) $ECHO_C" >&6
  2336 else
  2337   if test -n "$CC"; then
  2338   ac_cv_prog_CC="$CC" # Let the user override the test.
  2339 else
  2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2341 for as_dir in $PATH
  2342 do
  2343   IFS=$as_save_IFS
  2344   test -z "$as_dir" && as_dir=.
  2345   for ac_exec_ext in '' $ac_executable_extensions; do
  2346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2347     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2349     break 2
  2350   fi
  2351 done
  2352 done
  2353 IFS=$as_save_IFS
  2355 fi
  2356 fi
  2357 CC=$ac_cv_prog_CC
  2358 if test -n "$CC"; then
  2359   { echo "$as_me:$LINENO: result: $CC" >&5
  2360 echo "${ECHO_T}$CC" >&6; }
  2361 else
  2362   { echo "$as_me:$LINENO: result: no" >&5
  2363 echo "${ECHO_T}no" >&6; }
  2364 fi
  2367 fi
  2368 if test -z "$ac_cv_prog_CC"; then
  2369   ac_ct_CC=$CC
  2370   # Extract the first word of "gcc", so it can be a program name with args.
  2371 set dummy gcc; ac_word=$2
  2372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2375   echo $ECHO_N "(cached) $ECHO_C" >&6
  2376 else
  2377   if test -n "$ac_ct_CC"; then
  2378   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2379 else
  2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2381 for as_dir in $PATH
  2382 do
  2383   IFS=$as_save_IFS
  2384   test -z "$as_dir" && as_dir=.
  2385   for ac_exec_ext in '' $ac_executable_extensions; do
  2386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2387     ac_cv_prog_ac_ct_CC="gcc"
  2388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2389     break 2
  2390   fi
  2391 done
  2392 done
  2393 IFS=$as_save_IFS
  2395 fi
  2396 fi
  2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2398 if test -n "$ac_ct_CC"; then
  2399   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2400 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2401 else
  2402   { echo "$as_me:$LINENO: result: no" >&5
  2403 echo "${ECHO_T}no" >&6; }
  2404 fi
  2406   if test "x$ac_ct_CC" = x; then
  2407     CC=""
  2408   else
  2409     case $cross_compiling:$ac_tool_warned in
  2410 yes:)
  2411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2412 whose name does not start with the host triplet.  If you think this
  2413 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2415 whose name does not start with the host triplet.  If you think this
  2416 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2417 ac_tool_warned=yes ;;
  2418 esac
  2419     CC=$ac_ct_CC
  2420   fi
  2421 else
  2422   CC="$ac_cv_prog_CC"
  2423 fi
  2425 if test -z "$CC"; then
  2426           if test -n "$ac_tool_prefix"; then
  2427     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2428 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2431 if test "${ac_cv_prog_CC+set}" = set; then
  2432   echo $ECHO_N "(cached) $ECHO_C" >&6
  2433 else
  2434   if test -n "$CC"; then
  2435   ac_cv_prog_CC="$CC" # Let the user override the test.
  2436 else
  2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2438 for as_dir in $PATH
  2439 do
  2440   IFS=$as_save_IFS
  2441   test -z "$as_dir" && as_dir=.
  2442   for ac_exec_ext in '' $ac_executable_extensions; do
  2443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2444     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2446     break 2
  2447   fi
  2448 done
  2449 done
  2450 IFS=$as_save_IFS
  2452 fi
  2453 fi
  2454 CC=$ac_cv_prog_CC
  2455 if test -n "$CC"; then
  2456   { echo "$as_me:$LINENO: result: $CC" >&5
  2457 echo "${ECHO_T}$CC" >&6; }
  2458 else
  2459   { echo "$as_me:$LINENO: result: no" >&5
  2460 echo "${ECHO_T}no" >&6; }
  2461 fi
  2464   fi
  2465 fi
  2466 if test -z "$CC"; then
  2467   # Extract the first word of "cc", so it can be a program name with args.
  2468 set dummy cc; ac_word=$2
  2469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2471 if test "${ac_cv_prog_CC+set}" = set; then
  2472   echo $ECHO_N "(cached) $ECHO_C" >&6
  2473 else
  2474   if test -n "$CC"; then
  2475   ac_cv_prog_CC="$CC" # Let the user override the test.
  2476 else
  2477   ac_prog_rejected=no
  2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2479 for as_dir in $PATH
  2480 do
  2481   IFS=$as_save_IFS
  2482   test -z "$as_dir" && as_dir=.
  2483   for ac_exec_ext in '' $ac_executable_extensions; do
  2484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2485     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2486        ac_prog_rejected=yes
  2487        continue
  2488      fi
  2489     ac_cv_prog_CC="cc"
  2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2491     break 2
  2492   fi
  2493 done
  2494 done
  2495 IFS=$as_save_IFS
  2497 if test $ac_prog_rejected = yes; then
  2498   # We found a bogon in the path, so make sure we never use it.
  2499   set dummy $ac_cv_prog_CC
  2500   shift
  2501   if test $# != 0; then
  2502     # We chose a different compiler from the bogus one.
  2503     # However, it has the same basename, so the bogon will be chosen
  2504     # first if we set CC to just the basename; use the full file name.
  2505     shift
  2506     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2507   fi
  2508 fi
  2509 fi
  2510 fi
  2511 CC=$ac_cv_prog_CC
  2512 if test -n "$CC"; then
  2513   { echo "$as_me:$LINENO: result: $CC" >&5
  2514 echo "${ECHO_T}$CC" >&6; }
  2515 else
  2516   { echo "$as_me:$LINENO: result: no" >&5
  2517 echo "${ECHO_T}no" >&6; }
  2518 fi
  2521 fi
  2522 if test -z "$CC"; then
  2523   if test -n "$ac_tool_prefix"; then
  2524   for ac_prog in cl.exe
  2525   do
  2526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2530 if test "${ac_cv_prog_CC+set}" = set; then
  2531   echo $ECHO_N "(cached) $ECHO_C" >&6
  2532 else
  2533   if test -n "$CC"; then
  2534   ac_cv_prog_CC="$CC" # Let the user override the test.
  2535 else
  2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2537 for as_dir in $PATH
  2538 do
  2539   IFS=$as_save_IFS
  2540   test -z "$as_dir" && as_dir=.
  2541   for ac_exec_ext in '' $ac_executable_extensions; do
  2542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2543     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2545     break 2
  2546   fi
  2547 done
  2548 done
  2549 IFS=$as_save_IFS
  2551 fi
  2552 fi
  2553 CC=$ac_cv_prog_CC
  2554 if test -n "$CC"; then
  2555   { echo "$as_me:$LINENO: result: $CC" >&5
  2556 echo "${ECHO_T}$CC" >&6; }
  2557 else
  2558   { echo "$as_me:$LINENO: result: no" >&5
  2559 echo "${ECHO_T}no" >&6; }
  2560 fi
  2563     test -n "$CC" && break
  2564   done
  2565 fi
  2566 if test -z "$CC"; then
  2567   ac_ct_CC=$CC
  2568   for ac_prog in cl.exe
  2569 do
  2570   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2571 set dummy $ac_prog; ac_word=$2
  2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2575   echo $ECHO_N "(cached) $ECHO_C" >&6
  2576 else
  2577   if test -n "$ac_ct_CC"; then
  2578   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2579 else
  2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2581 for as_dir in $PATH
  2582 do
  2583   IFS=$as_save_IFS
  2584   test -z "$as_dir" && as_dir=.
  2585   for ac_exec_ext in '' $ac_executable_extensions; do
  2586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2587     ac_cv_prog_ac_ct_CC="$ac_prog"
  2588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2589     break 2
  2590   fi
  2591 done
  2592 done
  2593 IFS=$as_save_IFS
  2595 fi
  2596 fi
  2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2598 if test -n "$ac_ct_CC"; then
  2599   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2600 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2601 else
  2602   { echo "$as_me:$LINENO: result: no" >&5
  2603 echo "${ECHO_T}no" >&6; }
  2604 fi
  2607   test -n "$ac_ct_CC" && break
  2608 done
  2610   if test "x$ac_ct_CC" = x; then
  2611     CC=""
  2612   else
  2613     case $cross_compiling:$ac_tool_warned in
  2614 yes:)
  2615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2616 whose name does not start with the host triplet.  If you think this
  2617 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2619 whose name does not start with the host triplet.  If you think this
  2620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2621 ac_tool_warned=yes ;;
  2622 esac
  2623     CC=$ac_ct_CC
  2624   fi
  2625 fi
  2627 fi
  2630 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2631 See \`config.log' for more details." >&5
  2632 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2633 See \`config.log' for more details." >&2;}
  2634    { (exit 1); exit 1; }; }
  2636 # Provide some information about the compiler.
  2637 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2638 ac_compiler=`set X $ac_compile; echo $2`
  2639 { (ac_try="$ac_compiler --version >&5"
  2640 case "(($ac_try" in
  2641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2642   *) ac_try_echo=$ac_try;;
  2643 esac
  2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2645   (eval "$ac_compiler --version >&5") 2>&5
  2646   ac_status=$?
  2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2648   (exit $ac_status); }
  2649 { (ac_try="$ac_compiler -v >&5"
  2650 case "(($ac_try" in
  2651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2652   *) ac_try_echo=$ac_try;;
  2653 esac
  2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2655   (eval "$ac_compiler -v >&5") 2>&5
  2656   ac_status=$?
  2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2658   (exit $ac_status); }
  2659 { (ac_try="$ac_compiler -V >&5"
  2660 case "(($ac_try" in
  2661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2662   *) ac_try_echo=$ac_try;;
  2663 esac
  2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2665   (eval "$ac_compiler -V >&5") 2>&5
  2666   ac_status=$?
  2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2668   (exit $ac_status); }
  2670 cat >conftest.$ac_ext <<_ACEOF
  2671 /* confdefs.h.  */
  2672 _ACEOF
  2673 cat confdefs.h >>conftest.$ac_ext
  2674 cat >>conftest.$ac_ext <<_ACEOF
  2675 /* end confdefs.h.  */
  2677 int
  2678 main ()
  2682   return 0;
  2684 _ACEOF
  2685 ac_clean_files_save=$ac_clean_files
  2686 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2687 # Try to create an executable without -o first, disregard a.out.
  2688 # It will help us diagnose broken compilers, and finding out an intuition
  2689 # of exeext.
  2690 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2691 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2692 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2694 # List of possible output files, starting from the most likely.
  2695 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2696 # only as a last resort.  b.out is created by i960 compilers.
  2697 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2699 # The IRIX 6 linker writes into existing files which may not be
  2700 # executable, retaining their permissions.  Remove them first so a
  2701 # subsequent execution test works.
  2702 ac_rmfiles=
  2703 for ac_file in $ac_files
  2704 do
  2705   case $ac_file in
  2706     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2707     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2708   esac
  2709 done
  2710 rm -f $ac_rmfiles
  2712 if { (ac_try="$ac_link_default"
  2713 case "(($ac_try" in
  2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2715   *) ac_try_echo=$ac_try;;
  2716 esac
  2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2718   (eval "$ac_link_default") 2>&5
  2719   ac_status=$?
  2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2721   (exit $ac_status); }; then
  2722   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2723 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2724 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2725 # so that the user can short-circuit this test for compilers unknown to
  2726 # Autoconf.
  2727 for ac_file in $ac_files ''
  2728 do
  2729   test -f "$ac_file" || continue
  2730   case $ac_file in
  2731     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2732 	;;
  2733     [ab].out )
  2734 	# We found the default executable, but exeext='' is most
  2735 	# certainly right.
  2736 	break;;
  2737     *.* )
  2738         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2739 	then :; else
  2740 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2741 	fi
  2742 	# We set ac_cv_exeext here because the later test for it is not
  2743 	# safe: cross compilers may not add the suffix if given an `-o'
  2744 	# argument, so we may need to know it at that point already.
  2745 	# Even if this section looks crufty: it has the advantage of
  2746 	# actually working.
  2747 	break;;
  2748     * )
  2749 	break;;
  2750   esac
  2751 done
  2752 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2754 else
  2755   ac_file=''
  2756 fi
  2758 { echo "$as_me:$LINENO: result: $ac_file" >&5
  2759 echo "${ECHO_T}$ac_file" >&6; }
  2760 if test -z "$ac_file"; then
  2761   echo "$as_me: failed program was:" >&5
  2762 sed 's/^/| /' conftest.$ac_ext >&5
  2764 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2765 See \`config.log' for more details." >&5
  2766 echo "$as_me: error: C compiler cannot create executables
  2767 See \`config.log' for more details." >&2;}
  2768    { (exit 77); exit 77; }; }
  2769 fi
  2771 ac_exeext=$ac_cv_exeext
  2773 # Check that the compiler produces executables we can run.  If not, either
  2774 # the compiler is broken, or we cross compile.
  2775 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2776 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2777 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2778 # If not cross compiling, check that we can run a simple program.
  2779 if test "$cross_compiling" != yes; then
  2780   if { ac_try='./$ac_file'
  2781   { (case "(($ac_try" in
  2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2783   *) ac_try_echo=$ac_try;;
  2784 esac
  2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2786   (eval "$ac_try") 2>&5
  2787   ac_status=$?
  2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2789   (exit $ac_status); }; }; then
  2790     cross_compiling=no
  2791   else
  2792     if test "$cross_compiling" = maybe; then
  2793 	cross_compiling=yes
  2794     else
  2795 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2796 If you meant to cross compile, use \`--host'.
  2797 See \`config.log' for more details." >&5
  2798 echo "$as_me: error: cannot run C compiled programs.
  2799 If you meant to cross compile, use \`--host'.
  2800 See \`config.log' for more details." >&2;}
  2801    { (exit 1); exit 1; }; }
  2802     fi
  2803   fi
  2804 fi
  2805 { echo "$as_me:$LINENO: result: yes" >&5
  2806 echo "${ECHO_T}yes" >&6; }
  2808 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2809 ac_clean_files=$ac_clean_files_save
  2810 # Check that the compiler produces executables we can run.  If not, either
  2811 # the compiler is broken, or we cross compile.
  2812 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2813 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2814 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2815 echo "${ECHO_T}$cross_compiling" >&6; }
  2817 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2818 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2819 if { (ac_try="$ac_link"
  2820 case "(($ac_try" in
  2821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2822   *) ac_try_echo=$ac_try;;
  2823 esac
  2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2825   (eval "$ac_link") 2>&5
  2826   ac_status=$?
  2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2828   (exit $ac_status); }; then
  2829   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2830 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2831 # work properly (i.e., refer to `conftest.exe'), while it won't with
  2832 # `rm'.
  2833 for ac_file in conftest.exe conftest conftest.*; do
  2834   test -f "$ac_file" || continue
  2835   case $ac_file in
  2836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2837     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2838 	  break;;
  2839     * ) break;;
  2840   esac
  2841 done
  2842 else
  2843   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2844 See \`config.log' for more details." >&5
  2845 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2846 See \`config.log' for more details." >&2;}
  2847    { (exit 1); exit 1; }; }
  2848 fi
  2850 rm -f conftest$ac_cv_exeext
  2851 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2852 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2854 rm -f conftest.$ac_ext
  2855 EXEEXT=$ac_cv_exeext
  2856 ac_exeext=$EXEEXT
  2857 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2858 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2859 if test "${ac_cv_objext+set}" = set; then
  2860   echo $ECHO_N "(cached) $ECHO_C" >&6
  2861 else
  2862   cat >conftest.$ac_ext <<_ACEOF
  2863 /* confdefs.h.  */
  2864 _ACEOF
  2865 cat confdefs.h >>conftest.$ac_ext
  2866 cat >>conftest.$ac_ext <<_ACEOF
  2867 /* end confdefs.h.  */
  2869 int
  2870 main ()
  2874   return 0;
  2876 _ACEOF
  2877 rm -f conftest.o conftest.obj
  2878 if { (ac_try="$ac_compile"
  2879 case "(($ac_try" in
  2880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2881   *) ac_try_echo=$ac_try;;
  2882 esac
  2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2884   (eval "$ac_compile") 2>&5
  2885   ac_status=$?
  2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2887   (exit $ac_status); }; then
  2888   for ac_file in conftest.o conftest.obj conftest.*; do
  2889   test -f "$ac_file" || continue;
  2890   case $ac_file in
  2891     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2892     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2893        break;;
  2894   esac
  2895 done
  2896 else
  2897   echo "$as_me: failed program was:" >&5
  2898 sed 's/^/| /' conftest.$ac_ext >&5
  2900 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2901 See \`config.log' for more details." >&5
  2902 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2903 See \`config.log' for more details." >&2;}
  2904    { (exit 1); exit 1; }; }
  2905 fi
  2907 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2908 fi
  2909 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2910 echo "${ECHO_T}$ac_cv_objext" >&6; }
  2911 OBJEXT=$ac_cv_objext
  2912 ac_objext=$OBJEXT
  2913 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2914 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2915 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2916   echo $ECHO_N "(cached) $ECHO_C" >&6
  2917 else
  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 ()
  2928 #ifndef __GNUC__
  2929        choke me
  2930 #endif
  2933   return 0;
  2935 _ACEOF
  2936 rm -f conftest.$ac_objext
  2937 if { (ac_try="$ac_compile"
  2938 case "(($ac_try" in
  2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2940   *) ac_try_echo=$ac_try;;
  2941 esac
  2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2943   (eval "$ac_compile") 2>conftest.er1
  2944   ac_status=$?
  2945   grep -v '^ *+' conftest.er1 >conftest.err
  2946   rm -f conftest.er1
  2947   cat conftest.err >&5
  2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2949   (exit $ac_status); } && {
  2950 	 test -z "$ac_c_werror_flag" ||
  2951 	 test ! -s conftest.err
  2952        } && test -s conftest.$ac_objext; then
  2953   ac_compiler_gnu=yes
  2954 else
  2955   echo "$as_me: failed program was:" >&5
  2956 sed 's/^/| /' conftest.$ac_ext >&5
  2958 	ac_compiler_gnu=no
  2959 fi
  2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2962 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2964 fi
  2965 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2966 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2967 GCC=`test $ac_compiler_gnu = yes && echo yes`
  2968 ac_test_CFLAGS=${CFLAGS+set}
  2969 ac_save_CFLAGS=$CFLAGS
  2970 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2971 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2972 if test "${ac_cv_prog_cc_g+set}" = set; then
  2973   echo $ECHO_N "(cached) $ECHO_C" >&6
  2974 else
  2975   ac_save_c_werror_flag=$ac_c_werror_flag
  2976    ac_c_werror_flag=yes
  2977    ac_cv_prog_cc_g=no
  2978    CFLAGS="-g"
  2979    cat >conftest.$ac_ext <<_ACEOF
  2980 /* confdefs.h.  */
  2981 _ACEOF
  2982 cat confdefs.h >>conftest.$ac_ext
  2983 cat >>conftest.$ac_ext <<_ACEOF
  2984 /* end confdefs.h.  */
  2986 int
  2987 main ()
  2991   return 0;
  2993 _ACEOF
  2994 rm -f conftest.$ac_objext
  2995 if { (ac_try="$ac_compile"
  2996 case "(($ac_try" in
  2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2998   *) ac_try_echo=$ac_try;;
  2999 esac
  3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3001   (eval "$ac_compile") 2>conftest.er1
  3002   ac_status=$?
  3003   grep -v '^ *+' conftest.er1 >conftest.err
  3004   rm -f conftest.er1
  3005   cat conftest.err >&5
  3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3007   (exit $ac_status); } && {
  3008 	 test -z "$ac_c_werror_flag" ||
  3009 	 test ! -s conftest.err
  3010        } && test -s conftest.$ac_objext; then
  3011   ac_cv_prog_cc_g=yes
  3012 else
  3013   echo "$as_me: failed program was:" >&5
  3014 sed 's/^/| /' conftest.$ac_ext >&5
  3016 	CFLAGS=""
  3017       cat >conftest.$ac_ext <<_ACEOF
  3018 /* confdefs.h.  */
  3019 _ACEOF
  3020 cat confdefs.h >>conftest.$ac_ext
  3021 cat >>conftest.$ac_ext <<_ACEOF
  3022 /* end confdefs.h.  */
  3024 int
  3025 main ()
  3029   return 0;
  3031 _ACEOF
  3032 rm -f conftest.$ac_objext
  3033 if { (ac_try="$ac_compile"
  3034 case "(($ac_try" in
  3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3036   *) ac_try_echo=$ac_try;;
  3037 esac
  3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3039   (eval "$ac_compile") 2>conftest.er1
  3040   ac_status=$?
  3041   grep -v '^ *+' conftest.er1 >conftest.err
  3042   rm -f conftest.er1
  3043   cat conftest.err >&5
  3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3045   (exit $ac_status); } && {
  3046 	 test -z "$ac_c_werror_flag" ||
  3047 	 test ! -s conftest.err
  3048        } && test -s conftest.$ac_objext; then
  3050 else
  3051   echo "$as_me: failed program was:" >&5
  3052 sed 's/^/| /' conftest.$ac_ext >&5
  3054 	ac_c_werror_flag=$ac_save_c_werror_flag
  3055 	 CFLAGS="-g"
  3056 	 cat >conftest.$ac_ext <<_ACEOF
  3057 /* confdefs.h.  */
  3058 _ACEOF
  3059 cat confdefs.h >>conftest.$ac_ext
  3060 cat >>conftest.$ac_ext <<_ACEOF
  3061 /* end confdefs.h.  */
  3063 int
  3064 main ()
  3068   return 0;
  3070 _ACEOF
  3071 rm -f conftest.$ac_objext
  3072 if { (ac_try="$ac_compile"
  3073 case "(($ac_try" in
  3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3075   *) ac_try_echo=$ac_try;;
  3076 esac
  3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3078   (eval "$ac_compile") 2>conftest.er1
  3079   ac_status=$?
  3080   grep -v '^ *+' conftest.er1 >conftest.err
  3081   rm -f conftest.er1
  3082   cat conftest.err >&5
  3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3084   (exit $ac_status); } && {
  3085 	 test -z "$ac_c_werror_flag" ||
  3086 	 test ! -s conftest.err
  3087        } && test -s conftest.$ac_objext; then
  3088   ac_cv_prog_cc_g=yes
  3089 else
  3090   echo "$as_me: failed program was:" >&5
  3091 sed 's/^/| /' conftest.$ac_ext >&5
  3094 fi
  3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3097 fi
  3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3100 fi
  3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3103    ac_c_werror_flag=$ac_save_c_werror_flag
  3104 fi
  3105 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3107 if test "$ac_test_CFLAGS" = set; then
  3108   CFLAGS=$ac_save_CFLAGS
  3109 elif test $ac_cv_prog_cc_g = yes; then
  3110   if test "$GCC" = yes; then
  3111     CFLAGS="-g -O2"
  3112   else
  3113     CFLAGS="-g"
  3114   fi
  3115 else
  3116   if test "$GCC" = yes; then
  3117     CFLAGS="-O2"
  3118   else
  3119     CFLAGS=
  3120   fi
  3121 fi
  3122 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3123 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3124 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3125   echo $ECHO_N "(cached) $ECHO_C" >&6
  3126 else
  3127   ac_cv_prog_cc_c89=no
  3128 ac_save_CC=$CC
  3129 cat >conftest.$ac_ext <<_ACEOF
  3130 /* confdefs.h.  */
  3131 _ACEOF
  3132 cat confdefs.h >>conftest.$ac_ext
  3133 cat >>conftest.$ac_ext <<_ACEOF
  3134 /* end confdefs.h.  */
  3135 #include <stdarg.h>
  3136 #include <stdio.h>
  3137 #include <sys/types.h>
  3138 #include <sys/stat.h>
  3139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3140 struct buf { int x; };
  3141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3142 static char *e (p, i)
  3143      char **p;
  3144      int i;
  3146   return p[i];
  3148 static char *f (char * (*g) (char **, int), char **p, ...)
  3150   char *s;
  3151   va_list v;
  3152   va_start (v,p);
  3153   s = g (p, va_arg (v,int));
  3154   va_end (v);
  3155   return s;
  3158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3159    function prototypes and stuff, but not '\xHH' hex character constants.
  3160    These don't provoke an error unfortunately, instead are silently treated
  3161    as 'x'.  The following induces an error, until -std is added to get
  3162    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3163    array size at least.  It's necessary to write '\x00'==0 to get something
  3164    that's true only with -std.  */
  3165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3168    inside strings and character constants.  */
  3169 #define FOO(x) 'x'
  3170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3172 int test (int i, double x);
  3173 struct s1 {int (*f) (int a);};
  3174 struct s2 {int (*f) (double a);};
  3175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3176 int argc;
  3177 char **argv;
  3178 int
  3179 main ()
  3181 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3183   return 0;
  3185 _ACEOF
  3186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3187 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3188 do
  3189   CC="$ac_save_CC $ac_arg"
  3190   rm -f conftest.$ac_objext
  3191 if { (ac_try="$ac_compile"
  3192 case "(($ac_try" in
  3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3194   *) ac_try_echo=$ac_try;;
  3195 esac
  3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3197   (eval "$ac_compile") 2>conftest.er1
  3198   ac_status=$?
  3199   grep -v '^ *+' conftest.er1 >conftest.err
  3200   rm -f conftest.er1
  3201   cat conftest.err >&5
  3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3203   (exit $ac_status); } && {
  3204 	 test -z "$ac_c_werror_flag" ||
  3205 	 test ! -s conftest.err
  3206        } && test -s conftest.$ac_objext; then
  3207   ac_cv_prog_cc_c89=$ac_arg
  3208 else
  3209   echo "$as_me: failed program was:" >&5
  3210 sed 's/^/| /' conftest.$ac_ext >&5
  3213 fi
  3215 rm -f core conftest.err conftest.$ac_objext
  3216   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3217 done
  3218 rm -f conftest.$ac_ext
  3219 CC=$ac_save_CC
  3221 fi
  3222 # AC_CACHE_VAL
  3223 case "x$ac_cv_prog_cc_c89" in
  3224   x)
  3225     { echo "$as_me:$LINENO: result: none needed" >&5
  3226 echo "${ECHO_T}none needed" >&6; } ;;
  3227   xno)
  3228     { echo "$as_me:$LINENO: result: unsupported" >&5
  3229 echo "${ECHO_T}unsupported" >&6; } ;;
  3230   *)
  3231     CC="$CC $ac_cv_prog_cc_c89"
  3232     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3233 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3234 esac
  3237 ac_ext=c
  3238 ac_cpp='$CPP $CPPFLAGS'
  3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3243 depcc="$CC"   am_compiler_list=
  3245 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3246 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3247 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3248   echo $ECHO_N "(cached) $ECHO_C" >&6
  3249 else
  3250   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3251   # We make a subdir and do the tests there.  Otherwise we can end up
  3252   # making bogus files that we don't know about and never remove.  For
  3253   # instance it was reported that on HP-UX the gcc test will end up
  3254   # making a dummy file named `D' -- because `-MD' means `put the output
  3255   # in D'.
  3256   mkdir conftest.dir
  3257   # Copy depcomp to subdir because otherwise we won't find it if we're
  3258   # using a relative directory.
  3259   cp "$am_depcomp" conftest.dir
  3260   cd conftest.dir
  3261   # We will build objects and dependencies in a subdirectory because
  3262   # it helps to detect inapplicable dependency modes.  For instance
  3263   # both Tru64's cc and ICC support -MD to output dependencies as a
  3264   # side effect of compilation, but ICC will put the dependencies in
  3265   # the current directory while Tru64 will put them in the object
  3266   # directory.
  3267   mkdir sub
  3269   am_cv_CC_dependencies_compiler_type=none
  3270   if test "$am_compiler_list" = ""; then
  3271      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3272   fi
  3273   for depmode in $am_compiler_list; do
  3274     # Setup a source with many dependencies, because some compilers
  3275     # like to wrap large dependency lists on column 80 (with \), and
  3276     # we should not choose a depcomp mode which is confused by this.
  3278     # We need to recreate these files for each test, as the compiler may
  3279     # overwrite some of them when testing with obscure command lines.
  3280     # This happens at least with the AIX C compiler.
  3281     : > sub/conftest.c
  3282     for i in 1 2 3 4 5 6; do
  3283       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3284       : > sub/conftst$i.h
  3285     done
  3286     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3288     case $depmode in
  3289     nosideeffect)
  3290       # after this tag, mechanisms are not by side-effect, so they'll
  3291       # only be used when explicitly requested
  3292       if test "x$enable_dependency_tracking" = xyes; then
  3293 	continue
  3294       else
  3295 	break
  3296       fi
  3297       ;;
  3298     none) break ;;
  3299     esac
  3300     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3301     # mode.  It turns out that the SunPro C++ compiler does not properly
  3302     # handle `-M -o', and we need to detect this.
  3303     if depmode=$depmode \
  3304        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3305        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3306        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3307          >/dev/null 2>conftest.err &&
  3308        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3309        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3310        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3311       # icc doesn't choke on unknown options, it will just issue warnings
  3312       # (even with -Werror).  So we grep stderr for any message
  3313       # that says an option was ignored.
  3314       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  3315         am_cv_CC_dependencies_compiler_type=$depmode
  3316         break
  3317       fi
  3318     fi
  3319   done
  3321   cd ..
  3322   rm -rf conftest.dir
  3323 else
  3324   am_cv_CC_dependencies_compiler_type=none
  3325 fi
  3327 fi
  3328 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3329 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3330 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3334 if
  3335   test "x$enable_dependency_tracking" != xno \
  3336   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3337   am__fastdepCC_TRUE=
  3338   am__fastdepCC_FALSE='#'
  3339 else
  3340   am__fastdepCC_TRUE='#'
  3341   am__fastdepCC_FALSE=
  3342 fi
  3346 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3347 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  3348 if test "${ac_cv_search_strerror+set}" = set; then
  3349   echo $ECHO_N "(cached) $ECHO_C" >&6
  3350 else
  3351   ac_func_search_save_LIBS=$LIBS
  3352 cat >conftest.$ac_ext <<_ACEOF
  3353 /* confdefs.h.  */
  3354 _ACEOF
  3355 cat confdefs.h >>conftest.$ac_ext
  3356 cat >>conftest.$ac_ext <<_ACEOF
  3357 /* end confdefs.h.  */
  3359 /* Override any GCC internal prototype to avoid an error.
  3360    Use char because int might match the return type of a GCC
  3361    builtin and then its argument prototype would still apply.  */
  3362 #ifdef __cplusplus
  3363 extern "C"
  3364 #endif
  3365 char strerror ();
  3366 int
  3367 main ()
  3369 return strerror ();
  3371   return 0;
  3373 _ACEOF
  3374 for ac_lib in '' cposix; do
  3375   if test -z "$ac_lib"; then
  3376     ac_res="none required"
  3377   else
  3378     ac_res=-l$ac_lib
  3379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  3380   fi
  3381   rm -f conftest.$ac_objext conftest$ac_exeext
  3382 if { (ac_try="$ac_link"
  3383 case "(($ac_try" in
  3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3385   *) ac_try_echo=$ac_try;;
  3386 esac
  3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3388   (eval "$ac_link") 2>conftest.er1
  3389   ac_status=$?
  3390   grep -v '^ *+' conftest.er1 >conftest.err
  3391   rm -f conftest.er1
  3392   cat conftest.err >&5
  3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3394   (exit $ac_status); } && {
  3395 	 test -z "$ac_c_werror_flag" ||
  3396 	 test ! -s conftest.err
  3397        } && test -s conftest$ac_exeext &&
  3398        $as_test_x conftest$ac_exeext; then
  3399   ac_cv_search_strerror=$ac_res
  3400 else
  3401   echo "$as_me: failed program was:" >&5
  3402 sed 's/^/| /' conftest.$ac_ext >&5
  3405 fi
  3407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3408       conftest$ac_exeext
  3409   if test "${ac_cv_search_strerror+set}" = set; then
  3410   break
  3411 fi
  3412 done
  3413 if test "${ac_cv_search_strerror+set}" = set; then
  3415 else
  3416   ac_cv_search_strerror=no
  3417 fi
  3418 rm conftest.$ac_ext
  3419 LIBS=$ac_func_search_save_LIBS
  3420 fi
  3421 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3422 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  3423 ac_res=$ac_cv_search_strerror
  3424 if test "$ac_res" != no; then
  3425   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3427 fi
  3429 ac_ext=c
  3430 ac_cpp='$CPP $CPPFLAGS'
  3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3434 if test -n "$ac_tool_prefix"; then
  3435   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3439 if test "${ac_cv_prog_CC+set}" = set; then
  3440   echo $ECHO_N "(cached) $ECHO_C" >&6
  3441 else
  3442   if test -n "$CC"; then
  3443   ac_cv_prog_CC="$CC" # Let the user override the test.
  3444 else
  3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3446 for as_dir in $PATH
  3447 do
  3448   IFS=$as_save_IFS
  3449   test -z "$as_dir" && as_dir=.
  3450   for ac_exec_ext in '' $ac_executable_extensions; do
  3451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3452     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3454     break 2
  3455   fi
  3456 done
  3457 done
  3458 IFS=$as_save_IFS
  3460 fi
  3461 fi
  3462 CC=$ac_cv_prog_CC
  3463 if test -n "$CC"; then
  3464   { echo "$as_me:$LINENO: result: $CC" >&5
  3465 echo "${ECHO_T}$CC" >&6; }
  3466 else
  3467   { echo "$as_me:$LINENO: result: no" >&5
  3468 echo "${ECHO_T}no" >&6; }
  3469 fi
  3472 fi
  3473 if test -z "$ac_cv_prog_CC"; then
  3474   ac_ct_CC=$CC
  3475   # Extract the first word of "gcc", so it can be a program name with args.
  3476 set dummy gcc; ac_word=$2
  3477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3480   echo $ECHO_N "(cached) $ECHO_C" >&6
  3481 else
  3482   if test -n "$ac_ct_CC"; then
  3483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3484 else
  3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3486 for as_dir in $PATH
  3487 do
  3488   IFS=$as_save_IFS
  3489   test -z "$as_dir" && as_dir=.
  3490   for ac_exec_ext in '' $ac_executable_extensions; do
  3491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3492     ac_cv_prog_ac_ct_CC="gcc"
  3493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3494     break 2
  3495   fi
  3496 done
  3497 done
  3498 IFS=$as_save_IFS
  3500 fi
  3501 fi
  3502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3503 if test -n "$ac_ct_CC"; then
  3504   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3505 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3506 else
  3507   { echo "$as_me:$LINENO: result: no" >&5
  3508 echo "${ECHO_T}no" >&6; }
  3509 fi
  3511   if test "x$ac_ct_CC" = x; then
  3512     CC=""
  3513   else
  3514     case $cross_compiling:$ac_tool_warned in
  3515 yes:)
  3516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3517 whose name does not start with the host triplet.  If you think this
  3518 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3520 whose name does not start with the host triplet.  If you think this
  3521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3522 ac_tool_warned=yes ;;
  3523 esac
  3524     CC=$ac_ct_CC
  3525   fi
  3526 else
  3527   CC="$ac_cv_prog_CC"
  3528 fi
  3530 if test -z "$CC"; then
  3531           if test -n "$ac_tool_prefix"; then
  3532     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3533 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3536 if test "${ac_cv_prog_CC+set}" = set; then
  3537   echo $ECHO_N "(cached) $ECHO_C" >&6
  3538 else
  3539   if test -n "$CC"; then
  3540   ac_cv_prog_CC="$CC" # Let the user override the test.
  3541 else
  3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3543 for as_dir in $PATH
  3544 do
  3545   IFS=$as_save_IFS
  3546   test -z "$as_dir" && as_dir=.
  3547   for ac_exec_ext in '' $ac_executable_extensions; do
  3548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3549     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3551     break 2
  3552   fi
  3553 done
  3554 done
  3555 IFS=$as_save_IFS
  3557 fi
  3558 fi
  3559 CC=$ac_cv_prog_CC
  3560 if test -n "$CC"; then
  3561   { echo "$as_me:$LINENO: result: $CC" >&5
  3562 echo "${ECHO_T}$CC" >&6; }
  3563 else
  3564   { echo "$as_me:$LINENO: result: no" >&5
  3565 echo "${ECHO_T}no" >&6; }
  3566 fi
  3569   fi
  3570 fi
  3571 if test -z "$CC"; then
  3572   # Extract the first word of "cc", so it can be a program name with args.
  3573 set dummy cc; ac_word=$2
  3574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3576 if test "${ac_cv_prog_CC+set}" = set; then
  3577   echo $ECHO_N "(cached) $ECHO_C" >&6
  3578 else
  3579   if test -n "$CC"; then
  3580   ac_cv_prog_CC="$CC" # Let the user override the test.
  3581 else
  3582   ac_prog_rejected=no
  3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3584 for as_dir in $PATH
  3585 do
  3586   IFS=$as_save_IFS
  3587   test -z "$as_dir" && as_dir=.
  3588   for ac_exec_ext in '' $ac_executable_extensions; do
  3589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3590     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3591        ac_prog_rejected=yes
  3592        continue
  3593      fi
  3594     ac_cv_prog_CC="cc"
  3595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3596     break 2
  3597   fi
  3598 done
  3599 done
  3600 IFS=$as_save_IFS
  3602 if test $ac_prog_rejected = yes; then
  3603   # We found a bogon in the path, so make sure we never use it.
  3604   set dummy $ac_cv_prog_CC
  3605   shift
  3606   if test $# != 0; then
  3607     # We chose a different compiler from the bogus one.
  3608     # However, it has the same basename, so the bogon will be chosen
  3609     # first if we set CC to just the basename; use the full file name.
  3610     shift
  3611     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3612   fi
  3613 fi
  3614 fi
  3615 fi
  3616 CC=$ac_cv_prog_CC
  3617 if test -n "$CC"; then
  3618   { echo "$as_me:$LINENO: result: $CC" >&5
  3619 echo "${ECHO_T}$CC" >&6; }
  3620 else
  3621   { echo "$as_me:$LINENO: result: no" >&5
  3622 echo "${ECHO_T}no" >&6; }
  3623 fi
  3626 fi
  3627 if test -z "$CC"; then
  3628   if test -n "$ac_tool_prefix"; then
  3629   for ac_prog in cl.exe
  3630   do
  3631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3635 if test "${ac_cv_prog_CC+set}" = set; then
  3636   echo $ECHO_N "(cached) $ECHO_C" >&6
  3637 else
  3638   if test -n "$CC"; then
  3639   ac_cv_prog_CC="$CC" # Let the user override the test.
  3640 else
  3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3642 for as_dir in $PATH
  3643 do
  3644   IFS=$as_save_IFS
  3645   test -z "$as_dir" && as_dir=.
  3646   for ac_exec_ext in '' $ac_executable_extensions; do
  3647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3648     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3650     break 2
  3651   fi
  3652 done
  3653 done
  3654 IFS=$as_save_IFS
  3656 fi
  3657 fi
  3658 CC=$ac_cv_prog_CC
  3659 if test -n "$CC"; then
  3660   { echo "$as_me:$LINENO: result: $CC" >&5
  3661 echo "${ECHO_T}$CC" >&6; }
  3662 else
  3663   { echo "$as_me:$LINENO: result: no" >&5
  3664 echo "${ECHO_T}no" >&6; }
  3665 fi
  3668     test -n "$CC" && break
  3669   done
  3670 fi
  3671 if test -z "$CC"; then
  3672   ac_ct_CC=$CC
  3673   for ac_prog in cl.exe
  3674 do
  3675   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3676 set dummy $ac_prog; ac_word=$2
  3677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3680   echo $ECHO_N "(cached) $ECHO_C" >&6
  3681 else
  3682   if test -n "$ac_ct_CC"; then
  3683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3684 else
  3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3686 for as_dir in $PATH
  3687 do
  3688   IFS=$as_save_IFS
  3689   test -z "$as_dir" && as_dir=.
  3690   for ac_exec_ext in '' $ac_executable_extensions; do
  3691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3692     ac_cv_prog_ac_ct_CC="$ac_prog"
  3693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3694     break 2
  3695   fi
  3696 done
  3697 done
  3698 IFS=$as_save_IFS
  3700 fi
  3701 fi
  3702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3703 if test -n "$ac_ct_CC"; then
  3704   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3705 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3706 else
  3707   { echo "$as_me:$LINENO: result: no" >&5
  3708 echo "${ECHO_T}no" >&6; }
  3709 fi
  3712   test -n "$ac_ct_CC" && break
  3713 done
  3715   if test "x$ac_ct_CC" = x; then
  3716     CC=""
  3717   else
  3718     case $cross_compiling:$ac_tool_warned in
  3719 yes:)
  3720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3721 whose name does not start with the host triplet.  If you think this
  3722 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3724 whose name does not start with the host triplet.  If you think this
  3725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3726 ac_tool_warned=yes ;;
  3727 esac
  3728     CC=$ac_ct_CC
  3729   fi
  3730 fi
  3732 fi
  3735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3736 See \`config.log' for more details." >&5
  3737 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3738 See \`config.log' for more details." >&2;}
  3739    { (exit 1); exit 1; }; }
  3741 # Provide some information about the compiler.
  3742 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3743 ac_compiler=`set X $ac_compile; echo $2`
  3744 { (ac_try="$ac_compiler --version >&5"
  3745 case "(($ac_try" in
  3746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3747   *) ac_try_echo=$ac_try;;
  3748 esac
  3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3750   (eval "$ac_compiler --version >&5") 2>&5
  3751   ac_status=$?
  3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3753   (exit $ac_status); }
  3754 { (ac_try="$ac_compiler -v >&5"
  3755 case "(($ac_try" in
  3756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3757   *) ac_try_echo=$ac_try;;
  3758 esac
  3759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3760   (eval "$ac_compiler -v >&5") 2>&5
  3761   ac_status=$?
  3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3763   (exit $ac_status); }
  3764 { (ac_try="$ac_compiler -V >&5"
  3765 case "(($ac_try" in
  3766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3767   *) ac_try_echo=$ac_try;;
  3768 esac
  3769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3770   (eval "$ac_compiler -V >&5") 2>&5
  3771   ac_status=$?
  3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3773   (exit $ac_status); }
  3775 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3776 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3777 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3778   echo $ECHO_N "(cached) $ECHO_C" >&6
  3779 else
  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 ()
  3790 #ifndef __GNUC__
  3791        choke me
  3792 #endif
  3795   return 0;
  3797 _ACEOF
  3798 rm -f conftest.$ac_objext
  3799 if { (ac_try="$ac_compile"
  3800 case "(($ac_try" in
  3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3802   *) ac_try_echo=$ac_try;;
  3803 esac
  3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3805   (eval "$ac_compile") 2>conftest.er1
  3806   ac_status=$?
  3807   grep -v '^ *+' conftest.er1 >conftest.err
  3808   rm -f conftest.er1
  3809   cat conftest.err >&5
  3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3811   (exit $ac_status); } && {
  3812 	 test -z "$ac_c_werror_flag" ||
  3813 	 test ! -s conftest.err
  3814        } && test -s conftest.$ac_objext; then
  3815   ac_compiler_gnu=yes
  3816 else
  3817   echo "$as_me: failed program was:" >&5
  3818 sed 's/^/| /' conftest.$ac_ext >&5
  3820 	ac_compiler_gnu=no
  3821 fi
  3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3826 fi
  3827 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3828 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3829 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3830 ac_test_CFLAGS=${CFLAGS+set}
  3831 ac_save_CFLAGS=$CFLAGS
  3832 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3833 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3834 if test "${ac_cv_prog_cc_g+set}" = set; then
  3835   echo $ECHO_N "(cached) $ECHO_C" >&6
  3836 else
  3837   ac_save_c_werror_flag=$ac_c_werror_flag
  3838    ac_c_werror_flag=yes
  3839    ac_cv_prog_cc_g=no
  3840    CFLAGS="-g"
  3841    cat >conftest.$ac_ext <<_ACEOF
  3842 /* confdefs.h.  */
  3843 _ACEOF
  3844 cat confdefs.h >>conftest.$ac_ext
  3845 cat >>conftest.$ac_ext <<_ACEOF
  3846 /* end confdefs.h.  */
  3848 int
  3849 main ()
  3853   return 0;
  3855 _ACEOF
  3856 rm -f conftest.$ac_objext
  3857 if { (ac_try="$ac_compile"
  3858 case "(($ac_try" in
  3859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3860   *) ac_try_echo=$ac_try;;
  3861 esac
  3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3863   (eval "$ac_compile") 2>conftest.er1
  3864   ac_status=$?
  3865   grep -v '^ *+' conftest.er1 >conftest.err
  3866   rm -f conftest.er1
  3867   cat conftest.err >&5
  3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3869   (exit $ac_status); } && {
  3870 	 test -z "$ac_c_werror_flag" ||
  3871 	 test ! -s conftest.err
  3872        } && test -s conftest.$ac_objext; then
  3873   ac_cv_prog_cc_g=yes
  3874 else
  3875   echo "$as_me: failed program was:" >&5
  3876 sed 's/^/| /' conftest.$ac_ext >&5
  3878 	CFLAGS=""
  3879       cat >conftest.$ac_ext <<_ACEOF
  3880 /* confdefs.h.  */
  3881 _ACEOF
  3882 cat confdefs.h >>conftest.$ac_ext
  3883 cat >>conftest.$ac_ext <<_ACEOF
  3884 /* end confdefs.h.  */
  3886 int
  3887 main ()
  3891   return 0;
  3893 _ACEOF
  3894 rm -f conftest.$ac_objext
  3895 if { (ac_try="$ac_compile"
  3896 case "(($ac_try" in
  3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3898   *) ac_try_echo=$ac_try;;
  3899 esac
  3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3901   (eval "$ac_compile") 2>conftest.er1
  3902   ac_status=$?
  3903   grep -v '^ *+' conftest.er1 >conftest.err
  3904   rm -f conftest.er1
  3905   cat conftest.err >&5
  3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3907   (exit $ac_status); } && {
  3908 	 test -z "$ac_c_werror_flag" ||
  3909 	 test ! -s conftest.err
  3910        } && test -s conftest.$ac_objext; then
  3912 else
  3913   echo "$as_me: failed program was:" >&5
  3914 sed 's/^/| /' conftest.$ac_ext >&5
  3916 	ac_c_werror_flag=$ac_save_c_werror_flag
  3917 	 CFLAGS="-g"
  3918 	 cat >conftest.$ac_ext <<_ACEOF
  3919 /* confdefs.h.  */
  3920 _ACEOF
  3921 cat confdefs.h >>conftest.$ac_ext
  3922 cat >>conftest.$ac_ext <<_ACEOF
  3923 /* end confdefs.h.  */
  3925 int
  3926 main ()
  3930   return 0;
  3932 _ACEOF
  3933 rm -f conftest.$ac_objext
  3934 if { (ac_try="$ac_compile"
  3935 case "(($ac_try" in
  3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3937   *) ac_try_echo=$ac_try;;
  3938 esac
  3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3940   (eval "$ac_compile") 2>conftest.er1
  3941   ac_status=$?
  3942   grep -v '^ *+' conftest.er1 >conftest.err
  3943   rm -f conftest.er1
  3944   cat conftest.err >&5
  3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3946   (exit $ac_status); } && {
  3947 	 test -z "$ac_c_werror_flag" ||
  3948 	 test ! -s conftest.err
  3949        } && test -s conftest.$ac_objext; then
  3950   ac_cv_prog_cc_g=yes
  3951 else
  3952   echo "$as_me: failed program was:" >&5
  3953 sed 's/^/| /' conftest.$ac_ext >&5
  3956 fi
  3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3959 fi
  3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3962 fi
  3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3965    ac_c_werror_flag=$ac_save_c_werror_flag
  3966 fi
  3967 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3968 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3969 if test "$ac_test_CFLAGS" = set; then
  3970   CFLAGS=$ac_save_CFLAGS
  3971 elif test $ac_cv_prog_cc_g = yes; then
  3972   if test "$GCC" = yes; then
  3973     CFLAGS="-g -O2"
  3974   else
  3975     CFLAGS="-g"
  3976   fi
  3977 else
  3978   if test "$GCC" = yes; then
  3979     CFLAGS="-O2"
  3980   else
  3981     CFLAGS=
  3982   fi
  3983 fi
  3984 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3985 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3986 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3987   echo $ECHO_N "(cached) $ECHO_C" >&6
  3988 else
  3989   ac_cv_prog_cc_c89=no
  3990 ac_save_CC=$CC
  3991 cat >conftest.$ac_ext <<_ACEOF
  3992 /* confdefs.h.  */
  3993 _ACEOF
  3994 cat confdefs.h >>conftest.$ac_ext
  3995 cat >>conftest.$ac_ext <<_ACEOF
  3996 /* end confdefs.h.  */
  3997 #include <stdarg.h>
  3998 #include <stdio.h>
  3999 #include <sys/types.h>
  4000 #include <sys/stat.h>
  4001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4002 struct buf { int x; };
  4003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4004 static char *e (p, i)
  4005      char **p;
  4006      int i;
  4008   return p[i];
  4010 static char *f (char * (*g) (char **, int), char **p, ...)
  4012   char *s;
  4013   va_list v;
  4014   va_start (v,p);
  4015   s = g (p, va_arg (v,int));
  4016   va_end (v);
  4017   return s;
  4020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4021    function prototypes and stuff, but not '\xHH' hex character constants.
  4022    These don't provoke an error unfortunately, instead are silently treated
  4023    as 'x'.  The following induces an error, until -std is added to get
  4024    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4025    array size at least.  It's necessary to write '\x00'==0 to get something
  4026    that's true only with -std.  */
  4027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4030    inside strings and character constants.  */
  4031 #define FOO(x) 'x'
  4032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4034 int test (int i, double x);
  4035 struct s1 {int (*f) (int a);};
  4036 struct s2 {int (*f) (double a);};
  4037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4038 int argc;
  4039 char **argv;
  4040 int
  4041 main ()
  4043 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4045   return 0;
  4047 _ACEOF
  4048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4049 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4050 do
  4051   CC="$ac_save_CC $ac_arg"
  4052   rm -f conftest.$ac_objext
  4053 if { (ac_try="$ac_compile"
  4054 case "(($ac_try" in
  4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4056   *) ac_try_echo=$ac_try;;
  4057 esac
  4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4059   (eval "$ac_compile") 2>conftest.er1
  4060   ac_status=$?
  4061   grep -v '^ *+' conftest.er1 >conftest.err
  4062   rm -f conftest.er1
  4063   cat conftest.err >&5
  4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4065   (exit $ac_status); } && {
  4066 	 test -z "$ac_c_werror_flag" ||
  4067 	 test ! -s conftest.err
  4068        } && test -s conftest.$ac_objext; then
  4069   ac_cv_prog_cc_c89=$ac_arg
  4070 else
  4071   echo "$as_me: failed program was:" >&5
  4072 sed 's/^/| /' conftest.$ac_ext >&5
  4075 fi
  4077 rm -f core conftest.err conftest.$ac_objext
  4078   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4079 done
  4080 rm -f conftest.$ac_ext
  4081 CC=$ac_save_CC
  4083 fi
  4084 # AC_CACHE_VAL
  4085 case "x$ac_cv_prog_cc_c89" in
  4086   x)
  4087     { echo "$as_me:$LINENO: result: none needed" >&5
  4088 echo "${ECHO_T}none needed" >&6; } ;;
  4089   xno)
  4090     { echo "$as_me:$LINENO: result: unsupported" >&5
  4091 echo "${ECHO_T}unsupported" >&6; } ;;
  4092   *)
  4093     CC="$CC $ac_cv_prog_cc_c89"
  4094     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4095 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4096 esac
  4099 ac_ext=c
  4100 ac_cpp='$CPP $CPPFLAGS'
  4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4105 depcc="$CC"   am_compiler_list=
  4107 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4108 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4109 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4110   echo $ECHO_N "(cached) $ECHO_C" >&6
  4111 else
  4112   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4113   # We make a subdir and do the tests there.  Otherwise we can end up
  4114   # making bogus files that we don't know about and never remove.  For
  4115   # instance it was reported that on HP-UX the gcc test will end up
  4116   # making a dummy file named `D' -- because `-MD' means `put the output
  4117   # in D'.
  4118   mkdir conftest.dir
  4119   # Copy depcomp to subdir because otherwise we won't find it if we're
  4120   # using a relative directory.
  4121   cp "$am_depcomp" conftest.dir
  4122   cd conftest.dir
  4123   # We will build objects and dependencies in a subdirectory because
  4124   # it helps to detect inapplicable dependency modes.  For instance
  4125   # both Tru64's cc and ICC support -MD to output dependencies as a
  4126   # side effect of compilation, but ICC will put the dependencies in
  4127   # the current directory while Tru64 will put them in the object
  4128   # directory.
  4129   mkdir sub
  4131   am_cv_CC_dependencies_compiler_type=none
  4132   if test "$am_compiler_list" = ""; then
  4133      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4134   fi
  4135   for depmode in $am_compiler_list; do
  4136     # Setup a source with many dependencies, because some compilers
  4137     # like to wrap large dependency lists on column 80 (with \), and
  4138     # we should not choose a depcomp mode which is confused by this.
  4140     # We need to recreate these files for each test, as the compiler may
  4141     # overwrite some of them when testing with obscure command lines.
  4142     # This happens at least with the AIX C compiler.
  4143     : > sub/conftest.c
  4144     for i in 1 2 3 4 5 6; do
  4145       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4146       : > sub/conftst$i.h
  4147     done
  4148     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4150     case $depmode in
  4151     nosideeffect)
  4152       # after this tag, mechanisms are not by side-effect, so they'll
  4153       # only be used when explicitly requested
  4154       if test "x$enable_dependency_tracking" = xyes; then
  4155 	continue
  4156       else
  4157 	break
  4158       fi
  4159       ;;
  4160     none) break ;;
  4161     esac
  4162     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4163     # mode.  It turns out that the SunPro C++ compiler does not properly
  4164     # handle `-M -o', and we need to detect this.
  4165     if depmode=$depmode \
  4166        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4167        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4168        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4169          >/dev/null 2>conftest.err &&
  4170        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4171        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4172        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4173       # icc doesn't choke on unknown options, it will just issue warnings
  4174       # (even with -Werror).  So we grep stderr for any message
  4175       # that says an option was ignored.
  4176       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  4177         am_cv_CC_dependencies_compiler_type=$depmode
  4178         break
  4179       fi
  4180     fi
  4181   done
  4183   cd ..
  4184   rm -rf conftest.dir
  4185 else
  4186   am_cv_CC_dependencies_compiler_type=none
  4187 fi
  4189 fi
  4190 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4191 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4192 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4196 if
  4197   test "x$enable_dependency_tracking" != xno \
  4198   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4199   am__fastdepCC_TRUE=
  4200   am__fastdepCC_FALSE='#'
  4201 else
  4202   am__fastdepCC_TRUE='#'
  4203   am__fastdepCC_FALSE=
  4204 fi
  4210 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  4211 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
  4212 if test "${am_cv_prog_cc_stdc+set}" = set; then
  4213   echo $ECHO_N "(cached) $ECHO_C" >&6
  4214 else
  4215   am_cv_prog_cc_stdc=no
  4216 ac_save_CC="$CC"
  4217 # Don't try gcc -ansi; that turns off useful extensions and
  4218 # breaks some systems' header files.
  4219 # AIX			-qlanglvl=ansi
  4220 # Ultrix and OSF/1	-std1
  4221 # HP-UX 10.20 and later	-Ae
  4222 # HP-UX older versions	-Aa -D_HPUX_SOURCE
  4223 # SVR4			-Xc -D__EXTENSIONS__
  4224 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4225 do
  4226   CC="$ac_save_CC $ac_arg"
  4227   cat >conftest.$ac_ext <<_ACEOF
  4228 /* confdefs.h.  */
  4229 _ACEOF
  4230 cat confdefs.h >>conftest.$ac_ext
  4231 cat >>conftest.$ac_ext <<_ACEOF
  4232 /* end confdefs.h.  */
  4233 #include <stdarg.h>
  4234 #include <stdio.h>
  4235 #include <sys/types.h>
  4236 #include <sys/stat.h>
  4237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4238 struct buf { int x; };
  4239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4240 static char *e (p, i)
  4241      char **p;
  4242      int i;
  4244   return p[i];
  4246 static char *f (char * (*g) (char **, int), char **p, ...)
  4248   char *s;
  4249   va_list v;
  4250   va_start (v,p);
  4251   s = g (p, va_arg (v,int));
  4252   va_end (v);
  4253   return s;
  4255 int test (int i, double x);
  4256 struct s1 {int (*f) (int a);};
  4257 struct s2 {int (*f) (double a);};
  4258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4259 int argc;
  4260 char **argv;
  4262 int
  4263 main ()
  4266 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4269   return 0;
  4271 _ACEOF
  4272 rm -f conftest.$ac_objext
  4273 if { (ac_try="$ac_compile"
  4274 case "(($ac_try" in
  4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4276   *) ac_try_echo=$ac_try;;
  4277 esac
  4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4279   (eval "$ac_compile") 2>conftest.er1
  4280   ac_status=$?
  4281   grep -v '^ *+' conftest.er1 >conftest.err
  4282   rm -f conftest.er1
  4283   cat conftest.err >&5
  4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4285   (exit $ac_status); } && {
  4286 	 test -z "$ac_c_werror_flag" ||
  4287 	 test ! -s conftest.err
  4288        } && test -s conftest.$ac_objext; then
  4289   am_cv_prog_cc_stdc="$ac_arg"; break
  4290 else
  4291   echo "$as_me: failed program was:" >&5
  4292 sed 's/^/| /' conftest.$ac_ext >&5
  4295 fi
  4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4298 done
  4299 CC="$ac_save_CC"
  4301 fi
  4303 if test -z "$am_cv_prog_cc_stdc"; then
  4304   { echo "$as_me:$LINENO: result: none needed" >&5
  4305 echo "${ECHO_T}none needed" >&6; }
  4306 else
  4307   { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  4308 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
  4309 fi
  4310 case "x$am_cv_prog_cc_stdc" in
  4311   x|xno) ;;
  4312   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  4313 esac
  4315 # By default we simply use the C compiler to build assembly code.
  4317 : ${CCAS='$(CC)'}
  4318 # Set ASFLAGS if not already set.
  4319 : ${CCASFLAGS='$(CFLAGS)'}
  4322 ac_ext=c
  4323 ac_cpp='$CPP $CPPFLAGS'
  4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4327 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4328 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4329 # On Suns, sometimes $CPP names a directory.
  4330 if test -n "$CPP" && test -d "$CPP"; then
  4331   CPP=
  4332 fi
  4333 if test -z "$CPP"; then
  4334   if test "${ac_cv_prog_CPP+set}" = set; then
  4335   echo $ECHO_N "(cached) $ECHO_C" >&6
  4336 else
  4337       # Double quotes because CPP needs to be expanded
  4338     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4339     do
  4340       ac_preproc_ok=false
  4341 for ac_c_preproc_warn_flag in '' yes
  4342 do
  4343   # Use a header file that comes with gcc, so configuring glibc
  4344   # with a fresh cross-compiler works.
  4345   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4346   # <limits.h> exists even on freestanding compilers.
  4347   # On the NeXT, cc -E runs the code through the compiler's parser,
  4348   # not just through cpp. "Syntax error" is here to catch this case.
  4349   cat >conftest.$ac_ext <<_ACEOF
  4350 /* confdefs.h.  */
  4351 _ACEOF
  4352 cat confdefs.h >>conftest.$ac_ext
  4353 cat >>conftest.$ac_ext <<_ACEOF
  4354 /* end confdefs.h.  */
  4355 #ifdef __STDC__
  4356 # include <limits.h>
  4357 #else
  4358 # include <assert.h>
  4359 #endif
  4360 		     Syntax error
  4361 _ACEOF
  4362 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4363 case "(($ac_try" in
  4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4365   *) ac_try_echo=$ac_try;;
  4366 esac
  4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4369   ac_status=$?
  4370   grep -v '^ *+' conftest.er1 >conftest.err
  4371   rm -f conftest.er1
  4372   cat conftest.err >&5
  4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4374   (exit $ac_status); } >/dev/null && {
  4375 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4376 	 test ! -s conftest.err
  4377        }; then
  4379 else
  4380   echo "$as_me: failed program was:" >&5
  4381 sed 's/^/| /' conftest.$ac_ext >&5
  4383   # Broken: fails on valid input.
  4384 continue
  4385 fi
  4387 rm -f conftest.err conftest.$ac_ext
  4389   # OK, works on sane cases.  Now check whether nonexistent headers
  4390   # can be detected and how.
  4391   cat >conftest.$ac_ext <<_ACEOF
  4392 /* confdefs.h.  */
  4393 _ACEOF
  4394 cat confdefs.h >>conftest.$ac_ext
  4395 cat >>conftest.$ac_ext <<_ACEOF
  4396 /* end confdefs.h.  */
  4397 #include <ac_nonexistent.h>
  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
  4415   # Broken: success on invalid input.
  4416 continue
  4417 else
  4418   echo "$as_me: failed program was:" >&5
  4419 sed 's/^/| /' conftest.$ac_ext >&5
  4421   # Passes both tests.
  4422 ac_preproc_ok=:
  4423 break
  4424 fi
  4426 rm -f conftest.err conftest.$ac_ext
  4428 done
  4429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4430 rm -f conftest.err conftest.$ac_ext
  4431 if $ac_preproc_ok; then
  4432   break
  4433 fi
  4435     done
  4436     ac_cv_prog_CPP=$CPP
  4438 fi
  4439   CPP=$ac_cv_prog_CPP
  4440 else
  4441   ac_cv_prog_CPP=$CPP
  4442 fi
  4443 { echo "$as_me:$LINENO: result: $CPP" >&5
  4444 echo "${ECHO_T}$CPP" >&6; }
  4445 ac_preproc_ok=false
  4446 for ac_c_preproc_warn_flag in '' yes
  4447 do
  4448   # Use a header file that comes with gcc, so configuring glibc
  4449   # with a fresh cross-compiler works.
  4450   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4451   # <limits.h> exists even on freestanding compilers.
  4452   # On the NeXT, cc -E runs the code through the compiler's parser,
  4453   # not just through cpp. "Syntax error" is here to catch this case.
  4454   cat >conftest.$ac_ext <<_ACEOF
  4455 /* confdefs.h.  */
  4456 _ACEOF
  4457 cat confdefs.h >>conftest.$ac_ext
  4458 cat >>conftest.$ac_ext <<_ACEOF
  4459 /* end confdefs.h.  */
  4460 #ifdef __STDC__
  4461 # include <limits.h>
  4462 #else
  4463 # include <assert.h>
  4464 #endif
  4465 		     Syntax error
  4466 _ACEOF
  4467 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4468 case "(($ac_try" in
  4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4470   *) ac_try_echo=$ac_try;;
  4471 esac
  4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4474   ac_status=$?
  4475   grep -v '^ *+' conftest.er1 >conftest.err
  4476   rm -f conftest.er1
  4477   cat conftest.err >&5
  4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4479   (exit $ac_status); } >/dev/null && {
  4480 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4481 	 test ! -s conftest.err
  4482        }; then
  4484 else
  4485   echo "$as_me: failed program was:" >&5
  4486 sed 's/^/| /' conftest.$ac_ext >&5
  4488   # Broken: fails on valid input.
  4489 continue
  4490 fi
  4492 rm -f conftest.err conftest.$ac_ext
  4494   # OK, works on sane cases.  Now check whether nonexistent headers
  4495   # can be detected and how.
  4496   cat >conftest.$ac_ext <<_ACEOF
  4497 /* confdefs.h.  */
  4498 _ACEOF
  4499 cat confdefs.h >>conftest.$ac_ext
  4500 cat >>conftest.$ac_ext <<_ACEOF
  4501 /* end confdefs.h.  */
  4502 #include <ac_nonexistent.h>
  4503 _ACEOF
  4504 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4505 case "(($ac_try" in
  4506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4507   *) ac_try_echo=$ac_try;;
  4508 esac
  4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4511   ac_status=$?
  4512   grep -v '^ *+' conftest.er1 >conftest.err
  4513   rm -f conftest.er1
  4514   cat conftest.err >&5
  4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4516   (exit $ac_status); } >/dev/null && {
  4517 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4518 	 test ! -s conftest.err
  4519        }; then
  4520   # Broken: success on invalid input.
  4521 continue
  4522 else
  4523   echo "$as_me: failed program was:" >&5
  4524 sed 's/^/| /' conftest.$ac_ext >&5
  4526   # Passes both tests.
  4527 ac_preproc_ok=:
  4528 break
  4529 fi
  4531 rm -f conftest.err conftest.$ac_ext
  4533 done
  4534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4535 rm -f conftest.err conftest.$ac_ext
  4536 if $ac_preproc_ok; then
  4538 else
  4539   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4540 See \`config.log' for more details." >&5
  4541 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4542 See \`config.log' for more details." >&2;}
  4543    { (exit 1); exit 1; }; }
  4544 fi
  4546 ac_ext=c
  4547 ac_cpp='$CPP $CPPFLAGS'
  4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4553 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4554 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4555 if test "${ac_cv_path_GREP+set}" = set; then
  4556   echo $ECHO_N "(cached) $ECHO_C" >&6
  4557 else
  4558   # Extract the first word of "grep ggrep" to use in msg output
  4559 if test -z "$GREP"; then
  4560 set dummy grep ggrep; ac_prog_name=$2
  4561 if test "${ac_cv_path_GREP+set}" = set; then
  4562   echo $ECHO_N "(cached) $ECHO_C" >&6
  4563 else
  4564   ac_path_GREP_found=false
  4565 # Loop through the user's path and test for each of PROGNAME-LIST
  4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4568 do
  4569   IFS=$as_save_IFS
  4570   test -z "$as_dir" && as_dir=.
  4571   for ac_prog in grep ggrep; do
  4572   for ac_exec_ext in '' $ac_executable_extensions; do
  4573     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4574     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4575     # Check for GNU ac_path_GREP and select it if it is found.
  4576   # Check for GNU $ac_path_GREP
  4577 case `"$ac_path_GREP" --version 2>&1` in
  4578 *GNU*)
  4579   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4580 *)
  4581   ac_count=0
  4582   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4583   while :
  4584   do
  4585     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4586     mv "conftest.tmp" "conftest.in"
  4587     cp "conftest.in" "conftest.nl"
  4588     echo 'GREP' >> "conftest.nl"
  4589     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4590     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4591     ac_count=`expr $ac_count + 1`
  4592     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4593       # Best one so far, save it but keep looking for a better one
  4594       ac_cv_path_GREP="$ac_path_GREP"
  4595       ac_path_GREP_max=$ac_count
  4596     fi
  4597     # 10*(2^10) chars as input seems more than enough
  4598     test $ac_count -gt 10 && break
  4599   done
  4600   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4601 esac
  4604     $ac_path_GREP_found && break 3
  4605   done
  4606 done
  4608 done
  4609 IFS=$as_save_IFS
  4612 fi
  4614 GREP="$ac_cv_path_GREP"
  4615 if test -z "$GREP"; then
  4616   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4617 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4618    { (exit 1); exit 1; }; }
  4619 fi
  4621 else
  4622   ac_cv_path_GREP=$GREP
  4623 fi
  4626 fi
  4627 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4628 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4629  GREP="$ac_cv_path_GREP"
  4632 { echo "$as_me:$LINENO: checking for egrep" >&5
  4633 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4634 if test "${ac_cv_path_EGREP+set}" = set; then
  4635   echo $ECHO_N "(cached) $ECHO_C" >&6
  4636 else
  4637   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4638    then ac_cv_path_EGREP="$GREP -E"
  4639    else
  4640      # Extract the first word of "egrep" to use in msg output
  4641 if test -z "$EGREP"; then
  4642 set dummy egrep; ac_prog_name=$2
  4643 if test "${ac_cv_path_EGREP+set}" = set; then
  4644   echo $ECHO_N "(cached) $ECHO_C" >&6
  4645 else
  4646   ac_path_EGREP_found=false
  4647 # Loop through the user's path and test for each of PROGNAME-LIST
  4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4650 do
  4651   IFS=$as_save_IFS
  4652   test -z "$as_dir" && as_dir=.
  4653   for ac_prog in egrep; do
  4654   for ac_exec_ext in '' $ac_executable_extensions; do
  4655     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4656     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4657     # Check for GNU ac_path_EGREP and select it if it is found.
  4658   # Check for GNU $ac_path_EGREP
  4659 case `"$ac_path_EGREP" --version 2>&1` in
  4660 *GNU*)
  4661   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4662 *)
  4663   ac_count=0
  4664   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4665   while :
  4666   do
  4667     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4668     mv "conftest.tmp" "conftest.in"
  4669     cp "conftest.in" "conftest.nl"
  4670     echo 'EGREP' >> "conftest.nl"
  4671     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4672     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4673     ac_count=`expr $ac_count + 1`
  4674     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4675       # Best one so far, save it but keep looking for a better one
  4676       ac_cv_path_EGREP="$ac_path_EGREP"
  4677       ac_path_EGREP_max=$ac_count
  4678     fi
  4679     # 10*(2^10) chars as input seems more than enough
  4680     test $ac_count -gt 10 && break
  4681   done
  4682   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4683 esac
  4686     $ac_path_EGREP_found && break 3
  4687   done
  4688 done
  4690 done
  4691 IFS=$as_save_IFS
  4694 fi
  4696 EGREP="$ac_cv_path_EGREP"
  4697 if test -z "$EGREP"; then
  4698   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4699 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4700    { (exit 1); exit 1; }; }
  4701 fi
  4703 else
  4704   ac_cv_path_EGREP=$EGREP
  4705 fi
  4708    fi
  4709 fi
  4710 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4711 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4712  EGREP="$ac_cv_path_EGREP"
  4715 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4716 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4717 if test "${ac_cv_header_stdc+set}" = set; then
  4718   echo $ECHO_N "(cached) $ECHO_C" >&6
  4719 else
  4720   cat >conftest.$ac_ext <<_ACEOF
  4721 /* confdefs.h.  */
  4722 _ACEOF
  4723 cat confdefs.h >>conftest.$ac_ext
  4724 cat >>conftest.$ac_ext <<_ACEOF
  4725 /* end confdefs.h.  */
  4726 #include <stdlib.h>
  4727 #include <stdarg.h>
  4728 #include <string.h>
  4729 #include <float.h>
  4731 int
  4732 main ()
  4736   return 0;
  4738 _ACEOF
  4739 rm -f conftest.$ac_objext
  4740 if { (ac_try="$ac_compile"
  4741 case "(($ac_try" in
  4742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4743   *) ac_try_echo=$ac_try;;
  4744 esac
  4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4746   (eval "$ac_compile") 2>conftest.er1
  4747   ac_status=$?
  4748   grep -v '^ *+' conftest.er1 >conftest.err
  4749   rm -f conftest.er1
  4750   cat conftest.err >&5
  4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4752   (exit $ac_status); } && {
  4753 	 test -z "$ac_c_werror_flag" ||
  4754 	 test ! -s conftest.err
  4755        } && test -s conftest.$ac_objext; then
  4756   ac_cv_header_stdc=yes
  4757 else
  4758   echo "$as_me: failed program was:" >&5
  4759 sed 's/^/| /' conftest.$ac_ext >&5
  4761 	ac_cv_header_stdc=no
  4762 fi
  4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4766 if test $ac_cv_header_stdc = yes; then
  4767   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4768   cat >conftest.$ac_ext <<_ACEOF
  4769 /* confdefs.h.  */
  4770 _ACEOF
  4771 cat confdefs.h >>conftest.$ac_ext
  4772 cat >>conftest.$ac_ext <<_ACEOF
  4773 /* end confdefs.h.  */
  4774 #include <string.h>
  4776 _ACEOF
  4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4778   $EGREP "memchr" >/dev/null 2>&1; then
  4780 else
  4781   ac_cv_header_stdc=no
  4782 fi
  4783 rm -f conftest*
  4785 fi
  4787 if test $ac_cv_header_stdc = yes; then
  4788   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4789   cat >conftest.$ac_ext <<_ACEOF
  4790 /* confdefs.h.  */
  4791 _ACEOF
  4792 cat confdefs.h >>conftest.$ac_ext
  4793 cat >>conftest.$ac_ext <<_ACEOF
  4794 /* end confdefs.h.  */
  4795 #include <stdlib.h>
  4797 _ACEOF
  4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4799   $EGREP "free" >/dev/null 2>&1; then
  4801 else
  4802   ac_cv_header_stdc=no
  4803 fi
  4804 rm -f conftest*
  4806 fi
  4808 if test $ac_cv_header_stdc = yes; then
  4809   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4810   if test "$cross_compiling" = yes; then
  4812 else
  4813   cat >conftest.$ac_ext <<_ACEOF
  4814 /* confdefs.h.  */
  4815 _ACEOF
  4816 cat confdefs.h >>conftest.$ac_ext
  4817 cat >>conftest.$ac_ext <<_ACEOF
  4818 /* end confdefs.h.  */
  4819 #include <ctype.h>
  4820 #include <stdlib.h>
  4821 #if ((' ' & 0x0FF) == 0x020)
  4822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4824 #else
  4825 # define ISLOWER(c) \
  4826 		   (('a' <= (c) && (c) <= 'i') \
  4827 		     || ('j' <= (c) && (c) <= 'r') \
  4828 		     || ('s' <= (c) && (c) <= 'z'))
  4829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4830 #endif
  4832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4833 int
  4834 main ()
  4836   int i;
  4837   for (i = 0; i < 256; i++)
  4838     if (XOR (islower (i), ISLOWER (i))
  4839 	|| toupper (i) != TOUPPER (i))
  4840       return 2;
  4841   return 0;
  4843 _ACEOF
  4844 rm -f conftest$ac_exeext
  4845 if { (ac_try="$ac_link"
  4846 case "(($ac_try" in
  4847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4848   *) ac_try_echo=$ac_try;;
  4849 esac
  4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4851   (eval "$ac_link") 2>&5
  4852   ac_status=$?
  4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4855   { (case "(($ac_try" in
  4856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4857   *) ac_try_echo=$ac_try;;
  4858 esac
  4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4860   (eval "$ac_try") 2>&5
  4861   ac_status=$?
  4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4863   (exit $ac_status); }; }; then
  4865 else
  4866   echo "$as_me: program exited with status $ac_status" >&5
  4867 echo "$as_me: failed program was:" >&5
  4868 sed 's/^/| /' conftest.$ac_ext >&5
  4870 ( exit $ac_status )
  4871 ac_cv_header_stdc=no
  4872 fi
  4873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4874 fi
  4877 fi
  4878 fi
  4879 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4880 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4881 if test $ac_cv_header_stdc = yes; then
  4883 cat >>confdefs.h <<\_ACEOF
  4884 #define STDC_HEADERS 1
  4885 _ACEOF
  4887 fi
  4889 # Make sure we can run config.sub.
  4890 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4891   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  4892 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  4893    { (exit 1); exit 1; }; }
  4895 { echo "$as_me:$LINENO: checking build system type" >&5
  4896 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  4897 if test "${ac_cv_build+set}" = set; then
  4898   echo $ECHO_N "(cached) $ECHO_C" >&6
  4899 else
  4900   ac_build_alias=$build_alias
  4901 test "x$ac_build_alias" = x &&
  4902   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4903 test "x$ac_build_alias" = x &&
  4904   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4905 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4906    { (exit 1); exit 1; }; }
  4907 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4908   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  4909 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  4910    { (exit 1); exit 1; }; }
  4912 fi
  4913 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4914 echo "${ECHO_T}$ac_cv_build" >&6; }
  4915 case $ac_cv_build in
  4916 *-*-*) ;;
  4917 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  4918 echo "$as_me: error: invalid value of canonical build" >&2;}
  4919    { (exit 1); exit 1; }; };;
  4920 esac
  4921 build=$ac_cv_build
  4922 ac_save_IFS=$IFS; IFS='-'
  4923 set x $ac_cv_build
  4924 shift
  4925 build_cpu=$1
  4926 build_vendor=$2
  4927 shift; shift
  4928 # Remember, the first character of IFS is used to create $*,
  4929 # except with old shells:
  4930 build_os=$*
  4931 IFS=$ac_save_IFS
  4932 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4935 { echo "$as_me:$LINENO: checking host system type" >&5
  4936 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  4937 if test "${ac_cv_host+set}" = set; then
  4938   echo $ECHO_N "(cached) $ECHO_C" >&6
  4939 else
  4940   if test "x$host_alias" = x; then
  4941   ac_cv_host=$ac_cv_build
  4942 else
  4943   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4944     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  4945 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  4946    { (exit 1); exit 1; }; }
  4947 fi
  4949 fi
  4950 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4951 echo "${ECHO_T}$ac_cv_host" >&6; }
  4952 case $ac_cv_host in
  4953 *-*-*) ;;
  4954 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  4955 echo "$as_me: error: invalid value of canonical host" >&2;}
  4956    { (exit 1); exit 1; }; };;
  4957 esac
  4958 host=$ac_cv_host
  4959 ac_save_IFS=$IFS; IFS='-'
  4960 set x $ac_cv_host
  4961 shift
  4962 host_cpu=$1
  4963 host_vendor=$2
  4964 shift; shift
  4965 # Remember, the first character of IFS is used to create $*,
  4966 # except with old shells:
  4967 host_os=$*
  4968 IFS=$ac_save_IFS
  4969 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4972 # Check whether --enable-trace was given.
  4973 if test "${enable_trace+set}" = set; then
  4974   enableval=$enable_trace; if test "$enableval" == "yes"; then
  4976 cat >>confdefs.h <<\_ACEOF
  4977 #define ENABLE_TRACE_IO 1
  4978 _ACEOF
  4980     fi
  4981 fi
  4983 # Check whether --enable-watch was given.
  4984 if test "${enable_watch+set}" = set; then
  4985   enableval=$enable_watch; if test "$enableval" == "yes"; then
  4987 cat >>confdefs.h <<\_ACEOF
  4988 #define ENABLE_WATCH 1
  4989 _ACEOF
  4991    fi
  4992 fi
  4995 # Check whether --with-osmesa was given.
  4996 if test "${with_osmesa+set}" = set; then
  4997   withval=$with_osmesa;
  4998 else
  4999   with_osmesa=no
  5000 fi
  5003 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5013 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5014 		  inttypes.h stdint.h unistd.h
  5015 do
  5016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5020   echo $ECHO_N "(cached) $ECHO_C" >&6
  5021 else
  5022   cat >conftest.$ac_ext <<_ACEOF
  5023 /* confdefs.h.  */
  5024 _ACEOF
  5025 cat confdefs.h >>conftest.$ac_ext
  5026 cat >>conftest.$ac_ext <<_ACEOF
  5027 /* end confdefs.h.  */
  5028 $ac_includes_default
  5030 #include <$ac_header>
  5031 _ACEOF
  5032 rm -f conftest.$ac_objext
  5033 if { (ac_try="$ac_compile"
  5034 case "(($ac_try" in
  5035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5036   *) ac_try_echo=$ac_try;;
  5037 esac
  5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5039   (eval "$ac_compile") 2>conftest.er1
  5040   ac_status=$?
  5041   grep -v '^ *+' conftest.er1 >conftest.err
  5042   rm -f conftest.er1
  5043   cat conftest.err >&5
  5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5045   (exit $ac_status); } && {
  5046 	 test -z "$ac_c_werror_flag" ||
  5047 	 test ! -s conftest.err
  5048        } && test -s conftest.$ac_objext; then
  5049   eval "$as_ac_Header=yes"
  5050 else
  5051   echo "$as_me: failed program was:" >&5
  5052 sed 's/^/| /' conftest.$ac_ext >&5
  5054 	eval "$as_ac_Header=no"
  5055 fi
  5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5058 fi
  5059 ac_res=`eval echo '${'$as_ac_Header'}'`
  5060 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  5061 echo "${ECHO_T}$ac_res" >&6; }
  5062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5063   cat >>confdefs.h <<_ACEOF
  5064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5065 _ACEOF
  5067 fi
  5069 done
  5072 if test "x$with_osmesa" != xno; then
  5075 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  5076 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
  5077 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  5078   echo $ECHO_N "(cached) $ECHO_C" >&6
  5079 else
  5080   ac_check_lib_save_LIBS=$LIBS
  5081 LIBS="-lOSMesa  $LIBS"
  5082 cat >conftest.$ac_ext <<_ACEOF
  5083 /* confdefs.h.  */
  5084 _ACEOF
  5085 cat confdefs.h >>conftest.$ac_ext
  5086 cat >>conftest.$ac_ext <<_ACEOF
  5087 /* end confdefs.h.  */
  5089 /* Override any GCC internal prototype to avoid an error.
  5090    Use char because int might match the return type of a GCC
  5091    builtin and then its argument prototype would still apply.  */
  5092 #ifdef __cplusplus
  5093 extern "C"
  5094 #endif
  5095 char OSMesaCreateContext ();
  5096 int
  5097 main ()
  5099 return OSMesaCreateContext ();
  5101   return 0;
  5103 _ACEOF
  5104 rm -f conftest.$ac_objext conftest$ac_exeext
  5105 if { (ac_try="$ac_link"
  5106 case "(($ac_try" in
  5107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5108   *) ac_try_echo=$ac_try;;
  5109 esac
  5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5111   (eval "$ac_link") 2>conftest.er1
  5112   ac_status=$?
  5113   grep -v '^ *+' conftest.er1 >conftest.err
  5114   rm -f conftest.er1
  5115   cat conftest.err >&5
  5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5117   (exit $ac_status); } && {
  5118 	 test -z "$ac_c_werror_flag" ||
  5119 	 test ! -s conftest.err
  5120        } && test -s conftest$ac_exeext &&
  5121        $as_test_x conftest$ac_exeext; then
  5122   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  5123 else
  5124   echo "$as_me: failed program was:" >&5
  5125 sed 's/^/| /' conftest.$ac_ext >&5
  5127 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  5128 fi
  5130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5131       conftest$ac_exeext conftest.$ac_ext
  5132 LIBS=$ac_check_lib_save_LIBS
  5133 fi
  5134 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  5135 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  5136 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
  5137   cat >>confdefs.h <<_ACEOF
  5138 #define HAVE_LIBOSMESA 1
  5139 _ACEOF
  5141   LIBS="-lOSMesa $LIBS"
  5143 else
  5144   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  5145 See \`config.log' for more details." >&5
  5146 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  5147 See \`config.log' for more details." >&2;}
  5148    { (exit 1); exit 1; }; }
  5149 fi
  5151   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  5152   { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  5153 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
  5154 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  5155   echo $ECHO_N "(cached) $ECHO_C" >&6
  5156 fi
  5157 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  5158 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
  5159 else
  5160   # Is the header compilable?
  5161 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  5162 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
  5163 cat >conftest.$ac_ext <<_ACEOF
  5164 /* confdefs.h.  */
  5165 _ACEOF
  5166 cat confdefs.h >>conftest.$ac_ext
  5167 cat >>conftest.$ac_ext <<_ACEOF
  5168 /* end confdefs.h.  */
  5169 $ac_includes_default
  5170 #include <GL/osmesa.h>
  5171 _ACEOF
  5172 rm -f conftest.$ac_objext
  5173 if { (ac_try="$ac_compile"
  5174 case "(($ac_try" in
  5175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5176   *) ac_try_echo=$ac_try;;
  5177 esac
  5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5179   (eval "$ac_compile") 2>conftest.er1
  5180   ac_status=$?
  5181   grep -v '^ *+' conftest.er1 >conftest.err
  5182   rm -f conftest.er1
  5183   cat conftest.err >&5
  5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5185   (exit $ac_status); } && {
  5186 	 test -z "$ac_c_werror_flag" ||
  5187 	 test ! -s conftest.err
  5188        } && test -s conftest.$ac_objext; then
  5189   ac_header_compiler=yes
  5190 else
  5191   echo "$as_me: failed program was:" >&5
  5192 sed 's/^/| /' conftest.$ac_ext >&5
  5194 	ac_header_compiler=no
  5195 fi
  5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5199 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5201 # Is the header present?
  5202 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  5203 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
  5204 cat >conftest.$ac_ext <<_ACEOF
  5205 /* confdefs.h.  */
  5206 _ACEOF
  5207 cat confdefs.h >>conftest.$ac_ext
  5208 cat >>conftest.$ac_ext <<_ACEOF
  5209 /* end confdefs.h.  */
  5210 #include <GL/osmesa.h>
  5211 _ACEOF
  5212 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5213 case "(($ac_try" in
  5214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5215   *) ac_try_echo=$ac_try;;
  5216 esac
  5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5219   ac_status=$?
  5220   grep -v '^ *+' conftest.er1 >conftest.err
  5221   rm -f conftest.er1
  5222   cat conftest.err >&5
  5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5224   (exit $ac_status); } >/dev/null && {
  5225 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5226 	 test ! -s conftest.err
  5227        }; then
  5228   ac_header_preproc=yes
  5229 else
  5230   echo "$as_me: failed program was:" >&5
  5231 sed 's/^/| /' conftest.$ac_ext >&5
  5233   ac_header_preproc=no
  5234 fi
  5236 rm -f conftest.err conftest.$ac_ext
  5237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5238 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5240 # So?  What about this header?
  5241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5242   yes:no: )
  5243     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5244 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5245     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  5246 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  5247     ac_header_preproc=yes
  5248     ;;
  5249   no:yes:* )
  5250     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  5251 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  5252     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  5253 echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  5254     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  5255 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  5256     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  5257 echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5258     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  5259 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  5260     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  5261 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  5263     ;;
  5264 esac
  5265 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  5266 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
  5267 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  5268   echo $ECHO_N "(cached) $ECHO_C" >&6
  5269 else
  5270   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  5271 fi
  5272 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  5273 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
  5275 fi
  5276 if test $ac_cv_header_GL_osmesa_h = yes; then
  5278 else
  5279   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  5280 See \`config.log' for more details." >&5
  5281 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  5282 See \`config.log' for more details." >&2;}
  5283    { (exit 1); exit 1; }; }
  5284 fi
  5288 fi
  5292 if test "x$with_osmesa" != xno; then
  5293   OSMESA_DRIVER_TRUE=
  5294   OSMESA_DRIVER_FALSE='#'
  5295 else
  5296   OSMESA_DRIVER_TRUE='#'
  5297   OSMESA_DRIVER_FALSE=
  5298 fi
  5301 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5302   { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
  5303 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
  5304 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5305   echo $ECHO_N "(cached) $ECHO_C" >&6
  5306 fi
  5307 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
  5308 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
  5309 else
  5310   # Is the header compilable?
  5311 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
  5312 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
  5313 cat >conftest.$ac_ext <<_ACEOF
  5314 /* confdefs.h.  */
  5315 _ACEOF
  5316 cat confdefs.h >>conftest.$ac_ext
  5317 cat >>conftest.$ac_ext <<_ACEOF
  5318 /* end confdefs.h.  */
  5319 $ac_includes_default
  5320 #include <Carbon/Carbon.h>
  5321 _ACEOF
  5322 rm -f conftest.$ac_objext
  5323 if { (ac_try="$ac_compile"
  5324 case "(($ac_try" in
  5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5326   *) ac_try_echo=$ac_try;;
  5327 esac
  5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5329   (eval "$ac_compile") 2>conftest.er1
  5330   ac_status=$?
  5331   grep -v '^ *+' conftest.er1 >conftest.err
  5332   rm -f conftest.er1
  5333   cat conftest.err >&5
  5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5335   (exit $ac_status); } && {
  5336 	 test -z "$ac_c_werror_flag" ||
  5337 	 test ! -s conftest.err
  5338        } && test -s conftest.$ac_objext; then
  5339   ac_header_compiler=yes
  5340 else
  5341   echo "$as_me: failed program was:" >&5
  5342 sed 's/^/| /' conftest.$ac_ext >&5
  5344 	ac_header_compiler=no
  5345 fi
  5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5349 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5351 # Is the header present?
  5352 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
  5353 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
  5354 cat >conftest.$ac_ext <<_ACEOF
  5355 /* confdefs.h.  */
  5356 _ACEOF
  5357 cat confdefs.h >>conftest.$ac_ext
  5358 cat >>conftest.$ac_ext <<_ACEOF
  5359 /* end confdefs.h.  */
  5360 #include <Carbon/Carbon.h>
  5361 _ACEOF
  5362 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5363 case "(($ac_try" in
  5364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5365   *) ac_try_echo=$ac_try;;
  5366 esac
  5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5369   ac_status=$?
  5370   grep -v '^ *+' conftest.er1 >conftest.err
  5371   rm -f conftest.er1
  5372   cat conftest.err >&5
  5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5374   (exit $ac_status); } >/dev/null && {
  5375 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5376 	 test ! -s conftest.err
  5377        }; then
  5378   ac_header_preproc=yes
  5379 else
  5380   echo "$as_me: failed program was:" >&5
  5381 sed 's/^/| /' conftest.$ac_ext >&5
  5383   ac_header_preproc=no
  5384 fi
  5386 rm -f conftest.err conftest.$ac_ext
  5387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5388 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5390 # So?  What about this header?
  5391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5392   yes:no: )
  5393     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5394 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5395     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
  5396 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
  5397     ac_header_preproc=yes
  5398     ;;
  5399   no:yes:* )
  5400     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
  5401 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
  5402     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
  5403 echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
  5404     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
  5405 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
  5406     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
  5407 echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5408     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
  5409 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
  5410     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
  5411 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
  5413     ;;
  5414 esac
  5415 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
  5416 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
  5417 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5418   echo $ECHO_N "(cached) $ECHO_C" >&6
  5419 else
  5420   ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
  5421 fi
  5422 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
  5423 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
  5425 fi
  5426 if test $ac_cv_header_Carbon_Carbon_h = yes; then
  5428    HAVE_CARBON='yes'
  5429    APPLE_BUILD='yes'
  5430    LIBS="$LIBS -framework OpenGL -framework AGL -framework Carbon -L/usr/X11R6/lib -lGL"
  5432 cat >>confdefs.h <<\_ACEOF
  5433 #define HAVE_CARBON 1
  5434 _ACEOF
  5437 cat >>confdefs.h <<\_ACEOF
  5438 #define APPLE_BUILD 1
  5439 _ACEOF
  5442 fi
  5448 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5449 	if test -n "$ac_tool_prefix"; then
  5450   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5451 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5454 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  5455   echo $ECHO_N "(cached) $ECHO_C" >&6
  5456 else
  5457   case $PKG_CONFIG in
  5458   [\\/]* | ?:[\\/]*)
  5459   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5460   ;;
  5461   *)
  5462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5463 for as_dir in $PATH
  5464 do
  5465   IFS=$as_save_IFS
  5466   test -z "$as_dir" && as_dir=.
  5467   for ac_exec_ext in '' $ac_executable_extensions; do
  5468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5469     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5471     break 2
  5472   fi
  5473 done
  5474 done
  5475 IFS=$as_save_IFS
  5477   ;;
  5478 esac
  5479 fi
  5480 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5481 if test -n "$PKG_CONFIG"; then
  5482   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  5483 echo "${ECHO_T}$PKG_CONFIG" >&6; }
  5484 else
  5485   { echo "$as_me:$LINENO: result: no" >&5
  5486 echo "${ECHO_T}no" >&6; }
  5487 fi
  5490 fi
  5491 if test -z "$ac_cv_path_PKG_CONFIG"; then
  5492   ac_pt_PKG_CONFIG=$PKG_CONFIG
  5493   # Extract the first word of "pkg-config", so it can be a program name with args.
  5494 set dummy pkg-config; ac_word=$2
  5495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5497 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  5498   echo $ECHO_N "(cached) $ECHO_C" >&6
  5499 else
  5500   case $ac_pt_PKG_CONFIG in
  5501   [\\/]* | ?:[\\/]*)
  5502   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5503   ;;
  5504   *)
  5505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5506 for as_dir in $PATH
  5507 do
  5508   IFS=$as_save_IFS
  5509   test -z "$as_dir" && as_dir=.
  5510   for ac_exec_ext in '' $ac_executable_extensions; do
  5511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5512     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5514     break 2
  5515   fi
  5516 done
  5517 done
  5518 IFS=$as_save_IFS
  5520   ;;
  5521 esac
  5522 fi
  5523 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5524 if test -n "$ac_pt_PKG_CONFIG"; then
  5525   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  5526 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  5527 else
  5528   { echo "$as_me:$LINENO: result: no" >&5
  5529 echo "${ECHO_T}no" >&6; }
  5530 fi
  5532   if test "x$ac_pt_PKG_CONFIG" = x; then
  5533     PKG_CONFIG=""
  5534   else
  5535     case $cross_compiling:$ac_tool_warned in
  5536 yes:)
  5537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5538 whose name does not start with the host triplet.  If you think this
  5539 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5541 whose name does not start with the host triplet.  If you think this
  5542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5543 ac_tool_warned=yes ;;
  5544 esac
  5545     PKG_CONFIG=$ac_pt_PKG_CONFIG
  5546   fi
  5547 else
  5548   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5549 fi
  5551 fi
  5552 if test -n "$PKG_CONFIG"; then
  5553 	_pkg_min_version=0.9.0
  5554 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  5555 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  5556 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5557 		{ echo "$as_me:$LINENO: result: yes" >&5
  5558 echo "${ECHO_T}yes" >&6; }
  5559 	else
  5560 		{ echo "$as_me:$LINENO: result: no" >&5
  5561 echo "${ECHO_T}no" >&6; }
  5562 		PKG_CONFIG=""
  5563 	fi
  5565 fi
  5567 pkg_failed=no
  5568 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
  5569 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
  5571 if test -n "$PKG_CONFIG"; then
  5572     if test -n "$LIBPNG_CFLAGS"; then
  5573         pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  5574     else
  5575         if test -n "$PKG_CONFIG" && \
  5576     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5577   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5578   ac_status=$?
  5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5580   (exit $ac_status); }; then
  5581   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  5582 else
  5583   pkg_failed=yes
  5584 fi
  5585     fi
  5586 else
  5587 	pkg_failed=untried
  5588 fi
  5589 if test -n "$PKG_CONFIG"; then
  5590     if test -n "$LIBPNG_LIBS"; then
  5591         pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  5592     else
  5593         if test -n "$PKG_CONFIG" && \
  5594     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5595   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5596   ac_status=$?
  5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5598   (exit $ac_status); }; then
  5599   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  5600 else
  5601   pkg_failed=yes
  5602 fi
  5603     fi
  5604 else
  5605 	pkg_failed=untried
  5606 fi
  5610 if test $pkg_failed = yes; then
  5612 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5613         _pkg_short_errors_supported=yes
  5614 else
  5615         _pkg_short_errors_supported=no
  5616 fi
  5617         if test $_pkg_short_errors_supported = yes; then
  5618 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
  5619         else
  5620 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
  5621         fi
  5622 	# Put the nasty error message in config.log where it belongs
  5623 	echo "$LIBPNG_PKG_ERRORS" >&5
  5625 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  5627 $LIBPNG_PKG_ERRORS
  5629 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5630 installed software in a non-standard prefix.
  5632 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5633 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5634 See the pkg-config man page for more details.
  5635 " >&5
  5636 echo "$as_me: error: Package requirements (libpng ) were not met:
  5638 $LIBPNG_PKG_ERRORS
  5640 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5641 installed software in a non-standard prefix.
  5643 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5644 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5645 See the pkg-config man page for more details.
  5646 " >&2;}
  5647    { (exit 1); exit 1; }; }
  5648 elif test $pkg_failed = untried; then
  5649 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  5650 is in your PATH or set the PKG_CONFIG environment variable to the full
  5651 path to pkg-config.
  5653 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5654 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5655 See the pkg-config man page for more details.
  5657 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5658 See \`config.log' for more details." >&5
  5659 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  5660 is in your PATH or set the PKG_CONFIG environment variable to the full
  5661 path to pkg-config.
  5663 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5664 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5665 See the pkg-config man page for more details.
  5667 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5668 See \`config.log' for more details." >&2;}
  5669    { (exit 1); exit 1; }; }
  5670 else
  5671 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  5672 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  5673         { echo "$as_me:$LINENO: result: yes" >&5
  5674 echo "${ECHO_T}yes" >&6; }
  5676 fi
  5679 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  5680 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
  5681 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  5682   echo $ECHO_N "(cached) $ECHO_C" >&6
  5683 else
  5684   ac_check_lib_save_LIBS=$LIBS
  5685 LIBS="-lz  $LIBS"
  5686 cat >conftest.$ac_ext <<_ACEOF
  5687 /* confdefs.h.  */
  5688 _ACEOF
  5689 cat confdefs.h >>conftest.$ac_ext
  5690 cat >>conftest.$ac_ext <<_ACEOF
  5691 /* end confdefs.h.  */
  5693 /* Override any GCC internal prototype to avoid an error.
  5694    Use char because int might match the return type of a GCC
  5695    builtin and then its argument prototype would still apply.  */
  5696 #ifdef __cplusplus
  5697 extern "C"
  5698 #endif
  5699 char uncompress ();
  5700 int
  5701 main ()
  5703 return uncompress ();
  5705   return 0;
  5707 _ACEOF
  5708 rm -f conftest.$ac_objext conftest$ac_exeext
  5709 if { (ac_try="$ac_link"
  5710 case "(($ac_try" in
  5711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5712   *) ac_try_echo=$ac_try;;
  5713 esac
  5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5715   (eval "$ac_link") 2>conftest.er1
  5716   ac_status=$?
  5717   grep -v '^ *+' conftest.er1 >conftest.err
  5718   rm -f conftest.er1
  5719   cat conftest.err >&5
  5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5721   (exit $ac_status); } && {
  5722 	 test -z "$ac_c_werror_flag" ||
  5723 	 test ! -s conftest.err
  5724        } && test -s conftest$ac_exeext &&
  5725        $as_test_x conftest$ac_exeext; then
  5726   ac_cv_lib_z_uncompress=yes
  5727 else
  5728   echo "$as_me: failed program was:" >&5
  5729 sed 's/^/| /' conftest.$ac_ext >&5
  5731 	ac_cv_lib_z_uncompress=no
  5732 fi
  5734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5735       conftest$ac_exeext conftest.$ac_ext
  5736 LIBS=$ac_check_lib_save_LIBS
  5737 fi
  5738 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  5739 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
  5740 if test $ac_cv_lib_z_uncompress = yes; then
  5741   cat >>confdefs.h <<_ACEOF
  5742 #define HAVE_LIBZ 1
  5743 _ACEOF
  5745   LIBS="-lz $LIBS"
  5747 else
  5749     echo "Zlib (libz.so) could not be found, but is required."
  5750     exit 1
  5751 fi
  5754 if test "$APPLE_BUILD" != 'yes'; then
  5755 if test "x$with_osmesa" == "xno"; then
  5757 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
  5758 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
  5759 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
  5760   echo $ECHO_N "(cached) $ECHO_C" >&6
  5761 else
  5762   ac_check_lib_save_LIBS=$LIBS
  5763 LIBS="-lGL  $LIBS"
  5764 cat >conftest.$ac_ext <<_ACEOF
  5765 /* confdefs.h.  */
  5766 _ACEOF
  5767 cat confdefs.h >>conftest.$ac_ext
  5768 cat >>conftest.$ac_ext <<_ACEOF
  5769 /* end confdefs.h.  */
  5771 /* Override any GCC internal prototype to avoid an error.
  5772    Use char because int might match the return type of a GCC
  5773    builtin and then its argument prototype would still apply.  */
  5774 #ifdef __cplusplus
  5775 extern "C"
  5776 #endif
  5777 char glXQueryVersion ();
  5778 int
  5779 main ()
  5781 return glXQueryVersion ();
  5783   return 0;
  5785 _ACEOF
  5786 rm -f conftest.$ac_objext conftest$ac_exeext
  5787 if { (ac_try="$ac_link"
  5788 case "(($ac_try" in
  5789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5790   *) ac_try_echo=$ac_try;;
  5791 esac
  5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5793   (eval "$ac_link") 2>conftest.er1
  5794   ac_status=$?
  5795   grep -v '^ *+' conftest.er1 >conftest.err
  5796   rm -f conftest.er1
  5797   cat conftest.err >&5
  5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5799   (exit $ac_status); } && {
  5800 	 test -z "$ac_c_werror_flag" ||
  5801 	 test ! -s conftest.err
  5802        } && test -s conftest$ac_exeext &&
  5803        $as_test_x conftest$ac_exeext; then
  5804   ac_cv_lib_GL_glXQueryVersion=yes
  5805 else
  5806   echo "$as_me: failed program was:" >&5
  5807 sed 's/^/| /' conftest.$ac_ext >&5
  5809 	ac_cv_lib_GL_glXQueryVersion=no
  5810 fi
  5812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5813       conftest$ac_exeext conftest.$ac_ext
  5814 LIBS=$ac_check_lib_save_LIBS
  5815 fi
  5816 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
  5817 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
  5818 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
  5819   cat >>confdefs.h <<_ACEOF
  5820 #define HAVE_LIBGL 1
  5821 _ACEOF
  5823   LIBS="-lGL $LIBS"
  5825 else
  5827     echo "The OpenGL library (libGL.so) could not be found, but is required."
  5828     exit 1
  5829 fi
  5831 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5832   { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5833 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5834 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5835   echo $ECHO_N "(cached) $ECHO_C" >&6
  5836 fi
  5837 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5838 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5839 else
  5840   # Is the header compilable?
  5841 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  5842 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
  5843 cat >conftest.$ac_ext <<_ACEOF
  5844 /* confdefs.h.  */
  5845 _ACEOF
  5846 cat confdefs.h >>conftest.$ac_ext
  5847 cat >>conftest.$ac_ext <<_ACEOF
  5848 /* end confdefs.h.  */
  5849 $ac_includes_default
  5850 #include <GL/gl.h>
  5851 _ACEOF
  5852 rm -f conftest.$ac_objext
  5853 if { (ac_try="$ac_compile"
  5854 case "(($ac_try" in
  5855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5856   *) ac_try_echo=$ac_try;;
  5857 esac
  5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5859   (eval "$ac_compile") 2>conftest.er1
  5860   ac_status=$?
  5861   grep -v '^ *+' conftest.er1 >conftest.err
  5862   rm -f conftest.er1
  5863   cat conftest.err >&5
  5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5865   (exit $ac_status); } && {
  5866 	 test -z "$ac_c_werror_flag" ||
  5867 	 test ! -s conftest.err
  5868        } && test -s conftest.$ac_objext; then
  5869   ac_header_compiler=yes
  5870 else
  5871   echo "$as_me: failed program was:" >&5
  5872 sed 's/^/| /' conftest.$ac_ext >&5
  5874 	ac_header_compiler=no
  5875 fi
  5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5879 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5881 # Is the header present?
  5882 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  5883 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
  5884 cat >conftest.$ac_ext <<_ACEOF
  5885 /* confdefs.h.  */
  5886 _ACEOF
  5887 cat confdefs.h >>conftest.$ac_ext
  5888 cat >>conftest.$ac_ext <<_ACEOF
  5889 /* end confdefs.h.  */
  5890 #include <GL/gl.h>
  5891 _ACEOF
  5892 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5893 case "(($ac_try" in
  5894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5895   *) ac_try_echo=$ac_try;;
  5896 esac
  5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5899   ac_status=$?
  5900   grep -v '^ *+' conftest.er1 >conftest.err
  5901   rm -f conftest.er1
  5902   cat conftest.err >&5
  5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5904   (exit $ac_status); } >/dev/null && {
  5905 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5906 	 test ! -s conftest.err
  5907        }; then
  5908   ac_header_preproc=yes
  5909 else
  5910   echo "$as_me: failed program was:" >&5
  5911 sed 's/^/| /' conftest.$ac_ext >&5
  5913   ac_header_preproc=no
  5914 fi
  5916 rm -f conftest.err conftest.$ac_ext
  5917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5918 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5920 # So?  What about this header?
  5921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5922   yes:no: )
  5923     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5924 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5925     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  5926 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  5927     ac_header_preproc=yes
  5928     ;;
  5929   no:yes:* )
  5930     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  5931 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  5932     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  5933 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  5934     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  5935 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  5936     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  5937 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5938     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  5939 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  5940     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  5941 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  5943     ;;
  5944 esac
  5945 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5946 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5947 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5948   echo $ECHO_N "(cached) $ECHO_C" >&6
  5949 else
  5950   ac_cv_header_GL_gl_h=$ac_header_preproc
  5951 fi
  5952 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5953 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5955 fi
  5956 if test $ac_cv_header_GL_gl_h = yes; then
  5958 else
  5960     echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
  5961     exit 1
  5962 fi
  5965 fi
  5966 fi
  5969 pkg_failed=no
  5970 { echo "$as_me:$LINENO: checking for GTK" >&5
  5971 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
  5973 if test -n "$PKG_CONFIG"; then
  5974     if test -n "$GTK_CFLAGS"; then
  5975         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  5976     else
  5977         if test -n "$PKG_CONFIG" && \
  5978     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  5979   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  5980   ac_status=$?
  5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5982   (exit $ac_status); }; then
  5983   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  5984 else
  5985   pkg_failed=yes
  5986 fi
  5987     fi
  5988 else
  5989 	pkg_failed=untried
  5990 fi
  5991 if test -n "$PKG_CONFIG"; then
  5992     if test -n "$GTK_LIBS"; then
  5993         pkg_cv_GTK_LIBS="$GTK_LIBS"
  5994     else
  5995         if test -n "$PKG_CONFIG" && \
  5996     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  5997   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  5998   ac_status=$?
  5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6000   (exit $ac_status); }; then
  6001   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  6002 else
  6003   pkg_failed=yes
  6004 fi
  6005     fi
  6006 else
  6007 	pkg_failed=untried
  6008 fi
  6012 if test $pkg_failed = yes; then
  6014 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6015         _pkg_short_errors_supported=yes
  6016 else
  6017         _pkg_short_errors_supported=no
  6018 fi
  6019         if test $_pkg_short_errors_supported = yes; then
  6020 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
  6021         else
  6022 	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
  6023         fi
  6024 	# Put the nasty error message in config.log where it belongs
  6025 	echo "$GTK_PKG_ERRORS" >&5
  6027 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  6029 $GTK_PKG_ERRORS
  6031 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6032 installed software in a non-standard prefix.
  6034 Alternatively, you may set the environment variables GTK_CFLAGS
  6035 and GTK_LIBS to avoid the need to call pkg-config.
  6036 See the pkg-config man page for more details.
  6037 " >&5
  6038 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  6040 $GTK_PKG_ERRORS
  6042 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6043 installed software in a non-standard prefix.
  6045 Alternatively, you may set the environment variables GTK_CFLAGS
  6046 and GTK_LIBS to avoid the need to call pkg-config.
  6047 See the pkg-config man page for more details.
  6048 " >&2;}
  6049    { (exit 1); exit 1; }; }
  6050 elif test $pkg_failed = untried; then
  6051 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  6052 is in your PATH or set the PKG_CONFIG environment variable to the full
  6053 path to pkg-config.
  6055 Alternatively, you may set the environment variables GTK_CFLAGS
  6056 and GTK_LIBS to avoid the need to call pkg-config.
  6057 See the pkg-config man page for more details.
  6059 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  6060 See \`config.log' for more details." >&5
  6061 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  6062 is in your PATH or set the PKG_CONFIG environment variable to the full
  6063 path to pkg-config.
  6065 Alternatively, you may set the environment variables GTK_CFLAGS
  6066 and GTK_LIBS to avoid the need to call pkg-config.
  6067 See the pkg-config man page for more details.
  6069 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  6070 See \`config.log' for more details." >&2;}
  6071    { (exit 1); exit 1; }; }
  6072 else
  6073 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  6074 	GTK_LIBS=$pkg_cv_GTK_LIBS
  6075         { echo "$as_me:$LINENO: result: yes" >&5
  6076 echo "${ECHO_T}yes" >&6; }
  6078     HAVE_GTK='yes'
  6080 cat >>confdefs.h <<\_ACEOF
  6081 #define HAVE_GTK 1
  6082 _ACEOF
  6085 fi
  6089 if test "$HAVE_CARBON" = 'yes'; then
  6090   GUI_CARBON_TRUE=
  6091   GUI_CARBON_FALSE='#'
  6092 else
  6093   GUI_CARBON_TRUE='#'
  6094   GUI_CARBON_FALSE=
  6095 fi
  6099 if test "$HAVE_GTK" = 'yes'; then
  6100   GUI_GTK_TRUE=
  6101   GUI_GTK_FALSE='#'
  6102 else
  6103   GUI_GTK_TRUE='#'
  6104   GUI_GTK_FALSE=
  6105 fi
  6108 case $host_cpu in
  6109     i386|i486|i586|i686)
  6110 	SH4_TRANSLATOR="x86"
  6112 cat >>confdefs.h <<_ACEOF
  6113 #define SH4_TRANSLATOR TARGET_X86
  6114 _ACEOF
  6115 ;;
  6116     x86_64)
  6117 	SH4_TRANSLATOR="x86_64"
  6119 cat >>confdefs.h <<_ACEOF
  6120 #define SH4_TRANSLATOR TARGET_X86_64
  6121 _ACEOF
  6122 ;;
  6123     *)
  6124 	echo "Warning: No translator available for $host. Building emulation core only";;
  6125 esac
  6128 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
  6129   BUILD_SH4X86_TRUE=
  6130   BUILD_SH4X86_FALSE='#'
  6131 else
  6132   BUILD_SH4X86_TRUE='#'
  6133   BUILD_SH4X86_FALSE=
  6134 fi
  6138 if test "$SH4_TRANSLATOR" = "x86_64"; then
  6139   BUILD_X86_64_TRUE=
  6140   BUILD_X86_64_FALSE='#'
  6141 else
  6142   BUILD_X86_64_TRUE='#'
  6143   BUILD_X86_64_FALSE=
  6144 fi
  6148 pkg_failed=no
  6149 { echo "$as_me:$LINENO: checking for ESOUND" >&5
  6150 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
  6152 if test -n "$PKG_CONFIG"; then
  6153     if test -n "$ESOUND_CFLAGS"; then
  6154         pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
  6155     else
  6156         if test -n "$PKG_CONFIG" && \
  6157     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  6158   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  6159   ac_status=$?
  6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6161   (exit $ac_status); }; then
  6162   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  6163 else
  6164   pkg_failed=yes
  6165 fi
  6166     fi
  6167 else
  6168 	pkg_failed=untried
  6169 fi
  6170 if test -n "$PKG_CONFIG"; then
  6171     if test -n "$ESOUND_LIBS"; then
  6172         pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
  6173     else
  6174         if test -n "$PKG_CONFIG" && \
  6175     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  6176   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  6177   ac_status=$?
  6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6179   (exit $ac_status); }; then
  6180   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  6181 else
  6182   pkg_failed=yes
  6183 fi
  6184     fi
  6185 else
  6186 	pkg_failed=untried
  6187 fi
  6191 if test $pkg_failed = yes; then
  6193 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6194         _pkg_short_errors_supported=yes
  6195 else
  6196         _pkg_short_errors_supported=no
  6197 fi
  6198         if test $_pkg_short_errors_supported = yes; then
  6199 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
  6200         else
  6201 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
  6202         fi
  6203 	# Put the nasty error message in config.log where it belongs
  6204 	echo "$ESOUND_PKG_ERRORS" >&5
  6206 	{ echo "$as_me:$LINENO: result: no" >&5
  6207 echo "${ECHO_T}no" >&6; }
  6208                  echo "Warning: esound not found - building without audio support"
  6209 elif test $pkg_failed = untried; then
  6210 	 echo "Warning: esound not found - building without audio support"
  6211 else
  6212 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
  6213 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
  6214         { echo "$as_me:$LINENO: result: yes" >&5
  6215 echo "${ECHO_T}yes" >&6; }
  6217      HAVE_ESOUND='yes'
  6219 cat >>confdefs.h <<\_ACEOF
  6220 #define HAVE_ESOUND 1
  6221 _ACEOF
  6223 fi
  6226 if test "$HAVE_ESOUND" = 'yes' ; then
  6227   AUDIO_ESOUND_TRUE=
  6228   AUDIO_ESOUND_FALSE='#'
  6229 else
  6230   AUDIO_ESOUND_TRUE='#'
  6231   AUDIO_ESOUND_FALSE=
  6232 fi
  6235 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6236   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  6237 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  6238 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6239   echo $ECHO_N "(cached) $ECHO_C" >&6
  6240 fi
  6241 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  6242 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  6243 else
  6244   # Is the header compilable?
  6245 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  6246 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
  6247 cat >conftest.$ac_ext <<_ACEOF
  6248 /* confdefs.h.  */
  6249 _ACEOF
  6250 cat confdefs.h >>conftest.$ac_ext
  6251 cat >>conftest.$ac_ext <<_ACEOF
  6252 /* end confdefs.h.  */
  6253 $ac_includes_default
  6254 #include <linux/cdrom.h>
  6255 _ACEOF
  6256 rm -f conftest.$ac_objext
  6257 if { (ac_try="$ac_compile"
  6258 case "(($ac_try" in
  6259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6260   *) ac_try_echo=$ac_try;;
  6261 esac
  6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6263   (eval "$ac_compile") 2>conftest.er1
  6264   ac_status=$?
  6265   grep -v '^ *+' conftest.er1 >conftest.err
  6266   rm -f conftest.er1
  6267   cat conftest.err >&5
  6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6269   (exit $ac_status); } && {
  6270 	 test -z "$ac_c_werror_flag" ||
  6271 	 test ! -s conftest.err
  6272        } && test -s conftest.$ac_objext; then
  6273   ac_header_compiler=yes
  6274 else
  6275   echo "$as_me: failed program was:" >&5
  6276 sed 's/^/| /' conftest.$ac_ext >&5
  6278 	ac_header_compiler=no
  6279 fi
  6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6283 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6285 # Is the header present?
  6286 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  6287 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
  6288 cat >conftest.$ac_ext <<_ACEOF
  6289 /* confdefs.h.  */
  6290 _ACEOF
  6291 cat confdefs.h >>conftest.$ac_ext
  6292 cat >>conftest.$ac_ext <<_ACEOF
  6293 /* end confdefs.h.  */
  6294 #include <linux/cdrom.h>
  6295 _ACEOF
  6296 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6297 case "(($ac_try" in
  6298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6299   *) ac_try_echo=$ac_try;;
  6300 esac
  6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6303   ac_status=$?
  6304   grep -v '^ *+' conftest.er1 >conftest.err
  6305   rm -f conftest.er1
  6306   cat conftest.err >&5
  6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6308   (exit $ac_status); } >/dev/null && {
  6309 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6310 	 test ! -s conftest.err
  6311        }; then
  6312   ac_header_preproc=yes
  6313 else
  6314   echo "$as_me: failed program was:" >&5
  6315 sed 's/^/| /' conftest.$ac_ext >&5
  6317   ac_header_preproc=no
  6318 fi
  6320 rm -f conftest.err conftest.$ac_ext
  6321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6322 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6324 # So?  What about this header?
  6325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6326   yes:no: )
  6327     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6328 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6329     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
  6330 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
  6331     ac_header_preproc=yes
  6332     ;;
  6333   no:yes:* )
  6334     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
  6335 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
  6336     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
  6337 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
  6338     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
  6339 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
  6340     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
  6341 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6342     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
  6343 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
  6344     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
  6345 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
  6347     ;;
  6348 esac
  6349 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  6350 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  6351 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6352   echo $ECHO_N "(cached) $ECHO_C" >&6
  6353 else
  6354   ac_cv_header_linux_cdrom_h=$ac_header_preproc
  6355 fi
  6356 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  6357 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  6359 fi
  6360 if test $ac_cv_header_linux_cdrom_h = yes; then
  6361   HAVE_LINUX_CDROM_H=yes
  6362 else
  6364     echo "Linux CDROM support not found, building without it."
  6365 fi
  6370 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
  6371   CDROM_LINUX_TRUE=
  6372   CDROM_LINUX_FALSE='#'
  6373 else
  6374   CDROM_LINUX_TRUE='#'
  6375   CDROM_LINUX_FALSE=
  6376 fi
  6379 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6380   { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  6381 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
  6382 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6383   echo $ECHO_N "(cached) $ECHO_C" >&6
  6384 fi
  6385 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  6386 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
  6387 else
  6388   # Is the header compilable?
  6389 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
  6390 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
  6391 cat >conftest.$ac_ext <<_ACEOF
  6392 /* confdefs.h.  */
  6393 _ACEOF
  6394 cat confdefs.h >>conftest.$ac_ext
  6395 cat >>conftest.$ac_ext <<_ACEOF
  6396 /* end confdefs.h.  */
  6397 $ac_includes_default
  6398 #include <linux/joystick.h>
  6399 _ACEOF
  6400 rm -f conftest.$ac_objext
  6401 if { (ac_try="$ac_compile"
  6402 case "(($ac_try" in
  6403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6404   *) ac_try_echo=$ac_try;;
  6405 esac
  6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6407   (eval "$ac_compile") 2>conftest.er1
  6408   ac_status=$?
  6409   grep -v '^ *+' conftest.er1 >conftest.err
  6410   rm -f conftest.er1
  6411   cat conftest.err >&5
  6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6413   (exit $ac_status); } && {
  6414 	 test -z "$ac_c_werror_flag" ||
  6415 	 test ! -s conftest.err
  6416        } && test -s conftest.$ac_objext; then
  6417   ac_header_compiler=yes
  6418 else
  6419   echo "$as_me: failed program was:" >&5
  6420 sed 's/^/| /' conftest.$ac_ext >&5
  6422 	ac_header_compiler=no
  6423 fi
  6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6427 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6429 # Is the header present?
  6430 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
  6431 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
  6432 cat >conftest.$ac_ext <<_ACEOF
  6433 /* confdefs.h.  */
  6434 _ACEOF
  6435 cat confdefs.h >>conftest.$ac_ext
  6436 cat >>conftest.$ac_ext <<_ACEOF
  6437 /* end confdefs.h.  */
  6438 #include <linux/joystick.h>
  6439 _ACEOF
  6440 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6441 case "(($ac_try" in
  6442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6443   *) ac_try_echo=$ac_try;;
  6444 esac
  6445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6446   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6447   ac_status=$?
  6448   grep -v '^ *+' conftest.er1 >conftest.err
  6449   rm -f conftest.er1
  6450   cat conftest.err >&5
  6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6452   (exit $ac_status); } >/dev/null && {
  6453 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6454 	 test ! -s conftest.err
  6455        }; then
  6456   ac_header_preproc=yes
  6457 else
  6458   echo "$as_me: failed program was:" >&5
  6459 sed 's/^/| /' conftest.$ac_ext >&5
  6461   ac_header_preproc=no
  6462 fi
  6464 rm -f conftest.err conftest.$ac_ext
  6465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6466 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6468 # So?  What about this header?
  6469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6470   yes:no: )
  6471     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6472 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6473     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
  6474 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
  6475     ac_header_preproc=yes
  6476     ;;
  6477   no:yes:* )
  6478     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
  6479 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
  6480     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
  6481 echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
  6482     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
  6483 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
  6484     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
  6485 echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6486     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
  6487 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
  6488     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
  6489 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
  6491     ;;
  6492 esac
  6493 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  6494 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
  6495 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6496   echo $ECHO_N "(cached) $ECHO_C" >&6
  6497 else
  6498   ac_cv_header_linux_joystick_h=$ac_header_preproc
  6499 fi
  6500 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  6501 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
  6503 fi
  6504 if test $ac_cv_header_linux_joystick_h = yes; then
  6506     HAVE_LINUX_JOYSTICK_H=yes
  6508 cat >>confdefs.h <<\_ACEOF
  6509 #define HAVE_LINUX_JOYSTICK 1
  6510 _ACEOF
  6512 else
  6513    echo "Linux Joystick support not found, building without it."
  6514 fi
  6519 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
  6520   JOY_LINUX_TRUE=
  6521   JOY_LINUX_FALSE='#'
  6522 else
  6523   JOY_LINUX_TRUE='#'
  6524   JOY_LINUX_FALSE=
  6525 fi
  6528 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
  6529 set dummy sh-elf-gcc; ac_word=$2
  6530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6532 if test "${ac_cv_path_SHCC+set}" = set; then
  6533   echo $ECHO_N "(cached) $ECHO_C" >&6
  6534 else
  6535   case $SHCC in
  6536   [\\/]* | ?:[\\/]*)
  6537   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
  6538   ;;
  6539   *)
  6540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6541 for as_dir in $PATH
  6542 do
  6543   IFS=$as_save_IFS
  6544   test -z "$as_dir" && as_dir=.
  6545   for ac_exec_ext in '' $ac_executable_extensions; do
  6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6547     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
  6548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6549     break 2
  6550   fi
  6551 done
  6552 done
  6553 IFS=$as_save_IFS
  6555   ;;
  6556 esac
  6557 fi
  6558 SHCC=$ac_cv_path_SHCC
  6559 if test -n "$SHCC"; then
  6560   { echo "$as_me:$LINENO: result: $SHCC" >&5
  6561 echo "${ECHO_T}$SHCC" >&6; }
  6562 else
  6563   { echo "$as_me:$LINENO: result: no" >&5
  6564 echo "${ECHO_T}no" >&6; }
  6565 fi
  6568 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
  6569 set dummy sh-elf-ld; ac_word=$2
  6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6572 if test "${ac_cv_path_SHLD+set}" = set; then
  6573   echo $ECHO_N "(cached) $ECHO_C" >&6
  6574 else
  6575   case $SHLD in
  6576   [\\/]* | ?:[\\/]*)
  6577   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
  6578   ;;
  6579   *)
  6580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6581 for as_dir in $PATH
  6582 do
  6583   IFS=$as_save_IFS
  6584   test -z "$as_dir" && as_dir=.
  6585   for ac_exec_ext in '' $ac_executable_extensions; do
  6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6587     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
  6588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6589     break 2
  6590   fi
  6591 done
  6592 done
  6593 IFS=$as_save_IFS
  6595   ;;
  6596 esac
  6597 fi
  6598 SHLD=$ac_cv_path_SHLD
  6599 if test -n "$SHLD"; then
  6600   { echo "$as_me:$LINENO: result: $SHLD" >&5
  6601 echo "${ECHO_T}$SHLD" >&6; }
  6602 else
  6603   { echo "$as_me:$LINENO: result: no" >&5
  6604 echo "${ECHO_T}no" >&6; }
  6605 fi
  6608 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
  6609 set dummy sh-elf-objcopy; ac_word=$2
  6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6612 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
  6613   echo $ECHO_N "(cached) $ECHO_C" >&6
  6614 else
  6615   case $SHOBJCOPY in
  6616   [\\/]* | ?:[\\/]*)
  6617   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
  6618   ;;
  6619   *)
  6620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6621 for as_dir in $PATH
  6622 do
  6623   IFS=$as_save_IFS
  6624   test -z "$as_dir" && as_dir=.
  6625   for ac_exec_ext in '' $ac_executable_extensions; do
  6626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6627     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  6628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6629     break 2
  6630   fi
  6631 done
  6632 done
  6633 IFS=$as_save_IFS
  6635   ;;
  6636 esac
  6637 fi
  6638 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
  6639 if test -n "$SHOBJCOPY"; then
  6640   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
  6641 echo "${ECHO_T}$SHOBJCOPY" >&6; }
  6642 else
  6643   { echo "$as_me:$LINENO: result: no" >&5
  6644 echo "${ECHO_T}no" >&6; }
  6645 fi
  6648 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
  6649 set dummy arm-elf-gcc; ac_word=$2
  6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6652 if test "${ac_cv_path_ARMCC+set}" = set; then
  6653   echo $ECHO_N "(cached) $ECHO_C" >&6
  6654 else
  6655   case $ARMCC in
  6656   [\\/]* | ?:[\\/]*)
  6657   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
  6658   ;;
  6659   *)
  6660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6661 for as_dir in $PATH
  6662 do
  6663   IFS=$as_save_IFS
  6664   test -z "$as_dir" && as_dir=.
  6665   for ac_exec_ext in '' $ac_executable_extensions; do
  6666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6667     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
  6668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6669     break 2
  6670   fi
  6671 done
  6672 done
  6673 IFS=$as_save_IFS
  6675   ;;
  6676 esac
  6677 fi
  6678 ARMCC=$ac_cv_path_ARMCC
  6679 if test -n "$ARMCC"; then
  6680   { echo "$as_me:$LINENO: result: $ARMCC" >&5
  6681 echo "${ECHO_T}$ARMCC" >&6; }
  6682 else
  6683   { echo "$as_me:$LINENO: result: no" >&5
  6684 echo "${ECHO_T}no" >&6; }
  6685 fi
  6688 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
  6689 set dummy arm-elf-ld; ac_word=$2
  6690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6692 if test "${ac_cv_path_ARMLD+set}" = set; then
  6693   echo $ECHO_N "(cached) $ECHO_C" >&6
  6694 else
  6695   case $ARMLD in
  6696   [\\/]* | ?:[\\/]*)
  6697   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
  6698   ;;
  6699   *)
  6700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6701 for as_dir in $PATH
  6702 do
  6703   IFS=$as_save_IFS
  6704   test -z "$as_dir" && as_dir=.
  6705   for ac_exec_ext in '' $ac_executable_extensions; do
  6706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6707     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
  6708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6709     break 2
  6710   fi
  6711 done
  6712 done
  6713 IFS=$as_save_IFS
  6715   ;;
  6716 esac
  6717 fi
  6718 ARMLD=$ac_cv_path_ARMLD
  6719 if test -n "$ARMLD"; then
  6720   { echo "$as_me:$LINENO: result: $ARMLD" >&5
  6721 echo "${ECHO_T}$ARMLD" >&6; }
  6722 else
  6723   { echo "$as_me:$LINENO: result: no" >&5
  6724 echo "${ECHO_T}no" >&6; }
  6725 fi
  6728 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
  6729 set dummy arm-elf-objcopy; ac_word=$2
  6730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6732 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
  6733   echo $ECHO_N "(cached) $ECHO_C" >&6
  6734 else
  6735   case $ARMOBJCOPY in
  6736   [\\/]* | ?:[\\/]*)
  6737   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
  6738   ;;
  6739   *)
  6740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6741 for as_dir in $PATH
  6742 do
  6743   IFS=$as_save_IFS
  6744   test -z "$as_dir" && as_dir=.
  6745   for ac_exec_ext in '' $ac_executable_extensions; do
  6746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6747     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  6748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6749     break 2
  6750   fi
  6751 done
  6752 done
  6753 IFS=$as_save_IFS
  6755   ;;
  6756 esac
  6757 fi
  6758 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
  6759 if test -n "$ARMOBJCOPY"; then
  6760   { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
  6761 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
  6762 else
  6763   { echo "$as_me:$LINENO: result: no" >&5
  6764 echo "${ECHO_T}no" >&6; }
  6765 fi
  6769 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
  6770   BUILD_SH="no"
  6771   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
  6772 else
  6773   BUILD_SH="yes"
  6774 fi
  6775 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
  6776   BUILD_ARM="no"
  6777   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
  6778 else
  6779   BUILD_ARM="yes"
  6780 fi
  6783 if test "$BUILD_SH" = "yes"; then
  6784   BUILD_SYSTEST_TRUE=
  6785   BUILD_SYSTEST_FALSE='#'
  6786 else
  6787   BUILD_SYSTEST_TRUE='#'
  6788   BUILD_SYSTEST_FALSE=
  6789 fi
  6793 if test "$BUILD_ARM" = "yes"; then
  6794   BUILD_ARMTEST_TRUE=
  6795   BUILD_ARMTEST_FALSE='#'
  6796 else
  6797   BUILD_ARMTEST_TRUE='#'
  6798   BUILD_ARMTEST_FALSE=
  6799 fi
  6803 GETTEXT_PACKAGE=lxdream
  6806 cat >>confdefs.h <<_ACEOF
  6807 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  6808 _ACEOF
  6811 ALL_LINGUAS="de pt_BR"
  6814 for ac_header in locale.h
  6815 do
  6816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6818   { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6821   echo $ECHO_N "(cached) $ECHO_C" >&6
  6822 fi
  6823 ac_res=`eval echo '${'$as_ac_Header'}'`
  6824 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  6825 echo "${ECHO_T}$ac_res" >&6; }
  6826 else
  6827   # Is the header compilable?
  6828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6830 cat >conftest.$ac_ext <<_ACEOF
  6831 /* confdefs.h.  */
  6832 _ACEOF
  6833 cat confdefs.h >>conftest.$ac_ext
  6834 cat >>conftest.$ac_ext <<_ACEOF
  6835 /* end confdefs.h.  */
  6836 $ac_includes_default
  6837 #include <$ac_header>
  6838 _ACEOF
  6839 rm -f conftest.$ac_objext
  6840 if { (ac_try="$ac_compile"
  6841 case "(($ac_try" in
  6842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6843   *) ac_try_echo=$ac_try;;
  6844 esac
  6845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6846   (eval "$ac_compile") 2>conftest.er1
  6847   ac_status=$?
  6848   grep -v '^ *+' conftest.er1 >conftest.err
  6849   rm -f conftest.er1
  6850   cat conftest.err >&5
  6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6852   (exit $ac_status); } && {
  6853 	 test -z "$ac_c_werror_flag" ||
  6854 	 test ! -s conftest.err
  6855        } && test -s conftest.$ac_objext; then
  6856   ac_header_compiler=yes
  6857 else
  6858   echo "$as_me: failed program was:" >&5
  6859 sed 's/^/| /' conftest.$ac_ext >&5
  6861 	ac_header_compiler=no
  6862 fi
  6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6866 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6868 # Is the header present?
  6869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6871 cat >conftest.$ac_ext <<_ACEOF
  6872 /* confdefs.h.  */
  6873 _ACEOF
  6874 cat confdefs.h >>conftest.$ac_ext
  6875 cat >>conftest.$ac_ext <<_ACEOF
  6876 /* end confdefs.h.  */
  6877 #include <$ac_header>
  6878 _ACEOF
  6879 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6880 case "(($ac_try" in
  6881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6882   *) ac_try_echo=$ac_try;;
  6883 esac
  6884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6886   ac_status=$?
  6887   grep -v '^ *+' conftest.er1 >conftest.err
  6888   rm -f conftest.er1
  6889   cat conftest.err >&5
  6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6891   (exit $ac_status); } >/dev/null && {
  6892 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6893 	 test ! -s conftest.err
  6894        }; then
  6895   ac_header_preproc=yes
  6896 else
  6897   echo "$as_me: failed program was:" >&5
  6898 sed 's/^/| /' conftest.$ac_ext >&5
  6900   ac_header_preproc=no
  6901 fi
  6903 rm -f conftest.err conftest.$ac_ext
  6904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6905 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6907 # So?  What about this header?
  6908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6909   yes:no: )
  6910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6914     ac_header_preproc=yes
  6915     ;;
  6916   no:yes:* )
  6917     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6919     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  6920 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  6921     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6923     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  6924 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  6925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6927     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6930     ;;
  6931 esac
  6932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6935   echo $ECHO_N "(cached) $ECHO_C" >&6
  6936 else
  6937   eval "$as_ac_Header=\$ac_header_preproc"
  6938 fi
  6939 ac_res=`eval echo '${'$as_ac_Header'}'`
  6940 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  6941 echo "${ECHO_T}$ac_res" >&6; }
  6943 fi
  6944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6945   cat >>confdefs.h <<_ACEOF
  6946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6947 _ACEOF
  6949 fi
  6951 done
  6953     if test $ac_cv_header_locale_h = yes; then
  6954     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  6955 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  6956 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  6957   echo $ECHO_N "(cached) $ECHO_C" >&6
  6958 else
  6959   cat >conftest.$ac_ext <<_ACEOF
  6960 /* confdefs.h.  */
  6961 _ACEOF
  6962 cat confdefs.h >>conftest.$ac_ext
  6963 cat >>conftest.$ac_ext <<_ACEOF
  6964 /* end confdefs.h.  */
  6965 #include <locale.h>
  6966 int
  6967 main ()
  6969 return LC_MESSAGES
  6971   return 0;
  6973 _ACEOF
  6974 rm -f conftest.$ac_objext conftest$ac_exeext
  6975 if { (ac_try="$ac_link"
  6976 case "(($ac_try" in
  6977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6978   *) ac_try_echo=$ac_try;;
  6979 esac
  6980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6981   (eval "$ac_link") 2>conftest.er1
  6982   ac_status=$?
  6983   grep -v '^ *+' conftest.er1 >conftest.err
  6984   rm -f conftest.er1
  6985   cat conftest.err >&5
  6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6987   (exit $ac_status); } && {
  6988 	 test -z "$ac_c_werror_flag" ||
  6989 	 test ! -s conftest.err
  6990        } && test -s conftest$ac_exeext &&
  6991        $as_test_x conftest$ac_exeext; then
  6992   am_cv_val_LC_MESSAGES=yes
  6993 else
  6994   echo "$as_me: failed program was:" >&5
  6995 sed 's/^/| /' conftest.$ac_ext >&5
  6997 	am_cv_val_LC_MESSAGES=no
  6998 fi
  7000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7001       conftest$ac_exeext conftest.$ac_ext
  7002 fi
  7003 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  7004 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  7005     if test $am_cv_val_LC_MESSAGES = yes; then
  7007 cat >>confdefs.h <<\_ACEOF
  7008 #define HAVE_LC_MESSAGES 1
  7009 _ACEOF
  7011     fi
  7012   fi
  7013          USE_NLS=yes
  7016     gt_cv_have_gettext=no
  7018     CATOBJEXT=NONE
  7019     XGETTEXT=:
  7020     INTLLIBS=
  7022     if test "${ac_cv_header_libintl_h+set}" = set; then
  7023   { echo "$as_me:$LINENO: checking for libintl.h" >&5
  7024 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
  7025 if test "${ac_cv_header_libintl_h+set}" = set; then
  7026   echo $ECHO_N "(cached) $ECHO_C" >&6
  7027 fi
  7028 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  7029 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
  7030 else
  7031   # Is the header compilable?
  7032 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
  7033 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
  7034 cat >conftest.$ac_ext <<_ACEOF
  7035 /* confdefs.h.  */
  7036 _ACEOF
  7037 cat confdefs.h >>conftest.$ac_ext
  7038 cat >>conftest.$ac_ext <<_ACEOF
  7039 /* end confdefs.h.  */
  7040 $ac_includes_default
  7041 #include <libintl.h>
  7042 _ACEOF
  7043 rm -f conftest.$ac_objext
  7044 if { (ac_try="$ac_compile"
  7045 case "(($ac_try" in
  7046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7047   *) ac_try_echo=$ac_try;;
  7048 esac
  7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7050   (eval "$ac_compile") 2>conftest.er1
  7051   ac_status=$?
  7052   grep -v '^ *+' conftest.er1 >conftest.err
  7053   rm -f conftest.er1
  7054   cat conftest.err >&5
  7055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7056   (exit $ac_status); } && {
  7057 	 test -z "$ac_c_werror_flag" ||
  7058 	 test ! -s conftest.err
  7059        } && test -s conftest.$ac_objext; then
  7060   ac_header_compiler=yes
  7061 else
  7062   echo "$as_me: failed program was:" >&5
  7063 sed 's/^/| /' conftest.$ac_ext >&5
  7065 	ac_header_compiler=no
  7066 fi
  7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7070 echo "${ECHO_T}$ac_header_compiler" >&6; }
  7072 # Is the header present?
  7073 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
  7074 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
  7075 cat >conftest.$ac_ext <<_ACEOF
  7076 /* confdefs.h.  */
  7077 _ACEOF
  7078 cat confdefs.h >>conftest.$ac_ext
  7079 cat >>conftest.$ac_ext <<_ACEOF
  7080 /* end confdefs.h.  */
  7081 #include <libintl.h>
  7082 _ACEOF
  7083 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7084 case "(($ac_try" in
  7085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7086   *) ac_try_echo=$ac_try;;
  7087 esac
  7088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7089   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7090   ac_status=$?
  7091   grep -v '^ *+' conftest.er1 >conftest.err
  7092   rm -f conftest.er1
  7093   cat conftest.err >&5
  7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7095   (exit $ac_status); } >/dev/null && {
  7096 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7097 	 test ! -s conftest.err
  7098        }; then
  7099   ac_header_preproc=yes
  7100 else
  7101   echo "$as_me: failed program was:" >&5
  7102 sed 's/^/| /' conftest.$ac_ext >&5
  7104   ac_header_preproc=no
  7105 fi
  7107 rm -f conftest.err conftest.$ac_ext
  7108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7109 echo "${ECHO_T}$ac_header_preproc" >&6; }
  7111 # So?  What about this header?
  7112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7113   yes:no: )
  7114     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7115 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7116     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
  7117 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
  7118     ac_header_preproc=yes
  7119     ;;
  7120   no:yes:* )
  7121     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
  7122 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
  7123     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
  7124 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
  7125     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
  7126 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
  7127     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
  7128 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7129     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
  7130 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
  7131     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
  7132 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
  7134     ;;
  7135 esac
  7136 { echo "$as_me:$LINENO: checking for libintl.h" >&5
  7137 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
  7138 if test "${ac_cv_header_libintl_h+set}" = set; then
  7139   echo $ECHO_N "(cached) $ECHO_C" >&6
  7140 else
  7141   ac_cv_header_libintl_h=$ac_header_preproc
  7142 fi
  7143 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  7144 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
  7146 fi
  7147 if test $ac_cv_header_libintl_h = yes; then
  7148   gt_cv_func_dgettext_libintl="no"
  7149       libintl_extra_libs=""
  7152       # First check in libc
  7154       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
  7155 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
  7156 if test "${gt_cv_func_ngettext_libc+set}" = set; then
  7157   echo $ECHO_N "(cached) $ECHO_C" >&6
  7158 else
  7159   cat >conftest.$ac_ext <<_ACEOF
  7160 /* confdefs.h.  */
  7161 _ACEOF
  7162 cat confdefs.h >>conftest.$ac_ext
  7163 cat >>conftest.$ac_ext <<_ACEOF
  7164 /* end confdefs.h.  */
  7166 #include <libintl.h>
  7168 int
  7169 main ()
  7171 return !ngettext ("","", 1)
  7173   return 0;
  7175 _ACEOF
  7176 rm -f conftest.$ac_objext conftest$ac_exeext
  7177 if { (ac_try="$ac_link"
  7178 case "(($ac_try" in
  7179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7180   *) ac_try_echo=$ac_try;;
  7181 esac
  7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7183   (eval "$ac_link") 2>conftest.er1
  7184   ac_status=$?
  7185   grep -v '^ *+' conftest.er1 >conftest.err
  7186   rm -f conftest.er1
  7187   cat conftest.err >&5
  7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7189   (exit $ac_status); } && {
  7190 	 test -z "$ac_c_werror_flag" ||
  7191 	 test ! -s conftest.err
  7192        } && test -s conftest$ac_exeext &&
  7193        $as_test_x conftest$ac_exeext; then
  7194   gt_cv_func_ngettext_libc=yes
  7195 else
  7196   echo "$as_me: failed program was:" >&5
  7197 sed 's/^/| /' conftest.$ac_ext >&5
  7199 	gt_cv_func_ngettext_libc=no
  7200 fi
  7202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7203       conftest$ac_exeext conftest.$ac_ext
  7205 fi
  7206 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
  7207 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
  7209       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  7210 	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
  7211 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
  7212 if test "${gt_cv_func_dgettext_libc+set}" = set; then
  7213   echo $ECHO_N "(cached) $ECHO_C" >&6
  7214 else
  7215   cat >conftest.$ac_ext <<_ACEOF
  7216 /* confdefs.h.  */
  7217 _ACEOF
  7218 cat confdefs.h >>conftest.$ac_ext
  7219 cat >>conftest.$ac_ext <<_ACEOF
  7220 /* end confdefs.h.  */
  7222 #include <libintl.h>
  7224 int
  7225 main ()
  7227 return !dgettext ("","")
  7229   return 0;
  7231 _ACEOF
  7232 rm -f conftest.$ac_objext conftest$ac_exeext
  7233 if { (ac_try="$ac_link"
  7234 case "(($ac_try" in
  7235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7236   *) ac_try_echo=$ac_try;;
  7237 esac
  7238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7239   (eval "$ac_link") 2>conftest.er1
  7240   ac_status=$?
  7241   grep -v '^ *+' conftest.er1 >conftest.err
  7242   rm -f conftest.er1
  7243   cat conftest.err >&5
  7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7245   (exit $ac_status); } && {
  7246 	 test -z "$ac_c_werror_flag" ||
  7247 	 test ! -s conftest.err
  7248        } && test -s conftest$ac_exeext &&
  7249        $as_test_x conftest$ac_exeext; then
  7250   gt_cv_func_dgettext_libc=yes
  7251 else
  7252   echo "$as_me: failed program was:" >&5
  7253 sed 's/^/| /' conftest.$ac_ext >&5
  7255 	gt_cv_func_dgettext_libc=no
  7256 fi
  7258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7259       conftest$ac_exeext conftest.$ac_ext
  7261 fi
  7262 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
  7263 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
  7264       fi
  7266       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  7268 for ac_func in bind_textdomain_codeset
  7269 do
  7270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7274   echo $ECHO_N "(cached) $ECHO_C" >&6
  7275 else
  7276   cat >conftest.$ac_ext <<_ACEOF
  7277 /* confdefs.h.  */
  7278 _ACEOF
  7279 cat confdefs.h >>conftest.$ac_ext
  7280 cat >>conftest.$ac_ext <<_ACEOF
  7281 /* end confdefs.h.  */
  7282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7284 #define $ac_func innocuous_$ac_func
  7286 /* System header to define __stub macros and hopefully few prototypes,
  7287     which can conflict with char $ac_func (); below.
  7288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7289     <limits.h> exists even on freestanding compilers.  */
  7291 #ifdef __STDC__
  7292 # include <limits.h>
  7293 #else
  7294 # include <assert.h>
  7295 #endif
  7297 #undef $ac_func
  7299 /* Override any GCC internal prototype to avoid an error.
  7300    Use char because int might match the return type of a GCC
  7301    builtin and then its argument prototype would still apply.  */
  7302 #ifdef __cplusplus
  7303 extern "C"
  7304 #endif
  7305 char $ac_func ();
  7306 /* The GNU C library defines this for functions which it implements
  7307     to always fail with ENOSYS.  Some functions are actually named
  7308     something starting with __ and the normal name is an alias.  */
  7309 #if defined __stub_$ac_func || defined __stub___$ac_func
  7310 choke me
  7311 #endif
  7313 int
  7314 main ()
  7316 return $ac_func ();
  7318   return 0;
  7320 _ACEOF
  7321 rm -f conftest.$ac_objext conftest$ac_exeext
  7322 if { (ac_try="$ac_link"
  7323 case "(($ac_try" in
  7324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7325   *) ac_try_echo=$ac_try;;
  7326 esac
  7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7328   (eval "$ac_link") 2>conftest.er1
  7329   ac_status=$?
  7330   grep -v '^ *+' conftest.er1 >conftest.err
  7331   rm -f conftest.er1
  7332   cat conftest.err >&5
  7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7334   (exit $ac_status); } && {
  7335 	 test -z "$ac_c_werror_flag" ||
  7336 	 test ! -s conftest.err
  7337        } && test -s conftest$ac_exeext &&
  7338        $as_test_x conftest$ac_exeext; then
  7339   eval "$as_ac_var=yes"
  7340 else
  7341   echo "$as_me: failed program was:" >&5
  7342 sed 's/^/| /' conftest.$ac_ext >&5
  7344 	eval "$as_ac_var=no"
  7345 fi
  7347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7348       conftest$ac_exeext conftest.$ac_ext
  7349 fi
  7350 ac_res=`eval echo '${'$as_ac_var'}'`
  7351 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  7352 echo "${ECHO_T}$ac_res" >&6; }
  7353 if test `eval echo '${'$as_ac_var'}'` = yes; then
  7354   cat >>confdefs.h <<_ACEOF
  7355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7356 _ACEOF
  7358 fi
  7359 done
  7361       fi
  7364       # If we don't have everything we want, check in libintl
  7366       if test "$gt_cv_func_dgettext_libc" != "yes" \
  7367 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
  7368          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  7370         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
  7371 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
  7372 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
  7373   echo $ECHO_N "(cached) $ECHO_C" >&6
  7374 else
  7375   ac_check_lib_save_LIBS=$LIBS
  7376 LIBS="-lintl  $LIBS"
  7377 cat >conftest.$ac_ext <<_ACEOF
  7378 /* confdefs.h.  */
  7379 _ACEOF
  7380 cat confdefs.h >>conftest.$ac_ext
  7381 cat >>conftest.$ac_ext <<_ACEOF
  7382 /* end confdefs.h.  */
  7384 /* Override any GCC internal prototype to avoid an error.
  7385    Use char because int might match the return type of a GCC
  7386    builtin and then its argument prototype would still apply.  */
  7387 #ifdef __cplusplus
  7388 extern "C"
  7389 #endif
  7390 char bindtextdomain ();
  7391 int
  7392 main ()
  7394 return bindtextdomain ();
  7396   return 0;
  7398 _ACEOF
  7399 rm -f conftest.$ac_objext conftest$ac_exeext
  7400 if { (ac_try="$ac_link"
  7401 case "(($ac_try" in
  7402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7403   *) ac_try_echo=$ac_try;;
  7404 esac
  7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7406   (eval "$ac_link") 2>conftest.er1
  7407   ac_status=$?
  7408   grep -v '^ *+' conftest.er1 >conftest.err
  7409   rm -f conftest.er1
  7410   cat conftest.err >&5
  7411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7412   (exit $ac_status); } && {
  7413 	 test -z "$ac_c_werror_flag" ||
  7414 	 test ! -s conftest.err
  7415        } && test -s conftest$ac_exeext &&
  7416        $as_test_x conftest$ac_exeext; then
  7417   ac_cv_lib_intl_bindtextdomain=yes
  7418 else
  7419   echo "$as_me: failed program was:" >&5
  7420 sed 's/^/| /' conftest.$ac_ext >&5
  7422 	ac_cv_lib_intl_bindtextdomain=no
  7423 fi
  7425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7426       conftest$ac_exeext conftest.$ac_ext
  7427 LIBS=$ac_check_lib_save_LIBS
  7428 fi
  7429 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
  7430 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
  7431 if test $ac_cv_lib_intl_bindtextdomain = yes; then
  7432   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  7433 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
  7434 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  7435   echo $ECHO_N "(cached) $ECHO_C" >&6
  7436 else
  7437   ac_check_lib_save_LIBS=$LIBS
  7438 LIBS="-lintl  $LIBS"
  7439 cat >conftest.$ac_ext <<_ACEOF
  7440 /* confdefs.h.  */
  7441 _ACEOF
  7442 cat confdefs.h >>conftest.$ac_ext
  7443 cat >>conftest.$ac_ext <<_ACEOF
  7444 /* end confdefs.h.  */
  7446 /* Override any GCC internal prototype to avoid an error.
  7447    Use char because int might match the return type of a GCC
  7448    builtin and then its argument prototype would still apply.  */
  7449 #ifdef __cplusplus
  7450 extern "C"
  7451 #endif
  7452 char ngettext ();
  7453 int
  7454 main ()
  7456 return ngettext ();
  7458   return 0;
  7460 _ACEOF
  7461 rm -f conftest.$ac_objext conftest$ac_exeext
  7462 if { (ac_try="$ac_link"
  7463 case "(($ac_try" in
  7464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7465   *) ac_try_echo=$ac_try;;
  7466 esac
  7467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7468   (eval "$ac_link") 2>conftest.er1
  7469   ac_status=$?
  7470   grep -v '^ *+' conftest.er1 >conftest.err
  7471   rm -f conftest.er1
  7472   cat conftest.err >&5
  7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7474   (exit $ac_status); } && {
  7475 	 test -z "$ac_c_werror_flag" ||
  7476 	 test ! -s conftest.err
  7477        } && test -s conftest$ac_exeext &&
  7478        $as_test_x conftest$ac_exeext; then
  7479   ac_cv_lib_intl_ngettext=yes
  7480 else
  7481   echo "$as_me: failed program was:" >&5
  7482 sed 's/^/| /' conftest.$ac_ext >&5
  7484 	ac_cv_lib_intl_ngettext=no
  7485 fi
  7487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7488       conftest$ac_exeext conftest.$ac_ext
  7489 LIBS=$ac_check_lib_save_LIBS
  7490 fi
  7491 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  7492 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
  7493 if test $ac_cv_lib_intl_ngettext = yes; then
  7494   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
  7495 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
  7496 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
  7497   echo $ECHO_N "(cached) $ECHO_C" >&6
  7498 else
  7499   ac_check_lib_save_LIBS=$LIBS
  7500 LIBS="-lintl  $LIBS"
  7501 cat >conftest.$ac_ext <<_ACEOF
  7502 /* confdefs.h.  */
  7503 _ACEOF
  7504 cat confdefs.h >>conftest.$ac_ext
  7505 cat >>conftest.$ac_ext <<_ACEOF
  7506 /* end confdefs.h.  */
  7508 /* Override any GCC internal prototype to avoid an error.
  7509    Use char because int might match the return type of a GCC
  7510    builtin and then its argument prototype would still apply.  */
  7511 #ifdef __cplusplus
  7512 extern "C"
  7513 #endif
  7514 char dgettext ();
  7515 int
  7516 main ()
  7518 return dgettext ();
  7520   return 0;
  7522 _ACEOF
  7523 rm -f conftest.$ac_objext conftest$ac_exeext
  7524 if { (ac_try="$ac_link"
  7525 case "(($ac_try" in
  7526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7527   *) ac_try_echo=$ac_try;;
  7528 esac
  7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7530   (eval "$ac_link") 2>conftest.er1
  7531   ac_status=$?
  7532   grep -v '^ *+' conftest.er1 >conftest.err
  7533   rm -f conftest.er1
  7534   cat conftest.err >&5
  7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7536   (exit $ac_status); } && {
  7537 	 test -z "$ac_c_werror_flag" ||
  7538 	 test ! -s conftest.err
  7539        } && test -s conftest$ac_exeext &&
  7540        $as_test_x conftest$ac_exeext; then
  7541   ac_cv_lib_intl_dgettext=yes
  7542 else
  7543   echo "$as_me: failed program was:" >&5
  7544 sed 's/^/| /' conftest.$ac_ext >&5
  7546 	ac_cv_lib_intl_dgettext=no
  7547 fi
  7549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7550       conftest$ac_exeext conftest.$ac_ext
  7551 LIBS=$ac_check_lib_save_LIBS
  7552 fi
  7553 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
  7554 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
  7555 if test $ac_cv_lib_intl_dgettext = yes; then
  7556   gt_cv_func_dgettext_libintl=yes
  7557 fi
  7559 fi
  7561 fi
  7564 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  7565 	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
  7566 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
  7567 	  { echo "$as_me:$LINENO: result: " >&5
  7568 echo "${ECHO_T}" >&6; }
  7569   	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  7570 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
  7571 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  7572   echo $ECHO_N "(cached) $ECHO_C" >&6
  7573 else
  7574   ac_check_lib_save_LIBS=$LIBS
  7575 LIBS="-lintl -liconv $LIBS"
  7576 cat >conftest.$ac_ext <<_ACEOF
  7577 /* confdefs.h.  */
  7578 _ACEOF
  7579 cat confdefs.h >>conftest.$ac_ext
  7580 cat >>conftest.$ac_ext <<_ACEOF
  7581 /* end confdefs.h.  */
  7583 /* Override any GCC internal prototype to avoid an error.
  7584    Use char because int might match the return type of a GCC
  7585    builtin and then its argument prototype would still apply.  */
  7586 #ifdef __cplusplus
  7587 extern "C"
  7588 #endif
  7589 char ngettext ();
  7590 int
  7591 main ()
  7593 return ngettext ();
  7595   return 0;
  7597 _ACEOF
  7598 rm -f conftest.$ac_objext conftest$ac_exeext
  7599 if { (ac_try="$ac_link"
  7600 case "(($ac_try" in
  7601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7602   *) ac_try_echo=$ac_try;;
  7603 esac
  7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7605   (eval "$ac_link") 2>conftest.er1
  7606   ac_status=$?
  7607   grep -v '^ *+' conftest.er1 >conftest.err
  7608   rm -f conftest.er1
  7609   cat conftest.err >&5
  7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7611   (exit $ac_status); } && {
  7612 	 test -z "$ac_c_werror_flag" ||
  7613 	 test ! -s conftest.err
  7614        } && test -s conftest$ac_exeext &&
  7615        $as_test_x conftest$ac_exeext; then
  7616   ac_cv_lib_intl_ngettext=yes
  7617 else
  7618   echo "$as_me: failed program was:" >&5
  7619 sed 's/^/| /' conftest.$ac_ext >&5
  7621 	ac_cv_lib_intl_ngettext=no
  7622 fi
  7624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7625       conftest$ac_exeext conftest.$ac_ext
  7626 LIBS=$ac_check_lib_save_LIBS
  7627 fi
  7628 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  7629 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
  7630 if test $ac_cv_lib_intl_ngettext = yes; then
  7631   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
  7632 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
  7633 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
  7634   echo $ECHO_N "(cached) $ECHO_C" >&6
  7635 else
  7636   ac_check_lib_save_LIBS=$LIBS
  7637 LIBS="-lintl -liconv $LIBS"
  7638 cat >conftest.$ac_ext <<_ACEOF
  7639 /* confdefs.h.  */
  7640 _ACEOF
  7641 cat confdefs.h >>conftest.$ac_ext
  7642 cat >>conftest.$ac_ext <<_ACEOF
  7643 /* end confdefs.h.  */
  7645 /* Override any GCC internal prototype to avoid an error.
  7646    Use char because int might match the return type of a GCC
  7647    builtin and then its argument prototype would still apply.  */
  7648 #ifdef __cplusplus
  7649 extern "C"
  7650 #endif
  7651 char dcgettext ();
  7652 int
  7653 main ()
  7655 return dcgettext ();
  7657   return 0;
  7659 _ACEOF
  7660 rm -f conftest.$ac_objext conftest$ac_exeext
  7661 if { (ac_try="$ac_link"
  7662 case "(($ac_try" in
  7663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7664   *) ac_try_echo=$ac_try;;
  7665 esac
  7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7667   (eval "$ac_link") 2>conftest.er1
  7668   ac_status=$?
  7669   grep -v '^ *+' conftest.er1 >conftest.err
  7670   rm -f conftest.er1
  7671   cat conftest.err >&5
  7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7673   (exit $ac_status); } && {
  7674 	 test -z "$ac_c_werror_flag" ||
  7675 	 test ! -s conftest.err
  7676        } && test -s conftest$ac_exeext &&
  7677        $as_test_x conftest$ac_exeext; then
  7678   ac_cv_lib_intl_dcgettext=yes
  7679 else
  7680   echo "$as_me: failed program was:" >&5
  7681 sed 's/^/| /' conftest.$ac_ext >&5
  7683 	ac_cv_lib_intl_dcgettext=no
  7684 fi
  7686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7687       conftest$ac_exeext conftest.$ac_ext
  7688 LIBS=$ac_check_lib_save_LIBS
  7689 fi
  7690 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
  7691 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
  7692 if test $ac_cv_lib_intl_dcgettext = yes; then
  7693   gt_cv_func_dgettext_libintl=yes
  7694 			libintl_extra_libs=-liconv
  7695 else
  7697 fi
  7699 else
  7701 fi
  7703         fi
  7706         # If we found libintl, then check in it for bind_textdomain_codeset();
  7707         # we'll prefer libc if neither have bind_textdomain_codeset(),
  7708         # and both have dgettext and ngettext
  7710         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  7711           glib_save_LIBS="$LIBS"
  7712           LIBS="$LIBS -lintl $libintl_extra_libs"
  7713           unset ac_cv_func_bind_textdomain_codeset
  7715 for ac_func in bind_textdomain_codeset
  7716 do
  7717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7721   echo $ECHO_N "(cached) $ECHO_C" >&6
  7722 else
  7723   cat >conftest.$ac_ext <<_ACEOF
  7724 /* confdefs.h.  */
  7725 _ACEOF
  7726 cat confdefs.h >>conftest.$ac_ext
  7727 cat >>conftest.$ac_ext <<_ACEOF
  7728 /* end confdefs.h.  */
  7729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7731 #define $ac_func innocuous_$ac_func
  7733 /* System header to define __stub macros and hopefully few prototypes,
  7734     which can conflict with char $ac_func (); below.
  7735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7736     <limits.h> exists even on freestanding compilers.  */
  7738 #ifdef __STDC__
  7739 # include <limits.h>
  7740 #else
  7741 # include <assert.h>
  7742 #endif
  7744 #undef $ac_func
  7746 /* Override any GCC internal prototype to avoid an error.
  7747    Use char because int might match the return type of a GCC
  7748    builtin and then its argument prototype would still apply.  */
  7749 #ifdef __cplusplus
  7750 extern "C"
  7751 #endif
  7752 char $ac_func ();
  7753 /* The GNU C library defines this for functions which it implements
  7754     to always fail with ENOSYS.  Some functions are actually named
  7755     something starting with __ and the normal name is an alias.  */
  7756 #if defined __stub_$ac_func || defined __stub___$ac_func
  7757 choke me
  7758 #endif
  7760 int
  7761 main ()
  7763 return $ac_func ();
  7765   return 0;
  7767 _ACEOF
  7768 rm -f conftest.$ac_objext conftest$ac_exeext
  7769 if { (ac_try="$ac_link"
  7770 case "(($ac_try" in
  7771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7772   *) ac_try_echo=$ac_try;;
  7773 esac
  7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7775   (eval "$ac_link") 2>conftest.er1
  7776   ac_status=$?
  7777   grep -v '^ *+' conftest.er1 >conftest.err
  7778   rm -f conftest.er1
  7779   cat conftest.err >&5
  7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7781   (exit $ac_status); } && {
  7782 	 test -z "$ac_c_werror_flag" ||
  7783 	 test ! -s conftest.err
  7784        } && test -s conftest$ac_exeext &&
  7785        $as_test_x conftest$ac_exeext; then
  7786   eval "$as_ac_var=yes"
  7787 else
  7788   echo "$as_me: failed program was:" >&5
  7789 sed 's/^/| /' conftest.$ac_ext >&5
  7791 	eval "$as_ac_var=no"
  7792 fi
  7794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7795       conftest$ac_exeext conftest.$ac_ext
  7796 fi
  7797 ac_res=`eval echo '${'$as_ac_var'}'`
  7798 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  7799 echo "${ECHO_T}$ac_res" >&6; }
  7800 if test `eval echo '${'$as_ac_var'}'` = yes; then
  7801   cat >>confdefs.h <<_ACEOF
  7802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7803 _ACEOF
  7805 fi
  7806 done
  7808           LIBS="$glib_save_LIBS"
  7810           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
  7811             gt_cv_func_dgettext_libc=no
  7812           else
  7813             if test "$gt_cv_func_dgettext_libc" = "yes" \
  7814 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
  7815               gt_cv_func_dgettext_libintl=no
  7816             fi
  7817           fi
  7818         fi
  7819       fi
  7821       if test "$gt_cv_func_dgettext_libc" = "yes" \
  7822 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
  7823         gt_cv_have_gettext=yes
  7824       fi
  7826       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
  7827         INTLLIBS="-lintl $libintl_extra_libs"
  7828       fi
  7830       if test "$gt_cv_have_gettext" = "yes"; then
  7832 cat >>confdefs.h <<\_ACEOF
  7833 #define HAVE_GETTEXT 1
  7834 _ACEOF
  7836 	# Extract the first word of "msgfmt", so it can be a program name with args.
  7837 set dummy msgfmt; ac_word=$2
  7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7840 if test "${ac_cv_path_MSGFMT+set}" = set; then
  7841   echo $ECHO_N "(cached) $ECHO_C" >&6
  7842 else
  7843   case "$MSGFMT" in
  7844   /*)
  7845   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7846   ;;
  7847   *)
  7848   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  7849   for ac_dir in $PATH; do
  7850     test -z "$ac_dir" && ac_dir=.
  7851     if test -f $ac_dir/$ac_word; then
  7852       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  7853 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  7854 	break
  7855       fi
  7856     fi
  7857   done
  7858   IFS="$ac_save_ifs"
  7859   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  7860   ;;
  7861 esac
  7862 fi
  7863 MSGFMT="$ac_cv_path_MSGFMT"
  7864 if test "$MSGFMT" != "no"; then
  7865   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  7866 echo "${ECHO_T}$MSGFMT" >&6; }
  7867 else
  7868   { echo "$as_me:$LINENO: result: no" >&5
  7869 echo "${ECHO_T}no" >&6; }
  7870 fi
  7871 	if test "$MSGFMT" != "no"; then
  7872           glib_save_LIBS="$LIBS"
  7873           LIBS="$LIBS $INTLLIBS"
  7875 for ac_func in dcgettext
  7876 do
  7877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7881   echo $ECHO_N "(cached) $ECHO_C" >&6
  7882 else
  7883   cat >conftest.$ac_ext <<_ACEOF
  7884 /* confdefs.h.  */
  7885 _ACEOF
  7886 cat confdefs.h >>conftest.$ac_ext
  7887 cat >>conftest.$ac_ext <<_ACEOF
  7888 /* end confdefs.h.  */
  7889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7891 #define $ac_func innocuous_$ac_func
  7893 /* System header to define __stub macros and hopefully few prototypes,
  7894     which can conflict with char $ac_func (); below.
  7895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7896     <limits.h> exists even on freestanding compilers.  */
  7898 #ifdef __STDC__
  7899 # include <limits.h>
  7900 #else
  7901 # include <assert.h>
  7902 #endif
  7904 #undef $ac_func
  7906 /* Override any GCC internal prototype to avoid an error.
  7907    Use char because int might match the return type of a GCC
  7908    builtin and then its argument prototype would still apply.  */
  7909 #ifdef __cplusplus
  7910 extern "C"
  7911 #endif
  7912 char $ac_func ();
  7913 /* The GNU C library defines this for functions which it implements
  7914     to always fail with ENOSYS.  Some functions are actually named
  7915     something starting with __ and the normal name is an alias.  */
  7916 #if defined __stub_$ac_func || defined __stub___$ac_func
  7917 choke me
  7918 #endif
  7920 int
  7921 main ()
  7923 return $ac_func ();
  7925   return 0;
  7927 _ACEOF
  7928 rm -f conftest.$ac_objext conftest$ac_exeext
  7929 if { (ac_try="$ac_link"
  7930 case "(($ac_try" in
  7931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7932   *) ac_try_echo=$ac_try;;
  7933 esac
  7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7935   (eval "$ac_link") 2>conftest.er1
  7936   ac_status=$?
  7937   grep -v '^ *+' conftest.er1 >conftest.err
  7938   rm -f conftest.er1
  7939   cat conftest.err >&5
  7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7941   (exit $ac_status); } && {
  7942 	 test -z "$ac_c_werror_flag" ||
  7943 	 test ! -s conftest.err
  7944        } && test -s conftest$ac_exeext &&
  7945        $as_test_x conftest$ac_exeext; then
  7946   eval "$as_ac_var=yes"
  7947 else
  7948   echo "$as_me: failed program was:" >&5
  7949 sed 's/^/| /' conftest.$ac_ext >&5
  7951 	eval "$as_ac_var=no"
  7952 fi
  7954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7955       conftest$ac_exeext conftest.$ac_ext
  7956 fi
  7957 ac_res=`eval echo '${'$as_ac_var'}'`
  7958 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  7959 echo "${ECHO_T}$ac_res" >&6; }
  7960 if test `eval echo '${'$as_ac_var'}'` = yes; then
  7961   cat >>confdefs.h <<_ACEOF
  7962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7963 _ACEOF
  7965 fi
  7966 done
  7968 	  MSGFMT_OPTS=
  7969 	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
  7970 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
  7971 	  cat >conftest.foo <<_ACEOF
  7973 msgid ""
  7974 msgstr ""
  7975 "Content-Type: text/plain; charset=UTF-8\n"
  7976 "Project-Id-Version: test 1.0\n"
  7977 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
  7978 "Last-Translator: test <foo@bar.xx>\n"
  7979 "Language-Team: C <LL@li.org>\n"
  7980 "MIME-Version: 1.0\n"
  7981 "Content-Transfer-Encoding: 8bit\n"
  7983 _ACEOF
  7984 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
  7985   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
  7986   ac_status=$?
  7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7988   (exit $ac_status); }; then
  7989   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
  7990 echo "${ECHO_T}yes" >&6; }
  7991 else { echo "$as_me:$LINENO: result: no" >&5
  7992 echo "${ECHO_T}no" >&6; }
  7993 echo "$as_me: failed input was:" >&5
  7994 sed 's/^/| /' conftest.foo >&5
  7995 fi
  7997 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7998 set dummy gmsgfmt; ac_word=$2
  7999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8001 if test "${ac_cv_path_GMSGFMT+set}" = set; then
  8002   echo $ECHO_N "(cached) $ECHO_C" >&6
  8003 else
  8004   case $GMSGFMT in
  8005   [\\/]* | ?:[\\/]*)
  8006   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8007   ;;
  8008   *)
  8009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8010 for as_dir in $PATH
  8011 do
  8012   IFS=$as_save_IFS
  8013   test -z "$as_dir" && as_dir=.
  8014   for ac_exec_ext in '' $ac_executable_extensions; do
  8015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8016     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8018     break 2
  8019   fi
  8020 done
  8021 done
  8022 IFS=$as_save_IFS
  8024   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8025   ;;
  8026 esac
  8027 fi
  8028 GMSGFMT=$ac_cv_path_GMSGFMT
  8029 if test -n "$GMSGFMT"; then
  8030   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  8031 echo "${ECHO_T}$GMSGFMT" >&6; }
  8032 else
  8033   { echo "$as_me:$LINENO: result: no" >&5
  8034 echo "${ECHO_T}no" >&6; }
  8035 fi
  8038 	  # Extract the first word of "xgettext", so it can be a program name with args.
  8039 set dummy xgettext; ac_word=$2
  8040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8042 if test "${ac_cv_path_XGETTEXT+set}" = set; then
  8043   echo $ECHO_N "(cached) $ECHO_C" >&6
  8044 else
  8045   case "$XGETTEXT" in
  8046   /*)
  8047   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8048   ;;
  8049   *)
  8050   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  8051   for ac_dir in $PATH; do
  8052     test -z "$ac_dir" && ac_dir=.
  8053     if test -f $ac_dir/$ac_word; then
  8054       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  8055 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  8056 	break
  8057       fi
  8058     fi
  8059   done
  8060   IFS="$ac_save_ifs"
  8061   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8062   ;;
  8063 esac
  8064 fi
  8065 XGETTEXT="$ac_cv_path_XGETTEXT"
  8066 if test "$XGETTEXT" != ":"; then
  8067   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  8068 echo "${ECHO_T}$XGETTEXT" >&6; }
  8069 else
  8070   { echo "$as_me:$LINENO: result: no" >&5
  8071 echo "${ECHO_T}no" >&6; }
  8072 fi
  8074 	  cat >conftest.$ac_ext <<_ACEOF
  8075 /* confdefs.h.  */
  8076 _ACEOF
  8077 cat confdefs.h >>conftest.$ac_ext
  8078 cat >>conftest.$ac_ext <<_ACEOF
  8079 /* end confdefs.h.  */
  8081 int
  8082 main ()
  8084 extern int _nl_msg_cat_cntr;
  8085 			 return _nl_msg_cat_cntr
  8087   return 0;
  8089 _ACEOF
  8090 rm -f conftest.$ac_objext conftest$ac_exeext
  8091 if { (ac_try="$ac_link"
  8092 case "(($ac_try" in
  8093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8094   *) ac_try_echo=$ac_try;;
  8095 esac
  8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8097   (eval "$ac_link") 2>conftest.er1
  8098   ac_status=$?
  8099   grep -v '^ *+' conftest.er1 >conftest.err
  8100   rm -f conftest.er1
  8101   cat conftest.err >&5
  8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8103   (exit $ac_status); } && {
  8104 	 test -z "$ac_c_werror_flag" ||
  8105 	 test ! -s conftest.err
  8106        } && test -s conftest$ac_exeext &&
  8107        $as_test_x conftest$ac_exeext; then
  8108   CATOBJEXT=.gmo
  8109              DATADIRNAME=share
  8110 else
  8111   echo "$as_me: failed program was:" >&5
  8112 sed 's/^/| /' conftest.$ac_ext >&5
  8114 	case $host in
  8115 	    *-*-solaris*)
  8116 	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
  8117 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
  8118 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
  8119   echo $ECHO_N "(cached) $ECHO_C" >&6
  8120 else
  8121   cat >conftest.$ac_ext <<_ACEOF
  8122 /* confdefs.h.  */
  8123 _ACEOF
  8124 cat confdefs.h >>conftest.$ac_ext
  8125 cat >>conftest.$ac_ext <<_ACEOF
  8126 /* end confdefs.h.  */
  8127 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
  8128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8129 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
  8131 /* System header to define __stub macros and hopefully few prototypes,
  8132     which can conflict with char bind_textdomain_codeset (); below.
  8133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8134     <limits.h> exists even on freestanding compilers.  */
  8136 #ifdef __STDC__
  8137 # include <limits.h>
  8138 #else
  8139 # include <assert.h>
  8140 #endif
  8142 #undef bind_textdomain_codeset
  8144 /* Override any GCC internal prototype to avoid an error.
  8145    Use char because int might match the return type of a GCC
  8146    builtin and then its argument prototype would still apply.  */
  8147 #ifdef __cplusplus
  8148 extern "C"
  8149 #endif
  8150 char bind_textdomain_codeset ();
  8151 /* The GNU C library defines this for functions which it implements
  8152     to always fail with ENOSYS.  Some functions are actually named
  8153     something starting with __ and the normal name is an alias.  */
  8154 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
  8155 choke me
  8156 #endif
  8158 int
  8159 main ()
  8161 return bind_textdomain_codeset ();
  8163   return 0;
  8165 _ACEOF
  8166 rm -f conftest.$ac_objext conftest$ac_exeext
  8167 if { (ac_try="$ac_link"
  8168 case "(($ac_try" in
  8169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8170   *) ac_try_echo=$ac_try;;
  8171 esac
  8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8173   (eval "$ac_link") 2>conftest.er1
  8174   ac_status=$?
  8175   grep -v '^ *+' conftest.er1 >conftest.err
  8176   rm -f conftest.er1
  8177   cat conftest.err >&5
  8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8179   (exit $ac_status); } && {
  8180 	 test -z "$ac_c_werror_flag" ||
  8181 	 test ! -s conftest.err
  8182        } && test -s conftest$ac_exeext &&
  8183        $as_test_x conftest$ac_exeext; then
  8184   ac_cv_func_bind_textdomain_codeset=yes
  8185 else
  8186   echo "$as_me: failed program was:" >&5
  8187 sed 's/^/| /' conftest.$ac_ext >&5
  8189 	ac_cv_func_bind_textdomain_codeset=no
  8190 fi
  8192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8193       conftest$ac_exeext conftest.$ac_ext
  8194 fi
  8195 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
  8196 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
  8197 if test $ac_cv_func_bind_textdomain_codeset = yes; then
  8198   CATOBJEXT=.gmo
  8199                DATADIRNAME=share
  8200 else
  8201   CATOBJEXT=.mo
  8202                DATADIRNAME=lib
  8203 fi
  8205 	    ;;
  8206 	    *)
  8207 	    CATOBJEXT=.mo
  8208             DATADIRNAME=lib
  8209 	    ;;
  8210 	    esac
  8211 fi
  8213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8214       conftest$ac_exeext conftest.$ac_ext
  8215           LIBS="$glib_save_LIBS"
  8216 	  INSTOBJEXT=.mo
  8217 	else
  8218 	  gt_cv_have_gettext=no
  8219 	fi
  8220       fi
  8222 fi
  8226     if test "$gt_cv_have_gettext" = "yes" ; then
  8228 cat >>confdefs.h <<\_ACEOF
  8229 #define ENABLE_NLS 1
  8230 _ACEOF
  8232     fi
  8234         if test "$XGETTEXT" != ":"; then
  8235                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  8236         : ;
  8237       else
  8238         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  8239 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  8240         XGETTEXT=":"
  8241       fi
  8242     fi
  8244     # We need to process the po/ directory.
  8245     POSUB=po
  8247     ac_config_commands="$ac_config_commands default-1"
  8250                 for lang in $ALL_LINGUAS; do
  8251       GMOFILES="$GMOFILES $lang.gmo"
  8252       POFILES="$POFILES $lang.po"
  8253     done
  8267    if test "$gt_cv_have_gettext" = "yes"; then
  8268      if test "x$ALL_LINGUAS" = "x"; then
  8269        LINGUAS=
  8270      else
  8271        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
  8272 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
  8273        NEW_LINGUAS=
  8274        for presentlang in $ALL_LINGUAS; do
  8275          useit=no
  8276          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
  8277            desiredlanguages="$LINGUAS"
  8278          else
  8279            desiredlanguages="$ALL_LINGUAS"
  8280          fi
  8281          for desiredlang in $desiredlanguages; do
  8282  	   # Use the presentlang catalog if desiredlang is
  8283            #   a. equal to presentlang, or
  8284            #   b. a variant of presentlang (because in this case,
  8285            #      presentlang can be used as a fallback for messages
  8286            #      which are not translated in the desiredlang catalog).
  8287            case "$desiredlang" in
  8288              "$presentlang"*) useit=yes;;
  8289            esac
  8290          done
  8291          if test $useit = yes; then
  8292            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
  8293          fi
  8294        done
  8295        LINGUAS=$NEW_LINGUAS
  8296        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
  8297 echo "${ECHO_T}$LINGUAS" >&6; }
  8298      fi
  8300           if test -n "$LINGUAS"; then
  8301        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  8302      fi
  8303    fi
  8305             MKINSTALLDIRS=
  8306    if test -n "$ac_aux_dir"; then
  8307      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  8308    fi
  8309    if test -z "$MKINSTALLDIRS"; then
  8310      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  8311    fi
  8314          test -d po || mkdir po
  8315    if test "x$srcdir" != "x."; then
  8316      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  8317        posrcprefix="$srcdir/"
  8318      else
  8319        posrcprefix="../$srcdir/"
  8320      fi
  8321    else
  8322      posrcprefix="../"
  8323    fi
  8324    rm -f po/POTFILES
  8325    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  8326 	< $srcdir/po/POTFILES.in > po/POTFILES
  8329 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
  8331 cat >confcache <<\_ACEOF
  8332 # This file is a shell script that caches the results of configure
  8333 # tests run on this system so they can be shared between configure
  8334 # scripts and configure runs, see configure's option --config-cache.
  8335 # It is not useful on other systems.  If it contains results you don't
  8336 # want to keep, you may remove or edit it.
  8338 # config.status only pays attention to the cache file if you give it
  8339 # the --recheck option to rerun configure.
  8341 # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8342 # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8343 # following values.
  8345 _ACEOF
  8347 # The following way of writing the cache mishandles newlines in values,
  8348 # but we know of no workaround that is simple, portable, and efficient.
  8349 # So, we kill variables containing newlines.
  8350 # Ultrix sh set writes to stderr and can't be redirected directly,
  8351 # and sets the high bit in the cache file unless we assign to the vars.
  8353   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8354     eval ac_val=\$$ac_var
  8355     case $ac_val in #(
  8356     *${as_nl}*)
  8357       case $ac_var in #(
  8358       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  8359 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  8360       esac
  8361       case $ac_var in #(
  8362       _ | IFS | as_nl) ;; #(
  8363       *) $as_unset $ac_var ;;
  8364       esac ;;
  8365     esac
  8366   done
  8368   (set) 2>&1 |
  8369     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8370     *${as_nl}ac_space=\ *)
  8371       # `set' does not quote correctly, so add quotes (double-quote
  8372       # substitution turns \\\\ into \\, and sed turns \\ into \).
  8373       sed -n \
  8374 	"s/'/'\\\\''/g;
  8375 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8376       ;; #(
  8377     *)
  8378       # `set' quotes correctly as required by POSIX, so do not add quotes.
  8379       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8380       ;;
  8381     esac |
  8382     sort
  8383 ) |
  8384   sed '
  8385      /^ac_cv_env_/b end
  8386      t clear
  8387      :clear
  8388      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8389      t end
  8390      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8391      :end' >>confcache
  8392 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8393   if test -w "$cache_file"; then
  8394     test "x$cache_file" != "x/dev/null" &&
  8395       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  8396 echo "$as_me: updating cache $cache_file" >&6;}
  8397     cat confcache >$cache_file
  8398   else
  8399     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  8400 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8401   fi
  8402 fi
  8403 rm -f confcache
  8405 test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8406 # Let make expand exec_prefix.
  8407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8409 DEFS=-DHAVE_CONFIG_H
  8411 ac_libobjs=
  8412 ac_ltlibobjs=
  8413 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8414   # 1. Remove the extension, and $U if already installed.
  8415   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8416   ac_i=`echo "$ac_i" | sed "$ac_script"`
  8417   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  8418   #    will be set to the directory where LIBOBJS objects are built.
  8419   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8420   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  8421 done
  8422 LIBOBJS=$ac_libobjs
  8424 LTLIBOBJS=$ac_ltlibobjs
  8427 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  8428   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  8429 Usually this means the macro was only invoked conditionally." >&5
  8430 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  8431 Usually this means the macro was only invoked conditionally." >&2;}
  8432    { (exit 1); exit 1; }; }
  8433 fi
  8434 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8435   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  8436 Usually this means the macro was only invoked conditionally." >&5
  8437 echo "$as_me: error: conditional \"AMDEP\" was never defined.
  8438 Usually this means the macro was only invoked conditionally." >&2;}
  8439    { (exit 1); exit 1; }; }
  8440 fi
  8441 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8442   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8443 Usually this means the macro was only invoked conditionally." >&5
  8444 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8445 Usually this means the macro was only invoked conditionally." >&2;}
  8446    { (exit 1); exit 1; }; }
  8447 fi
  8448 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8449   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8450 Usually this means the macro was only invoked conditionally." >&5
  8451 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8452 Usually this means the macro was only invoked conditionally." >&2;}
  8453    { (exit 1); exit 1; }; }
  8454 fi
  8455 if test -z "${OSMESA_DRIVER_TRUE}" && test -z "${OSMESA_DRIVER_FALSE}"; then
  8456   { { echo "$as_me:$LINENO: error: conditional \"OSMESA_DRIVER\" was never defined.
  8457 Usually this means the macro was only invoked conditionally." >&5
  8458 echo "$as_me: error: conditional \"OSMESA_DRIVER\" was never defined.
  8459 Usually this means the macro was only invoked conditionally." >&2;}
  8460    { (exit 1); exit 1; }; }
  8461 fi
  8462 if test -z "${GUI_CARBON_TRUE}" && test -z "${GUI_CARBON_FALSE}"; then
  8463   { { echo "$as_me:$LINENO: error: conditional \"GUI_CARBON\" was never defined.
  8464 Usually this means the macro was only invoked conditionally." >&5
  8465 echo "$as_me: error: conditional \"GUI_CARBON\" was never defined.
  8466 Usually this means the macro was only invoked conditionally." >&2;}
  8467    { (exit 1); exit 1; }; }
  8468 fi
  8469 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
  8470   { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
  8471 Usually this means the macro was only invoked conditionally." >&5
  8472 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
  8473 Usually this means the macro was only invoked conditionally." >&2;}
  8474    { (exit 1); exit 1; }; }
  8475 fi
  8476 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
  8477   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
  8478 Usually this means the macro was only invoked conditionally." >&5
  8479 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
  8480 Usually this means the macro was only invoked conditionally." >&2;}
  8481    { (exit 1); exit 1; }; }
  8482 fi
  8483 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
  8484   { { echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
  8485 Usually this means the macro was only invoked conditionally." >&5
  8486 echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
  8487 Usually this means the macro was only invoked conditionally." >&2;}
  8488    { (exit 1); exit 1; }; }
  8489 fi
  8490 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
  8491   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
  8492 Usually this means the macro was only invoked conditionally." >&5
  8493 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
  8494 Usually this means the macro was only invoked conditionally." >&2;}
  8495    { (exit 1); exit 1; }; }
  8496 fi
  8497 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
  8498   { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
  8499 Usually this means the macro was only invoked conditionally." >&5
  8500 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
  8501 Usually this means the macro was only invoked conditionally." >&2;}
  8502    { (exit 1); exit 1; }; }
  8503 fi
  8504 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
  8505   { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
  8506 Usually this means the macro was only invoked conditionally." >&5
  8507 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
  8508 Usually this means the macro was only invoked conditionally." >&2;}
  8509    { (exit 1); exit 1; }; }
  8510 fi
  8511 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
  8512   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
  8513 Usually this means the macro was only invoked conditionally." >&5
  8514 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
  8515 Usually this means the macro was only invoked conditionally." >&2;}
  8516    { (exit 1); exit 1; }; }
  8517 fi
  8518 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
  8519   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
  8520 Usually this means the macro was only invoked conditionally." >&5
  8521 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
  8522 Usually this means the macro was only invoked conditionally." >&2;}
  8523    { (exit 1); exit 1; }; }
  8524 fi
  8526 : ${CONFIG_STATUS=./config.status}
  8527 ac_clean_files_save=$ac_clean_files
  8528 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8529 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8530 echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8531 cat >$CONFIG_STATUS <<_ACEOF
  8532 #! $SHELL
  8533 # Generated by $as_me.
  8534 # Run this file to recreate the current configuration.
  8535 # Compiler output produced by configure, useful for debugging
  8536 # configure, is in config.log if it exists.
  8538 debug=false
  8539 ac_cs_recheck=false
  8540 ac_cs_silent=false
  8541 SHELL=\${CONFIG_SHELL-$SHELL}
  8542 _ACEOF
  8544 cat >>$CONFIG_STATUS <<\_ACEOF
  8545 ## --------------------- ##
  8546 ## M4sh Initialization.  ##
  8547 ## --------------------- ##
  8549 # Be more Bourne compatible
  8550 DUALCASE=1; export DUALCASE # for MKS sh
  8551 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8552   emulate sh
  8553   NULLCMD=:
  8554   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8555   # is contrary to our usage.  Disable this feature.
  8556   alias -g '${1+"$@"}'='"$@"'
  8557   setopt NO_GLOB_SUBST
  8558 else
  8559   case `(set -o) 2>/dev/null` in
  8560   *posix*) set -o posix ;;
  8561 esac
  8563 fi
  8568 # PATH needs CR
  8569 # Avoid depending upon Character Ranges.
  8570 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8571 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8572 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8573 as_cr_digits='0123456789'
  8574 as_cr_alnum=$as_cr_Letters$as_cr_digits
  8576 # The user is always right.
  8577 if test "${PATH_SEPARATOR+set}" != set; then
  8578   echo "#! /bin/sh" >conf$$.sh
  8579   echo  "exit 0"   >>conf$$.sh
  8580   chmod +x conf$$.sh
  8581   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8582     PATH_SEPARATOR=';'
  8583   else
  8584     PATH_SEPARATOR=:
  8585   fi
  8586   rm -f conf$$.sh
  8587 fi
  8589 # Support unset when possible.
  8590 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8591   as_unset=unset
  8592 else
  8593   as_unset=false
  8594 fi
  8597 # IFS
  8598 # We need space, tab and new line, in precisely that order.  Quoting is
  8599 # there to prevent editors from complaining about space-tab.
  8600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8601 # splitting by setting IFS to empty value.)
  8602 as_nl='
  8604 IFS=" ""	$as_nl"
  8606 # Find who we are.  Look in the path if we contain no directory separator.
  8607 case $0 in
  8608   *[\\/]* ) as_myself=$0 ;;
  8609   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8610 for as_dir in $PATH
  8611 do
  8612   IFS=$as_save_IFS
  8613   test -z "$as_dir" && as_dir=.
  8614   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8615 done
  8616 IFS=$as_save_IFS
  8618      ;;
  8619 esac
  8620 # We did not find ourselves, most probably we were run as `sh COMMAND'
  8621 # in which case we are not to be found in the path.
  8622 if test "x$as_myself" = x; then
  8623   as_myself=$0
  8624 fi
  8625 if test ! -f "$as_myself"; then
  8626   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8627   { (exit 1); exit 1; }
  8628 fi
  8630 # Work around bugs in pre-3.0 UWIN ksh.
  8631 for as_var in ENV MAIL MAILPATH
  8632 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  8633 done
  8634 PS1='$ '
  8635 PS2='> '
  8636 PS4='+ '
  8638 # NLS nuisances.
  8639 for as_var in \
  8640   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8641   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8642   LC_TELEPHONE LC_TIME
  8643 do
  8644   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8645     eval $as_var=C; export $as_var
  8646   else
  8647     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  8648   fi
  8649 done
  8651 # Required to use basename.
  8652 if expr a : '\(a\)' >/dev/null 2>&1 &&
  8653    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8654   as_expr=expr
  8655 else
  8656   as_expr=false
  8657 fi
  8659 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8660   as_basename=basename
  8661 else
  8662   as_basename=false
  8663 fi
  8666 # Name of the executable.
  8667 as_me=`$as_basename -- "$0" ||
  8668 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8669 	 X"$0" : 'X\(//\)$' \| \
  8670 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8671 echo X/"$0" |
  8672     sed '/^.*\/\([^/][^/]*\)\/*$/{
  8673 	    s//\1/
  8676 	  /^X\/\(\/\/\)$/{
  8677 	    s//\1/
  8680 	  /^X\/\(\/\).*/{
  8681 	    s//\1/
  8684 	  s/.*/./; q'`
  8686 # CDPATH.
  8687 $as_unset CDPATH
  8691   as_lineno_1=$LINENO
  8692   as_lineno_2=$LINENO
  8693   test "x$as_lineno_1" != "x$as_lineno_2" &&
  8694   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  8696   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8697   # uniformly replaced by the line number.  The first 'sed' inserts a
  8698   # line-number line after each line using $LINENO; the second 'sed'
  8699   # does the real work.  The second script uses 'N' to pair each
  8700   # line-number line with the line containing $LINENO, and appends
  8701   # trailing '-' during substitution so that $LINENO is not a special
  8702   # case at line end.
  8703   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8704   # scripts with optimization help from Paolo Bonzini.  Blame Lee
  8705   # E. McMahon (1931-1989) for sed's syntax.  :-)
  8706   sed -n '
  8708     /[$]LINENO/=
  8709   ' <$as_myself |
  8710     sed '
  8711       s/[$]LINENO.*/&-/
  8712       t lineno
  8714       :lineno
  8716       :loop
  8717       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  8718       t loop
  8719       s/-\n.*//
  8720     ' >$as_me.lineno &&
  8721   chmod +x "$as_me.lineno" ||
  8722     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  8723    { (exit 1); exit 1; }; }
  8725   # Don't try to exec as it changes $[0], causing all sort of problems
  8726   # (the dirname of $[0] is not the place where we might find the
  8727   # original and so on.  Autoconf is especially sensitive to this).
  8728   . "./$as_me.lineno"
  8729   # Exit status is that of the last command.
  8730   exit
  8734 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8735   as_dirname=dirname
  8736 else
  8737   as_dirname=false
  8738 fi
  8740 ECHO_C= ECHO_N= ECHO_T=
  8741 case `echo -n x` in
  8742 -n*)
  8743   case `echo 'x\c'` in
  8744   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  8745   *)   ECHO_C='\c';;
  8746   esac;;
  8747 *)
  8748   ECHO_N='-n';;
  8749 esac
  8751 if expr a : '\(a\)' >/dev/null 2>&1 &&
  8752    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8753   as_expr=expr
  8754 else
  8755   as_expr=false
  8756 fi
  8758 rm -f conf$$ conf$$.exe conf$$.file
  8759 if test -d conf$$.dir; then
  8760   rm -f conf$$.dir/conf$$.file
  8761 else
  8762   rm -f conf$$.dir
  8763   mkdir conf$$.dir
  8764 fi
  8765 echo >conf$$.file
  8766 if ln -s conf$$.file conf$$ 2>/dev/null; then
  8767   as_ln_s='ln -s'
  8768   # ... but there are two gotchas:
  8769   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8770   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8771   # In both cases, we have to default to `cp -p'.
  8772   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8773     as_ln_s='cp -p'
  8774 elif ln conf$$.file conf$$ 2>/dev/null; then
  8775   as_ln_s=ln
  8776 else
  8777   as_ln_s='cp -p'
  8778 fi
  8779 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8780 rmdir conf$$.dir 2>/dev/null
  8782 if mkdir -p . 2>/dev/null; then
  8783   as_mkdir_p=:
  8784 else
  8785   test -d ./-p && rmdir ./-p
  8786   as_mkdir_p=false
  8787 fi
  8789 if test -x / >/dev/null 2>&1; then
  8790   as_test_x='test -x'
  8791 else
  8792   if ls -dL / >/dev/null 2>&1; then
  8793     as_ls_L_option=L
  8794   else
  8795     as_ls_L_option=
  8796   fi
  8797   as_test_x='
  8798     eval sh -c '\''
  8799       if test -d "$1"; then
  8800         test -d "$1/.";
  8801       else
  8802 	case $1 in
  8803         -*)set "./$1";;
  8804 	esac;
  8805 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  8806 	???[sx]*):;;*)false;;esac;fi
  8807     '\'' sh
  8809 fi
  8810 as_executable_p=$as_test_x
  8812 # Sed expression to map a string onto a valid CPP name.
  8813 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8815 # Sed expression to map a string onto a valid variable name.
  8816 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8819 exec 6>&1
  8821 # Save the log message, to keep $[0] and so on meaningful, and to
  8822 # report actual input values of CONFIG_FILES etc. instead of their
  8823 # values after options handling.
  8824 ac_log="
  8825 This file was extended by $as_me, which was
  8826 generated by GNU Autoconf 2.61.  Invocation command line was
  8828   CONFIG_FILES    = $CONFIG_FILES
  8829   CONFIG_HEADERS  = $CONFIG_HEADERS
  8830   CONFIG_LINKS    = $CONFIG_LINKS
  8831   CONFIG_COMMANDS = $CONFIG_COMMANDS
  8832   $ $0 $@
  8834 on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8837 _ACEOF
  8839 cat >>$CONFIG_STATUS <<_ACEOF
  8840 # Files that config.status was made for.
  8841 config_files="$ac_config_files"
  8842 config_headers="$ac_config_headers"
  8843 config_commands="$ac_config_commands"
  8845 _ACEOF
  8847 cat >>$CONFIG_STATUS <<\_ACEOF
  8848 ac_cs_usage="\
  8849 \`$as_me' instantiates files from templates according to the
  8850 current configuration.
  8852 Usage: $0 [OPTIONS] [FILE]...
  8854   -h, --help       print this help, then exit
  8855   -V, --version    print version number and configuration settings, then exit
  8856   -q, --quiet      do not print progress messages
  8857   -d, --debug      don't remove temporary files
  8858       --recheck    update $as_me by reconfiguring in the same conditions
  8859   --file=FILE[:TEMPLATE]
  8860 		   instantiate the configuration file FILE
  8861   --header=FILE[:TEMPLATE]
  8862 		   instantiate the configuration header FILE
  8864 Configuration files:
  8865 $config_files
  8867 Configuration headers:
  8868 $config_headers
  8870 Configuration commands:
  8871 $config_commands
  8873 Report bugs to <bug-autoconf@gnu.org>."
  8875 _ACEOF
  8876 cat >>$CONFIG_STATUS <<_ACEOF
  8877 ac_cs_version="\\
  8878 config.status
  8879 configured by $0, generated by GNU Autoconf 2.61,
  8880   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  8882 Copyright (C) 2006 Free Software Foundation, Inc.
  8883 This config.status script is free software; the Free Software Foundation
  8884 gives unlimited permission to copy, distribute and modify it."
  8886 ac_pwd='$ac_pwd'
  8887 srcdir='$srcdir'
  8888 INSTALL='$INSTALL'
  8889 _ACEOF
  8891 cat >>$CONFIG_STATUS <<\_ACEOF
  8892 # If no file are specified by the user, then we need to provide default
  8893 # value.  By we need to know if files were specified by the user.
  8894 ac_need_defaults=:
  8895 while test $# != 0
  8896 do
  8897   case $1 in
  8898   --*=*)
  8899     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8900     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8901     ac_shift=:
  8902     ;;
  8903   *)
  8904     ac_option=$1
  8905     ac_optarg=$2
  8906     ac_shift=shift
  8907     ;;
  8908   esac
  8910   case $ac_option in
  8911   # Handling of the options.
  8912   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8913     ac_cs_recheck=: ;;
  8914   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8915     echo "$ac_cs_version"; exit ;;
  8916   --debug | --debu | --deb | --de | --d | -d )
  8917     debug=: ;;
  8918   --file | --fil | --fi | --f )
  8919     $ac_shift
  8920     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8921     ac_need_defaults=false;;
  8922   --header | --heade | --head | --hea )
  8923     $ac_shift
  8924     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8925     ac_need_defaults=false;;
  8926   --he | --h)
  8927     # Conflict between --help and --header
  8928     { echo "$as_me: error: ambiguous option: $1
  8929 Try \`$0 --help' for more information." >&2
  8930    { (exit 1); exit 1; }; };;
  8931   --help | --hel | -h )
  8932     echo "$ac_cs_usage"; exit ;;
  8933   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8934   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8935     ac_cs_silent=: ;;
  8937   # This is an error.
  8938   -*) { echo "$as_me: error: unrecognized option: $1
  8939 Try \`$0 --help' for more information." >&2
  8940    { (exit 1); exit 1; }; } ;;
  8942   *) ac_config_targets="$ac_config_targets $1"
  8943      ac_need_defaults=false ;;
  8945   esac
  8946   shift
  8947 done
  8949 ac_configure_extra_args=
  8951 if $ac_cs_silent; then
  8952   exec 6>/dev/null
  8953   ac_configure_extra_args="$ac_configure_extra_args --silent"
  8954 fi
  8956 _ACEOF
  8957 cat >>$CONFIG_STATUS <<_ACEOF
  8958 if \$ac_cs_recheck; then
  8959   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8960   CONFIG_SHELL=$SHELL
  8961   export CONFIG_SHELL
  8962   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8963 fi
  8965 _ACEOF
  8966 cat >>$CONFIG_STATUS <<\_ACEOF
  8967 exec 5>>config.log
  8969   echo
  8970   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8971 ## Running $as_me. ##
  8972 _ASBOX
  8973   echo "$ac_log"
  8974 } >&5
  8976 _ACEOF
  8977 cat >>$CONFIG_STATUS <<_ACEOF
  8979 # INIT-COMMANDS
  8981 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  8984 _ACEOF
  8986 cat >>$CONFIG_STATUS <<\_ACEOF
  8988 # Handling of arguments.
  8989 for ac_config_target in $ac_config_targets
  8990 do
  8991   case $ac_config_target in
  8992     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  8993     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  8994     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  8995     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8996     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8997     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  8998     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  9000   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  9001 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  9002    { (exit 1); exit 1; }; };;
  9003   esac
  9004 done
  9007 # If the user did not use the arguments to specify the items to instantiate,
  9008 # then the envvar interface is used.  Set only those that are not.
  9009 # We use the long form for the default assignment because of an extremely
  9010 # bizarre bug on SunOS 4.1.3.
  9011 if $ac_need_defaults; then
  9012   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9013   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9014   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9015 fi
  9017 # Have a temporary directory for convenience.  Make it in the build tree
  9018 # simply because there is no reason against having it here, and in addition,
  9019 # creating and moving files from /tmp can sometimes cause problems.
  9020 # Hook for its removal unless debugging.
  9021 # Note that there is a small window in which the directory will not be cleaned:
  9022 # after its creation but before its name has been assigned to `$tmp'.
  9023 $debug ||
  9025   tmp=
  9026   trap 'exit_status=$?
  9027   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  9028 ' 0
  9029   trap '{ (exit 1); exit 1; }' 1 2 13 15
  9031 # Create a (secure) tmp directory for tmp files.
  9034   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9035   test -n "$tmp" && test -d "$tmp"
  9036 }  ||
  9038   tmp=./conf$$-$RANDOM
  9039   (umask 077 && mkdir "$tmp")
  9040 } ||
  9042    echo "$me: cannot create a temporary directory in ." >&2
  9043    { (exit 1); exit 1; }
  9047 # Set up the sed scripts for CONFIG_FILES section.
  9050 # No need to generate the scripts if there are no CONFIG_FILES.
  9051 # This happens for instance when ./config.status config.h
  9052 if test -n "$CONFIG_FILES"; then
  9054 _ACEOF
  9058 ac_delim='%!_!# '
  9059 for ac_last_try in false false false false false :; do
  9060   cat >conf$$subs.sed <<_ACEOF
  9061 SHELL!$SHELL$ac_delim
  9062 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  9063 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  9064 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  9065 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  9066 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  9067 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  9068 exec_prefix!$exec_prefix$ac_delim
  9069 prefix!$prefix$ac_delim
  9070 program_transform_name!$program_transform_name$ac_delim
  9071 bindir!$bindir$ac_delim
  9072 sbindir!$sbindir$ac_delim
  9073 libexecdir!$libexecdir$ac_delim
  9074 datarootdir!$datarootdir$ac_delim
  9075 datadir!$datadir$ac_delim
  9076 sysconfdir!$sysconfdir$ac_delim
  9077 sharedstatedir!$sharedstatedir$ac_delim
  9078 localstatedir!$localstatedir$ac_delim
  9079 includedir!$includedir$ac_delim
  9080 oldincludedir!$oldincludedir$ac_delim
  9081 docdir!$docdir$ac_delim
  9082 infodir!$infodir$ac_delim
  9083 htmldir!$htmldir$ac_delim
  9084 dvidir!$dvidir$ac_delim
  9085 pdfdir!$pdfdir$ac_delim
  9086 psdir!$psdir$ac_delim
  9087 libdir!$libdir$ac_delim
  9088 localedir!$localedir$ac_delim
  9089 mandir!$mandir$ac_delim
  9090 DEFS!$DEFS$ac_delim
  9091 ECHO_C!$ECHO_C$ac_delim
  9092 ECHO_N!$ECHO_N$ac_delim
  9093 ECHO_T!$ECHO_T$ac_delim
  9094 LIBS!$LIBS$ac_delim
  9095 build_alias!$build_alias$ac_delim
  9096 host_alias!$host_alias$ac_delim
  9097 target_alias!$target_alias$ac_delim
  9098 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  9099 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  9100 INSTALL_DATA!$INSTALL_DATA$ac_delim
  9101 CYGPATH_W!$CYGPATH_W$ac_delim
  9102 PACKAGE!$PACKAGE$ac_delim
  9103 VERSION!$VERSION$ac_delim
  9104 ACLOCAL!$ACLOCAL$ac_delim
  9105 AUTOCONF!$AUTOCONF$ac_delim
  9106 AUTOMAKE!$AUTOMAKE$ac_delim
  9107 AUTOHEADER!$AUTOHEADER$ac_delim
  9108 MAKEINFO!$MAKEINFO$ac_delim
  9109 AMTAR!$AMTAR$ac_delim
  9110 install_sh!$install_sh$ac_delim
  9111 STRIP!$STRIP$ac_delim
  9112 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  9113 AWK!$AWK$ac_delim
  9114 SET_MAKE!$SET_MAKE$ac_delim
  9115 am__leading_dot!$am__leading_dot$ac_delim
  9116 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  9117 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  9118 MAINT!$MAINT$ac_delim
  9119 CC!$CC$ac_delim
  9120 CFLAGS!$CFLAGS$ac_delim
  9121 LDFLAGS!$LDFLAGS$ac_delim
  9122 CPPFLAGS!$CPPFLAGS$ac_delim
  9123 ac_ct_CC!$ac_ct_CC$ac_delim
  9124 EXEEXT!$EXEEXT$ac_delim
  9125 OBJEXT!$OBJEXT$ac_delim
  9126 DEPDIR!$DEPDIR$ac_delim
  9127 am__include!$am__include$ac_delim
  9128 am__quote!$am__quote$ac_delim
  9129 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  9130 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  9131 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  9132 CCDEPMODE!$CCDEPMODE$ac_delim
  9133 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  9134 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  9135 CCAS!$CCAS$ac_delim
  9136 CCASFLAGS!$CCASFLAGS$ac_delim
  9137 CPP!$CPP$ac_delim
  9138 GREP!$GREP$ac_delim
  9139 EGREP!$EGREP$ac_delim
  9140 build!$build$ac_delim
  9141 build_cpu!$build_cpu$ac_delim
  9142 build_vendor!$build_vendor$ac_delim
  9143 build_os!$build_os$ac_delim
  9144 host!$host$ac_delim
  9145 host_cpu!$host_cpu$ac_delim
  9146 host_vendor!$host_vendor$ac_delim
  9147 host_os!$host_os$ac_delim
  9148 OSMESA_DRIVER_TRUE!$OSMESA_DRIVER_TRUE$ac_delim
  9149 OSMESA_DRIVER_FALSE!$OSMESA_DRIVER_FALSE$ac_delim
  9150 PKG_CONFIG!$PKG_CONFIG$ac_delim
  9151 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
  9152 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
  9153 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
  9154 GTK_LIBS!$GTK_LIBS$ac_delim
  9155 GUI_CARBON_TRUE!$GUI_CARBON_TRUE$ac_delim
  9156 GUI_CARBON_FALSE!$GUI_CARBON_FALSE$ac_delim
  9157 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
  9158 _ACEOF
  9160   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  9161     break
  9162   elif $ac_last_try; then
  9163     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  9164 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  9165    { (exit 1); exit 1; }; }
  9166   else
  9167     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9168   fi
  9169 done
  9171 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  9172 if test -n "$ac_eof"; then
  9173   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  9174   ac_eof=`expr $ac_eof + 1`
  9175 fi
  9177 cat >>$CONFIG_STATUS <<_ACEOF
  9178 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  9179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9180 _ACEOF
  9181 sed '
  9182 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  9183 s/^/s,@/; s/!/@,|#_!!_#|/
  9184 :n
  9185 t n
  9186 s/'"$ac_delim"'$/,g/; t
  9187 s/$/\\/; p
  9188 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  9189 ' >>$CONFIG_STATUS <conf$$subs.sed
  9190 rm -f conf$$subs.sed
  9191 cat >>$CONFIG_STATUS <<_ACEOF
  9192 CEOF$ac_eof
  9193 _ACEOF
  9196 ac_delim='%!_!# '
  9197 for ac_last_try in false false false false false :; do
  9198   cat >conf$$subs.sed <<_ACEOF
  9199 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
  9200 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
  9201 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
  9202 BUILD_X86_64_TRUE!$BUILD_X86_64_TRUE$ac_delim
  9203 BUILD_X86_64_FALSE!$BUILD_X86_64_FALSE$ac_delim
  9204 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
  9205 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
  9206 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
  9207 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
  9208 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
  9209 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
  9210 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
  9211 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
  9212 SHCC!$SHCC$ac_delim
  9213 SHLD!$SHLD$ac_delim
  9214 SHOBJCOPY!$SHOBJCOPY$ac_delim
  9215 ARMCC!$ARMCC$ac_delim
  9216 ARMLD!$ARMLD$ac_delim
  9217 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
  9218 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
  9219 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
  9220 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
  9221 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
  9222 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
  9223 USE_NLS!$USE_NLS$ac_delim
  9224 MSGFMT!$MSGFMT$ac_delim
  9225 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
  9226 GMSGFMT!$GMSGFMT$ac_delim
  9227 XGETTEXT!$XGETTEXT$ac_delim
  9228 CATALOGS!$CATALOGS$ac_delim
  9229 CATOBJEXT!$CATOBJEXT$ac_delim
  9230 DATADIRNAME!$DATADIRNAME$ac_delim
  9231 GMOFILES!$GMOFILES$ac_delim
  9232 INSTOBJEXT!$INSTOBJEXT$ac_delim
  9233 INTLLIBS!$INTLLIBS$ac_delim
  9234 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
  9235 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
  9236 POFILES!$POFILES$ac_delim
  9237 POSUB!$POSUB$ac_delim
  9238 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  9239 LIBOBJS!$LIBOBJS$ac_delim
  9240 LTLIBOBJS!$LTLIBOBJS$ac_delim
  9241 _ACEOF
  9243   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
  9244     break
  9245   elif $ac_last_try; then
  9246     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  9247 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  9248    { (exit 1); exit 1; }; }
  9249   else
  9250     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9251   fi
  9252 done
  9254 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  9255 if test -n "$ac_eof"; then
  9256   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  9257   ac_eof=`expr $ac_eof + 1`
  9258 fi
  9260 cat >>$CONFIG_STATUS <<_ACEOF
  9261 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  9262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  9263 _ACEOF
  9264 sed '
  9265 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  9266 s/^/s,@/; s/!/@,|#_!!_#|/
  9267 :n
  9268 t n
  9269 s/'"$ac_delim"'$/,g/; t
  9270 s/$/\\/; p
  9271 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  9272 ' >>$CONFIG_STATUS <conf$$subs.sed
  9273 rm -f conf$$subs.sed
  9274 cat >>$CONFIG_STATUS <<_ACEOF
  9275 :end
  9276 s/|#_!!_#|//g
  9277 CEOF$ac_eof
  9278 _ACEOF
  9281 # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9282 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9283 # trailing colons and then remove the whole line if VPATH becomes empty
  9284 # (actually we leave an empty line to preserve line numbers).
  9285 if test "x$srcdir" = x.; then
  9286   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
  9287 s/:*\$(srcdir):*/:/
  9288 s/:*\${srcdir}:*/:/
  9289 s/:*@srcdir@:*/:/
  9290 s/^\([^=]*=[	 ]*\):*/\1/
  9291 s/:*$//
  9292 s/^[^=]*=[	 ]*$//
  9293 }'
  9294 fi
  9296 cat >>$CONFIG_STATUS <<\_ACEOF
  9297 fi # test -n "$CONFIG_FILES"
  9300 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
  9301 do
  9302   case $ac_tag in
  9303   :[FHLC]) ac_mode=$ac_tag; continue;;
  9304   esac
  9305   case $ac_mode$ac_tag in
  9306   :[FHL]*:*);;
  9307   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  9308 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  9309    { (exit 1); exit 1; }; };;
  9310   :[FH]-) ac_tag=-:-;;
  9311   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9312   esac
  9313   ac_save_IFS=$IFS
  9314   IFS=:
  9315   set x $ac_tag
  9316   IFS=$ac_save_IFS
  9317   shift
  9318   ac_file=$1
  9319   shift
  9321   case $ac_mode in
  9322   :L) ac_source=$1;;
  9323   :[FH])
  9324     ac_file_inputs=
  9325     for ac_f
  9326     do
  9327       case $ac_f in
  9328       -) ac_f="$tmp/stdin";;
  9329       *) # Look for the file first in the build tree, then in the source tree
  9330 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
  9331 	 # because $ac_f cannot contain `:'.
  9332 	 test -f "$ac_f" ||
  9333 	   case $ac_f in
  9334 	   [\\/$]*) false;;
  9335 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9336 	   esac ||
  9337 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  9338 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  9339    { (exit 1); exit 1; }; };;
  9340       esac
  9341       ac_file_inputs="$ac_file_inputs $ac_f"
  9342     done
  9344     # Let's still pretend it is `configure' which instantiates (i.e., don't
  9345     # use $as_me), people would be surprised to read:
  9346     #    /* config.h.  Generated by config.status.  */
  9347     configure_input="Generated from "`IFS=:
  9348 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  9349     if test x"$ac_file" != x-; then
  9350       configure_input="$ac_file.  $configure_input"
  9351       { echo "$as_me:$LINENO: creating $ac_file" >&5
  9352 echo "$as_me: creating $ac_file" >&6;}
  9353     fi
  9355     case $ac_tag in
  9356     *:-:* | *:-) cat >"$tmp/stdin";;
  9357     esac
  9358     ;;
  9359   esac
  9361   ac_dir=`$as_dirname -- "$ac_file" ||
  9362 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9363 	 X"$ac_file" : 'X\(//\)[^/]' \| \
  9364 	 X"$ac_file" : 'X\(//\)$' \| \
  9365 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9366 echo X"$ac_file" |
  9367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9368 	    s//\1/
  9371 	  /^X\(\/\/\)[^/].*/{
  9372 	    s//\1/
  9375 	  /^X\(\/\/\)$/{
  9376 	    s//\1/
  9379 	  /^X\(\/\).*/{
  9380 	    s//\1/
  9383 	  s/.*/./; q'`
  9384   { as_dir="$ac_dir"
  9385   case $as_dir in #(
  9386   -*) as_dir=./$as_dir;;
  9387   esac
  9388   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  9389     as_dirs=
  9390     while :; do
  9391       case $as_dir in #(
  9392       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  9393       *) as_qdir=$as_dir;;
  9394       esac
  9395       as_dirs="'$as_qdir' $as_dirs"
  9396       as_dir=`$as_dirname -- "$as_dir" ||
  9397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9398 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  9399 	 X"$as_dir" : 'X\(//\)$' \| \
  9400 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9401 echo X"$as_dir" |
  9402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9403 	    s//\1/
  9406 	  /^X\(\/\/\)[^/].*/{
  9407 	    s//\1/
  9410 	  /^X\(\/\/\)$/{
  9411 	    s//\1/
  9414 	  /^X\(\/\).*/{
  9415 	    s//\1/
  9418 	  s/.*/./; q'`
  9419       test -d "$as_dir" && break
  9420     done
  9421     test -z "$as_dirs" || eval "mkdir $as_dirs"
  9422   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  9423 echo "$as_me: error: cannot create directory $as_dir" >&2;}
  9424    { (exit 1); exit 1; }; }; }
  9425   ac_builddir=.
  9427 case "$ac_dir" in
  9428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9429 *)
  9430   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9431   # A ".." for each directory in $ac_dir_suffix.
  9432   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  9433   case $ac_top_builddir_sub in
  9434   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9435   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9436   esac ;;
  9437 esac
  9438 ac_abs_top_builddir=$ac_pwd
  9439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9440 # for backward compatibility:
  9441 ac_top_builddir=$ac_top_build_prefix
  9443 case $srcdir in
  9444   .)  # We are building in place.
  9445     ac_srcdir=.
  9446     ac_top_srcdir=$ac_top_builddir_sub
  9447     ac_abs_top_srcdir=$ac_pwd ;;
  9448   [\\/]* | ?:[\\/]* )  # Absolute name.
  9449     ac_srcdir=$srcdir$ac_dir_suffix;
  9450     ac_top_srcdir=$srcdir
  9451     ac_abs_top_srcdir=$srcdir ;;
  9452   *) # Relative name.
  9453     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9454     ac_top_srcdir=$ac_top_build_prefix$srcdir
  9455     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9456 esac
  9457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9460   case $ac_mode in
  9461   :F)
  9463   # CONFIG_FILE
  9466   case $INSTALL in
  9467   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9468   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9469   esac
  9470 _ACEOF
  9472 cat >>$CONFIG_STATUS <<\_ACEOF
  9473 # If the template does not know about datarootdir, expand it.
  9474 # FIXME: This hack should be removed a few years after 2.60.
  9475 ac_datarootdir_hack=; ac_datarootdir_seen=
  9477 case `sed -n '/datarootdir/ {
  9481 /@datadir@/p
  9482 /@docdir@/p
  9483 /@infodir@/p
  9484 /@localedir@/p
  9485 /@mandir@/p
  9486 ' $ac_file_inputs` in
  9487 *datarootdir*) ac_datarootdir_seen=yes;;
  9488 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9489   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9490 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9491 _ACEOF
  9492 cat >>$CONFIG_STATUS <<_ACEOF
  9493   ac_datarootdir_hack='
  9494   s&@datadir@&$datadir&g
  9495   s&@docdir@&$docdir&g
  9496   s&@infodir@&$infodir&g
  9497   s&@localedir@&$localedir&g
  9498   s&@mandir@&$mandir&g
  9499     s&\\\${datarootdir}&$datarootdir&g' ;;
  9500 esac
  9501 _ACEOF
  9503 # Neutralize VPATH when `$srcdir' = `.'.
  9504 # Shell code in configure.ac might set extrasub.
  9505 # FIXME: do we really want to maintain this feature?
  9506 cat >>$CONFIG_STATUS <<_ACEOF
  9507   sed "$ac_vpsub
  9508 $extrasub
  9509 _ACEOF
  9510 cat >>$CONFIG_STATUS <<\_ACEOF
  9511 :t
  9512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9513 s&@configure_input@&$configure_input&;t t
  9514 s&@top_builddir@&$ac_top_builddir_sub&;t t
  9515 s&@srcdir@&$ac_srcdir&;t t
  9516 s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9517 s&@top_srcdir@&$ac_top_srcdir&;t t
  9518 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9519 s&@builddir@&$ac_builddir&;t t
  9520 s&@abs_builddir@&$ac_abs_builddir&;t t
  9521 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9522 s&@INSTALL@&$ac_INSTALL&;t t
  9523 $ac_datarootdir_hack
  9524 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  9526 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9527   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  9528   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  9529   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9530 which seems to be undefined.  Please make sure it is defined." >&5
  9531 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9532 which seems to be undefined.  Please make sure it is defined." >&2;}
  9534   rm -f "$tmp/stdin"
  9535   case $ac_file in
  9536   -) cat "$tmp/out"; rm -f "$tmp/out";;
  9537   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  9538   esac
  9539  ;;
  9540   :H)
  9542   # CONFIG_HEADER
  9544 _ACEOF
  9546 # Transform confdefs.h into a sed script `conftest.defines', that
  9547 # substitutes the proper values into config.h.in to produce config.h.
  9548 rm -f conftest.defines conftest.tail
  9549 # First, append a space to every undef/define line, to ease matching.
  9550 echo 's/$/ /' >conftest.defines
  9551 # Then, protect against being on the right side of a sed subst, or in
  9552 # an unquoted here document, in config.status.  If some macros were
  9553 # called several times there might be several #defines for the same
  9554 # symbol, which is useless.  But do not sort them, since the last
  9555 # AC_DEFINE must be honored.
  9556 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9557 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  9558 # NAME is the cpp macro being defined, VALUE is the value it is being given.
  9559 # PARAMS is the parameter list in the macro definition--in most cases, it's
  9560 # just an empty string.
  9561 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
  9562 ac_dB='\\)[	 (].*,\\1define\\2'
  9563 ac_dC=' '
  9564 ac_dD=' ,'
  9566 uniq confdefs.h |
  9567   sed -n '
  9568 	t rset
  9569 	:rset
  9570 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
  9571 	t ok
  9573 	:ok
  9574 	s/[\\&,]/\\&/g
  9575 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  9576 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  9577   ' >>conftest.defines
  9579 # Remove the space that was appended to ease matching.
  9580 # Then replace #undef with comments.  This is necessary, for
  9581 # example, in the case of _POSIX_SOURCE, which is predefined and required
  9582 # on some systems where configure will not decide to define it.
  9583 # (The regexp can be short, since the line contains either #define or #undef.)
  9584 echo 's/ $//
  9585 s,^[	 #]*u.*,/* & */,' >>conftest.defines
  9587 # Break up conftest.defines:
  9588 ac_max_sed_lines=50
  9590 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  9591 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  9592 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  9593 # et cetera.
  9594 ac_in='$ac_file_inputs'
  9595 ac_out='"$tmp/out1"'
  9596 ac_nxt='"$tmp/out2"'
  9598 while :
  9599 do
  9600   # Write a here document:
  9601     cat >>$CONFIG_STATUS <<_ACEOF
  9602     # First, check the format of the line:
  9603     cat >"\$tmp/defines.sed" <<\\CEOF
  9604 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
  9605 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
  9607 :def
  9608 _ACEOF
  9609   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  9610   echo 'CEOF
  9611     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  9612   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  9613   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  9614   grep . conftest.tail >/dev/null || break
  9615   rm -f conftest.defines
  9616   mv conftest.tail conftest.defines
  9617 done
  9618 rm -f conftest.defines conftest.tail
  9620 echo "ac_result=$ac_in" >>$CONFIG_STATUS
  9621 cat >>$CONFIG_STATUS <<\_ACEOF
  9622   if test x"$ac_file" != x-; then
  9623     echo "/* $configure_input  */" >"$tmp/config.h"
  9624     cat "$ac_result" >>"$tmp/config.h"
  9625     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  9626       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9627 echo "$as_me: $ac_file is unchanged" >&6;}
  9628     else
  9629       rm -f $ac_file
  9630       mv "$tmp/config.h" $ac_file
  9631     fi
  9632   else
  9633     echo "/* $configure_input  */"
  9634     cat "$ac_result"
  9635   fi
  9636   rm -f "$tmp/out12"
  9637 # Compute $ac_file's index in $config_headers.
  9638 _am_stamp_count=1
  9639 for _am_header in $config_headers :; do
  9640   case $_am_header in
  9641     $ac_file | $ac_file:* )
  9642       break ;;
  9643     * )
  9644       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9645   esac
  9646 done
  9647 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  9648 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9649 	 X$ac_file : 'X\(//\)[^/]' \| \
  9650 	 X$ac_file : 'X\(//\)$' \| \
  9651 	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  9652 echo X$ac_file |
  9653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9654 	    s//\1/
  9657 	  /^X\(\/\/\)[^/].*/{
  9658 	    s//\1/
  9661 	  /^X\(\/\/\)$/{
  9662 	    s//\1/
  9665 	  /^X\(\/\).*/{
  9666 	    s//\1/
  9669 	  s/.*/./; q'`/stamp-h$_am_stamp_count
  9670  ;;
  9672   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  9673 echo "$as_me: executing $ac_file commands" >&6;}
  9674  ;;
  9675   esac
  9678   case $ac_file$ac_mode in
  9679     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  9680   # Strip MF so we end up with the name of the file.
  9681   mf=`echo "$mf" | sed -e 's/:.*$//'`
  9682   # Check whether this is an Automake generated Makefile or not.
  9683   # We used to match only the files named `Makefile.in', but
  9684   # some people rename them; so instead we look at the file content.
  9685   # Grep'ing the first line is not enough: some people post-process
  9686   # each Makefile.in and add a new line on top of each file to say so.
  9687   # So let's grep whole file.
  9688   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  9689     dirpart=`$as_dirname -- "$mf" ||
  9690 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9691 	 X"$mf" : 'X\(//\)[^/]' \| \
  9692 	 X"$mf" : 'X\(//\)$' \| \
  9693 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  9694 echo X"$mf" |
  9695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9696 	    s//\1/
  9699 	  /^X\(\/\/\)[^/].*/{
  9700 	    s//\1/
  9703 	  /^X\(\/\/\)$/{
  9704 	    s//\1/
  9707 	  /^X\(\/\).*/{
  9708 	    s//\1/
  9711 	  s/.*/./; q'`
  9712   else
  9713     continue
  9714   fi
  9715   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  9716   # Extract the definition of DEP_FILES from the Makefile without
  9717   # running `make'.
  9718   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  9719   test -z "$DEPDIR" && continue
  9720   # When using ansi2knr, U may be empty or an underscore; expand it
  9721   U=`sed -n -e '/^U = / s///p' < "$mf"`
  9722   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  9723   # We invoke sed twice because it is the simplest approach to
  9724   # changing $(DEPDIR) to its actual value in the expansion.
  9725   for file in `sed -n -e '
  9726     /^DEP_FILES = .*\\\\$/ {
  9727       s/^DEP_FILES = //
  9728       :loop
  9729 	s/\\\\$//
  9732 	/\\\\$/ b loop
  9735     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  9736        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  9737     # Make sure the directory exists.
  9738     test -f "$dirpart/$file" && continue
  9739     fdir=`$as_dirname -- "$file" ||
  9740 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9741 	 X"$file" : 'X\(//\)[^/]' \| \
  9742 	 X"$file" : 'X\(//\)$' \| \
  9743 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  9744 echo X"$file" |
  9745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9746 	    s//\1/
  9749 	  /^X\(\/\/\)[^/].*/{
  9750 	    s//\1/
  9753 	  /^X\(\/\/\)$/{
  9754 	    s//\1/
  9757 	  /^X\(\/\).*/{
  9758 	    s//\1/
  9761 	  s/.*/./; q'`
  9762     { as_dir=$dirpart/$fdir
  9763   case $as_dir in #(
  9764   -*) as_dir=./$as_dir;;
  9765   esac
  9766   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  9767     as_dirs=
  9768     while :; do
  9769       case $as_dir in #(
  9770       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  9771       *) as_qdir=$as_dir;;
  9772       esac
  9773       as_dirs="'$as_qdir' $as_dirs"
  9774       as_dir=`$as_dirname -- "$as_dir" ||
  9775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9776 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  9777 	 X"$as_dir" : 'X\(//\)$' \| \
  9778 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9779 echo X"$as_dir" |
  9780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9781 	    s//\1/
  9784 	  /^X\(\/\/\)[^/].*/{
  9785 	    s//\1/
  9788 	  /^X\(\/\/\)$/{
  9789 	    s//\1/
  9792 	  /^X\(\/\).*/{
  9793 	    s//\1/
  9796 	  s/.*/./; q'`
  9797       test -d "$as_dir" && break
  9798     done
  9799     test -z "$as_dirs" || eval "mkdir $as_dirs"
  9800   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  9801 echo "$as_me: error: cannot create directory $as_dir" >&2;}
  9802    { (exit 1); exit 1; }; }; }
  9803     # echo "creating $dirpart/$file"
  9804     echo '# dummy' > "$dirpart/$file"
  9805   done
  9806 done
  9807  ;;
  9808     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
  9809         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  9810       esac ;;
  9812   esac
  9813 done # for ac_tag
  9816 { (exit 0); exit 0; }
  9817 _ACEOF
  9818 chmod +x $CONFIG_STATUS
  9819 ac_clean_files=$ac_clean_files_save
  9822 # configure is writing to config.log, and then calls config.status.
  9823 # config.status does its own redirection, appending to config.log.
  9824 # Unfortunately, on DOS this fails, as config.log is still kept open
  9825 # by configure, so config.status won't be able to write to it; its
  9826 # output is simply discarded.  So we exec the FD to /dev/null,
  9827 # effectively closing config.log, so it can be properly (re)opened and
  9828 # appended to by config.status.  When coming back to configure, we
  9829 # need to make the FD available again.
  9830 if test "$no_create" != yes; then
  9831   ac_cs_success=:
  9832   ac_config_status_args=
  9833   test "$silent" = yes &&
  9834     ac_config_status_args="$ac_config_status_args --quiet"
  9835   exec 5>/dev/null
  9836   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9837   exec 5>>config.log
  9838   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9839   # would make configure fail if this is the last instruction.
  9840   $ac_cs_success || { (exit 1); exit 1; }
  9841 fi
.