Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1245:01e0020adf88
prev1239:be3121267597
next1255:d63f73cc586f
author nkeynes
date Sat Mar 03 16:16:57 2012 +1000 (12 years ago)
permissions -rwxr-xr-x
last change Include precision spec for GLES only
view annotate diff log raw
     1 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.61.
     4 #
     5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     7 # This configure script is free software; the Free Software Foundation
     8 # gives unlimited permission to copy, distribute and modify it.
     9 ## --------------------- ##
    10 ## M4sh Initialization.  ##
    11 ## --------------------- ##
    13 # Be more Bourne compatible
    14 DUALCASE=1; export DUALCASE # for MKS sh
    15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    16   emulate sh
    17   NULLCMD=:
    18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    19   # is contrary to our usage.  Disable this feature.
    20   alias -g '${1+"$@"}'='"$@"'
    21   setopt NO_GLOB_SUBST
    22 else
    23   case `(set -o) 2>/dev/null` in
    24   *posix*) set -o posix ;;
    25 esac
    27 fi
    32 # PATH needs CR
    33 # Avoid depending upon Character Ranges.
    34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    37 as_cr_digits='0123456789'
    38 as_cr_alnum=$as_cr_Letters$as_cr_digits
    40 # The user is always right.
    41 if test "${PATH_SEPARATOR+set}" != set; then
    42   echo "#! /bin/sh" >conf$$.sh
    43   echo  "exit 0"   >>conf$$.sh
    44   chmod +x conf$$.sh
    45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    46     PATH_SEPARATOR=';'
    47   else
    48     PATH_SEPARATOR=:
    49   fi
    50   rm -f conf$$.sh
    51 fi
    53 # Support unset when possible.
    54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    55   as_unset=unset
    56 else
    57   as_unset=false
    58 fi
    61 # IFS
    62 # We need space, tab and new line, in precisely that order.  Quoting is
    63 # there to prevent editors from complaining about space-tab.
    64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    65 # splitting by setting IFS to empty value.)
    66 as_nl='
    67 '
    68 IFS=" ""	$as_nl"
    70 # Find who we are.  Look in the path if we contain no directory separator.
    71 case $0 in
    72   *[\\/]* ) as_myself=$0 ;;
    73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    74 for as_dir in $PATH
    75 do
    76   IFS=$as_save_IFS
    77   test -z "$as_dir" && as_dir=.
    78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    79 done
    80 IFS=$as_save_IFS
    82      ;;
    83 esac
    84 # We did not find ourselves, most probably we were run as `sh COMMAND'
    85 # in which case we are not to be found in the path.
    86 if test "x$as_myself" = x; then
    87   as_myself=$0
    88 fi
    89 if test ! -f "$as_myself"; then
    90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    91   { (exit 1); exit 1; }
    92 fi
    94 # Work around bugs in pre-3.0 UWIN ksh.
    95 for as_var in ENV MAIL MAILPATH
    96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    97 done
    98 PS1='$ '
    99 PS2='> '
   100 PS4='+ '
   102 # NLS nuisances.
   103 for as_var in \
   104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   106   LC_TELEPHONE LC_TIME
   107 do
   108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   109     eval $as_var=C; export $as_var
   110   else
   111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   112   fi
   113 done
   115 # Required to use basename.
   116 if expr a : '\(a\)' >/dev/null 2>&1 &&
   117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   118   as_expr=expr
   119 else
   120   as_expr=false
   121 fi
   123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   124   as_basename=basename
   125 else
   126   as_basename=false
   127 fi
   130 # Name of the executable.
   131 as_me=`$as_basename -- "$0" ||
   132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   133 	 X"$0" : 'X\(//\)$' \| \
   134 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   135 echo X/"$0" |
   136     sed '/^.*\/\([^/][^/]*\)\/*$/{
   137 	    s//\1/
   138 	    q
   139 	  }
   140 	  /^X\/\(\/\/\)$/{
   141 	    s//\1/
   142 	    q
   143 	  }
   144 	  /^X\/\(\/\).*/{
   145 	    s//\1/
   146 	    q
   147 	  }
   148 	  s/.*/./; q'`
   150 # CDPATH.
   151 $as_unset CDPATH
   154 if test "x$CONFIG_SHELL" = x; then
   155   if (eval ":") 2>/dev/null; then
   156   as_have_required=yes
   157 else
   158   as_have_required=no
   159 fi
   161   if test $as_have_required = yes && 	 (eval ":
   162 (as_func_return () {
   163   (exit \$1)
   164 }
   165 as_func_success () {
   166   as_func_return 0
   167 }
   168 as_func_failure () {
   169   as_func_return 1
   170 }
   171 as_func_ret_success () {
   172   return 0
   173 }
   174 as_func_ret_failure () {
   175   return 1
   176 }
   178 exitcode=0
   179 if as_func_success; then
   180   :
   181 else
   182   exitcode=1
   183   echo as_func_success failed.
   184 fi
   186 if as_func_failure; then
   187   exitcode=1
   188   echo as_func_failure succeeded.
   189 fi
   191 if as_func_ret_success; then
   192   :
   193 else
   194   exitcode=1
   195   echo as_func_ret_success failed.
   196 fi
   198 if as_func_ret_failure; then
   199   exitcode=1
   200   echo as_func_ret_failure succeeded.
   201 fi
   203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   204   :
   205 else
   206   exitcode=1
   207   echo positional parameters were not saved.
   208 fi
   210 test \$exitcode = 0) || { (exit 1); exit 1; }
   212 (
   213   as_lineno_1=\$LINENO
   214   as_lineno_2=\$LINENO
   215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
   216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
   217 ") 2> /dev/null; then
   218   :
   219 else
   220   as_candidate_shells=
   221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   223 do
   224   IFS=$as_save_IFS
   225   test -z "$as_dir" && as_dir=.
   226   case $as_dir in
   227 	 /*)
   228 	   for as_base in sh bash ksh sh5; do
   229 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
   230 	   done;;
   231        esac
   232 done
   233 IFS=$as_save_IFS
   236       for as_shell in $as_candidate_shells $SHELL; do
   237 	 # Try only shells that exist, to save several forks.
   238 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   239 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
   240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   241   emulate sh
   242   NULLCMD=:
   243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   244   # is contrary to our usage.  Disable this feature.
   245   alias -g '${1+"$@"}'='"$@"'
   246   setopt NO_GLOB_SUBST
   247 else
   248   case `(set -o) 2>/dev/null` in
   249   *posix*) set -o posix ;;
   250 esac
   252 fi
   255 :
   256 _ASEOF
   257 }; then
   258   CONFIG_SHELL=$as_shell
   259 	       as_have_required=yes
   260 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
   261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   262   emulate sh
   263   NULLCMD=:
   264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   265   # is contrary to our usage.  Disable this feature.
   266   alias -g '${1+"$@"}'='"$@"'
   267   setopt NO_GLOB_SUBST
   268 else
   269   case `(set -o) 2>/dev/null` in
   270   *posix*) set -o posix ;;
   271 esac
   273 fi
   276 :
   277 (as_func_return () {
   278   (exit $1)
   279 }
   280 as_func_success () {
   281   as_func_return 0
   282 }
   283 as_func_failure () {
   284   as_func_return 1
   285 }
   286 as_func_ret_success () {
   287   return 0
   288 }
   289 as_func_ret_failure () {
   290   return 1
   291 }
   293 exitcode=0
   294 if as_func_success; then
   295   :
   296 else
   297   exitcode=1
   298   echo as_func_success failed.
   299 fi
   301 if as_func_failure; then
   302   exitcode=1
   303   echo as_func_failure succeeded.
   304 fi
   306 if as_func_ret_success; then
   307   :
   308 else
   309   exitcode=1
   310   echo as_func_ret_success failed.
   311 fi
   313 if as_func_ret_failure; then
   314   exitcode=1
   315   echo as_func_ret_failure succeeded.
   316 fi
   318 if ( set x; as_func_ret_success y && test x = "$1" ); then
   319   :
   320 else
   321   exitcode=1
   322   echo positional parameters were not saved.
   323 fi
   325 test $exitcode = 0) || { (exit 1); exit 1; }
   327 (
   328   as_lineno_1=$LINENO
   329   as_lineno_2=$LINENO
   330   test "x$as_lineno_1" != "x$as_lineno_2" &&
   331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
   333 _ASEOF
   334 }; then
   335   break
   336 fi
   338 fi
   340       done
   342       if test "x$CONFIG_SHELL" != x; then
   343   for as_var in BASH_ENV ENV
   344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   345         done
   346         export CONFIG_SHELL
   347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   348 fi
   351     if test $as_have_required = no; then
   352   echo This script requires a shell more modern than all the
   353       echo shells that I found on your system.  Please install a
   354       echo modern shell, or manually run the script under such a
   355       echo shell if you do have one.
   356       { (exit 1); exit 1; }
   357 fi
   360 fi
   362 fi
   366 (eval "as_func_return () {
   367   (exit \$1)
   368 }
   369 as_func_success () {
   370   as_func_return 0
   371 }
   372 as_func_failure () {
   373   as_func_return 1
   374 }
   375 as_func_ret_success () {
   376   return 0
   377 }
   378 as_func_ret_failure () {
   379   return 1
   380 }
   382 exitcode=0
   383 if as_func_success; then
   384   :
   385 else
   386   exitcode=1
   387   echo as_func_success failed.
   388 fi
   390 if as_func_failure; then
   391   exitcode=1
   392   echo as_func_failure succeeded.
   393 fi
   395 if as_func_ret_success; then
   396   :
   397 else
   398   exitcode=1
   399   echo as_func_ret_success failed.
   400 fi
   402 if as_func_ret_failure; then
   403   exitcode=1
   404   echo as_func_ret_failure succeeded.
   405 fi
   407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   408   :
   409 else
   410   exitcode=1
   411   echo positional parameters were not saved.
   412 fi
   414 test \$exitcode = 0") || {
   415   echo No shell found that supports shell functions.
   416   echo Please tell autoconf@gnu.org about your system,
   417   echo including any error possibly output before this
   418   echo message
   419 }
   423   as_lineno_1=$LINENO
   424   as_lineno_2=$LINENO
   425   test "x$as_lineno_1" != "x$as_lineno_2" &&
   426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   429   # uniformly replaced by the line number.  The first 'sed' inserts a
   430   # line-number line after each line using $LINENO; the second 'sed'
   431   # does the real work.  The second script uses 'N' to pair each
   432   # line-number line with the line containing $LINENO, and appends
   433   # trailing '-' during substitution so that $LINENO is not a special
   434   # case at line end.
   435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   437   # E. McMahon (1931-1989) for sed's syntax.  :-)
   438   sed -n '
   439     p
   440     /[$]LINENO/=
   441   ' <$as_myself |
   442     sed '
   443       s/[$]LINENO.*/&-/
   444       t lineno
   445       b
   446       :lineno
   447       N
   448       :loop
   449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   450       t loop
   451       s/-\n.*//
   452     ' >$as_me.lineno &&
   453   chmod +x "$as_me.lineno" ||
   454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   455    { (exit 1); exit 1; }; }
   457   # Don't try to exec as it changes $[0], causing all sort of problems
   458   # (the dirname of $[0] is not the place where we might find the
   459   # original and so on.  Autoconf is especially sensitive to this).
   460   . "./$as_me.lineno"
   461   # Exit status is that of the last command.
   462   exit
   463 }
   466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   467   as_dirname=dirname
   468 else
   469   as_dirname=false
   470 fi
   472 ECHO_C= ECHO_N= ECHO_T=
   473 case `echo -n x` in
   474 -n*)
   475   case `echo 'x\c'` in
   476   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   477   *)   ECHO_C='\c';;
   478   esac;;
   479 *)
   480   ECHO_N='-n';;
   481 esac
   483 if expr a : '\(a\)' >/dev/null 2>&1 &&
   484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   485   as_expr=expr
   486 else
   487   as_expr=false
   488 fi
   490 rm -f conf$$ conf$$.exe conf$$.file
   491 if test -d conf$$.dir; then
   492   rm -f conf$$.dir/conf$$.file
   493 else
   494   rm -f conf$$.dir
   495   mkdir conf$$.dir
   496 fi
   497 echo >conf$$.file
   498 if ln -s conf$$.file conf$$ 2>/dev/null; then
   499   as_ln_s='ln -s'
   500   # ... but there are two gotchas:
   501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   503   # In both cases, we have to default to `cp -p'.
   504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   505     as_ln_s='cp -p'
   506 elif ln conf$$.file conf$$ 2>/dev/null; then
   507   as_ln_s=ln
   508 else
   509   as_ln_s='cp -p'
   510 fi
   511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   512 rmdir conf$$.dir 2>/dev/null
   514 if mkdir -p . 2>/dev/null; then
   515   as_mkdir_p=:
   516 else
   517   test -d ./-p && rmdir ./-p
   518   as_mkdir_p=false
   519 fi
   521 if test -x / >/dev/null 2>&1; then
   522   as_test_x='test -x'
   523 else
   524   if ls -dL / >/dev/null 2>&1; then
   525     as_ls_L_option=L
   526   else
   527     as_ls_L_option=
   528   fi
   529   as_test_x='
   530     eval sh -c '\''
   531       if test -d "$1"; then
   532         test -d "$1/.";
   533       else
   534 	case $1 in
   535         -*)set "./$1";;
   536 	esac;
   537 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   538 	???[sx]*):;;*)false;;esac;fi
   539     '\'' sh
   540   '
   541 fi
   542 as_executable_p=$as_test_x
   544 # Sed expression to map a string onto a valid CPP name.
   545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   547 # Sed expression to map a string onto a valid variable name.
   548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   552 exec 7<&0 </dev/null 6>&1
   554 # Name of the host.
   555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   556 # so uname gets run too.
   557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   559 #
   560 # Initializations.
   561 #
   562 ac_default_prefix=/usr/local
   563 ac_clean_files=
   564 ac_config_libobj_dir=.
   565 LIBOBJS=
   566 cross_compiling=no
   567 subdirs=
   568 MFLAGS=
   569 MAKEFLAGS=
   570 SHELL=${CONFIG_SHELL-/bin/sh}
   572 # Identity of this package.
   573 PACKAGE_NAME=
   574 PACKAGE_TARNAME=
   575 PACKAGE_VERSION=
   576 PACKAGE_STRING=
   577 PACKAGE_BUGREPORT=
   579 ac_unique_file="configure.in"
   580 # Factoring default headers for most tests.
   581 ac_includes_default="\
   582 #include <stdio.h>
   583 #ifdef HAVE_SYS_TYPES_H
   584 # include <sys/types.h>
   585 #endif
   586 #ifdef HAVE_SYS_STAT_H
   587 # include <sys/stat.h>
   588 #endif
   589 #ifdef STDC_HEADERS
   590 # include <stdlib.h>
   591 # include <stddef.h>
   592 #else
   593 # ifdef HAVE_STDLIB_H
   594 #  include <stdlib.h>
   595 # endif
   596 #endif
   597 #ifdef HAVE_STRING_H
   598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   599 #  include <memory.h>
   600 # endif
   601 # include <string.h>
   602 #endif
   603 #ifdef HAVE_STRINGS_H
   604 # include <strings.h>
   605 #endif
   606 #ifdef HAVE_INTTYPES_H
   607 # include <inttypes.h>
   608 #endif
   609 #ifdef HAVE_STDINT_H
   610 # include <stdint.h>
   611 #endif
   612 #ifdef HAVE_UNISTD_H
   613 # include <unistd.h>
   614 #endif"
   616 ac_subst_vars='SHELL
   617 PATH_SEPARATOR
   618 PACKAGE_NAME
   619 PACKAGE_TARNAME
   620 PACKAGE_VERSION
   621 PACKAGE_STRING
   622 PACKAGE_BUGREPORT
   623 exec_prefix
   624 prefix
   625 program_transform_name
   626 bindir
   627 sbindir
   628 libexecdir
   629 datarootdir
   630 datadir
   631 sysconfdir
   632 sharedstatedir
   633 localstatedir
   634 includedir
   635 oldincludedir
   636 docdir
   637 infodir
   638 htmldir
   639 dvidir
   640 pdfdir
   641 psdir
   642 libdir
   643 localedir
   644 mandir
   645 DEFS
   646 ECHO_C
   647 ECHO_N
   648 ECHO_T
   649 LIBS
   650 build_alias
   651 host_alias
   652 target_alias
   653 INSTALL_PROGRAM
   654 INSTALL_SCRIPT
   655 INSTALL_DATA
   656 CYGPATH_W
   657 PACKAGE
   658 VERSION
   659 ACLOCAL
   660 AUTOCONF
   661 AUTOMAKE
   662 AUTOHEADER
   663 MAKEINFO
   664 install_sh
   665 STRIP
   666 INSTALL_STRIP_PROGRAM
   667 mkdir_p
   668 AWK
   669 SET_MAKE
   670 am__leading_dot
   671 AMTAR
   672 am__tar
   673 am__untar
   674 MAINTAINER_MODE_TRUE
   675 MAINTAINER_MODE_FALSE
   676 MAINT
   677 build
   678 build_cpu
   679 build_vendor
   680 build_os
   681 host
   682 host_cpu
   683 host_vendor
   684 host_os
   685 ANT
   686 ANDROID_SDK_HOME
   687 ANDROID_NDK_HOME
   688 ANDROID_SDK_VERSION
   689 ANDROID_NDK_VERSION
   690 ANDROID_GDBSERVER
   691 GUI_ANDROID_TRUE
   692 GUI_ANDROID_FALSE
   693 CC
   694 CFLAGS
   695 LDFLAGS
   696 CPPFLAGS
   697 ac_ct_CC
   698 EXEEXT
   699 OBJEXT
   700 DEPDIR
   701 am__include
   702 am__quote
   703 AMDEP_TRUE
   704 AMDEP_FALSE
   705 AMDEPBACKSLASH
   706 CCDEPMODE
   707 am__fastdepCC_TRUE
   708 am__fastdepCC_FALSE
   709 CPP
   710 CC
   711 CFLAGS
   712 CPPFLAGS
   713 CC_FOR_BUILD
   714 ac_ct_CC_FOR_BUILD
   715 CC_FOR_BUILDDEPMODE
   716 am__fastdepCC_FOR_BUILD_TRUE
   717 am__fastdepCC_FOR_BUILD_FALSE
   718 CPP
   719 CPPFLAGS
   720 CPP_FOR_BUILD
   721 BUILD_EXEEXT
   722 BUILD_OBJEXT
   723 CFLAGS_FOR_BUILD
   724 CPPFLAGS_FOR_BUILD
   725 OBJC
   726 OBJCFLAGS
   727 ac_ct_OBJC
   728 SED
   729 CCAS
   730 CCASFLAGS
   731 RANLIB
   732 GREP
   733 EGREP
   734 OBJCDEPMODE
   735 am__fastdepOBJC_TRUE
   736 am__fastdepOBJC_FALSE
   737 POD2MAN
   738 POD2HTML
   739 GUI_COCOA_TRUE
   740 GUI_COCOA_FALSE
   741 SOEXT
   742 PLUGINCFLAGS
   743 PLUGINLDFLAGS
   744 LXDREAMLDFLAGS
   745 BUILD_PLUGINS_TRUE
   746 BUILD_PLUGINS_FALSE
   747 LXDREAMCPPFLAGS
   748 PKG_CONFIG
   749 LIBPNG_CFLAGS
   750 LIBPNG_LIBS
   751 GLIB_CFLAGS
   752 GLIB_LIBS
   753 GTK_CFLAGS
   754 GTK_LIBS
   755 GLIB_FOR_BUILD_CFLAGS
   756 GLIB_FOR_BUILD_LIBS
   757 GUI_GTK_TRUE
   758 GUI_GTK_FALSE
   759 LIBISOFS_CFLAGS
   760 LIBISOFS_LIBS
   761 LIBGL_CFLAGS
   762 LIBGL_LIBS
   763 VIDEO_OSMESA_TRUE
   764 VIDEO_OSMESA_FALSE
   765 VIDEO_GLX_TRUE
   766 VIDEO_GLX_FALSE
   767 VIDEO_NSGL_TRUE
   768 VIDEO_NSGL_FALSE
   769 BUILD_SH4X86_TRUE
   770 BUILD_SH4X86_FALSE
   771 AUDIO_OSX_TRUE
   772 AUDIO_OSX_FALSE
   773 SDL_CFLAGS
   774 SDL_LIBS
   775 AUDIO_SDL_TRUE
   776 AUDIO_SDL_FALSE
   777 PULSE_CFLAGS
   778 PULSE_LIBS
   779 AUDIO_PULSE_TRUE
   780 AUDIO_PULSE_FALSE
   781 ESOUND_CFLAGS
   782 ESOUND_LIBS
   783 AUDIO_ESOUND_TRUE
   784 AUDIO_ESOUND_FALSE
   785 ALSA_CFLAGS
   786 ALSA_LIBS
   787 AUDIO_ALSA_TRUE
   788 AUDIO_ALSA_FALSE
   789 CDROM_LINUX_TRUE
   790 CDROM_LINUX_FALSE
   791 CDROM_OSX_TRUE
   792 CDROM_OSX_FALSE
   793 CDROM_NONE_TRUE
   794 CDROM_NONE_FALSE
   795 JOY_LINUX_TRUE
   796 JOY_LINUX_FALSE
   797 INPUT_LIRC_TRUE
   798 INPUT_LIRC_FALSE
   799 SHCC
   800 SHLD
   801 SHOBJCOPY
   802 ARMCC
   803 ARMLD
   804 ARMOBJCOPY
   805 BUILD_SYSTEST_TRUE
   806 BUILD_SYSTEST_FALSE
   807 BUILD_ARMTEST_TRUE
   808 BUILD_ARMTEST_FALSE
   809 LXDREAM_LIBS
   810 GETTEXT_PACKAGE
   811 USE_NLS
   812 MSGFMT
   813 MSGFMT_OPTS
   814 GMSGFMT
   815 XGETTEXT
   816 CATALOGS
   817 CATOBJEXT
   818 DATADIRNAME
   819 GMOFILES
   820 INSTOBJEXT
   821 INTLLIBS
   822 PO_IN_DATADIR_TRUE
   823 PO_IN_DATADIR_FALSE
   824 POFILES
   825 POSUB
   826 MKINSTALLDIRS
   827 LIBOBJS
   828 LTLIBOBJS'
   829 ac_subst_files=''
   830       ac_precious_vars='build_alias
   831 host_alias
   832 target_alias
   833 CC
   834 CFLAGS
   835 LDFLAGS
   836 LIBS
   837 CPPFLAGS
   838 CPP
   839 CC
   840 CFLAGS
   841 CPPFLAGS
   842 CPP
   843 CPPFLAGS
   844 OBJC
   845 OBJCFLAGS
   846 CCAS
   847 CCASFLAGS
   848 PKG_CONFIG
   849 LIBPNG_CFLAGS
   850 LIBPNG_LIBS
   851 GLIB_CFLAGS
   852 GLIB_LIBS
   853 GTK_CFLAGS
   854 GTK_LIBS
   855 GLIB_FOR_BUILD_CFLAGS
   856 GLIB_FOR_BUILD_LIBS
   857 LIBISOFS_CFLAGS
   858 LIBISOFS_LIBS
   859 LIBGL_CFLAGS
   860 LIBGL_LIBS
   861 SDL_CFLAGS
   862 SDL_LIBS
   863 PULSE_CFLAGS
   864 PULSE_LIBS
   865 ESOUND_CFLAGS
   866 ESOUND_LIBS
   867 ALSA_CFLAGS
   868 ALSA_LIBS'
   871 # Initialize some variables set by options.
   872 ac_init_help=
   873 ac_init_version=false
   874 # The variables have the same names as the options, with
   875 # dashes changed to underlines.
   876 cache_file=/dev/null
   877 exec_prefix=NONE
   878 no_create=
   879 no_recursion=
   880 prefix=NONE
   881 program_prefix=NONE
   882 program_suffix=NONE
   883 program_transform_name=s,x,x,
   884 silent=
   885 site=
   886 srcdir=
   887 verbose=
   888 x_includes=NONE
   889 x_libraries=NONE
   891 # Installation directory options.
   892 # These are left unexpanded so users can "make install exec_prefix=/foo"
   893 # and all the variables that are supposed to be based on exec_prefix
   894 # by default will actually change.
   895 # Use braces instead of parens because sh, perl, etc. also accept them.
   896 # (The list follows the same order as the GNU Coding Standards.)
   897 bindir='${exec_prefix}/bin'
   898 sbindir='${exec_prefix}/sbin'
   899 libexecdir='${exec_prefix}/libexec'
   900 datarootdir='${prefix}/share'
   901 datadir='${datarootdir}'
   902 sysconfdir='${prefix}/etc'
   903 sharedstatedir='${prefix}/com'
   904 localstatedir='${prefix}/var'
   905 includedir='${prefix}/include'
   906 oldincludedir='/usr/include'
   907 docdir='${datarootdir}/doc/${PACKAGE}'
   908 infodir='${datarootdir}/info'
   909 htmldir='${docdir}'
   910 dvidir='${docdir}'
   911 pdfdir='${docdir}'
   912 psdir='${docdir}'
   913 libdir='${exec_prefix}/lib'
   914 localedir='${datarootdir}/locale'
   915 mandir='${datarootdir}/man'
   917 ac_prev=
   918 ac_dashdash=
   919 for ac_option
   920 do
   921   # If the previous option needs an argument, assign it.
   922   if test -n "$ac_prev"; then
   923     eval $ac_prev=\$ac_option
   924     ac_prev=
   925     continue
   926   fi
   928   case $ac_option in
   929   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   930   *)	ac_optarg=yes ;;
   931   esac
   933   # Accept the important Cygnus configure options, so we can diagnose typos.
   935   case $ac_dashdash$ac_option in
   936   --)
   937     ac_dashdash=yes ;;
   939   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   940     ac_prev=bindir ;;
   941   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   942     bindir=$ac_optarg ;;
   944   -build | --build | --buil | --bui | --bu)
   945     ac_prev=build_alias ;;
   946   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   947     build_alias=$ac_optarg ;;
   949   -cache-file | --cache-file | --cache-fil | --cache-fi \
   950   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   951     ac_prev=cache_file ;;
   952   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   953   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   954     cache_file=$ac_optarg ;;
   956   --config-cache | -C)
   957     cache_file=config.cache ;;
   959   -datadir | --datadir | --datadi | --datad)
   960     ac_prev=datadir ;;
   961   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   962     datadir=$ac_optarg ;;
   964   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   965   | --dataroo | --dataro | --datar)
   966     ac_prev=datarootdir ;;
   967   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   968   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   969     datarootdir=$ac_optarg ;;
   971   -disable-* | --disable-*)
   972     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   973     # Reject names that are not valid shell variable names.
   974     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   975       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   976    { (exit 1); exit 1; }; }
   977     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   978     eval enable_$ac_feature=no ;;
   980   -docdir | --docdir | --docdi | --doc | --do)
   981     ac_prev=docdir ;;
   982   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   983     docdir=$ac_optarg ;;
   985   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   986     ac_prev=dvidir ;;
   987   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   988     dvidir=$ac_optarg ;;
   990   -enable-* | --enable-*)
   991     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   992     # Reject names that are not valid shell variable names.
   993     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   994       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   995    { (exit 1); exit 1; }; }
   996     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   997     eval enable_$ac_feature=\$ac_optarg ;;
   999   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1000   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1001   | --exec | --exe | --ex)
  1002     ac_prev=exec_prefix ;;
  1003   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1004   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1005   | --exec=* | --exe=* | --ex=*)
  1006     exec_prefix=$ac_optarg ;;
  1008   -gas | --gas | --ga | --g)
  1009     # Obsolete; use --with-gas.
  1010     with_gas=yes ;;
  1012   -help | --help | --hel | --he | -h)
  1013     ac_init_help=long ;;
  1014   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1015     ac_init_help=recursive ;;
  1016   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1017     ac_init_help=short ;;
  1019   -host | --host | --hos | --ho)
  1020     ac_prev=host_alias ;;
  1021   -host=* | --host=* | --hos=* | --ho=*)
  1022     host_alias=$ac_optarg ;;
  1024   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1025     ac_prev=htmldir ;;
  1026   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1027   | --ht=*)
  1028     htmldir=$ac_optarg ;;
  1030   -includedir | --includedir | --includedi | --included | --include \
  1031   | --includ | --inclu | --incl | --inc)
  1032     ac_prev=includedir ;;
  1033   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1034   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1035     includedir=$ac_optarg ;;
  1037   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1038     ac_prev=infodir ;;
  1039   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1040     infodir=$ac_optarg ;;
  1042   -libdir | --libdir | --libdi | --libd)
  1043     ac_prev=libdir ;;
  1044   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1045     libdir=$ac_optarg ;;
  1047   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1048   | --libexe | --libex | --libe)
  1049     ac_prev=libexecdir ;;
  1050   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1051   | --libexe=* | --libex=* | --libe=*)
  1052     libexecdir=$ac_optarg ;;
  1054   -localedir | --localedir | --localedi | --localed | --locale)
  1055     ac_prev=localedir ;;
  1056   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1057     localedir=$ac_optarg ;;
  1059   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1060   | --localstate | --localstat | --localsta | --localst | --locals)
  1061     ac_prev=localstatedir ;;
  1062   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1063   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1064     localstatedir=$ac_optarg ;;
  1066   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1067     ac_prev=mandir ;;
  1068   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1069     mandir=$ac_optarg ;;
  1071   -nfp | --nfp | --nf)
  1072     # Obsolete; use --without-fp.
  1073     with_fp=no ;;
  1075   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1076   | --no-cr | --no-c | -n)
  1077     no_create=yes ;;
  1079   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1080   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1081     no_recursion=yes ;;
  1083   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1084   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1085   | --oldin | --oldi | --old | --ol | --o)
  1086     ac_prev=oldincludedir ;;
  1087   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1088   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1089   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1090     oldincludedir=$ac_optarg ;;
  1092   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1093     ac_prev=prefix ;;
  1094   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1095     prefix=$ac_optarg ;;
  1097   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1098   | --program-pre | --program-pr | --program-p)
  1099     ac_prev=program_prefix ;;
  1100   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1101   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1102     program_prefix=$ac_optarg ;;
  1104   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1105   | --program-suf | --program-su | --program-s)
  1106     ac_prev=program_suffix ;;
  1107   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1108   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1109     program_suffix=$ac_optarg ;;
  1111   -program-transform-name | --program-transform-name \
  1112   | --program-transform-nam | --program-transform-na \
  1113   | --program-transform-n | --program-transform- \
  1114   | --program-transform | --program-transfor \
  1115   | --program-transfo | --program-transf \
  1116   | --program-trans | --program-tran \
  1117   | --progr-tra | --program-tr | --program-t)
  1118     ac_prev=program_transform_name ;;
  1119   -program-transform-name=* | --program-transform-name=* \
  1120   | --program-transform-nam=* | --program-transform-na=* \
  1121   | --program-transform-n=* | --program-transform-=* \
  1122   | --program-transform=* | --program-transfor=* \
  1123   | --program-transfo=* | --program-transf=* \
  1124   | --program-trans=* | --program-tran=* \
  1125   | --progr-tra=* | --program-tr=* | --program-t=*)
  1126     program_transform_name=$ac_optarg ;;
  1128   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1129     ac_prev=pdfdir ;;
  1130   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1131     pdfdir=$ac_optarg ;;
  1133   -psdir | --psdir | --psdi | --psd | --ps)
  1134     ac_prev=psdir ;;
  1135   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1136     psdir=$ac_optarg ;;
  1138   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1139   | -silent | --silent | --silen | --sile | --sil)
  1140     silent=yes ;;
  1142   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1143     ac_prev=sbindir ;;
  1144   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1145   | --sbi=* | --sb=*)
  1146     sbindir=$ac_optarg ;;
  1148   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1149   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1150   | --sharedst | --shareds | --shared | --share | --shar \
  1151   | --sha | --sh)
  1152     ac_prev=sharedstatedir ;;
  1153   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1154   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1155   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1156   | --sha=* | --sh=*)
  1157     sharedstatedir=$ac_optarg ;;
  1159   -site | --site | --sit)
  1160     ac_prev=site ;;
  1161   -site=* | --site=* | --sit=*)
  1162     site=$ac_optarg ;;
  1164   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1165     ac_prev=srcdir ;;
  1166   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1167     srcdir=$ac_optarg ;;
  1169   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1170   | --syscon | --sysco | --sysc | --sys | --sy)
  1171     ac_prev=sysconfdir ;;
  1172   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1173   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1174     sysconfdir=$ac_optarg ;;
  1176   -target | --target | --targe | --targ | --tar | --ta | --t)
  1177     ac_prev=target_alias ;;
  1178   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1179     target_alias=$ac_optarg ;;
  1181   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1182     verbose=yes ;;
  1184   -version | --version | --versio | --versi | --vers | -V)
  1185     ac_init_version=: ;;
  1187   -with-* | --with-*)
  1188     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1189     # Reject names that are not valid shell variable names.
  1190     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1191       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1192    { (exit 1); exit 1; }; }
  1193     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1194     eval with_$ac_package=\$ac_optarg ;;
  1196   -without-* | --without-*)
  1197     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1198     # Reject names that are not valid shell variable names.
  1199     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1200       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1201    { (exit 1); exit 1; }; }
  1202     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1203     eval with_$ac_package=no ;;
  1205   --x)
  1206     # Obsolete; use --with-x.
  1207     with_x=yes ;;
  1209   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1210   | --x-incl | --x-inc | --x-in | --x-i)
  1211     ac_prev=x_includes ;;
  1212   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1213   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1214     x_includes=$ac_optarg ;;
  1216   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1217   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1218     ac_prev=x_libraries ;;
  1219   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1220   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1221     x_libraries=$ac_optarg ;;
  1223   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1224 Try \`$0 --help' for more information." >&2
  1225    { (exit 1); exit 1; }; }
  1226     ;;
  1228   *=*)
  1229     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1230     # Reject names that are not valid shell variable names.
  1231     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1232       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1233    { (exit 1); exit 1; }; }
  1234     eval $ac_envvar=\$ac_optarg
  1235     export $ac_envvar ;;
  1237   *)
  1238     # FIXME: should be removed in autoconf 3.0.
  1239     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1240     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1241       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1242     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1243     ;;
  1245   esac
  1246 done
  1248 if test -n "$ac_prev"; then
  1249   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1250   { echo "$as_me: error: missing argument to $ac_option" >&2
  1251    { (exit 1); exit 1; }; }
  1252 fi
  1254 # Be sure to have absolute directory names.
  1255 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1256 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1257 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1258 		libdir localedir mandir
  1259 do
  1260   eval ac_val=\$$ac_var
  1261   case $ac_val in
  1262     [\\/$]* | ?:[\\/]* )  continue;;
  1263     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1264   esac
  1265   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1266    { (exit 1); exit 1; }; }
  1267 done
  1269 # There might be people who depend on the old broken behavior: `$host'
  1270 # used to hold the argument of --host etc.
  1271 # FIXME: To remove some day.
  1272 build=$build_alias
  1273 host=$host_alias
  1274 target=$target_alias
  1276 # FIXME: To remove some day.
  1277 if test "x$host_alias" != x; then
  1278   if test "x$build_alias" = x; then
  1279     cross_compiling=maybe
  1280     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1281     If a cross compiler is detected then cross compile mode will be used." >&2
  1282   elif test "x$build_alias" != "x$host_alias"; then
  1283     cross_compiling=yes
  1284   fi
  1285 fi
  1287 ac_tool_prefix=
  1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1290 test "$silent" = yes && exec 6>/dev/null
  1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1294 ac_ls_di=`ls -di .` &&
  1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1296   { echo "$as_me: error: Working directory cannot be determined" >&2
  1297    { (exit 1); exit 1; }; }
  1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1299   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1300    { (exit 1); exit 1; }; }
  1303 # Find the source files, if location was not specified.
  1304 if test -z "$srcdir"; then
  1305   ac_srcdir_defaulted=yes
  1306   # Try the directory containing this script, then the parent directory.
  1307   ac_confdir=`$as_dirname -- "$0" ||
  1308 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1309 	 X"$0" : 'X\(//\)[^/]' \| \
  1310 	 X"$0" : 'X\(//\)$' \| \
  1311 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1312 echo X"$0" |
  1313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1314 	    s//\1/
  1317 	  /^X\(\/\/\)[^/].*/{
  1318 	    s//\1/
  1321 	  /^X\(\/\/\)$/{
  1322 	    s//\1/
  1325 	  /^X\(\/\).*/{
  1326 	    s//\1/
  1329 	  s/.*/./; q'`
  1330   srcdir=$ac_confdir
  1331   if test ! -r "$srcdir/$ac_unique_file"; then
  1332     srcdir=..
  1333   fi
  1334 else
  1335   ac_srcdir_defaulted=no
  1336 fi
  1337 if test ! -r "$srcdir/$ac_unique_file"; then
  1338   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1339   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1340    { (exit 1); exit 1; }; }
  1341 fi
  1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1343 ac_abs_confdir=`(
  1344 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1345    { (exit 1); exit 1; }; }
  1346 	pwd)`
  1347 # When building in place, set srcdir=.
  1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1349   srcdir=.
  1350 fi
  1351 # Remove unnecessary trailing slashes from srcdir.
  1352 # Double slashes in file names in object file debugging info
  1353 # mess up M-x gdb in Emacs.
  1354 case $srcdir in
  1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1356 esac
  1357 for ac_var in $ac_precious_vars; do
  1358   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1359   eval ac_env_${ac_var}_value=\$${ac_var}
  1360   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1361   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1362 done
  1365 # Report the --help message.
  1367 if test "$ac_init_help" = "long"; then
  1368   # Omit some internal or obsolete options to make the list less imposing.
  1369   # This message is too long to be a string in the A/UX 3.1 sh.
  1370   cat <<_ACEOF
  1371 \`configure' configures this package to adapt to many kinds of systems.
  1373 Usage: $0 [OPTION]... [VAR=VALUE]...
  1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1376 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1378 Defaults for the options are specified in brackets.
  1380 Configuration:
  1381   -h, --help              display this help and exit
  1382       --help=short        display options specific to this package
  1383       --help=recursive    display the short help of all the included packages
  1384   -V, --version           display version information and exit
  1385   -q, --quiet, --silent   do not print \`checking...' messages
  1386       --cache-file=FILE   cache test results in FILE [disabled]
  1387   -C, --config-cache      alias for \`--cache-file=config.cache'
  1388   -n, --no-create         do not create output files
  1389       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1391 Installation directories:
  1392   --prefix=PREFIX         install architecture-independent files in PREFIX
  1393 			  [$ac_default_prefix]
  1394   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1395 			  [PREFIX]
  1397 By default, \`make install' will install all the files in
  1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1400 for instance \`--prefix=\$HOME'.
  1402 For better control, use the options below.
  1404 Fine tuning of the installation directories:
  1405   --bindir=DIR           user executables [EPREFIX/bin]
  1406   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1407   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1408   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1409   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1410   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1411   --libdir=DIR           object code libraries [EPREFIX/lib]
  1412   --includedir=DIR       C header files [PREFIX/include]
  1413   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1414   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1415   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1416   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1417   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1418   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1419   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1420   --htmldir=DIR          html documentation [DOCDIR]
  1421   --dvidir=DIR           dvi documentation [DOCDIR]
  1422   --pdfdir=DIR           pdf documentation [DOCDIR]
  1423   --psdir=DIR            ps documentation [DOCDIR]
  1424 _ACEOF
  1426   cat <<\_ACEOF
  1428 Program names:
  1429   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1430   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1431   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1433 System types:
  1434   --build=BUILD     configure for building on BUILD [guessed]
  1435   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1436 _ACEOF
  1437 fi
  1439 if test -n "$ac_init_help"; then
  1441   cat <<\_ACEOF
  1443 Optional Features:
  1444   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1445   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1446   --enable-maintainer-mode  enable make rules and dependencies not useful
  1447 			  (and sometimes confusing) to the casual installer
  1448   --disable-dependency-tracking  speeds up one-time build
  1449   --enable-dependency-tracking   do not reject slow dependency extractors
  1450   --enable-strict-warn    Enable strict compilation warnings
  1451   --disable-translator    Disable the SH4 translator (Enabled by default)
  1452   --disable-optimized     Disable compile-time optimizations (Enabled by
  1453                           default)
  1454   --enable-shared         Build drivers as shared libraries (Enabled if
  1455                           available)
  1456   --enable-profiled       Enable profiling build
  1457   --enable-trace          Enable generation of IO traces (warning: hurts
  1458                           performance)
  1459   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1460                           performance)
  1461   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1463 Optional Packages:
  1464   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1465   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1466   --with-android=SDK      Specify the location of the Android SDK
  1467   --with-android-ndk=NDK  Specify the location of the Android NDK
  1468   --with-android-version  Specify target Android SDK version
  1469   --with-android-version  Specify target Android NDK version
  1470   --with-osmesa           Build with the osmesa GL library (software
  1471                           rendering)
  1472   --with-gtk              Build with the GTK UI. Default on X11 systems
  1473   --with-esd              Build with support for the ESounD audio system
  1474   --with-pulse            Build with support for the PulseAudio audio system
  1475   --with-sdl              Build with support for SDL audio
  1477 Some influential environment variables:
  1478   CC          C compiler command
  1479   CFLAGS      C compiler flags
  1480   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1481               nonstandard directory <lib dir>
  1482   LIBS        libraries to pass to the linker, e.g. -l<library>
  1483   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1484               you have headers in a nonstandard directory <include dir>
  1485   CPP         C preprocessor
  1486   OBJC        Objective C compiler command
  1487   OBJCFLAGS   Objective C compiler flags
  1488   CCAS        assembler compiler command (defaults to CC)
  1489   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1490   PKG_CONFIG  path to pkg-config utility
  1491   LIBPNG_CFLAGS
  1492               C compiler flags for LIBPNG, overriding pkg-config
  1493   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1494   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1495   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1496   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1497   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1498   GLIB_FOR_BUILD_CFLAGS
  1499               C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
  1500   GLIB_FOR_BUILD_LIBS
  1501               linker flags for GLIB_FOR_BUILD, overriding pkg-config
  1502   LIBISOFS_CFLAGS
  1503               C compiler flags for LIBISOFS, overriding pkg-config
  1504   LIBISOFS_LIBS
  1505               linker flags for LIBISOFS, overriding pkg-config
  1506   LIBGL_CFLAGS
  1507               C compiler flags for LIBGL, overriding pkg-config
  1508   LIBGL_LIBS  linker flags for LIBGL, overriding pkg-config
  1509   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
  1510   SDL_LIBS    linker flags for SDL, overriding pkg-config
  1511   PULSE_CFLAGS
  1512               C compiler flags for PULSE, overriding pkg-config
  1513   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1514   ESOUND_CFLAGS
  1515               C compiler flags for ESOUND, overriding pkg-config
  1516   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1517   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1518   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1520 Use these variables to override the choices made by `configure' or to help
  1521 it to find libraries and programs with nonstandard names/locations.
  1523 _ACEOF
  1524 ac_status=$?
  1525 fi
  1527 if test "$ac_init_help" = "recursive"; then
  1528   # If there are subdirs, report their specific --help.
  1529   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1530     test -d "$ac_dir" || continue
  1531     ac_builddir=.
  1533 case "$ac_dir" in
  1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1535 *)
  1536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1537   # A ".." for each directory in $ac_dir_suffix.
  1538   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1539   case $ac_top_builddir_sub in
  1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1542   esac ;;
  1543 esac
  1544 ac_abs_top_builddir=$ac_pwd
  1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1546 # for backward compatibility:
  1547 ac_top_builddir=$ac_top_build_prefix
  1549 case $srcdir in
  1550   .)  # We are building in place.
  1551     ac_srcdir=.
  1552     ac_top_srcdir=$ac_top_builddir_sub
  1553     ac_abs_top_srcdir=$ac_pwd ;;
  1554   [\\/]* | ?:[\\/]* )  # Absolute name.
  1555     ac_srcdir=$srcdir$ac_dir_suffix;
  1556     ac_top_srcdir=$srcdir
  1557     ac_abs_top_srcdir=$srcdir ;;
  1558   *) # Relative name.
  1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1562 esac
  1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1565     cd "$ac_dir" || { ac_status=$?; continue; }
  1566     # Check for guested configure.
  1567     if test -f "$ac_srcdir/configure.gnu"; then
  1568       echo &&
  1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1570     elif test -f "$ac_srcdir/configure"; then
  1571       echo &&
  1572       $SHELL "$ac_srcdir/configure" --help=recursive
  1573     else
  1574       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1575     fi || ac_status=$?
  1576     cd "$ac_pwd" || { ac_status=$?; break; }
  1577   done
  1578 fi
  1580 test -n "$ac_init_help" && exit $ac_status
  1581 if $ac_init_version; then
  1582   cat <<\_ACEOF
  1583 configure
  1584 generated by GNU Autoconf 2.61
  1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1588 This configure script is free software; the Free Software Foundation
  1589 gives unlimited permission to copy, distribute and modify it.
  1590 _ACEOF
  1591   exit
  1592 fi
  1593 cat >config.log <<_ACEOF
  1594 This file contains any messages produced by compilers while
  1595 running configure, to aid debugging if configure makes a mistake.
  1597 It was created by $as_me, which was
  1598 generated by GNU Autoconf 2.61.  Invocation command line was
  1600   $ $0 $@
  1602 _ACEOF
  1603 exec 5>>config.log
  1605 cat <<_ASUNAME
  1606 ## --------- ##
  1607 ## Platform. ##
  1608 ## --------- ##
  1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1617 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1619 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1620 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1622 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1623 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1624 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1625 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1627 _ASUNAME
  1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1630 for as_dir in $PATH
  1631 do
  1632   IFS=$as_save_IFS
  1633   test -z "$as_dir" && as_dir=.
  1634   echo "PATH: $as_dir"
  1635 done
  1636 IFS=$as_save_IFS
  1638 } >&5
  1640 cat >&5 <<_ACEOF
  1643 ## ----------- ##
  1644 ## Core tests. ##
  1645 ## ----------- ##
  1647 _ACEOF
  1650 # Keep a trace of the command line.
  1651 # Strip out --no-create and --no-recursion so they do not pile up.
  1652 # Strip out --silent because we don't want to record it for future runs.
  1653 # Also quote any args containing shell meta-characters.
  1654 # Make two passes to allow for proper duplicate-argument suppression.
  1655 ac_configure_args=
  1656 ac_configure_args0=
  1657 ac_configure_args1=
  1658 ac_must_keep_next=false
  1659 for ac_pass in 1 2
  1660 do
  1661   for ac_arg
  1662   do
  1663     case $ac_arg in
  1664     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1665     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1666     | -silent | --silent | --silen | --sile | --sil)
  1667       continue ;;
  1668     *\'*)
  1669       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1670     esac
  1671     case $ac_pass in
  1672     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1673     2)
  1674       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1675       if test $ac_must_keep_next = true; then
  1676 	ac_must_keep_next=false # Got value, back to normal.
  1677       else
  1678 	case $ac_arg in
  1679 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1680 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1681 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1682 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1683 	    case "$ac_configure_args0 " in
  1684 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1685 	    esac
  1686 	    ;;
  1687 	  -* ) ac_must_keep_next=true ;;
  1688 	esac
  1689       fi
  1690       ac_configure_args="$ac_configure_args '$ac_arg'"
  1691       ;;
  1692     esac
  1693   done
  1694 done
  1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1698 # When interrupted or exit'd, cleanup temporary files, and complete
  1699 # config.log.  We remove comments because anyway the quotes in there
  1700 # would cause problems or look ugly.
  1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1703 trap 'exit_status=$?
  1704   # Save into config.log some information that might help in debugging.
  1706     echo
  1708     cat <<\_ASBOX
  1709 ## ---------------- ##
  1710 ## Cache variables. ##
  1711 ## ---------------- ##
  1712 _ASBOX
  1713     echo
  1714     # The following way of writing the cache mishandles newlines in values,
  1716   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1717     eval ac_val=\$$ac_var
  1718     case $ac_val in #(
  1719     *${as_nl}*)
  1720       case $ac_var in #(
  1721       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1723       esac
  1724       case $ac_var in #(
  1725       _ | IFS | as_nl) ;; #(
  1726       *) $as_unset $ac_var ;;
  1727       esac ;;
  1728     esac
  1729   done
  1730   (set) 2>&1 |
  1731     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1732     *${as_nl}ac_space=\ *)
  1733       sed -n \
  1734 	"s/'\''/'\''\\\\'\'''\''/g;
  1735 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1736       ;; #(
  1737     *)
  1738       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1739       ;;
  1740     esac |
  1741     sort
  1743     echo
  1745     cat <<\_ASBOX
  1746 ## ----------------- ##
  1747 ## Output variables. ##
  1748 ## ----------------- ##
  1749 _ASBOX
  1750     echo
  1751     for ac_var in $ac_subst_vars
  1752     do
  1753       eval ac_val=\$$ac_var
  1754       case $ac_val in
  1755       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1756       esac
  1757       echo "$ac_var='\''$ac_val'\''"
  1758     done | sort
  1759     echo
  1761     if test -n "$ac_subst_files"; then
  1762       cat <<\_ASBOX
  1763 ## ------------------- ##
  1764 ## File substitutions. ##
  1765 ## ------------------- ##
  1766 _ASBOX
  1767       echo
  1768       for ac_var in $ac_subst_files
  1769       do
  1770 	eval ac_val=\$$ac_var
  1771 	case $ac_val in
  1772 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1773 	esac
  1774 	echo "$ac_var='\''$ac_val'\''"
  1775       done | sort
  1776       echo
  1777     fi
  1779     if test -s confdefs.h; then
  1780       cat <<\_ASBOX
  1781 ## ----------- ##
  1782 ## confdefs.h. ##
  1783 ## ----------- ##
  1784 _ASBOX
  1785       echo
  1786       cat confdefs.h
  1787       echo
  1788     fi
  1789     test "$ac_signal" != 0 &&
  1790       echo "$as_me: caught signal $ac_signal"
  1791     echo "$as_me: exit $exit_status"
  1792   } >&5
  1793   rm -f core *.core core.conftest.* &&
  1794     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1795     exit $exit_status
  1796 ' 0
  1797 for ac_signal in 1 2 13 15; do
  1798   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1799 done
  1800 ac_signal=0
  1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1803 rm -f -r conftest* confdefs.h
  1805 # Predefined preprocessor variables.
  1807 cat >>confdefs.h <<_ACEOF
  1808 #define PACKAGE_NAME "$PACKAGE_NAME"
  1809 _ACEOF
  1812 cat >>confdefs.h <<_ACEOF
  1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1814 _ACEOF
  1817 cat >>confdefs.h <<_ACEOF
  1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1819 _ACEOF
  1822 cat >>confdefs.h <<_ACEOF
  1823 #define PACKAGE_STRING "$PACKAGE_STRING"
  1824 _ACEOF
  1827 cat >>confdefs.h <<_ACEOF
  1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1829 _ACEOF
  1832 # Let the site file select an alternate cache file if it wants to.
  1833 # Prefer explicitly selected file to automatically selected ones.
  1834 if test -n "$CONFIG_SITE"; then
  1835   set x "$CONFIG_SITE"
  1836 elif test "x$prefix" != xNONE; then
  1837   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1838 else
  1839   set x "$ac_default_prefix/share/config.site" \
  1840 	"$ac_default_prefix/etc/config.site"
  1841 fi
  1842 shift
  1843 for ac_site_file
  1844 do
  1845   if test -r "$ac_site_file"; then
  1846     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1847 echo "$as_me: loading site script $ac_site_file" >&6;}
  1848     sed 's/^/| /' "$ac_site_file" >&5
  1849     . "$ac_site_file"
  1850   fi
  1851 done
  1853 if test -r "$cache_file"; then
  1854   # Some versions of bash will fail to source /dev/null (special
  1855   # files actually), so we avoid doing that.
  1856   if test -f "$cache_file"; then
  1857     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1858 echo "$as_me: loading cache $cache_file" >&6;}
  1859     case $cache_file in
  1860       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1861       *)                      . "./$cache_file";;
  1862     esac
  1863   fi
  1864 else
  1865   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1866 echo "$as_me: creating cache $cache_file" >&6;}
  1867   >$cache_file
  1868 fi
  1870 # Check that the precious variables saved in the cache have kept the same
  1871 # value.
  1872 ac_cache_corrupted=false
  1873 for ac_var in $ac_precious_vars; do
  1874   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1875   eval ac_new_set=\$ac_env_${ac_var}_set
  1876   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1877   eval ac_new_val=\$ac_env_${ac_var}_value
  1878   case $ac_old_set,$ac_new_set in
  1879     set,)
  1880       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1882       ac_cache_corrupted=: ;;
  1883     ,set)
  1884       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1886       ac_cache_corrupted=: ;;
  1887     ,);;
  1888     *)
  1889       if test "x$ac_old_val" != "x$ac_new_val"; then
  1890 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1892 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1893 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1894 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1895 echo "$as_me:   current value: $ac_new_val" >&2;}
  1896 	ac_cache_corrupted=:
  1897       fi;;
  1898   esac
  1899   # Pass precious variables to config.status.
  1900   if test "$ac_new_set" = set; then
  1901     case $ac_new_val in
  1902     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1903     *) ac_arg=$ac_var=$ac_new_val ;;
  1904     esac
  1905     case " $ac_configure_args " in
  1906       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1907       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1908     esac
  1909   fi
  1910 done
  1911 if $ac_cache_corrupted; then
  1912   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1914   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1916    { (exit 1); exit 1; }; }
  1917 fi
  1935 ac_ext=c
  1936 ac_cpp='$CPP $CPPFLAGS'
  1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1942 am__api_version="1.9"
  1943 ac_aux_dir=
  1944 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1945   if test -f "$ac_dir/install-sh"; then
  1946     ac_aux_dir=$ac_dir
  1947     ac_install_sh="$ac_aux_dir/install-sh -c"
  1948     break
  1949   elif test -f "$ac_dir/install.sh"; then
  1950     ac_aux_dir=$ac_dir
  1951     ac_install_sh="$ac_aux_dir/install.sh -c"
  1952     break
  1953   elif test -f "$ac_dir/shtool"; then
  1954     ac_aux_dir=$ac_dir
  1955     ac_install_sh="$ac_aux_dir/shtool install -c"
  1956     break
  1957   fi
  1958 done
  1959 if test -z "$ac_aux_dir"; then
  1960   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1961 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1962    { (exit 1); exit 1; }; }
  1963 fi
  1965 # These three variables are undocumented and unsupported,
  1966 # and are intended to be withdrawn in a future Autoconf release.
  1967 # They can cause serious problems if a builder's source tree is in a directory
  1968 # whose full name contains unusual characters.
  1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1971 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1974 # Find a good install program.  We prefer a C program (faster),
  1975 # so one script is as good as another.  But avoid the broken or
  1976 # incompatible versions:
  1977 # SysV /etc/install, /usr/sbin/install
  1978 # SunOS /usr/etc/install
  1979 # IRIX /sbin/install
  1980 # AIX /bin/install
  1981 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1985 # OS/2's system install, which has a completely different semantic
  1986 # ./install, which can be erroneously created by make from ./install.sh.
  1987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1989 if test -z "$INSTALL"; then
  1990 if test "${ac_cv_path_install+set}" = set; then
  1991   echo $ECHO_N "(cached) $ECHO_C" >&6
  1992 else
  1993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1994 for as_dir in $PATH
  1995 do
  1996   IFS=$as_save_IFS
  1997   test -z "$as_dir" && as_dir=.
  1998   # Account for people who put trailing slashes in PATH elements.
  1999 case $as_dir/ in
  2000   ./ | .// | /cC/* | \
  2001   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2002   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2003   /usr/ucb/* ) ;;
  2004   *)
  2005     # OSF1 and SCO ODT 3.0 have their own names for install.
  2006     # Don't use installbsd from OSF since it installs stuff as root
  2007     # by default.
  2008     for ac_prog in ginstall scoinst install; do
  2009       for ac_exec_ext in '' $ac_executable_extensions; do
  2010 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2011 	  if test $ac_prog = install &&
  2012 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2013 	    # AIX install.  It has an incompatible calling convention.
  2015 	  elif test $ac_prog = install &&
  2016 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2017 	    # program-specific install script used by HP pwplus--don't use.
  2019 	  else
  2020 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2021 	    break 3
  2022 	  fi
  2023 	fi
  2024       done
  2025     done
  2026     ;;
  2027 esac
  2028 done
  2029 IFS=$as_save_IFS
  2032 fi
  2033   if test "${ac_cv_path_install+set}" = set; then
  2034     INSTALL=$ac_cv_path_install
  2035   else
  2036     # As a last resort, use the slow shell script.  Don't cache a
  2037     # value for INSTALL within a source directory, because that will
  2038     # break other packages using the cache if that directory is
  2039     # removed, or if the value is a relative name.
  2040     INSTALL=$ac_install_sh
  2041   fi
  2042 fi
  2043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2044 echo "${ECHO_T}$INSTALL" >&6; }
  2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2047 # It thinks the first close brace ends the variable substitution.
  2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2054 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2055 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2056 # Just in case
  2057 sleep 1
  2058 echo timestamp > conftest.file
  2059 # Do `set' in a subshell so we don't clobber the current shell's
  2060 # arguments.  Must try -L first in case configure is actually a
  2061 # symlink; some systems play weird games with the mod time of symlinks
  2062 # (eg FreeBSD returns the mod time of the symlink's containing
  2063 # directory).
  2064 if (
  2065    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2066    if test "$*" = "X"; then
  2067       # -L didn't work.
  2068       set X `ls -t $srcdir/configure conftest.file`
  2069    fi
  2070    rm -f conftest.file
  2071    if test "$*" != "X $srcdir/configure conftest.file" \
  2072       && test "$*" != "X conftest.file $srcdir/configure"; then
  2074       # If neither matched, then we have a broken ls.  This can happen
  2075       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2076       # broken ls alias from the environment.  This has actually
  2077       # happened.  Such a system could not be considered "sane".
  2078       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2079 alias in your environment" >&5
  2080 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2081 alias in your environment" >&2;}
  2082    { (exit 1); exit 1; }; }
  2083    fi
  2085    test "$2" = conftest.file
  2087 then
  2088    # Ok.
  2090 else
  2091    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2092 Check your system clock" >&5
  2093 echo "$as_me: error: newly created file is older than distributed files!
  2094 Check your system clock" >&2;}
  2095    { (exit 1); exit 1; }; }
  2096 fi
  2097 { echo "$as_me:$LINENO: result: yes" >&5
  2098 echo "${ECHO_T}yes" >&6; }
  2099 test "$program_prefix" != NONE &&
  2100   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2101 # Use a double $ so make ignores it.
  2102 test "$program_suffix" != NONE &&
  2103   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2104 # Double any \ or $.  echo might interpret backslashes.
  2105 # By default was `s,x,x', remove it if useless.
  2106 cat <<\_ACEOF >conftest.sed
  2107 s/[\\$]/&&/g;s/;s,x,x,$//
  2108 _ACEOF
  2109 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2110 rm -f conftest.sed
  2112 # expand $ac_aux_dir to an absolute path
  2113 am_aux_dir=`cd $ac_aux_dir && pwd`
  2115 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2116 # Use eval to expand $SHELL
  2117 if eval "$MISSING --run true"; then
  2118   am_missing_run="$MISSING --run "
  2119 else
  2120   am_missing_run=
  2121   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2122 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2123 fi
  2125 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2126   # We used to keeping the `.' as first argument, in order to
  2127   # allow $(mkdir_p) to be used without argument.  As in
  2128   #   $(mkdir_p) $(somedir)
  2129   # where $(somedir) is conditionally defined.  However this is wrong
  2130   # for two reasons:
  2131   #  1. if the package is installed by a user who cannot write `.'
  2132   #     make install will fail,
  2133   #  2. the above comment should most certainly read
  2134   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2135   #     so it does not work when $(somedir) is undefined and
  2136   #     $(DESTDIR) is not.
  2137   #  To support the latter case, we have to write
  2138   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2139   #  so the `.' trick is pointless.
  2140   mkdir_p='mkdir -p --'
  2141 else
  2142   # On NextStep and OpenStep, the `mkdir' command does not
  2143   # recognize any option.  It will interpret all options as
  2144   # directories to create, and then abort because `.' already
  2145   # exists.
  2146   for d in ./-p ./--version;
  2147   do
  2148     test -d $d && rmdir $d
  2149   done
  2150   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2151   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2152     mkdir_p='$(mkinstalldirs)'
  2153   else
  2154     mkdir_p='$(install_sh) -d'
  2155   fi
  2156 fi
  2158 for ac_prog in gawk mawk nawk awk
  2159 do
  2160   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2161 set dummy $ac_prog; ac_word=$2
  2162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2164 if test "${ac_cv_prog_AWK+set}" = set; then
  2165   echo $ECHO_N "(cached) $ECHO_C" >&6
  2166 else
  2167   if test -n "$AWK"; then
  2168   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2169 else
  2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171 for as_dir in $PATH
  2172 do
  2173   IFS=$as_save_IFS
  2174   test -z "$as_dir" && as_dir=.
  2175   for ac_exec_ext in '' $ac_executable_extensions; do
  2176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2177     ac_cv_prog_AWK="$ac_prog"
  2178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2179     break 2
  2180   fi
  2181 done
  2182 done
  2183 IFS=$as_save_IFS
  2185 fi
  2186 fi
  2187 AWK=$ac_cv_prog_AWK
  2188 if test -n "$AWK"; then
  2189   { echo "$as_me:$LINENO: result: $AWK" >&5
  2190 echo "${ECHO_T}$AWK" >&6; }
  2191 else
  2192   { echo "$as_me:$LINENO: result: no" >&5
  2193 echo "${ECHO_T}no" >&6; }
  2194 fi
  2197   test -n "$AWK" && break
  2198 done
  2200 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2201 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2202 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2203 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2204   echo $ECHO_N "(cached) $ECHO_C" >&6
  2205 else
  2206   cat >conftest.make <<\_ACEOF
  2207 SHELL = /bin/sh
  2208 all:
  2209 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2210 _ACEOF
  2211 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2212 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2213   *@@@%%%=?*=@@@%%%*)
  2214     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2215   *)
  2216     eval ac_cv_prog_make_${ac_make}_set=no;;
  2217 esac
  2218 rm -f conftest.make
  2219 fi
  2220 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2221   { echo "$as_me:$LINENO: result: yes" >&5
  2222 echo "${ECHO_T}yes" >&6; }
  2223   SET_MAKE=
  2224 else
  2225   { echo "$as_me:$LINENO: result: no" >&5
  2226 echo "${ECHO_T}no" >&6; }
  2227   SET_MAKE="MAKE=${MAKE-make}"
  2228 fi
  2230 rm -rf .tst 2>/dev/null
  2231 mkdir .tst 2>/dev/null
  2232 if test -d .tst; then
  2233   am__leading_dot=.
  2234 else
  2235   am__leading_dot=_
  2236 fi
  2237 rmdir .tst 2>/dev/null
  2239 # test to see if srcdir already configured
  2240 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2241    test -f $srcdir/config.status; then
  2242   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2243 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2244    { (exit 1); exit 1; }; }
  2245 fi
  2247 # test whether we have cygpath
  2248 if test -z "$CYGPATH_W"; then
  2249   if (cygpath --version) >/dev/null 2>/dev/null; then
  2250     CYGPATH_W='cygpath -w'
  2251   else
  2252     CYGPATH_W=echo
  2253   fi
  2254 fi
  2257 # Define the identity of the package.
  2258  PACKAGE=lxdream
  2259  VERSION=0.9.1
  2262 cat >>confdefs.h <<_ACEOF
  2263 #define PACKAGE "$PACKAGE"
  2264 _ACEOF
  2267 cat >>confdefs.h <<_ACEOF
  2268 #define VERSION "$VERSION"
  2269 _ACEOF
  2271 # Some tools Automake needs.
  2273 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2276 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2279 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2282 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2285 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2287 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2289 # Installed binaries are usually stripped using `strip' when the user
  2290 # run `make install-strip'.  However `strip' might not be the right
  2291 # tool to use in cross-compilation environments, therefore Automake
  2292 # will honor the `STRIP' environment variable to overrule this program.
  2293 if test "$cross_compiling" != no; then
  2294   if test -n "$ac_tool_prefix"; then
  2295   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2296 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2299 if test "${ac_cv_prog_STRIP+set}" = set; then
  2300   echo $ECHO_N "(cached) $ECHO_C" >&6
  2301 else
  2302   if test -n "$STRIP"; then
  2303   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2304 else
  2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2306 for as_dir in $PATH
  2307 do
  2308   IFS=$as_save_IFS
  2309   test -z "$as_dir" && as_dir=.
  2310   for ac_exec_ext in '' $ac_executable_extensions; do
  2311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2312     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2314     break 2
  2315   fi
  2316 done
  2317 done
  2318 IFS=$as_save_IFS
  2320 fi
  2321 fi
  2322 STRIP=$ac_cv_prog_STRIP
  2323 if test -n "$STRIP"; then
  2324   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2325 echo "${ECHO_T}$STRIP" >&6; }
  2326 else
  2327   { echo "$as_me:$LINENO: result: no" >&5
  2328 echo "${ECHO_T}no" >&6; }
  2329 fi
  2332 fi
  2333 if test -z "$ac_cv_prog_STRIP"; then
  2334   ac_ct_STRIP=$STRIP
  2335   # Extract the first word of "strip", so it can be a program name with args.
  2336 set dummy strip; ac_word=$2
  2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2339 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2340   echo $ECHO_N "(cached) $ECHO_C" >&6
  2341 else
  2342   if test -n "$ac_ct_STRIP"; then
  2343   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2344 else
  2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2346 for as_dir in $PATH
  2347 do
  2348   IFS=$as_save_IFS
  2349   test -z "$as_dir" && as_dir=.
  2350   for ac_exec_ext in '' $ac_executable_extensions; do
  2351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2352     ac_cv_prog_ac_ct_STRIP="strip"
  2353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2354     break 2
  2355   fi
  2356 done
  2357 done
  2358 IFS=$as_save_IFS
  2360 fi
  2361 fi
  2362 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2363 if test -n "$ac_ct_STRIP"; then
  2364   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2365 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2366 else
  2367   { echo "$as_me:$LINENO: result: no" >&5
  2368 echo "${ECHO_T}no" >&6; }
  2369 fi
  2371   if test "x$ac_ct_STRIP" = x; then
  2372     STRIP=":"
  2373   else
  2374     case $cross_compiling:$ac_tool_warned in
  2375 yes:)
  2376 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2377 whose name does not start with the host triplet.  If you think this
  2378 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2379 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2380 whose name does not start with the host triplet.  If you think this
  2381 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2382 ac_tool_warned=yes ;;
  2383 esac
  2384     STRIP=$ac_ct_STRIP
  2385   fi
  2386 else
  2387   STRIP="$ac_cv_prog_STRIP"
  2388 fi
  2390 fi
  2391 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2393 # We need awk for the "check" target.  The system "awk" is bad on
  2394 # some platforms.
  2395 # Always define AMTAR for backward compatibility.
  2397 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2399 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2405 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2406 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2407     # Check whether --enable-maintainer-mode was given.
  2408 if test "${enable_maintainer_mode+set}" = set; then
  2409   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2410 else
  2411   USE_MAINTAINER_MODE=no
  2412 fi
  2414   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2415 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2418 if test $USE_MAINTAINER_MODE = yes; then
  2419   MAINTAINER_MODE_TRUE=
  2420   MAINTAINER_MODE_FALSE='#'
  2421 else
  2422   MAINTAINER_MODE_TRUE='#'
  2423   MAINTAINER_MODE_FALSE=
  2424 fi
  2426   MAINT=$MAINTAINER_MODE_TRUE
  2429 ac_config_headers="$ac_config_headers config.h"
  2432 # Make sure we can run config.sub.
  2433 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2434   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2435 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2436    { (exit 1); exit 1; }; }
  2438 { echo "$as_me:$LINENO: checking build system type" >&5
  2439 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2440 if test "${ac_cv_build+set}" = set; then
  2441   echo $ECHO_N "(cached) $ECHO_C" >&6
  2442 else
  2443   ac_build_alias=$build_alias
  2444 test "x$ac_build_alias" = x &&
  2445   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2446 test "x$ac_build_alias" = x &&
  2447   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2448 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2449    { (exit 1); exit 1; }; }
  2450 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2451   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2452 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2453    { (exit 1); exit 1; }; }
  2455 fi
  2456 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2457 echo "${ECHO_T}$ac_cv_build" >&6; }
  2458 case $ac_cv_build in
  2459 *-*-*) ;;
  2460 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2461 echo "$as_me: error: invalid value of canonical build" >&2;}
  2462    { (exit 1); exit 1; }; };;
  2463 esac
  2464 build=$ac_cv_build
  2465 ac_save_IFS=$IFS; IFS='-'
  2466 set x $ac_cv_build
  2467 shift
  2468 build_cpu=$1
  2469 build_vendor=$2
  2470 shift; shift
  2471 # Remember, the first character of IFS is used to create $*,
  2472 # except with old shells:
  2473 build_os=$*
  2474 IFS=$ac_save_IFS
  2475 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2478 { echo "$as_me:$LINENO: checking host system type" >&5
  2479 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2480 if test "${ac_cv_host+set}" = set; then
  2481   echo $ECHO_N "(cached) $ECHO_C" >&6
  2482 else
  2483   if test "x$host_alias" = x; then
  2484   ac_cv_host=$ac_cv_build
  2485 else
  2486   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2487     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2488 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2489    { (exit 1); exit 1; }; }
  2490 fi
  2492 fi
  2493 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2494 echo "${ECHO_T}$ac_cv_host" >&6; }
  2495 case $ac_cv_host in
  2496 *-*-*) ;;
  2497 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2498 echo "$as_me: error: invalid value of canonical host" >&2;}
  2499    { (exit 1); exit 1; }; };;
  2500 esac
  2501 host=$ac_cv_host
  2502 ac_save_IFS=$IFS; IFS='-'
  2503 set x $ac_cv_host
  2504 shift
  2505 host_cpu=$1
  2506 host_vendor=$2
  2507 shift; shift
  2508 # Remember, the first character of IFS is used to create $*,
  2509 # except with old shells:
  2510 host_os=$*
  2511 IFS=$ac_save_IFS
  2512 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2523 # LX_ANDROID_BUILD
  2524 # Defines --with-android, --with-android-ndk, and --with-android-version
  2525 # If specified, checks for a working install, and sets build parameters
  2526 # appropriately for an Android host.
  2532 # Check whether --with-android was given.
  2533 if test "${with_android+set}" = set; then
  2534   withval=$with_android;
  2535 fi
  2538 # Check whether --with-android-ndk was given.
  2539 if test "${with_android_ndk+set}" = set; then
  2540   withval=$with_android_ndk;
  2541 fi
  2544 # Check whether --with-android-version was given.
  2545 if test "${with_android_version+set}" = set; then
  2546   withval=$with_android_version;
  2547 else
  2548   with_android_version="android-11"
  2549 fi
  2552 # Check whether --with-android-ndk-version was given.
  2553 if test "${with_android_ndk_version+set}" = set; then
  2554   withval=$with_android_ndk_version;
  2555 else
  2556   with_ndk_version="android-9"
  2557 fi
  2560    if test "x$with_android" != "x"; then
  2561       if test "$with_android" = "yes"; then
  2562          { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
  2563 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
  2564    { (exit 1); exit 1; }; }
  2565       fi
  2566       if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
  2567          { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
  2568 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
  2569    { (exit 1); exit 1; }; }
  2570       fi
  2572       ANDROID_SDK_HOME="$with_android"
  2573       ANDROID_NDK_HOME="$with_android_ndk"
  2574       ANDROID_SDK_VERSION="$with_android_version"
  2575       ANDROID_NDK_VERSION="$with_ndk_version"
  2577       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
  2578 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
  2579 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
  2580 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2581   echo $ECHO_N "(cached) $ECHO_C" >&6
  2582 else
  2583   test "$cross_compiling" = yes &&
  2584   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2585 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2586    { (exit 1); exit 1; }; }
  2587 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
  2588   eval "$as_ac_File=yes"
  2589 else
  2590   eval "$as_ac_File=no"
  2591 fi
  2592 fi
  2593 ac_res=`eval echo '${'$as_ac_File'}'`
  2594 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2595 echo "${ECHO_T}$ac_res" >&6; }
  2596 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2598 else
  2599    { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
  2600 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
  2601    { (exit 1); exit 1; }; }
  2602 fi
  2604       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
  2605 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
  2606 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
  2607 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2608   echo $ECHO_N "(cached) $ECHO_C" >&6
  2609 else
  2610   test "$cross_compiling" = yes &&
  2611   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2612 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2613    { (exit 1); exit 1; }; }
  2614 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
  2615   eval "$as_ac_File=yes"
  2616 else
  2617   eval "$as_ac_File=no"
  2618 fi
  2619 fi
  2620 ac_res=`eval echo '${'$as_ac_File'}'`
  2621 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2622 echo "${ECHO_T}$ac_res" >&6; }
  2623 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2625 else
  2626    { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
  2627 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
  2628    { (exit 1); exit 1; }; }
  2629 fi
  2631       as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
  2632 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
  2633 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
  2634 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2635   echo $ECHO_N "(cached) $ECHO_C" >&6
  2636 else
  2637   test "$cross_compiling" = yes &&
  2638   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2639 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2640    { (exit 1); exit 1; }; }
  2641 if test -r "$ANDROID_NDK_HOME/toolchains"; then
  2642   eval "$as_ac_File=yes"
  2643 else
  2644   eval "$as_ac_File=no"
  2645 fi
  2646 fi
  2647 ac_res=`eval echo '${'$as_ac_File'}'`
  2648 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2649 echo "${ECHO_T}$ac_res" >&6; }
  2650 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2652 else
  2653    { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
  2654 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
  2655    { (exit 1); exit 1; }; }
  2656 fi
  2659       case $host_alias in
  2660          arm-* | "")
  2661             host_alias="arm-linux-androideabi"
  2662             host_cpu="arm"
  2663             host_vendor="unknown";
  2664             host_os="linux-androideabi"
  2665             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
  2666             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
  2667             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
  2668             TARGETFLAGS="-ffunction-sections -funwind-tables -fstack-protector -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wno-psabi -Wa,--noexecstack"
  2669             TARGETFLAGS="$TARGETFLAGS -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -march=armv5te -mtune=xscale -msoft-float -mthumb -Os"
  2670             ;;
  2671          i686-*)
  2672             host_alias="i686-android-linux"
  2673             host_cpu="i686"
  2674             host_vendor="android"
  2675             host_os="linux"
  2676             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
  2677             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
  2678             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
  2679             TARGETFLAGS=""
  2680             ;;
  2681          *)
  2682             { { echo "$as_me:$LINENO: error: Unsupported android host $host_alias" >&5
  2683 echo "$as_me: error: Unsupported android host $host_alias" >&2;}
  2684    { (exit 1); exit 1; }; }
  2685       	    ;;
  2686       esac
  2688       # Extract the first word of "ant ", so it can be a program name with args.
  2689 set dummy ant ; ac_word=$2
  2690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2692 if test "${ac_cv_path_ANT+set}" = set; then
  2693   echo $ECHO_N "(cached) $ECHO_C" >&6
  2694 else
  2695   case $ANT in
  2696   [\\/]* | ?:[\\/]*)
  2697   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  2698   ;;
  2699   *)
  2700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2701 for as_dir in $PATH
  2702 do
  2703   IFS=$as_save_IFS
  2704   test -z "$as_dir" && as_dir=.
  2705   for ac_exec_ext in '' $ac_executable_extensions; do
  2706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2707     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  2708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2709     break 2
  2710   fi
  2711 done
  2712 done
  2713 IFS=$as_save_IFS
  2715   ;;
  2716 esac
  2717 fi
  2718 ANT=$ac_cv_path_ANT
  2719 if test -n "$ANT"; then
  2720   { echo "$as_me:$LINENO: result: $ANT" >&5
  2721 echo "${ECHO_T}$ANT" >&6; }
  2722 else
  2723   { echo "$as_me:$LINENO: result: no" >&5
  2724 echo "${ECHO_T}no" >&6; }
  2725 fi
  2729       CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
  2730       CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
  2731       CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
  2732       LD="$ANDROID_NDK_BIN/${host_alias}-ld"
  2733       AR="$ANDROID_NDK_BIN/${host_alias}-ar"
  2734       RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
  2735       STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
  2736       OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
  2737       CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
  2738       LDFLAGS="-nostdlib -Wl,--no-undefined -L${ANDROID_SYSROOT}/usr/lib -Wl,-rpath-link,${ANDROID_SYSROOT}/usr/lib -Wl,-allow-shlib-undefined -Wl,-z,noexecstack $LDFLAGS"
  2739       LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
  2747       ANDROID_BUILD=yes
  2748       cross_compiling=yes
  2749    fi
  2753 if test "$ANDROID_BUILD" = "yes"; then
  2754   GUI_ANDROID_TRUE=
  2755   GUI_ANDROID_FALSE='#'
  2756 else
  2757   GUI_ANDROID_TRUE='#'
  2758   GUI_ANDROID_FALSE=
  2759 fi
  2764 DEPDIR="${am__leading_dot}deps"
  2766 ac_config_commands="$ac_config_commands depfiles"
  2769 am_make=${MAKE-make}
  2770 cat > confinc << 'END'
  2771 am__doit:
  2772 	@echo done
  2773 .PHONY: am__doit
  2774 END
  2775 # If we don't find an include directive, just comment out the code.
  2776 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2777 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2778 am__include="#"
  2779 am__quote=
  2780 _am_result=none
  2781 # First try GNU make style include.
  2782 echo "include confinc" > confmf
  2783 # We grep out `Entering directory' and `Leaving directory'
  2784 # messages which can occur if `w' ends up in MAKEFLAGS.
  2785 # In particular we don't look at `^make:' because GNU make might
  2786 # be invoked under some other name (usually "gmake"), in which
  2787 # case it prints its new name instead of `make'.
  2788 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2789    am__include=include
  2790    am__quote=
  2791    _am_result=GNU
  2792 fi
  2793 # Now try BSD make style include.
  2794 if test "$am__include" = "#"; then
  2795    echo '.include "confinc"' > confmf
  2796    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2797       am__include=.include
  2798       am__quote="\""
  2799       _am_result=BSD
  2800    fi
  2801 fi
  2804 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2805 echo "${ECHO_T}$_am_result" >&6; }
  2806 rm -f confinc confmf
  2808 # Check whether --enable-dependency-tracking was given.
  2809 if test "${enable_dependency_tracking+set}" = set; then
  2810   enableval=$enable_dependency_tracking;
  2811 fi
  2813 if test "x$enable_dependency_tracking" != xno; then
  2814   am_depcomp="$ac_aux_dir/depcomp"
  2815   AMDEPBACKSLASH='\'
  2816 fi
  2819 if test "x$enable_dependency_tracking" != xno; then
  2820   AMDEP_TRUE=
  2821   AMDEP_FALSE='#'
  2822 else
  2823   AMDEP_TRUE='#'
  2824   AMDEP_FALSE=
  2825 fi
  2829 ac_ext=c
  2830 ac_cpp='$CPP $CPPFLAGS'
  2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2834 if test -n "$ac_tool_prefix"; then
  2835   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2839 if test "${ac_cv_prog_CC+set}" = set; then
  2840   echo $ECHO_N "(cached) $ECHO_C" >&6
  2841 else
  2842   if test -n "$CC"; then
  2843   ac_cv_prog_CC="$CC" # Let the user override the test.
  2844 else
  2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2846 for as_dir in $PATH
  2847 do
  2848   IFS=$as_save_IFS
  2849   test -z "$as_dir" && as_dir=.
  2850   for ac_exec_ext in '' $ac_executable_extensions; do
  2851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2852     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2854     break 2
  2855   fi
  2856 done
  2857 done
  2858 IFS=$as_save_IFS
  2860 fi
  2861 fi
  2862 CC=$ac_cv_prog_CC
  2863 if test -n "$CC"; then
  2864   { echo "$as_me:$LINENO: result: $CC" >&5
  2865 echo "${ECHO_T}$CC" >&6; }
  2866 else
  2867   { echo "$as_me:$LINENO: result: no" >&5
  2868 echo "${ECHO_T}no" >&6; }
  2869 fi
  2872 fi
  2873 if test -z "$ac_cv_prog_CC"; then
  2874   ac_ct_CC=$CC
  2875   # Extract the first word of "gcc", so it can be a program name with args.
  2876 set dummy gcc; ac_word=$2
  2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2880   echo $ECHO_N "(cached) $ECHO_C" >&6
  2881 else
  2882   if test -n "$ac_ct_CC"; then
  2883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2884 else
  2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2886 for as_dir in $PATH
  2887 do
  2888   IFS=$as_save_IFS
  2889   test -z "$as_dir" && as_dir=.
  2890   for ac_exec_ext in '' $ac_executable_extensions; do
  2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2892     ac_cv_prog_ac_ct_CC="gcc"
  2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2894     break 2
  2895   fi
  2896 done
  2897 done
  2898 IFS=$as_save_IFS
  2900 fi
  2901 fi
  2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2903 if test -n "$ac_ct_CC"; then
  2904   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2905 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2906 else
  2907   { echo "$as_me:$LINENO: result: no" >&5
  2908 echo "${ECHO_T}no" >&6; }
  2909 fi
  2911   if test "x$ac_ct_CC" = x; then
  2912     CC=""
  2913   else
  2914     case $cross_compiling:$ac_tool_warned in
  2915 yes:)
  2916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2917 whose name does not start with the host triplet.  If you think this
  2918 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2920 whose name does not start with the host triplet.  If you think this
  2921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2922 ac_tool_warned=yes ;;
  2923 esac
  2924     CC=$ac_ct_CC
  2925   fi
  2926 else
  2927   CC="$ac_cv_prog_CC"
  2928 fi
  2930 if test -z "$CC"; then
  2931           if test -n "$ac_tool_prefix"; then
  2932     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2936 if test "${ac_cv_prog_CC+set}" = set; then
  2937   echo $ECHO_N "(cached) $ECHO_C" >&6
  2938 else
  2939   if test -n "$CC"; then
  2940   ac_cv_prog_CC="$CC" # Let the user override the test.
  2941 else
  2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2943 for as_dir in $PATH
  2944 do
  2945   IFS=$as_save_IFS
  2946   test -z "$as_dir" && as_dir=.
  2947   for ac_exec_ext in '' $ac_executable_extensions; do
  2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2949     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2951     break 2
  2952   fi
  2953 done
  2954 done
  2955 IFS=$as_save_IFS
  2957 fi
  2958 fi
  2959 CC=$ac_cv_prog_CC
  2960 if test -n "$CC"; then
  2961   { echo "$as_me:$LINENO: result: $CC" >&5
  2962 echo "${ECHO_T}$CC" >&6; }
  2963 else
  2964   { echo "$as_me:$LINENO: result: no" >&5
  2965 echo "${ECHO_T}no" >&6; }
  2966 fi
  2969   fi
  2970 fi
  2971 if test -z "$CC"; then
  2972   # Extract the first word of "cc", so it can be a program name with args.
  2973 set dummy cc; ac_word=$2
  2974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2976 if test "${ac_cv_prog_CC+set}" = set; then
  2977   echo $ECHO_N "(cached) $ECHO_C" >&6
  2978 else
  2979   if test -n "$CC"; then
  2980   ac_cv_prog_CC="$CC" # Let the user override the test.
  2981 else
  2982   ac_prog_rejected=no
  2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984 for as_dir in $PATH
  2985 do
  2986   IFS=$as_save_IFS
  2987   test -z "$as_dir" && as_dir=.
  2988   for ac_exec_ext in '' $ac_executable_extensions; do
  2989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2991        ac_prog_rejected=yes
  2992        continue
  2993      fi
  2994     ac_cv_prog_CC="cc"
  2995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2996     break 2
  2997   fi
  2998 done
  2999 done
  3000 IFS=$as_save_IFS
  3002 if test $ac_prog_rejected = yes; then
  3003   # We found a bogon in the path, so make sure we never use it.
  3004   set dummy $ac_cv_prog_CC
  3005   shift
  3006   if test $# != 0; then
  3007     # We chose a different compiler from the bogus one.
  3008     # However, it has the same basename, so the bogon will be chosen
  3009     # first if we set CC to just the basename; use the full file name.
  3010     shift
  3011     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3012   fi
  3013 fi
  3014 fi
  3015 fi
  3016 CC=$ac_cv_prog_CC
  3017 if test -n "$CC"; then
  3018   { echo "$as_me:$LINENO: result: $CC" >&5
  3019 echo "${ECHO_T}$CC" >&6; }
  3020 else
  3021   { echo "$as_me:$LINENO: result: no" >&5
  3022 echo "${ECHO_T}no" >&6; }
  3023 fi
  3026 fi
  3027 if test -z "$CC"; then
  3028   if test -n "$ac_tool_prefix"; then
  3029   for ac_prog in cl.exe
  3030   do
  3031     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3035 if test "${ac_cv_prog_CC+set}" = set; then
  3036   echo $ECHO_N "(cached) $ECHO_C" >&6
  3037 else
  3038   if test -n "$CC"; then
  3039   ac_cv_prog_CC="$CC" # Let the user override the test.
  3040 else
  3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3042 for as_dir in $PATH
  3043 do
  3044   IFS=$as_save_IFS
  3045   test -z "$as_dir" && as_dir=.
  3046   for ac_exec_ext in '' $ac_executable_extensions; do
  3047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3048     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3050     break 2
  3051   fi
  3052 done
  3053 done
  3054 IFS=$as_save_IFS
  3056 fi
  3057 fi
  3058 CC=$ac_cv_prog_CC
  3059 if test -n "$CC"; then
  3060   { echo "$as_me:$LINENO: result: $CC" >&5
  3061 echo "${ECHO_T}$CC" >&6; }
  3062 else
  3063   { echo "$as_me:$LINENO: result: no" >&5
  3064 echo "${ECHO_T}no" >&6; }
  3065 fi
  3068     test -n "$CC" && break
  3069   done
  3070 fi
  3071 if test -z "$CC"; then
  3072   ac_ct_CC=$CC
  3073   for ac_prog in cl.exe
  3074 do
  3075   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3076 set dummy $ac_prog; ac_word=$2
  3077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3080   echo $ECHO_N "(cached) $ECHO_C" >&6
  3081 else
  3082   if test -n "$ac_ct_CC"; then
  3083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3084 else
  3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3086 for as_dir in $PATH
  3087 do
  3088   IFS=$as_save_IFS
  3089   test -z "$as_dir" && as_dir=.
  3090   for ac_exec_ext in '' $ac_executable_extensions; do
  3091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3092     ac_cv_prog_ac_ct_CC="$ac_prog"
  3093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3094     break 2
  3095   fi
  3096 done
  3097 done
  3098 IFS=$as_save_IFS
  3100 fi
  3101 fi
  3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3103 if test -n "$ac_ct_CC"; then
  3104   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3105 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3106 else
  3107   { echo "$as_me:$LINENO: result: no" >&5
  3108 echo "${ECHO_T}no" >&6; }
  3109 fi
  3112   test -n "$ac_ct_CC" && break
  3113 done
  3115   if test "x$ac_ct_CC" = x; then
  3116     CC=""
  3117   else
  3118     case $cross_compiling:$ac_tool_warned in
  3119 yes:)
  3120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3121 whose name does not start with the host triplet.  If you think this
  3122 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3124 whose name does not start with the host triplet.  If you think this
  3125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3126 ac_tool_warned=yes ;;
  3127 esac
  3128     CC=$ac_ct_CC
  3129   fi
  3130 fi
  3132 fi
  3135 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3136 See \`config.log' for more details." >&5
  3137 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3138 See \`config.log' for more details." >&2;}
  3139    { (exit 1); exit 1; }; }
  3141 # Provide some information about the compiler.
  3142 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3143 ac_compiler=`set X $ac_compile; echo $2`
  3144 { (ac_try="$ac_compiler --version >&5"
  3145 case "(($ac_try" in
  3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3147   *) ac_try_echo=$ac_try;;
  3148 esac
  3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3150   (eval "$ac_compiler --version >&5") 2>&5
  3151   ac_status=$?
  3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3153   (exit $ac_status); }
  3154 { (ac_try="$ac_compiler -v >&5"
  3155 case "(($ac_try" in
  3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3157   *) ac_try_echo=$ac_try;;
  3158 esac
  3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3160   (eval "$ac_compiler -v >&5") 2>&5
  3161   ac_status=$?
  3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3163   (exit $ac_status); }
  3164 { (ac_try="$ac_compiler -V >&5"
  3165 case "(($ac_try" in
  3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3167   *) ac_try_echo=$ac_try;;
  3168 esac
  3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3170   (eval "$ac_compiler -V >&5") 2>&5
  3171   ac_status=$?
  3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3173   (exit $ac_status); }
  3175 cat >conftest.$ac_ext <<_ACEOF
  3176 /* confdefs.h.  */
  3177 _ACEOF
  3178 cat confdefs.h >>conftest.$ac_ext
  3179 cat >>conftest.$ac_ext <<_ACEOF
  3180 /* end confdefs.h.  */
  3182 int
  3183 main ()
  3187   return 0;
  3189 _ACEOF
  3190 ac_clean_files_save=$ac_clean_files
  3191 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  3192 # Try to create an executable without -o first, disregard a.out.
  3193 # It will help us diagnose broken compilers, and finding out an intuition
  3194 # of exeext.
  3195 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  3196 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  3197 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3199 # List of possible output files, starting from the most likely.
  3200 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  3201 # only as a last resort.  b.out is created by i960 compilers.
  3202 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  3204 # The IRIX 6 linker writes into existing files which may not be
  3205 # executable, retaining their permissions.  Remove them first so a
  3206 # subsequent execution test works.
  3207 ac_rmfiles=
  3208 for ac_file in $ac_files
  3209 do
  3210   case $ac_file in
  3211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3212     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3213   esac
  3214 done
  3215 rm -f $ac_rmfiles
  3217 if { (ac_try="$ac_link_default"
  3218 case "(($ac_try" in
  3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3220   *) ac_try_echo=$ac_try;;
  3221 esac
  3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3223   (eval "$ac_link_default") 2>&5
  3224   ac_status=$?
  3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3226   (exit $ac_status); }; then
  3227   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3228 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3229 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3230 # so that the user can short-circuit this test for compilers unknown to
  3231 # Autoconf.
  3232 for ac_file in $ac_files ''
  3233 do
  3234   test -f "$ac_file" || continue
  3235   case $ac_file in
  3236     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  3237 	;;
  3238     [ab].out )
  3239 	# We found the default executable, but exeext='' is most
  3240 	# certainly right.
  3241 	break;;
  3242     *.* )
  3243         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3244 	then :; else
  3245 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3246 	fi
  3247 	# We set ac_cv_exeext here because the later test for it is not
  3248 	# safe: cross compilers may not add the suffix if given an `-o'
  3249 	# argument, so we may need to know it at that point already.
  3250 	# Even if this section looks crufty: it has the advantage of
  3251 	# actually working.
  3252 	break;;
  3253     * )
  3254 	break;;
  3255   esac
  3256 done
  3257 test "$ac_cv_exeext" = no && ac_cv_exeext=
  3259 else
  3260   ac_file=''
  3261 fi
  3263 { echo "$as_me:$LINENO: result: $ac_file" >&5
  3264 echo "${ECHO_T}$ac_file" >&6; }
  3265 if test -z "$ac_file"; then
  3266   echo "$as_me: failed program was:" >&5
  3267 sed 's/^/| /' conftest.$ac_ext >&5
  3269 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  3270 See \`config.log' for more details." >&5
  3271 echo "$as_me: error: C compiler cannot create executables
  3272 See \`config.log' for more details." >&2;}
  3273    { (exit 77); exit 77; }; }
  3274 fi
  3276 ac_exeext=$ac_cv_exeext
  3278 # Check that the compiler produces executables we can run.  If not, either
  3279 # the compiler is broken, or we cross compile.
  3280 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3281 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  3282 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3283 # If not cross compiling, check that we can run a simple program.
  3284 if test "$cross_compiling" != yes; then
  3285   if { ac_try='./$ac_file'
  3286   { (case "(($ac_try" in
  3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3288   *) ac_try_echo=$ac_try;;
  3289 esac
  3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3291   (eval "$ac_try") 2>&5
  3292   ac_status=$?
  3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3294   (exit $ac_status); }; }; then
  3295     cross_compiling=no
  3296   else
  3297     if test "$cross_compiling" = maybe; then
  3298 	cross_compiling=yes
  3299     else
  3300 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3301 If you meant to cross compile, use \`--host'.
  3302 See \`config.log' for more details." >&5
  3303 echo "$as_me: error: cannot run C compiled programs.
  3304 If you meant to cross compile, use \`--host'.
  3305 See \`config.log' for more details." >&2;}
  3306    { (exit 1); exit 1; }; }
  3307     fi
  3308   fi
  3309 fi
  3310 { echo "$as_me:$LINENO: result: yes" >&5
  3311 echo "${ECHO_T}yes" >&6; }
  3313 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  3314 ac_clean_files=$ac_clean_files_save
  3315 # Check that the compiler produces executables we can run.  If not, either
  3316 # the compiler is broken, or we cross compile.
  3317 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3318 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3319 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3320 echo "${ECHO_T}$cross_compiling" >&6; }
  3322 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3323 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3324 if { (ac_try="$ac_link"
  3325 case "(($ac_try" in
  3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3327   *) ac_try_echo=$ac_try;;
  3328 esac
  3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3330   (eval "$ac_link") 2>&5
  3331   ac_status=$?
  3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3333   (exit $ac_status); }; then
  3334   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3335 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3336 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3337 # `rm'.
  3338 for ac_file in conftest.exe conftest conftest.*; do
  3339   test -f "$ac_file" || continue
  3340   case $ac_file in
  3341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3342     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3343 	  break;;
  3344     * ) break;;
  3345   esac
  3346 done
  3347 else
  3348   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3349 See \`config.log' for more details." >&5
  3350 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3351 See \`config.log' for more details." >&2;}
  3352    { (exit 1); exit 1; }; }
  3353 fi
  3355 rm -f conftest$ac_cv_exeext
  3356 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3357 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3359 rm -f conftest.$ac_ext
  3360 EXEEXT=$ac_cv_exeext
  3361 ac_exeext=$EXEEXT
  3362 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3363 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3364 if test "${ac_cv_objext+set}" = set; then
  3365   echo $ECHO_N "(cached) $ECHO_C" >&6
  3366 else
  3367   cat >conftest.$ac_ext <<_ACEOF
  3368 /* confdefs.h.  */
  3369 _ACEOF
  3370 cat confdefs.h >>conftest.$ac_ext
  3371 cat >>conftest.$ac_ext <<_ACEOF
  3372 /* end confdefs.h.  */
  3374 int
  3375 main ()
  3379   return 0;
  3381 _ACEOF
  3382 rm -f conftest.o conftest.obj
  3383 if { (ac_try="$ac_compile"
  3384 case "(($ac_try" in
  3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3386   *) ac_try_echo=$ac_try;;
  3387 esac
  3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3389   (eval "$ac_compile") 2>&5
  3390   ac_status=$?
  3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392   (exit $ac_status); }; then
  3393   for ac_file in conftest.o conftest.obj conftest.*; do
  3394   test -f "$ac_file" || continue;
  3395   case $ac_file in
  3396     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3397     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3398        break;;
  3399   esac
  3400 done
  3401 else
  3402   echo "$as_me: failed program was:" >&5
  3403 sed 's/^/| /' conftest.$ac_ext >&5
  3405 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3406 See \`config.log' for more details." >&5
  3407 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3408 See \`config.log' for more details." >&2;}
  3409    { (exit 1); exit 1; }; }
  3410 fi
  3412 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3413 fi
  3414 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3415 echo "${ECHO_T}$ac_cv_objext" >&6; }
  3416 OBJEXT=$ac_cv_objext
  3417 ac_objext=$OBJEXT
  3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3419 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3420 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3421   echo $ECHO_N "(cached) $ECHO_C" >&6
  3422 else
  3423   cat >conftest.$ac_ext <<_ACEOF
  3424 /* confdefs.h.  */
  3425 _ACEOF
  3426 cat confdefs.h >>conftest.$ac_ext
  3427 cat >>conftest.$ac_ext <<_ACEOF
  3428 /* end confdefs.h.  */
  3430 int
  3431 main ()
  3433 #ifndef __GNUC__
  3434        choke me
  3435 #endif
  3438   return 0;
  3440 _ACEOF
  3441 rm -f conftest.$ac_objext
  3442 if { (ac_try="$ac_compile"
  3443 case "(($ac_try" in
  3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3445   *) ac_try_echo=$ac_try;;
  3446 esac
  3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3448   (eval "$ac_compile") 2>conftest.er1
  3449   ac_status=$?
  3450   grep -v '^ *+' conftest.er1 >conftest.err
  3451   rm -f conftest.er1
  3452   cat conftest.err >&5
  3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3454   (exit $ac_status); } && {
  3455 	 test -z "$ac_c_werror_flag" ||
  3456 	 test ! -s conftest.err
  3457        } && test -s conftest.$ac_objext; then
  3458   ac_compiler_gnu=yes
  3459 else
  3460   echo "$as_me: failed program was:" >&5
  3461 sed 's/^/| /' conftest.$ac_ext >&5
  3463 	ac_compiler_gnu=no
  3464 fi
  3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3469 fi
  3470 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3471 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3472 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3473 ac_test_CFLAGS=${CFLAGS+set}
  3474 ac_save_CFLAGS=$CFLAGS
  3475 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3476 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3477 if test "${ac_cv_prog_cc_g+set}" = set; then
  3478   echo $ECHO_N "(cached) $ECHO_C" >&6
  3479 else
  3480   ac_save_c_werror_flag=$ac_c_werror_flag
  3481    ac_c_werror_flag=yes
  3482    ac_cv_prog_cc_g=no
  3483    CFLAGS="-g"
  3484    cat >conftest.$ac_ext <<_ACEOF
  3485 /* confdefs.h.  */
  3486 _ACEOF
  3487 cat confdefs.h >>conftest.$ac_ext
  3488 cat >>conftest.$ac_ext <<_ACEOF
  3489 /* end confdefs.h.  */
  3491 int
  3492 main ()
  3496   return 0;
  3498 _ACEOF
  3499 rm -f conftest.$ac_objext
  3500 if { (ac_try="$ac_compile"
  3501 case "(($ac_try" in
  3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3503   *) ac_try_echo=$ac_try;;
  3504 esac
  3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3506   (eval "$ac_compile") 2>conftest.er1
  3507   ac_status=$?
  3508   grep -v '^ *+' conftest.er1 >conftest.err
  3509   rm -f conftest.er1
  3510   cat conftest.err >&5
  3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3512   (exit $ac_status); } && {
  3513 	 test -z "$ac_c_werror_flag" ||
  3514 	 test ! -s conftest.err
  3515        } && test -s conftest.$ac_objext; then
  3516   ac_cv_prog_cc_g=yes
  3517 else
  3518   echo "$as_me: failed program was:" >&5
  3519 sed 's/^/| /' conftest.$ac_ext >&5
  3521 	CFLAGS=""
  3522       cat >conftest.$ac_ext <<_ACEOF
  3523 /* confdefs.h.  */
  3524 _ACEOF
  3525 cat confdefs.h >>conftest.$ac_ext
  3526 cat >>conftest.$ac_ext <<_ACEOF
  3527 /* end confdefs.h.  */
  3529 int
  3530 main ()
  3534   return 0;
  3536 _ACEOF
  3537 rm -f conftest.$ac_objext
  3538 if { (ac_try="$ac_compile"
  3539 case "(($ac_try" in
  3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3541   *) ac_try_echo=$ac_try;;
  3542 esac
  3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3544   (eval "$ac_compile") 2>conftest.er1
  3545   ac_status=$?
  3546   grep -v '^ *+' conftest.er1 >conftest.err
  3547   rm -f conftest.er1
  3548   cat conftest.err >&5
  3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3550   (exit $ac_status); } && {
  3551 	 test -z "$ac_c_werror_flag" ||
  3552 	 test ! -s conftest.err
  3553        } && test -s conftest.$ac_objext; then
  3555 else
  3556   echo "$as_me: failed program was:" >&5
  3557 sed 's/^/| /' conftest.$ac_ext >&5
  3559 	ac_c_werror_flag=$ac_save_c_werror_flag
  3560 	 CFLAGS="-g"
  3561 	 cat >conftest.$ac_ext <<_ACEOF
  3562 /* confdefs.h.  */
  3563 _ACEOF
  3564 cat confdefs.h >>conftest.$ac_ext
  3565 cat >>conftest.$ac_ext <<_ACEOF
  3566 /* end confdefs.h.  */
  3568 int
  3569 main ()
  3573   return 0;
  3575 _ACEOF
  3576 rm -f conftest.$ac_objext
  3577 if { (ac_try="$ac_compile"
  3578 case "(($ac_try" in
  3579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3580   *) ac_try_echo=$ac_try;;
  3581 esac
  3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3583   (eval "$ac_compile") 2>conftest.er1
  3584   ac_status=$?
  3585   grep -v '^ *+' conftest.er1 >conftest.err
  3586   rm -f conftest.er1
  3587   cat conftest.err >&5
  3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3589   (exit $ac_status); } && {
  3590 	 test -z "$ac_c_werror_flag" ||
  3591 	 test ! -s conftest.err
  3592        } && test -s conftest.$ac_objext; then
  3593   ac_cv_prog_cc_g=yes
  3594 else
  3595   echo "$as_me: failed program was:" >&5
  3596 sed 's/^/| /' conftest.$ac_ext >&5
  3599 fi
  3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3602 fi
  3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3605 fi
  3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3608    ac_c_werror_flag=$ac_save_c_werror_flag
  3609 fi
  3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3611 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3612 if test "$ac_test_CFLAGS" = set; then
  3613   CFLAGS=$ac_save_CFLAGS
  3614 elif test $ac_cv_prog_cc_g = yes; then
  3615   if test "$GCC" = yes; then
  3616     CFLAGS="-g -O2"
  3617   else
  3618     CFLAGS="-g"
  3619   fi
  3620 else
  3621   if test "$GCC" = yes; then
  3622     CFLAGS="-O2"
  3623   else
  3624     CFLAGS=
  3625   fi
  3626 fi
  3627 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3628 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3629 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3630   echo $ECHO_N "(cached) $ECHO_C" >&6
  3631 else
  3632   ac_cv_prog_cc_c89=no
  3633 ac_save_CC=$CC
  3634 cat >conftest.$ac_ext <<_ACEOF
  3635 /* confdefs.h.  */
  3636 _ACEOF
  3637 cat confdefs.h >>conftest.$ac_ext
  3638 cat >>conftest.$ac_ext <<_ACEOF
  3639 /* end confdefs.h.  */
  3640 #include <stdarg.h>
  3641 #include <stdio.h>
  3642 #include <sys/types.h>
  3643 #include <sys/stat.h>
  3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3645 struct buf { int x; };
  3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3647 static char *e (p, i)
  3648      char **p;
  3649      int i;
  3651   return p[i];
  3653 static char *f (char * (*g) (char **, int), char **p, ...)
  3655   char *s;
  3656   va_list v;
  3657   va_start (v,p);
  3658   s = g (p, va_arg (v,int));
  3659   va_end (v);
  3660   return s;
  3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3664    function prototypes and stuff, but not '\xHH' hex character constants.
  3665    These don't provoke an error unfortunately, instead are silently treated
  3666    as 'x'.  The following induces an error, until -std is added to get
  3667    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3668    array size at least.  It's necessary to write '\x00'==0 to get something
  3669    that's true only with -std.  */
  3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3673    inside strings and character constants.  */
  3674 #define FOO(x) 'x'
  3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3677 int test (int i, double x);
  3678 struct s1 {int (*f) (int a);};
  3679 struct s2 {int (*f) (double a);};
  3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3681 int argc;
  3682 char **argv;
  3683 int
  3684 main ()
  3686 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3688   return 0;
  3690 _ACEOF
  3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3692 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3693 do
  3694   CC="$ac_save_CC $ac_arg"
  3695   rm -f conftest.$ac_objext
  3696 if { (ac_try="$ac_compile"
  3697 case "(($ac_try" in
  3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3699   *) ac_try_echo=$ac_try;;
  3700 esac
  3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3702   (eval "$ac_compile") 2>conftest.er1
  3703   ac_status=$?
  3704   grep -v '^ *+' conftest.er1 >conftest.err
  3705   rm -f conftest.er1
  3706   cat conftest.err >&5
  3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3708   (exit $ac_status); } && {
  3709 	 test -z "$ac_c_werror_flag" ||
  3710 	 test ! -s conftest.err
  3711        } && test -s conftest.$ac_objext; then
  3712   ac_cv_prog_cc_c89=$ac_arg
  3713 else
  3714   echo "$as_me: failed program was:" >&5
  3715 sed 's/^/| /' conftest.$ac_ext >&5
  3718 fi
  3720 rm -f core conftest.err conftest.$ac_objext
  3721   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3722 done
  3723 rm -f conftest.$ac_ext
  3724 CC=$ac_save_CC
  3726 fi
  3727 # AC_CACHE_VAL
  3728 case "x$ac_cv_prog_cc_c89" in
  3729   x)
  3730     { echo "$as_me:$LINENO: result: none needed" >&5
  3731 echo "${ECHO_T}none needed" >&6; } ;;
  3732   xno)
  3733     { echo "$as_me:$LINENO: result: unsupported" >&5
  3734 echo "${ECHO_T}unsupported" >&6; } ;;
  3735   *)
  3736     CC="$CC $ac_cv_prog_cc_c89"
  3737     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3738 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3739 esac
  3742 ac_ext=c
  3743 ac_cpp='$CPP $CPPFLAGS'
  3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3748 depcc="$CC"   am_compiler_list=
  3750 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3751 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3752 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3753   echo $ECHO_N "(cached) $ECHO_C" >&6
  3754 else
  3755   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3756   # We make a subdir and do the tests there.  Otherwise we can end up
  3757   # making bogus files that we don't know about and never remove.  For
  3758   # instance it was reported that on HP-UX the gcc test will end up
  3759   # making a dummy file named `D' -- because `-MD' means `put the output
  3760   # in D'.
  3761   mkdir conftest.dir
  3762   # Copy depcomp to subdir because otherwise we won't find it if we're
  3763   # using a relative directory.
  3764   cp "$am_depcomp" conftest.dir
  3765   cd conftest.dir
  3766   # We will build objects and dependencies in a subdirectory because
  3767   # it helps to detect inapplicable dependency modes.  For instance
  3768   # both Tru64's cc and ICC support -MD to output dependencies as a
  3769   # side effect of compilation, but ICC will put the dependencies in
  3770   # the current directory while Tru64 will put them in the object
  3771   # directory.
  3772   mkdir sub
  3774   am_cv_CC_dependencies_compiler_type=none
  3775   if test "$am_compiler_list" = ""; then
  3776      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3777   fi
  3778   for depmode in $am_compiler_list; do
  3779     # Setup a source with many dependencies, because some compilers
  3780     # like to wrap large dependency lists on column 80 (with \), and
  3781     # we should not choose a depcomp mode which is confused by this.
  3783     # We need to recreate these files for each test, as the compiler may
  3784     # overwrite some of them when testing with obscure command lines.
  3785     # This happens at least with the AIX C compiler.
  3786     : > sub/conftest.c
  3787     for i in 1 2 3 4 5 6; do
  3788       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3789       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3790       # Solaris 8's {/usr,}/bin/sh.
  3791       touch sub/conftst$i.h
  3792     done
  3793     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3795     case $depmode in
  3796     nosideeffect)
  3797       # after this tag, mechanisms are not by side-effect, so they'll
  3798       # only be used when explicitly requested
  3799       if test "x$enable_dependency_tracking" = xyes; then
  3800 	continue
  3801       else
  3802 	break
  3803       fi
  3804       ;;
  3805     none) break ;;
  3806     esac
  3807     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3808     # mode.  It turns out that the SunPro C++ compiler does not properly
  3809     # handle `-M -o', and we need to detect this.
  3810     if depmode=$depmode \
  3811        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3812        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3813        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3814          >/dev/null 2>conftest.err &&
  3815        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3816        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3817        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3818       # icc doesn't choke on unknown options, it will just issue warnings
  3819       # or remarks (even with -Werror).  So we grep stderr for any message
  3820       # that says an option was ignored or not supported.
  3821       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3822       #   icc: Command line warning: ignoring option '-M'; no argument required
  3823       # The diagnosis changed in icc 8.0:
  3824       #   icc: Command line remark: option '-MP' not supported
  3825       if (grep 'ignoring option' conftest.err ||
  3826           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3827         am_cv_CC_dependencies_compiler_type=$depmode
  3828         break
  3829       fi
  3830     fi
  3831   done
  3833   cd ..
  3834   rm -rf conftest.dir
  3835 else
  3836   am_cv_CC_dependencies_compiler_type=none
  3837 fi
  3839 fi
  3840 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3841 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3842 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3846 if
  3847   test "x$enable_dependency_tracking" != xno \
  3848   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3849   am__fastdepCC_TRUE=
  3850   am__fastdepCC_FALSE='#'
  3851 else
  3852   am__fastdepCC_TRUE='#'
  3853   am__fastdepCC_FALSE=
  3854 fi
  3859         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3860 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  3861 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3862   echo $ECHO_N "(cached) $ECHO_C" >&6
  3863 else
  3864   ac_check_lib_save_LIBS=$LIBS
  3865 LIBS="-lcposix  $LIBS"
  3866 cat >conftest.$ac_ext <<_ACEOF
  3867 /* confdefs.h.  */
  3868 _ACEOF
  3869 cat confdefs.h >>conftest.$ac_ext
  3870 cat >>conftest.$ac_ext <<_ACEOF
  3871 /* end confdefs.h.  */
  3873 /* Override any GCC internal prototype to avoid an error.
  3874    Use char because int might match the return type of a GCC
  3875    builtin and then its argument prototype would still apply.  */
  3876 #ifdef __cplusplus
  3877 extern "C"
  3878 #endif
  3879 char strerror ();
  3880 int
  3881 main ()
  3883 return strerror ();
  3885   return 0;
  3887 _ACEOF
  3888 rm -f conftest.$ac_objext conftest$ac_exeext
  3889 if { (ac_try="$ac_link"
  3890 case "(($ac_try" in
  3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3892   *) ac_try_echo=$ac_try;;
  3893 esac
  3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3895   (eval "$ac_link") 2>conftest.er1
  3896   ac_status=$?
  3897   grep -v '^ *+' conftest.er1 >conftest.err
  3898   rm -f conftest.er1
  3899   cat conftest.err >&5
  3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3901   (exit $ac_status); } && {
  3902 	 test -z "$ac_c_werror_flag" ||
  3903 	 test ! -s conftest.err
  3904        } && test -s conftest$ac_exeext &&
  3905        $as_test_x conftest$ac_exeext; then
  3906   ac_cv_lib_cposix_strerror=yes
  3907 else
  3908   echo "$as_me: failed program was:" >&5
  3909 sed 's/^/| /' conftest.$ac_ext >&5
  3911 	ac_cv_lib_cposix_strerror=no
  3912 fi
  3914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3915       conftest$ac_exeext conftest.$ac_ext
  3916 LIBS=$ac_check_lib_save_LIBS
  3917 fi
  3918 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3919 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  3920 if test $ac_cv_lib_cposix_strerror = yes; then
  3921   LIBS="$LIBS -lcposix"
  3922 fi
  3926 ac_ext=c
  3927 ac_cpp='$CPP $CPPFLAGS'
  3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3931 if test -n "$ac_tool_prefix"; then
  3932   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3933 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3936 if test "${ac_cv_prog_CC+set}" = set; then
  3937   echo $ECHO_N "(cached) $ECHO_C" >&6
  3938 else
  3939   if test -n "$CC"; then
  3940   ac_cv_prog_CC="$CC" # Let the user override the test.
  3941 else
  3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3943 for as_dir in $PATH
  3944 do
  3945   IFS=$as_save_IFS
  3946   test -z "$as_dir" && as_dir=.
  3947   for ac_exec_ext in '' $ac_executable_extensions; do
  3948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3949     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3951     break 2
  3952   fi
  3953 done
  3954 done
  3955 IFS=$as_save_IFS
  3957 fi
  3958 fi
  3959 CC=$ac_cv_prog_CC
  3960 if test -n "$CC"; then
  3961   { echo "$as_me:$LINENO: result: $CC" >&5
  3962 echo "${ECHO_T}$CC" >&6; }
  3963 else
  3964   { echo "$as_me:$LINENO: result: no" >&5
  3965 echo "${ECHO_T}no" >&6; }
  3966 fi
  3969 fi
  3970 if test -z "$ac_cv_prog_CC"; then
  3971   ac_ct_CC=$CC
  3972   # Extract the first word of "gcc", so it can be a program name with args.
  3973 set dummy gcc; ac_word=$2
  3974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3977   echo $ECHO_N "(cached) $ECHO_C" >&6
  3978 else
  3979   if test -n "$ac_ct_CC"; then
  3980   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3981 else
  3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3983 for as_dir in $PATH
  3984 do
  3985   IFS=$as_save_IFS
  3986   test -z "$as_dir" && as_dir=.
  3987   for ac_exec_ext in '' $ac_executable_extensions; do
  3988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3989     ac_cv_prog_ac_ct_CC="gcc"
  3990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3991     break 2
  3992   fi
  3993 done
  3994 done
  3995 IFS=$as_save_IFS
  3997 fi
  3998 fi
  3999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4000 if test -n "$ac_ct_CC"; then
  4001   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4002 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4003 else
  4004   { echo "$as_me:$LINENO: result: no" >&5
  4005 echo "${ECHO_T}no" >&6; }
  4006 fi
  4008   if test "x$ac_ct_CC" = x; then
  4009     CC=""
  4010   else
  4011     case $cross_compiling:$ac_tool_warned in
  4012 yes:)
  4013 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4014 whose name does not start with the host triplet.  If you think this
  4015 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4016 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4017 whose name does not start with the host triplet.  If you think this
  4018 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4019 ac_tool_warned=yes ;;
  4020 esac
  4021     CC=$ac_ct_CC
  4022   fi
  4023 else
  4024   CC="$ac_cv_prog_CC"
  4025 fi
  4027 if test -z "$CC"; then
  4028           if test -n "$ac_tool_prefix"; then
  4029     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4030 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4033 if test "${ac_cv_prog_CC+set}" = set; then
  4034   echo $ECHO_N "(cached) $ECHO_C" >&6
  4035 else
  4036   if test -n "$CC"; then
  4037   ac_cv_prog_CC="$CC" # Let the user override the test.
  4038 else
  4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4040 for as_dir in $PATH
  4041 do
  4042   IFS=$as_save_IFS
  4043   test -z "$as_dir" && as_dir=.
  4044   for ac_exec_ext in '' $ac_executable_extensions; do
  4045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4046     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4048     break 2
  4049   fi
  4050 done
  4051 done
  4052 IFS=$as_save_IFS
  4054 fi
  4055 fi
  4056 CC=$ac_cv_prog_CC
  4057 if test -n "$CC"; then
  4058   { echo "$as_me:$LINENO: result: $CC" >&5
  4059 echo "${ECHO_T}$CC" >&6; }
  4060 else
  4061   { echo "$as_me:$LINENO: result: no" >&5
  4062 echo "${ECHO_T}no" >&6; }
  4063 fi
  4066   fi
  4067 fi
  4068 if test -z "$CC"; then
  4069   # Extract the first word of "cc", so it can be a program name with args.
  4070 set dummy cc; ac_word=$2
  4071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4073 if test "${ac_cv_prog_CC+set}" = set; then
  4074   echo $ECHO_N "(cached) $ECHO_C" >&6
  4075 else
  4076   if test -n "$CC"; then
  4077   ac_cv_prog_CC="$CC" # Let the user override the test.
  4078 else
  4079   ac_prog_rejected=no
  4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4081 for as_dir in $PATH
  4082 do
  4083   IFS=$as_save_IFS
  4084   test -z "$as_dir" && as_dir=.
  4085   for ac_exec_ext in '' $ac_executable_extensions; do
  4086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4087     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4088        ac_prog_rejected=yes
  4089        continue
  4090      fi
  4091     ac_cv_prog_CC="cc"
  4092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4093     break 2
  4094   fi
  4095 done
  4096 done
  4097 IFS=$as_save_IFS
  4099 if test $ac_prog_rejected = yes; then
  4100   # We found a bogon in the path, so make sure we never use it.
  4101   set dummy $ac_cv_prog_CC
  4102   shift
  4103   if test $# != 0; then
  4104     # We chose a different compiler from the bogus one.
  4105     # However, it has the same basename, so the bogon will be chosen
  4106     # first if we set CC to just the basename; use the full file name.
  4107     shift
  4108     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4109   fi
  4110 fi
  4111 fi
  4112 fi
  4113 CC=$ac_cv_prog_CC
  4114 if test -n "$CC"; then
  4115   { echo "$as_me:$LINENO: result: $CC" >&5
  4116 echo "${ECHO_T}$CC" >&6; }
  4117 else
  4118   { echo "$as_me:$LINENO: result: no" >&5
  4119 echo "${ECHO_T}no" >&6; }
  4120 fi
  4123 fi
  4124 if test -z "$CC"; then
  4125   if test -n "$ac_tool_prefix"; then
  4126   for ac_prog in cl.exe
  4127   do
  4128     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4132 if test "${ac_cv_prog_CC+set}" = set; then
  4133   echo $ECHO_N "(cached) $ECHO_C" >&6
  4134 else
  4135   if test -n "$CC"; then
  4136   ac_cv_prog_CC="$CC" # Let the user override the test.
  4137 else
  4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4139 for as_dir in $PATH
  4140 do
  4141   IFS=$as_save_IFS
  4142   test -z "$as_dir" && as_dir=.
  4143   for ac_exec_ext in '' $ac_executable_extensions; do
  4144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4145     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4147     break 2
  4148   fi
  4149 done
  4150 done
  4151 IFS=$as_save_IFS
  4153 fi
  4154 fi
  4155 CC=$ac_cv_prog_CC
  4156 if test -n "$CC"; then
  4157   { echo "$as_me:$LINENO: result: $CC" >&5
  4158 echo "${ECHO_T}$CC" >&6; }
  4159 else
  4160   { echo "$as_me:$LINENO: result: no" >&5
  4161 echo "${ECHO_T}no" >&6; }
  4162 fi
  4165     test -n "$CC" && break
  4166   done
  4167 fi
  4168 if test -z "$CC"; then
  4169   ac_ct_CC=$CC
  4170   for ac_prog in cl.exe
  4171 do
  4172   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4173 set dummy $ac_prog; ac_word=$2
  4174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4177   echo $ECHO_N "(cached) $ECHO_C" >&6
  4178 else
  4179   if test -n "$ac_ct_CC"; then
  4180   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4181 else
  4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4183 for as_dir in $PATH
  4184 do
  4185   IFS=$as_save_IFS
  4186   test -z "$as_dir" && as_dir=.
  4187   for ac_exec_ext in '' $ac_executable_extensions; do
  4188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4189     ac_cv_prog_ac_ct_CC="$ac_prog"
  4190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4191     break 2
  4192   fi
  4193 done
  4194 done
  4195 IFS=$as_save_IFS
  4197 fi
  4198 fi
  4199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4200 if test -n "$ac_ct_CC"; then
  4201   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4202 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4203 else
  4204   { echo "$as_me:$LINENO: result: no" >&5
  4205 echo "${ECHO_T}no" >&6; }
  4206 fi
  4209   test -n "$ac_ct_CC" && break
  4210 done
  4212   if test "x$ac_ct_CC" = x; then
  4213     CC=""
  4214   else
  4215     case $cross_compiling:$ac_tool_warned in
  4216 yes:)
  4217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4218 whose name does not start with the host triplet.  If you think this
  4219 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4221 whose name does not start with the host triplet.  If you think this
  4222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4223 ac_tool_warned=yes ;;
  4224 esac
  4225     CC=$ac_ct_CC
  4226   fi
  4227 fi
  4229 fi
  4232 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4233 See \`config.log' for more details." >&5
  4234 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4235 See \`config.log' for more details." >&2;}
  4236    { (exit 1); exit 1; }; }
  4238 # Provide some information about the compiler.
  4239 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4240 ac_compiler=`set X $ac_compile; echo $2`
  4241 { (ac_try="$ac_compiler --version >&5"
  4242 case "(($ac_try" in
  4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4244   *) ac_try_echo=$ac_try;;
  4245 esac
  4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4247   (eval "$ac_compiler --version >&5") 2>&5
  4248   ac_status=$?
  4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4250   (exit $ac_status); }
  4251 { (ac_try="$ac_compiler -v >&5"
  4252 case "(($ac_try" in
  4253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4254   *) ac_try_echo=$ac_try;;
  4255 esac
  4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4257   (eval "$ac_compiler -v >&5") 2>&5
  4258   ac_status=$?
  4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4260   (exit $ac_status); }
  4261 { (ac_try="$ac_compiler -V >&5"
  4262 case "(($ac_try" in
  4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4264   *) ac_try_echo=$ac_try;;
  4265 esac
  4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4267   (eval "$ac_compiler -V >&5") 2>&5
  4268   ac_status=$?
  4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4270   (exit $ac_status); }
  4272 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4275   echo $ECHO_N "(cached) $ECHO_C" >&6
  4276 else
  4277   cat >conftest.$ac_ext <<_ACEOF
  4278 /* confdefs.h.  */
  4279 _ACEOF
  4280 cat confdefs.h >>conftest.$ac_ext
  4281 cat >>conftest.$ac_ext <<_ACEOF
  4282 /* end confdefs.h.  */
  4284 int
  4285 main ()
  4287 #ifndef __GNUC__
  4288        choke me
  4289 #endif
  4292   return 0;
  4294 _ACEOF
  4295 rm -f conftest.$ac_objext
  4296 if { (ac_try="$ac_compile"
  4297 case "(($ac_try" in
  4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4299   *) ac_try_echo=$ac_try;;
  4300 esac
  4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4302   (eval "$ac_compile") 2>conftest.er1
  4303   ac_status=$?
  4304   grep -v '^ *+' conftest.er1 >conftest.err
  4305   rm -f conftest.er1
  4306   cat conftest.err >&5
  4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308   (exit $ac_status); } && {
  4309 	 test -z "$ac_c_werror_flag" ||
  4310 	 test ! -s conftest.err
  4311        } && test -s conftest.$ac_objext; then
  4312   ac_compiler_gnu=yes
  4313 else
  4314   echo "$as_me: failed program was:" >&5
  4315 sed 's/^/| /' conftest.$ac_ext >&5
  4317 	ac_compiler_gnu=no
  4318 fi
  4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4323 fi
  4324 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4325 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4326 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4327 ac_test_CFLAGS=${CFLAGS+set}
  4328 ac_save_CFLAGS=$CFLAGS
  4329 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4330 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4331 if test "${ac_cv_prog_cc_g+set}" = set; then
  4332   echo $ECHO_N "(cached) $ECHO_C" >&6
  4333 else
  4334   ac_save_c_werror_flag=$ac_c_werror_flag
  4335    ac_c_werror_flag=yes
  4336    ac_cv_prog_cc_g=no
  4337    CFLAGS="-g"
  4338    cat >conftest.$ac_ext <<_ACEOF
  4339 /* confdefs.h.  */
  4340 _ACEOF
  4341 cat confdefs.h >>conftest.$ac_ext
  4342 cat >>conftest.$ac_ext <<_ACEOF
  4343 /* end confdefs.h.  */
  4345 int
  4346 main ()
  4350   return 0;
  4352 _ACEOF
  4353 rm -f conftest.$ac_objext
  4354 if { (ac_try="$ac_compile"
  4355 case "(($ac_try" in
  4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4357   *) ac_try_echo=$ac_try;;
  4358 esac
  4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4360   (eval "$ac_compile") 2>conftest.er1
  4361   ac_status=$?
  4362   grep -v '^ *+' conftest.er1 >conftest.err
  4363   rm -f conftest.er1
  4364   cat conftest.err >&5
  4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4366   (exit $ac_status); } && {
  4367 	 test -z "$ac_c_werror_flag" ||
  4368 	 test ! -s conftest.err
  4369        } && test -s conftest.$ac_objext; then
  4370   ac_cv_prog_cc_g=yes
  4371 else
  4372   echo "$as_me: failed program was:" >&5
  4373 sed 's/^/| /' conftest.$ac_ext >&5
  4375 	CFLAGS=""
  4376       cat >conftest.$ac_ext <<_ACEOF
  4377 /* confdefs.h.  */
  4378 _ACEOF
  4379 cat confdefs.h >>conftest.$ac_ext
  4380 cat >>conftest.$ac_ext <<_ACEOF
  4381 /* end confdefs.h.  */
  4383 int
  4384 main ()
  4388   return 0;
  4390 _ACEOF
  4391 rm -f conftest.$ac_objext
  4392 if { (ac_try="$ac_compile"
  4393 case "(($ac_try" in
  4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4395   *) ac_try_echo=$ac_try;;
  4396 esac
  4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4398   (eval "$ac_compile") 2>conftest.er1
  4399   ac_status=$?
  4400   grep -v '^ *+' conftest.er1 >conftest.err
  4401   rm -f conftest.er1
  4402   cat conftest.err >&5
  4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4404   (exit $ac_status); } && {
  4405 	 test -z "$ac_c_werror_flag" ||
  4406 	 test ! -s conftest.err
  4407        } && test -s conftest.$ac_objext; then
  4409 else
  4410   echo "$as_me: failed program was:" >&5
  4411 sed 's/^/| /' conftest.$ac_ext >&5
  4413 	ac_c_werror_flag=$ac_save_c_werror_flag
  4414 	 CFLAGS="-g"
  4415 	 cat >conftest.$ac_ext <<_ACEOF
  4416 /* confdefs.h.  */
  4417 _ACEOF
  4418 cat confdefs.h >>conftest.$ac_ext
  4419 cat >>conftest.$ac_ext <<_ACEOF
  4420 /* end confdefs.h.  */
  4422 int
  4423 main ()
  4427   return 0;
  4429 _ACEOF
  4430 rm -f conftest.$ac_objext
  4431 if { (ac_try="$ac_compile"
  4432 case "(($ac_try" in
  4433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4434   *) ac_try_echo=$ac_try;;
  4435 esac
  4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4437   (eval "$ac_compile") 2>conftest.er1
  4438   ac_status=$?
  4439   grep -v '^ *+' conftest.er1 >conftest.err
  4440   rm -f conftest.er1
  4441   cat conftest.err >&5
  4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4443   (exit $ac_status); } && {
  4444 	 test -z "$ac_c_werror_flag" ||
  4445 	 test ! -s conftest.err
  4446        } && test -s conftest.$ac_objext; then
  4447   ac_cv_prog_cc_g=yes
  4448 else
  4449   echo "$as_me: failed program was:" >&5
  4450 sed 's/^/| /' conftest.$ac_ext >&5
  4453 fi
  4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4456 fi
  4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4459 fi
  4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4462    ac_c_werror_flag=$ac_save_c_werror_flag
  4463 fi
  4464 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4465 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4466 if test "$ac_test_CFLAGS" = set; then
  4467   CFLAGS=$ac_save_CFLAGS
  4468 elif test $ac_cv_prog_cc_g = yes; then
  4469   if test "$GCC" = yes; then
  4470     CFLAGS="-g -O2"
  4471   else
  4472     CFLAGS="-g"
  4473   fi
  4474 else
  4475   if test "$GCC" = yes; then
  4476     CFLAGS="-O2"
  4477   else
  4478     CFLAGS=
  4479   fi
  4480 fi
  4481 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4482 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4483 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4484   echo $ECHO_N "(cached) $ECHO_C" >&6
  4485 else
  4486   ac_cv_prog_cc_c89=no
  4487 ac_save_CC=$CC
  4488 cat >conftest.$ac_ext <<_ACEOF
  4489 /* confdefs.h.  */
  4490 _ACEOF
  4491 cat confdefs.h >>conftest.$ac_ext
  4492 cat >>conftest.$ac_ext <<_ACEOF
  4493 /* end confdefs.h.  */
  4494 #include <stdarg.h>
  4495 #include <stdio.h>
  4496 #include <sys/types.h>
  4497 #include <sys/stat.h>
  4498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4499 struct buf { int x; };
  4500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4501 static char *e (p, i)
  4502      char **p;
  4503      int i;
  4505   return p[i];
  4507 static char *f (char * (*g) (char **, int), char **p, ...)
  4509   char *s;
  4510   va_list v;
  4511   va_start (v,p);
  4512   s = g (p, va_arg (v,int));
  4513   va_end (v);
  4514   return s;
  4517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4518    function prototypes and stuff, but not '\xHH' hex character constants.
  4519    These don't provoke an error unfortunately, instead are silently treated
  4520    as 'x'.  The following induces an error, until -std is added to get
  4521    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4522    array size at least.  It's necessary to write '\x00'==0 to get something
  4523    that's true only with -std.  */
  4524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4527    inside strings and character constants.  */
  4528 #define FOO(x) 'x'
  4529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4531 int test (int i, double x);
  4532 struct s1 {int (*f) (int a);};
  4533 struct s2 {int (*f) (double a);};
  4534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4535 int argc;
  4536 char **argv;
  4537 int
  4538 main ()
  4540 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4542   return 0;
  4544 _ACEOF
  4545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4546 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4547 do
  4548   CC="$ac_save_CC $ac_arg"
  4549   rm -f conftest.$ac_objext
  4550 if { (ac_try="$ac_compile"
  4551 case "(($ac_try" in
  4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4553   *) ac_try_echo=$ac_try;;
  4554 esac
  4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4556   (eval "$ac_compile") 2>conftest.er1
  4557   ac_status=$?
  4558   grep -v '^ *+' conftest.er1 >conftest.err
  4559   rm -f conftest.er1
  4560   cat conftest.err >&5
  4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4562   (exit $ac_status); } && {
  4563 	 test -z "$ac_c_werror_flag" ||
  4564 	 test ! -s conftest.err
  4565        } && test -s conftest.$ac_objext; then
  4566   ac_cv_prog_cc_c89=$ac_arg
  4567 else
  4568   echo "$as_me: failed program was:" >&5
  4569 sed 's/^/| /' conftest.$ac_ext >&5
  4572 fi
  4574 rm -f core conftest.err conftest.$ac_objext
  4575   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4576 done
  4577 rm -f conftest.$ac_ext
  4578 CC=$ac_save_CC
  4580 fi
  4581 # AC_CACHE_VAL
  4582 case "x$ac_cv_prog_cc_c89" in
  4583   x)
  4584     { echo "$as_me:$LINENO: result: none needed" >&5
  4585 echo "${ECHO_T}none needed" >&6; } ;;
  4586   xno)
  4587     { echo "$as_me:$LINENO: result: unsupported" >&5
  4588 echo "${ECHO_T}unsupported" >&6; } ;;
  4589   *)
  4590     CC="$CC $ac_cv_prog_cc_c89"
  4591     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4592 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4593 esac
  4596 ac_ext=c
  4597 ac_cpp='$CPP $CPPFLAGS'
  4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4602 depcc="$CC"   am_compiler_list=
  4604 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4605 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4606 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4607   echo $ECHO_N "(cached) $ECHO_C" >&6
  4608 else
  4609   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4610   # We make a subdir and do the tests there.  Otherwise we can end up
  4611   # making bogus files that we don't know about and never remove.  For
  4612   # instance it was reported that on HP-UX the gcc test will end up
  4613   # making a dummy file named `D' -- because `-MD' means `put the output
  4614   # in D'.
  4615   mkdir conftest.dir
  4616   # Copy depcomp to subdir because otherwise we won't find it if we're
  4617   # using a relative directory.
  4618   cp "$am_depcomp" conftest.dir
  4619   cd conftest.dir
  4620   # We will build objects and dependencies in a subdirectory because
  4621   # it helps to detect inapplicable dependency modes.  For instance
  4622   # both Tru64's cc and ICC support -MD to output dependencies as a
  4623   # side effect of compilation, but ICC will put the dependencies in
  4624   # the current directory while Tru64 will put them in the object
  4625   # directory.
  4626   mkdir sub
  4628   am_cv_CC_dependencies_compiler_type=none
  4629   if test "$am_compiler_list" = ""; then
  4630      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4631   fi
  4632   for depmode in $am_compiler_list; do
  4633     # Setup a source with many dependencies, because some compilers
  4634     # like to wrap large dependency lists on column 80 (with \), and
  4635     # we should not choose a depcomp mode which is confused by this.
  4637     # We need to recreate these files for each test, as the compiler may
  4638     # overwrite some of them when testing with obscure command lines.
  4639     # This happens at least with the AIX C compiler.
  4640     : > sub/conftest.c
  4641     for i in 1 2 3 4 5 6; do
  4642       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4643       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4644       # Solaris 8's {/usr,}/bin/sh.
  4645       touch sub/conftst$i.h
  4646     done
  4647     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4649     case $depmode in
  4650     nosideeffect)
  4651       # after this tag, mechanisms are not by side-effect, so they'll
  4652       # only be used when explicitly requested
  4653       if test "x$enable_dependency_tracking" = xyes; then
  4654 	continue
  4655       else
  4656 	break
  4657       fi
  4658       ;;
  4659     none) break ;;
  4660     esac
  4661     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4662     # mode.  It turns out that the SunPro C++ compiler does not properly
  4663     # handle `-M -o', and we need to detect this.
  4664     if depmode=$depmode \
  4665        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4666        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4667        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4668          >/dev/null 2>conftest.err &&
  4669        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4670        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4671        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4672       # icc doesn't choke on unknown options, it will just issue warnings
  4673       # or remarks (even with -Werror).  So we grep stderr for any message
  4674       # that says an option was ignored or not supported.
  4675       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4676       #   icc: Command line warning: ignoring option '-M'; no argument required
  4677       # The diagnosis changed in icc 8.0:
  4678       #   icc: Command line remark: option '-MP' not supported
  4679       if (grep 'ignoring option' conftest.err ||
  4680           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4681         am_cv_CC_dependencies_compiler_type=$depmode
  4682         break
  4683       fi
  4684     fi
  4685   done
  4687   cd ..
  4688   rm -rf conftest.dir
  4689 else
  4690   am_cv_CC_dependencies_compiler_type=none
  4691 fi
  4693 fi
  4694 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4695 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4696 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4700 if
  4701   test "x$enable_dependency_tracking" != xno \
  4702   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4703   am__fastdepCC_TRUE=
  4704   am__fastdepCC_FALSE='#'
  4705 else
  4706   am__fastdepCC_TRUE='#'
  4707   am__fastdepCC_FALSE=
  4708 fi
  4711 ac_ext=c
  4712 ac_cpp='$CPP $CPPFLAGS'
  4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4716 if test -n "$ac_tool_prefix"; then
  4717   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4721 if test "${ac_cv_prog_CC+set}" = set; then
  4722   echo $ECHO_N "(cached) $ECHO_C" >&6
  4723 else
  4724   if test -n "$CC"; then
  4725   ac_cv_prog_CC="$CC" # Let the user override the test.
  4726 else
  4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4728 for as_dir in $PATH
  4729 do
  4730   IFS=$as_save_IFS
  4731   test -z "$as_dir" && as_dir=.
  4732   for ac_exec_ext in '' $ac_executable_extensions; do
  4733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4734     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4736     break 2
  4737   fi
  4738 done
  4739 done
  4740 IFS=$as_save_IFS
  4742 fi
  4743 fi
  4744 CC=$ac_cv_prog_CC
  4745 if test -n "$CC"; then
  4746   { echo "$as_me:$LINENO: result: $CC" >&5
  4747 echo "${ECHO_T}$CC" >&6; }
  4748 else
  4749   { echo "$as_me:$LINENO: result: no" >&5
  4750 echo "${ECHO_T}no" >&6; }
  4751 fi
  4754 fi
  4755 if test -z "$ac_cv_prog_CC"; then
  4756   ac_ct_CC=$CC
  4757   # Extract the first word of "gcc", so it can be a program name with args.
  4758 set dummy gcc; ac_word=$2
  4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4762   echo $ECHO_N "(cached) $ECHO_C" >&6
  4763 else
  4764   if test -n "$ac_ct_CC"; then
  4765   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4766 else
  4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4768 for as_dir in $PATH
  4769 do
  4770   IFS=$as_save_IFS
  4771   test -z "$as_dir" && as_dir=.
  4772   for ac_exec_ext in '' $ac_executable_extensions; do
  4773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4774     ac_cv_prog_ac_ct_CC="gcc"
  4775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4776     break 2
  4777   fi
  4778 done
  4779 done
  4780 IFS=$as_save_IFS
  4782 fi
  4783 fi
  4784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4785 if test -n "$ac_ct_CC"; then
  4786   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4787 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4788 else
  4789   { echo "$as_me:$LINENO: result: no" >&5
  4790 echo "${ECHO_T}no" >&6; }
  4791 fi
  4793   if test "x$ac_ct_CC" = x; then
  4794     CC=""
  4795   else
  4796     case $cross_compiling:$ac_tool_warned in
  4797 yes:)
  4798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4799 whose name does not start with the host triplet.  If you think this
  4800 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4802 whose name does not start with the host triplet.  If you think this
  4803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4804 ac_tool_warned=yes ;;
  4805 esac
  4806     CC=$ac_ct_CC
  4807   fi
  4808 else
  4809   CC="$ac_cv_prog_CC"
  4810 fi
  4812 if test -z "$CC"; then
  4813           if test -n "$ac_tool_prefix"; then
  4814     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4815 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4818 if test "${ac_cv_prog_CC+set}" = set; then
  4819   echo $ECHO_N "(cached) $ECHO_C" >&6
  4820 else
  4821   if test -n "$CC"; then
  4822   ac_cv_prog_CC="$CC" # Let the user override the test.
  4823 else
  4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4825 for as_dir in $PATH
  4826 do
  4827   IFS=$as_save_IFS
  4828   test -z "$as_dir" && as_dir=.
  4829   for ac_exec_ext in '' $ac_executable_extensions; do
  4830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4831     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4833     break 2
  4834   fi
  4835 done
  4836 done
  4837 IFS=$as_save_IFS
  4839 fi
  4840 fi
  4841 CC=$ac_cv_prog_CC
  4842 if test -n "$CC"; then
  4843   { echo "$as_me:$LINENO: result: $CC" >&5
  4844 echo "${ECHO_T}$CC" >&6; }
  4845 else
  4846   { echo "$as_me:$LINENO: result: no" >&5
  4847 echo "${ECHO_T}no" >&6; }
  4848 fi
  4851   fi
  4852 fi
  4853 if test -z "$CC"; then
  4854   # Extract the first word of "cc", so it can be a program name with args.
  4855 set dummy cc; ac_word=$2
  4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4858 if test "${ac_cv_prog_CC+set}" = set; then
  4859   echo $ECHO_N "(cached) $ECHO_C" >&6
  4860 else
  4861   if test -n "$CC"; then
  4862   ac_cv_prog_CC="$CC" # Let the user override the test.
  4863 else
  4864   ac_prog_rejected=no
  4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4866 for as_dir in $PATH
  4867 do
  4868   IFS=$as_save_IFS
  4869   test -z "$as_dir" && as_dir=.
  4870   for ac_exec_ext in '' $ac_executable_extensions; do
  4871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4872     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4873        ac_prog_rejected=yes
  4874        continue
  4875      fi
  4876     ac_cv_prog_CC="cc"
  4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4878     break 2
  4879   fi
  4880 done
  4881 done
  4882 IFS=$as_save_IFS
  4884 if test $ac_prog_rejected = yes; then
  4885   # We found a bogon in the path, so make sure we never use it.
  4886   set dummy $ac_cv_prog_CC
  4887   shift
  4888   if test $# != 0; then
  4889     # We chose a different compiler from the bogus one.
  4890     # However, it has the same basename, so the bogon will be chosen
  4891     # first if we set CC to just the basename; use the full file name.
  4892     shift
  4893     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4894   fi
  4895 fi
  4896 fi
  4897 fi
  4898 CC=$ac_cv_prog_CC
  4899 if test -n "$CC"; then
  4900   { echo "$as_me:$LINENO: result: $CC" >&5
  4901 echo "${ECHO_T}$CC" >&6; }
  4902 else
  4903   { echo "$as_me:$LINENO: result: no" >&5
  4904 echo "${ECHO_T}no" >&6; }
  4905 fi
  4908 fi
  4909 if test -z "$CC"; then
  4910   if test -n "$ac_tool_prefix"; then
  4911   for ac_prog in cl.exe
  4912   do
  4913     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4917 if test "${ac_cv_prog_CC+set}" = set; then
  4918   echo $ECHO_N "(cached) $ECHO_C" >&6
  4919 else
  4920   if test -n "$CC"; then
  4921   ac_cv_prog_CC="$CC" # Let the user override the test.
  4922 else
  4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4924 for as_dir in $PATH
  4925 do
  4926   IFS=$as_save_IFS
  4927   test -z "$as_dir" && as_dir=.
  4928   for ac_exec_ext in '' $ac_executable_extensions; do
  4929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4930     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4932     break 2
  4933   fi
  4934 done
  4935 done
  4936 IFS=$as_save_IFS
  4938 fi
  4939 fi
  4940 CC=$ac_cv_prog_CC
  4941 if test -n "$CC"; then
  4942   { echo "$as_me:$LINENO: result: $CC" >&5
  4943 echo "${ECHO_T}$CC" >&6; }
  4944 else
  4945   { echo "$as_me:$LINENO: result: no" >&5
  4946 echo "${ECHO_T}no" >&6; }
  4947 fi
  4950     test -n "$CC" && break
  4951   done
  4952 fi
  4953 if test -z "$CC"; then
  4954   ac_ct_CC=$CC
  4955   for ac_prog in cl.exe
  4956 do
  4957   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4958 set dummy $ac_prog; ac_word=$2
  4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4961 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4962   echo $ECHO_N "(cached) $ECHO_C" >&6
  4963 else
  4964   if test -n "$ac_ct_CC"; then
  4965   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4966 else
  4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4968 for as_dir in $PATH
  4969 do
  4970   IFS=$as_save_IFS
  4971   test -z "$as_dir" && as_dir=.
  4972   for ac_exec_ext in '' $ac_executable_extensions; do
  4973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4974     ac_cv_prog_ac_ct_CC="$ac_prog"
  4975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4976     break 2
  4977   fi
  4978 done
  4979 done
  4980 IFS=$as_save_IFS
  4982 fi
  4983 fi
  4984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4985 if test -n "$ac_ct_CC"; then
  4986   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4987 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4988 else
  4989   { echo "$as_me:$LINENO: result: no" >&5
  4990 echo "${ECHO_T}no" >&6; }
  4991 fi
  4994   test -n "$ac_ct_CC" && break
  4995 done
  4997   if test "x$ac_ct_CC" = x; then
  4998     CC=""
  4999   else
  5000     case $cross_compiling:$ac_tool_warned in
  5001 yes:)
  5002 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5003 whose name does not start with the host triplet.  If you think this
  5004 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5005 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5006 whose name does not start with the host triplet.  If you think this
  5007 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5008 ac_tool_warned=yes ;;
  5009 esac
  5010     CC=$ac_ct_CC
  5011   fi
  5012 fi
  5014 fi
  5017 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5018 See \`config.log' for more details." >&5
  5019 echo "$as_me: error: no acceptable C compiler found in \$PATH
  5020 See \`config.log' for more details." >&2;}
  5021    { (exit 1); exit 1; }; }
  5023 # Provide some information about the compiler.
  5024 echo "$as_me:$LINENO: checking for C compiler version" >&5
  5025 ac_compiler=`set X $ac_compile; echo $2`
  5026 { (ac_try="$ac_compiler --version >&5"
  5027 case "(($ac_try" in
  5028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5029   *) ac_try_echo=$ac_try;;
  5030 esac
  5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5032   (eval "$ac_compiler --version >&5") 2>&5
  5033   ac_status=$?
  5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5035   (exit $ac_status); }
  5036 { (ac_try="$ac_compiler -v >&5"
  5037 case "(($ac_try" in
  5038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5039   *) ac_try_echo=$ac_try;;
  5040 esac
  5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5042   (eval "$ac_compiler -v >&5") 2>&5
  5043   ac_status=$?
  5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5045   (exit $ac_status); }
  5046 { (ac_try="$ac_compiler -V >&5"
  5047 case "(($ac_try" in
  5048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5049   *) ac_try_echo=$ac_try;;
  5050 esac
  5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5052   (eval "$ac_compiler -V >&5") 2>&5
  5053   ac_status=$?
  5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5055   (exit $ac_status); }
  5057 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  5059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5060   echo $ECHO_N "(cached) $ECHO_C" >&6
  5061 else
  5062   cat >conftest.$ac_ext <<_ACEOF
  5063 /* confdefs.h.  */
  5064 _ACEOF
  5065 cat confdefs.h >>conftest.$ac_ext
  5066 cat >>conftest.$ac_ext <<_ACEOF
  5067 /* end confdefs.h.  */
  5069 int
  5070 main ()
  5072 #ifndef __GNUC__
  5073        choke me
  5074 #endif
  5077   return 0;
  5079 _ACEOF
  5080 rm -f conftest.$ac_objext
  5081 if { (ac_try="$ac_compile"
  5082 case "(($ac_try" in
  5083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5084   *) ac_try_echo=$ac_try;;
  5085 esac
  5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5087   (eval "$ac_compile") 2>conftest.er1
  5088   ac_status=$?
  5089   grep -v '^ *+' conftest.er1 >conftest.err
  5090   rm -f conftest.er1
  5091   cat conftest.err >&5
  5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5093   (exit $ac_status); } && {
  5094 	 test -z "$ac_c_werror_flag" ||
  5095 	 test ! -s conftest.err
  5096        } && test -s conftest.$ac_objext; then
  5097   ac_compiler_gnu=yes
  5098 else
  5099   echo "$as_me: failed program was:" >&5
  5100 sed 's/^/| /' conftest.$ac_ext >&5
  5102 	ac_compiler_gnu=no
  5103 fi
  5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5108 fi
  5109 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  5111 GCC=`test $ac_compiler_gnu = yes && echo yes`
  5112 ac_test_CFLAGS=${CFLAGS+set}
  5113 ac_save_CFLAGS=$CFLAGS
  5114 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5115 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  5116 if test "${ac_cv_prog_cc_g+set}" = set; then
  5117   echo $ECHO_N "(cached) $ECHO_C" >&6
  5118 else
  5119   ac_save_c_werror_flag=$ac_c_werror_flag
  5120    ac_c_werror_flag=yes
  5121    ac_cv_prog_cc_g=no
  5122    CFLAGS="-g"
  5123    cat >conftest.$ac_ext <<_ACEOF
  5124 /* confdefs.h.  */
  5125 _ACEOF
  5126 cat confdefs.h >>conftest.$ac_ext
  5127 cat >>conftest.$ac_ext <<_ACEOF
  5128 /* end confdefs.h.  */
  5130 int
  5131 main ()
  5135   return 0;
  5137 _ACEOF
  5138 rm -f conftest.$ac_objext
  5139 if { (ac_try="$ac_compile"
  5140 case "(($ac_try" in
  5141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5142   *) ac_try_echo=$ac_try;;
  5143 esac
  5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5145   (eval "$ac_compile") 2>conftest.er1
  5146   ac_status=$?
  5147   grep -v '^ *+' conftest.er1 >conftest.err
  5148   rm -f conftest.er1
  5149   cat conftest.err >&5
  5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5151   (exit $ac_status); } && {
  5152 	 test -z "$ac_c_werror_flag" ||
  5153 	 test ! -s conftest.err
  5154        } && test -s conftest.$ac_objext; then
  5155   ac_cv_prog_cc_g=yes
  5156 else
  5157   echo "$as_me: failed program was:" >&5
  5158 sed 's/^/| /' conftest.$ac_ext >&5
  5160 	CFLAGS=""
  5161       cat >conftest.$ac_ext <<_ACEOF
  5162 /* confdefs.h.  */
  5163 _ACEOF
  5164 cat confdefs.h >>conftest.$ac_ext
  5165 cat >>conftest.$ac_ext <<_ACEOF
  5166 /* end confdefs.h.  */
  5168 int
  5169 main ()
  5173   return 0;
  5175 _ACEOF
  5176 rm -f conftest.$ac_objext
  5177 if { (ac_try="$ac_compile"
  5178 case "(($ac_try" in
  5179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5180   *) ac_try_echo=$ac_try;;
  5181 esac
  5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5183   (eval "$ac_compile") 2>conftest.er1
  5184   ac_status=$?
  5185   grep -v '^ *+' conftest.er1 >conftest.err
  5186   rm -f conftest.er1
  5187   cat conftest.err >&5
  5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5189   (exit $ac_status); } && {
  5190 	 test -z "$ac_c_werror_flag" ||
  5191 	 test ! -s conftest.err
  5192        } && test -s conftest.$ac_objext; then
  5194 else
  5195   echo "$as_me: failed program was:" >&5
  5196 sed 's/^/| /' conftest.$ac_ext >&5
  5198 	ac_c_werror_flag=$ac_save_c_werror_flag
  5199 	 CFLAGS="-g"
  5200 	 cat >conftest.$ac_ext <<_ACEOF
  5201 /* confdefs.h.  */
  5202 _ACEOF
  5203 cat confdefs.h >>conftest.$ac_ext
  5204 cat >>conftest.$ac_ext <<_ACEOF
  5205 /* end confdefs.h.  */
  5207 int
  5208 main ()
  5212   return 0;
  5214 _ACEOF
  5215 rm -f conftest.$ac_objext
  5216 if { (ac_try="$ac_compile"
  5217 case "(($ac_try" in
  5218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5219   *) ac_try_echo=$ac_try;;
  5220 esac
  5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5222   (eval "$ac_compile") 2>conftest.er1
  5223   ac_status=$?
  5224   grep -v '^ *+' conftest.er1 >conftest.err
  5225   rm -f conftest.er1
  5226   cat conftest.err >&5
  5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5228   (exit $ac_status); } && {
  5229 	 test -z "$ac_c_werror_flag" ||
  5230 	 test ! -s conftest.err
  5231        } && test -s conftest.$ac_objext; then
  5232   ac_cv_prog_cc_g=yes
  5233 else
  5234   echo "$as_me: failed program was:" >&5
  5235 sed 's/^/| /' conftest.$ac_ext >&5
  5238 fi
  5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5241 fi
  5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5244 fi
  5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5247    ac_c_werror_flag=$ac_save_c_werror_flag
  5248 fi
  5249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5250 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  5251 if test "$ac_test_CFLAGS" = set; then
  5252   CFLAGS=$ac_save_CFLAGS
  5253 elif test $ac_cv_prog_cc_g = yes; then
  5254   if test "$GCC" = yes; then
  5255     CFLAGS="-g -O2"
  5256   else
  5257     CFLAGS="-g"
  5258   fi
  5259 else
  5260   if test "$GCC" = yes; then
  5261     CFLAGS="-O2"
  5262   else
  5263     CFLAGS=
  5264   fi
  5265 fi
  5266 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5267 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  5268 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5269   echo $ECHO_N "(cached) $ECHO_C" >&6
  5270 else
  5271   ac_cv_prog_cc_c89=no
  5272 ac_save_CC=$CC
  5273 cat >conftest.$ac_ext <<_ACEOF
  5274 /* confdefs.h.  */
  5275 _ACEOF
  5276 cat confdefs.h >>conftest.$ac_ext
  5277 cat >>conftest.$ac_ext <<_ACEOF
  5278 /* end confdefs.h.  */
  5279 #include <stdarg.h>
  5280 #include <stdio.h>
  5281 #include <sys/types.h>
  5282 #include <sys/stat.h>
  5283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5284 struct buf { int x; };
  5285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5286 static char *e (p, i)
  5287      char **p;
  5288      int i;
  5290   return p[i];
  5292 static char *f (char * (*g) (char **, int), char **p, ...)
  5294   char *s;
  5295   va_list v;
  5296   va_start (v,p);
  5297   s = g (p, va_arg (v,int));
  5298   va_end (v);
  5299   return s;
  5302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5303    function prototypes and stuff, but not '\xHH' hex character constants.
  5304    These don't provoke an error unfortunately, instead are silently treated
  5305    as 'x'.  The following induces an error, until -std is added to get
  5306    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5307    array size at least.  It's necessary to write '\x00'==0 to get something
  5308    that's true only with -std.  */
  5309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5312    inside strings and character constants.  */
  5313 #define FOO(x) 'x'
  5314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5316 int test (int i, double x);
  5317 struct s1 {int (*f) (int a);};
  5318 struct s2 {int (*f) (double a);};
  5319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5320 int argc;
  5321 char **argv;
  5322 int
  5323 main ()
  5325 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5327   return 0;
  5329 _ACEOF
  5330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5331 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5332 do
  5333   CC="$ac_save_CC $ac_arg"
  5334   rm -f conftest.$ac_objext
  5335 if { (ac_try="$ac_compile"
  5336 case "(($ac_try" in
  5337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5338   *) ac_try_echo=$ac_try;;
  5339 esac
  5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5341   (eval "$ac_compile") 2>conftest.er1
  5342   ac_status=$?
  5343   grep -v '^ *+' conftest.er1 >conftest.err
  5344   rm -f conftest.er1
  5345   cat conftest.err >&5
  5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5347   (exit $ac_status); } && {
  5348 	 test -z "$ac_c_werror_flag" ||
  5349 	 test ! -s conftest.err
  5350        } && test -s conftest.$ac_objext; then
  5351   ac_cv_prog_cc_c89=$ac_arg
  5352 else
  5353   echo "$as_me: failed program was:" >&5
  5354 sed 's/^/| /' conftest.$ac_ext >&5
  5357 fi
  5359 rm -f core conftest.err conftest.$ac_objext
  5360   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5361 done
  5362 rm -f conftest.$ac_ext
  5363 CC=$ac_save_CC
  5365 fi
  5366 # AC_CACHE_VAL
  5367 case "x$ac_cv_prog_cc_c89" in
  5368   x)
  5369     { echo "$as_me:$LINENO: result: none needed" >&5
  5370 echo "${ECHO_T}none needed" >&6; } ;;
  5371   xno)
  5372     { echo "$as_me:$LINENO: result: unsupported" >&5
  5373 echo "${ECHO_T}unsupported" >&6; } ;;
  5374   *)
  5375     CC="$CC $ac_cv_prog_cc_c89"
  5376     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  5378 esac
  5381 ac_ext=c
  5382 ac_cpp='$CPP $CPPFLAGS'
  5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5387 depcc="$CC"   am_compiler_list=
  5389 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5390 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5391 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5392   echo $ECHO_N "(cached) $ECHO_C" >&6
  5393 else
  5394   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5395   # We make a subdir and do the tests there.  Otherwise we can end up
  5396   # making bogus files that we don't know about and never remove.  For
  5397   # instance it was reported that on HP-UX the gcc test will end up
  5398   # making a dummy file named `D' -- because `-MD' means `put the output
  5399   # in D'.
  5400   mkdir conftest.dir
  5401   # Copy depcomp to subdir because otherwise we won't find it if we're
  5402   # using a relative directory.
  5403   cp "$am_depcomp" conftest.dir
  5404   cd conftest.dir
  5405   # We will build objects and dependencies in a subdirectory because
  5406   # it helps to detect inapplicable dependency modes.  For instance
  5407   # both Tru64's cc and ICC support -MD to output dependencies as a
  5408   # side effect of compilation, but ICC will put the dependencies in
  5409   # the current directory while Tru64 will put them in the object
  5410   # directory.
  5411   mkdir sub
  5413   am_cv_CC_dependencies_compiler_type=none
  5414   if test "$am_compiler_list" = ""; then
  5415      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5416   fi
  5417   for depmode in $am_compiler_list; do
  5418     # Setup a source with many dependencies, because some compilers
  5419     # like to wrap large dependency lists on column 80 (with \), and
  5420     # we should not choose a depcomp mode which is confused by this.
  5422     # We need to recreate these files for each test, as the compiler may
  5423     # overwrite some of them when testing with obscure command lines.
  5424     # This happens at least with the AIX C compiler.
  5425     : > sub/conftest.c
  5426     for i in 1 2 3 4 5 6; do
  5427       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5428       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5429       # Solaris 8's {/usr,}/bin/sh.
  5430       touch sub/conftst$i.h
  5431     done
  5432     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5434     case $depmode in
  5435     nosideeffect)
  5436       # after this tag, mechanisms are not by side-effect, so they'll
  5437       # only be used when explicitly requested
  5438       if test "x$enable_dependency_tracking" = xyes; then
  5439 	continue
  5440       else
  5441 	break
  5442       fi
  5443       ;;
  5444     none) break ;;
  5445     esac
  5446     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5447     # mode.  It turns out that the SunPro C++ compiler does not properly
  5448     # handle `-M -o', and we need to detect this.
  5449     if depmode=$depmode \
  5450        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5451        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5452        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5453          >/dev/null 2>conftest.err &&
  5454        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5455        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5456        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5457       # icc doesn't choke on unknown options, it will just issue warnings
  5458       # or remarks (even with -Werror).  So we grep stderr for any message
  5459       # that says an option was ignored or not supported.
  5460       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5461       #   icc: Command line warning: ignoring option '-M'; no argument required
  5462       # The diagnosis changed in icc 8.0:
  5463       #   icc: Command line remark: option '-MP' not supported
  5464       if (grep 'ignoring option' conftest.err ||
  5465           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5466         am_cv_CC_dependencies_compiler_type=$depmode
  5467         break
  5468       fi
  5469     fi
  5470   done
  5472   cd ..
  5473   rm -rf conftest.dir
  5474 else
  5475   am_cv_CC_dependencies_compiler_type=none
  5476 fi
  5478 fi
  5479 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5480 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  5481 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5485 if
  5486   test "x$enable_dependency_tracking" != xno \
  5487   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5488   am__fastdepCC_TRUE=
  5489   am__fastdepCC_FALSE='#'
  5490 else
  5491   am__fastdepCC_TRUE='#'
  5492   am__fastdepCC_FALSE=
  5493 fi
  5497 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5499 ac_ext=c
  5500 ac_cpp='$CPP $CPPFLAGS'
  5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5504 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5506 # On Suns, sometimes $CPP names a directory.
  5507 if test -n "$CPP" && test -d "$CPP"; then
  5508   CPP=
  5509 fi
  5510 if test -z "$CPP"; then
  5511   if test "${ac_cv_prog_CPP+set}" = set; then
  5512   echo $ECHO_N "(cached) $ECHO_C" >&6
  5513 else
  5514       # Double quotes because CPP needs to be expanded
  5515     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5516     do
  5517       ac_preproc_ok=false
  5518 for ac_c_preproc_warn_flag in '' yes
  5519 do
  5520   # Use a header file that comes with gcc, so configuring glibc
  5521   # with a fresh cross-compiler works.
  5522   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5523   # <limits.h> exists even on freestanding compilers.
  5524   # On the NeXT, cc -E runs the code through the compiler's parser,
  5525   # not just through cpp. "Syntax error" is here to catch this case.
  5526   cat >conftest.$ac_ext <<_ACEOF
  5527 /* confdefs.h.  */
  5528 _ACEOF
  5529 cat confdefs.h >>conftest.$ac_ext
  5530 cat >>conftest.$ac_ext <<_ACEOF
  5531 /* end confdefs.h.  */
  5532 #ifdef __STDC__
  5533 # include <limits.h>
  5534 #else
  5535 # include <assert.h>
  5536 #endif
  5537 		     Syntax error
  5538 _ACEOF
  5539 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5540 case "(($ac_try" in
  5541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5542   *) ac_try_echo=$ac_try;;
  5543 esac
  5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5546   ac_status=$?
  5547   grep -v '^ *+' conftest.er1 >conftest.err
  5548   rm -f conftest.er1
  5549   cat conftest.err >&5
  5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5551   (exit $ac_status); } >/dev/null && {
  5552 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5553 	 test ! -s conftest.err
  5554        }; then
  5556 else
  5557   echo "$as_me: failed program was:" >&5
  5558 sed 's/^/| /' conftest.$ac_ext >&5
  5560   # Broken: fails on valid input.
  5561 continue
  5562 fi
  5564 rm -f conftest.err conftest.$ac_ext
  5566   # OK, works on sane cases.  Now check whether nonexistent headers
  5567   # can be detected and how.
  5568   cat >conftest.$ac_ext <<_ACEOF
  5569 /* confdefs.h.  */
  5570 _ACEOF
  5571 cat confdefs.h >>conftest.$ac_ext
  5572 cat >>conftest.$ac_ext <<_ACEOF
  5573 /* end confdefs.h.  */
  5574 #include <ac_nonexistent.h>
  5575 _ACEOF
  5576 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5577 case "(($ac_try" in
  5578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5579   *) ac_try_echo=$ac_try;;
  5580 esac
  5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5583   ac_status=$?
  5584   grep -v '^ *+' conftest.er1 >conftest.err
  5585   rm -f conftest.er1
  5586   cat conftest.err >&5
  5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5588   (exit $ac_status); } >/dev/null && {
  5589 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5590 	 test ! -s conftest.err
  5591        }; then
  5592   # Broken: success on invalid input.
  5593 continue
  5594 else
  5595   echo "$as_me: failed program was:" >&5
  5596 sed 's/^/| /' conftest.$ac_ext >&5
  5598   # Passes both tests.
  5599 ac_preproc_ok=:
  5600 break
  5601 fi
  5603 rm -f conftest.err conftest.$ac_ext
  5605 done
  5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5607 rm -f conftest.err conftest.$ac_ext
  5608 if $ac_preproc_ok; then
  5609   break
  5610 fi
  5612     done
  5613     ac_cv_prog_CPP=$CPP
  5615 fi
  5616   CPP=$ac_cv_prog_CPP
  5617 else
  5618   ac_cv_prog_CPP=$CPP
  5619 fi
  5620 { echo "$as_me:$LINENO: result: $CPP" >&5
  5621 echo "${ECHO_T}$CPP" >&6; }
  5622 ac_preproc_ok=false
  5623 for ac_c_preproc_warn_flag in '' yes
  5624 do
  5625   # Use a header file that comes with gcc, so configuring glibc
  5626   # with a fresh cross-compiler works.
  5627   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5628   # <limits.h> exists even on freestanding compilers.
  5629   # On the NeXT, cc -E runs the code through the compiler's parser,
  5630   # not just through cpp. "Syntax error" is here to catch this case.
  5631   cat >conftest.$ac_ext <<_ACEOF
  5632 /* confdefs.h.  */
  5633 _ACEOF
  5634 cat confdefs.h >>conftest.$ac_ext
  5635 cat >>conftest.$ac_ext <<_ACEOF
  5636 /* end confdefs.h.  */
  5637 #ifdef __STDC__
  5638 # include <limits.h>
  5639 #else
  5640 # include <assert.h>
  5641 #endif
  5642 		     Syntax error
  5643 _ACEOF
  5644 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5645 case "(($ac_try" in
  5646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5647   *) ac_try_echo=$ac_try;;
  5648 esac
  5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5651   ac_status=$?
  5652   grep -v '^ *+' conftest.er1 >conftest.err
  5653   rm -f conftest.er1
  5654   cat conftest.err >&5
  5655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5656   (exit $ac_status); } >/dev/null && {
  5657 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5658 	 test ! -s conftest.err
  5659        }; then
  5661 else
  5662   echo "$as_me: failed program was:" >&5
  5663 sed 's/^/| /' conftest.$ac_ext >&5
  5665   # Broken: fails on valid input.
  5666 continue
  5667 fi
  5669 rm -f conftest.err conftest.$ac_ext
  5671   # OK, works on sane cases.  Now check whether nonexistent headers
  5672   # can be detected and how.
  5673   cat >conftest.$ac_ext <<_ACEOF
  5674 /* confdefs.h.  */
  5675 _ACEOF
  5676 cat confdefs.h >>conftest.$ac_ext
  5677 cat >>conftest.$ac_ext <<_ACEOF
  5678 /* end confdefs.h.  */
  5679 #include <ac_nonexistent.h>
  5680 _ACEOF
  5681 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5682 case "(($ac_try" in
  5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5684   *) ac_try_echo=$ac_try;;
  5685 esac
  5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5688   ac_status=$?
  5689   grep -v '^ *+' conftest.er1 >conftest.err
  5690   rm -f conftest.er1
  5691   cat conftest.err >&5
  5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5693   (exit $ac_status); } >/dev/null && {
  5694 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5695 	 test ! -s conftest.err
  5696        }; then
  5697   # Broken: success on invalid input.
  5698 continue
  5699 else
  5700   echo "$as_me: failed program was:" >&5
  5701 sed 's/^/| /' conftest.$ac_ext >&5
  5703   # Passes both tests.
  5704 ac_preproc_ok=:
  5705 break
  5706 fi
  5708 rm -f conftest.err conftest.$ac_ext
  5710 done
  5711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5712 rm -f conftest.err conftest.$ac_ext
  5713 if $ac_preproc_ok; then
  5715 else
  5716   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5717 See \`config.log' for more details." >&5
  5718 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5719 See \`config.log' for more details." >&2;}
  5720    { (exit 1); exit 1; }; }
  5721 fi
  5723 ac_ext=c
  5724 ac_cpp='$CPP $CPPFLAGS'
  5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5730 ac_main_cc="$CC"
  5731 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
  5733 if test -z "$CC_FOR_BUILD"; then
  5734     if test "$#" = yes; then
  5735   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  5736 See \`config.log' for more details." >&5
  5737 echo "$as_me: error: cannot run test program while cross compiling
  5738 See \`config.log' for more details." >&2;}
  5739    { (exit 1); exit 1; }; }
  5740 else
  5741   cat >conftest.$ac_ext <<_ACEOF
  5742 int main(){return 0;}
  5743 _ACEOF
  5744 rm -f conftest$ac_exeext
  5745 if { (ac_try="$ac_link"
  5746 case "(($ac_try" in
  5747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5748   *) ac_try_echo=$ac_try;;
  5749 esac
  5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5751   (eval "$ac_link") 2>&5
  5752   ac_status=$?
  5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5755   { (case "(($ac_try" in
  5756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5757   *) ac_try_echo=$ac_try;;
  5758 esac
  5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5760   (eval "$ac_try") 2>&5
  5761   ac_status=$?
  5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5763   (exit $ac_status); }; }; then
  5764   CC_FOR_BUILD="$CC"
  5765 else
  5766   echo "$as_me: program exited with status $ac_status" >&5
  5767 echo "$as_me: failed program was:" >&5
  5768 sed 's/^/| /' conftest.$ac_ext >&5
  5770 fi
  5771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5772 fi
  5775 fi
  5778 ac_ext=c
  5779 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  5780 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  5781 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5782 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  5783 if test -n "$ac_build_tool_prefix"; then
  5784   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5785 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
  5786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5788 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5789   echo $ECHO_N "(cached) $ECHO_C" >&6
  5790 else
  5791   if test -n "$CC_FOR_BUILD"; then
  5792   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5793 else
  5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795 for as_dir in $PATH
  5796 do
  5797   IFS=$as_save_IFS
  5798   test -z "$as_dir" && as_dir=.
  5799   for ac_exec_ext in '' $ac_executable_extensions; do
  5800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5801     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
  5802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803     break 2
  5804   fi
  5805 done
  5806 done
  5807 IFS=$as_save_IFS
  5809 fi
  5810 fi
  5811 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5812 if test -n "$CC_FOR_BUILD"; then
  5813   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5814 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5815 else
  5816   { echo "$as_me:$LINENO: result: no" >&5
  5817 echo "${ECHO_T}no" >&6; }
  5818 fi
  5821 fi
  5822 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
  5823   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  5824   # Extract the first word of "gcc", so it can be a program name with args.
  5825 set dummy gcc; ac_word=$2
  5826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5828 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  5829   echo $ECHO_N "(cached) $ECHO_C" >&6
  5830 else
  5831   if test -n "$ac_ct_CC_FOR_BUILD"; then
  5832   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  5833 else
  5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5835 for as_dir in $PATH
  5836 do
  5837   IFS=$as_save_IFS
  5838   test -z "$as_dir" && as_dir=.
  5839   for ac_exec_ext in '' $ac_executable_extensions; do
  5840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5841     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
  5842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5843     break 2
  5844   fi
  5845 done
  5846 done
  5847 IFS=$as_save_IFS
  5849 fi
  5850 fi
  5851 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  5852 if test -n "$ac_ct_CC_FOR_BUILD"; then
  5853   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  5854 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  5855 else
  5856   { echo "$as_me:$LINENO: result: no" >&5
  5857 echo "${ECHO_T}no" >&6; }
  5858 fi
  5860   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  5861     CC_FOR_BUILD=""
  5862   else
  5863     case $#:$ac_tool_warned in
  5864 yes:)
  5865 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5866 whose name does not start with the build triplet.  If you think this
  5867 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5868 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5869 whose name does not start with the build triplet.  If you think this
  5870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5871 ac_tool_warned=yes ;;
  5872 esac
  5873     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  5874   fi
  5875 else
  5876   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
  5877 fi
  5879 if test -z "$CC_FOR_BUILD"; then
  5880           if test -n "$ac_build_tool_prefix"; then
  5881     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5882 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
  5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5885 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5886   echo $ECHO_N "(cached) $ECHO_C" >&6
  5887 else
  5888   if test -n "$CC_FOR_BUILD"; then
  5889   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5890 else
  5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5892 for as_dir in $PATH
  5893 do
  5894   IFS=$as_save_IFS
  5895   test -z "$as_dir" && as_dir=.
  5896   for ac_exec_ext in '' $ac_executable_extensions; do
  5897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5898     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
  5899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5900     break 2
  5901   fi
  5902 done
  5903 done
  5904 IFS=$as_save_IFS
  5906 fi
  5907 fi
  5908 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5909 if test -n "$CC_FOR_BUILD"; then
  5910   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5911 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5912 else
  5913   { echo "$as_me:$LINENO: result: no" >&5
  5914 echo "${ECHO_T}no" >&6; }
  5915 fi
  5918   fi
  5919 fi
  5920 if test -z "$CC_FOR_BUILD"; then
  5921   # Extract the first word of "cc", so it can be a program name with args.
  5922 set dummy cc; ac_word=$2
  5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5925 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5926   echo $ECHO_N "(cached) $ECHO_C" >&6
  5927 else
  5928   if test -n "$CC_FOR_BUILD"; then
  5929   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5930 else
  5931   ac_prog_rejected=no
  5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5933 for as_dir in $PATH
  5934 do
  5935   IFS=$as_save_IFS
  5936   test -z "$as_dir" && as_dir=.
  5937   for ac_exec_ext in '' $ac_executable_extensions; do
  5938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5939     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5940        ac_prog_rejected=yes
  5941        continue
  5942      fi
  5943     ac_cv_prog_CC_FOR_BUILD="cc"
  5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5945     break 2
  5946   fi
  5947 done
  5948 done
  5949 IFS=$as_save_IFS
  5951 if test $ac_prog_rejected = yes; then
  5952   # We found a bogon in the path, so make sure we never use it.
  5953   set dummy $ac_cv_prog_CC_FOR_BUILD
  5954   shift
  5955   if test $# != 0; then
  5956     # We chose a different compiler from the bogus one.
  5957     # However, it has the same basename, so the bogon will be chosen
  5958     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
  5959     shift
  5960     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
  5961   fi
  5962 fi
  5963 fi
  5964 fi
  5965 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5966 if test -n "$CC_FOR_BUILD"; then
  5967   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5968 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5969 else
  5970   { echo "$as_me:$LINENO: result: no" >&5
  5971 echo "${ECHO_T}no" >&6; }
  5972 fi
  5975 fi
  5976 if test -z "$CC_FOR_BUILD"; then
  5977   if test -n "$ac_build_tool_prefix"; then
  5978   for ac_prog in cl.exe
  5979   do
  5980     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5981 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
  5982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5984 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5985   echo $ECHO_N "(cached) $ECHO_C" >&6
  5986 else
  5987   if test -n "$CC_FOR_BUILD"; then
  5988   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5989 else
  5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5991 for as_dir in $PATH
  5992 do
  5993   IFS=$as_save_IFS
  5994   test -z "$as_dir" && as_dir=.
  5995   for ac_exec_ext in '' $ac_executable_extensions; do
  5996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5997     ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
  5998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5999     break 2
  6000   fi
  6001 done
  6002 done
  6003 IFS=$as_save_IFS
  6005 fi
  6006 fi
  6007 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  6008 if test -n "$CC_FOR_BUILD"; then
  6009   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  6010 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  6011 else
  6012   { echo "$as_me:$LINENO: result: no" >&5
  6013 echo "${ECHO_T}no" >&6; }
  6014 fi
  6017     test -n "$CC_FOR_BUILD" && break
  6018   done
  6019 fi
  6020 if test -z "$CC_FOR_BUILD"; then
  6021   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  6022   for ac_prog in cl.exe
  6023 do
  6024   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6025 set dummy $ac_prog; ac_word=$2
  6026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6028 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  6029   echo $ECHO_N "(cached) $ECHO_C" >&6
  6030 else
  6031   if test -n "$ac_ct_CC_FOR_BUILD"; then
  6032   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  6033 else
  6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6035 for as_dir in $PATH
  6036 do
  6037   IFS=$as_save_IFS
  6038   test -z "$as_dir" && as_dir=.
  6039   for ac_exec_ext in '' $ac_executable_extensions; do
  6040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6041     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
  6042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6043     break 2
  6044   fi
  6045 done
  6046 done
  6047 IFS=$as_save_IFS
  6049 fi
  6050 fi
  6051 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  6052 if test -n "$ac_ct_CC_FOR_BUILD"; then
  6053   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  6054 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  6055 else
  6056   { echo "$as_me:$LINENO: result: no" >&5
  6057 echo "${ECHO_T}no" >&6; }
  6058 fi
  6061   test -n "$ac_ct_CC_FOR_BUILD" && break
  6062 done
  6064   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  6065     CC_FOR_BUILD=""
  6066   else
  6067     case $#:$ac_tool_warned in
  6068 yes:)
  6069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6070 whose name does not start with the build triplet.  If you think this
  6071 configuration is useful to you, please write to autoconf@gnu.org." >&5
  6072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6073 whose name does not start with the build triplet.  If you think this
  6074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6075 ac_tool_warned=yes ;;
  6076 esac
  6077     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  6078   fi
  6079 fi
  6081 fi
  6084 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  6085 See \`config.log' for more details." >&5
  6086 echo "$as_me: error: no acceptable C compiler found in \$PATH
  6087 See \`config.log' for more details." >&2;}
  6088    { (exit 1); exit 1; }; }
  6090 # Provide some information about the compiler.
  6091 echo "$as_me:$LINENO: checking for C compiler version" >&5
  6092 ac_compiler=`set X $ac_build_compile; echo $2`
  6093 { (ac_try="$ac_compiler --version >&5"
  6094 case "(($ac_try" in
  6095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6096   *) ac_try_echo=$ac_try;;
  6097 esac
  6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6099   (eval "$ac_compiler --version >&5") 2>&5
  6100   ac_status=$?
  6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6102   (exit $ac_status); }
  6103 { (ac_try="$ac_compiler -v >&5"
  6104 case "(($ac_try" in
  6105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6106   *) ac_try_echo=$ac_try;;
  6107 esac
  6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6109   (eval "$ac_compiler -v >&5") 2>&5
  6110   ac_status=$?
  6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6112   (exit $ac_status); }
  6113 { (ac_try="$ac_compiler -V >&5"
  6114 case "(($ac_try" in
  6115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6116   *) ac_try_echo=$ac_try;;
  6117 esac
  6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6119   (eval "$ac_compiler -V >&5") 2>&5
  6120   ac_status=$?
  6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6122   (exit $ac_status); }
  6124 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  6125 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  6126 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  6127   echo $ECHO_N "(cached) $ECHO_C" >&6
  6128 else
  6129   cat >conftest.$ac_ext <<_ACEOF
  6130 /* confdefs.h.  */
  6131 _ACEOF
  6132 cat confdefs.h >>conftest.$ac_ext
  6133 cat >>conftest.$ac_ext <<_ACEOF
  6134 /* end confdefs.h.  */
  6136 int
  6137 main ()
  6139 #ifndef __GNUC__
  6140        choke me
  6141 #endif
  6144   return 0;
  6146 _ACEOF
  6147 rm -f conftest.$ac_build_objext
  6148 if { (ac_try="$ac_build_compile"
  6149 case "(($ac_try" in
  6150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6151   *) ac_try_echo=$ac_try;;
  6152 esac
  6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6154   (eval "$ac_build_compile") 2>conftest.er1
  6155   ac_status=$?
  6156   grep -v '^ *+' conftest.er1 >conftest.err
  6157   rm -f conftest.er1
  6158   cat conftest.err >&5
  6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6160   (exit $ac_status); } && {
  6161 	 test -z "$ac_c_werror_flag" ||
  6162 	 test ! -s conftest.err
  6163        } && test -s conftest.$ac_build_objext; then
  6164   ac_build_compiler_gnu=yes
  6165 else
  6166   echo "$as_me: failed program was:" >&5
  6167 sed 's/^/| /' conftest.$ac_ext >&5
  6169 	ac_build_compiler_gnu=no
  6170 fi
  6172 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6173 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
  6175 fi
  6176 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  6177 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  6178 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
  6179 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
  6180 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
  6181 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
  6182 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
  6183 if test "${ac_cv_build_prog_cc_g+set}" = set; then
  6184   echo $ECHO_N "(cached) $ECHO_C" >&6
  6185 else
  6186   ac_save_c_werror_flag=$ac_c_werror_flag
  6187    ac_c_werror_flag=yes
  6188    ac_cv_build_prog_cc_g=no
  6189    CFLAGS_FOR_BUILD="-g"
  6190    cat >conftest.$ac_ext <<_ACEOF
  6191 /* confdefs.h.  */
  6192 _ACEOF
  6193 cat confdefs.h >>conftest.$ac_ext
  6194 cat >>conftest.$ac_ext <<_ACEOF
  6195 /* end confdefs.h.  */
  6197 int
  6198 main ()
  6202   return 0;
  6204 _ACEOF
  6205 rm -f conftest.$ac_build_objext
  6206 if { (ac_try="$ac_build_compile"
  6207 case "(($ac_try" in
  6208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6209   *) ac_try_echo=$ac_try;;
  6210 esac
  6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6212   (eval "$ac_build_compile") 2>conftest.er1
  6213   ac_status=$?
  6214   grep -v '^ *+' conftest.er1 >conftest.err
  6215   rm -f conftest.er1
  6216   cat conftest.err >&5
  6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6218   (exit $ac_status); } && {
  6219 	 test -z "$ac_c_werror_flag" ||
  6220 	 test ! -s conftest.err
  6221        } && test -s conftest.$ac_build_objext; then
  6222   ac_cv_build_prog_cc_g=yes
  6223 else
  6224   echo "$as_me: failed program was:" >&5
  6225 sed 's/^/| /' conftest.$ac_ext >&5
  6227 	CFLAGS_FOR_BUILD=""
  6228       cat >conftest.$ac_ext <<_ACEOF
  6229 /* confdefs.h.  */
  6230 _ACEOF
  6231 cat confdefs.h >>conftest.$ac_ext
  6232 cat >>conftest.$ac_ext <<_ACEOF
  6233 /* end confdefs.h.  */
  6235 int
  6236 main ()
  6240   return 0;
  6242 _ACEOF
  6243 rm -f conftest.$ac_build_objext
  6244 if { (ac_try="$ac_build_compile"
  6245 case "(($ac_try" in
  6246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6247   *) ac_try_echo=$ac_try;;
  6248 esac
  6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6250   (eval "$ac_build_compile") 2>conftest.er1
  6251   ac_status=$?
  6252   grep -v '^ *+' conftest.er1 >conftest.err
  6253   rm -f conftest.er1
  6254   cat conftest.err >&5
  6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256   (exit $ac_status); } && {
  6257 	 test -z "$ac_c_werror_flag" ||
  6258 	 test ! -s conftest.err
  6259        } && test -s conftest.$ac_build_objext; then
  6261 else
  6262   echo "$as_me: failed program was:" >&5
  6263 sed 's/^/| /' conftest.$ac_ext >&5
  6265 	ac_c_werror_flag=$ac_save_c_werror_flag
  6266 	 CFLAGS_FOR_BUILD="-g"
  6267 	 cat >conftest.$ac_ext <<_ACEOF
  6268 /* confdefs.h.  */
  6269 _ACEOF
  6270 cat confdefs.h >>conftest.$ac_ext
  6271 cat >>conftest.$ac_ext <<_ACEOF
  6272 /* end confdefs.h.  */
  6274 int
  6275 main ()
  6279   return 0;
  6281 _ACEOF
  6282 rm -f conftest.$ac_build_objext
  6283 if { (ac_try="$ac_build_compile"
  6284 case "(($ac_try" in
  6285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6286   *) ac_try_echo=$ac_try;;
  6287 esac
  6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6289   (eval "$ac_build_compile") 2>conftest.er1
  6290   ac_status=$?
  6291   grep -v '^ *+' conftest.er1 >conftest.err
  6292   rm -f conftest.er1
  6293   cat conftest.err >&5
  6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6295   (exit $ac_status); } && {
  6296 	 test -z "$ac_c_werror_flag" ||
  6297 	 test ! -s conftest.err
  6298        } && test -s conftest.$ac_build_objext; then
  6299   ac_cv_build_prog_cc_g=yes
  6300 else
  6301   echo "$as_me: failed program was:" >&5
  6302 sed 's/^/| /' conftest.$ac_ext >&5
  6305 fi
  6307 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6308 fi
  6310 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6311 fi
  6313 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6314    ac_c_werror_flag=$ac_save_c_werror_flag
  6315 fi
  6316 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
  6317 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
  6318 if test "$ac_test_CFLAGS" = set; then
  6319   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
  6320 elif test $ac_cv_build_prog_cc_g = yes; then
  6321   if test "$GCC" = yes; then
  6322     CFLAGS_FOR_BUILD="-g -O2"
  6323   else
  6324     CFLAGS_FOR_BUILD="-g"
  6325   fi
  6326 else
  6327   if test "$GCC" = yes; then
  6328     CFLAGS_FOR_BUILD="-O2"
  6329   else
  6330     CFLAGS_FOR_BUILD=
  6331   fi
  6332 fi
  6333 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6334 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6335 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6336   echo $ECHO_N "(cached) $ECHO_C" >&6
  6337 else
  6338   ac_cv_build_prog_cc_stdc=no
  6339 ac_save_CC=$CC_FOR_BUILD
  6340 cat >conftest.$ac_ext <<_ACEOF
  6341 /* confdefs.h.  */
  6342 _ACEOF
  6343 cat confdefs.h >>conftest.$ac_ext
  6344 cat >>conftest.$ac_ext <<_ACEOF
  6345 /* end confdefs.h.  */
  6346 #include <stdarg.h>
  6347 #include <stdio.h>
  6348 #include <sys/types.h>
  6349 #include <sys/stat.h>
  6350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6351 struct buf { int x; };
  6352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6353 static char *e (p, i)
  6354      char **p;
  6355      int i;
  6357   return p[i];
  6359 static char *f (char * (*g) (char **, int), char **p, ...)
  6361   char *s;
  6362   va_list v;
  6363   va_start (v,p);
  6364   s = g (p, va_arg (v,int));
  6365   va_end (v);
  6366   return s;
  6369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6370    function prototypes and stuff, but not '\xHH' hex character constants.
  6371    These don't provoke an error unfortunately, instead are silently treated
  6372    as 'x'.  The following induces an error, until -std is added to get
  6373    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6374    array size at least.  It's necessary to write '\x00'==0 to get something
  6375    that's true only with -std.  */
  6376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6379    inside strings and character constants.  */
  6380 #define FOO(x) 'x'
  6381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6383 int test (int i, double x);
  6384 struct s1 {int (*f) (int a);};
  6385 struct s2 {int (*f) (double a);};
  6386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6387 int argc;
  6388 char **argv;
  6389 int
  6390 main ()
  6392 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6394   return 0;
  6396 _ACEOF
  6397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6398 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6399 do
  6400   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6401   rm -f conftest.$ac_build_objext
  6402 if { (ac_try="$ac_build_compile"
  6403 case "(($ac_try" in
  6404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6405   *) ac_try_echo=$ac_try;;
  6406 esac
  6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6408   (eval "$ac_build_compile") 2>conftest.er1
  6409   ac_status=$?
  6410   grep -v '^ *+' conftest.er1 >conftest.err
  6411   rm -f conftest.er1
  6412   cat conftest.err >&5
  6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6414   (exit $ac_status); } && {
  6415 	 test -z "$ac_c_werror_flag" ||
  6416 	 test ! -s conftest.err
  6417        } && test -s conftest.$ac_build_objext; then
  6418   ac_cv_build_prog_cc_stdc=$ac_arg
  6419 else
  6420   echo "$as_me: failed program was:" >&5
  6421 sed 's/^/| /' conftest.$ac_ext >&5
  6424 fi
  6426 rm -f core conftest.err conftest.$ac_build_objext
  6427   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6428 done
  6429 rm -f conftest.$ac_ext
  6430 CC_FOR_BUILD=$ac_save_CC
  6432 fi
  6433 # AC_CACHE_VAL
  6434 case "x$ac_cv_build_prog_cc_stdc" in
  6435   x)
  6436     { echo "$as_me:$LINENO: result: none needed" >&5
  6437 echo "${ECHO_T}none needed" >&6; } ;;
  6438   xno)
  6439     { echo "$as_me:$LINENO: result: unsupported" >&5
  6440 echo "${ECHO_T}unsupported" >&6; } ;;
  6441   *)
  6442     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6443     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6444 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6445 esac
  6448 ac_ext=c
  6449 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6450 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6451 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6452 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6454 depcc="$CC_FOR_BUILD"   am_compiler_list=
  6456 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6457 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  6458 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
  6459   echo $ECHO_N "(cached) $ECHO_C" >&6
  6460 else
  6461   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6462   # We make a subdir and do the tests there.  Otherwise we can end up
  6463   # making bogus files that we don't know about and never remove.  For
  6464   # instance it was reported that on HP-UX the gcc test will end up
  6465   # making a dummy file named `D' -- because `-MD' means `put the output
  6466   # in D'.
  6467   mkdir conftest.dir
  6468   # Copy depcomp to subdir because otherwise we won't find it if we're
  6469   # using a relative directory.
  6470   cp "$am_depcomp" conftest.dir
  6471   cd conftest.dir
  6472   # We will build objects and dependencies in a subdirectory because
  6473   # it helps to detect inapplicable dependency modes.  For instance
  6474   # both Tru64's cc and ICC support -MD to output dependencies as a
  6475   # side effect of compilation, but ICC will put the dependencies in
  6476   # the current directory while Tru64 will put them in the object
  6477   # directory.
  6478   mkdir sub
  6480   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6481   if test "$am_compiler_list" = ""; then
  6482      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6483   fi
  6484   for depmode in $am_compiler_list; do
  6485     # Setup a source with many dependencies, because some compilers
  6486     # like to wrap large dependency lists on column 80 (with \), and
  6487     # we should not choose a depcomp mode which is confused by this.
  6489     # We need to recreate these files for each test, as the compiler may
  6490     # overwrite some of them when testing with obscure command lines.
  6491     # This happens at least with the AIX C compiler.
  6492     : > sub/conftest.c
  6493     for i in 1 2 3 4 5 6; do
  6494       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6495       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6496       # Solaris 8's {/usr,}/bin/sh.
  6497       touch sub/conftst$i.h
  6498     done
  6499     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6501     case $depmode in
  6502     nosideeffect)
  6503       # after this tag, mechanisms are not by side-effect, so they'll
  6504       # only be used when explicitly requested
  6505       if test "x$enable_dependency_tracking" = xyes; then
  6506 	continue
  6507       else
  6508 	break
  6509       fi
  6510       ;;
  6511     none) break ;;
  6512     esac
  6513     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6514     # mode.  It turns out that the SunPro C++ compiler does not properly
  6515     # handle `-M -o', and we need to detect this.
  6516     if depmode=$depmode \
  6517        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6518        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6519        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6520          >/dev/null 2>conftest.err &&
  6521        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6522        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6523        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6524       # icc doesn't choke on unknown options, it will just issue warnings
  6525       # or remarks (even with -Werror).  So we grep stderr for any message
  6526       # that says an option was ignored or not supported.
  6527       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6528       #   icc: Command line warning: ignoring option '-M'; no argument required
  6529       # The diagnosis changed in icc 8.0:
  6530       #   icc: Command line remark: option '-MP' not supported
  6531       if (grep 'ignoring option' conftest.err ||
  6532           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6533         am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
  6534         break
  6535       fi
  6536     fi
  6537   done
  6539   cd ..
  6540   rm -rf conftest.dir
  6541 else
  6542   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6543 fi
  6545 fi
  6546 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
  6547 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
  6548 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
  6552 if
  6553   test "x$enable_dependency_tracking" != xno \
  6554   && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
  6555   am__fastdepCC_FOR_BUILD_TRUE=
  6556   am__fastdepCC_FOR_BUILD_FALSE='#'
  6557 else
  6558   am__fastdepCC_FOR_BUILD_TRUE='#'
  6559   am__fastdepCC_FOR_BUILD_FALSE=
  6560 fi
  6563    case $ac_cv_build_prog_cc_stdc in
  6564   no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
  6565   *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
  6566 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
  6567 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6568   echo $ECHO_N "(cached) $ECHO_C" >&6
  6569 else
  6570   ac_cv_build_prog_cc_stdc=no
  6571 ac_save_CC=$CC_FOR_BUILD
  6572 cat >conftest.$ac_ext <<_ACEOF
  6573 /* confdefs.h.  */
  6574 _ACEOF
  6575 cat confdefs.h >>conftest.$ac_ext
  6576 cat >>conftest.$ac_ext <<_ACEOF
  6577 /* end confdefs.h.  */
  6578 #include <stdarg.h>
  6579 #include <stdbool.h>
  6580 #include <stdlib.h>
  6581 #include <wchar.h>
  6582 #include <stdio.h>
  6584 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
  6585 #define debug(...) fprintf (stderr, __VA_ARGS__)
  6586 #define showlist(...) puts (#__VA_ARGS__)
  6587 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  6588 static void
  6589 test_varargs_macros (void)
  6591   int x = 1234;
  6592   int y = 5678;
  6593   debug ("Flag");
  6594   debug ("X = %d\n", x);
  6595   showlist (The first, second, and third items.);
  6596   report (x>y, "x is %d but y is %d", x, y);
  6599 // Check long long types.
  6600 #define BIG64 18446744073709551615ull
  6601 #define BIG32 4294967295ul
  6602 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  6603 #if !BIG_OK
  6604   your preprocessor is broken;
  6605 #endif
  6606 #if BIG_OK
  6607 #else
  6608   your preprocessor is broken;
  6609 #endif
  6610 static long long int bignum = -9223372036854775807LL;
  6611 static unsigned long long int ubignum = BIG64;
  6613 struct incomplete_array
  6615   int datasize;
  6616   double data[];
  6617 };
  6619 struct named_init {
  6620   int number;
  6621   const wchar_t *name;
  6622   double average;
  6623 };
  6625 typedef const char *ccp;
  6627 static inline int
  6628 test_restrict (ccp restrict text)
  6630   // See if C++-style comments work.
  6631   // Iterate through items via the restricted pointer.
  6632   // Also check for declarations in for loops.
  6633   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  6634     continue;
  6635   return 0;
  6638 // Check varargs and va_copy.
  6639 static void
  6640 test_varargs (const char *format, ...)
  6642   va_list args;
  6643   va_start (args, format);
  6644   va_list args_copy;
  6645   va_copy (args_copy, args);
  6647   const char *str;
  6648   int number;
  6649   float fnumber;
  6651   while (*format)
  6653       switch (*format++)
  6655 	case 's': // string
  6656 	  str = va_arg (args_copy, const char *);
  6657 	  break;
  6658 	case 'd': // int
  6659 	  number = va_arg (args_copy, int);
  6660 	  break;
  6661 	case 'f': // float
  6662 	  fnumber = va_arg (args_copy, double);
  6663 	  break;
  6664 	default:
  6665 	  break;
  6668   va_end (args_copy);
  6669   va_end (args);
  6672 int
  6673 main ()
  6676   // Check bool.
  6677   _Bool success = false;
  6679   // Check restrict.
  6680   if (test_restrict ("String literal") == 0)
  6681     success = true;
  6682   char *restrict newvar = "Another string";
  6684   // Check varargs.
  6685   test_varargs ("s, d' f .", "string", 65, 34.234);
  6686   test_varargs_macros ();
  6688   // Check flexible array members.
  6689   struct incomplete_array *ia =
  6690     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  6691   ia->datasize = 10;
  6692   for (int i = 0; i < ia->datasize; ++i)
  6693     ia->data[i] = i * 1.234;
  6695   // Check named initializers.
  6696   struct named_init ni = {
  6697     .number = 34,
  6698     .name = L"Test wide string",
  6699     .average = 543.34343,
  6700   };
  6702   ni.number = 58;
  6704   int dynamic_array[ni.number];
  6705   dynamic_array[ni.number - 1] = 543;
  6707   // work around unused variable warnings
  6708   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  6709 	  || dynamic_array[ni.number - 1] != 543);
  6712   return 0;
  6714 _ACEOF
  6715 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  6716 do
  6717   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6718   rm -f conftest.$ac_build_objext
  6719 if { (ac_try="$ac_build_compile"
  6720 case "(($ac_try" in
  6721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6722   *) ac_try_echo=$ac_try;;
  6723 esac
  6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6725   (eval "$ac_build_compile") 2>conftest.er1
  6726   ac_status=$?
  6727   grep -v '^ *+' conftest.er1 >conftest.err
  6728   rm -f conftest.er1
  6729   cat conftest.err >&5
  6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6731   (exit $ac_status); } && {
  6732 	 test -z "$ac_c_werror_flag" ||
  6733 	 test ! -s conftest.err
  6734        } && test -s conftest.$ac_build_objext; then
  6735   ac_cv_build_prog_cc_stdc=$ac_arg
  6736 else
  6737   echo "$as_me: failed program was:" >&5
  6738 sed 's/^/| /' conftest.$ac_ext >&5
  6741 fi
  6743 rm -f core conftest.err conftest.$ac_build_objext
  6744   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6745 done
  6746 rm -f conftest.$ac_ext
  6747 CC_FOR_BUILD=$ac_save_CC
  6749 fi
  6750 # AC_CACHE_VAL
  6751 case "x$ac_cv_build_prog_cc_stdc" in
  6752   x)
  6753     { echo "$as_me:$LINENO: result: none needed" >&5
  6754 echo "${ECHO_T}none needed" >&6; } ;;
  6755   xno)
  6756     { echo "$as_me:$LINENO: result: unsupported" >&5
  6757 echo "${ECHO_T}unsupported" >&6; } ;;
  6758   *)
  6759     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6760     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6761 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6762 esac
  6763 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6764   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6765 else
  6766   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6767 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6768 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6769   echo $ECHO_N "(cached) $ECHO_C" >&6
  6770 else
  6771   ac_cv_build_prog_cc_stdc=no
  6772 ac_save_CC=$CC_FOR_BUILD
  6773 cat >conftest.$ac_ext <<_ACEOF
  6774 /* confdefs.h.  */
  6775 _ACEOF
  6776 cat confdefs.h >>conftest.$ac_ext
  6777 cat >>conftest.$ac_ext <<_ACEOF
  6778 /* end confdefs.h.  */
  6779 #include <stdarg.h>
  6780 #include <stdio.h>
  6781 #include <sys/types.h>
  6782 #include <sys/stat.h>
  6783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6784 struct buf { int x; };
  6785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6786 static char *e (p, i)
  6787      char **p;
  6788      int i;
  6790   return p[i];
  6792 static char *f (char * (*g) (char **, int), char **p, ...)
  6794   char *s;
  6795   va_list v;
  6796   va_start (v,p);
  6797   s = g (p, va_arg (v,int));
  6798   va_end (v);
  6799   return s;
  6802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6803    function prototypes and stuff, but not '\xHH' hex character constants.
  6804    These don't provoke an error unfortunately, instead are silently treated
  6805    as 'x'.  The following induces an error, until -std is added to get
  6806    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6807    array size at least.  It's necessary to write '\x00'==0 to get something
  6808    that's true only with -std.  */
  6809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6811 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6812    inside strings and character constants.  */
  6813 #define FOO(x) 'x'
  6814 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6816 int test (int i, double x);
  6817 struct s1 {int (*f) (int a);};
  6818 struct s2 {int (*f) (double a);};
  6819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6820 int argc;
  6821 char **argv;
  6822 int
  6823 main ()
  6825 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6827   return 0;
  6829 _ACEOF
  6830 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6831 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6832 do
  6833   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6834   rm -f conftest.$ac_build_objext
  6835 if { (ac_try="$ac_build_compile"
  6836 case "(($ac_try" in
  6837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6838   *) ac_try_echo=$ac_try;;
  6839 esac
  6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6841   (eval "$ac_build_compile") 2>conftest.er1
  6842   ac_status=$?
  6843   grep -v '^ *+' conftest.er1 >conftest.err
  6844   rm -f conftest.er1
  6845   cat conftest.err >&5
  6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6847   (exit $ac_status); } && {
  6848 	 test -z "$ac_c_werror_flag" ||
  6849 	 test ! -s conftest.err
  6850        } && test -s conftest.$ac_build_objext; then
  6851   ac_cv_build_prog_cc_stdc=$ac_arg
  6852 else
  6853   echo "$as_me: failed program was:" >&5
  6854 sed 's/^/| /' conftest.$ac_ext >&5
  6857 fi
  6859 rm -f core conftest.err conftest.$ac_build_objext
  6860   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6861 done
  6862 rm -f conftest.$ac_ext
  6863 CC_FOR_BUILD=$ac_save_CC
  6865 fi
  6866 # AC_CACHE_VAL
  6867 case "x$ac_cv_build_prog_cc_stdc" in
  6868   x)
  6869     { echo "$as_me:$LINENO: result: none needed" >&5
  6870 echo "${ECHO_T}none needed" >&6; } ;;
  6871   xno)
  6872     { echo "$as_me:$LINENO: result: unsupported" >&5
  6873 echo "${ECHO_T}unsupported" >&6; } ;;
  6874   *)
  6875     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6876     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6877 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6878 esac
  6879 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6880   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6881 else
  6882   ac_cv_build_prog_cc_stdc=no
  6883 fi
  6886 fi
  6888  ;;
  6889 esac
  6890   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
  6891 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
  6892   if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6893   echo $ECHO_N "(cached) $ECHO_C" >&6
  6894 fi
  6896   case $ac_cv_build_prog_cc_stdc in
  6897   no) { echo "$as_me:$LINENO: result: unsupported" >&5
  6898 echo "${ECHO_T}unsupported" >&6; } ;;
  6899   '') { echo "$as_me:$LINENO: result: none needed" >&5
  6900 echo "${ECHO_T}none needed" >&6; } ;;
  6901   *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6902 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6903 esac
  6906 ac_ext=c
  6907 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6908 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6909 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6910 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6911 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6912 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  6913 # On Suns, sometimes $CPP names a directory.
  6914 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
  6915   CPP_FOR_BUILD=
  6916 fi
  6917 if test -z "$CPP_FOR_BUILD"; then
  6918   if test "${ac_cv_build_prog_CPP+set}" = set; then
  6919   echo $ECHO_N "(cached) $ECHO_C" >&6
  6920 else
  6921       # Double quotes because CPP needs to be expanded
  6922     for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
  6923     do
  6924       ac_preproc_ok=false
  6925 for ac_c_preproc_warn_flag in '' yes
  6926 do
  6927   # Use a header file that comes with gcc, so configuring glibc
  6928   # with a fresh cross-compiler works.
  6929   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6930   # <limits.h> exists even on freestanding compilers.
  6931   # On the NeXT, cc -E runs the code through the compiler's parser,
  6932   # not just through cpp. "Syntax error" is here to catch this case.
  6933   cat >conftest.$ac_ext <<_ACEOF
  6934 /* confdefs.h.  */
  6935 _ACEOF
  6936 cat confdefs.h >>conftest.$ac_ext
  6937 cat >>conftest.$ac_ext <<_ACEOF
  6938 /* end confdefs.h.  */
  6939 #ifdef __STDC__
  6940 # include <limits.h>
  6941 #else
  6942 # include <assert.h>
  6943 #endif
  6944 		     Syntax error
  6945 _ACEOF
  6946 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6947 case "(($ac_try" in
  6948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6949   *) ac_try_echo=$ac_try;;
  6950 esac
  6951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6952   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6953   ac_status=$?
  6954   grep -v '^ *+' conftest.er1 >conftest.err
  6955   rm -f conftest.er1
  6956   cat conftest.err >&5
  6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6958   (exit $ac_status); } >/dev/null && {
  6959 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6960 	 test ! -s conftest.err
  6961        }; then
  6963 else
  6964   echo "$as_me: failed program was:" >&5
  6965 sed 's/^/| /' conftest.$ac_ext >&5
  6967   # Broken: fails on valid input.
  6968 continue
  6969 fi
  6971 rm -f conftest.err conftest.$ac_ext
  6973   # OK, works on sane cases.  Now check whether nonexistent headers
  6974   # can be detected and how.
  6975   cat >conftest.$ac_ext <<_ACEOF
  6976 /* confdefs.h.  */
  6977 _ACEOF
  6978 cat confdefs.h >>conftest.$ac_ext
  6979 cat >>conftest.$ac_ext <<_ACEOF
  6980 /* end confdefs.h.  */
  6981 #include <ac_nonexistent.h>
  6982 _ACEOF
  6983 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6984 case "(($ac_try" in
  6985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6986   *) ac_try_echo=$ac_try;;
  6987 esac
  6988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6989   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6990   ac_status=$?
  6991   grep -v '^ *+' conftest.er1 >conftest.err
  6992   rm -f conftest.er1
  6993   cat conftest.err >&5
  6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6995   (exit $ac_status); } >/dev/null && {
  6996 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6997 	 test ! -s conftest.err
  6998        }; then
  6999   # Broken: success on invalid input.
  7000 continue
  7001 else
  7002   echo "$as_me: failed program was:" >&5
  7003 sed 's/^/| /' conftest.$ac_ext >&5
  7005   # Passes both tests.
  7006 ac_preproc_ok=:
  7007 break
  7008 fi
  7010 rm -f conftest.err conftest.$ac_ext
  7012 done
  7013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7014 rm -f conftest.err conftest.$ac_ext
  7015 if $ac_preproc_ok; then
  7016   break
  7017 fi
  7019     done
  7020     ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  7022 fi
  7023   CPP_FOR_BUILD=$ac_cv_build_prog_CPP
  7024 else
  7025   ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  7026 fi
  7027 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
  7028 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
  7029 ac_preproc_ok=false
  7030 for ac_c_preproc_warn_flag in '' yes
  7031 do
  7032   # Use a header file that comes with gcc, so configuring glibc
  7033   # with a fresh cross-compiler works.
  7034   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7035   # <limits.h> exists even on freestanding compilers.
  7036   # On the NeXT, cc -E runs the code through the compiler's parser,
  7037   # not just through cpp. "Syntax error" is here to catch this case.
  7038   cat >conftest.$ac_ext <<_ACEOF
  7039 /* confdefs.h.  */
  7040 _ACEOF
  7041 cat confdefs.h >>conftest.$ac_ext
  7042 cat >>conftest.$ac_ext <<_ACEOF
  7043 /* end confdefs.h.  */
  7044 #ifdef __STDC__
  7045 # include <limits.h>
  7046 #else
  7047 # include <assert.h>
  7048 #endif
  7049 		     Syntax error
  7050 _ACEOF
  7051 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  7052 case "(($ac_try" in
  7053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7054   *) ac_try_echo=$ac_try;;
  7055 esac
  7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7057   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  7058   ac_status=$?
  7059   grep -v '^ *+' conftest.er1 >conftest.err
  7060   rm -f conftest.er1
  7061   cat conftest.err >&5
  7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7063   (exit $ac_status); } >/dev/null && {
  7064 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7065 	 test ! -s conftest.err
  7066        }; then
  7068 else
  7069   echo "$as_me: failed program was:" >&5
  7070 sed 's/^/| /' conftest.$ac_ext >&5
  7072   # Broken: fails on valid input.
  7073 continue
  7074 fi
  7076 rm -f conftest.err conftest.$ac_ext
  7078   # OK, works on sane cases.  Now check whether nonexistent headers
  7079   # can be detected and how.
  7080   cat >conftest.$ac_ext <<_ACEOF
  7081 /* confdefs.h.  */
  7082 _ACEOF
  7083 cat confdefs.h >>conftest.$ac_ext
  7084 cat >>conftest.$ac_ext <<_ACEOF
  7085 /* end confdefs.h.  */
  7086 #include <ac_nonexistent.h>
  7087 _ACEOF
  7088 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  7089 case "(($ac_try" in
  7090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7091   *) ac_try_echo=$ac_try;;
  7092 esac
  7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7094   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  7095   ac_status=$?
  7096   grep -v '^ *+' conftest.er1 >conftest.err
  7097   rm -f conftest.er1
  7098   cat conftest.err >&5
  7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7100   (exit $ac_status); } >/dev/null && {
  7101 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7102 	 test ! -s conftest.err
  7103        }; then
  7104   # Broken: success on invalid input.
  7105 continue
  7106 else
  7107   echo "$as_me: failed program was:" >&5
  7108 sed 's/^/| /' conftest.$ac_ext >&5
  7110   # Passes both tests.
  7111 ac_preproc_ok=:
  7112 break
  7113 fi
  7115 rm -f conftest.err conftest.$ac_ext
  7117 done
  7118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7119 rm -f conftest.err conftest.$ac_ext
  7120 if $ac_preproc_ok; then
  7122 else
  7123   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  7124 See \`config.log' for more details." >&5
  7125 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  7126 See \`config.log' for more details." >&2;}
  7127    { (exit 1); exit 1; }; }
  7128 fi
  7130 ac_ext=c
  7131 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  7132 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  7133 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7134 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  7139 BUILD_EXEEXT=$ac_build_exeext
  7140 BUILD_OBJEXT=$ac_build_objext
  7142 ac_ext=m
  7143 ac_cpp='$OBJCPP $CPPFLAGS'
  7144 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7145 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7146 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  7147 if test -n "$ac_tool_prefix"; then
  7148   for ac_prog in gcc objcc objc cc CC
  7149   do
  7150     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7154 if test "${ac_cv_prog_OBJC+set}" = set; then
  7155   echo $ECHO_N "(cached) $ECHO_C" >&6
  7156 else
  7157   if test -n "$OBJC"; then
  7158   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  7159 else
  7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7161 for as_dir in $PATH
  7162 do
  7163   IFS=$as_save_IFS
  7164   test -z "$as_dir" && as_dir=.
  7165   for ac_exec_ext in '' $ac_executable_extensions; do
  7166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7167     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  7168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7169     break 2
  7170   fi
  7171 done
  7172 done
  7173 IFS=$as_save_IFS
  7175 fi
  7176 fi
  7177 OBJC=$ac_cv_prog_OBJC
  7178 if test -n "$OBJC"; then
  7179   { echo "$as_me:$LINENO: result: $OBJC" >&5
  7180 echo "${ECHO_T}$OBJC" >&6; }
  7181 else
  7182   { echo "$as_me:$LINENO: result: no" >&5
  7183 echo "${ECHO_T}no" >&6; }
  7184 fi
  7187     test -n "$OBJC" && break
  7188   done
  7189 fi
  7190 if test -z "$OBJC"; then
  7191   ac_ct_OBJC=$OBJC
  7192   for ac_prog in gcc objcc objc cc CC
  7193 do
  7194   # Extract the first word of "$ac_prog", so it can be a program name with args.
  7195 set dummy $ac_prog; ac_word=$2
  7196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7198 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  7199   echo $ECHO_N "(cached) $ECHO_C" >&6
  7200 else
  7201   if test -n "$ac_ct_OBJC"; then
  7202   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  7203 else
  7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7205 for as_dir in $PATH
  7206 do
  7207   IFS=$as_save_IFS
  7208   test -z "$as_dir" && as_dir=.
  7209   for ac_exec_ext in '' $ac_executable_extensions; do
  7210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7211     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  7212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7213     break 2
  7214   fi
  7215 done
  7216 done
  7217 IFS=$as_save_IFS
  7219 fi
  7220 fi
  7221 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  7222 if test -n "$ac_ct_OBJC"; then
  7223   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  7224 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  7225 else
  7226   { echo "$as_me:$LINENO: result: no" >&5
  7227 echo "${ECHO_T}no" >&6; }
  7228 fi
  7231   test -n "$ac_ct_OBJC" && break
  7232 done
  7234   if test "x$ac_ct_OBJC" = x; then
  7235     OBJC="gcc"
  7236   else
  7237     case $cross_compiling:$ac_tool_warned in
  7238 yes:)
  7239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7240 whose name does not start with the host triplet.  If you think this
  7241 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7243 whose name does not start with the host triplet.  If you think this
  7244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7245 ac_tool_warned=yes ;;
  7246 esac
  7247     OBJC=$ac_ct_OBJC
  7248   fi
  7249 fi
  7251 # Provide some information about the compiler.
  7252 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  7253 ac_compiler=`set X $ac_compile; echo $2`
  7254 { (ac_try="$ac_compiler --version >&5"
  7255 case "(($ac_try" in
  7256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7257   *) ac_try_echo=$ac_try;;
  7258 esac
  7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7260   (eval "$ac_compiler --version >&5") 2>&5
  7261   ac_status=$?
  7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7263   (exit $ac_status); }
  7264 { (ac_try="$ac_compiler -v >&5"
  7265 case "(($ac_try" in
  7266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7267   *) ac_try_echo=$ac_try;;
  7268 esac
  7269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7270   (eval "$ac_compiler -v >&5") 2>&5
  7271   ac_status=$?
  7272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7273   (exit $ac_status); }
  7274 { (ac_try="$ac_compiler -V >&5"
  7275 case "(($ac_try" in
  7276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7277   *) ac_try_echo=$ac_try;;
  7278 esac
  7279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7280   (eval "$ac_compiler -V >&5") 2>&5
  7281   ac_status=$?
  7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7283   (exit $ac_status); }
  7285 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  7286 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  7287 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  7288   echo $ECHO_N "(cached) $ECHO_C" >&6
  7289 else
  7290   cat >conftest.$ac_ext <<_ACEOF
  7291 /* confdefs.h.  */
  7292 _ACEOF
  7293 cat confdefs.h >>conftest.$ac_ext
  7294 cat >>conftest.$ac_ext <<_ACEOF
  7295 /* end confdefs.h.  */
  7297 int
  7298 main ()
  7300 #ifndef __GNUC__
  7301        choke me
  7302 #endif
  7305   return 0;
  7307 _ACEOF
  7308 rm -f conftest.$ac_objext
  7309 if { (ac_try="$ac_compile"
  7310 case "(($ac_try" in
  7311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7312   *) ac_try_echo=$ac_try;;
  7313 esac
  7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7315   (eval "$ac_compile") 2>conftest.er1
  7316   ac_status=$?
  7317   grep -v '^ *+' conftest.er1 >conftest.err
  7318   rm -f conftest.er1
  7319   cat conftest.err >&5
  7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7321   (exit $ac_status); } && {
  7322 	 test -z "$ac_objc_werror_flag" ||
  7323 	 test ! -s conftest.err
  7324        } && test -s conftest.$ac_objext; then
  7325   ac_compiler_gnu=yes
  7326 else
  7327   echo "$as_me: failed program was:" >&5
  7328 sed 's/^/| /' conftest.$ac_ext >&5
  7330 	ac_compiler_gnu=no
  7331 fi
  7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7334 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  7336 fi
  7337 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  7338 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  7339 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  7340 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  7341 ac_save_OBJCFLAGS=$OBJCFLAGS
  7342 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  7343 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  7344 if test "${ac_cv_prog_objc_g+set}" = set; then
  7345   echo $ECHO_N "(cached) $ECHO_C" >&6
  7346 else
  7347   ac_save_objc_werror_flag=$ac_objc_werror_flag
  7348    ac_objc_werror_flag=yes
  7349    ac_cv_prog_objc_g=no
  7350    OBJCFLAGS="-g"
  7351    cat >conftest.$ac_ext <<_ACEOF
  7352 /* confdefs.h.  */
  7353 _ACEOF
  7354 cat confdefs.h >>conftest.$ac_ext
  7355 cat >>conftest.$ac_ext <<_ACEOF
  7356 /* end confdefs.h.  */
  7358 int
  7359 main ()
  7363   return 0;
  7365 _ACEOF
  7366 rm -f conftest.$ac_objext
  7367 if { (ac_try="$ac_compile"
  7368 case "(($ac_try" in
  7369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7370   *) ac_try_echo=$ac_try;;
  7371 esac
  7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7373   (eval "$ac_compile") 2>conftest.er1
  7374   ac_status=$?
  7375   grep -v '^ *+' conftest.er1 >conftest.err
  7376   rm -f conftest.er1
  7377   cat conftest.err >&5
  7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7379   (exit $ac_status); } && {
  7380 	 test -z "$ac_objc_werror_flag" ||
  7381 	 test ! -s conftest.err
  7382        } && test -s conftest.$ac_objext; then
  7383   ac_cv_prog_objc_g=yes
  7384 else
  7385   echo "$as_me: failed program was:" >&5
  7386 sed 's/^/| /' conftest.$ac_ext >&5
  7388 	OBJCFLAGS=""
  7389       cat >conftest.$ac_ext <<_ACEOF
  7390 /* confdefs.h.  */
  7391 _ACEOF
  7392 cat confdefs.h >>conftest.$ac_ext
  7393 cat >>conftest.$ac_ext <<_ACEOF
  7394 /* end confdefs.h.  */
  7396 int
  7397 main ()
  7401   return 0;
  7403 _ACEOF
  7404 rm -f conftest.$ac_objext
  7405 if { (ac_try="$ac_compile"
  7406 case "(($ac_try" in
  7407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7408   *) ac_try_echo=$ac_try;;
  7409 esac
  7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7411   (eval "$ac_compile") 2>conftest.er1
  7412   ac_status=$?
  7413   grep -v '^ *+' conftest.er1 >conftest.err
  7414   rm -f conftest.er1
  7415   cat conftest.err >&5
  7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7417   (exit $ac_status); } && {
  7418 	 test -z "$ac_objc_werror_flag" ||
  7419 	 test ! -s conftest.err
  7420        } && test -s conftest.$ac_objext; then
  7422 else
  7423   echo "$as_me: failed program was:" >&5
  7424 sed 's/^/| /' conftest.$ac_ext >&5
  7426 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  7427 	 OBJCFLAGS="-g"
  7428 	 cat >conftest.$ac_ext <<_ACEOF
  7429 /* confdefs.h.  */
  7430 _ACEOF
  7431 cat confdefs.h >>conftest.$ac_ext
  7432 cat >>conftest.$ac_ext <<_ACEOF
  7433 /* end confdefs.h.  */
  7435 int
  7436 main ()
  7440   return 0;
  7442 _ACEOF
  7443 rm -f conftest.$ac_objext
  7444 if { (ac_try="$ac_compile"
  7445 case "(($ac_try" in
  7446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7447   *) ac_try_echo=$ac_try;;
  7448 esac
  7449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7450   (eval "$ac_compile") 2>conftest.er1
  7451   ac_status=$?
  7452   grep -v '^ *+' conftest.er1 >conftest.err
  7453   rm -f conftest.er1
  7454   cat conftest.err >&5
  7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7456   (exit $ac_status); } && {
  7457 	 test -z "$ac_objc_werror_flag" ||
  7458 	 test ! -s conftest.err
  7459        } && test -s conftest.$ac_objext; then
  7460   ac_cv_prog_objc_g=yes
  7461 else
  7462   echo "$as_me: failed program was:" >&5
  7463 sed 's/^/| /' conftest.$ac_ext >&5
  7466 fi
  7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7469 fi
  7471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7472 fi
  7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7475    ac_objc_werror_flag=$ac_save_objc_werror_flag
  7476 fi
  7477 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  7478 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  7479 if test "$ac_test_OBJCFLAGS" = set; then
  7480   OBJCFLAGS=$ac_save_OBJCFLAGS
  7481 elif test $ac_cv_prog_objc_g = yes; then
  7482   if test "$GOBJC" = yes; then
  7483     OBJCFLAGS="-g -O2"
  7484   else
  7485     OBJCFLAGS="-g"
  7486   fi
  7487 else
  7488   if test "$GOBJC" = yes; then
  7489     OBJCFLAGS="-O2"
  7490   else
  7491     OBJCFLAGS=
  7492   fi
  7493 fi
  7494 ac_ext=c
  7495 ac_cpp='$CPP $CPPFLAGS'
  7496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7500 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  7501 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  7502 if test "${ac_cv_path_SED+set}" = set; then
  7503   echo $ECHO_N "(cached) $ECHO_C" >&6
  7504 else
  7505             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7506      for ac_i in 1 2 3 4 5 6 7; do
  7507        ac_script="$ac_script$as_nl$ac_script"
  7508      done
  7509      echo "$ac_script" | sed 99q >conftest.sed
  7510      $as_unset ac_script || ac_script=
  7511      # Extract the first word of "sed gsed" to use in msg output
  7512 if test -z "$SED"; then
  7513 set dummy sed gsed; ac_prog_name=$2
  7514 if test "${ac_cv_path_SED+set}" = set; then
  7515   echo $ECHO_N "(cached) $ECHO_C" >&6
  7516 else
  7517   ac_path_SED_found=false
  7518 # Loop through the user's path and test for each of PROGNAME-LIST
  7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7520 for as_dir in $PATH
  7521 do
  7522   IFS=$as_save_IFS
  7523   test -z "$as_dir" && as_dir=.
  7524   for ac_prog in sed gsed; do
  7525   for ac_exec_ext in '' $ac_executable_extensions; do
  7526     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  7527     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  7528     # Check for GNU ac_path_SED and select it if it is found.
  7529   # Check for GNU $ac_path_SED
  7530 case `"$ac_path_SED" --version 2>&1` in
  7531 *GNU*)
  7532   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7533 *)
  7534   ac_count=0
  7535   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7536   while :
  7537   do
  7538     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7539     mv "conftest.tmp" "conftest.in"
  7540     cp "conftest.in" "conftest.nl"
  7541     echo '' >> "conftest.nl"
  7542     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7543     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7544     ac_count=`expr $ac_count + 1`
  7545     if test $ac_count -gt ${ac_path_SED_max-0}; then
  7546       # Best one so far, save it but keep looking for a better one
  7547       ac_cv_path_SED="$ac_path_SED"
  7548       ac_path_SED_max=$ac_count
  7549     fi
  7550     # 10*(2^10) chars as input seems more than enough
  7551     test $ac_count -gt 10 && break
  7552   done
  7553   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7554 esac
  7557     $ac_path_SED_found && break 3
  7558   done
  7559 done
  7561 done
  7562 IFS=$as_save_IFS
  7565 fi
  7567 SED="$ac_cv_path_SED"
  7568 if test -z "$SED"; then
  7569   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  7570 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  7571    { (exit 1); exit 1; }; }
  7572 fi
  7574 else
  7575   ac_cv_path_SED=$SED
  7576 fi
  7578 fi
  7579 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  7580 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  7581  SED="$ac_cv_path_SED"
  7582   rm -f conftest.sed
  7584 # By default we simply use the C compiler to build assembly code.
  7586 test "${CCAS+set}" = set || CCAS=$CC
  7587 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  7591 if test -n "$ac_tool_prefix"; then
  7592   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7593 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7596 if test "${ac_cv_prog_RANLIB+set}" = set; then
  7597   echo $ECHO_N "(cached) $ECHO_C" >&6
  7598 else
  7599   if test -n "$RANLIB"; then
  7600   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7601 else
  7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7603 for as_dir in $PATH
  7604 do
  7605   IFS=$as_save_IFS
  7606   test -z "$as_dir" && as_dir=.
  7607   for ac_exec_ext in '' $ac_executable_extensions; do
  7608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7609     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7611     break 2
  7612   fi
  7613 done
  7614 done
  7615 IFS=$as_save_IFS
  7617 fi
  7618 fi
  7619 RANLIB=$ac_cv_prog_RANLIB
  7620 if test -n "$RANLIB"; then
  7621   { echo "$as_me:$LINENO: result: $RANLIB" >&5
  7622 echo "${ECHO_T}$RANLIB" >&6; }
  7623 else
  7624   { echo "$as_me:$LINENO: result: no" >&5
  7625 echo "${ECHO_T}no" >&6; }
  7626 fi
  7629 fi
  7630 if test -z "$ac_cv_prog_RANLIB"; then
  7631   ac_ct_RANLIB=$RANLIB
  7632   # Extract the first word of "ranlib", so it can be a program name with args.
  7633 set dummy ranlib; ac_word=$2
  7634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7636 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  7637   echo $ECHO_N "(cached) $ECHO_C" >&6
  7638 else
  7639   if test -n "$ac_ct_RANLIB"; then
  7640   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7641 else
  7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7643 for as_dir in $PATH
  7644 do
  7645   IFS=$as_save_IFS
  7646   test -z "$as_dir" && as_dir=.
  7647   for ac_exec_ext in '' $ac_executable_extensions; do
  7648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7649     ac_cv_prog_ac_ct_RANLIB="ranlib"
  7650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7651     break 2
  7652   fi
  7653 done
  7654 done
  7655 IFS=$as_save_IFS
  7657 fi
  7658 fi
  7659 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7660 if test -n "$ac_ct_RANLIB"; then
  7661   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  7662 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  7663 else
  7664   { echo "$as_me:$LINENO: result: no" >&5
  7665 echo "${ECHO_T}no" >&6; }
  7666 fi
  7668   if test "x$ac_ct_RANLIB" = x; then
  7669     RANLIB=":"
  7670   else
  7671     case $cross_compiling:$ac_tool_warned in
  7672 yes:)
  7673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7674 whose name does not start with the host triplet.  If you think this
  7675 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7677 whose name does not start with the host triplet.  If you think this
  7678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7679 ac_tool_warned=yes ;;
  7680 esac
  7681     RANLIB=$ac_ct_RANLIB
  7682   fi
  7683 else
  7684   RANLIB="$ac_cv_prog_RANLIB"
  7685 fi
  7688 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  7689 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  7690 if test "${ac_cv_path_GREP+set}" = set; then
  7691   echo $ECHO_N "(cached) $ECHO_C" >&6
  7692 else
  7693   # Extract the first word of "grep ggrep" to use in msg output
  7694 if test -z "$GREP"; then
  7695 set dummy grep ggrep; ac_prog_name=$2
  7696 if test "${ac_cv_path_GREP+set}" = set; then
  7697   echo $ECHO_N "(cached) $ECHO_C" >&6
  7698 else
  7699   ac_path_GREP_found=false
  7700 # Loop through the user's path and test for each of PROGNAME-LIST
  7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7703 do
  7704   IFS=$as_save_IFS
  7705   test -z "$as_dir" && as_dir=.
  7706   for ac_prog in grep ggrep; do
  7707   for ac_exec_ext in '' $ac_executable_extensions; do
  7708     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  7709     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  7710     # Check for GNU ac_path_GREP and select it if it is found.
  7711   # Check for GNU $ac_path_GREP
  7712 case `"$ac_path_GREP" --version 2>&1` in
  7713 *GNU*)
  7714   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  7715 *)
  7716   ac_count=0
  7717   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7718   while :
  7719   do
  7720     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7721     mv "conftest.tmp" "conftest.in"
  7722     cp "conftest.in" "conftest.nl"
  7723     echo 'GREP' >> "conftest.nl"
  7724     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7725     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7726     ac_count=`expr $ac_count + 1`
  7727     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  7728       # Best one so far, save it but keep looking for a better one
  7729       ac_cv_path_GREP="$ac_path_GREP"
  7730       ac_path_GREP_max=$ac_count
  7731     fi
  7732     # 10*(2^10) chars as input seems more than enough
  7733     test $ac_count -gt 10 && break
  7734   done
  7735   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7736 esac
  7739     $ac_path_GREP_found && break 3
  7740   done
  7741 done
  7743 done
  7744 IFS=$as_save_IFS
  7747 fi
  7749 GREP="$ac_cv_path_GREP"
  7750 if test -z "$GREP"; then
  7751   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  7752 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  7753    { (exit 1); exit 1; }; }
  7754 fi
  7756 else
  7757   ac_cv_path_GREP=$GREP
  7758 fi
  7761 fi
  7762 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  7763 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  7764  GREP="$ac_cv_path_GREP"
  7767 { echo "$as_me:$LINENO: checking for egrep" >&5
  7768 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  7769 if test "${ac_cv_path_EGREP+set}" = set; then
  7770   echo $ECHO_N "(cached) $ECHO_C" >&6
  7771 else
  7772   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  7773    then ac_cv_path_EGREP="$GREP -E"
  7774    else
  7775      # Extract the first word of "egrep" to use in msg output
  7776 if test -z "$EGREP"; then
  7777 set dummy egrep; ac_prog_name=$2
  7778 if test "${ac_cv_path_EGREP+set}" = set; then
  7779   echo $ECHO_N "(cached) $ECHO_C" >&6
  7780 else
  7781   ac_path_EGREP_found=false
  7782 # Loop through the user's path and test for each of PROGNAME-LIST
  7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7785 do
  7786   IFS=$as_save_IFS
  7787   test -z "$as_dir" && as_dir=.
  7788   for ac_prog in egrep; do
  7789   for ac_exec_ext in '' $ac_executable_extensions; do
  7790     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  7791     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  7792     # Check for GNU ac_path_EGREP and select it if it is found.
  7793   # Check for GNU $ac_path_EGREP
  7794 case `"$ac_path_EGREP" --version 2>&1` in
  7795 *GNU*)
  7796   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  7797 *)
  7798   ac_count=0
  7799   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7800   while :
  7801   do
  7802     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7803     mv "conftest.tmp" "conftest.in"
  7804     cp "conftest.in" "conftest.nl"
  7805     echo 'EGREP' >> "conftest.nl"
  7806     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7807     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7808     ac_count=`expr $ac_count + 1`
  7809     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  7810       # Best one so far, save it but keep looking for a better one
  7811       ac_cv_path_EGREP="$ac_path_EGREP"
  7812       ac_path_EGREP_max=$ac_count
  7813     fi
  7814     # 10*(2^10) chars as input seems more than enough
  7815     test $ac_count -gt 10 && break
  7816   done
  7817   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7818 esac
  7821     $ac_path_EGREP_found && break 3
  7822   done
  7823 done
  7825 done
  7826 IFS=$as_save_IFS
  7829 fi
  7831 EGREP="$ac_cv_path_EGREP"
  7832 if test -z "$EGREP"; then
  7833   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  7834 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  7835    { (exit 1); exit 1; }; }
  7836 fi
  7838 else
  7839   ac_cv_path_EGREP=$EGREP
  7840 fi
  7843    fi
  7844 fi
  7845 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  7846 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  7847  EGREP="$ac_cv_path_EGREP"
  7850 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7851 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  7852 if test "${ac_cv_header_stdc+set}" = set; then
  7853   echo $ECHO_N "(cached) $ECHO_C" >&6
  7854 else
  7855   cat >conftest.$ac_ext <<_ACEOF
  7856 /* confdefs.h.  */
  7857 _ACEOF
  7858 cat confdefs.h >>conftest.$ac_ext
  7859 cat >>conftest.$ac_ext <<_ACEOF
  7860 /* end confdefs.h.  */
  7861 #include <stdlib.h>
  7862 #include <stdarg.h>
  7863 #include <string.h>
  7864 #include <float.h>
  7866 int
  7867 main ()
  7871   return 0;
  7873 _ACEOF
  7874 rm -f conftest.$ac_objext
  7875 if { (ac_try="$ac_compile"
  7876 case "(($ac_try" in
  7877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7878   *) ac_try_echo=$ac_try;;
  7879 esac
  7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7881   (eval "$ac_compile") 2>conftest.er1
  7882   ac_status=$?
  7883   grep -v '^ *+' conftest.er1 >conftest.err
  7884   rm -f conftest.er1
  7885   cat conftest.err >&5
  7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7887   (exit $ac_status); } && {
  7888 	 test -z "$ac_c_werror_flag" ||
  7889 	 test ! -s conftest.err
  7890        } && test -s conftest.$ac_objext; then
  7891   ac_cv_header_stdc=yes
  7892 else
  7893   echo "$as_me: failed program was:" >&5
  7894 sed 's/^/| /' conftest.$ac_ext >&5
  7896 	ac_cv_header_stdc=no
  7897 fi
  7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7901 if test $ac_cv_header_stdc = yes; then
  7902   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7903   cat >conftest.$ac_ext <<_ACEOF
  7904 /* confdefs.h.  */
  7905 _ACEOF
  7906 cat confdefs.h >>conftest.$ac_ext
  7907 cat >>conftest.$ac_ext <<_ACEOF
  7908 /* end confdefs.h.  */
  7909 #include <string.h>
  7911 _ACEOF
  7912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7913   $EGREP "memchr" >/dev/null 2>&1; then
  7915 else
  7916   ac_cv_header_stdc=no
  7917 fi
  7918 rm -f conftest*
  7920 fi
  7922 if test $ac_cv_header_stdc = yes; then
  7923   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7924   cat >conftest.$ac_ext <<_ACEOF
  7925 /* confdefs.h.  */
  7926 _ACEOF
  7927 cat confdefs.h >>conftest.$ac_ext
  7928 cat >>conftest.$ac_ext <<_ACEOF
  7929 /* end confdefs.h.  */
  7930 #include <stdlib.h>
  7932 _ACEOF
  7933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7934   $EGREP "free" >/dev/null 2>&1; then
  7936 else
  7937   ac_cv_header_stdc=no
  7938 fi
  7939 rm -f conftest*
  7941 fi
  7943 if test $ac_cv_header_stdc = yes; then
  7944   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7945   if test "$cross_compiling" = yes; then
  7947 else
  7948   cat >conftest.$ac_ext <<_ACEOF
  7949 /* confdefs.h.  */
  7950 _ACEOF
  7951 cat confdefs.h >>conftest.$ac_ext
  7952 cat >>conftest.$ac_ext <<_ACEOF
  7953 /* end confdefs.h.  */
  7954 #include <ctype.h>
  7955 #include <stdlib.h>
  7956 #if ((' ' & 0x0FF) == 0x020)
  7957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7959 #else
  7960 # define ISLOWER(c) \
  7961 		   (('a' <= (c) && (c) <= 'i') \
  7962 		     || ('j' <= (c) && (c) <= 'r') \
  7963 		     || ('s' <= (c) && (c) <= 'z'))
  7964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7965 #endif
  7967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7968 int
  7969 main ()
  7971   int i;
  7972   for (i = 0; i < 256; i++)
  7973     if (XOR (islower (i), ISLOWER (i))
  7974 	|| toupper (i) != TOUPPER (i))
  7975       return 2;
  7976   return 0;
  7978 _ACEOF
  7979 rm -f conftest$ac_exeext
  7980 if { (ac_try="$ac_link"
  7981 case "(($ac_try" in
  7982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7983   *) ac_try_echo=$ac_try;;
  7984 esac
  7985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7986   (eval "$ac_link") 2>&5
  7987   ac_status=$?
  7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7990   { (case "(($ac_try" in
  7991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7992   *) ac_try_echo=$ac_try;;
  7993 esac
  7994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7995   (eval "$ac_try") 2>&5
  7996   ac_status=$?
  7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7998   (exit $ac_status); }; }; then
  8000 else
  8001   echo "$as_me: program exited with status $ac_status" >&5
  8002 echo "$as_me: failed program was:" >&5
  8003 sed 's/^/| /' conftest.$ac_ext >&5
  8005 ( exit $ac_status )
  8006 ac_cv_header_stdc=no
  8007 fi
  8008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8009 fi
  8012 fi
  8013 fi
  8014 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8015 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  8016 if test $ac_cv_header_stdc = yes; then
  8018 cat >>confdefs.h <<\_ACEOF
  8019 #define STDC_HEADERS 1
  8020 _ACEOF
  8022 fi
  8024 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8035 		  inttypes.h stdint.h unistd.h
  8036 do
  8037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8041   echo $ECHO_N "(cached) $ECHO_C" >&6
  8042 else
  8043   cat >conftest.$ac_ext <<_ACEOF
  8044 /* confdefs.h.  */
  8045 _ACEOF
  8046 cat confdefs.h >>conftest.$ac_ext
  8047 cat >>conftest.$ac_ext <<_ACEOF
  8048 /* end confdefs.h.  */
  8049 $ac_includes_default
  8051 #include <$ac_header>
  8052 _ACEOF
  8053 rm -f conftest.$ac_objext
  8054 if { (ac_try="$ac_compile"
  8055 case "(($ac_try" in
  8056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8057   *) ac_try_echo=$ac_try;;
  8058 esac
  8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8060   (eval "$ac_compile") 2>conftest.er1
  8061   ac_status=$?
  8062   grep -v '^ *+' conftest.er1 >conftest.err
  8063   rm -f conftest.er1
  8064   cat conftest.err >&5
  8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8066   (exit $ac_status); } && {
  8067 	 test -z "$ac_c_werror_flag" ||
  8068 	 test ! -s conftest.err
  8069        } && test -s conftest.$ac_objext; then
  8070   eval "$as_ac_Header=yes"
  8071 else
  8072   echo "$as_me: failed program was:" >&5
  8073 sed 's/^/| /' conftest.$ac_ext >&5
  8075 	eval "$as_ac_Header=no"
  8076 fi
  8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8079 fi
  8080 ac_res=`eval echo '${'$as_ac_Header'}'`
  8081 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8082 echo "${ECHO_T}$ac_res" >&6; }
  8083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8084   cat >>confdefs.h <<_ACEOF
  8085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8086 _ACEOF
  8088 fi
  8090 done
  8093 { echo "$as_me:$LINENO: checking for void *" >&5
  8094 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
  8095 if test "${ac_cv_type_void_p+set}" = set; then
  8096   echo $ECHO_N "(cached) $ECHO_C" >&6
  8097 else
  8098   cat >conftest.$ac_ext <<_ACEOF
  8099 /* confdefs.h.  */
  8100 _ACEOF
  8101 cat confdefs.h >>conftest.$ac_ext
  8102 cat >>conftest.$ac_ext <<_ACEOF
  8103 /* end confdefs.h.  */
  8104 $ac_includes_default
  8105 typedef void * ac__type_new_;
  8106 int
  8107 main ()
  8109 if ((ac__type_new_ *) 0)
  8110   return 0;
  8111 if (sizeof (ac__type_new_))
  8112   return 0;
  8114   return 0;
  8116 _ACEOF
  8117 rm -f conftest.$ac_objext
  8118 if { (ac_try="$ac_compile"
  8119 case "(($ac_try" in
  8120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8121   *) ac_try_echo=$ac_try;;
  8122 esac
  8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8124   (eval "$ac_compile") 2>conftest.er1
  8125   ac_status=$?
  8126   grep -v '^ *+' conftest.er1 >conftest.err
  8127   rm -f conftest.er1
  8128   cat conftest.err >&5
  8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8130   (exit $ac_status); } && {
  8131 	 test -z "$ac_c_werror_flag" ||
  8132 	 test ! -s conftest.err
  8133        } && test -s conftest.$ac_objext; then
  8134   ac_cv_type_void_p=yes
  8135 else
  8136   echo "$as_me: failed program was:" >&5
  8137 sed 's/^/| /' conftest.$ac_ext >&5
  8139 	ac_cv_type_void_p=no
  8140 fi
  8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8143 fi
  8144 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
  8145 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
  8147 # The cast to long int works around a bug in the HP C Compiler
  8148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8150 # This bug is HP SR number 8606223364.
  8151 { echo "$as_me:$LINENO: checking size of void *" >&5
  8152 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
  8153 if test "${ac_cv_sizeof_void_p+set}" = set; then
  8154   echo $ECHO_N "(cached) $ECHO_C" >&6
  8155 else
  8156   if test "$cross_compiling" = yes; then
  8157   # Depending upon the size, compute the lo and hi bounds.
  8158 cat >conftest.$ac_ext <<_ACEOF
  8159 /* confdefs.h.  */
  8160 _ACEOF
  8161 cat confdefs.h >>conftest.$ac_ext
  8162 cat >>conftest.$ac_ext <<_ACEOF
  8163 /* end confdefs.h.  */
  8164 $ac_includes_default
  8165    typedef void * ac__type_sizeof_;
  8166 int
  8167 main ()
  8169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  8170 test_array [0] = 0
  8173   return 0;
  8175 _ACEOF
  8176 rm -f conftest.$ac_objext
  8177 if { (ac_try="$ac_compile"
  8178 case "(($ac_try" in
  8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8180   *) ac_try_echo=$ac_try;;
  8181 esac
  8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8183   (eval "$ac_compile") 2>conftest.er1
  8184   ac_status=$?
  8185   grep -v '^ *+' conftest.er1 >conftest.err
  8186   rm -f conftest.er1
  8187   cat conftest.err >&5
  8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8189   (exit $ac_status); } && {
  8190 	 test -z "$ac_c_werror_flag" ||
  8191 	 test ! -s conftest.err
  8192        } && test -s conftest.$ac_objext; then
  8193   ac_lo=0 ac_mid=0
  8194   while :; do
  8195     cat >conftest.$ac_ext <<_ACEOF
  8196 /* confdefs.h.  */
  8197 _ACEOF
  8198 cat confdefs.h >>conftest.$ac_ext
  8199 cat >>conftest.$ac_ext <<_ACEOF
  8200 /* end confdefs.h.  */
  8201 $ac_includes_default
  8202    typedef void * ac__type_sizeof_;
  8203 int
  8204 main ()
  8206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8207 test_array [0] = 0
  8210   return 0;
  8212 _ACEOF
  8213 rm -f conftest.$ac_objext
  8214 if { (ac_try="$ac_compile"
  8215 case "(($ac_try" in
  8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8217   *) ac_try_echo=$ac_try;;
  8218 esac
  8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8220   (eval "$ac_compile") 2>conftest.er1
  8221   ac_status=$?
  8222   grep -v '^ *+' conftest.er1 >conftest.err
  8223   rm -f conftest.er1
  8224   cat conftest.err >&5
  8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8226   (exit $ac_status); } && {
  8227 	 test -z "$ac_c_werror_flag" ||
  8228 	 test ! -s conftest.err
  8229        } && test -s conftest.$ac_objext; then
  8230   ac_hi=$ac_mid; break
  8231 else
  8232   echo "$as_me: failed program was:" >&5
  8233 sed 's/^/| /' conftest.$ac_ext >&5
  8235 	ac_lo=`expr $ac_mid + 1`
  8236 			if test $ac_lo -le $ac_mid; then
  8237 			  ac_lo= ac_hi=
  8238 			  break
  8239 			fi
  8240 			ac_mid=`expr 2 '*' $ac_mid + 1`
  8241 fi
  8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8244   done
  8245 else
  8246   echo "$as_me: failed program was:" >&5
  8247 sed 's/^/| /' conftest.$ac_ext >&5
  8249 	cat >conftest.$ac_ext <<_ACEOF
  8250 /* confdefs.h.  */
  8251 _ACEOF
  8252 cat confdefs.h >>conftest.$ac_ext
  8253 cat >>conftest.$ac_ext <<_ACEOF
  8254 /* end confdefs.h.  */
  8255 $ac_includes_default
  8256    typedef void * ac__type_sizeof_;
  8257 int
  8258 main ()
  8260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  8261 test_array [0] = 0
  8264   return 0;
  8266 _ACEOF
  8267 rm -f conftest.$ac_objext
  8268 if { (ac_try="$ac_compile"
  8269 case "(($ac_try" in
  8270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8271   *) ac_try_echo=$ac_try;;
  8272 esac
  8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8274   (eval "$ac_compile") 2>conftest.er1
  8275   ac_status=$?
  8276   grep -v '^ *+' conftest.er1 >conftest.err
  8277   rm -f conftest.er1
  8278   cat conftest.err >&5
  8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8280   (exit $ac_status); } && {
  8281 	 test -z "$ac_c_werror_flag" ||
  8282 	 test ! -s conftest.err
  8283        } && test -s conftest.$ac_objext; then
  8284   ac_hi=-1 ac_mid=-1
  8285   while :; do
  8286     cat >conftest.$ac_ext <<_ACEOF
  8287 /* confdefs.h.  */
  8288 _ACEOF
  8289 cat confdefs.h >>conftest.$ac_ext
  8290 cat >>conftest.$ac_ext <<_ACEOF
  8291 /* end confdefs.h.  */
  8292 $ac_includes_default
  8293    typedef void * ac__type_sizeof_;
  8294 int
  8295 main ()
  8297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  8298 test_array [0] = 0
  8301   return 0;
  8303 _ACEOF
  8304 rm -f conftest.$ac_objext
  8305 if { (ac_try="$ac_compile"
  8306 case "(($ac_try" in
  8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8308   *) ac_try_echo=$ac_try;;
  8309 esac
  8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8311   (eval "$ac_compile") 2>conftest.er1
  8312   ac_status=$?
  8313   grep -v '^ *+' conftest.er1 >conftest.err
  8314   rm -f conftest.er1
  8315   cat conftest.err >&5
  8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8317   (exit $ac_status); } && {
  8318 	 test -z "$ac_c_werror_flag" ||
  8319 	 test ! -s conftest.err
  8320        } && test -s conftest.$ac_objext; then
  8321   ac_lo=$ac_mid; break
  8322 else
  8323   echo "$as_me: failed program was:" >&5
  8324 sed 's/^/| /' conftest.$ac_ext >&5
  8326 	ac_hi=`expr '(' $ac_mid ')' - 1`
  8327 			if test $ac_mid -le $ac_hi; then
  8328 			  ac_lo= ac_hi=
  8329 			  break
  8330 			fi
  8331 			ac_mid=`expr 2 '*' $ac_mid`
  8332 fi
  8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8335   done
  8336 else
  8337   echo "$as_me: failed program was:" >&5
  8338 sed 's/^/| /' conftest.$ac_ext >&5
  8340 	ac_lo= ac_hi=
  8341 fi
  8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8344 fi
  8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8347 # Binary search between lo and hi bounds.
  8348 while test "x$ac_lo" != "x$ac_hi"; do
  8349   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8350   cat >conftest.$ac_ext <<_ACEOF
  8351 /* confdefs.h.  */
  8352 _ACEOF
  8353 cat confdefs.h >>conftest.$ac_ext
  8354 cat >>conftest.$ac_ext <<_ACEOF
  8355 /* end confdefs.h.  */
  8356 $ac_includes_default
  8357    typedef void * ac__type_sizeof_;
  8358 int
  8359 main ()
  8361 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8362 test_array [0] = 0
  8365   return 0;
  8367 _ACEOF
  8368 rm -f conftest.$ac_objext
  8369 if { (ac_try="$ac_compile"
  8370 case "(($ac_try" in
  8371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8372   *) ac_try_echo=$ac_try;;
  8373 esac
  8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8375   (eval "$ac_compile") 2>conftest.er1
  8376   ac_status=$?
  8377   grep -v '^ *+' conftest.er1 >conftest.err
  8378   rm -f conftest.er1
  8379   cat conftest.err >&5
  8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8381   (exit $ac_status); } && {
  8382 	 test -z "$ac_c_werror_flag" ||
  8383 	 test ! -s conftest.err
  8384        } && test -s conftest.$ac_objext; then
  8385   ac_hi=$ac_mid
  8386 else
  8387   echo "$as_me: failed program was:" >&5
  8388 sed 's/^/| /' conftest.$ac_ext >&5
  8390 	ac_lo=`expr '(' $ac_mid ')' + 1`
  8391 fi
  8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8394 done
  8395 case $ac_lo in
  8396 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  8397 '') if test "$ac_cv_type_void_p" = yes; then
  8398      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  8399 See \`config.log' for more details." >&5
  8400 echo "$as_me: error: cannot compute sizeof (void *)
  8401 See \`config.log' for more details." >&2;}
  8402    { (exit 77); exit 77; }; }
  8403    else
  8404      ac_cv_sizeof_void_p=0
  8405    fi ;;
  8406 esac
  8407 else
  8408   cat >conftest.$ac_ext <<_ACEOF
  8409 /* confdefs.h.  */
  8410 _ACEOF
  8411 cat confdefs.h >>conftest.$ac_ext
  8412 cat >>conftest.$ac_ext <<_ACEOF
  8413 /* end confdefs.h.  */
  8414 $ac_includes_default
  8415    typedef void * ac__type_sizeof_;
  8416 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8417 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8418 #include <stdio.h>
  8419 #include <stdlib.h>
  8420 int
  8421 main ()
  8424   FILE *f = fopen ("conftest.val", "w");
  8425   if (! f)
  8426     return 1;
  8427   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  8429       long int i = longval ();
  8430       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8431 	return 1;
  8432       fprintf (f, "%ld\n", i);
  8434   else
  8436       unsigned long int i = ulongval ();
  8437       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8438 	return 1;
  8439       fprintf (f, "%lu\n", i);
  8441   return ferror (f) || fclose (f) != 0;
  8444   return 0;
  8446 _ACEOF
  8447 rm -f conftest$ac_exeext
  8448 if { (ac_try="$ac_link"
  8449 case "(($ac_try" in
  8450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8451   *) ac_try_echo=$ac_try;;
  8452 esac
  8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8454   (eval "$ac_link") 2>&5
  8455   ac_status=$?
  8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8458   { (case "(($ac_try" in
  8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8460   *) ac_try_echo=$ac_try;;
  8461 esac
  8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8463   (eval "$ac_try") 2>&5
  8464   ac_status=$?
  8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8466   (exit $ac_status); }; }; then
  8467   ac_cv_sizeof_void_p=`cat conftest.val`
  8468 else
  8469   echo "$as_me: program exited with status $ac_status" >&5
  8470 echo "$as_me: failed program was:" >&5
  8471 sed 's/^/| /' conftest.$ac_ext >&5
  8473 ( exit $ac_status )
  8474 if test "$ac_cv_type_void_p" = yes; then
  8475      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  8476 See \`config.log' for more details." >&5
  8477 echo "$as_me: error: cannot compute sizeof (void *)
  8478 See \`config.log' for more details." >&2;}
  8479    { (exit 77); exit 77; }; }
  8480    else
  8481      ac_cv_sizeof_void_p=0
  8482    fi
  8483 fi
  8484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8485 fi
  8486 rm -f conftest.val
  8487 fi
  8488 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  8489 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
  8493 cat >>confdefs.h <<_ACEOF
  8494 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  8495 _ACEOF
  8498 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  8499 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  8500 if test "${ac_cv_header_stdc+set}" = set; then
  8501   echo $ECHO_N "(cached) $ECHO_C" >&6
  8502 else
  8503   cat >conftest.$ac_ext <<_ACEOF
  8504 /* confdefs.h.  */
  8505 _ACEOF
  8506 cat confdefs.h >>conftest.$ac_ext
  8507 cat >>conftest.$ac_ext <<_ACEOF
  8508 /* end confdefs.h.  */
  8509 #include <stdlib.h>
  8510 #include <stdarg.h>
  8511 #include <string.h>
  8512 #include <float.h>
  8514 int
  8515 main ()
  8519   return 0;
  8521 _ACEOF
  8522 rm -f conftest.$ac_objext
  8523 if { (ac_try="$ac_compile"
  8524 case "(($ac_try" in
  8525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8526   *) ac_try_echo=$ac_try;;
  8527 esac
  8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8529   (eval "$ac_compile") 2>conftest.er1
  8530   ac_status=$?
  8531   grep -v '^ *+' conftest.er1 >conftest.err
  8532   rm -f conftest.er1
  8533   cat conftest.err >&5
  8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8535   (exit $ac_status); } && {
  8536 	 test -z "$ac_c_werror_flag" ||
  8537 	 test ! -s conftest.err
  8538        } && test -s conftest.$ac_objext; then
  8539   ac_cv_header_stdc=yes
  8540 else
  8541   echo "$as_me: failed program was:" >&5
  8542 sed 's/^/| /' conftest.$ac_ext >&5
  8544 	ac_cv_header_stdc=no
  8545 fi
  8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8549 if test $ac_cv_header_stdc = yes; then
  8550   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8551   cat >conftest.$ac_ext <<_ACEOF
  8552 /* confdefs.h.  */
  8553 _ACEOF
  8554 cat confdefs.h >>conftest.$ac_ext
  8555 cat >>conftest.$ac_ext <<_ACEOF
  8556 /* end confdefs.h.  */
  8557 #include <string.h>
  8559 _ACEOF
  8560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8561   $EGREP "memchr" >/dev/null 2>&1; then
  8563 else
  8564   ac_cv_header_stdc=no
  8565 fi
  8566 rm -f conftest*
  8568 fi
  8570 if test $ac_cv_header_stdc = yes; then
  8571   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8572   cat >conftest.$ac_ext <<_ACEOF
  8573 /* confdefs.h.  */
  8574 _ACEOF
  8575 cat confdefs.h >>conftest.$ac_ext
  8576 cat >>conftest.$ac_ext <<_ACEOF
  8577 /* end confdefs.h.  */
  8578 #include <stdlib.h>
  8580 _ACEOF
  8581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8582   $EGREP "free" >/dev/null 2>&1; then
  8584 else
  8585   ac_cv_header_stdc=no
  8586 fi
  8587 rm -f conftest*
  8589 fi
  8591 if test $ac_cv_header_stdc = yes; then
  8592   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8593   if test "$cross_compiling" = yes; then
  8595 else
  8596   cat >conftest.$ac_ext <<_ACEOF
  8597 /* confdefs.h.  */
  8598 _ACEOF
  8599 cat confdefs.h >>conftest.$ac_ext
  8600 cat >>conftest.$ac_ext <<_ACEOF
  8601 /* end confdefs.h.  */
  8602 #include <ctype.h>
  8603 #include <stdlib.h>
  8604 #if ((' ' & 0x0FF) == 0x020)
  8605 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8606 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8607 #else
  8608 # define ISLOWER(c) \
  8609 		   (('a' <= (c) && (c) <= 'i') \
  8610 		     || ('j' <= (c) && (c) <= 'r') \
  8611 		     || ('s' <= (c) && (c) <= 'z'))
  8612 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8613 #endif
  8615 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8616 int
  8617 main ()
  8619   int i;
  8620   for (i = 0; i < 256; i++)
  8621     if (XOR (islower (i), ISLOWER (i))
  8622 	|| toupper (i) != TOUPPER (i))
  8623       return 2;
  8624   return 0;
  8626 _ACEOF
  8627 rm -f conftest$ac_exeext
  8628 if { (ac_try="$ac_link"
  8629 case "(($ac_try" in
  8630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8631   *) ac_try_echo=$ac_try;;
  8632 esac
  8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8634   (eval "$ac_link") 2>&5
  8635   ac_status=$?
  8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8638   { (case "(($ac_try" in
  8639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8640   *) ac_try_echo=$ac_try;;
  8641 esac
  8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8643   (eval "$ac_try") 2>&5
  8644   ac_status=$?
  8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8646   (exit $ac_status); }; }; then
  8648 else
  8649   echo "$as_me: program exited with status $ac_status" >&5
  8650 echo "$as_me: failed program was:" >&5
  8651 sed 's/^/| /' conftest.$ac_ext >&5
  8653 ( exit $ac_status )
  8654 ac_cv_header_stdc=no
  8655 fi
  8656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8657 fi
  8660 fi
  8661 fi
  8662 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8663 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  8664 if test $ac_cv_header_stdc = yes; then
  8666 cat >>confdefs.h <<\_ACEOF
  8667 #define STDC_HEADERS 1
  8668 _ACEOF
  8670 fi
  8674 depcc="$OBJC" am_compiler_list='gcc3 gcc'
  8676 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  8677 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  8678 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
  8679   echo $ECHO_N "(cached) $ECHO_C" >&6
  8680 else
  8681   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8682   # We make a subdir and do the tests there.  Otherwise we can end up
  8683   # making bogus files that we don't know about and never remove.  For
  8684   # instance it was reported that on HP-UX the gcc test will end up
  8685   # making a dummy file named `D' -- because `-MD' means `put the output
  8686   # in D'.
  8687   mkdir conftest.dir
  8688   # Copy depcomp to subdir because otherwise we won't find it if we're
  8689   # using a relative directory.
  8690   cp "$am_depcomp" conftest.dir
  8691   cd conftest.dir
  8692   # We will build objects and dependencies in a subdirectory because
  8693   # it helps to detect inapplicable dependency modes.  For instance
  8694   # both Tru64's cc and ICC support -MD to output dependencies as a
  8695   # side effect of compilation, but ICC will put the dependencies in
  8696   # the current directory while Tru64 will put them in the object
  8697   # directory.
  8698   mkdir sub
  8700   am_cv_OBJC_dependencies_compiler_type=none
  8701   if test "$am_compiler_list" = ""; then
  8702      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  8703   fi
  8704   for depmode in $am_compiler_list; do
  8705     # Setup a source with many dependencies, because some compilers
  8706     # like to wrap large dependency lists on column 80 (with \), and
  8707     # we should not choose a depcomp mode which is confused by this.
  8709     # We need to recreate these files for each test, as the compiler may
  8710     # overwrite some of them when testing with obscure command lines.
  8711     # This happens at least with the AIX C compiler.
  8712     : > sub/conftest.c
  8713     for i in 1 2 3 4 5 6; do
  8714       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8715       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8716       # Solaris 8's {/usr,}/bin/sh.
  8717       touch sub/conftst$i.h
  8718     done
  8719     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8721     case $depmode in
  8722     nosideeffect)
  8723       # after this tag, mechanisms are not by side-effect, so they'll
  8724       # only be used when explicitly requested
  8725       if test "x$enable_dependency_tracking" = xyes; then
  8726 	continue
  8727       else
  8728 	break
  8729       fi
  8730       ;;
  8731     none) break ;;
  8732     esac
  8733     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8734     # mode.  It turns out that the SunPro C++ compiler does not properly
  8735     # handle `-M -o', and we need to detect this.
  8736     if depmode=$depmode \
  8737        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  8738        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8739        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  8740          >/dev/null 2>conftest.err &&
  8741        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8742        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  8743        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8744       # icc doesn't choke on unknown options, it will just issue warnings
  8745       # or remarks (even with -Werror).  So we grep stderr for any message
  8746       # that says an option was ignored or not supported.
  8747       # When given -MP, icc 7.0 and 7.1 complain thusly:
  8748       #   icc: Command line warning: ignoring option '-M'; no argument required
  8749       # The diagnosis changed in icc 8.0:
  8750       #   icc: Command line remark: option '-MP' not supported
  8751       if (grep 'ignoring option' conftest.err ||
  8752           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8753         am_cv_OBJC_dependencies_compiler_type=$depmode
  8754         break
  8755       fi
  8756     fi
  8757   done
  8759   cd ..
  8760   rm -rf conftest.dir
  8761 else
  8762   am_cv_OBJC_dependencies_compiler_type=none
  8763 fi
  8765 fi
  8766 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
  8767 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
  8768 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
  8772 if
  8773   test "x$enable_dependency_tracking" != xno \
  8774   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  8775   am__fastdepOBJC_TRUE=
  8776   am__fastdepOBJC_FALSE='#'
  8777 else
  8778   am__fastdepOBJC_TRUE='#'
  8779   am__fastdepOBJC_FALSE=
  8780 fi
  8784 # Extract the first word of "pod2man", so it can be a program name with args.
  8785 set dummy pod2man; ac_word=$2
  8786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8788 if test "${ac_cv_path_POD2MAN+set}" = set; then
  8789   echo $ECHO_N "(cached) $ECHO_C" >&6
  8790 else
  8791   case $POD2MAN in
  8792   [\\/]* | ?:[\\/]*)
  8793   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  8794   ;;
  8795   *)
  8796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8797 for as_dir in $PATH
  8798 do
  8799   IFS=$as_save_IFS
  8800   test -z "$as_dir" && as_dir=.
  8801   for ac_exec_ext in '' $ac_executable_extensions; do
  8802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8803     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  8804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8805     break 2
  8806   fi
  8807 done
  8808 done
  8809 IFS=$as_save_IFS
  8811   ;;
  8812 esac
  8813 fi
  8814 POD2MAN=$ac_cv_path_POD2MAN
  8815 if test -n "$POD2MAN"; then
  8816   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
  8817 echo "${ECHO_T}$POD2MAN" >&6; }
  8818 else
  8819   { echo "$as_me:$LINENO: result: no" >&5
  8820 echo "${ECHO_T}no" >&6; }
  8821 fi
  8824 # Extract the first word of "pod2html", so it can be a program name with args.
  8825 set dummy pod2html; ac_word=$2
  8826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8828 if test "${ac_cv_path_POD2HTML+set}" = set; then
  8829   echo $ECHO_N "(cached) $ECHO_C" >&6
  8830 else
  8831   case $POD2HTML in
  8832   [\\/]* | ?:[\\/]*)
  8833   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  8834   ;;
  8835   *)
  8836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8837 for as_dir in $PATH
  8838 do
  8839   IFS=$as_save_IFS
  8840   test -z "$as_dir" && as_dir=.
  8841   for ac_exec_ext in '' $ac_executable_extensions; do
  8842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8843     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  8844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8845     break 2
  8846   fi
  8847 done
  8848 done
  8849 IFS=$as_save_IFS
  8851   ;;
  8852 esac
  8853 fi
  8854 POD2HTML=$ac_cv_path_POD2HTML
  8855 if test -n "$POD2HTML"; then
  8856   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
  8857 echo "${ECHO_T}$POD2HTML" >&6; }
  8858 else
  8859   { echo "$as_me:$LINENO: result: no" >&5
  8860 echo "${ECHO_T}no" >&6; }
  8861 fi
  8866 cat >>confdefs.h <<_ACEOF
  8867 #define BUILD_SED_PROG "${SED}"
  8868 _ACEOF
  8871 cat >>confdefs.h <<_ACEOF
  8872 #define BUILD_CPP_PROG "${CPP}"
  8873 _ACEOF
  8877 # Check whether --enable-strict-warn was given.
  8878 if test "${enable_strict_warn+set}" = set; then
  8879   enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
  8880       enable_strictwarn=yes
  8881     fi
  8882 fi
  8884 # Check whether --enable-translator was given.
  8885 if test "${enable_translator+set}" = set; then
  8886   enableval=$enable_translator; true
  8887 else
  8888   enable_translator=yes
  8889 fi
  8891 # Check whether --enable-optimized was given.
  8892 if test "${enable_optimized+set}" = set; then
  8893   enableval=$enable_optimized; true
  8894 else
  8895   enable_optimized=yes
  8896 fi
  8898 # Check whether --enable-shared was given.
  8899 if test "${enable_shared+set}" = set; then
  8900   enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
  8901 else
  8902   enable_shared=cond
  8903 fi
  8905 # Check whether --enable-profiled was given.
  8906 if test "${enable_profiled+set}" = set; then
  8907   enableval=$enable_profiled; if test "$enableval" == "yes"; then
  8908       enable_profiled=yes;
  8909     fi
  8910 fi
  8912 # Check whether --enable-trace was given.
  8913 if test "${enable_trace+set}" = set; then
  8914   enableval=$enable_trace; if test "$enableval" == "yes"; then
  8916 cat >>confdefs.h <<\_ACEOF
  8917 #define ENABLE_TRACE_IO 1
  8918 _ACEOF
  8920     fi
  8921 fi
  8923 # Check whether --enable-watch was given.
  8924 if test "${enable_watch+set}" = set; then
  8925   enableval=$enable_watch; if test "$enableval" == "yes"; then
  8927 cat >>confdefs.h <<\_ACEOF
  8928 #define ENABLE_WATCH 1
  8929 _ACEOF
  8931    fi
  8932 fi
  8934 # Check whether --enable-sh4stats was given.
  8935 if test "${enable_sh4stats+set}" = set; then
  8936   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  8938 cat >>confdefs.h <<\_ACEOF
  8939 #define ENABLE_SH4STATS 1
  8940 _ACEOF
  8942     fi
  8943 fi
  8946 # Check whether --with-osmesa was given.
  8947 if test "${with_osmesa+set}" = set; then
  8948   withval=$with_osmesa;
  8949 else
  8950   with_osmesa=no
  8951 fi
  8954 # Check whether --with-gtk was given.
  8955 if test "${with_gtk+set}" = set; then
  8956   withval=$with_gtk; with_gtk=yes
  8957 else
  8958   with_gtk=x11
  8959 fi
  8962 # Check whether --with-esd was given.
  8963 if test "${with_esd+set}" = set; then
  8964   withval=$with_esd;
  8965 fi
  8968 # Check whether --with-pulse was given.
  8969 if test "${with_pulse+set}" = set; then
  8970   withval=$with_pulse;
  8971 fi
  8974 # Check whether --with-sdl was given.
  8975 if test "${with_sdl+set}" = set; then
  8976   withval=$with_sdl;
  8977 fi
  8981 if test "$ANDROID_BUILD" = "yes"; then
  8982    with_gtk=no;
  8983    EXTRA_OUTPUT_FILES="src/android/build.properties"
  8984    LIBS="-lEGL -lGLESv2 $LIBS"
  8986 cat >>confdefs.h <<\_ACEOF
  8987 #define HAVE_GLES2 1
  8988 _ACEOF
  8990    UI_DRIVER="Android"
  8991    with_sdl=no
  8992 else
  8995 ac_ext=m
  8996 ac_cpp='$OBJCPP $CPPFLAGS'
  8997 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8998 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8999 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9000 if test -n "$ac_tool_prefix"; then
  9001   for ac_prog in gcc objcc objc cc CC
  9002   do
  9003     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9007 if test "${ac_cv_prog_OBJC+set}" = set; then
  9008   echo $ECHO_N "(cached) $ECHO_C" >&6
  9009 else
  9010   if test -n "$OBJC"; then
  9011   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  9012 else
  9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9014 for as_dir in $PATH
  9015 do
  9016   IFS=$as_save_IFS
  9017   test -z "$as_dir" && as_dir=.
  9018   for ac_exec_ext in '' $ac_executable_extensions; do
  9019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9020     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  9021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9022     break 2
  9023   fi
  9024 done
  9025 done
  9026 IFS=$as_save_IFS
  9028 fi
  9029 fi
  9030 OBJC=$ac_cv_prog_OBJC
  9031 if test -n "$OBJC"; then
  9032   { echo "$as_me:$LINENO: result: $OBJC" >&5
  9033 echo "${ECHO_T}$OBJC" >&6; }
  9034 else
  9035   { echo "$as_me:$LINENO: result: no" >&5
  9036 echo "${ECHO_T}no" >&6; }
  9037 fi
  9040     test -n "$OBJC" && break
  9041   done
  9042 fi
  9043 if test -z "$OBJC"; then
  9044   ac_ct_OBJC=$OBJC
  9045   for ac_prog in gcc objcc objc cc CC
  9046 do
  9047   # Extract the first word of "$ac_prog", so it can be a program name with args.
  9048 set dummy $ac_prog; ac_word=$2
  9049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9051 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  9052   echo $ECHO_N "(cached) $ECHO_C" >&6
  9053 else
  9054   if test -n "$ac_ct_OBJC"; then
  9055   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  9056 else
  9057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9058 for as_dir in $PATH
  9059 do
  9060   IFS=$as_save_IFS
  9061   test -z "$as_dir" && as_dir=.
  9062   for ac_exec_ext in '' $ac_executable_extensions; do
  9063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9064     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  9065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9066     break 2
  9067   fi
  9068 done
  9069 done
  9070 IFS=$as_save_IFS
  9072 fi
  9073 fi
  9074 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  9075 if test -n "$ac_ct_OBJC"; then
  9076   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  9077 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  9078 else
  9079   { echo "$as_me:$LINENO: result: no" >&5
  9080 echo "${ECHO_T}no" >&6; }
  9081 fi
  9084   test -n "$ac_ct_OBJC" && break
  9085 done
  9087   if test "x$ac_ct_OBJC" = x; then
  9088     OBJC="gcc"
  9089   else
  9090     case $cross_compiling:$ac_tool_warned in
  9091 yes:)
  9092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  9093 whose name does not start with the host triplet.  If you think this
  9094 configuration is useful to you, please write to autoconf@gnu.org." >&5
  9095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  9096 whose name does not start with the host triplet.  If you think this
  9097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  9098 ac_tool_warned=yes ;;
  9099 esac
  9100     OBJC=$ac_ct_OBJC
  9101   fi
  9102 fi
  9104 # Provide some information about the compiler.
  9105 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  9106 ac_compiler=`set X $ac_compile; echo $2`
  9107 { (ac_try="$ac_compiler --version >&5"
  9108 case "(($ac_try" in
  9109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9110   *) ac_try_echo=$ac_try;;
  9111 esac
  9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9113   (eval "$ac_compiler --version >&5") 2>&5
  9114   ac_status=$?
  9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9116   (exit $ac_status); }
  9117 { (ac_try="$ac_compiler -v >&5"
  9118 case "(($ac_try" in
  9119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9120   *) ac_try_echo=$ac_try;;
  9121 esac
  9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9123   (eval "$ac_compiler -v >&5") 2>&5
  9124   ac_status=$?
  9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9126   (exit $ac_status); }
  9127 { (ac_try="$ac_compiler -V >&5"
  9128 case "(($ac_try" in
  9129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9130   *) ac_try_echo=$ac_try;;
  9131 esac
  9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9133   (eval "$ac_compiler -V >&5") 2>&5
  9134   ac_status=$?
  9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9136   (exit $ac_status); }
  9138 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  9139 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  9140 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  9141   echo $ECHO_N "(cached) $ECHO_C" >&6
  9142 else
  9143   cat >conftest.$ac_ext <<_ACEOF
  9144 /* confdefs.h.  */
  9145 _ACEOF
  9146 cat confdefs.h >>conftest.$ac_ext
  9147 cat >>conftest.$ac_ext <<_ACEOF
  9148 /* end confdefs.h.  */
  9150 int
  9151 main ()
  9153 #ifndef __GNUC__
  9154        choke me
  9155 #endif
  9158   return 0;
  9160 _ACEOF
  9161 rm -f conftest.$ac_objext
  9162 if { (ac_try="$ac_compile"
  9163 case "(($ac_try" in
  9164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9165   *) ac_try_echo=$ac_try;;
  9166 esac
  9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9168   (eval "$ac_compile") 2>conftest.er1
  9169   ac_status=$?
  9170   grep -v '^ *+' conftest.er1 >conftest.err
  9171   rm -f conftest.er1
  9172   cat conftest.err >&5
  9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9174   (exit $ac_status); } && {
  9175 	 test -z "$ac_objc_werror_flag" ||
  9176 	 test ! -s conftest.err
  9177        } && test -s conftest.$ac_objext; then
  9178   ac_compiler_gnu=yes
  9179 else
  9180   echo "$as_me: failed program was:" >&5
  9181 sed 's/^/| /' conftest.$ac_ext >&5
  9183 	ac_compiler_gnu=no
  9184 fi
  9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9187 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  9189 fi
  9190 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  9191 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  9192 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  9193 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  9194 ac_save_OBJCFLAGS=$OBJCFLAGS
  9195 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  9196 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  9197 if test "${ac_cv_prog_objc_g+set}" = set; then
  9198   echo $ECHO_N "(cached) $ECHO_C" >&6
  9199 else
  9200   ac_save_objc_werror_flag=$ac_objc_werror_flag
  9201    ac_objc_werror_flag=yes
  9202    ac_cv_prog_objc_g=no
  9203    OBJCFLAGS="-g"
  9204    cat >conftest.$ac_ext <<_ACEOF
  9205 /* confdefs.h.  */
  9206 _ACEOF
  9207 cat confdefs.h >>conftest.$ac_ext
  9208 cat >>conftest.$ac_ext <<_ACEOF
  9209 /* end confdefs.h.  */
  9211 int
  9212 main ()
  9216   return 0;
  9218 _ACEOF
  9219 rm -f conftest.$ac_objext
  9220 if { (ac_try="$ac_compile"
  9221 case "(($ac_try" in
  9222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9223   *) ac_try_echo=$ac_try;;
  9224 esac
  9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9226   (eval "$ac_compile") 2>conftest.er1
  9227   ac_status=$?
  9228   grep -v '^ *+' conftest.er1 >conftest.err
  9229   rm -f conftest.er1
  9230   cat conftest.err >&5
  9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9232   (exit $ac_status); } && {
  9233 	 test -z "$ac_objc_werror_flag" ||
  9234 	 test ! -s conftest.err
  9235        } && test -s conftest.$ac_objext; then
  9236   ac_cv_prog_objc_g=yes
  9237 else
  9238   echo "$as_me: failed program was:" >&5
  9239 sed 's/^/| /' conftest.$ac_ext >&5
  9241 	OBJCFLAGS=""
  9242       cat >conftest.$ac_ext <<_ACEOF
  9243 /* confdefs.h.  */
  9244 _ACEOF
  9245 cat confdefs.h >>conftest.$ac_ext
  9246 cat >>conftest.$ac_ext <<_ACEOF
  9247 /* end confdefs.h.  */
  9249 int
  9250 main ()
  9254   return 0;
  9256 _ACEOF
  9257 rm -f conftest.$ac_objext
  9258 if { (ac_try="$ac_compile"
  9259 case "(($ac_try" in
  9260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9261   *) ac_try_echo=$ac_try;;
  9262 esac
  9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9264   (eval "$ac_compile") 2>conftest.er1
  9265   ac_status=$?
  9266   grep -v '^ *+' conftest.er1 >conftest.err
  9267   rm -f conftest.er1
  9268   cat conftest.err >&5
  9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9270   (exit $ac_status); } && {
  9271 	 test -z "$ac_objc_werror_flag" ||
  9272 	 test ! -s conftest.err
  9273        } && test -s conftest.$ac_objext; then
  9275 else
  9276   echo "$as_me: failed program was:" >&5
  9277 sed 's/^/| /' conftest.$ac_ext >&5
  9279 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  9280 	 OBJCFLAGS="-g"
  9281 	 cat >conftest.$ac_ext <<_ACEOF
  9282 /* confdefs.h.  */
  9283 _ACEOF
  9284 cat confdefs.h >>conftest.$ac_ext
  9285 cat >>conftest.$ac_ext <<_ACEOF
  9286 /* end confdefs.h.  */
  9288 int
  9289 main ()
  9293   return 0;
  9295 _ACEOF
  9296 rm -f conftest.$ac_objext
  9297 if { (ac_try="$ac_compile"
  9298 case "(($ac_try" in
  9299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9300   *) ac_try_echo=$ac_try;;
  9301 esac
  9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9303   (eval "$ac_compile") 2>conftest.er1
  9304   ac_status=$?
  9305   grep -v '^ *+' conftest.er1 >conftest.err
  9306   rm -f conftest.er1
  9307   cat conftest.err >&5
  9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9309   (exit $ac_status); } && {
  9310 	 test -z "$ac_objc_werror_flag" ||
  9311 	 test ! -s conftest.err
  9312        } && test -s conftest.$ac_objext; then
  9313   ac_cv_prog_objc_g=yes
  9314 else
  9315   echo "$as_me: failed program was:" >&5
  9316 sed 's/^/| /' conftest.$ac_ext >&5
  9319 fi
  9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9322 fi
  9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9325 fi
  9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9328    ac_objc_werror_flag=$ac_save_objc_werror_flag
  9329 fi
  9330 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  9331 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  9332 if test "$ac_test_OBJCFLAGS" = set; then
  9333   OBJCFLAGS=$ac_save_OBJCFLAGS
  9334 elif test $ac_cv_prog_objc_g = yes; then
  9335   if test "$GOBJC" = yes; then
  9336     OBJCFLAGS="-g -O2"
  9337   else
  9338     OBJCFLAGS="-g"
  9339   fi
  9340 else
  9341   if test "$GOBJC" = yes; then
  9342     OBJCFLAGS="-O2"
  9343   else
  9344     OBJCFLAGS=
  9345   fi
  9346 fi
  9347 ac_ext=c
  9348 ac_cpp='$CPP $CPPFLAGS'
  9349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9353 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
  9354 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
  9355 ac_ext=m
  9356 ac_cpp='$OBJCPP $CPPFLAGS'
  9357 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9358 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9359 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9360 cat >conftest.$ac_ext <<_ACEOF
  9361 /* confdefs.h.  */
  9362 _ACEOF
  9363 cat confdefs.h >>conftest.$ac_ext
  9364 cat >>conftest.$ac_ext <<_ACEOF
  9365 /* end confdefs.h.  */
  9366 @interface Foo @end
  9367 int
  9368 main ()
  9372   return 0;
  9374 _ACEOF
  9375 rm -f conftest.$ac_objext
  9376 if { (ac_try="$ac_compile"
  9377 case "(($ac_try" in
  9378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9379   *) ac_try_echo=$ac_try;;
  9380 esac
  9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9382   (eval "$ac_compile") 2>conftest.er1
  9383   ac_status=$?
  9384   grep -v '^ *+' conftest.er1 >conftest.err
  9385   rm -f conftest.er1
  9386   cat conftest.err >&5
  9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9388   (exit $ac_status); } && {
  9389 	 test -z "$ac_objc_werror_flag" ||
  9390 	 test ! -s conftest.err
  9391        } && test -s conftest.$ac_objext; then
  9392   { echo "$as_me:$LINENO: result: yes" >&5
  9393 echo "${ECHO_T}yes" >&6; }
  9395    { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  9396 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
  9397 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  9398   echo $ECHO_N "(cached) $ECHO_C" >&6
  9399 else
  9400   cat >conftest.$ac_ext <<_ACEOF
  9401 /* confdefs.h.  */
  9402 _ACEOF
  9403 cat confdefs.h >>conftest.$ac_ext
  9404 cat >>conftest.$ac_ext <<_ACEOF
  9405 /* end confdefs.h.  */
  9406 $ac_includes_default
  9408 #include <Cocoa/Cocoa.h>
  9409 _ACEOF
  9410 rm -f conftest.$ac_objext
  9411 if { (ac_try="$ac_compile"
  9412 case "(($ac_try" in
  9413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9414   *) ac_try_echo=$ac_try;;
  9415 esac
  9416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9417   (eval "$ac_compile") 2>conftest.er1
  9418   ac_status=$?
  9419   grep -v '^ *+' conftest.er1 >conftest.err
  9420   rm -f conftest.er1
  9421   cat conftest.err >&5
  9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9423   (exit $ac_status); } && {
  9424 	 test -z "$ac_objc_werror_flag" ||
  9425 	 test ! -s conftest.err
  9426        } && test -s conftest.$ac_objext; then
  9427   ac_cv_header_Cocoa_Cocoa_h=yes
  9428 else
  9429   echo "$as_me: failed program was:" >&5
  9430 sed 's/^/| /' conftest.$ac_ext >&5
  9432 	ac_cv_header_Cocoa_Cocoa_h=no
  9433 fi
  9435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9436 fi
  9437 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  9438 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  9439 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  9441       HAVE_COCOA='yes'
  9442       APPLE_BUILD='yes'
  9443       LIBS="$LIBS -framework AppKit -framework Carbon"
  9444       LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
  9445       LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
  9446       LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
  9448 cat >>confdefs.h <<\_ACEOF
  9449 #define HAVE_COCOA 1
  9450 _ACEOF
  9453 cat >>confdefs.h <<\_ACEOF
  9454 #define APPLE_BUILD 1
  9455 _ACEOF
  9457       UI_DRIVER="Cocoa"
  9458       if test "x$with_gtk" = "xx11"; then
  9459         with_gtk=no
  9460       fi
  9462 fi
  9467 { echo "$as_me:$LINENO: checking OBJC version" >&5
  9468 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
  9469 if test -n "$OBJC"; then
  9470   _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
  9471   if test -n "$_GOBJC_VERSION"; then
  9472     { echo "$as_me:$LINENO: result: GCC" >&5
  9473 echo "${ECHO_T}GCC" >&6; }
  9474       OBJCOPT="-O2"
  9475                      OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
  9476   else
  9477     { echo "$as_me:$LINENO: result: Unknown" >&5
  9478 echo "${ECHO_T}Unknown" >&6; }
  9479       OBJCOPT="-O2"
  9480   fi
  9481 else
  9482   { echo "$as_me:$LINENO: result: None" >&5
  9483 echo "${ECHO_T}None" >&6; }
  9485 fi
  9488 ac_ext=m
  9489 ac_cpp='$OBJCPP $CPPFLAGS'
  9490 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9491 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9492 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9494 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
  9495 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
  9496 save_OBJCFLAGS="$OBJCFLAGS"
  9497 OBJCFLAGS="-msse2 $OBJCFLAGS"
  9498 cat >conftest.$ac_ext <<_ACEOF
  9500   /* confdefs.h.  */
  9501 _ACEOF
  9502 cat confdefs.h >>conftest.$ac_ext
  9503 cat >>conftest.$ac_ext <<_ACEOF
  9504 /* end confdefs.h.  */
  9505 int main() { return 0; }
  9506 _ACEOF
  9507 rm -f conftest.$ac_objext
  9508 if { (ac_try="$ac_compile"
  9509 case "(($ac_try" in
  9510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9511   *) ac_try_echo=$ac_try;;
  9512 esac
  9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9514   (eval "$ac_compile") 2>conftest.er1
  9515   ac_status=$?
  9516   grep -v '^ *+' conftest.er1 >conftest.err
  9517   rm -f conftest.er1
  9518   cat conftest.err >&5
  9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9520   (exit $ac_status); } && {
  9521 	 test -z "$ac_objc_werror_flag" ||
  9522 	 test ! -s conftest.err
  9523        } && test -s conftest.$ac_objext; then
  9525    { echo "$as_me:$LINENO: result: yes" >&5
  9526 echo "${ECHO_T}yes" >&6; }
  9528 else
  9529   echo "$as_me: failed program was:" >&5
  9530 sed 's/^/| /' conftest.$ac_ext >&5
  9533    OBJCFLAGS="$save_OBJCFLAGS"
  9534    { echo "$as_me:$LINENO: result: no" >&5
  9535 echo "${ECHO_T}no" >&6; }
  9537 fi
  9539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9540 ac_ext=m
  9541 ac_cpp='$OBJCPP $CPPFLAGS'
  9542 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9543 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9544 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9548 ac_ext=m
  9549 ac_cpp='$OBJCPP $CPPFLAGS'
  9550 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9551 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9552 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9554 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
  9555 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
  9556 save_OBJCFLAGS="$OBJCFLAGS"
  9557 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
  9558 cat >conftest.$ac_ext <<_ACEOF
  9560   /* confdefs.h.  */
  9561 _ACEOF
  9562 cat confdefs.h >>conftest.$ac_ext
  9563 cat >>conftest.$ac_ext <<_ACEOF
  9564 /* end confdefs.h.  */
  9565 int main() { return 0; }
  9566 _ACEOF
  9567 rm -f conftest.$ac_objext
  9568 if { (ac_try="$ac_compile"
  9569 case "(($ac_try" in
  9570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9571   *) ac_try_echo=$ac_try;;
  9572 esac
  9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9574   (eval "$ac_compile") 2>conftest.er1
  9575   ac_status=$?
  9576   grep -v '^ *+' conftest.er1 >conftest.err
  9577   rm -f conftest.er1
  9578   cat conftest.err >&5
  9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9580   (exit $ac_status); } && {
  9581 	 test -z "$ac_objc_werror_flag" ||
  9582 	 test ! -s conftest.err
  9583        } && test -s conftest.$ac_objext; then
  9585    { echo "$as_me:$LINENO: result: yes" >&5
  9586 echo "${ECHO_T}yes" >&6; }
  9588 else
  9589   echo "$as_me: failed program was:" >&5
  9590 sed 's/^/| /' conftest.$ac_ext >&5
  9593    OBJCFLAGS="$save_OBJCFLAGS"
  9594    { echo "$as_me:$LINENO: result: no" >&5
  9595 echo "${ECHO_T}no" >&6; }
  9597 fi
  9599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9600 ac_ext=m
  9601 ac_cpp='$OBJCPP $CPPFLAGS'
  9602 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9603 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9604 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9608 else
  9609   echo "$as_me: failed program was:" >&5
  9610 sed 's/^/| /' conftest.$ac_ext >&5
  9612 	{ echo "$as_me:$LINENO: result: No" >&5
  9613 echo "${ECHO_T}No" >&6; }
  9615 fi
  9617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
  9618 ac_ext=c
  9619 ac_cpp='$CPP $CPPFLAGS'
  9620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9625 fi
  9629 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  9630   GUI_COCOA_TRUE=
  9631   GUI_COCOA_FALSE='#'
  9632 else
  9633   GUI_COCOA_TRUE='#'
  9634   GUI_COCOA_FALSE=
  9635 fi
  9637 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
  9639 cat >>confdefs.h <<\_ACEOF
  9640 #define OSX_BUNDLE 1
  9641 _ACEOF
  9643 fi
  9645 CFLAGS_FOR_BUILD="-O2 -std=c99"
  9646 CFLAGS="-g -fexceptions"
  9647 OBJCFLAGS="-g -fexceptions"
  9649 cat >>confdefs.h <<\_ACEOF
  9650 #define HAVE_EXCEPTIONS 1
  9651 _ACEOF
  9654 STDCFLAG="-std=c99"
  9656 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
  9657 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
  9658 { echo "$as_me:$LINENO: checking CC version" >&5
  9659 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
  9660 if test -n "$_ICC_VERSION"; then
  9661    { echo "$as_me:$LINENO: result: ICC" >&5
  9662 echo "${ECHO_T}ICC" >&6; }
  9663      CCOPT="$CFLAGS -fast"
  9664                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  9665 elif test -n "$_GCC_VERSION"; then
  9666    { echo "$as_me:$LINENO: result: GCC" >&5
  9667 echo "${ECHO_T}GCC" >&6; }
  9668      CCOPT="-O2"
  9669                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  9670 else
  9671    { echo "$as_me:$LINENO: result: Unknown" >&5
  9672 echo "${ECHO_T}Unknown" >&6; }
  9673      CCOPT="$CFLAGS -O2"
  9674 fi
  9677 ac_ext=c
  9678 ac_cpp='$CPP $CPPFLAGS'
  9679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9683 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
  9684 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
  9685 save_CFLAGS="$CFLAGS"
  9686 CFLAGS="-msse2 $CFLAGS"
  9687 cat >conftest.$ac_ext <<_ACEOF
  9689   /* confdefs.h.  */
  9690 _ACEOF
  9691 cat confdefs.h >>conftest.$ac_ext
  9692 cat >>conftest.$ac_ext <<_ACEOF
  9693 /* end confdefs.h.  */
  9694 int main() { return 0; }
  9695 _ACEOF
  9696 rm -f conftest.$ac_objext
  9697 if { (ac_try="$ac_compile"
  9698 case "(($ac_try" in
  9699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9700   *) ac_try_echo=$ac_try;;
  9701 esac
  9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9703   (eval "$ac_compile") 2>conftest.er1
  9704   ac_status=$?
  9705   grep -v '^ *+' conftest.er1 >conftest.err
  9706   rm -f conftest.er1
  9707   cat conftest.err >&5
  9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9709   (exit $ac_status); } && {
  9710 	 test -z "$ac_c_werror_flag" ||
  9711 	 test ! -s conftest.err
  9712        } && test -s conftest.$ac_objext; then
  9714    { echo "$as_me:$LINENO: result: yes" >&5
  9715 echo "${ECHO_T}yes" >&6; }
  9717 else
  9718   echo "$as_me: failed program was:" >&5
  9719 sed 's/^/| /' conftest.$ac_ext >&5
  9722    CFLAGS="$save_CFLAGS"
  9723    { echo "$as_me:$LINENO: result: no" >&5
  9724 echo "${ECHO_T}no" >&6; }
  9726 fi
  9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9729 ac_ext=c
  9730 ac_cpp='$CPP $CPPFLAGS'
  9731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9737 ac_ext=c
  9738 ac_cpp='$CPP $CPPFLAGS'
  9739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9743 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
  9744 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
  9745 save_CFLAGS="$CFLAGS"
  9746 CFLAGS="-mfpmath=sse $CFLAGS"
  9747 cat >conftest.$ac_ext <<_ACEOF
  9749   /* confdefs.h.  */
  9750 _ACEOF
  9751 cat confdefs.h >>conftest.$ac_ext
  9752 cat >>conftest.$ac_ext <<_ACEOF
  9753 /* end confdefs.h.  */
  9754 int main() { return 0; }
  9755 _ACEOF
  9756 rm -f conftest.$ac_objext
  9757 if { (ac_try="$ac_compile"
  9758 case "(($ac_try" in
  9759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9760   *) ac_try_echo=$ac_try;;
  9761 esac
  9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9763   (eval "$ac_compile") 2>conftest.er1
  9764   ac_status=$?
  9765   grep -v '^ *+' conftest.er1 >conftest.err
  9766   rm -f conftest.er1
  9767   cat conftest.err >&5
  9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9769   (exit $ac_status); } && {
  9770 	 test -z "$ac_c_werror_flag" ||
  9771 	 test ! -s conftest.err
  9772        } && test -s conftest.$ac_objext; then
  9774    { echo "$as_me:$LINENO: result: yes" >&5
  9775 echo "${ECHO_T}yes" >&6; }
  9777 else
  9778   echo "$as_me: failed program was:" >&5
  9779 sed 's/^/| /' conftest.$ac_ext >&5
  9782    CFLAGS="$save_CFLAGS"
  9783    { echo "$as_me:$LINENO: result: no" >&5
  9784 echo "${ECHO_T}no" >&6; }
  9786 fi
  9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9789 ac_ext=c
  9790 ac_cpp='$CPP $CPPFLAGS'
  9791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9797 if test "x$enable_optimized" = "xyes"; then
  9798    CFLAGS="$CFLAGS $CCOPT"
  9799    OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
  9800    if test "x$enable_profiled" != "xyes"; then
  9801               CFLAGS="$CFLAGS -fomit-frame-pointer"
  9802        OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
  9803    fi
  9804 else
  9805    CFLAGS="$CFLAGS -g3"
  9806    OBJCFLAGS="$OBJCFLAGS -g3"
  9807 fi
  9809 if test "x$enable_profiled" = "xyes"; then
  9810    CFLAGS="$CFLAGS -pg"
  9811    LDFLAGS="$LDFLAGS -pg";
  9812    OBJCFLAGS="$OBJCFLAGS -pg";
  9813 fi
  9815 if test "x$enable_strictwarn" = "xyes"; then
  9816    CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
  9817    OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
  9818 fi
  9820 if test "x$enable_shared" != "xno"; then
  9821    if test "x$APPLE_BUILD" = "xyes"; then
  9822       SOEXT="dylib"
  9823       PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
  9824    else
  9825       SOEXT="so"
  9826       PLUGINLDFLAGS="-shared"
  9827    fi
  9828    PLUGINCFLAGS="-fPIC"
  9830    if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9831   { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  9832 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  9833 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9834   echo $ECHO_N "(cached) $ECHO_C" >&6
  9835 fi
  9836 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  9837 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  9838 else
  9839   # Is the header compilable?
  9840 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
  9841 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
  9842 cat >conftest.$ac_ext <<_ACEOF
  9843 /* confdefs.h.  */
  9844 _ACEOF
  9845 cat confdefs.h >>conftest.$ac_ext
  9846 cat >>conftest.$ac_ext <<_ACEOF
  9847 /* end confdefs.h.  */
  9848 $ac_includes_default
  9849 #include <dlfcn.h>
  9850 _ACEOF
  9851 rm -f conftest.$ac_objext
  9852 if { (ac_try="$ac_compile"
  9853 case "(($ac_try" in
  9854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9855   *) ac_try_echo=$ac_try;;
  9856 esac
  9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9858   (eval "$ac_compile") 2>conftest.er1
  9859   ac_status=$?
  9860   grep -v '^ *+' conftest.er1 >conftest.err
  9861   rm -f conftest.er1
  9862   cat conftest.err >&5
  9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9864   (exit $ac_status); } && {
  9865 	 test -z "$ac_c_werror_flag" ||
  9866 	 test ! -s conftest.err
  9867        } && test -s conftest.$ac_objext; then
  9868   ac_header_compiler=yes
  9869 else
  9870   echo "$as_me: failed program was:" >&5
  9871 sed 's/^/| /' conftest.$ac_ext >&5
  9873 	ac_header_compiler=no
  9874 fi
  9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9878 echo "${ECHO_T}$ac_header_compiler" >&6; }
  9880 # Is the header present?
  9881 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
  9882 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
  9883 cat >conftest.$ac_ext <<_ACEOF
  9884 /* confdefs.h.  */
  9885 _ACEOF
  9886 cat confdefs.h >>conftest.$ac_ext
  9887 cat >>conftest.$ac_ext <<_ACEOF
  9888 /* end confdefs.h.  */
  9889 #include <dlfcn.h>
  9890 _ACEOF
  9891 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9892 case "(($ac_try" in
  9893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9894   *) ac_try_echo=$ac_try;;
  9895 esac
  9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9898   ac_status=$?
  9899   grep -v '^ *+' conftest.er1 >conftest.err
  9900   rm -f conftest.er1
  9901   cat conftest.err >&5
  9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9903   (exit $ac_status); } >/dev/null && {
  9904 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9905 	 test ! -s conftest.err
  9906        }; then
  9907   ac_header_preproc=yes
  9908 else
  9909   echo "$as_me: failed program was:" >&5
  9910 sed 's/^/| /' conftest.$ac_ext >&5
  9912   ac_header_preproc=no
  9913 fi
  9915 rm -f conftest.err conftest.$ac_ext
  9916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9917 echo "${ECHO_T}$ac_header_preproc" >&6; }
  9919 # So?  What about this header?
  9920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9921   yes:no: )
  9922     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9923 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9924     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
  9925 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
  9926     ac_header_preproc=yes
  9927     ;;
  9928   no:yes:* )
  9929     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
  9930 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
  9931     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
  9932 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
  9933     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
  9934 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
  9935     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
  9936 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9937     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
  9938 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
  9939     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
  9940 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
  9942     ;;
  9943 esac
  9944 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  9945 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  9946 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9947   echo $ECHO_N "(cached) $ECHO_C" >&6
  9948 else
  9949   ac_cv_header_dlfcn_h=$ac_header_preproc
  9950 fi
  9951 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  9952 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  9954 fi
  9955 if test $ac_cv_header_dlfcn_h = yes; then
  9957       { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  9958 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
  9959 if test "${ac_cv_search_dlopen+set}" = set; then
  9960   echo $ECHO_N "(cached) $ECHO_C" >&6
  9961 else
  9962   ac_func_search_save_LIBS=$LIBS
  9963 cat >conftest.$ac_ext <<_ACEOF
  9964 /* confdefs.h.  */
  9965 _ACEOF
  9966 cat confdefs.h >>conftest.$ac_ext
  9967 cat >>conftest.$ac_ext <<_ACEOF
  9968 /* end confdefs.h.  */
  9970 /* Override any GCC internal prototype to avoid an error.
  9971    Use char because int might match the return type of a GCC
  9972    builtin and then its argument prototype would still apply.  */
  9973 #ifdef __cplusplus
  9974 extern "C"
  9975 #endif
  9976 char dlopen ();
  9977 int
  9978 main ()
  9980 return dlopen ();
  9982   return 0;
  9984 _ACEOF
  9985 for ac_lib in '' dl; do
  9986   if test -z "$ac_lib"; then
  9987     ac_res="none required"
  9988   else
  9989     ac_res=-l$ac_lib
  9990     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  9991   fi
  9992   rm -f conftest.$ac_objext conftest$ac_exeext
  9993 if { (ac_try="$ac_link"
  9994 case "(($ac_try" in
  9995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9996   *) ac_try_echo=$ac_try;;
  9997 esac
  9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9999   (eval "$ac_link") 2>conftest.er1
 10000   ac_status=$?
 10001   grep -v '^ *+' conftest.er1 >conftest.err
 10002   rm -f conftest.er1
 10003   cat conftest.err >&5
 10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10005   (exit $ac_status); } && {
 10006 	 test -z "$ac_c_werror_flag" ||
 10007 	 test ! -s conftest.err
 10008        } && test -s conftest$ac_exeext &&
 10009        $as_test_x conftest$ac_exeext; then
 10010   ac_cv_search_dlopen=$ac_res
 10011 else
 10012   echo "$as_me: failed program was:" >&5
 10013 sed 's/^/| /' conftest.$ac_ext >&5
 10016 fi
 10018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10019       conftest$ac_exeext
 10020   if test "${ac_cv_search_dlopen+set}" = set; then
 10021   break
 10022 fi
 10023 done
 10024 if test "${ac_cv_search_dlopen+set}" = set; then
 10026 else
 10027   ac_cv_search_dlopen=no
 10028 fi
 10029 rm conftest.$ac_ext
 10030 LIBS=$ac_func_search_save_LIBS
 10031 fi
 10032 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
 10033 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
 10034 ac_res=$ac_cv_search_dlopen
 10035 if test "$ac_res" != no; then
 10036   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10037   have_dlopen=yes
 10038 fi
 10040 fi
 10043    if test "x$have_dlopen" != "xyes"; then
 10044       if test "x$enable_shared" == "xyes"; then
 10045          { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
 10046 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
 10047    { (exit 1); exit 1; }; }
 10048       else
 10049          { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
 10050 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
 10051       fi
 10052    fi
 10054    { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
 10055 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
 10056    old_LDFLAGS="$LDFLAGS"
 10057    LDFLAGS="$LDFLAGS -rdynamic"
 10058    cat >conftest.$ac_ext <<_ACEOF
 10059 /* confdefs.h.  */
 10060 _ACEOF
 10061 cat confdefs.h >>conftest.$ac_ext
 10062 cat >>conftest.$ac_ext <<_ACEOF
 10063 /* end confdefs.h.  */
 10064 int main() { return 0; }
 10065 _ACEOF
 10066 rm -f conftest.$ac_objext conftest$ac_exeext
 10067 if { (ac_try="$ac_link"
 10068 case "(($ac_try" in
 10069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10070   *) ac_try_echo=$ac_try;;
 10071 esac
 10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10073   (eval "$ac_link") 2>conftest.er1
 10074   ac_status=$?
 10075   grep -v '^ *+' conftest.er1 >conftest.err
 10076   rm -f conftest.er1
 10077   cat conftest.err >&5
 10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10079   (exit $ac_status); } && {
 10080 	 test -z "$ac_c_werror_flag" ||
 10081 	 test ! -s conftest.err
 10082        } && test -s conftest$ac_exeext &&
 10083        $as_test_x conftest$ac_exeext; then
 10085      LXDREAMLDFLAGS="-rdynamic"
 10086      { echo "$as_me:$LINENO: result: yes" >&5
 10087 echo "${ECHO_T}yes" >&6; }
 10089 else
 10090   echo "$as_me: failed program was:" >&5
 10091 sed 's/^/| /' conftest.$ac_ext >&5
 10094      LXDREAMLDFLAGS=""
 10095      { echo "$as_me:$LINENO: result: no" >&5
 10096 echo "${ECHO_T}no" >&6; }
 10097 fi
 10099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10100       conftest$ac_exeext conftest.$ac_ext
 10101    LDFLAGS="$old_LDFLAGS"
 10107 fi
 10108 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
 10110 cat >>confdefs.h <<\_ACEOF
 10111 #define BUILD_PLUGINS 1
 10112 _ACEOF
 10114 fi
 10117 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
 10118   BUILD_PLUGINS_TRUE=
 10119   BUILD_PLUGINS_FALSE='#'
 10120 else
 10121   BUILD_PLUGINS_TRUE='#'
 10122   BUILD_PLUGINS_FALSE=
 10123 fi
 10127 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
 10128 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
 10129 save_CFLAGS="$CFLAGS"
 10130 CFLAGS="-Werror $save_CFLAGS"
 10131 if test "$cross_compiling" = yes; then
 10133       { echo "$as_me:$LINENO: result: no" >&5
 10134 echo "${ECHO_T}no" >&6; }
 10136 else
 10137   cat >conftest.$ac_ext <<_ACEOF
 10139   /* confdefs.h.  */
 10140 _ACEOF
 10141 cat confdefs.h >>conftest.$ac_ext
 10142 cat >>conftest.$ac_ext <<_ACEOF
 10143 /* end confdefs.h.  */
 10145 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
 10147 int main(int argc, char *argv[])
 10149    return foo( 1, 2 ) == 3 ? 0 : 1;
 10151 _ACEOF
 10152 rm -f conftest$ac_exeext
 10153 if { (ac_try="$ac_link"
 10154 case "(($ac_try" in
 10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10156   *) ac_try_echo=$ac_try;;
 10157 esac
 10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10159   (eval "$ac_link") 2>&5
 10160   ac_status=$?
 10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 10163   { (case "(($ac_try" in
 10164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10165   *) ac_try_echo=$ac_try;;
 10166 esac
 10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10168   (eval "$ac_try") 2>&5
 10169   ac_status=$?
 10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10171   (exit $ac_status); }; }; then
 10173    { echo "$as_me:$LINENO: result: yes" >&5
 10174 echo "${ECHO_T}yes" >&6; }
 10177 cat >>confdefs.h <<\_ACEOF
 10178 #define HAVE_FASTCALL 1
 10179 _ACEOF
 10182 else
 10183   echo "$as_me: program exited with status $ac_status" >&5
 10184 echo "$as_me: failed program was:" >&5
 10185 sed 's/^/| /' conftest.$ac_ext >&5
 10187 ( exit $ac_status )
 10189    { echo "$as_me:$LINENO: result: no" >&5
 10190 echo "${ECHO_T}no" >&6; }
 10192 fi
 10193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 10194 fi
 10197 CFLAGS="$save_CFLAGS"
 10200 { echo "$as_me:$LINENO: checking support for force inlining" >&5
 10201 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
 10202 cat >conftest.$ac_ext <<_ACEOF
 10204   /* confdefs.h.  */
 10205 _ACEOF
 10206 cat confdefs.h >>conftest.$ac_ext
 10207 cat >>conftest.$ac_ext <<_ACEOF
 10208 /* end confdefs.h.  */
 10210 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
 10212 int main(int argc, char *argv[])
 10214    return foo( 1, 2 ) == 3 ? 0 : 1;
 10216 _ACEOF
 10217 rm -f conftest.$ac_objext
 10218 if { (ac_try="$ac_compile"
 10219 case "(($ac_try" in
 10220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10221   *) ac_try_echo=$ac_try;;
 10222 esac
 10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10224   (eval "$ac_compile") 2>conftest.er1
 10225   ac_status=$?
 10226   grep -v '^ *+' conftest.er1 >conftest.err
 10227   rm -f conftest.er1
 10228   cat conftest.err >&5
 10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10230   (exit $ac_status); } && {
 10231 	 test -z "$ac_c_werror_flag" ||
 10232 	 test ! -s conftest.err
 10233        } && test -s conftest.$ac_objext; then
 10235    FORCEINLINE="__attribute__((always_inline))"
 10236    { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
 10237 echo "${ECHO_T}$FORCEINLINE" >&6; }
 10239 else
 10240   echo "$as_me: failed program was:" >&5
 10241 sed 's/^/| /' conftest.$ac_ext >&5
 10244    FORCEINLINE=""
 10245    { echo "$as_me:$LINENO: result: no" >&5
 10246 echo "${ECHO_T}no" >&6; }
 10248 fi
 10250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10253 cat >>confdefs.h <<_ACEOF
 10254 #define FORCEINLINE $FORCEINLINE
 10255 _ACEOF
 10258 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
 10259 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
 10260 if test "$cross_compiling" = yes; then
 10262    { echo "$as_me:$LINENO: result: no" >&5
 10263 echo "${ECHO_T}no" >&6; }
 10264     { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
 10265 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
 10266 else
 10267   cat >conftest.$ac_ext <<_ACEOF
 10269   /* confdefs.h.  */
 10270 _ACEOF
 10271 cat confdefs.h >>conftest.$ac_ext
 10272 cat >>conftest.$ac_ext <<_ACEOF
 10273 /* end confdefs.h.  */
 10275 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
 10276 int __attribute__((noinline)) foo( int arg, void *exc )
 10278     if( arg < 2 ) {
 10279         *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
 10281     return 0;
 10284 int main(int argc, char *argv[])
 10286    goto *first_arg(&&start, &&except);
 10288 start:
 10289    return foo( argc, &&except ) + 1;
 10291 except:
 10292    return 0;
 10294 _ACEOF
 10295 rm -f conftest$ac_exeext
 10296 if { (ac_try="$ac_link"
 10297 case "(($ac_try" in
 10298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10299   *) ac_try_echo=$ac_try;;
 10300 esac
 10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10302   (eval "$ac_link") 2>&5
 10303   ac_status=$?
 10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 10306   { (case "(($ac_try" in
 10307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10308   *) ac_try_echo=$ac_try;;
 10309 esac
 10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10311   (eval "$ac_try") 2>&5
 10312   ac_status=$?
 10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10314   (exit $ac_status); }; }; then
 10316    { echo "$as_me:$LINENO: result: yes" >&5
 10317 echo "${ECHO_T}yes" >&6; }
 10320 cat >>confdefs.h <<\_ACEOF
 10321 #define HAVE_FRAME_ADDRESS 1
 10322 _ACEOF
 10325 else
 10326   echo "$as_me: program exited with status $ac_status" >&5
 10327 echo "$as_me: failed program was:" >&5
 10328 sed 's/^/| /' conftest.$ac_ext >&5
 10330 ( exit $ac_status )
 10332    { echo "$as_me:$LINENO: result: no" >&5
 10333 echo "${ECHO_T}no" >&6; }
 10334     { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
 10335 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
 10336 fi
 10337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 10338 fi
 10344 { echo "$as_me:$LINENO: checking for library containing listen" >&5
 10345 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
 10346 if test "${ac_cv_search_listen+set}" = set; then
 10347   echo $ECHO_N "(cached) $ECHO_C" >&6
 10348 else
 10349   ac_func_search_save_LIBS=$LIBS
 10350 cat >conftest.$ac_ext <<_ACEOF
 10351 /* confdefs.h.  */
 10352 _ACEOF
 10353 cat confdefs.h >>conftest.$ac_ext
 10354 cat >>conftest.$ac_ext <<_ACEOF
 10355 /* end confdefs.h.  */
 10357 /* Override any GCC internal prototype to avoid an error.
 10358    Use char because int might match the return type of a GCC
 10359    builtin and then its argument prototype would still apply.  */
 10360 #ifdef __cplusplus
 10361 extern "C"
 10362 #endif
 10363 char listen ();
 10364 int
 10365 main ()
 10367 return listen ();
 10369   return 0;
 10371 _ACEOF
 10372 for ac_lib in '' socket; do
 10373   if test -z "$ac_lib"; then
 10374     ac_res="none required"
 10375   else
 10376     ac_res=-l$ac_lib
 10377     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10378   fi
 10379   rm -f conftest.$ac_objext conftest$ac_exeext
 10380 if { (ac_try="$ac_link"
 10381 case "(($ac_try" in
 10382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10383   *) ac_try_echo=$ac_try;;
 10384 esac
 10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10386   (eval "$ac_link") 2>conftest.er1
 10387   ac_status=$?
 10388   grep -v '^ *+' conftest.er1 >conftest.err
 10389   rm -f conftest.er1
 10390   cat conftest.err >&5
 10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10392   (exit $ac_status); } && {
 10393 	 test -z "$ac_c_werror_flag" ||
 10394 	 test ! -s conftest.err
 10395        } && test -s conftest$ac_exeext &&
 10396        $as_test_x conftest$ac_exeext; then
 10397   ac_cv_search_listen=$ac_res
 10398 else
 10399   echo "$as_me: failed program was:" >&5
 10400 sed 's/^/| /' conftest.$ac_ext >&5
 10403 fi
 10405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10406       conftest$ac_exeext
 10407   if test "${ac_cv_search_listen+set}" = set; then
 10408   break
 10409 fi
 10410 done
 10411 if test "${ac_cv_search_listen+set}" = set; then
 10413 else
 10414   ac_cv_search_listen=no
 10415 fi
 10416 rm conftest.$ac_ext
 10417 LIBS=$ac_func_search_save_LIBS
 10418 fi
 10419 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
 10420 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
 10421 ac_res=$ac_cv_search_listen
 10422 if test "$ac_res" != no; then
 10423   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10425 fi
 10427 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
 10428 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
 10429 if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10430   echo $ECHO_N "(cached) $ECHO_C" >&6
 10431 else
 10432   ac_func_search_save_LIBS=$LIBS
 10433 cat >conftest.$ac_ext <<_ACEOF
 10434 /* confdefs.h.  */
 10435 _ACEOF
 10436 cat confdefs.h >>conftest.$ac_ext
 10437 cat >>conftest.$ac_ext <<_ACEOF
 10438 /* end confdefs.h.  */
 10440 /* Override any GCC internal prototype to avoid an error.
 10441    Use char because int might match the return type of a GCC
 10442    builtin and then its argument prototype would still apply.  */
 10443 #ifdef __cplusplus
 10444 extern "C"
 10445 #endif
 10446 char inet_ntoa ();
 10447 int
 10448 main ()
 10450 return inet_ntoa ();
 10452   return 0;
 10454 _ACEOF
 10455 for ac_lib in '' nsl; do
 10456   if test -z "$ac_lib"; then
 10457     ac_res="none required"
 10458   else
 10459     ac_res=-l$ac_lib
 10460     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10461   fi
 10462   rm -f conftest.$ac_objext conftest$ac_exeext
 10463 if { (ac_try="$ac_link"
 10464 case "(($ac_try" in
 10465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10466   *) ac_try_echo=$ac_try;;
 10467 esac
 10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10469   (eval "$ac_link") 2>conftest.er1
 10470   ac_status=$?
 10471   grep -v '^ *+' conftest.er1 >conftest.err
 10472   rm -f conftest.er1
 10473   cat conftest.err >&5
 10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10475   (exit $ac_status); } && {
 10476 	 test -z "$ac_c_werror_flag" ||
 10477 	 test ! -s conftest.err
 10478        } && test -s conftest$ac_exeext &&
 10479        $as_test_x conftest$ac_exeext; then
 10480   ac_cv_search_inet_ntoa=$ac_res
 10481 else
 10482   echo "$as_me: failed program was:" >&5
 10483 sed 's/^/| /' conftest.$ac_ext >&5
 10486 fi
 10488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10489       conftest$ac_exeext
 10490   if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10491   break
 10492 fi
 10493 done
 10494 if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10496 else
 10497   ac_cv_search_inet_ntoa=no
 10498 fi
 10499 rm conftest.$ac_ext
 10500 LIBS=$ac_func_search_save_LIBS
 10501 fi
 10502 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
 10503 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
 10504 ac_res=$ac_cv_search_inet_ntoa
 10505 if test "$ac_res" != no; then
 10506   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10508 fi
 10513 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 10514 	if test -n "$ac_tool_prefix"; then
 10515   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 10516 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 10517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10519 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 10520   echo $ECHO_N "(cached) $ECHO_C" >&6
 10521 else
 10522   case $PKG_CONFIG in
 10523   [\\/]* | ?:[\\/]*)
 10524   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 10525   ;;
 10526   *)
 10527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10528 for as_dir in $PATH
 10529 do
 10530   IFS=$as_save_IFS
 10531   test -z "$as_dir" && as_dir=.
 10532   for ac_exec_ext in '' $ac_executable_extensions; do
 10533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10534     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 10535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10536     break 2
 10537   fi
 10538 done
 10539 done
 10540 IFS=$as_save_IFS
 10542   ;;
 10543 esac
 10544 fi
 10545 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 10546 if test -n "$PKG_CONFIG"; then
 10547   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 10548 echo "${ECHO_T}$PKG_CONFIG" >&6; }
 10549 else
 10550   { echo "$as_me:$LINENO: result: no" >&5
 10551 echo "${ECHO_T}no" >&6; }
 10552 fi
 10555 fi
 10556 if test -z "$ac_cv_path_PKG_CONFIG"; then
 10557   ac_pt_PKG_CONFIG=$PKG_CONFIG
 10558   # Extract the first word of "pkg-config", so it can be a program name with args.
 10559 set dummy pkg-config; ac_word=$2
 10560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10562 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 10563   echo $ECHO_N "(cached) $ECHO_C" >&6
 10564 else
 10565   case $ac_pt_PKG_CONFIG in
 10566   [\\/]* | ?:[\\/]*)
 10567   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 10568   ;;
 10569   *)
 10570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10571 for as_dir in $PATH
 10572 do
 10573   IFS=$as_save_IFS
 10574   test -z "$as_dir" && as_dir=.
 10575   for ac_exec_ext in '' $ac_executable_extensions; do
 10576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10577     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 10578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10579     break 2
 10580   fi
 10581 done
 10582 done
 10583 IFS=$as_save_IFS
 10585   ;;
 10586 esac
 10587 fi
 10588 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 10589 if test -n "$ac_pt_PKG_CONFIG"; then
 10590   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 10591 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 10592 else
 10593   { echo "$as_me:$LINENO: result: no" >&5
 10594 echo "${ECHO_T}no" >&6; }
 10595 fi
 10597   if test "x$ac_pt_PKG_CONFIG" = x; then
 10598     PKG_CONFIG=""
 10599   else
 10600     case $cross_compiling:$ac_tool_warned in
 10601 yes:)
 10602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 10603 whose name does not start with the host triplet.  If you think this
 10604 configuration is useful to you, please write to autoconf@gnu.org." >&5
 10605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 10606 whose name does not start with the host triplet.  If you think this
 10607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 10608 ac_tool_warned=yes ;;
 10609 esac
 10610     PKG_CONFIG=$ac_pt_PKG_CONFIG
 10611   fi
 10612 else
 10613   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 10614 fi
 10616 fi
 10617 if test -n "$PKG_CONFIG"; then
 10618 	_pkg_min_version=0.9.0
 10619 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 10620 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 10621 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 10622 		{ echo "$as_me:$LINENO: result: yes" >&5
 10623 echo "${ECHO_T}yes" >&6; }
 10624 	else
 10625 		{ echo "$as_me:$LINENO: result: no" >&5
 10626 echo "${ECHO_T}no" >&6; }
 10627 		PKG_CONFIG=""
 10628 	fi
 10630 fi
 10632 pkg_failed=no
 10633 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
 10634 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
 10636 if test -n "$LIBPNG_CFLAGS"; then
 10637     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
 10638  elif test -n "$PKG_CONFIG"; then
 10639     if test -n "$PKG_CONFIG" && \
 10640     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
 10641   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
 10642   ac_status=$?
 10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10644   (exit $ac_status); }; then
 10645   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
 10646 else
 10647   pkg_failed=yes
 10648 fi
 10649  else
 10650     pkg_failed=untried
 10651 fi
 10652 if test -n "$LIBPNG_LIBS"; then
 10653     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
 10654  elif test -n "$PKG_CONFIG"; then
 10655     if test -n "$PKG_CONFIG" && \
 10656     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
 10657   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
 10658   ac_status=$?
 10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10660   (exit $ac_status); }; then
 10661   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
 10662 else
 10663   pkg_failed=yes
 10664 fi
 10665  else
 10666     pkg_failed=untried
 10667 fi
 10671 if test $pkg_failed = yes; then
 10673 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10674         _pkg_short_errors_supported=yes
 10675 else
 10676         _pkg_short_errors_supported=no
 10677 fi
 10678         if test $_pkg_short_errors_supported = yes; then
 10679 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
 10680         else
 10681 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
 10682         fi
 10683 	# Put the nasty error message in config.log where it belongs
 10684 	echo "$LIBPNG_PKG_ERRORS" >&5
 10686 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
 10688 $LIBPNG_PKG_ERRORS
 10690 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10691 installed software in a non-standard prefix.
 10693 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10694 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10695 See the pkg-config man page for more details.
 10696 " >&5
 10697 echo "$as_me: error: Package requirements (libpng ) were not met:
 10699 $LIBPNG_PKG_ERRORS
 10701 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10702 installed software in a non-standard prefix.
 10704 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10705 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10706 See the pkg-config man page for more details.
 10707 " >&2;}
 10708    { (exit 1); exit 1; }; }
 10709 elif test $pkg_failed = untried; then
 10710 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 10711 is in your PATH or set the PKG_CONFIG environment variable to the full
 10712 path to pkg-config.
 10714 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10715 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10716 See the pkg-config man page for more details.
 10718 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10719 See \`config.log' for more details." >&5
 10720 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 10721 is in your PATH or set the PKG_CONFIG environment variable to the full
 10722 path to pkg-config.
 10724 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10725 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10726 See the pkg-config man page for more details.
 10728 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10729 See \`config.log' for more details." >&2;}
 10730    { (exit 1); exit 1; }; }
 10731 else
 10732 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
 10733 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
 10734         { echo "$as_me:$LINENO: result: yes" >&5
 10735 echo "${ECHO_T}yes" >&6; }
 10737 fi
 10740 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
 10741 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
 10742 if test "${ac_cv_lib_z_uncompress+set}" = set; then
 10743   echo $ECHO_N "(cached) $ECHO_C" >&6
 10744 else
 10745   ac_check_lib_save_LIBS=$LIBS
 10746 LIBS="-lz  $LIBS"
 10747 cat >conftest.$ac_ext <<_ACEOF
 10748 /* confdefs.h.  */
 10749 _ACEOF
 10750 cat confdefs.h >>conftest.$ac_ext
 10751 cat >>conftest.$ac_ext <<_ACEOF
 10752 /* end confdefs.h.  */
 10754 /* Override any GCC internal prototype to avoid an error.
 10755    Use char because int might match the return type of a GCC
 10756    builtin and then its argument prototype would still apply.  */
 10757 #ifdef __cplusplus
 10758 extern "C"
 10759 #endif
 10760 char uncompress ();
 10761 int
 10762 main ()
 10764 return uncompress ();
 10766   return 0;
 10768 _ACEOF
 10769 rm -f conftest.$ac_objext conftest$ac_exeext
 10770 if { (ac_try="$ac_link"
 10771 case "(($ac_try" in
 10772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10773   *) ac_try_echo=$ac_try;;
 10774 esac
 10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10776   (eval "$ac_link") 2>conftest.er1
 10777   ac_status=$?
 10778   grep -v '^ *+' conftest.er1 >conftest.err
 10779   rm -f conftest.er1
 10780   cat conftest.err >&5
 10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10782   (exit $ac_status); } && {
 10783 	 test -z "$ac_c_werror_flag" ||
 10784 	 test ! -s conftest.err
 10785        } && test -s conftest$ac_exeext &&
 10786        $as_test_x conftest$ac_exeext; then
 10787   ac_cv_lib_z_uncompress=yes
 10788 else
 10789   echo "$as_me: failed program was:" >&5
 10790 sed 's/^/| /' conftest.$ac_ext >&5
 10792 	ac_cv_lib_z_uncompress=no
 10793 fi
 10795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10796       conftest$ac_exeext conftest.$ac_ext
 10797 LIBS=$ac_check_lib_save_LIBS
 10798 fi
 10799 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
 10800 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
 10801 if test $ac_cv_lib_z_uncompress = yes; then
 10802   cat >>confdefs.h <<_ACEOF
 10803 #define HAVE_LIBZ 1
 10804 _ACEOF
 10806   LIBS="-lz $LIBS"
 10808 else
 10810     echo "Zlib (libz.so) could not be found, but is required."
 10811     exit 1
 10812 fi
 10815 if test "x$with_gtk" = "xno"; then
 10817 pkg_failed=no
 10818 { echo "$as_me:$LINENO: checking for GLIB" >&5
 10819 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
 10821 if test -n "$GLIB_CFLAGS"; then
 10822     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
 10823  elif test -n "$PKG_CONFIG"; then
 10824     if test -n "$PKG_CONFIG" && \
 10825     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 10826   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 10827   ac_status=$?
 10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10829   (exit $ac_status); }; then
 10830   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 10831 else
 10832   pkg_failed=yes
 10833 fi
 10834  else
 10835     pkg_failed=untried
 10836 fi
 10837 if test -n "$GLIB_LIBS"; then
 10838     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
 10839  elif test -n "$PKG_CONFIG"; then
 10840     if test -n "$PKG_CONFIG" && \
 10841     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 10842   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 10843   ac_status=$?
 10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10845   (exit $ac_status); }; then
 10846   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 10847 else
 10848   pkg_failed=yes
 10849 fi
 10850  else
 10851     pkg_failed=untried
 10852 fi
 10856 if test $pkg_failed = yes; then
 10858 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10859         _pkg_short_errors_supported=yes
 10860 else
 10861         _pkg_short_errors_supported=no
 10862 fi
 10863         if test $_pkg_short_errors_supported = yes; then
 10864 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
 10865         else
 10866 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
 10867         fi
 10868 	# Put the nasty error message in config.log where it belongs
 10869 	echo "$GLIB_PKG_ERRORS" >&5
 10871 	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 10873 $GLIB_PKG_ERRORS
 10875 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10876 installed software in a non-standard prefix.
 10878 Alternatively, you may set the environment variables GLIB_CFLAGS
 10879 and GLIB_LIBS to avoid the need to call pkg-config.
 10880 See the pkg-config man page for more details.
 10881 " >&5
 10882 echo "$as_me: error: Package requirements (glib-2.0) were not met:
 10884 $GLIB_PKG_ERRORS
 10886 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10887 installed software in a non-standard prefix.
 10889 Alternatively, you may set the environment variables GLIB_CFLAGS
 10890 and GLIB_LIBS to avoid the need to call pkg-config.
 10891 See the pkg-config man page for more details.
 10892 " >&2;}
 10893    { (exit 1); exit 1; }; }
 10894 elif test $pkg_failed = untried; then
 10895 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 10896 is in your PATH or set the PKG_CONFIG environment variable to the full
 10897 path to pkg-config.
 10899 Alternatively, you may set the environment variables GLIB_CFLAGS
 10900 and GLIB_LIBS to avoid the need to call pkg-config.
 10901 See the pkg-config man page for more details.
 10903 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10904 See \`config.log' for more details." >&5
 10905 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 10906 is in your PATH or set the PKG_CONFIG environment variable to the full
 10907 path to pkg-config.
 10909 Alternatively, you may set the environment variables GLIB_CFLAGS
 10910 and GLIB_LIBS to avoid the need to call pkg-config.
 10911 See the pkg-config man page for more details.
 10913 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10914 See \`config.log' for more details." >&2;}
 10915    { (exit 1); exit 1; }; }
 10916 else
 10917 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
 10918 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
 10919         { echo "$as_me:$LINENO: result: yes" >&5
 10920 echo "${ECHO_T}yes" >&6; }
 10922 fi
 10923 else
 10925 pkg_failed=no
 10926 { echo "$as_me:$LINENO: checking for GTK" >&5
 10927 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
 10929 if test -n "$GTK_CFLAGS"; then
 10930     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
 10931  elif test -n "$PKG_CONFIG"; then
 10932     if test -n "$PKG_CONFIG" && \
 10933     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 10934   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 10935   ac_status=$?
 10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10937   (exit $ac_status); }; then
 10938   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
 10939 else
 10940   pkg_failed=yes
 10941 fi
 10942  else
 10943     pkg_failed=untried
 10944 fi
 10945 if test -n "$GTK_LIBS"; then
 10946     pkg_cv_GTK_LIBS="$GTK_LIBS"
 10947  elif test -n "$PKG_CONFIG"; then
 10948     if test -n "$PKG_CONFIG" && \
 10949     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 10950   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 10951   ac_status=$?
 10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10953   (exit $ac_status); }; then
 10954   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
 10955 else
 10956   pkg_failed=yes
 10957 fi
 10958  else
 10959     pkg_failed=untried
 10960 fi
 10964 if test $pkg_failed = yes; then
 10966 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10967         _pkg_short_errors_supported=yes
 10968 else
 10969         _pkg_short_errors_supported=no
 10970 fi
 10971         if test $_pkg_short_errors_supported = yes; then
 10972 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
 10973         else
 10974 	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
 10975         fi
 10976 	# Put the nasty error message in config.log where it belongs
 10977 	echo "$GTK_PKG_ERRORS" >&5
 10979 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
 10981 $GTK_PKG_ERRORS
 10983 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10984 installed software in a non-standard prefix.
 10986 Alternatively, you may set the environment variables GTK_CFLAGS
 10987 and GTK_LIBS to avoid the need to call pkg-config.
 10988 See the pkg-config man page for more details.
 10989 " >&5
 10990 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
 10992 $GTK_PKG_ERRORS
 10994 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10995 installed software in a non-standard prefix.
 10997 Alternatively, you may set the environment variables GTK_CFLAGS
 10998 and GTK_LIBS to avoid the need to call pkg-config.
 10999 See the pkg-config man page for more details.
 11000 " >&2;}
 11001    { (exit 1); exit 1; }; }
 11002 elif test $pkg_failed = untried; then
 11003 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11004 is in your PATH or set the PKG_CONFIG environment variable to the full
 11005 path to pkg-config.
 11007 Alternatively, you may set the environment variables GTK_CFLAGS
 11008 and GTK_LIBS to avoid the need to call pkg-config.
 11009 See the pkg-config man page for more details.
 11011 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11012 See \`config.log' for more details." >&5
 11013 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11014 is in your PATH or set the PKG_CONFIG environment variable to the full
 11015 path to pkg-config.
 11017 Alternatively, you may set the environment variables GTK_CFLAGS
 11018 and GTK_LIBS to avoid the need to call pkg-config.
 11019 See the pkg-config man page for more details.
 11021 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11022 See \`config.log' for more details." >&2;}
 11023    { (exit 1); exit 1; }; }
 11024 else
 11025 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
 11026 	GTK_LIBS=$pkg_cv_GTK_LIBS
 11027         { echo "$as_me:$LINENO: result: yes" >&5
 11028 echo "${ECHO_T}yes" >&6; }
 11030        HAVE_GTK='yes'
 11032 cat >>confdefs.h <<\_ACEOF
 11033 #define HAVE_GTK 1
 11034 _ACEOF
 11036        UI_DRIVER="GTK"
 11038 fi
 11040       LIBS="$LIBS $GTK_LIBS"
 11041    { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
 11042 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
 11043 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
 11044   echo $ECHO_N "(cached) $ECHO_C" >&6
 11045 else
 11046   cat >conftest.$ac_ext <<_ACEOF
 11047 /* confdefs.h.  */
 11048 _ACEOF
 11049 cat confdefs.h >>conftest.$ac_ext
 11050 cat >>conftest.$ac_ext <<_ACEOF
 11051 /* end confdefs.h.  */
 11052 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
 11053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11054 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
 11056 /* System header to define __stub macros and hopefully few prototypes,
 11057     which can conflict with char gdk_x11_display_get_xdisplay (); below.
 11058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11059     <limits.h> exists even on freestanding compilers.  */
 11061 #ifdef __STDC__
 11062 # include <limits.h>
 11063 #else
 11064 # include <assert.h>
 11065 #endif
 11067 #undef gdk_x11_display_get_xdisplay
 11069 /* Override any GCC internal prototype to avoid an error.
 11070    Use char because int might match the return type of a GCC
 11071    builtin and then its argument prototype would still apply.  */
 11072 #ifdef __cplusplus
 11073 extern "C"
 11074 #endif
 11075 char gdk_x11_display_get_xdisplay ();
 11076 /* The GNU C library defines this for functions which it implements
 11077     to always fail with ENOSYS.  Some functions are actually named
 11078     something starting with __ and the normal name is an alias.  */
 11079 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
 11080 choke me
 11081 #endif
 11083 int
 11084 main ()
 11086 return gdk_x11_display_get_xdisplay ();
 11088   return 0;
 11090 _ACEOF
 11091 rm -f conftest.$ac_objext conftest$ac_exeext
 11092 if { (ac_try="$ac_link"
 11093 case "(($ac_try" in
 11094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11095   *) ac_try_echo=$ac_try;;
 11096 esac
 11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11098   (eval "$ac_link") 2>conftest.er1
 11099   ac_status=$?
 11100   grep -v '^ *+' conftest.er1 >conftest.err
 11101   rm -f conftest.er1
 11102   cat conftest.err >&5
 11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11104   (exit $ac_status); } && {
 11105 	 test -z "$ac_c_werror_flag" ||
 11106 	 test ! -s conftest.err
 11107        } && test -s conftest$ac_exeext &&
 11108        $as_test_x conftest$ac_exeext; then
 11109   ac_cv_func_gdk_x11_display_get_xdisplay=yes
 11110 else
 11111   echo "$as_me: failed program was:" >&5
 11112 sed 's/^/| /' conftest.$ac_ext >&5
 11114 	ac_cv_func_gdk_x11_display_get_xdisplay=no
 11115 fi
 11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11118       conftest$ac_exeext conftest.$ac_ext
 11119 fi
 11120 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
 11121 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
 11122 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
 11124       HAVE_GTK_X11='yes'
 11126 cat >>confdefs.h <<\_ACEOF
 11127 #define HAVE_GTK_X11 1
 11128 _ACEOF
 11130 fi
 11132             GTK_LIBS="$GTK_LIBS -lX11"
 11133       LIBS="$LIBS -lX11"
 11134    { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
 11135 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
 11136 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
 11137   echo $ECHO_N "(cached) $ECHO_C" >&6
 11138 else
 11139   cat >conftest.$ac_ext <<_ACEOF
 11140 /* confdefs.h.  */
 11141 _ACEOF
 11142 cat confdefs.h >>conftest.$ac_ext
 11143 cat >>conftest.$ac_ext <<_ACEOF
 11144 /* end confdefs.h.  */
 11145 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
 11146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11147 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
 11149 /* System header to define __stub macros and hopefully few prototypes,
 11150     which can conflict with char gdk_quartz_window_get_nsview (); below.
 11151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11152     <limits.h> exists even on freestanding compilers.  */
 11154 #ifdef __STDC__
 11155 # include <limits.h>
 11156 #else
 11157 # include <assert.h>
 11158 #endif
 11160 #undef gdk_quartz_window_get_nsview
 11162 /* Override any GCC internal prototype to avoid an error.
 11163    Use char because int might match the return type of a GCC
 11164    builtin and then its argument prototype would still apply.  */
 11165 #ifdef __cplusplus
 11166 extern "C"
 11167 #endif
 11168 char gdk_quartz_window_get_nsview ();
 11169 /* The GNU C library defines this for functions which it implements
 11170     to always fail with ENOSYS.  Some functions are actually named
 11171     something starting with __ and the normal name is an alias.  */
 11172 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
 11173 choke me
 11174 #endif
 11176 int
 11177 main ()
 11179 return gdk_quartz_window_get_nsview ();
 11181   return 0;
 11183 _ACEOF
 11184 rm -f conftest.$ac_objext conftest$ac_exeext
 11185 if { (ac_try="$ac_link"
 11186 case "(($ac_try" in
 11187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11188   *) ac_try_echo=$ac_try;;
 11189 esac
 11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11191   (eval "$ac_link") 2>conftest.er1
 11192   ac_status=$?
 11193   grep -v '^ *+' conftest.er1 >conftest.err
 11194   rm -f conftest.er1
 11195   cat conftest.err >&5
 11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11197   (exit $ac_status); } && {
 11198 	 test -z "$ac_c_werror_flag" ||
 11199 	 test ! -s conftest.err
 11200        } && test -s conftest$ac_exeext &&
 11201        $as_test_x conftest$ac_exeext; then
 11202   ac_cv_func_gdk_quartz_window_get_nsview=yes
 11203 else
 11204   echo "$as_me: failed program was:" >&5
 11205 sed 's/^/| /' conftest.$ac_ext >&5
 11207 	ac_cv_func_gdk_quartz_window_get_nsview=no
 11208 fi
 11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11211       conftest$ac_exeext conftest.$ac_ext
 11212 fi
 11213 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
 11214 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
 11215 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
 11217       HAVE_GTK_OSX='yes'
 11219 cat >>confdefs.h <<\_ACEOF
 11220 #define HAVE_GTK_OSX 1
 11221 _ACEOF
 11223 fi
 11225    if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
 11226       { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
 11227 See \`config.log' for more details." >&5
 11228 echo "$as_me: error: Unable to identify GTK platform
 11229 See \`config.log' for more details." >&2;}
 11230    { (exit 1); exit 1; }; }
 11231    fi
 11232 fi
 11236 pkg_failed=no
 11237 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
 11238 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
 11240 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
 11241     pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
 11242  elif test -n "$PKG_CONFIG"; then
 11243     if test -n "$PKG_CONFIG" && \
 11244     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 11245   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 11246   ac_status=$?
 11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11248   (exit $ac_status); }; then
 11249   pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 11250 else
 11251   pkg_failed=yes
 11252 fi
 11253  else
 11254     pkg_failed=untried
 11255 fi
 11256 if test -n "$GLIB_FOR_BUILD_LIBS"; then
 11257     pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
 11258  elif test -n "$PKG_CONFIG"; then
 11259     if test -n "$PKG_CONFIG" && \
 11260     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 11261   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 11262   ac_status=$?
 11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11264   (exit $ac_status); }; then
 11265   pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 11266 else
 11267   pkg_failed=yes
 11268 fi
 11269  else
 11270     pkg_failed=untried
 11271 fi
 11275 if test $pkg_failed = yes; then
 11277 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11278         _pkg_short_errors_supported=yes
 11279 else
 11280         _pkg_short_errors_supported=no
 11281 fi
 11282         if test $_pkg_short_errors_supported = yes; then
 11283 	        GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
 11284         else
 11285 	        GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
 11286         fi
 11287 	# Put the nasty error message in config.log where it belongs
 11288 	echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
 11290 	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 11292 $GLIB_FOR_BUILD_PKG_ERRORS
 11294 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11295 installed software in a non-standard prefix.
 11297 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11298 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11299 See the pkg-config man page for more details.
 11300 " >&5
 11301 echo "$as_me: error: Package requirements (glib-2.0) were not met:
 11303 $GLIB_FOR_BUILD_PKG_ERRORS
 11305 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11306 installed software in a non-standard prefix.
 11308 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11309 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11310 See the pkg-config man page for more details.
 11311 " >&2;}
 11312    { (exit 1); exit 1; }; }
 11313 elif test $pkg_failed = untried; then
 11314 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11315 is in your PATH or set the PKG_CONFIG environment variable to the full
 11316 path to pkg-config.
 11318 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11319 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11320 See the pkg-config man page for more details.
 11322 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11323 See \`config.log' for more details." >&5
 11324 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11325 is in your PATH or set the PKG_CONFIG environment variable to the full
 11326 path to pkg-config.
 11328 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11329 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11330 See the pkg-config man page for more details.
 11332 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11333 See \`config.log' for more details." >&2;}
 11334    { (exit 1); exit 1; }; }
 11335 else
 11336 	GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
 11337 	GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
 11338         { echo "$as_me:$LINENO: result: yes" >&5
 11339 echo "${ECHO_T}yes" >&6; }
 11341 fi
 11346 if test "$HAVE_GTK" = 'yes'; then
 11347   GUI_GTK_TRUE=
 11348   GUI_GTK_FALSE='#'
 11349 else
 11350   GUI_GTK_TRUE='#'
 11351   GUI_GTK_FALSE=
 11352 fi
 11356 pkg_failed=no
 11357 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
 11358 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
 11360 if test -n "$LIBISOFS_CFLAGS"; then
 11361     pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
 11362  elif test -n "$PKG_CONFIG"; then
 11363     if test -n "$PKG_CONFIG" && \
 11364     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
 11365   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
 11366   ac_status=$?
 11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11368   (exit $ac_status); }; then
 11369   pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
 11370 else
 11371   pkg_failed=yes
 11372 fi
 11373  else
 11374     pkg_failed=untried
 11375 fi
 11376 if test -n "$LIBISOFS_LIBS"; then
 11377     pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
 11378  elif test -n "$PKG_CONFIG"; then
 11379     if test -n "$PKG_CONFIG" && \
 11380     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
 11381   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
 11382   ac_status=$?
 11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11384   (exit $ac_status); }; then
 11385   pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
 11386 else
 11387   pkg_failed=yes
 11388 fi
 11389  else
 11390     pkg_failed=untried
 11391 fi
 11395 if test $pkg_failed = yes; then
 11397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11398         _pkg_short_errors_supported=yes
 11399 else
 11400         _pkg_short_errors_supported=no
 11401 fi
 11402         if test $_pkg_short_errors_supported = yes; then
 11403 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
 11404         else
 11405 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
 11406         fi
 11407 	# Put the nasty error message in config.log where it belongs
 11408 	echo "$LIBISOFS_PKG_ERRORS" >&5
 11410 	{ { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
 11412 $LIBISOFS_PKG_ERRORS
 11414 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11415 installed software in a non-standard prefix.
 11417 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11418 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11419 See the pkg-config man page for more details.
 11420 " >&5
 11421 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
 11423 $LIBISOFS_PKG_ERRORS
 11425 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11426 installed software in a non-standard prefix.
 11428 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11429 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11430 See the pkg-config man page for more details.
 11431 " >&2;}
 11432    { (exit 1); exit 1; }; }
 11433 elif test $pkg_failed = untried; then
 11434 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11435 is in your PATH or set the PKG_CONFIG environment variable to the full
 11436 path to pkg-config.
 11438 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11439 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11440 See the pkg-config man page for more details.
 11442 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11443 See \`config.log' for more details." >&5
 11444 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11445 is in your PATH or set the PKG_CONFIG environment variable to the full
 11446 path to pkg-config.
 11448 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11449 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11450 See the pkg-config man page for more details.
 11452 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11453 See \`config.log' for more details." >&2;}
 11454    { (exit 1); exit 1; }; }
 11455 else
 11456 	LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
 11457 	LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
 11458         { echo "$as_me:$LINENO: result: yes" >&5
 11459 echo "${ECHO_T}yes" >&6; }
 11461 fi
 11463 if test "x$with_osmesa" != xno; then
 11467 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
 11468 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
 11469 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
 11470   echo $ECHO_N "(cached) $ECHO_C" >&6
 11471 else
 11472   ac_check_lib_save_LIBS=$LIBS
 11473 LIBS="-lOSMesa  $LIBS"
 11474 cat >conftest.$ac_ext <<_ACEOF
 11475 /* confdefs.h.  */
 11476 _ACEOF
 11477 cat confdefs.h >>conftest.$ac_ext
 11478 cat >>conftest.$ac_ext <<_ACEOF
 11479 /* end confdefs.h.  */
 11481 /* Override any GCC internal prototype to avoid an error.
 11482    Use char because int might match the return type of a GCC
 11483    builtin and then its argument prototype would still apply.  */
 11484 #ifdef __cplusplus
 11485 extern "C"
 11486 #endif
 11487 char OSMesaCreateContext ();
 11488 int
 11489 main ()
 11491 return OSMesaCreateContext ();
 11493   return 0;
 11495 _ACEOF
 11496 rm -f conftest.$ac_objext conftest$ac_exeext
 11497 if { (ac_try="$ac_link"
 11498 case "(($ac_try" in
 11499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11500   *) ac_try_echo=$ac_try;;
 11501 esac
 11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11503   (eval "$ac_link") 2>conftest.er1
 11504   ac_status=$?
 11505   grep -v '^ *+' conftest.er1 >conftest.err
 11506   rm -f conftest.er1
 11507   cat conftest.err >&5
 11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11509   (exit $ac_status); } && {
 11510 	 test -z "$ac_c_werror_flag" ||
 11511 	 test ! -s conftest.err
 11512        } && test -s conftest$ac_exeext &&
 11513        $as_test_x conftest$ac_exeext; then
 11514   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
 11515 else
 11516   echo "$as_me: failed program was:" >&5
 11517 sed 's/^/| /' conftest.$ac_ext >&5
 11519 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
 11520 fi
 11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11523       conftest$ac_exeext conftest.$ac_ext
 11524 LIBS=$ac_check_lib_save_LIBS
 11525 fi
 11526 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
 11527 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
 11528 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
 11529   cat >>confdefs.h <<_ACEOF
 11530 #define HAVE_LIBOSMESA 1
 11531 _ACEOF
 11533   LIBS="-lOSMesa $LIBS"
 11535 else
 11536   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
 11537 See \`config.log' for more details." >&5
 11538 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
 11539 See \`config.log' for more details." >&2;}
 11540    { (exit 1); exit 1; }; }
 11541 fi
 11543   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11544   { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
 11545 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
 11546 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11547   echo $ECHO_N "(cached) $ECHO_C" >&6
 11548 fi
 11549 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
 11550 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
 11551 else
 11552   # Is the header compilable?
 11553 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
 11554 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
 11555 cat >conftest.$ac_ext <<_ACEOF
 11556 /* confdefs.h.  */
 11557 _ACEOF
 11558 cat confdefs.h >>conftest.$ac_ext
 11559 cat >>conftest.$ac_ext <<_ACEOF
 11560 /* end confdefs.h.  */
 11561 $ac_includes_default
 11562 #include <GL/osmesa.h>
 11563 _ACEOF
 11564 rm -f conftest.$ac_objext
 11565 if { (ac_try="$ac_compile"
 11566 case "(($ac_try" in
 11567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11568   *) ac_try_echo=$ac_try;;
 11569 esac
 11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11571   (eval "$ac_compile") 2>conftest.er1
 11572   ac_status=$?
 11573   grep -v '^ *+' conftest.er1 >conftest.err
 11574   rm -f conftest.er1
 11575   cat conftest.err >&5
 11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11577   (exit $ac_status); } && {
 11578 	 test -z "$ac_c_werror_flag" ||
 11579 	 test ! -s conftest.err
 11580        } && test -s conftest.$ac_objext; then
 11581   ac_header_compiler=yes
 11582 else
 11583   echo "$as_me: failed program was:" >&5
 11584 sed 's/^/| /' conftest.$ac_ext >&5
 11586 	ac_header_compiler=no
 11587 fi
 11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11591 echo "${ECHO_T}$ac_header_compiler" >&6; }
 11593 # Is the header present?
 11594 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
 11595 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
 11596 cat >conftest.$ac_ext <<_ACEOF
 11597 /* confdefs.h.  */
 11598 _ACEOF
 11599 cat confdefs.h >>conftest.$ac_ext
 11600 cat >>conftest.$ac_ext <<_ACEOF
 11601 /* end confdefs.h.  */
 11602 #include <GL/osmesa.h>
 11603 _ACEOF
 11604 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11605 case "(($ac_try" in
 11606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11607   *) ac_try_echo=$ac_try;;
 11608 esac
 11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11610   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11611   ac_status=$?
 11612   grep -v '^ *+' conftest.er1 >conftest.err
 11613   rm -f conftest.er1
 11614   cat conftest.err >&5
 11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11616   (exit $ac_status); } >/dev/null && {
 11617 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11618 	 test ! -s conftest.err
 11619        }; then
 11620   ac_header_preproc=yes
 11621 else
 11622   echo "$as_me: failed program was:" >&5
 11623 sed 's/^/| /' conftest.$ac_ext >&5
 11625   ac_header_preproc=no
 11626 fi
 11628 rm -f conftest.err conftest.$ac_ext
 11629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11630 echo "${ECHO_T}$ac_header_preproc" >&6; }
 11632 # So?  What about this header?
 11633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11634   yes:no: )
 11635     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11636 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11637     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
 11638 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
 11639     ac_header_preproc=yes
 11640     ;;
 11641   no:yes:* )
 11642     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
 11643 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
 11644     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
 11645 echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
 11646     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
 11647 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
 11648     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
 11649 echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11650     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
 11651 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
 11652     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
 11653 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
 11655     ;;
 11656 esac
 11657 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
 11658 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
 11659 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11660   echo $ECHO_N "(cached) $ECHO_C" >&6
 11661 else
 11662   ac_cv_header_GL_osmesa_h=$ac_header_preproc
 11663 fi
 11664 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
 11665 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
 11667 fi
 11668 if test $ac_cv_header_GL_osmesa_h = yes; then
 11670 else
 11671   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
 11672 See \`config.log' for more details." >&5
 11673 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
 11674 See \`config.log' for more details." >&2;}
 11675    { (exit 1); exit 1; }; }
 11676 fi
 11679   HAVE_OSMESA='yes'
 11680   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
 11682 cat >>confdefs.h <<\_ACEOF
 11683 #define HAVE_OSMESA 1
 11684 _ACEOF
 11686 else
 11689    if test "x$APPLE_BUILD" != 'xyes' -a "x$ANDROID_BUILD" != 'xyes'; then
 11691 pkg_failed=no
 11692 { echo "$as_me:$LINENO: checking for LIBGL" >&5
 11693 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
 11695 if test -n "$LIBGL_CFLAGS"; then
 11696     pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
 11697  elif test -n "$PKG_CONFIG"; then
 11698     if test -n "$PKG_CONFIG" && \
 11699     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
 11700   ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
 11701   ac_status=$?
 11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11703   (exit $ac_status); }; then
 11704   pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
 11705 else
 11706   pkg_failed=yes
 11707 fi
 11708  else
 11709     pkg_failed=untried
 11710 fi
 11711 if test -n "$LIBGL_LIBS"; then
 11712     pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
 11713  elif test -n "$PKG_CONFIG"; then
 11714     if test -n "$PKG_CONFIG" && \
 11715     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
 11716   ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
 11717   ac_status=$?
 11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11719   (exit $ac_status); }; then
 11720   pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
 11721 else
 11722   pkg_failed=yes
 11723 fi
 11724  else
 11725     pkg_failed=untried
 11726 fi
 11730 if test $pkg_failed = yes; then
 11732 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11733         _pkg_short_errors_supported=yes
 11734 else
 11735         _pkg_short_errors_supported=no
 11736 fi
 11737         if test $_pkg_short_errors_supported = yes; then
 11738 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
 11739         else
 11740 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
 11741         fi
 11742 	# Put the nasty error message in config.log where it belongs
 11743 	echo "$LIBGL_PKG_ERRORS" >&5
 11745 	{ { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
 11747 $LIBGL_PKG_ERRORS
 11749 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11750 installed software in a non-standard prefix.
 11752 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11753 and LIBGL_LIBS to avoid the need to call pkg-config.
 11754 See the pkg-config man page for more details.
 11755 " >&5
 11756 echo "$as_me: error: Package requirements (gl ) were not met:
 11758 $LIBGL_PKG_ERRORS
 11760 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11761 installed software in a non-standard prefix.
 11763 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11764 and LIBGL_LIBS to avoid the need to call pkg-config.
 11765 See the pkg-config man page for more details.
 11766 " >&2;}
 11767    { (exit 1); exit 1; }; }
 11768 elif test $pkg_failed = untried; then
 11769 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11770 is in your PATH or set the PKG_CONFIG environment variable to the full
 11771 path to pkg-config.
 11773 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11774 and LIBGL_LIBS to avoid the need to call pkg-config.
 11775 See the pkg-config man page for more details.
 11777 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11778 See \`config.log' for more details." >&5
 11779 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11780 is in your PATH or set the PKG_CONFIG environment variable to the full
 11781 path to pkg-config.
 11783 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11784 and LIBGL_LIBS to avoid the need to call pkg-config.
 11785 See the pkg-config man page for more details.
 11787 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11788 See \`config.log' for more details." >&2;}
 11789    { (exit 1); exit 1; }; }
 11790 else
 11791 	LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
 11792 	LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
 11793         { echo "$as_me:$LINENO: result: yes" >&5
 11794 echo "${ECHO_T}yes" >&6; }
 11796 fi
 11797                                       LIBS="$LIBS $LIBGL_LIBS";
 11798       CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
 11799    else
 11800       { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
 11801 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
 11802 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
 11803   echo $ECHO_N "(cached) $ECHO_C" >&6
 11804 else
 11805   cat >conftest.$ac_ext <<_ACEOF
 11806 /* confdefs.h.  */
 11807 _ACEOF
 11808 cat confdefs.h >>conftest.$ac_ext
 11809 cat >>conftest.$ac_ext <<_ACEOF
 11810 /* end confdefs.h.  */
 11811 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
 11812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11813 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
 11815 /* System header to define __stub macros and hopefully few prototypes,
 11816     which can conflict with char NSOpenGLGetVersion (); below.
 11817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11818     <limits.h> exists even on freestanding compilers.  */
 11820 #ifdef __STDC__
 11821 # include <limits.h>
 11822 #else
 11823 # include <assert.h>
 11824 #endif
 11826 #undef NSOpenGLGetVersion
 11828 /* Override any GCC internal prototype to avoid an error.
 11829    Use char because int might match the return type of a GCC
 11830    builtin and then its argument prototype would still apply.  */
 11831 #ifdef __cplusplus
 11832 extern "C"
 11833 #endif
 11834 char NSOpenGLGetVersion ();
 11835 /* The GNU C library defines this for functions which it implements
 11836     to always fail with ENOSYS.  Some functions are actually named
 11837     something starting with __ and the normal name is an alias.  */
 11838 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
 11839 choke me
 11840 #endif
 11842 int
 11843 main ()
 11845 return NSOpenGLGetVersion ();
 11847   return 0;
 11849 _ACEOF
 11850 rm -f conftest.$ac_objext conftest$ac_exeext
 11851 if { (ac_try="$ac_link"
 11852 case "(($ac_try" in
 11853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11854   *) ac_try_echo=$ac_try;;
 11855 esac
 11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11857   (eval "$ac_link") 2>conftest.er1
 11858   ac_status=$?
 11859   grep -v '^ *+' conftest.er1 >conftest.err
 11860   rm -f conftest.er1
 11861   cat conftest.err >&5
 11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11863   (exit $ac_status); } && {
 11864 	 test -z "$ac_c_werror_flag" ||
 11865 	 test ! -s conftest.err
 11866        } && test -s conftest$ac_exeext &&
 11867        $as_test_x conftest$ac_exeext; then
 11868   ac_cv_func_NSOpenGLGetVersion=yes
 11869 else
 11870   echo "$as_me: failed program was:" >&5
 11871 sed 's/^/| /' conftest.$ac_ext >&5
 11873 	ac_cv_func_NSOpenGLGetVersion=no
 11874 fi
 11876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11877       conftest$ac_exeext conftest.$ac_ext
 11878 fi
 11879 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
 11880 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
 11881 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
 11883          HAVE_NSGL='yes'
 11884          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
 11886 cat >>confdefs.h <<\_ACEOF
 11887 #define HAVE_NSGL 1
 11888 _ACEOF
 11890 fi
 11892    fi
 11894    if test "x$HAVE_GTK_X11" = "xyes"; then
 11895       if test "x$APPLE_BUILD" = "xyes"; then
 11896          LIBS="$LIBS -L/usr/X11/lib -lGL"
 11897       fi
 11898       { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
 11899 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
 11900 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
 11901   echo $ECHO_N "(cached) $ECHO_C" >&6
 11902 else
 11903   cat >conftest.$ac_ext <<_ACEOF
 11904 /* confdefs.h.  */
 11905 _ACEOF
 11906 cat confdefs.h >>conftest.$ac_ext
 11907 cat >>conftest.$ac_ext <<_ACEOF
 11908 /* end confdefs.h.  */
 11909 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
 11910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11911 #define glXQueryVersion innocuous_glXQueryVersion
 11913 /* System header to define __stub macros and hopefully few prototypes,
 11914     which can conflict with char glXQueryVersion (); below.
 11915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11916     <limits.h> exists even on freestanding compilers.  */
 11918 #ifdef __STDC__
 11919 # include <limits.h>
 11920 #else
 11921 # include <assert.h>
 11922 #endif
 11924 #undef glXQueryVersion
 11926 /* Override any GCC internal prototype to avoid an error.
 11927    Use char because int might match the return type of a GCC
 11928    builtin and then its argument prototype would still apply.  */
 11929 #ifdef __cplusplus
 11930 extern "C"
 11931 #endif
 11932 char glXQueryVersion ();
 11933 /* The GNU C library defines this for functions which it implements
 11934     to always fail with ENOSYS.  Some functions are actually named
 11935     something starting with __ and the normal name is an alias.  */
 11936 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
 11937 choke me
 11938 #endif
 11940 int
 11941 main ()
 11943 return glXQueryVersion ();
 11945   return 0;
 11947 _ACEOF
 11948 rm -f conftest.$ac_objext conftest$ac_exeext
 11949 if { (ac_try="$ac_link"
 11950 case "(($ac_try" in
 11951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11952   *) ac_try_echo=$ac_try;;
 11953 esac
 11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11955   (eval "$ac_link") 2>conftest.er1
 11956   ac_status=$?
 11957   grep -v '^ *+' conftest.er1 >conftest.err
 11958   rm -f conftest.er1
 11959   cat conftest.err >&5
 11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11961   (exit $ac_status); } && {
 11962 	 test -z "$ac_c_werror_flag" ||
 11963 	 test ! -s conftest.err
 11964        } && test -s conftest$ac_exeext &&
 11965        $as_test_x conftest$ac_exeext; then
 11966   ac_cv_func_glXQueryVersion=yes
 11967 else
 11968   echo "$as_me: failed program was:" >&5
 11969 sed 's/^/| /' conftest.$ac_ext >&5
 11971 	ac_cv_func_glXQueryVersion=no
 11972 fi
 11974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11975       conftest$ac_exeext conftest.$ac_ext
 11976 fi
 11977 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
 11978 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
 11979 if test $ac_cv_func_glXQueryVersion = yes; then
 11981          HAVE_GLX='yes'
 11982          VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
 11984 cat >>confdefs.h <<\_ACEOF
 11985 #define HAVE_GLX 1
 11986 _ACEOF
 11988 fi
 11990    fi
 11993 fi
 12000 if test "x$HAVE_OSMESA" = "xyes"; then
 12001   VIDEO_OSMESA_TRUE=
 12002   VIDEO_OSMESA_FALSE='#'
 12003 else
 12004   VIDEO_OSMESA_TRUE='#'
 12005   VIDEO_OSMESA_FALSE=
 12006 fi
 12010 if test "x$HAVE_GLX" = "xyes"; then
 12011   VIDEO_GLX_TRUE=
 12012   VIDEO_GLX_FALSE='#'
 12013 else
 12014   VIDEO_GLX_TRUE='#'
 12015   VIDEO_GLX_FALSE=
 12016 fi
 12020 if test "x$HAVE_NSGL" = "xyes"; then
 12021   VIDEO_NSGL_TRUE=
 12022   VIDEO_NSGL_FALSE='#'
 12023 else
 12024   VIDEO_NSGL_TRUE='#'
 12025   VIDEO_NSGL_FALSE=
 12026 fi
 12029 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
 12030 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
 12031 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
 12032   echo $ECHO_N "(cached) $ECHO_C" >&6
 12033 else
 12034   cat >conftest.$ac_ext <<_ACEOF
 12035 /* confdefs.h.  */
 12036 _ACEOF
 12037 cat confdefs.h >>conftest.$ac_ext
 12038 cat >>conftest.$ac_ext <<_ACEOF
 12039 /* end confdefs.h.  */
 12040 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
 12041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12042 #define glGenFramebuffers innocuous_glGenFramebuffers
 12044 /* System header to define __stub macros and hopefully few prototypes,
 12045     which can conflict with char glGenFramebuffers (); below.
 12046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12047     <limits.h> exists even on freestanding compilers.  */
 12049 #ifdef __STDC__
 12050 # include <limits.h>
 12051 #else
 12052 # include <assert.h>
 12053 #endif
 12055 #undef glGenFramebuffers
 12057 /* Override any GCC internal prototype to avoid an error.
 12058    Use char because int might match the return type of a GCC
 12059    builtin and then its argument prototype would still apply.  */
 12060 #ifdef __cplusplus
 12061 extern "C"
 12062 #endif
 12063 char glGenFramebuffers ();
 12064 /* The GNU C library defines this for functions which it implements
 12065     to always fail with ENOSYS.  Some functions are actually named
 12066     something starting with __ and the normal name is an alias.  */
 12067 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
 12068 choke me
 12069 #endif
 12071 int
 12072 main ()
 12074 return glGenFramebuffers ();
 12076   return 0;
 12078 _ACEOF
 12079 rm -f conftest.$ac_objext conftest$ac_exeext
 12080 if { (ac_try="$ac_link"
 12081 case "(($ac_try" in
 12082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12083   *) ac_try_echo=$ac_try;;
 12084 esac
 12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12086   (eval "$ac_link") 2>conftest.er1
 12087   ac_status=$?
 12088   grep -v '^ *+' conftest.er1 >conftest.err
 12089   rm -f conftest.er1
 12090   cat conftest.err >&5
 12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12092   (exit $ac_status); } && {
 12093 	 test -z "$ac_c_werror_flag" ||
 12094 	 test ! -s conftest.err
 12095        } && test -s conftest$ac_exeext &&
 12096        $as_test_x conftest$ac_exeext; then
 12097   ac_cv_func_glGenFramebuffers=yes
 12098 else
 12099   echo "$as_me: failed program was:" >&5
 12100 sed 's/^/| /' conftest.$ac_ext >&5
 12102 	ac_cv_func_glGenFramebuffers=no
 12103 fi
 12105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12106       conftest$ac_exeext conftest.$ac_ext
 12107 fi
 12108 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
 12109 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
 12110 if test $ac_cv_func_glGenFramebuffers = yes; then
 12112 cat >>confdefs.h <<\_ACEOF
 12113 #define HAVE_OPENGL_FBO 1
 12114 _ACEOF
 12116 fi
 12118 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
 12119 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
 12120 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
 12121   echo $ECHO_N "(cached) $ECHO_C" >&6
 12122 else
 12123   cat >conftest.$ac_ext <<_ACEOF
 12124 /* confdefs.h.  */
 12125 _ACEOF
 12126 cat confdefs.h >>conftest.$ac_ext
 12127 cat >>conftest.$ac_ext <<_ACEOF
 12128 /* end confdefs.h.  */
 12129 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
 12130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12131 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
 12133 /* System header to define __stub macros and hopefully few prototypes,
 12134     which can conflict with char glGenFramebuffersEXT (); below.
 12135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12136     <limits.h> exists even on freestanding compilers.  */
 12138 #ifdef __STDC__
 12139 # include <limits.h>
 12140 #else
 12141 # include <assert.h>
 12142 #endif
 12144 #undef glGenFramebuffersEXT
 12146 /* Override any GCC internal prototype to avoid an error.
 12147    Use char because int might match the return type of a GCC
 12148    builtin and then its argument prototype would still apply.  */
 12149 #ifdef __cplusplus
 12150 extern "C"
 12151 #endif
 12152 char glGenFramebuffersEXT ();
 12153 /* The GNU C library defines this for functions which it implements
 12154     to always fail with ENOSYS.  Some functions are actually named
 12155     something starting with __ and the normal name is an alias.  */
 12156 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
 12157 choke me
 12158 #endif
 12160 int
 12161 main ()
 12163 return glGenFramebuffersEXT ();
 12165   return 0;
 12167 _ACEOF
 12168 rm -f conftest.$ac_objext conftest$ac_exeext
 12169 if { (ac_try="$ac_link"
 12170 case "(($ac_try" in
 12171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12172   *) ac_try_echo=$ac_try;;
 12173 esac
 12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12175   (eval "$ac_link") 2>conftest.er1
 12176   ac_status=$?
 12177   grep -v '^ *+' conftest.er1 >conftest.err
 12178   rm -f conftest.er1
 12179   cat conftest.err >&5
 12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12181   (exit $ac_status); } && {
 12182 	 test -z "$ac_c_werror_flag" ||
 12183 	 test ! -s conftest.err
 12184        } && test -s conftest$ac_exeext &&
 12185        $as_test_x conftest$ac_exeext; then
 12186   ac_cv_func_glGenFramebuffersEXT=yes
 12187 else
 12188   echo "$as_me: failed program was:" >&5
 12189 sed 's/^/| /' conftest.$ac_ext >&5
 12191 	ac_cv_func_glGenFramebuffersEXT=no
 12192 fi
 12194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12195       conftest$ac_exeext conftest.$ac_ext
 12196 fi
 12197 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
 12198 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
 12199 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
 12201 cat >>confdefs.h <<\_ACEOF
 12202 #define HAVE_OPENGL_FBO_EXT 1
 12203 _ACEOF
 12205 fi
 12207 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
 12208 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
 12209 if test "${ac_cv_func_glCreateShader+set}" = set; then
 12210   echo $ECHO_N "(cached) $ECHO_C" >&6
 12211 else
 12212   cat >conftest.$ac_ext <<_ACEOF
 12213 /* confdefs.h.  */
 12214 _ACEOF
 12215 cat confdefs.h >>conftest.$ac_ext
 12216 cat >>conftest.$ac_ext <<_ACEOF
 12217 /* end confdefs.h.  */
 12218 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
 12219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12220 #define glCreateShader innocuous_glCreateShader
 12222 /* System header to define __stub macros and hopefully few prototypes,
 12223     which can conflict with char glCreateShader (); below.
 12224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12225     <limits.h> exists even on freestanding compilers.  */
 12227 #ifdef __STDC__
 12228 # include <limits.h>
 12229 #else
 12230 # include <assert.h>
 12231 #endif
 12233 #undef glCreateShader
 12235 /* Override any GCC internal prototype to avoid an error.
 12236    Use char because int might match the return type of a GCC
 12237    builtin and then its argument prototype would still apply.  */
 12238 #ifdef __cplusplus
 12239 extern "C"
 12240 #endif
 12241 char glCreateShader ();
 12242 /* The GNU C library defines this for functions which it implements
 12243     to always fail with ENOSYS.  Some functions are actually named
 12244     something starting with __ and the normal name is an alias.  */
 12245 #if defined __stub_glCreateShader || defined __stub___glCreateShader
 12246 choke me
 12247 #endif
 12249 int
 12250 main ()
 12252 return glCreateShader ();
 12254   return 0;
 12256 _ACEOF
 12257 rm -f conftest.$ac_objext conftest$ac_exeext
 12258 if { (ac_try="$ac_link"
 12259 case "(($ac_try" in
 12260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12261   *) ac_try_echo=$ac_try;;
 12262 esac
 12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12264   (eval "$ac_link") 2>conftest.er1
 12265   ac_status=$?
 12266   grep -v '^ *+' conftest.er1 >conftest.err
 12267   rm -f conftest.er1
 12268   cat conftest.err >&5
 12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12270   (exit $ac_status); } && {
 12271 	 test -z "$ac_c_werror_flag" ||
 12272 	 test ! -s conftest.err
 12273        } && test -s conftest$ac_exeext &&
 12274        $as_test_x conftest$ac_exeext; then
 12275   ac_cv_func_glCreateShader=yes
 12276 else
 12277   echo "$as_me: failed program was:" >&5
 12278 sed 's/^/| /' conftest.$ac_ext >&5
 12280 	ac_cv_func_glCreateShader=no
 12281 fi
 12283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12284       conftest$ac_exeext conftest.$ac_ext
 12285 fi
 12286 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
 12287 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
 12288 if test $ac_cv_func_glCreateShader = yes; then
 12290 cat >>confdefs.h <<\_ACEOF
 12291 #define HAVE_OPENGL_SHADER 1
 12292 _ACEOF
 12294 fi
 12296 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
 12297 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
 12298 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
 12299   echo $ECHO_N "(cached) $ECHO_C" >&6
 12300 else
 12301   cat >conftest.$ac_ext <<_ACEOF
 12302 /* confdefs.h.  */
 12303 _ACEOF
 12304 cat confdefs.h >>conftest.$ac_ext
 12305 cat >>conftest.$ac_ext <<_ACEOF
 12306 /* end confdefs.h.  */
 12307 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
 12308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12309 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
 12311 /* System header to define __stub macros and hopefully few prototypes,
 12312     which can conflict with char glCreateShaderObjectARB (); below.
 12313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12314     <limits.h> exists even on freestanding compilers.  */
 12316 #ifdef __STDC__
 12317 # include <limits.h>
 12318 #else
 12319 # include <assert.h>
 12320 #endif
 12322 #undef glCreateShaderObjectARB
 12324 /* Override any GCC internal prototype to avoid an error.
 12325    Use char because int might match the return type of a GCC
 12326    builtin and then its argument prototype would still apply.  */
 12327 #ifdef __cplusplus
 12328 extern "C"
 12329 #endif
 12330 char glCreateShaderObjectARB ();
 12331 /* The GNU C library defines this for functions which it implements
 12332     to always fail with ENOSYS.  Some functions are actually named
 12333     something starting with __ and the normal name is an alias.  */
 12334 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
 12335 choke me
 12336 #endif
 12338 int
 12339 main ()
 12341 return glCreateShaderObjectARB ();
 12343   return 0;
 12345 _ACEOF
 12346 rm -f conftest.$ac_objext conftest$ac_exeext
 12347 if { (ac_try="$ac_link"
 12348 case "(($ac_try" in
 12349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12350   *) ac_try_echo=$ac_try;;
 12351 esac
 12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12353   (eval "$ac_link") 2>conftest.er1
 12354   ac_status=$?
 12355   grep -v '^ *+' conftest.er1 >conftest.err
 12356   rm -f conftest.er1
 12357   cat conftest.err >&5
 12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12359   (exit $ac_status); } && {
 12360 	 test -z "$ac_c_werror_flag" ||
 12361 	 test ! -s conftest.err
 12362        } && test -s conftest$ac_exeext &&
 12363        $as_test_x conftest$ac_exeext; then
 12364   ac_cv_func_glCreateShaderObjectARB=yes
 12365 else
 12366   echo "$as_me: failed program was:" >&5
 12367 sed 's/^/| /' conftest.$ac_ext >&5
 12369 	ac_cv_func_glCreateShaderObjectARB=no
 12370 fi
 12372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12373       conftest$ac_exeext conftest.$ac_ext
 12374 fi
 12375 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
 12376 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
 12377 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
 12379 cat >>confdefs.h <<\_ACEOF
 12380 #define HAVE_OPENGL_SHADER_ARB 1
 12381 _ACEOF
 12383 fi
 12385 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
 12386 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
 12387 if test "${ac_cv_func_glClampColorARB+set}" = set; then
 12388   echo $ECHO_N "(cached) $ECHO_C" >&6
 12389 else
 12390   cat >conftest.$ac_ext <<_ACEOF
 12391 /* confdefs.h.  */
 12392 _ACEOF
 12393 cat confdefs.h >>conftest.$ac_ext
 12394 cat >>conftest.$ac_ext <<_ACEOF
 12395 /* end confdefs.h.  */
 12396 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
 12397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12398 #define glClampColorARB innocuous_glClampColorARB
 12400 /* System header to define __stub macros and hopefully few prototypes,
 12401     which can conflict with char glClampColorARB (); below.
 12402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12403     <limits.h> exists even on freestanding compilers.  */
 12405 #ifdef __STDC__
 12406 # include <limits.h>
 12407 #else
 12408 # include <assert.h>
 12409 #endif
 12411 #undef glClampColorARB
 12413 /* Override any GCC internal prototype to avoid an error.
 12414    Use char because int might match the return type of a GCC
 12415    builtin and then its argument prototype would still apply.  */
 12416 #ifdef __cplusplus
 12417 extern "C"
 12418 #endif
 12419 char glClampColorARB ();
 12420 /* The GNU C library defines this for functions which it implements
 12421     to always fail with ENOSYS.  Some functions are actually named
 12422     something starting with __ and the normal name is an alias.  */
 12423 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
 12424 choke me
 12425 #endif
 12427 int
 12428 main ()
 12430 return glClampColorARB ();
 12432   return 0;
 12434 _ACEOF
 12435 rm -f conftest.$ac_objext conftest$ac_exeext
 12436 if { (ac_try="$ac_link"
 12437 case "(($ac_try" in
 12438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12439   *) ac_try_echo=$ac_try;;
 12440 esac
 12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12442   (eval "$ac_link") 2>conftest.er1
 12443   ac_status=$?
 12444   grep -v '^ *+' conftest.er1 >conftest.err
 12445   rm -f conftest.er1
 12446   cat conftest.err >&5
 12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12448   (exit $ac_status); } && {
 12449 	 test -z "$ac_c_werror_flag" ||
 12450 	 test ! -s conftest.err
 12451        } && test -s conftest$ac_exeext &&
 12452        $as_test_x conftest$ac_exeext; then
 12453   ac_cv_func_glClampColorARB=yes
 12454 else
 12455   echo "$as_me: failed program was:" >&5
 12456 sed 's/^/| /' conftest.$ac_ext >&5
 12458 	ac_cv_func_glClampColorARB=no
 12459 fi
 12461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12462       conftest$ac_exeext conftest.$ac_ext
 12463 fi
 12464 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
 12465 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
 12466 if test $ac_cv_func_glClampColorARB = yes; then
 12468 cat >>confdefs.h <<\_ACEOF
 12469 #define HAVE_OPENGL_CLAMP_COLOR 1
 12470 _ACEOF
 12472 fi
 12474 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
 12475 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
 12476 if test "${ac_cv_func_glClearDepthf+set}" = set; then
 12477   echo $ECHO_N "(cached) $ECHO_C" >&6
 12478 else
 12479   cat >conftest.$ac_ext <<_ACEOF
 12480 /* confdefs.h.  */
 12481 _ACEOF
 12482 cat confdefs.h >>conftest.$ac_ext
 12483 cat >>conftest.$ac_ext <<_ACEOF
 12484 /* end confdefs.h.  */
 12485 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
 12486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12487 #define glClearDepthf innocuous_glClearDepthf
 12489 /* System header to define __stub macros and hopefully few prototypes,
 12490     which can conflict with char glClearDepthf (); below.
 12491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12492     <limits.h> exists even on freestanding compilers.  */
 12494 #ifdef __STDC__
 12495 # include <limits.h>
 12496 #else
 12497 # include <assert.h>
 12498 #endif
 12500 #undef glClearDepthf
 12502 /* Override any GCC internal prototype to avoid an error.
 12503    Use char because int might match the return type of a GCC
 12504    builtin and then its argument prototype would still apply.  */
 12505 #ifdef __cplusplus
 12506 extern "C"
 12507 #endif
 12508 char glClearDepthf ();
 12509 /* The GNU C library defines this for functions which it implements
 12510     to always fail with ENOSYS.  Some functions are actually named
 12511     something starting with __ and the normal name is an alias.  */
 12512 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
 12513 choke me
 12514 #endif
 12516 int
 12517 main ()
 12519 return glClearDepthf ();
 12521   return 0;
 12523 _ACEOF
 12524 rm -f conftest.$ac_objext conftest$ac_exeext
 12525 if { (ac_try="$ac_link"
 12526 case "(($ac_try" in
 12527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12528   *) ac_try_echo=$ac_try;;
 12529 esac
 12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12531   (eval "$ac_link") 2>conftest.er1
 12532   ac_status=$?
 12533   grep -v '^ *+' conftest.er1 >conftest.err
 12534   rm -f conftest.er1
 12535   cat conftest.err >&5
 12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12537   (exit $ac_status); } && {
 12538 	 test -z "$ac_c_werror_flag" ||
 12539 	 test ! -s conftest.err
 12540        } && test -s conftest$ac_exeext &&
 12541        $as_test_x conftest$ac_exeext; then
 12542   ac_cv_func_glClearDepthf=yes
 12543 else
 12544   echo "$as_me: failed program was:" >&5
 12545 sed 's/^/| /' conftest.$ac_ext >&5
 12547 	ac_cv_func_glClearDepthf=no
 12548 fi
 12550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12551       conftest$ac_exeext conftest.$ac_ext
 12552 fi
 12553 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
 12554 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
 12555 if test $ac_cv_func_glClearDepthf = yes; then
 12557 cat >>confdefs.h <<\_ACEOF
 12558 #define HAVE_OPENGL_CLEAR_DEPTHF 1
 12559 _ACEOF
 12561 fi
 12563 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
 12564 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
 12565 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
 12566   echo $ECHO_N "(cached) $ECHO_C" >&6
 12567 else
 12568   cat >conftest.$ac_ext <<_ACEOF
 12569 /* confdefs.h.  */
 12570 _ACEOF
 12571 cat confdefs.h >>conftest.$ac_ext
 12572 cat >>conftest.$ac_ext <<_ACEOF
 12573 /* end confdefs.h.  */
 12574 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
 12575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12576 #define glAreTexturesResident innocuous_glAreTexturesResident
 12578 /* System header to define __stub macros and hopefully few prototypes,
 12579     which can conflict with char glAreTexturesResident (); below.
 12580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12581     <limits.h> exists even on freestanding compilers.  */
 12583 #ifdef __STDC__
 12584 # include <limits.h>
 12585 #else
 12586 # include <assert.h>
 12587 #endif
 12589 #undef glAreTexturesResident
 12591 /* Override any GCC internal prototype to avoid an error.
 12592    Use char because int might match the return type of a GCC
 12593    builtin and then its argument prototype would still apply.  */
 12594 #ifdef __cplusplus
 12595 extern "C"
 12596 #endif
 12597 char glAreTexturesResident ();
 12598 /* The GNU C library defines this for functions which it implements
 12599     to always fail with ENOSYS.  Some functions are actually named
 12600     something starting with __ and the normal name is an alias.  */
 12601 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
 12602 choke me
 12603 #endif
 12605 int
 12606 main ()
 12608 return glAreTexturesResident ();
 12610   return 0;
 12612 _ACEOF
 12613 rm -f conftest.$ac_objext conftest$ac_exeext
 12614 if { (ac_try="$ac_link"
 12615 case "(($ac_try" in
 12616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12617   *) ac_try_echo=$ac_try;;
 12618 esac
 12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12620   (eval "$ac_link") 2>conftest.er1
 12621   ac_status=$?
 12622   grep -v '^ *+' conftest.er1 >conftest.err
 12623   rm -f conftest.er1
 12624   cat conftest.err >&5
 12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12626   (exit $ac_status); } && {
 12627 	 test -z "$ac_c_werror_flag" ||
 12628 	 test ! -s conftest.err
 12629        } && test -s conftest$ac_exeext &&
 12630        $as_test_x conftest$ac_exeext; then
 12631   ac_cv_func_glAreTexturesResident=yes
 12632 else
 12633   echo "$as_me: failed program was:" >&5
 12634 sed 's/^/| /' conftest.$ac_ext >&5
 12636 	ac_cv_func_glAreTexturesResident=no
 12637 fi
 12639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12640       conftest$ac_exeext conftest.$ac_ext
 12641 fi
 12642 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
 12643 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
 12644 if test $ac_cv_func_glAreTexturesResident = yes; then
 12646 cat >>confdefs.h <<\_ACEOF
 12647 #define HAVE_OPENGL_TEX_RESIDENT 1
 12648 _ACEOF
 12650 fi
 12652 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
 12653 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
 12654 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
 12655   echo $ECHO_N "(cached) $ECHO_C" >&6
 12656 else
 12657   cat >conftest.$ac_ext <<_ACEOF
 12658 /* confdefs.h.  */
 12659 _ACEOF
 12660 cat confdefs.h >>conftest.$ac_ext
 12661 cat >>conftest.$ac_ext <<_ACEOF
 12662 /* end confdefs.h.  */
 12663 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
 12664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12665 #define glDrawBuffer innocuous_glDrawBuffer
 12667 /* System header to define __stub macros and hopefully few prototypes,
 12668     which can conflict with char glDrawBuffer (); below.
 12669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12670     <limits.h> exists even on freestanding compilers.  */
 12672 #ifdef __STDC__
 12673 # include <limits.h>
 12674 #else
 12675 # include <assert.h>
 12676 #endif
 12678 #undef glDrawBuffer
 12680 /* Override any GCC internal prototype to avoid an error.
 12681    Use char because int might match the return type of a GCC
 12682    builtin and then its argument prototype would still apply.  */
 12683 #ifdef __cplusplus
 12684 extern "C"
 12685 #endif
 12686 char glDrawBuffer ();
 12687 /* The GNU C library defines this for functions which it implements
 12688     to always fail with ENOSYS.  Some functions are actually named
 12689     something starting with __ and the normal name is an alias.  */
 12690 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
 12691 choke me
 12692 #endif
 12694 int
 12695 main ()
 12697 return glDrawBuffer ();
 12699   return 0;
 12701 _ACEOF
 12702 rm -f conftest.$ac_objext conftest$ac_exeext
 12703 if { (ac_try="$ac_link"
 12704 case "(($ac_try" in
 12705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12706   *) ac_try_echo=$ac_try;;
 12707 esac
 12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12709   (eval "$ac_link") 2>conftest.er1
 12710   ac_status=$?
 12711   grep -v '^ *+' conftest.er1 >conftest.err
 12712   rm -f conftest.er1
 12713   cat conftest.err >&5
 12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12715   (exit $ac_status); } && {
 12716 	 test -z "$ac_c_werror_flag" ||
 12717 	 test ! -s conftest.err
 12718        } && test -s conftest$ac_exeext &&
 12719        $as_test_x conftest$ac_exeext; then
 12720   ac_cv_func_glDrawBuffer=yes
 12721 else
 12722   echo "$as_me: failed program was:" >&5
 12723 sed 's/^/| /' conftest.$ac_ext >&5
 12725 	ac_cv_func_glDrawBuffer=no
 12726 fi
 12728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12729       conftest$ac_exeext conftest.$ac_ext
 12730 fi
 12731 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
 12732 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
 12733 if test $ac_cv_func_glDrawBuffer = yes; then
 12735 cat >>confdefs.h <<\_ACEOF
 12736 #define HAVE_OPENGL_DRAW_BUFFER 1
 12737 _ACEOF
 12739 fi
 12741 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
 12742 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
 12743 if test "${ac_cv_func_glTexEnvi+set}" = set; then
 12744   echo $ECHO_N "(cached) $ECHO_C" >&6
 12745 else
 12746   cat >conftest.$ac_ext <<_ACEOF
 12747 /* confdefs.h.  */
 12748 _ACEOF
 12749 cat confdefs.h >>conftest.$ac_ext
 12750 cat >>conftest.$ac_ext <<_ACEOF
 12751 /* end confdefs.h.  */
 12752 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
 12753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12754 #define glTexEnvi innocuous_glTexEnvi
 12756 /* System header to define __stub macros and hopefully few prototypes,
 12757     which can conflict with char glTexEnvi (); below.
 12758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12759     <limits.h> exists even on freestanding compilers.  */
 12761 #ifdef __STDC__
 12762 # include <limits.h>
 12763 #else
 12764 # include <assert.h>
 12765 #endif
 12767 #undef glTexEnvi
 12769 /* Override any GCC internal prototype to avoid an error.
 12770    Use char because int might match the return type of a GCC
 12771    builtin and then its argument prototype would still apply.  */
 12772 #ifdef __cplusplus
 12773 extern "C"
 12774 #endif
 12775 char glTexEnvi ();
 12776 /* The GNU C library defines this for functions which it implements
 12777     to always fail with ENOSYS.  Some functions are actually named
 12778     something starting with __ and the normal name is an alias.  */
 12779 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
 12780 choke me
 12781 #endif
 12783 int
 12784 main ()
 12786 return glTexEnvi ();
 12788   return 0;
 12790 _ACEOF
 12791 rm -f conftest.$ac_objext conftest$ac_exeext
 12792 if { (ac_try="$ac_link"
 12793 case "(($ac_try" in
 12794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12795   *) ac_try_echo=$ac_try;;
 12796 esac
 12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12798   (eval "$ac_link") 2>conftest.er1
 12799   ac_status=$?
 12800   grep -v '^ *+' conftest.er1 >conftest.err
 12801   rm -f conftest.er1
 12802   cat conftest.err >&5
 12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12804   (exit $ac_status); } && {
 12805 	 test -z "$ac_c_werror_flag" ||
 12806 	 test ! -s conftest.err
 12807        } && test -s conftest$ac_exeext &&
 12808        $as_test_x conftest$ac_exeext; then
 12809   ac_cv_func_glTexEnvi=yes
 12810 else
 12811   echo "$as_me: failed program was:" >&5
 12812 sed 's/^/| /' conftest.$ac_ext >&5
 12814 	ac_cv_func_glTexEnvi=no
 12815 fi
 12817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12818       conftest$ac_exeext conftest.$ac_ext
 12819 fi
 12820 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
 12821 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
 12822 if test $ac_cv_func_glTexEnvi = yes; then
 12824 cat >>confdefs.h <<\_ACEOF
 12825 #define HAVE_OPENGL_FIXEDFUNC 1
 12826 _ACEOF
 12828 fi
 12831 if test "x$enable_translator" != "xno"; then
 12832     case $host_cpu in
 12833         i386|i486|i586|i686|x86_64)
 12834 	    SH4_TRANSLATOR="x86"
 12836 cat >>confdefs.h <<_ACEOF
 12837 #define SH4_TRANSLATOR TARGET_X86
 12838 _ACEOF
 12839 ;;
 12840     esac
 12841 fi
 12844 if test "$SH4_TRANSLATOR" = "x86"; then
 12845   BUILD_SH4X86_TRUE=
 12846   BUILD_SH4X86_FALSE='#'
 12847 else
 12848   BUILD_SH4X86_TRUE='#'
 12849   BUILD_SH4X86_FALSE=
 12850 fi
 12853 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 12854   { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 12855 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 12856 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 12857   echo $ECHO_N "(cached) $ECHO_C" >&6
 12858 fi
 12859 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 12860 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 12861 else
 12862   # Is the header compilable?
 12863 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 12864 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
 12865 cat >conftest.$ac_ext <<_ACEOF
 12866 /* confdefs.h.  */
 12867 _ACEOF
 12868 cat confdefs.h >>conftest.$ac_ext
 12869 cat >>conftest.$ac_ext <<_ACEOF
 12870 /* end confdefs.h.  */
 12871 $ac_includes_default
 12872 #include <CoreAudio/CoreAudio.h>
 12873 _ACEOF
 12874 rm -f conftest.$ac_objext
 12875 if { (ac_try="$ac_compile"
 12876 case "(($ac_try" in
 12877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12878   *) ac_try_echo=$ac_try;;
 12879 esac
 12880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12881   (eval "$ac_compile") 2>conftest.er1
 12882   ac_status=$?
 12883   grep -v '^ *+' conftest.er1 >conftest.err
 12884   rm -f conftest.er1
 12885   cat conftest.err >&5
 12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12887   (exit $ac_status); } && {
 12888 	 test -z "$ac_c_werror_flag" ||
 12889 	 test ! -s conftest.err
 12890        } && test -s conftest.$ac_objext; then
 12891   ac_header_compiler=yes
 12892 else
 12893   echo "$as_me: failed program was:" >&5
 12894 sed 's/^/| /' conftest.$ac_ext >&5
 12896 	ac_header_compiler=no
 12897 fi
 12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 12900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 12901 echo "${ECHO_T}$ac_header_compiler" >&6; }
 12903 # Is the header present?
 12904 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 12905 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
 12906 cat >conftest.$ac_ext <<_ACEOF
 12907 /* confdefs.h.  */
 12908 _ACEOF
 12909 cat confdefs.h >>conftest.$ac_ext
 12910 cat >>conftest.$ac_ext <<_ACEOF
 12911 /* end confdefs.h.  */
 12912 #include <CoreAudio/CoreAudio.h>
 12913 _ACEOF
 12914 if { (ac_try="$ac_cpp conftest.$ac_ext"
 12915 case "(($ac_try" in
 12916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12917   *) ac_try_echo=$ac_try;;
 12918 esac
 12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12920   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 12921   ac_status=$?
 12922   grep -v '^ *+' conftest.er1 >conftest.err
 12923   rm -f conftest.er1
 12924   cat conftest.err >&5
 12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12926   (exit $ac_status); } >/dev/null && {
 12927 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 12928 	 test ! -s conftest.err
 12929        }; then
 12930   ac_header_preproc=yes
 12931 else
 12932   echo "$as_me: failed program was:" >&5
 12933 sed 's/^/| /' conftest.$ac_ext >&5
 12935   ac_header_preproc=no
 12936 fi
 12938 rm -f conftest.err conftest.$ac_ext
 12939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 12940 echo "${ECHO_T}$ac_header_preproc" >&6; }
 12942 # So?  What about this header?
 12943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 12944   yes:no: )
 12945     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 12946 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 12947     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 12948 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 12949     ac_header_preproc=yes
 12950     ;;
 12951   no:yes:* )
 12952     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 12953 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 12954     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 12955 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 12956     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 12957 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 12958     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 12959 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 12960     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 12961 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 12962     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 12963 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 12965     ;;
 12966 esac
 12967 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 12968 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 12969 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 12970   echo $ECHO_N "(cached) $ECHO_C" >&6
 12971 else
 12972   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 12973 fi
 12974 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 12975 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 12977 fi
 12978 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
 12980      HAVE_CORE_AUDIO=yes
 12981      LIBS="$LIBS -framework CoreAudio"
 12982      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
 12984 cat >>confdefs.h <<\_ACEOF
 12985 #define HAVE_CORE_AUDIO 1
 12986 _ACEOF
 12988 else
 12989   true
 12990 fi
 12995 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
 12996   AUDIO_OSX_TRUE=
 12997   AUDIO_OSX_FALSE='#'
 12998 else
 12999   AUDIO_OSX_TRUE='#'
 13000   AUDIO_OSX_FALSE=
 13001 fi
 13004 if test "x$with_sdl" != "xno"; then
 13006 pkg_failed=no
 13007 { echo "$as_me:$LINENO: checking for SDL" >&5
 13008 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
 13010 if test -n "$SDL_CFLAGS"; then
 13011     pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
 13012  elif test -n "$PKG_CONFIG"; then
 13013     if test -n "$PKG_CONFIG" && \
 13014     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 13015   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 13016   ac_status=$?
 13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13018   (exit $ac_status); }; then
 13019   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
 13020 else
 13021   pkg_failed=yes
 13022 fi
 13023  else
 13024     pkg_failed=untried
 13025 fi
 13026 if test -n "$SDL_LIBS"; then
 13027     pkg_cv_SDL_LIBS="$SDL_LIBS"
 13028  elif test -n "$PKG_CONFIG"; then
 13029     if test -n "$PKG_CONFIG" && \
 13030     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 13031   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 13032   ac_status=$?
 13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13034   (exit $ac_status); }; then
 13035   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
 13036 else
 13037   pkg_failed=yes
 13038 fi
 13039  else
 13040     pkg_failed=untried
 13041 fi
 13045 if test $pkg_failed = yes; then
 13047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13048         _pkg_short_errors_supported=yes
 13049 else
 13050         _pkg_short_errors_supported=no
 13051 fi
 13052         if test $_pkg_short_errors_supported = yes; then
 13053 	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
 13054         else
 13055 	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
 13056         fi
 13057 	# Put the nasty error message in config.log where it belongs
 13058 	echo "$SDL_PKG_ERRORS" >&5
 13060 	{ echo "$as_me:$LINENO: result: no" >&5
 13061 echo "${ECHO_T}no" >&6; }
 13063       if test "x$with_sdl" = "xyes"; then
 13064          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 13065 See \`config.log' for more details." >&5
 13066 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 13067 See \`config.log' for more details." >&2;}
 13068    { (exit 1); exit 1; }; }
 13069       fi
 13071 elif test $pkg_failed = untried; then
 13073       if test "x$with_sdl" = "xyes"; then
 13074          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 13075 See \`config.log' for more details." >&5
 13076 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 13077 See \`config.log' for more details." >&2;}
 13078    { (exit 1); exit 1; }; }
 13079       fi
 13081 else
 13082 	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
 13083 	SDL_LIBS=$pkg_cv_SDL_LIBS
 13084         { echo "$as_me:$LINENO: result: yes" >&5
 13085 echo "${ECHO_T}yes" >&6; }
 13087        HAVE_SDL='yes'
 13088        AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
 13090 cat >>confdefs.h <<\_ACEOF
 13091 #define HAVE_SDL 1
 13092 _ACEOF
 13095 fi
 13096 fi
 13099 if test "$HAVE_SDL" = 'yes' ; then
 13100   AUDIO_SDL_TRUE=
 13101   AUDIO_SDL_FALSE='#'
 13102 else
 13103   AUDIO_SDL_TRUE='#'
 13104   AUDIO_SDL_FALSE=
 13105 fi
 13108 if test "x$with_pulse" != "xno"; then
 13110 pkg_failed=no
 13111 { echo "$as_me:$LINENO: checking for PULSE" >&5
 13112 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
 13114 if test -n "$PULSE_CFLAGS"; then
 13115     pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
 13116  elif test -n "$PKG_CONFIG"; then
 13117     if test -n "$PKG_CONFIG" && \
 13118     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 13119   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 13120   ac_status=$?
 13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13122   (exit $ac_status); }; then
 13123   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
 13124 else
 13125   pkg_failed=yes
 13126 fi
 13127  else
 13128     pkg_failed=untried
 13129 fi
 13130 if test -n "$PULSE_LIBS"; then
 13131     pkg_cv_PULSE_LIBS="$PULSE_LIBS"
 13132  elif test -n "$PKG_CONFIG"; then
 13133     if test -n "$PKG_CONFIG" && \
 13134     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 13135   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 13136   ac_status=$?
 13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13138   (exit $ac_status); }; then
 13139   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
 13140 else
 13141   pkg_failed=yes
 13142 fi
 13143  else
 13144     pkg_failed=untried
 13145 fi
 13149 if test $pkg_failed = yes; then
 13151 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13152         _pkg_short_errors_supported=yes
 13153 else
 13154         _pkg_short_errors_supported=no
 13155 fi
 13156         if test $_pkg_short_errors_supported = yes; then
 13157 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
 13158         else
 13159 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
 13160         fi
 13161 	# Put the nasty error message in config.log where it belongs
 13162 	echo "$PULSE_PKG_ERRORS" >&5
 13164 	{ echo "$as_me:$LINENO: result: no" >&5
 13165 echo "${ECHO_T}no" >&6; }
 13167        if test "x$with_pulse" = "xyes"; then
 13168           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 13169 See \`config.log' for more details." >&5
 13170 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 13171 See \`config.log' for more details." >&2;}
 13172    { (exit 1); exit 1; }; }
 13173        fi
 13175 elif test $pkg_failed = untried; then
 13177        if test "x$with_pulse" = "xyes"; then
 13178           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 13179 See \`config.log' for more details." >&5
 13180 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 13181 See \`config.log' for more details." >&2;}
 13182    { (exit 1); exit 1; }; }
 13183        fi
 13185 else
 13186 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
 13187 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
 13188         { echo "$as_me:$LINENO: result: yes" >&5
 13189 echo "${ECHO_T}yes" >&6; }
 13191        HAVE_PULSE='yes'
 13192        AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
 13194 cat >>confdefs.h <<\_ACEOF
 13195 #define HAVE_PULSE 1
 13196 _ACEOF
 13199 fi
 13200 fi
 13203 if test "$HAVE_PULSE" = 'yes' ; then
 13204   AUDIO_PULSE_TRUE=
 13205   AUDIO_PULSE_FALSE='#'
 13206 else
 13207   AUDIO_PULSE_TRUE='#'
 13208   AUDIO_PULSE_FALSE=
 13209 fi
 13212 if test "x$with_esd" != "xno"; then
 13214 pkg_failed=no
 13215 { echo "$as_me:$LINENO: checking for ESOUND" >&5
 13216 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
 13218 if test -n "$ESOUND_CFLAGS"; then
 13219     pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
 13220  elif test -n "$PKG_CONFIG"; then
 13221     if test -n "$PKG_CONFIG" && \
 13222     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 13223   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 13224   ac_status=$?
 13225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13226   (exit $ac_status); }; then
 13227   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
 13228 else
 13229   pkg_failed=yes
 13230 fi
 13231  else
 13232     pkg_failed=untried
 13233 fi
 13234 if test -n "$ESOUND_LIBS"; then
 13235     pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
 13236  elif test -n "$PKG_CONFIG"; then
 13237     if test -n "$PKG_CONFIG" && \
 13238     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 13239   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 13240   ac_status=$?
 13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13242   (exit $ac_status); }; then
 13243   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
 13244 else
 13245   pkg_failed=yes
 13246 fi
 13247  else
 13248     pkg_failed=untried
 13249 fi
 13253 if test $pkg_failed = yes; then
 13255 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13256         _pkg_short_errors_supported=yes
 13257 else
 13258         _pkg_short_errors_supported=no
 13259 fi
 13260         if test $_pkg_short_errors_supported = yes; then
 13261 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
 13262         else
 13263 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
 13264         fi
 13265 	# Put the nasty error message in config.log where it belongs
 13266 	echo "$ESOUND_PKG_ERRORS" >&5
 13268 	{ echo "$as_me:$LINENO: result: no" >&5
 13269 echo "${ECHO_T}no" >&6; }
 13271        if test "x$with_esd" = "xyes"; then
 13272           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 13273 See \`config.log' for more details." >&5
 13274 echo "$as_me: error: ESounD audio package could not be found (but was required)
 13275 See \`config.log' for more details." >&2;}
 13276    { (exit 1); exit 1; }; }
 13277        fi
 13279 elif test $pkg_failed = untried; then
 13281        if test "x$with_esd" = "xyes"; then
 13282           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 13283 See \`config.log' for more details." >&5
 13284 echo "$as_me: error: ESounD audio package could not be found (but was required)
 13285 See \`config.log' for more details." >&2;}
 13286    { (exit 1); exit 1; }; }
 13287        fi
 13289 else
 13290 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
 13291 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
 13292         { echo "$as_me:$LINENO: result: yes" >&5
 13293 echo "${ECHO_T}yes" >&6; }
 13295        HAVE_ESOUND='yes'
 13296        AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
 13298 cat >>confdefs.h <<\_ACEOF
 13299 #define HAVE_ESOUND 1
 13300 _ACEOF
 13303 fi
 13304 fi
 13307 if test "$HAVE_ESOUND" = 'yes' ; then
 13308   AUDIO_ESOUND_TRUE=
 13309   AUDIO_ESOUND_FALSE='#'
 13310 else
 13311   AUDIO_ESOUND_TRUE='#'
 13312   AUDIO_ESOUND_FALSE=
 13313 fi
 13317 pkg_failed=no
 13318 { echo "$as_me:$LINENO: checking for ALSA" >&5
 13319 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
 13321 if test -n "$ALSA_CFLAGS"; then
 13322     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 13323  elif test -n "$PKG_CONFIG"; then
 13324     if test -n "$PKG_CONFIG" && \
 13325     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 13326   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 13327   ac_status=$?
 13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13329   (exit $ac_status); }; then
 13330   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
 13331 else
 13332   pkg_failed=yes
 13333 fi
 13334  else
 13335     pkg_failed=untried
 13336 fi
 13337 if test -n "$ALSA_LIBS"; then
 13338     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 13339  elif test -n "$PKG_CONFIG"; then
 13340     if test -n "$PKG_CONFIG" && \
 13341     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 13342   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 13343   ac_status=$?
 13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13345   (exit $ac_status); }; then
 13346   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
 13347 else
 13348   pkg_failed=yes
 13349 fi
 13350  else
 13351     pkg_failed=untried
 13352 fi
 13356 if test $pkg_failed = yes; then
 13358 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13359         _pkg_short_errors_supported=yes
 13360 else
 13361         _pkg_short_errors_supported=no
 13362 fi
 13363         if test $_pkg_short_errors_supported = yes; then
 13364 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
 13365         else
 13366 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
 13367         fi
 13368 	# Put the nasty error message in config.log where it belongs
 13369 	echo "$ALSA_PKG_ERRORS" >&5
 13371 	{ echo "$as_me:$LINENO: result: no" >&5
 13372 echo "${ECHO_T}no" >&6; }
 13373                 true
 13374 elif test $pkg_failed = untried; then
 13375 	true
 13376 else
 13377 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
 13378 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
 13379         { echo "$as_me:$LINENO: result: yes" >&5
 13380 echo "${ECHO_T}yes" >&6; }
 13382      HAVE_ALSA='yes'
 13383      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
 13385 cat >>confdefs.h <<\_ACEOF
 13386 #define HAVE_ALSA 1
 13387 _ACEOF
 13389 fi
 13392 if test "$HAVE_ALSA" = 'yes' ; then
 13393   AUDIO_ALSA_TRUE=
 13394   AUDIO_ALSA_FALSE='#'
 13395 else
 13396   AUDIO_ALSA_TRUE='#'
 13397   AUDIO_ALSA_FALSE=
 13398 fi
 13402 if test "$ANDROID_BUILD" != "yes"; then
 13403   if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13404   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 13405 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 13406 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13407   echo $ECHO_N "(cached) $ECHO_C" >&6
 13408 fi
 13409 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 13410 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 13411 else
 13412   # Is the header compilable?
 13413 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
 13414 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
 13415 cat >conftest.$ac_ext <<_ACEOF
 13416 /* confdefs.h.  */
 13417 _ACEOF
 13418 cat confdefs.h >>conftest.$ac_ext
 13419 cat >>conftest.$ac_ext <<_ACEOF
 13420 /* end confdefs.h.  */
 13421 $ac_includes_default
 13422 #include <linux/cdrom.h>
 13423 _ACEOF
 13424 rm -f conftest.$ac_objext
 13425 if { (ac_try="$ac_compile"
 13426 case "(($ac_try" in
 13427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13428   *) ac_try_echo=$ac_try;;
 13429 esac
 13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13431   (eval "$ac_compile") 2>conftest.er1
 13432   ac_status=$?
 13433   grep -v '^ *+' conftest.er1 >conftest.err
 13434   rm -f conftest.er1
 13435   cat conftest.err >&5
 13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13437   (exit $ac_status); } && {
 13438 	 test -z "$ac_c_werror_flag" ||
 13439 	 test ! -s conftest.err
 13440        } && test -s conftest.$ac_objext; then
 13441   ac_header_compiler=yes
 13442 else
 13443   echo "$as_me: failed program was:" >&5
 13444 sed 's/^/| /' conftest.$ac_ext >&5
 13446 	ac_header_compiler=no
 13447 fi
 13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13451 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13453 # Is the header present?
 13454 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
 13455 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
 13456 cat >conftest.$ac_ext <<_ACEOF
 13457 /* confdefs.h.  */
 13458 _ACEOF
 13459 cat confdefs.h >>conftest.$ac_ext
 13460 cat >>conftest.$ac_ext <<_ACEOF
 13461 /* end confdefs.h.  */
 13462 #include <linux/cdrom.h>
 13463 _ACEOF
 13464 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13465 case "(($ac_try" in
 13466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13467   *) ac_try_echo=$ac_try;;
 13468 esac
 13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13470   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13471   ac_status=$?
 13472   grep -v '^ *+' conftest.er1 >conftest.err
 13473   rm -f conftest.er1
 13474   cat conftest.err >&5
 13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13476   (exit $ac_status); } >/dev/null && {
 13477 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13478 	 test ! -s conftest.err
 13479        }; then
 13480   ac_header_preproc=yes
 13481 else
 13482   echo "$as_me: failed program was:" >&5
 13483 sed 's/^/| /' conftest.$ac_ext >&5
 13485   ac_header_preproc=no
 13486 fi
 13488 rm -f conftest.err conftest.$ac_ext
 13489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13490 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13492 # So?  What about this header?
 13493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13494   yes:no: )
 13495     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13496 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13497     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
 13498 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
 13499     ac_header_preproc=yes
 13500     ;;
 13501   no:yes:* )
 13502     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
 13503 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
 13504     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
 13505 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
 13506     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
 13507 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
 13508     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
 13509 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13510     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
 13511 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
 13512     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
 13513 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
 13515     ;;
 13516 esac
 13517 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 13518 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 13519 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13520   echo $ECHO_N "(cached) $ECHO_C" >&6
 13521 else
 13522   ac_cv_header_linux_cdrom_h=$ac_header_preproc
 13523 fi
 13524 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 13525 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 13527 fi
 13528 if test $ac_cv_header_linux_cdrom_h = yes; then
 13530      CDROM_DRIVER=linux
 13531           { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
 13532 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
 13533      old_CFLAGS="$CFLAGS"
 13534      CFLAGS="$CFLAGS $STDCFLAG"
 13535      cat >conftest.$ac_ext <<_ACEOF
 13536 /* confdefs.h.  */
 13537 _ACEOF
 13538 cat confdefs.h >>conftest.$ac_ext
 13539 cat >>conftest.$ac_ext <<_ACEOF
 13540 /* end confdefs.h.  */
 13541 #include <linux/cdrom.h>
 13542 int
 13543 main ()
 13547   return 0;
 13549 _ACEOF
 13550 rm -f conftest.$ac_objext
 13551 if { (ac_try="$ac_compile"
 13552 case "(($ac_try" in
 13553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13554   *) ac_try_echo=$ac_try;;
 13555 esac
 13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13557   (eval "$ac_compile") 2>conftest.er1
 13558   ac_status=$?
 13559   grep -v '^ *+' conftest.er1 >conftest.err
 13560   rm -f conftest.er1
 13561   cat conftest.err >&5
 13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13563   (exit $ac_status); } && {
 13564 	 test -z "$ac_c_werror_flag" ||
 13565 	 test ! -s conftest.err
 13566        } && test -s conftest.$ac_objext; then
 13567   { echo "$as_me:$LINENO: result: Yes" >&5
 13568 echo "${ECHO_T}Yes" >&6; }
 13569 else
 13570   echo "$as_me: failed program was:" >&5
 13571 sed 's/^/| /' conftest.$ac_ext >&5
 13574         { echo "$as_me:$LINENO: result: No" >&5
 13575 echo "${ECHO_T}No" >&6; }
 13576         STDCFLAG="-std=gnu99"
 13577 fi
 13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13580      CFLAGS="$old_CFLAGS"
 13582 else
 13583   true
 13584 fi
 13587   if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13588   { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 13589 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 13590 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13591   echo $ECHO_N "(cached) $ECHO_C" >&6
 13592 fi
 13593 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 13594 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 13595 else
 13596   # Is the header compilable?
 13597 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
 13598 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
 13599 cat >conftest.$ac_ext <<_ACEOF
 13600 /* confdefs.h.  */
 13601 _ACEOF
 13602 cat confdefs.h >>conftest.$ac_ext
 13603 cat >>conftest.$ac_ext <<_ACEOF
 13604 /* end confdefs.h.  */
 13605 $ac_includes_default
 13606 #include <IOKit/IOKitLib.h>
 13607 _ACEOF
 13608 rm -f conftest.$ac_objext
 13609 if { (ac_try="$ac_compile"
 13610 case "(($ac_try" in
 13611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13612   *) ac_try_echo=$ac_try;;
 13613 esac
 13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13615   (eval "$ac_compile") 2>conftest.er1
 13616   ac_status=$?
 13617   grep -v '^ *+' conftest.er1 >conftest.err
 13618   rm -f conftest.er1
 13619   cat conftest.err >&5
 13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13621   (exit $ac_status); } && {
 13622 	 test -z "$ac_c_werror_flag" ||
 13623 	 test ! -s conftest.err
 13624        } && test -s conftest.$ac_objext; then
 13625   ac_header_compiler=yes
 13626 else
 13627   echo "$as_me: failed program was:" >&5
 13628 sed 's/^/| /' conftest.$ac_ext >&5
 13630 	ac_header_compiler=no
 13631 fi
 13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13635 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13637 # Is the header present?
 13638 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
 13639 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
 13640 cat >conftest.$ac_ext <<_ACEOF
 13641 /* confdefs.h.  */
 13642 _ACEOF
 13643 cat confdefs.h >>conftest.$ac_ext
 13644 cat >>conftest.$ac_ext <<_ACEOF
 13645 /* end confdefs.h.  */
 13646 #include <IOKit/IOKitLib.h>
 13647 _ACEOF
 13648 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13649 case "(($ac_try" in
 13650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13651   *) ac_try_echo=$ac_try;;
 13652 esac
 13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13655   ac_status=$?
 13656   grep -v '^ *+' conftest.er1 >conftest.err
 13657   rm -f conftest.er1
 13658   cat conftest.err >&5
 13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13660   (exit $ac_status); } >/dev/null && {
 13661 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13662 	 test ! -s conftest.err
 13663        }; then
 13664   ac_header_preproc=yes
 13665 else
 13666   echo "$as_me: failed program was:" >&5
 13667 sed 's/^/| /' conftest.$ac_ext >&5
 13669   ac_header_preproc=no
 13670 fi
 13672 rm -f conftest.err conftest.$ac_ext
 13673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13674 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13676 # So?  What about this header?
 13677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13678   yes:no: )
 13679     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13680 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13681     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
 13682 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
 13683     ac_header_preproc=yes
 13684     ;;
 13685   no:yes:* )
 13686     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
 13687 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
 13688     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&5
 13689 echo "$as_me: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&2;}
 13690     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
 13691 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
 13692     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&5
 13693 echo "$as_me: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13694     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
 13695 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
 13696     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
 13697 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
 13699     ;;
 13700 esac
 13701 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 13702 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 13703 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13704   echo $ECHO_N "(cached) $ECHO_C" >&6
 13705 else
 13706   ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
 13707 fi
 13708 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 13709 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 13711 fi
 13712 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
 13714        CDROM_DRIVER=osx
 13715        LIBS="$LIBS -framework IOKit"
 13716 else
 13717   true
 13718 fi
 13721 fi
 13724 if test "x$CDROM_DRIVER" = "xlinux"; then
 13725   CDROM_LINUX_TRUE=
 13726   CDROM_LINUX_FALSE='#'
 13727 else
 13728   CDROM_LINUX_TRUE='#'
 13729   CDROM_LINUX_FALSE=
 13730 fi
 13734 if test "x$CDROM_DRIVER" = "xosx"; then
 13735   CDROM_OSX_TRUE=
 13736   CDROM_OSX_FALSE='#'
 13737 else
 13738   CDROM_OSX_TRUE='#'
 13739   CDROM_OSX_FALSE=
 13740 fi
 13744 if test "x$CDROM_DRIVER" = "x"; then
 13745   CDROM_NONE_TRUE=
 13746   CDROM_NONE_FALSE='#'
 13747 else
 13748   CDROM_NONE_TRUE='#'
 13749   CDROM_NONE_FALSE=
 13750 fi
 13752 if test "x$CDROM_DRIVER" = "xlinux"; then
 13754 cat >>confdefs.h <<\_ACEOF
 13755 #define HAVE_LINUX_CDROM 1
 13756 _ACEOF
 13758 fi
 13760 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 13761   { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 13762 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 13763 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 13764   echo $ECHO_N "(cached) $ECHO_C" >&6
 13765 fi
 13766 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 13767 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 13768 else
 13769   # Is the header compilable?
 13770 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
 13771 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
 13772 cat >conftest.$ac_ext <<_ACEOF
 13773 /* confdefs.h.  */
 13774 _ACEOF
 13775 cat confdefs.h >>conftest.$ac_ext
 13776 cat >>conftest.$ac_ext <<_ACEOF
 13777 /* end confdefs.h.  */
 13778 $ac_includes_default
 13779 #include <linux/joystick.h>
 13780 _ACEOF
 13781 rm -f conftest.$ac_objext
 13782 if { (ac_try="$ac_compile"
 13783 case "(($ac_try" in
 13784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13785   *) ac_try_echo=$ac_try;;
 13786 esac
 13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13788   (eval "$ac_compile") 2>conftest.er1
 13789   ac_status=$?
 13790   grep -v '^ *+' conftest.er1 >conftest.err
 13791   rm -f conftest.er1
 13792   cat conftest.err >&5
 13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13794   (exit $ac_status); } && {
 13795 	 test -z "$ac_c_werror_flag" ||
 13796 	 test ! -s conftest.err
 13797        } && test -s conftest.$ac_objext; then
 13798   ac_header_compiler=yes
 13799 else
 13800   echo "$as_me: failed program was:" >&5
 13801 sed 's/^/| /' conftest.$ac_ext >&5
 13803 	ac_header_compiler=no
 13804 fi
 13806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13808 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13810 # Is the header present?
 13811 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
 13812 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
 13813 cat >conftest.$ac_ext <<_ACEOF
 13814 /* confdefs.h.  */
 13815 _ACEOF
 13816 cat confdefs.h >>conftest.$ac_ext
 13817 cat >>conftest.$ac_ext <<_ACEOF
 13818 /* end confdefs.h.  */
 13819 #include <linux/joystick.h>
 13820 _ACEOF
 13821 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13822 case "(($ac_try" in
 13823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13824   *) ac_try_echo=$ac_try;;
 13825 esac
 13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13828   ac_status=$?
 13829   grep -v '^ *+' conftest.er1 >conftest.err
 13830   rm -f conftest.er1
 13831   cat conftest.err >&5
 13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13833   (exit $ac_status); } >/dev/null && {
 13834 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13835 	 test ! -s conftest.err
 13836        }; then
 13837   ac_header_preproc=yes
 13838 else
 13839   echo "$as_me: failed program was:" >&5
 13840 sed 's/^/| /' conftest.$ac_ext >&5
 13842   ac_header_preproc=no
 13843 fi
 13845 rm -f conftest.err conftest.$ac_ext
 13846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13847 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13849 # So?  What about this header?
 13850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13851   yes:no: )
 13852     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13853 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13854     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
 13855 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
 13856     ac_header_preproc=yes
 13857     ;;
 13858   no:yes:* )
 13859     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
 13860 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
 13861     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
 13862 echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
 13863     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
 13864 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
 13865     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
 13866 echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13867     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
 13868 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
 13869     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
 13870 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
 13872     ;;
 13873 esac
 13874 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 13875 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 13876 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 13877   echo $ECHO_N "(cached) $ECHO_C" >&6
 13878 else
 13879   ac_cv_header_linux_joystick_h=$ac_header_preproc
 13880 fi
 13881 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 13882 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 13884 fi
 13885 if test $ac_cv_header_linux_joystick_h = yes; then
 13887     HAVE_LINUX_JOYSTICK_H=yes
 13889 cat >>confdefs.h <<\_ACEOF
 13890 #define HAVE_LINUX_JOYSTICK 1
 13891 _ACEOF
 13893     INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
 13894 else
 13895    echo "Linux Joystick support not found, building without it."
 13896 fi
 13901 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
 13902   JOY_LINUX_TRUE=
 13903   JOY_LINUX_FALSE='#'
 13904 else
 13905   JOY_LINUX_TRUE='#'
 13906   JOY_LINUX_FALSE=
 13907 fi
 13910 if test "x$with_lirc" != "xno"; then
 13911     if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 13912   { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 13913 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 13914 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 13915   echo $ECHO_N "(cached) $ECHO_C" >&6
 13916 fi
 13917 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 13918 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 13919 else
 13920   # Is the header compilable?
 13921 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
 13922 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
 13923 cat >conftest.$ac_ext <<_ACEOF
 13924 /* confdefs.h.  */
 13925 _ACEOF
 13926 cat confdefs.h >>conftest.$ac_ext
 13927 cat >>conftest.$ac_ext <<_ACEOF
 13928 /* end confdefs.h.  */
 13929 $ac_includes_default
 13930 #include <lirc/lirc_client.h>
 13931 _ACEOF
 13932 rm -f conftest.$ac_objext
 13933 if { (ac_try="$ac_compile"
 13934 case "(($ac_try" in
 13935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13936   *) ac_try_echo=$ac_try;;
 13937 esac
 13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13939   (eval "$ac_compile") 2>conftest.er1
 13940   ac_status=$?
 13941   grep -v '^ *+' conftest.er1 >conftest.err
 13942   rm -f conftest.er1
 13943   cat conftest.err >&5
 13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13945   (exit $ac_status); } && {
 13946 	 test -z "$ac_c_werror_flag" ||
 13947 	 test ! -s conftest.err
 13948        } && test -s conftest.$ac_objext; then
 13949   ac_header_compiler=yes
 13950 else
 13951   echo "$as_me: failed program was:" >&5
 13952 sed 's/^/| /' conftest.$ac_ext >&5
 13954 	ac_header_compiler=no
 13955 fi
 13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13959 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13961 # Is the header present?
 13962 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
 13963 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
 13964 cat >conftest.$ac_ext <<_ACEOF
 13965 /* confdefs.h.  */
 13966 _ACEOF
 13967 cat confdefs.h >>conftest.$ac_ext
 13968 cat >>conftest.$ac_ext <<_ACEOF
 13969 /* end confdefs.h.  */
 13970 #include <lirc/lirc_client.h>
 13971 _ACEOF
 13972 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13973 case "(($ac_try" in
 13974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13975   *) ac_try_echo=$ac_try;;
 13976 esac
 13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13978   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13979   ac_status=$?
 13980   grep -v '^ *+' conftest.er1 >conftest.err
 13981   rm -f conftest.er1
 13982   cat conftest.err >&5
 13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13984   (exit $ac_status); } >/dev/null && {
 13985 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13986 	 test ! -s conftest.err
 13987        }; then
 13988   ac_header_preproc=yes
 13989 else
 13990   echo "$as_me: failed program was:" >&5
 13991 sed 's/^/| /' conftest.$ac_ext >&5
 13993   ac_header_preproc=no
 13994 fi
 13996 rm -f conftest.err conftest.$ac_ext
 13997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13998 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14000 # So?  What about this header?
 14001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14002   yes:no: )
 14003     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
 14004 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14005     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
 14006 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
 14007     ac_header_preproc=yes
 14008     ;;
 14009   no:yes:* )
 14010     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
 14011 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
 14012     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&5
 14013 echo "$as_me: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&2;}
 14014     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
 14015 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
 14016     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&5
 14017 echo "$as_me: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14018     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
 14019 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
 14020     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
 14021 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
 14023     ;;
 14024 esac
 14025 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 14026 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 14027 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 14028   echo $ECHO_N "(cached) $ECHO_C" >&6
 14029 else
 14030   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
 14031 fi
 14032 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 14033 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 14035 fi
 14036 if test $ac_cv_header_lirc_lirc_client_h = yes; then
 14038         HAVE_LIRC_CLIENT_H=yes
 14040 cat >>confdefs.h <<\_ACEOF
 14041 #define HAVE_LIRC 1
 14042 _ACEOF
 14044         INPUT_DRIVERS="$INPUT_DRIVERS lirc"
 14046 else
 14047    echo "LIRC support not found, building without it."
 14048 fi
 14051 fi
 14054 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
 14055   INPUT_LIRC_TRUE=
 14056   INPUT_LIRC_FALSE='#'
 14057 else
 14058   INPUT_LIRC_TRUE='#'
 14059   INPUT_LIRC_FALSE=
 14060 fi
 14063 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
 14064 set dummy sh-elf-gcc; ac_word=$2
 14065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14067 if test "${ac_cv_path_SHCC+set}" = set; then
 14068   echo $ECHO_N "(cached) $ECHO_C" >&6
 14069 else
 14070   case $SHCC in
 14071   [\\/]* | ?:[\\/]*)
 14072   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
 14073   ;;
 14074   *)
 14075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14076 for as_dir in $PATH
 14077 do
 14078   IFS=$as_save_IFS
 14079   test -z "$as_dir" && as_dir=.
 14080   for ac_exec_ext in '' $ac_executable_extensions; do
 14081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14082     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
 14083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14084     break 2
 14085   fi
 14086 done
 14087 done
 14088 IFS=$as_save_IFS
 14090   ;;
 14091 esac
 14092 fi
 14093 SHCC=$ac_cv_path_SHCC
 14094 if test -n "$SHCC"; then
 14095   { echo "$as_me:$LINENO: result: $SHCC" >&5
 14096 echo "${ECHO_T}$SHCC" >&6; }
 14097 else
 14098   { echo "$as_me:$LINENO: result: no" >&5
 14099 echo "${ECHO_T}no" >&6; }
 14100 fi
 14103 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
 14104 set dummy sh-elf-ld; ac_word=$2
 14105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14107 if test "${ac_cv_path_SHLD+set}" = set; then
 14108   echo $ECHO_N "(cached) $ECHO_C" >&6
 14109 else
 14110   case $SHLD in
 14111   [\\/]* | ?:[\\/]*)
 14112   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
 14113   ;;
 14114   *)
 14115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14116 for as_dir in $PATH
 14117 do
 14118   IFS=$as_save_IFS
 14119   test -z "$as_dir" && as_dir=.
 14120   for ac_exec_ext in '' $ac_executable_extensions; do
 14121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14122     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
 14123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14124     break 2
 14125   fi
 14126 done
 14127 done
 14128 IFS=$as_save_IFS
 14130   ;;
 14131 esac
 14132 fi
 14133 SHLD=$ac_cv_path_SHLD
 14134 if test -n "$SHLD"; then
 14135   { echo "$as_me:$LINENO: result: $SHLD" >&5
 14136 echo "${ECHO_T}$SHLD" >&6; }
 14137 else
 14138   { echo "$as_me:$LINENO: result: no" >&5
 14139 echo "${ECHO_T}no" >&6; }
 14140 fi
 14143 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
 14144 set dummy sh-elf-objcopy; ac_word=$2
 14145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14147 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
 14148   echo $ECHO_N "(cached) $ECHO_C" >&6
 14149 else
 14150   case $SHOBJCOPY in
 14151   [\\/]* | ?:[\\/]*)
 14152   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
 14153   ;;
 14154   *)
 14155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14156 for as_dir in $PATH
 14157 do
 14158   IFS=$as_save_IFS
 14159   test -z "$as_dir" && as_dir=.
 14160   for ac_exec_ext in '' $ac_executable_extensions; do
 14161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14162     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 14163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14164     break 2
 14165   fi
 14166 done
 14167 done
 14168 IFS=$as_save_IFS
 14170   ;;
 14171 esac
 14172 fi
 14173 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
 14174 if test -n "$SHOBJCOPY"; then
 14175   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
 14176 echo "${ECHO_T}$SHOBJCOPY" >&6; }
 14177 else
 14178   { echo "$as_me:$LINENO: result: no" >&5
 14179 echo "${ECHO_T}no" >&6; }
 14180 fi
 14183 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
 14184 set dummy arm-elf-gcc; ac_word=$2
 14185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14187 if test "${ac_cv_path_ARMCC+set}" = set; then
 14188   echo $ECHO_N "(cached) $ECHO_C" >&6
 14189 else
 14190   case $ARMCC in
 14191   [\\/]* | ?:[\\/]*)
 14192   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
 14193   ;;
 14194   *)
 14195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14196 for as_dir in $PATH
 14197 do
 14198   IFS=$as_save_IFS
 14199   test -z "$as_dir" && as_dir=.
 14200   for ac_exec_ext in '' $ac_executable_extensions; do
 14201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14202     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
 14203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14204     break 2
 14205   fi
 14206 done
 14207 done
 14208 IFS=$as_save_IFS
 14210   ;;
 14211 esac
 14212 fi
 14213 ARMCC=$ac_cv_path_ARMCC
 14214 if test -n "$ARMCC"; then
 14215   { echo "$as_me:$LINENO: result: $ARMCC" >&5
 14216 echo "${ECHO_T}$ARMCC" >&6; }
 14217 else
 14218   { echo "$as_me:$LINENO: result: no" >&5
 14219 echo "${ECHO_T}no" >&6; }
 14220 fi
 14223 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
 14224 set dummy arm-elf-ld; ac_word=$2
 14225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14227 if test "${ac_cv_path_ARMLD+set}" = set; then
 14228   echo $ECHO_N "(cached) $ECHO_C" >&6
 14229 else
 14230   case $ARMLD in
 14231   [\\/]* | ?:[\\/]*)
 14232   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
 14233   ;;
 14234   *)
 14235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14236 for as_dir in $PATH
 14237 do
 14238   IFS=$as_save_IFS
 14239   test -z "$as_dir" && as_dir=.
 14240   for ac_exec_ext in '' $ac_executable_extensions; do
 14241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14242     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
 14243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14244     break 2
 14245   fi
 14246 done
 14247 done
 14248 IFS=$as_save_IFS
 14250   ;;
 14251 esac
 14252 fi
 14253 ARMLD=$ac_cv_path_ARMLD
 14254 if test -n "$ARMLD"; then
 14255   { echo "$as_me:$LINENO: result: $ARMLD" >&5
 14256 echo "${ECHO_T}$ARMLD" >&6; }
 14257 else
 14258   { echo "$as_me:$LINENO: result: no" >&5
 14259 echo "${ECHO_T}no" >&6; }
 14260 fi
 14263 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
 14264 set dummy arm-elf-objcopy; ac_word=$2
 14265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14267 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
 14268   echo $ECHO_N "(cached) $ECHO_C" >&6
 14269 else
 14270   case $ARMOBJCOPY in
 14271   [\\/]* | ?:[\\/]*)
 14272   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
 14273   ;;
 14274   *)
 14275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14276 for as_dir in $PATH
 14277 do
 14278   IFS=$as_save_IFS
 14279   test -z "$as_dir" && as_dir=.
 14280   for ac_exec_ext in '' $ac_executable_extensions; do
 14281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14282     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 14283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14284     break 2
 14285   fi
 14286 done
 14287 done
 14288 IFS=$as_save_IFS
 14290   ;;
 14291 esac
 14292 fi
 14293 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
 14294 if test -n "$ARMOBJCOPY"; then
 14295   { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
 14296 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
 14297 else
 14298   { echo "$as_me:$LINENO: result: no" >&5
 14299 echo "${ECHO_T}no" >&6; }
 14300 fi
 14304 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
 14305   BUILD_SH="no"
 14306   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
 14307 else
 14308   BUILD_SH="yes"
 14309 fi
 14310 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
 14311   BUILD_ARM="no"
 14312   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
 14313 else
 14314   BUILD_ARM="yes"
 14315 fi
 14318 if test "$BUILD_SH" = "yes"; then
 14319   BUILD_SYSTEST_TRUE=
 14320   BUILD_SYSTEST_FALSE='#'
 14321 else
 14322   BUILD_SYSTEST_TRUE='#'
 14323   BUILD_SYSTEST_FALSE=
 14324 fi
 14328 if test "$BUILD_ARM" = "yes"; then
 14329   BUILD_ARMTEST_TRUE=
 14330   BUILD_ARMTEST_FALSE='#'
 14331 else
 14332   BUILD_ARMTEST_TRUE='#'
 14333   BUILD_ARMTEST_FALSE=
 14334 fi
 14337 CFLAGS="$CFLAGS $STDCFLAG"
 14339 GETTEXT_PACKAGE=lxdream
 14340 LXDREAM_LIBS="$LIBS"
 14341 LIBS=""
 14345 cat >>confdefs.h <<_ACEOF
 14346 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 14347 _ACEOF
 14350 ALL_LINGUAS="de es it nl pt_BR"
 14353 for ac_header in locale.h
 14354 do
 14355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 14356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14357   { echo "$as_me:$LINENO: checking for $ac_header" >&5
 14358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 14359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14360   echo $ECHO_N "(cached) $ECHO_C" >&6
 14361 fi
 14362 ac_res=`eval echo '${'$as_ac_Header'}'`
 14363 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14364 echo "${ECHO_T}$ac_res" >&6; }
 14365 else
 14366   # Is the header compilable?
 14367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
 14368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 14369 cat >conftest.$ac_ext <<_ACEOF
 14370 /* confdefs.h.  */
 14371 _ACEOF
 14372 cat confdefs.h >>conftest.$ac_ext
 14373 cat >>conftest.$ac_ext <<_ACEOF
 14374 /* end confdefs.h.  */
 14375 $ac_includes_default
 14376 #include <$ac_header>
 14377 _ACEOF
 14378 rm -f conftest.$ac_objext
 14379 if { (ac_try="$ac_compile"
 14380 case "(($ac_try" in
 14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14382   *) ac_try_echo=$ac_try;;
 14383 esac
 14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14385   (eval "$ac_compile") 2>conftest.er1
 14386   ac_status=$?
 14387   grep -v '^ *+' conftest.er1 >conftest.err
 14388   rm -f conftest.er1
 14389   cat conftest.err >&5
 14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14391   (exit $ac_status); } && {
 14392 	 test -z "$ac_c_werror_flag" ||
 14393 	 test ! -s conftest.err
 14394        } && test -s conftest.$ac_objext; then
 14395   ac_header_compiler=yes
 14396 else
 14397   echo "$as_me: failed program was:" >&5
 14398 sed 's/^/| /' conftest.$ac_ext >&5
 14400 	ac_header_compiler=no
 14401 fi
 14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14405 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14407 # Is the header present?
 14408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
 14409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 14410 cat >conftest.$ac_ext <<_ACEOF
 14411 /* confdefs.h.  */
 14412 _ACEOF
 14413 cat confdefs.h >>conftest.$ac_ext
 14414 cat >>conftest.$ac_ext <<_ACEOF
 14415 /* end confdefs.h.  */
 14416 #include <$ac_header>
 14417 _ACEOF
 14418 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14419 case "(($ac_try" in
 14420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14421   *) ac_try_echo=$ac_try;;
 14422 esac
 14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14425   ac_status=$?
 14426   grep -v '^ *+' conftest.er1 >conftest.err
 14427   rm -f conftest.er1
 14428   cat conftest.err >&5
 14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14430   (exit $ac_status); } >/dev/null && {
 14431 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14432 	 test ! -s conftest.err
 14433        }; then
 14434   ac_header_preproc=yes
 14435 else
 14436   echo "$as_me: failed program was:" >&5
 14437 sed 's/^/| /' conftest.$ac_ext >&5
 14439   ac_header_preproc=no
 14440 fi
 14442 rm -f conftest.err conftest.$ac_ext
 14443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14444 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14446 # So?  What about this header?
 14447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14448   yes:no: )
 14449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 14450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 14452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 14453     ac_header_preproc=yes
 14454     ;;
 14455   no:yes:* )
 14456     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 14457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 14458     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 14459 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 14460     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 14461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 14462     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 14463 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 14464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 14465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 14466     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 14467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 14469     ;;
 14470 esac
 14471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
 14472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 14473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14474   echo $ECHO_N "(cached) $ECHO_C" >&6
 14475 else
 14476   eval "$as_ac_Header=\$ac_header_preproc"
 14477 fi
 14478 ac_res=`eval echo '${'$as_ac_Header'}'`
 14479 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14480 echo "${ECHO_T}$ac_res" >&6; }
 14482 fi
 14483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
 14484   cat >>confdefs.h <<_ACEOF
 14485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 14486 _ACEOF
 14488 fi
 14490 done
 14492     if test $ac_cv_header_locale_h = yes; then
 14493     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 14494 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 14495 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 14496   echo $ECHO_N "(cached) $ECHO_C" >&6
 14497 else
 14498   cat >conftest.$ac_ext <<_ACEOF
 14499 /* confdefs.h.  */
 14500 _ACEOF
 14501 cat confdefs.h >>conftest.$ac_ext
 14502 cat >>conftest.$ac_ext <<_ACEOF
 14503 /* end confdefs.h.  */
 14504 #include <locale.h>
 14505 int
 14506 main ()
 14508 return LC_MESSAGES
 14510   return 0;
 14512 _ACEOF
 14513 rm -f conftest.$ac_objext conftest$ac_exeext
 14514 if { (ac_try="$ac_link"
 14515 case "(($ac_try" in
 14516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14517   *) ac_try_echo=$ac_try;;
 14518 esac
 14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14520   (eval "$ac_link") 2>conftest.er1
 14521   ac_status=$?
 14522   grep -v '^ *+' conftest.er1 >conftest.err
 14523   rm -f conftest.er1
 14524   cat conftest.err >&5
 14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14526   (exit $ac_status); } && {
 14527 	 test -z "$ac_c_werror_flag" ||
 14528 	 test ! -s conftest.err
 14529        } && test -s conftest$ac_exeext &&
 14530        $as_test_x conftest$ac_exeext; then
 14531   am_cv_val_LC_MESSAGES=yes
 14532 else
 14533   echo "$as_me: failed program was:" >&5
 14534 sed 's/^/| /' conftest.$ac_ext >&5
 14536 	am_cv_val_LC_MESSAGES=no
 14537 fi
 14539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14540       conftest$ac_exeext conftest.$ac_ext
 14541 fi
 14542 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 14543 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
 14544     if test $am_cv_val_LC_MESSAGES = yes; then
 14546 cat >>confdefs.h <<\_ACEOF
 14547 #define HAVE_LC_MESSAGES 1
 14548 _ACEOF
 14550     fi
 14551   fi
 14552      USE_NLS=yes
 14555     gt_cv_have_gettext=no
 14557     CATOBJEXT=NONE
 14558     XGETTEXT=:
 14559     INTLLIBS=
 14561     if test "${ac_cv_header_libintl_h+set}" = set; then
 14562   { echo "$as_me:$LINENO: checking for libintl.h" >&5
 14563 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 14564 if test "${ac_cv_header_libintl_h+set}" = set; then
 14565   echo $ECHO_N "(cached) $ECHO_C" >&6
 14566 fi
 14567 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 14568 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 14569 else
 14570   # Is the header compilable?
 14571 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
 14572 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
 14573 cat >conftest.$ac_ext <<_ACEOF
 14574 /* confdefs.h.  */
 14575 _ACEOF
 14576 cat confdefs.h >>conftest.$ac_ext
 14577 cat >>conftest.$ac_ext <<_ACEOF
 14578 /* end confdefs.h.  */
 14579 $ac_includes_default
 14580 #include <libintl.h>
 14581 _ACEOF
 14582 rm -f conftest.$ac_objext
 14583 if { (ac_try="$ac_compile"
 14584 case "(($ac_try" in
 14585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14586   *) ac_try_echo=$ac_try;;
 14587 esac
 14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14589   (eval "$ac_compile") 2>conftest.er1
 14590   ac_status=$?
 14591   grep -v '^ *+' conftest.er1 >conftest.err
 14592   rm -f conftest.er1
 14593   cat conftest.err >&5
 14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14595   (exit $ac_status); } && {
 14596 	 test -z "$ac_c_werror_flag" ||
 14597 	 test ! -s conftest.err
 14598        } && test -s conftest.$ac_objext; then
 14599   ac_header_compiler=yes
 14600 else
 14601   echo "$as_me: failed program was:" >&5
 14602 sed 's/^/| /' conftest.$ac_ext >&5
 14604 	ac_header_compiler=no
 14605 fi
 14607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14609 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14611 # Is the header present?
 14612 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
 14613 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
 14614 cat >conftest.$ac_ext <<_ACEOF
 14615 /* confdefs.h.  */
 14616 _ACEOF
 14617 cat confdefs.h >>conftest.$ac_ext
 14618 cat >>conftest.$ac_ext <<_ACEOF
 14619 /* end confdefs.h.  */
 14620 #include <libintl.h>
 14621 _ACEOF
 14622 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14623 case "(($ac_try" in
 14624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14625   *) ac_try_echo=$ac_try;;
 14626 esac
 14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14629   ac_status=$?
 14630   grep -v '^ *+' conftest.er1 >conftest.err
 14631   rm -f conftest.er1
 14632   cat conftest.err >&5
 14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14634   (exit $ac_status); } >/dev/null && {
 14635 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14636 	 test ! -s conftest.err
 14637        }; then
 14638   ac_header_preproc=yes
 14639 else
 14640   echo "$as_me: failed program was:" >&5
 14641 sed 's/^/| /' conftest.$ac_ext >&5
 14643   ac_header_preproc=no
 14644 fi
 14646 rm -f conftest.err conftest.$ac_ext
 14647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14648 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14650 # So?  What about this header?
 14651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14652   yes:no: )
 14653     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 14654 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14655     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 14656 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 14657     ac_header_preproc=yes
 14658     ;;
 14659   no:yes:* )
 14660     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 14661 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 14662     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 14663 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 14664     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 14665 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 14666     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 14667 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14668     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 14669 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 14670     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 14671 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 14673     ;;
 14674 esac
 14675 { echo "$as_me:$LINENO: checking for libintl.h" >&5
 14676 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 14677 if test "${ac_cv_header_libintl_h+set}" = set; then
 14678   echo $ECHO_N "(cached) $ECHO_C" >&6
 14679 else
 14680   ac_cv_header_libintl_h=$ac_header_preproc
 14681 fi
 14682 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 14683 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 14685 fi
 14686 if test $ac_cv_header_libintl_h = yes; then
 14687   gt_cv_func_dgettext_libintl="no"
 14688       libintl_extra_libs=""
 14691       # First check in libc
 14693       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 14694 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
 14695 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 14696   echo $ECHO_N "(cached) $ECHO_C" >&6
 14697 else
 14698   cat >conftest.$ac_ext <<_ACEOF
 14699 /* confdefs.h.  */
 14700 _ACEOF
 14701 cat confdefs.h >>conftest.$ac_ext
 14702 cat >>conftest.$ac_ext <<_ACEOF
 14703 /* end confdefs.h.  */
 14705 #include <libintl.h>
 14707 int
 14708 main ()
 14710 return !ngettext ("","", 1)
 14712   return 0;
 14714 _ACEOF
 14715 rm -f conftest.$ac_objext conftest$ac_exeext
 14716 if { (ac_try="$ac_link"
 14717 case "(($ac_try" in
 14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14719   *) ac_try_echo=$ac_try;;
 14720 esac
 14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14722   (eval "$ac_link") 2>conftest.er1
 14723   ac_status=$?
 14724   grep -v '^ *+' conftest.er1 >conftest.err
 14725   rm -f conftest.er1
 14726   cat conftest.err >&5
 14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14728   (exit $ac_status); } && {
 14729 	 test -z "$ac_c_werror_flag" ||
 14730 	 test ! -s conftest.err
 14731        } && test -s conftest$ac_exeext &&
 14732        $as_test_x conftest$ac_exeext; then
 14733   gt_cv_func_ngettext_libc=yes
 14734 else
 14735   echo "$as_me: failed program was:" >&5
 14736 sed 's/^/| /' conftest.$ac_ext >&5
 14738 	gt_cv_func_ngettext_libc=no
 14739 fi
 14741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14742       conftest$ac_exeext conftest.$ac_ext
 14744 fi
 14745 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 14746 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
 14748       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 14749 	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 14750 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
 14751 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 14752   echo $ECHO_N "(cached) $ECHO_C" >&6
 14753 else
 14754   cat >conftest.$ac_ext <<_ACEOF
 14755 /* confdefs.h.  */
 14756 _ACEOF
 14757 cat confdefs.h >>conftest.$ac_ext
 14758 cat >>conftest.$ac_ext <<_ACEOF
 14759 /* end confdefs.h.  */
 14761 #include <libintl.h>
 14763 int
 14764 main ()
 14766 return !dgettext ("","")
 14768   return 0;
 14770 _ACEOF
 14771 rm -f conftest.$ac_objext conftest$ac_exeext
 14772 if { (ac_try="$ac_link"
 14773 case "(($ac_try" in
 14774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14775   *) ac_try_echo=$ac_try;;
 14776 esac
 14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14778   (eval "$ac_link") 2>conftest.er1
 14779   ac_status=$?
 14780   grep -v '^ *+' conftest.er1 >conftest.err
 14781   rm -f conftest.er1
 14782   cat conftest.err >&5
 14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14784   (exit $ac_status); } && {
 14785 	 test -z "$ac_c_werror_flag" ||
 14786 	 test ! -s conftest.err
 14787        } && test -s conftest$ac_exeext &&
 14788        $as_test_x conftest$ac_exeext; then
 14789   gt_cv_func_dgettext_libc=yes
 14790 else
 14791   echo "$as_me: failed program was:" >&5
 14792 sed 's/^/| /' conftest.$ac_ext >&5
 14794 	gt_cv_func_dgettext_libc=no
 14795 fi
 14797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14798       conftest$ac_exeext conftest.$ac_ext
 14800 fi
 14801 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 14802 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
 14803       fi
 14805       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 14807 for ac_func in bind_textdomain_codeset
 14808 do
 14809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 14810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 14811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 14812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 14813   echo $ECHO_N "(cached) $ECHO_C" >&6
 14814 else
 14815   cat >conftest.$ac_ext <<_ACEOF
 14816 /* confdefs.h.  */
 14817 _ACEOF
 14818 cat confdefs.h >>conftest.$ac_ext
 14819 cat >>conftest.$ac_ext <<_ACEOF
 14820 /* end confdefs.h.  */
 14821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 14822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 14823 #define $ac_func innocuous_$ac_func
 14825 /* System header to define __stub macros and hopefully few prototypes,
 14826     which can conflict with char $ac_func (); below.
 14827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 14828     <limits.h> exists even on freestanding compilers.  */
 14830 #ifdef __STDC__
 14831 # include <limits.h>
 14832 #else
 14833 # include <assert.h>
 14834 #endif
 14836 #undef $ac_func
 14838 /* Override any GCC internal prototype to avoid an error.
 14839    Use char because int might match the return type of a GCC
 14840    builtin and then its argument prototype would still apply.  */
 14841 #ifdef __cplusplus
 14842 extern "C"
 14843 #endif
 14844 char $ac_func ();
 14845 /* The GNU C library defines this for functions which it implements
 14846     to always fail with ENOSYS.  Some functions are actually named
 14847     something starting with __ and the normal name is an alias.  */
 14848 #if defined __stub_$ac_func || defined __stub___$ac_func
 14849 choke me
 14850 #endif
 14852 int
 14853 main ()
 14855 return $ac_func ();
 14857   return 0;
 14859 _ACEOF
 14860 rm -f conftest.$ac_objext conftest$ac_exeext
 14861 if { (ac_try="$ac_link"
 14862 case "(($ac_try" in
 14863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14864   *) ac_try_echo=$ac_try;;
 14865 esac
 14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14867   (eval "$ac_link") 2>conftest.er1
 14868   ac_status=$?
 14869   grep -v '^ *+' conftest.er1 >conftest.err
 14870   rm -f conftest.er1
 14871   cat conftest.err >&5
 14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14873   (exit $ac_status); } && {
 14874 	 test -z "$ac_c_werror_flag" ||
 14875 	 test ! -s conftest.err
 14876        } && test -s conftest$ac_exeext &&
 14877        $as_test_x conftest$ac_exeext; then
 14878   eval "$as_ac_var=yes"
 14879 else
 14880   echo "$as_me: failed program was:" >&5
 14881 sed 's/^/| /' conftest.$ac_ext >&5
 14883 	eval "$as_ac_var=no"
 14884 fi
 14886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14887       conftest$ac_exeext conftest.$ac_ext
 14888 fi
 14889 ac_res=`eval echo '${'$as_ac_var'}'`
 14890 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14891 echo "${ECHO_T}$ac_res" >&6; }
 14892 if test `eval echo '${'$as_ac_var'}'` = yes; then
 14893   cat >>confdefs.h <<_ACEOF
 14894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 14895 _ACEOF
 14897 fi
 14898 done
 14900       fi
 14903       # If we don't have everything we want, check in libintl
 14905       if test "$gt_cv_func_dgettext_libc" != "yes" \
 14906 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 14907          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 14909         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 14910 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
 14911 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 14912   echo $ECHO_N "(cached) $ECHO_C" >&6
 14913 else
 14914   ac_check_lib_save_LIBS=$LIBS
 14915 LIBS="-lintl  $LIBS"
 14916 cat >conftest.$ac_ext <<_ACEOF
 14917 /* confdefs.h.  */
 14918 _ACEOF
 14919 cat confdefs.h >>conftest.$ac_ext
 14920 cat >>conftest.$ac_ext <<_ACEOF
 14921 /* end confdefs.h.  */
 14923 /* Override any GCC internal prototype to avoid an error.
 14924    Use char because int might match the return type of a GCC
 14925    builtin and then its argument prototype would still apply.  */
 14926 #ifdef __cplusplus
 14927 extern "C"
 14928 #endif
 14929 char bindtextdomain ();
 14930 int
 14931 main ()
 14933 return bindtextdomain ();
 14935   return 0;
 14937 _ACEOF
 14938 rm -f conftest.$ac_objext conftest$ac_exeext
 14939 if { (ac_try="$ac_link"
 14940 case "(($ac_try" in
 14941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14942   *) ac_try_echo=$ac_try;;
 14943 esac
 14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14945   (eval "$ac_link") 2>conftest.er1
 14946   ac_status=$?
 14947   grep -v '^ *+' conftest.er1 >conftest.err
 14948   rm -f conftest.er1
 14949   cat conftest.err >&5
 14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14951   (exit $ac_status); } && {
 14952 	 test -z "$ac_c_werror_flag" ||
 14953 	 test ! -s conftest.err
 14954        } && test -s conftest$ac_exeext &&
 14955        $as_test_x conftest$ac_exeext; then
 14956   ac_cv_lib_intl_bindtextdomain=yes
 14957 else
 14958   echo "$as_me: failed program was:" >&5
 14959 sed 's/^/| /' conftest.$ac_ext >&5
 14961 	ac_cv_lib_intl_bindtextdomain=no
 14962 fi
 14964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14965       conftest$ac_exeext conftest.$ac_ext
 14966 LIBS=$ac_check_lib_save_LIBS
 14967 fi
 14968 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 14969 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
 14970 if test $ac_cv_lib_intl_bindtextdomain = yes; then
 14971   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 14972 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 14973 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 14974   echo $ECHO_N "(cached) $ECHO_C" >&6
 14975 else
 14976   ac_check_lib_save_LIBS=$LIBS
 14977 LIBS="-lintl  $LIBS"
 14978 cat >conftest.$ac_ext <<_ACEOF
 14979 /* confdefs.h.  */
 14980 _ACEOF
 14981 cat confdefs.h >>conftest.$ac_ext
 14982 cat >>conftest.$ac_ext <<_ACEOF
 14983 /* end confdefs.h.  */
 14985 /* Override any GCC internal prototype to avoid an error.
 14986    Use char because int might match the return type of a GCC
 14987    builtin and then its argument prototype would still apply.  */
 14988 #ifdef __cplusplus
 14989 extern "C"
 14990 #endif
 14991 char ngettext ();
 14992 int
 14993 main ()
 14995 return ngettext ();
 14997   return 0;
 14999 _ACEOF
 15000 rm -f conftest.$ac_objext conftest$ac_exeext
 15001 if { (ac_try="$ac_link"
 15002 case "(($ac_try" in
 15003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15004   *) ac_try_echo=$ac_try;;
 15005 esac
 15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15007   (eval "$ac_link") 2>conftest.er1
 15008   ac_status=$?
 15009   grep -v '^ *+' conftest.er1 >conftest.err
 15010   rm -f conftest.er1
 15011   cat conftest.err >&5
 15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15013   (exit $ac_status); } && {
 15014 	 test -z "$ac_c_werror_flag" ||
 15015 	 test ! -s conftest.err
 15016        } && test -s conftest$ac_exeext &&
 15017        $as_test_x conftest$ac_exeext; then
 15018   ac_cv_lib_intl_ngettext=yes
 15019 else
 15020   echo "$as_me: failed program was:" >&5
 15021 sed 's/^/| /' conftest.$ac_ext >&5
 15023 	ac_cv_lib_intl_ngettext=no
 15024 fi
 15026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15027       conftest$ac_exeext conftest.$ac_ext
 15028 LIBS=$ac_check_lib_save_LIBS
 15029 fi
 15030 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 15031 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 15032 if test $ac_cv_lib_intl_ngettext = yes; then
 15033   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 15034 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
 15035 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 15036   echo $ECHO_N "(cached) $ECHO_C" >&6
 15037 else
 15038   ac_check_lib_save_LIBS=$LIBS
 15039 LIBS="-lintl  $LIBS"
 15040 cat >conftest.$ac_ext <<_ACEOF
 15041 /* confdefs.h.  */
 15042 _ACEOF
 15043 cat confdefs.h >>conftest.$ac_ext
 15044 cat >>conftest.$ac_ext <<_ACEOF
 15045 /* end confdefs.h.  */
 15047 /* Override any GCC internal prototype to avoid an error.
 15048    Use char because int might match the return type of a GCC
 15049    builtin and then its argument prototype would still apply.  */
 15050 #ifdef __cplusplus
 15051 extern "C"
 15052 #endif
 15053 char dgettext ();
 15054 int
 15055 main ()
 15057 return dgettext ();
 15059   return 0;
 15061 _ACEOF
 15062 rm -f conftest.$ac_objext conftest$ac_exeext
 15063 if { (ac_try="$ac_link"
 15064 case "(($ac_try" in
 15065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15066   *) ac_try_echo=$ac_try;;
 15067 esac
 15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15069   (eval "$ac_link") 2>conftest.er1
 15070   ac_status=$?
 15071   grep -v '^ *+' conftest.er1 >conftest.err
 15072   rm -f conftest.er1
 15073   cat conftest.err >&5
 15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15075   (exit $ac_status); } && {
 15076 	 test -z "$ac_c_werror_flag" ||
 15077 	 test ! -s conftest.err
 15078        } && test -s conftest$ac_exeext &&
 15079        $as_test_x conftest$ac_exeext; then
 15080   ac_cv_lib_intl_dgettext=yes
 15081 else
 15082   echo "$as_me: failed program was:" >&5
 15083 sed 's/^/| /' conftest.$ac_ext >&5
 15085 	ac_cv_lib_intl_dgettext=no
 15086 fi
 15088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15089       conftest$ac_exeext conftest.$ac_ext
 15090 LIBS=$ac_check_lib_save_LIBS
 15091 fi
 15092 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 15093 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
 15094 if test $ac_cv_lib_intl_dgettext = yes; then
 15095   gt_cv_func_dgettext_libintl=yes
 15096 fi
 15098 fi
 15100 fi
 15103 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 15104 	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 15105 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
 15106 	  { echo "$as_me:$LINENO: result: " >&5
 15107 echo "${ECHO_T}" >&6; }
 15108   	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 15109 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 15110 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 15111   echo $ECHO_N "(cached) $ECHO_C" >&6
 15112 else
 15113   ac_check_lib_save_LIBS=$LIBS
 15114 LIBS="-lintl -liconv $LIBS"
 15115 cat >conftest.$ac_ext <<_ACEOF
 15116 /* confdefs.h.  */
 15117 _ACEOF
 15118 cat confdefs.h >>conftest.$ac_ext
 15119 cat >>conftest.$ac_ext <<_ACEOF
 15120 /* end confdefs.h.  */
 15122 /* Override any GCC internal prototype to avoid an error.
 15123    Use char because int might match the return type of a GCC
 15124    builtin and then its argument prototype would still apply.  */
 15125 #ifdef __cplusplus
 15126 extern "C"
 15127 #endif
 15128 char ngettext ();
 15129 int
 15130 main ()
 15132 return ngettext ();
 15134   return 0;
 15136 _ACEOF
 15137 rm -f conftest.$ac_objext conftest$ac_exeext
 15138 if { (ac_try="$ac_link"
 15139 case "(($ac_try" in
 15140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15141   *) ac_try_echo=$ac_try;;
 15142 esac
 15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15144   (eval "$ac_link") 2>conftest.er1
 15145   ac_status=$?
 15146   grep -v '^ *+' conftest.er1 >conftest.err
 15147   rm -f conftest.er1
 15148   cat conftest.err >&5
 15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15150   (exit $ac_status); } && {
 15151 	 test -z "$ac_c_werror_flag" ||
 15152 	 test ! -s conftest.err
 15153        } && test -s conftest$ac_exeext &&
 15154        $as_test_x conftest$ac_exeext; then
 15155   ac_cv_lib_intl_ngettext=yes
 15156 else
 15157   echo "$as_me: failed program was:" >&5
 15158 sed 's/^/| /' conftest.$ac_ext >&5
 15160 	ac_cv_lib_intl_ngettext=no
 15161 fi
 15163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15164       conftest$ac_exeext conftest.$ac_ext
 15165 LIBS=$ac_check_lib_save_LIBS
 15166 fi
 15167 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 15168 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 15169 if test $ac_cv_lib_intl_ngettext = yes; then
 15170   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 15171 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
 15172 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 15173   echo $ECHO_N "(cached) $ECHO_C" >&6
 15174 else
 15175   ac_check_lib_save_LIBS=$LIBS
 15176 LIBS="-lintl -liconv $LIBS"
 15177 cat >conftest.$ac_ext <<_ACEOF
 15178 /* confdefs.h.  */
 15179 _ACEOF
 15180 cat confdefs.h >>conftest.$ac_ext
 15181 cat >>conftest.$ac_ext <<_ACEOF
 15182 /* end confdefs.h.  */
 15184 /* Override any GCC internal prototype to avoid an error.
 15185    Use char because int might match the return type of a GCC
 15186    builtin and then its argument prototype would still apply.  */
 15187 #ifdef __cplusplus
 15188 extern "C"
 15189 #endif
 15190 char dcgettext ();
 15191 int
 15192 main ()
 15194 return dcgettext ();
 15196   return 0;
 15198 _ACEOF
 15199 rm -f conftest.$ac_objext conftest$ac_exeext
 15200 if { (ac_try="$ac_link"
 15201 case "(($ac_try" in
 15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15203   *) ac_try_echo=$ac_try;;
 15204 esac
 15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15206   (eval "$ac_link") 2>conftest.er1
 15207   ac_status=$?
 15208   grep -v '^ *+' conftest.er1 >conftest.err
 15209   rm -f conftest.er1
 15210   cat conftest.err >&5
 15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15212   (exit $ac_status); } && {
 15213 	 test -z "$ac_c_werror_flag" ||
 15214 	 test ! -s conftest.err
 15215        } && test -s conftest$ac_exeext &&
 15216        $as_test_x conftest$ac_exeext; then
 15217   ac_cv_lib_intl_dcgettext=yes
 15218 else
 15219   echo "$as_me: failed program was:" >&5
 15220 sed 's/^/| /' conftest.$ac_ext >&5
 15222 	ac_cv_lib_intl_dcgettext=no
 15223 fi
 15225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15226       conftest$ac_exeext conftest.$ac_ext
 15227 LIBS=$ac_check_lib_save_LIBS
 15228 fi
 15229 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 15230 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
 15231 if test $ac_cv_lib_intl_dcgettext = yes; then
 15232   gt_cv_func_dgettext_libintl=yes
 15233 			libintl_extra_libs=-liconv
 15234 else
 15236 fi
 15238 else
 15240 fi
 15242         fi
 15245         # If we found libintl, then check in it for bind_textdomain_codeset();
 15246         # we'll prefer libc if neither have bind_textdomain_codeset(),
 15247         # and both have dgettext and ngettext
 15249         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 15250           glib_save_LIBS="$LIBS"
 15251           LIBS="$LIBS -lintl $libintl_extra_libs"
 15252           unset ac_cv_func_bind_textdomain_codeset
 15254 for ac_func in bind_textdomain_codeset
 15255 do
 15256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15260   echo $ECHO_N "(cached) $ECHO_C" >&6
 15261 else
 15262   cat >conftest.$ac_ext <<_ACEOF
 15263 /* confdefs.h.  */
 15264 _ACEOF
 15265 cat confdefs.h >>conftest.$ac_ext
 15266 cat >>conftest.$ac_ext <<_ACEOF
 15267 /* end confdefs.h.  */
 15268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15270 #define $ac_func innocuous_$ac_func
 15272 /* System header to define __stub macros and hopefully few prototypes,
 15273     which can conflict with char $ac_func (); below.
 15274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15275     <limits.h> exists even on freestanding compilers.  */
 15277 #ifdef __STDC__
 15278 # include <limits.h>
 15279 #else
 15280 # include <assert.h>
 15281 #endif
 15283 #undef $ac_func
 15285 /* Override any GCC internal prototype to avoid an error.
 15286    Use char because int might match the return type of a GCC
 15287    builtin and then its argument prototype would still apply.  */
 15288 #ifdef __cplusplus
 15289 extern "C"
 15290 #endif
 15291 char $ac_func ();
 15292 /* The GNU C library defines this for functions which it implements
 15293     to always fail with ENOSYS.  Some functions are actually named
 15294     something starting with __ and the normal name is an alias.  */
 15295 #if defined __stub_$ac_func || defined __stub___$ac_func
 15296 choke me
 15297 #endif
 15299 int
 15300 main ()
 15302 return $ac_func ();
 15304   return 0;
 15306 _ACEOF
 15307 rm -f conftest.$ac_objext conftest$ac_exeext
 15308 if { (ac_try="$ac_link"
 15309 case "(($ac_try" in
 15310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15311   *) ac_try_echo=$ac_try;;
 15312 esac
 15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15314   (eval "$ac_link") 2>conftest.er1
 15315   ac_status=$?
 15316   grep -v '^ *+' conftest.er1 >conftest.err
 15317   rm -f conftest.er1
 15318   cat conftest.err >&5
 15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15320   (exit $ac_status); } && {
 15321 	 test -z "$ac_c_werror_flag" ||
 15322 	 test ! -s conftest.err
 15323        } && test -s conftest$ac_exeext &&
 15324        $as_test_x conftest$ac_exeext; then
 15325   eval "$as_ac_var=yes"
 15326 else
 15327   echo "$as_me: failed program was:" >&5
 15328 sed 's/^/| /' conftest.$ac_ext >&5
 15330 	eval "$as_ac_var=no"
 15331 fi
 15333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15334       conftest$ac_exeext conftest.$ac_ext
 15335 fi
 15336 ac_res=`eval echo '${'$as_ac_var'}'`
 15337 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15338 echo "${ECHO_T}$ac_res" >&6; }
 15339 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15340   cat >>confdefs.h <<_ACEOF
 15341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15342 _ACEOF
 15344 fi
 15345 done
 15347           LIBS="$glib_save_LIBS"
 15349           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 15350             gt_cv_func_dgettext_libc=no
 15351           else
 15352             if test "$gt_cv_func_dgettext_libc" = "yes" \
 15353 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 15354               gt_cv_func_dgettext_libintl=no
 15355             fi
 15356           fi
 15357         fi
 15358       fi
 15360       if test "$gt_cv_func_dgettext_libc" = "yes" \
 15361 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 15362         gt_cv_have_gettext=yes
 15363       fi
 15365       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 15366         INTLLIBS="-lintl $libintl_extra_libs"
 15367       fi
 15369       if test "$gt_cv_have_gettext" = "yes"; then
 15371 cat >>confdefs.h <<\_ACEOF
 15372 #define HAVE_GETTEXT 1
 15373 _ACEOF
 15375 	# Extract the first word of "msgfmt", so it can be a program name with args.
 15376 set dummy msgfmt; ac_word=$2
 15377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15379 if test "${ac_cv_path_MSGFMT+set}" = set; then
 15380   echo $ECHO_N "(cached) $ECHO_C" >&6
 15381 else
 15382   case "$MSGFMT" in
 15383   /*)
 15384   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 15385   ;;
 15386   *)
 15387   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 15388   for ac_dir in $PATH; do
 15389     test -z "$ac_dir" && ac_dir=.
 15390     if test -f $ac_dir/$ac_word; then
 15391       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 15392 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 15393 	break
 15394       fi
 15395     fi
 15396   done
 15397   IFS="$ac_save_ifs"
 15398   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 15399   ;;
 15400 esac
 15401 fi
 15402 MSGFMT="$ac_cv_path_MSGFMT"
 15403 if test "$MSGFMT" != "no"; then
 15404   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 15405 echo "${ECHO_T}$MSGFMT" >&6; }
 15406 else
 15407   { echo "$as_me:$LINENO: result: no" >&5
 15408 echo "${ECHO_T}no" >&6; }
 15409 fi
 15410 	if test "$MSGFMT" != "no"; then
 15411           glib_save_LIBS="$LIBS"
 15412           LIBS="$LIBS $INTLLIBS"
 15414 for ac_func in dcgettext
 15415 do
 15416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15420   echo $ECHO_N "(cached) $ECHO_C" >&6
 15421 else
 15422   cat >conftest.$ac_ext <<_ACEOF
 15423 /* confdefs.h.  */
 15424 _ACEOF
 15425 cat confdefs.h >>conftest.$ac_ext
 15426 cat >>conftest.$ac_ext <<_ACEOF
 15427 /* end confdefs.h.  */
 15428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15430 #define $ac_func innocuous_$ac_func
 15432 /* System header to define __stub macros and hopefully few prototypes,
 15433     which can conflict with char $ac_func (); below.
 15434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15435     <limits.h> exists even on freestanding compilers.  */
 15437 #ifdef __STDC__
 15438 # include <limits.h>
 15439 #else
 15440 # include <assert.h>
 15441 #endif
 15443 #undef $ac_func
 15445 /* Override any GCC internal prototype to avoid an error.
 15446    Use char because int might match the return type of a GCC
 15447    builtin and then its argument prototype would still apply.  */
 15448 #ifdef __cplusplus
 15449 extern "C"
 15450 #endif
 15451 char $ac_func ();
 15452 /* The GNU C library defines this for functions which it implements
 15453     to always fail with ENOSYS.  Some functions are actually named
 15454     something starting with __ and the normal name is an alias.  */
 15455 #if defined __stub_$ac_func || defined __stub___$ac_func
 15456 choke me
 15457 #endif
 15459 int
 15460 main ()
 15462 return $ac_func ();
 15464   return 0;
 15466 _ACEOF
 15467 rm -f conftest.$ac_objext conftest$ac_exeext
 15468 if { (ac_try="$ac_link"
 15469 case "(($ac_try" in
 15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15471   *) ac_try_echo=$ac_try;;
 15472 esac
 15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15474   (eval "$ac_link") 2>conftest.er1
 15475   ac_status=$?
 15476   grep -v '^ *+' conftest.er1 >conftest.err
 15477   rm -f conftest.er1
 15478   cat conftest.err >&5
 15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15480   (exit $ac_status); } && {
 15481 	 test -z "$ac_c_werror_flag" ||
 15482 	 test ! -s conftest.err
 15483        } && test -s conftest$ac_exeext &&
 15484        $as_test_x conftest$ac_exeext; then
 15485   eval "$as_ac_var=yes"
 15486 else
 15487   echo "$as_me: failed program was:" >&5
 15488 sed 's/^/| /' conftest.$ac_ext >&5
 15490 	eval "$as_ac_var=no"
 15491 fi
 15493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15494       conftest$ac_exeext conftest.$ac_ext
 15495 fi
 15496 ac_res=`eval echo '${'$as_ac_var'}'`
 15497 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15498 echo "${ECHO_T}$ac_res" >&6; }
 15499 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15500   cat >>confdefs.h <<_ACEOF
 15501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15502 _ACEOF
 15504 fi
 15505 done
 15507 	  MSGFMT_OPTS=
 15508 	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 15509 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
 15510 	  cat >conftest.foo <<_ACEOF
 15512 msgid ""
 15513 msgstr ""
 15514 "Content-Type: text/plain; charset=UTF-8\n"
 15515 "Project-Id-Version: test 1.0\n"
 15516 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 15517 "Last-Translator: test <foo@bar.xx>\n"
 15518 "Language-Team: C <LL@li.org>\n"
 15519 "MIME-Version: 1.0\n"
 15520 "Content-Transfer-Encoding: 8bit\n"
 15522 _ACEOF
 15523 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
 15524   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 15525   ac_status=$?
 15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15527   (exit $ac_status); }; then
 15528   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
 15529 echo "${ECHO_T}yes" >&6; }
 15530 else { echo "$as_me:$LINENO: result: no" >&5
 15531 echo "${ECHO_T}no" >&6; }
 15532 echo "$as_me: failed input was:" >&5
 15533 sed 's/^/| /' conftest.foo >&5
 15534 fi
 15536 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 15537 set dummy gmsgfmt; ac_word=$2
 15538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15540 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 15541   echo $ECHO_N "(cached) $ECHO_C" >&6
 15542 else
 15543   case $GMSGFMT in
 15544   [\\/]* | ?:[\\/]*)
 15545   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 15546   ;;
 15547   *)
 15548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 15549 for as_dir in $PATH
 15550 do
 15551   IFS=$as_save_IFS
 15552   test -z "$as_dir" && as_dir=.
 15553   for ac_exec_ext in '' $ac_executable_extensions; do
 15554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 15555     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 15556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 15557     break 2
 15558   fi
 15559 done
 15560 done
 15561 IFS=$as_save_IFS
 15563   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 15564   ;;
 15565 esac
 15566 fi
 15567 GMSGFMT=$ac_cv_path_GMSGFMT
 15568 if test -n "$GMSGFMT"; then
 15569   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 15570 echo "${ECHO_T}$GMSGFMT" >&6; }
 15571 else
 15572   { echo "$as_me:$LINENO: result: no" >&5
 15573 echo "${ECHO_T}no" >&6; }
 15574 fi
 15577 	  # Extract the first word of "xgettext", so it can be a program name with args.
 15578 set dummy xgettext; ac_word=$2
 15579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15581 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 15582   echo $ECHO_N "(cached) $ECHO_C" >&6
 15583 else
 15584   case "$XGETTEXT" in
 15585   /*)
 15586   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 15587   ;;
 15588   *)
 15589   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 15590   for ac_dir in $PATH; do
 15591     test -z "$ac_dir" && ac_dir=.
 15592     if test -f $ac_dir/$ac_word; then
 15593       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 15594 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 15595 	break
 15596       fi
 15597     fi
 15598   done
 15599   IFS="$ac_save_ifs"
 15600   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 15601   ;;
 15602 esac
 15603 fi
 15604 XGETTEXT="$ac_cv_path_XGETTEXT"
 15605 if test "$XGETTEXT" != ":"; then
 15606   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 15607 echo "${ECHO_T}$XGETTEXT" >&6; }
 15608 else
 15609   { echo "$as_me:$LINENO: result: no" >&5
 15610 echo "${ECHO_T}no" >&6; }
 15611 fi
 15613 	  cat >conftest.$ac_ext <<_ACEOF
 15614 /* confdefs.h.  */
 15615 _ACEOF
 15616 cat confdefs.h >>conftest.$ac_ext
 15617 cat >>conftest.$ac_ext <<_ACEOF
 15618 /* end confdefs.h.  */
 15620 int
 15621 main ()
 15623 extern int _nl_msg_cat_cntr;
 15624 			 return _nl_msg_cat_cntr
 15626   return 0;
 15628 _ACEOF
 15629 rm -f conftest.$ac_objext conftest$ac_exeext
 15630 if { (ac_try="$ac_link"
 15631 case "(($ac_try" in
 15632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15633   *) ac_try_echo=$ac_try;;
 15634 esac
 15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15636   (eval "$ac_link") 2>conftest.er1
 15637   ac_status=$?
 15638   grep -v '^ *+' conftest.er1 >conftest.err
 15639   rm -f conftest.er1
 15640   cat conftest.err >&5
 15641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15642   (exit $ac_status); } && {
 15643 	 test -z "$ac_c_werror_flag" ||
 15644 	 test ! -s conftest.err
 15645        } && test -s conftest$ac_exeext &&
 15646        $as_test_x conftest$ac_exeext; then
 15647   CATOBJEXT=.gmo
 15648              DATADIRNAME=share
 15649 else
 15650   echo "$as_me: failed program was:" >&5
 15651 sed 's/^/| /' conftest.$ac_ext >&5
 15653 	case $host in
 15654 	    *-*-solaris*)
 15655 	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 15656 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 15657 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 15658   echo $ECHO_N "(cached) $ECHO_C" >&6
 15659 else
 15660   cat >conftest.$ac_ext <<_ACEOF
 15661 /* confdefs.h.  */
 15662 _ACEOF
 15663 cat confdefs.h >>conftest.$ac_ext
 15664 cat >>conftest.$ac_ext <<_ACEOF
 15665 /* end confdefs.h.  */
 15666 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 15667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15668 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 15670 /* System header to define __stub macros and hopefully few prototypes,
 15671     which can conflict with char bind_textdomain_codeset (); below.
 15672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15673     <limits.h> exists even on freestanding compilers.  */
 15675 #ifdef __STDC__
 15676 # include <limits.h>
 15677 #else
 15678 # include <assert.h>
 15679 #endif
 15681 #undef bind_textdomain_codeset
 15683 /* Override any GCC internal prototype to avoid an error.
 15684    Use char because int might match the return type of a GCC
 15685    builtin and then its argument prototype would still apply.  */
 15686 #ifdef __cplusplus
 15687 extern "C"
 15688 #endif
 15689 char bind_textdomain_codeset ();
 15690 /* The GNU C library defines this for functions which it implements
 15691     to always fail with ENOSYS.  Some functions are actually named
 15692     something starting with __ and the normal name is an alias.  */
 15693 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 15694 choke me
 15695 #endif
 15697 int
 15698 main ()
 15700 return bind_textdomain_codeset ();
 15702   return 0;
 15704 _ACEOF
 15705 rm -f conftest.$ac_objext conftest$ac_exeext
 15706 if { (ac_try="$ac_link"
 15707 case "(($ac_try" in
 15708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15709   *) ac_try_echo=$ac_try;;
 15710 esac
 15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15712   (eval "$ac_link") 2>conftest.er1
 15713   ac_status=$?
 15714   grep -v '^ *+' conftest.er1 >conftest.err
 15715   rm -f conftest.er1
 15716   cat conftest.err >&5
 15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15718   (exit $ac_status); } && {
 15719 	 test -z "$ac_c_werror_flag" ||
 15720 	 test ! -s conftest.err
 15721        } && test -s conftest$ac_exeext &&
 15722        $as_test_x conftest$ac_exeext; then
 15723   ac_cv_func_bind_textdomain_codeset=yes
 15724 else
 15725   echo "$as_me: failed program was:" >&5
 15726 sed 's/^/| /' conftest.$ac_ext >&5
 15728 	ac_cv_func_bind_textdomain_codeset=no
 15729 fi
 15731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15732       conftest$ac_exeext conftest.$ac_ext
 15733 fi
 15734 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 15735 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 15736 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 15737   CATOBJEXT=.gmo
 15738                DATADIRNAME=share
 15739 else
 15740   CATOBJEXT=.mo
 15741                DATADIRNAME=lib
 15742 fi
 15744 	    ;;
 15745 	    *)
 15746 	    CATOBJEXT=.mo
 15747             DATADIRNAME=lib
 15748 	    ;;
 15749 	    esac
 15750 fi
 15752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15753       conftest$ac_exeext conftest.$ac_ext
 15754           LIBS="$glib_save_LIBS"
 15755 	  INSTOBJEXT=.mo
 15756 	else
 15757 	  gt_cv_have_gettext=no
 15758 	fi
 15759       fi
 15761 fi
 15765     if test "$gt_cv_have_gettext" = "yes" ; then
 15767 cat >>confdefs.h <<\_ACEOF
 15768 #define ENABLE_NLS 1
 15769 _ACEOF
 15771     fi
 15773         if test "$XGETTEXT" != ":"; then
 15774                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 15775         : ;
 15776       else
 15777         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 15778 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 15779         XGETTEXT=":"
 15780       fi
 15781     fi
 15783     # We need to process the po/ directory.
 15784     POSUB=po
 15786     ac_config_commands="$ac_config_commands default-1"
 15789                 for lang in $ALL_LINGUAS; do
 15790       GMOFILES="$GMOFILES $lang.gmo"
 15791       POFILES="$POFILES $lang.po"
 15792     done
 15806    if test "$gt_cv_have_gettext" = "yes"; then
 15807      if test "x$ALL_LINGUAS" = "x"; then
 15808        LINGUAS=
 15809      else
 15810        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 15811 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
 15812        NEW_LINGUAS=
 15813        for presentlang in $ALL_LINGUAS; do
 15814          useit=no
 15815          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 15816            desiredlanguages="$LINGUAS"
 15817          else
 15818            desiredlanguages="$ALL_LINGUAS"
 15819          fi
 15820          for desiredlang in $desiredlanguages; do
 15821  	   # Use the presentlang catalog if desiredlang is
 15822            #   a. equal to presentlang, or
 15823            #   b. a variant of presentlang (because in this case,
 15824            #      presentlang can be used as a fallback for messages
 15825            #      which are not translated in the desiredlang catalog).
 15826            case "$desiredlang" in
 15827              "$presentlang"*) useit=yes;;
 15828            esac
 15829          done
 15830          if test $useit = yes; then
 15831            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 15832          fi
 15833        done
 15834        LINGUAS=$NEW_LINGUAS
 15835        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
 15836 echo "${ECHO_T}$LINGUAS" >&6; }
 15837      fi
 15839           if test -n "$LINGUAS"; then
 15840        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 15841      fi
 15842    fi
 15844             MKINSTALLDIRS=
 15845    if test -n "$ac_aux_dir"; then
 15846      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 15847    fi
 15848    if test -z "$MKINSTALLDIRS"; then
 15849      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 15850    fi
 15853          test -d po || mkdir po
 15854    if test "x$srcdir" != "x."; then
 15855      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 15856        posrcprefix="$srcdir/"
 15857      else
 15858        posrcprefix="../$srcdir/"
 15859      fi
 15860    else
 15861      posrcprefix="../"
 15862    fi
 15863    rm -f po/POTFILES
 15864    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 15865 	< $srcdir/po/POTFILES.in > po/POTFILES
 15868 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
 15870 cat >confcache <<\_ACEOF
 15871 # This file is a shell script that caches the results of configure
 15872 # tests run on this system so they can be shared between configure
 15873 # scripts and configure runs, see configure's option --config-cache.
 15874 # It is not useful on other systems.  If it contains results you don't
 15875 # want to keep, you may remove or edit it.
 15877 # config.status only pays attention to the cache file if you give it
 15878 # the --recheck option to rerun configure.
 15880 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 15881 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 15882 # following values.
 15884 _ACEOF
 15886 # The following way of writing the cache mishandles newlines in values,
 15887 # but we know of no workaround that is simple, portable, and efficient.
 15888 # So, we kill variables containing newlines.
 15889 # Ultrix sh set writes to stderr and can't be redirected directly,
 15890 # and sets the high bit in the cache file unless we assign to the vars.
 15892   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 15893     eval ac_val=\$$ac_var
 15894     case $ac_val in #(
 15895     *${as_nl}*)
 15896       case $ac_var in #(
 15897       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 15898 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 15899       esac
 15900       case $ac_var in #(
 15901       _ | IFS | as_nl) ;; #(
 15902       *) $as_unset $ac_var ;;
 15903       esac ;;
 15904     esac
 15905   done
 15907   (set) 2>&1 |
 15908     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 15909     *${as_nl}ac_space=\ *)
 15910       # `set' does not quote correctly, so add quotes (double-quote
 15911       # substitution turns \\\\ into \\, and sed turns \\ into \).
 15912       sed -n \
 15913 	"s/'/'\\\\''/g;
 15914 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 15915       ;; #(
 15916     *)
 15917       # `set' quotes correctly as required by POSIX, so do not add quotes.
 15918       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 15919       ;;
 15920     esac |
 15921     sort
 15922 ) |
 15923   sed '
 15924      /^ac_cv_env_/b end
 15925      t clear
 15926      :clear
 15927      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 15928      t end
 15929      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 15930      :end' >>confcache
 15931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 15932   if test -w "$cache_file"; then
 15933     test "x$cache_file" != "x/dev/null" &&
 15934       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 15935 echo "$as_me: updating cache $cache_file" >&6;}
 15936     cat confcache >$cache_file
 15937   else
 15938     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 15939 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 15940   fi
 15941 fi
 15942 rm -f confcache
 15944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 15945 # Let make expand exec_prefix.
 15946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 15948 DEFS=-DHAVE_CONFIG_H
 15950 ac_libobjs=
 15951 ac_ltlibobjs=
 15952 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 15953   # 1. Remove the extension, and $U if already installed.
 15954   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 15955   ac_i=`echo "$ac_i" | sed "$ac_script"`
 15956   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 15957   #    will be set to the directory where LIBOBJS objects are built.
 15958   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 15959   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 15960 done
 15961 LIBOBJS=$ac_libobjs
 15963 LTLIBOBJS=$ac_ltlibobjs
 15966 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 15967   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 15968 Usually this means the macro was only invoked conditionally." >&5
 15969 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 15970 Usually this means the macro was only invoked conditionally." >&2;}
 15971    { (exit 1); exit 1; }; }
 15972 fi
 15973 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
 15974   { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
 15975 Usually this means the macro was only invoked conditionally." >&5
 15976 echo "$as_me: error: conditional \"GUI_ANDROID\" was never defined.
 15977 Usually this means the macro was only invoked conditionally." >&2;}
 15978    { (exit 1); exit 1; }; }
 15979 fi
 15980 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 15981   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 15982 Usually this means the macro was only invoked conditionally." >&5
 15983 echo "$as_me: error: conditional \"AMDEP\" was never defined.
 15984 Usually this means the macro was only invoked conditionally." >&2;}
 15985    { (exit 1); exit 1; }; }
 15986 fi
 15987 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 15988   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 15989 Usually this means the macro was only invoked conditionally." >&5
 15990 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 15991 Usually this means the macro was only invoked conditionally." >&2;}
 15992    { (exit 1); exit 1; }; }
 15993 fi
 15994 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 15995   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 15996 Usually this means the macro was only invoked conditionally." >&5
 15997 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 15998 Usually this means the macro was only invoked conditionally." >&2;}
 15999    { (exit 1); exit 1; }; }
 16000 fi
 16001 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 16002   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 16003 Usually this means the macro was only invoked conditionally." >&5
 16004 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 16005 Usually this means the macro was only invoked conditionally." >&2;}
 16006    { (exit 1); exit 1; }; }
 16007 fi
 16008 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
 16009   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
 16010 Usually this means the macro was only invoked conditionally." >&5
 16011 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
 16012 Usually this means the macro was only invoked conditionally." >&2;}
 16013    { (exit 1); exit 1; }; }
 16014 fi
 16015 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
 16016   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
 16017 Usually this means the macro was only invoked conditionally." >&5
 16018 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
 16019 Usually this means the macro was only invoked conditionally." >&2;}
 16020    { (exit 1); exit 1; }; }
 16021 fi
 16022 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 16023   { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 16024 Usually this means the macro was only invoked conditionally." >&5
 16025 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 16026 Usually this means the macro was only invoked conditionally." >&2;}
 16027    { (exit 1); exit 1; }; }
 16028 fi
 16029 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
 16030   { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
 16031 Usually this means the macro was only invoked conditionally." >&5
 16032 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
 16033 Usually this means the macro was only invoked conditionally." >&2;}
 16034    { (exit 1); exit 1; }; }
 16035 fi
 16036 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 16037   { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 16038 Usually this means the macro was only invoked conditionally." >&5
 16039 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 16040 Usually this means the macro was only invoked conditionally." >&2;}
 16041    { (exit 1); exit 1; }; }
 16042 fi
 16043 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 16044   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 16045 Usually this means the macro was only invoked conditionally." >&5
 16046 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 16047 Usually this means the macro was only invoked conditionally." >&2;}
 16048    { (exit 1); exit 1; }; }
 16049 fi
 16050 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 16051   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 16052 Usually this means the macro was only invoked conditionally." >&5
 16053 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 16054 Usually this means the macro was only invoked conditionally." >&2;}
 16055    { (exit 1); exit 1; }; }
 16056 fi
 16057 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 16058   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 16059 Usually this means the macro was only invoked conditionally." >&5
 16060 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 16061 Usually this means the macro was only invoked conditionally." >&2;}
 16062    { (exit 1); exit 1; }; }
 16063 fi
 16064 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 16065   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 16066 Usually this means the macro was only invoked conditionally." >&5
 16067 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 16068 Usually this means the macro was only invoked conditionally." >&2;}
 16069    { (exit 1); exit 1; }; }
 16070 fi
 16071 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 16072   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 16073 Usually this means the macro was only invoked conditionally." >&5
 16074 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
 16075 Usually this means the macro was only invoked conditionally." >&2;}
 16076    { (exit 1); exit 1; }; }
 16077 fi
 16078 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
 16079   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
 16080 Usually this means the macro was only invoked conditionally." >&5
 16081 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
 16082 Usually this means the macro was only invoked conditionally." >&2;}
 16083    { (exit 1); exit 1; }; }
 16084 fi
 16085 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 16086   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 16087 Usually this means the macro was only invoked conditionally." >&5
 16088 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 16089 Usually this means the macro was only invoked conditionally." >&2;}
 16090    { (exit 1); exit 1; }; }
 16091 fi
 16092 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 16093   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 16094 Usually this means the macro was only invoked conditionally." >&5
 16095 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 16096 Usually this means the macro was only invoked conditionally." >&2;}
 16097    { (exit 1); exit 1; }; }
 16098 fi
 16099 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 16100   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 16101 Usually this means the macro was only invoked conditionally." >&5
 16102 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 16103 Usually this means the macro was only invoked conditionally." >&2;}
 16104    { (exit 1); exit 1; }; }
 16105 fi
 16106 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 16107   { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 16108 Usually this means the macro was only invoked conditionally." >&5
 16109 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 16110 Usually this means the macro was only invoked conditionally." >&2;}
 16111    { (exit 1); exit 1; }; }
 16112 fi
 16113 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
 16114   { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
 16115 Usually this means the macro was only invoked conditionally." >&5
 16116 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
 16117 Usually this means the macro was only invoked conditionally." >&2;}
 16118    { (exit 1); exit 1; }; }
 16119 fi
 16120 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
 16121   { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
 16122 Usually this means the macro was only invoked conditionally." >&5
 16123 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
 16124 Usually this means the macro was only invoked conditionally." >&2;}
 16125    { (exit 1); exit 1; }; }
 16126 fi
 16127 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 16128   { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 16129 Usually this means the macro was only invoked conditionally." >&5
 16130 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 16131 Usually this means the macro was only invoked conditionally." >&2;}
 16132    { (exit 1); exit 1; }; }
 16133 fi
 16134 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
 16135   { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
 16136 Usually this means the macro was only invoked conditionally." >&5
 16137 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
 16138 Usually this means the macro was only invoked conditionally." >&2;}
 16139    { (exit 1); exit 1; }; }
 16140 fi
 16141 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 16142   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 16143 Usually this means the macro was only invoked conditionally." >&5
 16144 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 16145 Usually this means the macro was only invoked conditionally." >&2;}
 16146    { (exit 1); exit 1; }; }
 16147 fi
 16148 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 16149   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 16150 Usually this means the macro was only invoked conditionally." >&5
 16151 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 16152 Usually this means the macro was only invoked conditionally." >&2;}
 16153    { (exit 1); exit 1; }; }
 16154 fi
 16156 : ${CONFIG_STATUS=./config.status}
 16157 ac_clean_files_save=$ac_clean_files
 16158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 16159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 16160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
 16161 cat >$CONFIG_STATUS <<_ACEOF
 16162 #! $SHELL
 16163 # Generated by $as_me.
 16164 # Run this file to recreate the current configuration.
 16165 # Compiler output produced by configure, useful for debugging
 16166 # configure, is in config.log if it exists.
 16168 debug=false
 16169 ac_cs_recheck=false
 16170 ac_cs_silent=false
 16171 SHELL=\${CONFIG_SHELL-$SHELL}
 16172 _ACEOF
 16174 cat >>$CONFIG_STATUS <<\_ACEOF
 16175 ## --------------------- ##
 16176 ## M4sh Initialization.  ##
 16177 ## --------------------- ##
 16179 # Be more Bourne compatible
 16180 DUALCASE=1; export DUALCASE # for MKS sh
 16181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 16182   emulate sh
 16183   NULLCMD=:
 16184   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 16185   # is contrary to our usage.  Disable this feature.
 16186   alias -g '${1+"$@"}'='"$@"'
 16187   setopt NO_GLOB_SUBST
 16188 else
 16189   case `(set -o) 2>/dev/null` in
 16190   *posix*) set -o posix ;;
 16191 esac
 16193 fi
 16198 # PATH needs CR
 16199 # Avoid depending upon Character Ranges.
 16200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 16201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 16202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 16203 as_cr_digits='0123456789'
 16204 as_cr_alnum=$as_cr_Letters$as_cr_digits
 16206 # The user is always right.
 16207 if test "${PATH_SEPARATOR+set}" != set; then
 16208   echo "#! /bin/sh" >conf$$.sh
 16209   echo  "exit 0"   >>conf$$.sh
 16210   chmod +x conf$$.sh
 16211   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 16212     PATH_SEPARATOR=';'
 16213   else
 16214     PATH_SEPARATOR=:
 16215   fi
 16216   rm -f conf$$.sh
 16217 fi
 16219 # Support unset when possible.
 16220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 16221   as_unset=unset
 16222 else
 16223   as_unset=false
 16224 fi
 16227 # IFS
 16228 # We need space, tab and new line, in precisely that order.  Quoting is
 16229 # there to prevent editors from complaining about space-tab.
 16230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 16231 # splitting by setting IFS to empty value.)
 16232 as_nl='
 16234 IFS=" ""	$as_nl"
 16236 # Find who we are.  Look in the path if we contain no directory separator.
 16237 case $0 in
 16238   *[\\/]* ) as_myself=$0 ;;
 16239   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16240 for as_dir in $PATH
 16241 do
 16242   IFS=$as_save_IFS
 16243   test -z "$as_dir" && as_dir=.
 16244   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 16245 done
 16246 IFS=$as_save_IFS
 16248      ;;
 16249 esac
 16250 # We did not find ourselves, most probably we were run as `sh COMMAND'
 16251 # in which case we are not to be found in the path.
 16252 if test "x$as_myself" = x; then
 16253   as_myself=$0
 16254 fi
 16255 if test ! -f "$as_myself"; then
 16256   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 16257   { (exit 1); exit 1; }
 16258 fi
 16260 # Work around bugs in pre-3.0 UWIN ksh.
 16261 for as_var in ENV MAIL MAILPATH
 16262 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 16263 done
 16264 PS1='$ '
 16265 PS2='> '
 16266 PS4='+ '
 16268 # NLS nuisances.
 16269 for as_var in \
 16270   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 16271   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 16272   LC_TELEPHONE LC_TIME
 16273 do
 16274   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 16275     eval $as_var=C; export $as_var
 16276   else
 16277     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 16278   fi
 16279 done
 16281 # Required to use basename.
 16282 if expr a : '\(a\)' >/dev/null 2>&1 &&
 16283    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 16284   as_expr=expr
 16285 else
 16286   as_expr=false
 16287 fi
 16289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 16290   as_basename=basename
 16291 else
 16292   as_basename=false
 16293 fi
 16296 # Name of the executable.
 16297 as_me=`$as_basename -- "$0" ||
 16298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 16299 	 X"$0" : 'X\(//\)$' \| \
 16300 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 16301 echo X/"$0" |
 16302     sed '/^.*\/\([^/][^/]*\)\/*$/{
 16303 	    s//\1/
 16306 	  /^X\/\(\/\/\)$/{
 16307 	    s//\1/
 16310 	  /^X\/\(\/\).*/{
 16311 	    s//\1/
 16314 	  s/.*/./; q'`
 16316 # CDPATH.
 16317 $as_unset CDPATH
 16321   as_lineno_1=$LINENO
 16322   as_lineno_2=$LINENO
 16323   test "x$as_lineno_1" != "x$as_lineno_2" &&
 16324   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 16326   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 16327   # uniformly replaced by the line number.  The first 'sed' inserts a
 16328   # line-number line after each line using $LINENO; the second 'sed'
 16329   # does the real work.  The second script uses 'N' to pair each
 16330   # line-number line with the line containing $LINENO, and appends
 16331   # trailing '-' during substitution so that $LINENO is not a special
 16332   # case at line end.
 16333   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 16334   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 16335   # E. McMahon (1931-1989) for sed's syntax.  :-)
 16336   sed -n '
 16338     /[$]LINENO/=
 16339   ' <$as_myself |
 16340     sed '
 16341       s/[$]LINENO.*/&-/
 16342       t lineno
 16344       :lineno
 16346       :loop
 16347       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 16348       t loop
 16349       s/-\n.*//
 16350     ' >$as_me.lineno &&
 16351   chmod +x "$as_me.lineno" ||
 16352     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 16353    { (exit 1); exit 1; }; }
 16355   # Don't try to exec as it changes $[0], causing all sort of problems
 16356   # (the dirname of $[0] is not the place where we might find the
 16357   # original and so on.  Autoconf is especially sensitive to this).
 16358   . "./$as_me.lineno"
 16359   # Exit status is that of the last command.
 16360   exit
 16364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 16365   as_dirname=dirname
 16366 else
 16367   as_dirname=false
 16368 fi
 16370 ECHO_C= ECHO_N= ECHO_T=
 16371 case `echo -n x` in
 16372 -n*)
 16373   case `echo 'x\c'` in
 16374   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 16375   *)   ECHO_C='\c';;
 16376   esac;;
 16377 *)
 16378   ECHO_N='-n';;
 16379 esac
 16381 if expr a : '\(a\)' >/dev/null 2>&1 &&
 16382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 16383   as_expr=expr
 16384 else
 16385   as_expr=false
 16386 fi
 16388 rm -f conf$$ conf$$.exe conf$$.file
 16389 if test -d conf$$.dir; then
 16390   rm -f conf$$.dir/conf$$.file
 16391 else
 16392   rm -f conf$$.dir
 16393   mkdir conf$$.dir
 16394 fi
 16395 echo >conf$$.file
 16396 if ln -s conf$$.file conf$$ 2>/dev/null; then
 16397   as_ln_s='ln -s'
 16398   # ... but there are two gotchas:
 16399   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 16400   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 16401   # In both cases, we have to default to `cp -p'.
 16402   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 16403     as_ln_s='cp -p'
 16404 elif ln conf$$.file conf$$ 2>/dev/null; then
 16405   as_ln_s=ln
 16406 else
 16407   as_ln_s='cp -p'
 16408 fi
 16409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 16410 rmdir conf$$.dir 2>/dev/null
 16412 if mkdir -p . 2>/dev/null; then
 16413   as_mkdir_p=:
 16414 else
 16415   test -d ./-p && rmdir ./-p
 16416   as_mkdir_p=false
 16417 fi
 16419 if test -x / >/dev/null 2>&1; then
 16420   as_test_x='test -x'
 16421 else
 16422   if ls -dL / >/dev/null 2>&1; then
 16423     as_ls_L_option=L
 16424   else
 16425     as_ls_L_option=
 16426   fi
 16427   as_test_x='
 16428     eval sh -c '\''
 16429       if test -d "$1"; then
 16430         test -d "$1/.";
 16431       else
 16432 	case $1 in
 16433         -*)set "./$1";;
 16434 	esac;
 16435 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 16436 	???[sx]*):;;*)false;;esac;fi
 16437     '\'' sh
 16439 fi
 16440 as_executable_p=$as_test_x
 16442 # Sed expression to map a string onto a valid CPP name.
 16443 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 16445 # Sed expression to map a string onto a valid variable name.
 16446 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 16449 exec 6>&1
 16451 # Save the log message, to keep $[0] and so on meaningful, and to
 16452 # report actual input values of CONFIG_FILES etc. instead of their
 16453 # values after options handling.
 16454 ac_log="
 16455 This file was extended by $as_me, which was
 16456 generated by GNU Autoconf 2.61.  Invocation command line was
 16458   CONFIG_FILES    = $CONFIG_FILES
 16459   CONFIG_HEADERS  = $CONFIG_HEADERS
 16460   CONFIG_LINKS    = $CONFIG_LINKS
 16461   CONFIG_COMMANDS = $CONFIG_COMMANDS
 16462   $ $0 $@
 16464 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 16467 _ACEOF
 16469 cat >>$CONFIG_STATUS <<_ACEOF
 16470 # Files that config.status was made for.
 16471 config_files="$ac_config_files"
 16472 config_headers="$ac_config_headers"
 16473 config_commands="$ac_config_commands"
 16475 _ACEOF
 16477 cat >>$CONFIG_STATUS <<\_ACEOF
 16478 ac_cs_usage="\
 16479 \`$as_me' instantiates files from templates according to the
 16480 current configuration.
 16482 Usage: $0 [OPTIONS] [FILE]...
 16484   -h, --help       print this help, then exit
 16485   -V, --version    print version number and configuration settings, then exit
 16486   -q, --quiet      do not print progress messages
 16487   -d, --debug      don't remove temporary files
 16488       --recheck    update $as_me by reconfiguring in the same conditions
 16489   --file=FILE[:TEMPLATE]
 16490 		   instantiate the configuration file FILE
 16491   --header=FILE[:TEMPLATE]
 16492 		   instantiate the configuration header FILE
 16494 Configuration files:
 16495 $config_files
 16497 Configuration headers:
 16498 $config_headers
 16500 Configuration commands:
 16501 $config_commands
 16503 Report bugs to <bug-autoconf@gnu.org>."
 16505 _ACEOF
 16506 cat >>$CONFIG_STATUS <<_ACEOF
 16507 ac_cs_version="\\
 16508 config.status
 16509 configured by $0, generated by GNU Autoconf 2.61,
 16510   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 16512 Copyright (C) 2006 Free Software Foundation, Inc.
 16513 This config.status script is free software; the Free Software Foundation
 16514 gives unlimited permission to copy, distribute and modify it."
 16516 ac_pwd='$ac_pwd'
 16517 srcdir='$srcdir'
 16518 INSTALL='$INSTALL'
 16519 _ACEOF
 16521 cat >>$CONFIG_STATUS <<\_ACEOF
 16522 # If no file are specified by the user, then we need to provide default
 16523 # value.  By we need to know if files were specified by the user.
 16524 ac_need_defaults=:
 16525 while test $# != 0
 16526 do
 16527   case $1 in
 16528   --*=*)
 16529     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 16530     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 16531     ac_shift=:
 16532     ;;
 16533   *)
 16534     ac_option=$1
 16535     ac_optarg=$2
 16536     ac_shift=shift
 16537     ;;
 16538   esac
 16540   case $ac_option in
 16541   # Handling of the options.
 16542   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 16543     ac_cs_recheck=: ;;
 16544   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 16545     echo "$ac_cs_version"; exit ;;
 16546   --debug | --debu | --deb | --de | --d | -d )
 16547     debug=: ;;
 16548   --file | --fil | --fi | --f )
 16549     $ac_shift
 16550     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 16551     ac_need_defaults=false;;
 16552   --header | --heade | --head | --hea )
 16553     $ac_shift
 16554     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 16555     ac_need_defaults=false;;
 16556   --he | --h)
 16557     # Conflict between --help and --header
 16558     { echo "$as_me: error: ambiguous option: $1
 16559 Try \`$0 --help' for more information." >&2
 16560    { (exit 1); exit 1; }; };;
 16561   --help | --hel | -h )
 16562     echo "$ac_cs_usage"; exit ;;
 16563   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 16564   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 16565     ac_cs_silent=: ;;
 16567   # This is an error.
 16568   -*) { echo "$as_me: error: unrecognized option: $1
 16569 Try \`$0 --help' for more information." >&2
 16570    { (exit 1); exit 1; }; } ;;
 16572   *) ac_config_targets="$ac_config_targets $1"
 16573      ac_need_defaults=false ;;
 16575   esac
 16576   shift
 16577 done
 16579 ac_configure_extra_args=
 16581 if $ac_cs_silent; then
 16582   exec 6>/dev/null
 16583   ac_configure_extra_args="$ac_configure_extra_args --silent"
 16584 fi
 16586 _ACEOF
 16587 cat >>$CONFIG_STATUS <<_ACEOF
 16588 if \$ac_cs_recheck; then
 16589   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 16590   CONFIG_SHELL=$SHELL
 16591   export CONFIG_SHELL
 16592   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 16593 fi
 16595 _ACEOF
 16596 cat >>$CONFIG_STATUS <<\_ACEOF
 16597 exec 5>>config.log
 16599   echo
 16600   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 16601 ## Running $as_me. ##
 16602 _ASBOX
 16603   echo "$ac_log"
 16604 } >&5
 16606 _ACEOF
 16607 cat >>$CONFIG_STATUS <<_ACEOF
 16609 # INIT-COMMANDS
 16611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 16614 _ACEOF
 16616 cat >>$CONFIG_STATUS <<\_ACEOF
 16618 # Handling of arguments.
 16619 for ac_config_target in $ac_config_targets
 16620 do
 16621   case $ac_config_target in
 16622     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 16623     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 16624     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 16625     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 16626     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 16627     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
 16628     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 16629     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 16630     "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
 16632   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 16633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 16634    { (exit 1); exit 1; }; };;
 16635   esac
 16636 done
 16639 # If the user did not use the arguments to specify the items to instantiate,
 16640 # then the envvar interface is used.  Set only those that are not.
 16641 # We use the long form for the default assignment because of an extremely
 16642 # bizarre bug on SunOS 4.1.3.
 16643 if $ac_need_defaults; then
 16644   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 16645   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 16646   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 16647 fi
 16649 # Have a temporary directory for convenience.  Make it in the build tree
 16650 # simply because there is no reason against having it here, and in addition,
 16651 # creating and moving files from /tmp can sometimes cause problems.
 16652 # Hook for its removal unless debugging.
 16653 # Note that there is a small window in which the directory will not be cleaned:
 16654 # after its creation but before its name has been assigned to `$tmp'.
 16655 $debug ||
 16657   tmp=
 16658   trap 'exit_status=$?
 16659   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 16660 ' 0
 16661   trap '{ (exit 1); exit 1; }' 1 2 13 15
 16663 # Create a (secure) tmp directory for tmp files.
 16666   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 16667   test -n "$tmp" && test -d "$tmp"
 16668 }  ||
 16670   tmp=./conf$$-$RANDOM
 16671   (umask 077 && mkdir "$tmp")
 16672 } ||
 16674    echo "$me: cannot create a temporary directory in ." >&2
 16675    { (exit 1); exit 1; }
 16679 # Set up the sed scripts for CONFIG_FILES section.
 16682 # No need to generate the scripts if there are no CONFIG_FILES.
 16683 # This happens for instance when ./config.status config.h
 16684 if test -n "$CONFIG_FILES"; then
 16686 _ACEOF
 16690 ac_delim='%!_!# '
 16691 for ac_last_try in false false false false false :; do
 16692   cat >conf$$subs.sed <<_ACEOF
 16693 SHELL!$SHELL$ac_delim
 16694 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 16695 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 16696 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 16697 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 16698 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 16699 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 16700 exec_prefix!$exec_prefix$ac_delim
 16701 prefix!$prefix$ac_delim
 16702 program_transform_name!$program_transform_name$ac_delim
 16703 bindir!$bindir$ac_delim
 16704 sbindir!$sbindir$ac_delim
 16705 libexecdir!$libexecdir$ac_delim
 16706 datarootdir!$datarootdir$ac_delim
 16707 datadir!$datadir$ac_delim
 16708 sysconfdir!$sysconfdir$ac_delim
 16709 sharedstatedir!$sharedstatedir$ac_delim
 16710 localstatedir!$localstatedir$ac_delim
 16711 includedir!$includedir$ac_delim
 16712 oldincludedir!$oldincludedir$ac_delim
 16713 docdir!$docdir$ac_delim
 16714 infodir!$infodir$ac_delim
 16715 htmldir!$htmldir$ac_delim
 16716 dvidir!$dvidir$ac_delim
 16717 pdfdir!$pdfdir$ac_delim
 16718 psdir!$psdir$ac_delim
 16719 libdir!$libdir$ac_delim
 16720 localedir!$localedir$ac_delim
 16721 mandir!$mandir$ac_delim
 16722 DEFS!$DEFS$ac_delim
 16723 ECHO_C!$ECHO_C$ac_delim
 16724 ECHO_N!$ECHO_N$ac_delim
 16725 ECHO_T!$ECHO_T$ac_delim
 16726 LIBS!$LIBS$ac_delim
 16727 build_alias!$build_alias$ac_delim
 16728 host_alias!$host_alias$ac_delim
 16729 target_alias!$target_alias$ac_delim
 16730 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 16731 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 16732 INSTALL_DATA!$INSTALL_DATA$ac_delim
 16733 CYGPATH_W!$CYGPATH_W$ac_delim
 16734 PACKAGE!$PACKAGE$ac_delim
 16735 VERSION!$VERSION$ac_delim
 16736 ACLOCAL!$ACLOCAL$ac_delim
 16737 AUTOCONF!$AUTOCONF$ac_delim
 16738 AUTOMAKE!$AUTOMAKE$ac_delim
 16739 AUTOHEADER!$AUTOHEADER$ac_delim
 16740 MAKEINFO!$MAKEINFO$ac_delim
 16741 install_sh!$install_sh$ac_delim
 16742 STRIP!$STRIP$ac_delim
 16743 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 16744 mkdir_p!$mkdir_p$ac_delim
 16745 AWK!$AWK$ac_delim
 16746 SET_MAKE!$SET_MAKE$ac_delim
 16747 am__leading_dot!$am__leading_dot$ac_delim
 16748 AMTAR!$AMTAR$ac_delim
 16749 am__tar!$am__tar$ac_delim
 16750 am__untar!$am__untar$ac_delim
 16751 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 16752 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 16753 MAINT!$MAINT$ac_delim
 16754 build!$build$ac_delim
 16755 build_cpu!$build_cpu$ac_delim
 16756 build_vendor!$build_vendor$ac_delim
 16757 build_os!$build_os$ac_delim
 16758 host!$host$ac_delim
 16759 host_cpu!$host_cpu$ac_delim
 16760 host_vendor!$host_vendor$ac_delim
 16761 host_os!$host_os$ac_delim
 16762 ANT!$ANT$ac_delim
 16763 ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
 16764 ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
 16765 ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
 16766 ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
 16767 ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
 16768 GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
 16769 GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
 16770 CC!$CC$ac_delim
 16771 CFLAGS!$CFLAGS$ac_delim
 16772 LDFLAGS!$LDFLAGS$ac_delim
 16773 CPPFLAGS!$CPPFLAGS$ac_delim
 16774 ac_ct_CC!$ac_ct_CC$ac_delim
 16775 EXEEXT!$EXEEXT$ac_delim
 16776 OBJEXT!$OBJEXT$ac_delim
 16777 DEPDIR!$DEPDIR$ac_delim
 16778 am__include!$am__include$ac_delim
 16779 am__quote!$am__quote$ac_delim
 16780 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 16781 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 16782 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 16783 CCDEPMODE!$CCDEPMODE$ac_delim
 16784 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 16785 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 16786 CPP!$CPP$ac_delim
 16787 CC!$CC$ac_delim
 16788 CFLAGS!$CFLAGS$ac_delim
 16789 CPPFLAGS!$CPPFLAGS$ac_delim
 16790 _ACEOF
 16792   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 16793     break
 16794   elif $ac_last_try; then
 16795     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 16796 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 16797    { (exit 1); exit 1; }; }
 16798   else
 16799     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 16800   fi
 16801 done
 16803 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 16804 if test -n "$ac_eof"; then
 16805   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 16806   ac_eof=`expr $ac_eof + 1`
 16807 fi
 16809 cat >>$CONFIG_STATUS <<_ACEOF
 16810 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 16811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 16812 _ACEOF
 16813 sed '
 16814 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 16815 s/^/s,@/; s/!/@,|#_!!_#|/
 16816 :n
 16817 t n
 16818 s/'"$ac_delim"'$/,g/; t
 16819 s/$/\\/; p
 16820 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 16821 ' >>$CONFIG_STATUS <conf$$subs.sed
 16822 rm -f conf$$subs.sed
 16823 cat >>$CONFIG_STATUS <<_ACEOF
 16824 CEOF$ac_eof
 16825 _ACEOF
 16828 ac_delim='%!_!# '
 16829 for ac_last_try in false false false false false :; do
 16830   cat >conf$$subs.sed <<_ACEOF
 16831 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
 16832 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
 16833 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
 16834 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
 16835 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
 16836 CPP!$CPP$ac_delim
 16837 CPPFLAGS!$CPPFLAGS$ac_delim
 16838 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
 16839 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
 16840 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
 16841 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
 16842 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
 16843 OBJC!$OBJC$ac_delim
 16844 OBJCFLAGS!$OBJCFLAGS$ac_delim
 16845 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
 16846 SED!$SED$ac_delim
 16847 CCAS!$CCAS$ac_delim
 16848 CCASFLAGS!$CCASFLAGS$ac_delim
 16849 RANLIB!$RANLIB$ac_delim
 16850 GREP!$GREP$ac_delim
 16851 EGREP!$EGREP$ac_delim
 16852 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
 16853 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
 16854 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
 16855 POD2MAN!$POD2MAN$ac_delim
 16856 POD2HTML!$POD2HTML$ac_delim
 16857 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
 16858 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
 16859 SOEXT!$SOEXT$ac_delim
 16860 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
 16861 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
 16862 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
 16863 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
 16864 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
 16865 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
 16866 PKG_CONFIG!$PKG_CONFIG$ac_delim
 16867 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
 16868 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
 16869 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
 16870 GLIB_LIBS!$GLIB_LIBS$ac_delim
 16871 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
 16872 GTK_LIBS!$GTK_LIBS$ac_delim
 16873 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
 16874 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
 16875 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
 16876 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
 16877 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
 16878 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
 16879 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
 16880 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
 16881 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
 16882 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
 16883 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
 16884 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
 16885 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
 16886 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
 16887 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
 16888 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
 16889 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
 16890 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
 16891 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
 16892 SDL_LIBS!$SDL_LIBS$ac_delim
 16893 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
 16894 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
 16895 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
 16896 PULSE_LIBS!$PULSE_LIBS$ac_delim
 16897 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
 16898 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
 16899 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
 16900 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
 16901 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
 16902 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
 16903 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
 16904 ALSA_LIBS!$ALSA_LIBS$ac_delim
 16905 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
 16906 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
 16907 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
 16908 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
 16909 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
 16910 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
 16911 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
 16912 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
 16913 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
 16914 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
 16915 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
 16916 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
 16917 SHCC!$SHCC$ac_delim
 16918 SHLD!$SHLD$ac_delim
 16919 SHOBJCOPY!$SHOBJCOPY$ac_delim
 16920 ARMCC!$ARMCC$ac_delim
 16921 ARMLD!$ARMLD$ac_delim
 16922 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
 16923 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
 16924 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
 16925 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
 16926 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
 16927 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
 16928 _ACEOF
 16930   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 16931     break
 16932   elif $ac_last_try; then
 16933     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 16934 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 16935    { (exit 1); exit 1; }; }
 16936   else
 16937     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 16938   fi
 16939 done
 16941 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 16942 if test -n "$ac_eof"; then
 16943   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 16944   ac_eof=`expr $ac_eof + 1`
 16945 fi
 16947 cat >>$CONFIG_STATUS <<_ACEOF
 16948 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 16949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 16950 _ACEOF
 16951 sed '
 16952 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 16953 s/^/s,@/; s/!/@,|#_!!_#|/
 16954 :n
 16955 t n
 16956 s/'"$ac_delim"'$/,g/; t
 16957 s/$/\\/; p
 16958 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 16959 ' >>$CONFIG_STATUS <conf$$subs.sed
 16960 rm -f conf$$subs.sed
 16961 cat >>$CONFIG_STATUS <<_ACEOF
 16962 CEOF$ac_eof
 16963 _ACEOF
 16966 ac_delim='%!_!# '
 16967 for ac_last_try in false false false false false :; do
 16968   cat >conf$$subs.sed <<_ACEOF
 16969 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 16970 USE_NLS!$USE_NLS$ac_delim
 16971 MSGFMT!$MSGFMT$ac_delim
 16972 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
 16973 GMSGFMT!$GMSGFMT$ac_delim
 16974 XGETTEXT!$XGETTEXT$ac_delim
 16975 CATALOGS!$CATALOGS$ac_delim
 16976 CATOBJEXT!$CATOBJEXT$ac_delim
 16977 DATADIRNAME!$DATADIRNAME$ac_delim
 16978 GMOFILES!$GMOFILES$ac_delim
 16979 INSTOBJEXT!$INSTOBJEXT$ac_delim
 16980 INTLLIBS!$INTLLIBS$ac_delim
 16981 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
 16982 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
 16983 POFILES!$POFILES$ac_delim
 16984 POSUB!$POSUB$ac_delim
 16985 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 16986 LIBOBJS!$LIBOBJS$ac_delim
 16987 LTLIBOBJS!$LTLIBOBJS$ac_delim
 16988 _ACEOF
 16990   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
 16991     break
 16992   elif $ac_last_try; then
 16993     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 16994 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 16995    { (exit 1); exit 1; }; }
 16996   else
 16997     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 16998   fi
 16999 done
 17001 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 17002 if test -n "$ac_eof"; then
 17003   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 17004   ac_eof=`expr $ac_eof + 1`
 17005 fi
 17007 cat >>$CONFIG_STATUS <<_ACEOF
 17008 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
 17009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 17010 _ACEOF
 17011 sed '
 17012 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 17013 s/^/s,@/; s/!/@,|#_!!_#|/
 17014 :n
 17015 t n
 17016 s/'"$ac_delim"'$/,g/; t
 17017 s/$/\\/; p
 17018 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 17019 ' >>$CONFIG_STATUS <conf$$subs.sed
 17020 rm -f conf$$subs.sed
 17021 cat >>$CONFIG_STATUS <<_ACEOF
 17022 :end
 17023 s/|#_!!_#|//g
 17024 CEOF$ac_eof
 17025 _ACEOF
 17028 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 17029 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 17030 # trailing colons and then remove the whole line if VPATH becomes empty
 17031 # (actually we leave an empty line to preserve line numbers).
 17032 if test "x$srcdir" = x.; then
 17033   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 17034 s/:*\$(srcdir):*/:/
 17035 s/:*\${srcdir}:*/:/
 17036 s/:*@srcdir@:*/:/
 17037 s/^\([^=]*=[	 ]*\):*/\1/
 17038 s/:*$//
 17039 s/^[^=]*=[	 ]*$//
 17040 }'
 17041 fi
 17043 cat >>$CONFIG_STATUS <<\_ACEOF
 17044 fi # test -n "$CONFIG_FILES"
 17047 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 17048 do
 17049   case $ac_tag in
 17050   :[FHLC]) ac_mode=$ac_tag; continue;;
 17051   esac
 17052   case $ac_mode$ac_tag in
 17053   :[FHL]*:*);;
 17054   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 17055 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 17056    { (exit 1); exit 1; }; };;
 17057   :[FH]-) ac_tag=-:-;;
 17058   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 17059   esac
 17060   ac_save_IFS=$IFS
 17061   IFS=:
 17062   set x $ac_tag
 17063   IFS=$ac_save_IFS
 17064   shift
 17065   ac_file=$1
 17066   shift
 17068   case $ac_mode in
 17069   :L) ac_source=$1;;
 17070   :[FH])
 17071     ac_file_inputs=
 17072     for ac_f
 17073     do
 17074       case $ac_f in
 17075       -) ac_f="$tmp/stdin";;
 17076       *) # Look for the file first in the build tree, then in the source tree
 17077 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 17078 	 # because $ac_f cannot contain `:'.
 17079 	 test -f "$ac_f" ||
 17080 	   case $ac_f in
 17081 	   [\\/$]*) false;;
 17082 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 17083 	   esac ||
 17084 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 17085 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 17086    { (exit 1); exit 1; }; };;
 17087       esac
 17088       ac_file_inputs="$ac_file_inputs $ac_f"
 17089     done
 17091     # Let's still pretend it is `configure' which instantiates (i.e., don't
 17092     # use $as_me), people would be surprised to read:
 17093     #    /* config.h.  Generated by config.status.  */
 17094     configure_input="Generated from "`IFS=:
 17095 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 17096     if test x"$ac_file" != x-; then
 17097       configure_input="$ac_file.  $configure_input"
 17098       { echo "$as_me:$LINENO: creating $ac_file" >&5
 17099 echo "$as_me: creating $ac_file" >&6;}
 17100     fi
 17102     case $ac_tag in
 17103     *:-:* | *:-) cat >"$tmp/stdin";;
 17104     esac
 17105     ;;
 17106   esac
 17108   ac_dir=`$as_dirname -- "$ac_file" ||
 17109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17110 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 17111 	 X"$ac_file" : 'X\(//\)$' \| \
 17112 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 17113 echo X"$ac_file" |
 17114     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17115 	    s//\1/
 17118 	  /^X\(\/\/\)[^/].*/{
 17119 	    s//\1/
 17122 	  /^X\(\/\/\)$/{
 17123 	    s//\1/
 17126 	  /^X\(\/\).*/{
 17127 	    s//\1/
 17130 	  s/.*/./; q'`
 17131   { as_dir="$ac_dir"
 17132   case $as_dir in #(
 17133   -*) as_dir=./$as_dir;;
 17134   esac
 17135   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17136     as_dirs=
 17137     while :; do
 17138       case $as_dir in #(
 17139       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17140       *) as_qdir=$as_dir;;
 17141       esac
 17142       as_dirs="'$as_qdir' $as_dirs"
 17143       as_dir=`$as_dirname -- "$as_dir" ||
 17144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17145 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17146 	 X"$as_dir" : 'X\(//\)$' \| \
 17147 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17148 echo X"$as_dir" |
 17149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17150 	    s//\1/
 17153 	  /^X\(\/\/\)[^/].*/{
 17154 	    s//\1/
 17157 	  /^X\(\/\/\)$/{
 17158 	    s//\1/
 17161 	  /^X\(\/\).*/{
 17162 	    s//\1/
 17165 	  s/.*/./; q'`
 17166       test -d "$as_dir" && break
 17167     done
 17168     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17169   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17170 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17171    { (exit 1); exit 1; }; }; }
 17172   ac_builddir=.
 17174 case "$ac_dir" in
 17175 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 17176 *)
 17177   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 17178   # A ".." for each directory in $ac_dir_suffix.
 17179   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 17180   case $ac_top_builddir_sub in
 17181   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 17182   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 17183   esac ;;
 17184 esac
 17185 ac_abs_top_builddir=$ac_pwd
 17186 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 17187 # for backward compatibility:
 17188 ac_top_builddir=$ac_top_build_prefix
 17190 case $srcdir in
 17191   .)  # We are building in place.
 17192     ac_srcdir=.
 17193     ac_top_srcdir=$ac_top_builddir_sub
 17194     ac_abs_top_srcdir=$ac_pwd ;;
 17195   [\\/]* | ?:[\\/]* )  # Absolute name.
 17196     ac_srcdir=$srcdir$ac_dir_suffix;
 17197     ac_top_srcdir=$srcdir
 17198     ac_abs_top_srcdir=$srcdir ;;
 17199   *) # Relative name.
 17200     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 17201     ac_top_srcdir=$ac_top_build_prefix$srcdir
 17202     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 17203 esac
 17204 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 17207   case $ac_mode in
 17208   :F)
 17210   # CONFIG_FILE
 17213   case $INSTALL in
 17214   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 17215   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 17216   esac
 17217 _ACEOF
 17219 cat >>$CONFIG_STATUS <<\_ACEOF
 17220 # If the template does not know about datarootdir, expand it.
 17221 # FIXME: This hack should be removed a few years after 2.60.
 17222 ac_datarootdir_hack=; ac_datarootdir_seen=
 17224 case `sed -n '/datarootdir/ {
 17228 /@datadir@/p
 17229 /@docdir@/p
 17230 /@infodir@/p
 17231 /@localedir@/p
 17232 /@mandir@/p
 17233 ' $ac_file_inputs` in
 17234 *datarootdir*) ac_datarootdir_seen=yes;;
 17235 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 17236   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 17237 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 17238 _ACEOF
 17239 cat >>$CONFIG_STATUS <<_ACEOF
 17240   ac_datarootdir_hack='
 17241   s&@datadir@&$datadir&g
 17242   s&@docdir@&$docdir&g
 17243   s&@infodir@&$infodir&g
 17244   s&@localedir@&$localedir&g
 17245   s&@mandir@&$mandir&g
 17246     s&\\\${datarootdir}&$datarootdir&g' ;;
 17247 esac
 17248 _ACEOF
 17250 # Neutralize VPATH when `$srcdir' = `.'.
 17251 # Shell code in configure.ac might set extrasub.
 17252 # FIXME: do we really want to maintain this feature?
 17253 cat >>$CONFIG_STATUS <<_ACEOF
 17254   sed "$ac_vpsub
 17255 $extrasub
 17256 _ACEOF
 17257 cat >>$CONFIG_STATUS <<\_ACEOF
 17258 :t
 17259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 17260 s&@configure_input@&$configure_input&;t t
 17261 s&@top_builddir@&$ac_top_builddir_sub&;t t
 17262 s&@srcdir@&$ac_srcdir&;t t
 17263 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 17264 s&@top_srcdir@&$ac_top_srcdir&;t t
 17265 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 17266 s&@builddir@&$ac_builddir&;t t
 17267 s&@abs_builddir@&$ac_abs_builddir&;t t
 17268 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 17269 s&@INSTALL@&$ac_INSTALL&;t t
 17270 $ac_datarootdir_hack
 17271 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
 17273 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 17274   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 17275   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 17276   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 17277 which seems to be undefined.  Please make sure it is defined." >&5
 17278 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 17279 which seems to be undefined.  Please make sure it is defined." >&2;}
 17281   rm -f "$tmp/stdin"
 17282   case $ac_file in
 17283   -) cat "$tmp/out"; rm -f "$tmp/out";;
 17284   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 17285   esac
 17286  ;;
 17287   :H)
 17289   # CONFIG_HEADER
 17291 _ACEOF
 17293 # Transform confdefs.h into a sed script `conftest.defines', that
 17294 # substitutes the proper values into config.h.in to produce config.h.
 17295 rm -f conftest.defines conftest.tail
 17296 # First, append a space to every undef/define line, to ease matching.
 17297 echo 's/$/ /' >conftest.defines
 17298 # Then, protect against being on the right side of a sed subst, or in
 17299 # an unquoted here document, in config.status.  If some macros were
 17300 # called several times there might be several #defines for the same
 17301 # symbol, which is useless.  But do not sort them, since the last
 17302 # AC_DEFINE must be honored.
 17303 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 17304 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 17305 # NAME is the cpp macro being defined, VALUE is the value it is being given.
 17306 # PARAMS is the parameter list in the macro definition--in most cases, it's
 17307 # just an empty string.
 17308 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
 17309 ac_dB='\\)[	 (].*,\\1define\\2'
 17310 ac_dC=' '
 17311 ac_dD=' ,'
 17313 uniq confdefs.h |
 17314   sed -n '
 17315 	t rset
 17316 	:rset
 17317 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
 17318 	t ok
 17320 	:ok
 17321 	s/[\\&,]/\\&/g
 17322 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 17323 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 17324   ' >>conftest.defines
 17326 # Remove the space that was appended to ease matching.
 17327 # Then replace #undef with comments.  This is necessary, for
 17328 # example, in the case of _POSIX_SOURCE, which is predefined and required
 17329 # on some systems where configure will not decide to define it.
 17330 # (The regexp can be short, since the line contains either #define or #undef.)
 17331 echo 's/ $//
 17332 s,^[	 #]*u.*,/* & */,' >>conftest.defines
 17334 # Break up conftest.defines:
 17335 ac_max_sed_lines=50
 17337 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 17338 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 17339 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 17340 # et cetera.
 17341 ac_in='$ac_file_inputs'
 17342 ac_out='"$tmp/out1"'
 17343 ac_nxt='"$tmp/out2"'
 17345 while :
 17346 do
 17347   # Write a here document:
 17348     cat >>$CONFIG_STATUS <<_ACEOF
 17349     # First, check the format of the line:
 17350     cat >"\$tmp/defines.sed" <<\\CEOF
 17351 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
 17352 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
 17354 :def
 17355 _ACEOF
 17356   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 17357   echo 'CEOF
 17358     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 17359   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 17360   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 17361   grep . conftest.tail >/dev/null || break
 17362   rm -f conftest.defines
 17363   mv conftest.tail conftest.defines
 17364 done
 17365 rm -f conftest.defines conftest.tail
 17367 echo "ac_result=$ac_in" >>$CONFIG_STATUS
 17368 cat >>$CONFIG_STATUS <<\_ACEOF
 17369   if test x"$ac_file" != x-; then
 17370     echo "/* $configure_input  */" >"$tmp/config.h"
 17371     cat "$ac_result" >>"$tmp/config.h"
 17372     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 17373       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 17374 echo "$as_me: $ac_file is unchanged" >&6;}
 17375     else
 17376       rm -f $ac_file
 17377       mv "$tmp/config.h" $ac_file
 17378     fi
 17379   else
 17380     echo "/* $configure_input  */"
 17381     cat "$ac_result"
 17382   fi
 17383   rm -f "$tmp/out12"
 17384 # Compute $ac_file's index in $config_headers.
 17385 _am_stamp_count=1
 17386 for _am_header in $config_headers :; do
 17387   case $_am_header in
 17388     $ac_file | $ac_file:* )
 17389       break ;;
 17390     * )
 17391       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 17392   esac
 17393 done
 17394 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 17395 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17396 	 X$ac_file : 'X\(//\)[^/]' \| \
 17397 	 X$ac_file : 'X\(//\)$' \| \
 17398 	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 17399 echo X$ac_file |
 17400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17401 	    s//\1/
 17404 	  /^X\(\/\/\)[^/].*/{
 17405 	    s//\1/
 17408 	  /^X\(\/\/\)$/{
 17409 	    s//\1/
 17412 	  /^X\(\/\).*/{
 17413 	    s//\1/
 17416 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 17417  ;;
 17419   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 17420 echo "$as_me: executing $ac_file commands" >&6;}
 17421  ;;
 17422   esac
 17425   case $ac_file$ac_mode in
 17426     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 17427   # Strip MF so we end up with the name of the file.
 17428   mf=`echo "$mf" | sed -e 's/:.*$//'`
 17429   # Check whether this is an Automake generated Makefile or not.
 17430   # We used to match only the files named `Makefile.in', but
 17431   # some people rename them; so instead we look at the file content.
 17432   # Grep'ing the first line is not enough: some people post-process
 17433   # each Makefile.in and add a new line on top of each file to say so.
 17434   # So let's grep whole file.
 17435   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 17436     dirpart=`$as_dirname -- "$mf" ||
 17437 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17438 	 X"$mf" : 'X\(//\)[^/]' \| \
 17439 	 X"$mf" : 'X\(//\)$' \| \
 17440 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 17441 echo X"$mf" |
 17442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17443 	    s//\1/
 17446 	  /^X\(\/\/\)[^/].*/{
 17447 	    s//\1/
 17450 	  /^X\(\/\/\)$/{
 17451 	    s//\1/
 17454 	  /^X\(\/\).*/{
 17455 	    s//\1/
 17458 	  s/.*/./; q'`
 17459   else
 17460     continue
 17461   fi
 17462   # Extract the definition of DEPDIR, am__include, and am__quote
 17463   # from the Makefile without running `make'.
 17464   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 17465   test -z "$DEPDIR" && continue
 17466   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 17467   test -z "am__include" && continue
 17468   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 17469   # When using ansi2knr, U may be empty or an underscore; expand it
 17470   U=`sed -n 's/^U = //p' < "$mf"`
 17471   # Find all dependency output files, they are included files with
 17472   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 17473   # simplest approach to changing $(DEPDIR) to its actual value in the
 17474   # expansion.
 17475   for file in `sed -n "
 17476     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 17477        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 17478     # Make sure the directory exists.
 17479     test -f "$dirpart/$file" && continue
 17480     fdir=`$as_dirname -- "$file" ||
 17481 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17482 	 X"$file" : 'X\(//\)[^/]' \| \
 17483 	 X"$file" : 'X\(//\)$' \| \
 17484 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 17485 echo X"$file" |
 17486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17487 	    s//\1/
 17490 	  /^X\(\/\/\)[^/].*/{
 17491 	    s//\1/
 17494 	  /^X\(\/\/\)$/{
 17495 	    s//\1/
 17498 	  /^X\(\/\).*/{
 17499 	    s//\1/
 17502 	  s/.*/./; q'`
 17503     { as_dir=$dirpart/$fdir
 17504   case $as_dir in #(
 17505   -*) as_dir=./$as_dir;;
 17506   esac
 17507   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17508     as_dirs=
 17509     while :; do
 17510       case $as_dir in #(
 17511       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17512       *) as_qdir=$as_dir;;
 17513       esac
 17514       as_dirs="'$as_qdir' $as_dirs"
 17515       as_dir=`$as_dirname -- "$as_dir" ||
 17516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17517 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17518 	 X"$as_dir" : 'X\(//\)$' \| \
 17519 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17520 echo X"$as_dir" |
 17521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17522 	    s//\1/
 17525 	  /^X\(\/\/\)[^/].*/{
 17526 	    s//\1/
 17529 	  /^X\(\/\/\)$/{
 17530 	    s//\1/
 17533 	  /^X\(\/\).*/{
 17534 	    s//\1/
 17537 	  s/.*/./; q'`
 17538       test -d "$as_dir" && break
 17539     done
 17540     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17541   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17542 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17543    { (exit 1); exit 1; }; }; }
 17544     # echo "creating $dirpart/$file"
 17545     echo '# dummy' > "$dirpart/$file"
 17546   done
 17547 done
 17548  ;;
 17549     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 17550         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 17551       esac ;;
 17553   esac
 17554 done # for ac_tag
 17557 { (exit 0); exit 0; }
 17558 _ACEOF
 17559 chmod +x $CONFIG_STATUS
 17560 ac_clean_files=$ac_clean_files_save
 17563 # configure is writing to config.log, and then calls config.status.
 17564 # config.status does its own redirection, appending to config.log.
 17565 # Unfortunately, on DOS this fails, as config.log is still kept open
 17566 # by configure, so config.status won't be able to write to it; its
 17567 # output is simply discarded.  So we exec the FD to /dev/null,
 17568 # effectively closing config.log, so it can be properly (re)opened and
 17569 # appended to by config.status.  When coming back to configure, we
 17570 # need to make the FD available again.
 17571 if test "$no_create" != yes; then
 17572   ac_cs_success=:
 17573   ac_config_status_args=
 17574   test "$silent" = yes &&
 17575     ac_config_status_args="$ac_config_status_args --quiet"
 17576   exec 5>/dev/null
 17577   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 17578   exec 5>>config.log
 17579   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 17580   # would make configure fail if this is the last instruction.
 17581   $ac_cs_success || { (exit 1); exit 1; }
 17582 fi
 17584 { as_dir=test/sh4
 17585   case $as_dir in #(
 17586   -*) as_dir=./$as_dir;;
 17587   esac
 17588   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17589     as_dirs=
 17590     while :; do
 17591       case $as_dir in #(
 17592       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17593       *) as_qdir=$as_dir;;
 17594       esac
 17595       as_dirs="'$as_qdir' $as_dirs"
 17596       as_dir=`$as_dirname -- "$as_dir" ||
 17597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17598 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17599 	 X"$as_dir" : 'X\(//\)$' \| \
 17600 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17601 echo X"$as_dir" |
 17602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17603 	    s//\1/
 17606 	  /^X\(\/\/\)[^/].*/{
 17607 	    s//\1/
 17610 	  /^X\(\/\/\)$/{
 17611 	    s//\1/
 17614 	  /^X\(\/\).*/{
 17615 	    s//\1/
 17618 	  s/.*/./; q'`
 17619       test -d "$as_dir" && break
 17620     done
 17621     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17622   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17623 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17624    { (exit 1); exit 1; }; }; }
 17627 echo
 17628 echo "Configuration complete"
 17629 echo
 17631 if test "x$UI_DRIVER" = x; then
 17632   echo "  User interface: none"
 17633 else
 17634   echo "  User interface: $UI_DRIVER"
 17635 fi
 17637 if test "x$SH4_TRANSLATOR" = "x"; then
 17638   echo "  SH4 translator: none (emulation core only)"
 17639 else
 17640   echo "  SH4 translator: $SH4_TRANSLATOR"
 17641 fi
 17643 if test "x$VIDEO_DRIVERS" = "x"; then
 17644    echo "  Video drivers: none (no supported GL found)"
 17645 else
 17646    echo "  Video drivers: $VIDEO_DRIVERS"
 17647 fi
 17649 if test "x$AUDIO_DRIVERS" = "x"; then
 17650    echo "  Audio drivers: none (no supported output devices found)"
 17651 else
 17652    echo "  Audio drivers: $AUDIO_DRIVERS"
 17653 fi
 17655 if test "x$INPUT_DRIVERS" = "x"; then
 17656    echo "  Input drivers: none (no supported input devices found)"
 17657 else
 17658    echo "  Input drivers: $INPUT_DRIVERS"
 17659 fi
 17661 if test "x$CDROM_DRIVER" = "x"; then
 17662    echo "  CD-ROM driver: none (no supported cd-rom devices found)"
 17663 else
 17664    echo "  CD-ROM driver:  $CDROM_DRIVER"
 17665 fi
.