Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1239:be3121267597
prev1235:8da2f3dad9c0
next1245:01e0020adf88
author nkeynes
date Tue Feb 28 17:31:26 2012 +1000 (12 years ago)
permissions -rwxr-xr-x
last change Fix accidental change of sense for HAVE_OPENGL_FIXEDFUNC
view annotate diff log raw
     1 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.61.
     4 #
     5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     7 # This configure script is free software; the Free Software Foundation
     8 # gives unlimited permission to copy, distribute and modify it.
     9 ## --------------------- ##
    10 ## M4sh Initialization.  ##
    11 ## --------------------- ##
    13 # Be more Bourne compatible
    14 DUALCASE=1; export DUALCASE # for MKS sh
    15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    16   emulate sh
    17   NULLCMD=:
    18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    19   # is contrary to our usage.  Disable this feature.
    20   alias -g '${1+"$@"}'='"$@"'
    21   setopt NO_GLOB_SUBST
    22 else
    23   case `(set -o) 2>/dev/null` in
    24   *posix*) set -o posix ;;
    25 esac
    27 fi
    32 # PATH needs CR
    33 # Avoid depending upon Character Ranges.
    34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    37 as_cr_digits='0123456789'
    38 as_cr_alnum=$as_cr_Letters$as_cr_digits
    40 # The user is always right.
    41 if test "${PATH_SEPARATOR+set}" != set; then
    42   echo "#! /bin/sh" >conf$$.sh
    43   echo  "exit 0"   >>conf$$.sh
    44   chmod +x conf$$.sh
    45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    46     PATH_SEPARATOR=';'
    47   else
    48     PATH_SEPARATOR=:
    49   fi
    50   rm -f conf$$.sh
    51 fi
    53 # Support unset when possible.
    54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    55   as_unset=unset
    56 else
    57   as_unset=false
    58 fi
    61 # IFS
    62 # We need space, tab and new line, in precisely that order.  Quoting is
    63 # there to prevent editors from complaining about space-tab.
    64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    65 # splitting by setting IFS to empty value.)
    66 as_nl='
    67 '
    68 IFS=" ""	$as_nl"
    70 # Find who we are.  Look in the path if we contain no directory separator.
    71 case $0 in
    72   *[\\/]* ) as_myself=$0 ;;
    73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    74 for as_dir in $PATH
    75 do
    76   IFS=$as_save_IFS
    77   test -z "$as_dir" && as_dir=.
    78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    79 done
    80 IFS=$as_save_IFS
    82      ;;
    83 esac
    84 # We did not find ourselves, most probably we were run as `sh COMMAND'
    85 # in which case we are not to be found in the path.
    86 if test "x$as_myself" = x; then
    87   as_myself=$0
    88 fi
    89 if test ! -f "$as_myself"; then
    90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    91   { (exit 1); exit 1; }
    92 fi
    94 # Work around bugs in pre-3.0 UWIN ksh.
    95 for as_var in ENV MAIL MAILPATH
    96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    97 done
    98 PS1='$ '
    99 PS2='> '
   100 PS4='+ '
   102 # NLS nuisances.
   103 for as_var in \
   104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   106   LC_TELEPHONE LC_TIME
   107 do
   108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   109     eval $as_var=C; export $as_var
   110   else
   111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   112   fi
   113 done
   115 # Required to use basename.
   116 if expr a : '\(a\)' >/dev/null 2>&1 &&
   117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   118   as_expr=expr
   119 else
   120   as_expr=false
   121 fi
   123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   124   as_basename=basename
   125 else
   126   as_basename=false
   127 fi
   130 # Name of the executable.
   131 as_me=`$as_basename -- "$0" ||
   132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   133 	 X"$0" : 'X\(//\)$' \| \
   134 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   135 echo X/"$0" |
   136     sed '/^.*\/\([^/][^/]*\)\/*$/{
   137 	    s//\1/
   138 	    q
   139 	  }
   140 	  /^X\/\(\/\/\)$/{
   141 	    s//\1/
   142 	    q
   143 	  }
   144 	  /^X\/\(\/\).*/{
   145 	    s//\1/
   146 	    q
   147 	  }
   148 	  s/.*/./; q'`
   150 # CDPATH.
   151 $as_unset CDPATH
   154 if test "x$CONFIG_SHELL" = x; then
   155   if (eval ":") 2>/dev/null; then
   156   as_have_required=yes
   157 else
   158   as_have_required=no
   159 fi
   161   if test $as_have_required = yes && 	 (eval ":
   162 (as_func_return () {
   163   (exit \$1)
   164 }
   165 as_func_success () {
   166   as_func_return 0
   167 }
   168 as_func_failure () {
   169   as_func_return 1
   170 }
   171 as_func_ret_success () {
   172   return 0
   173 }
   174 as_func_ret_failure () {
   175   return 1
   176 }
   178 exitcode=0
   179 if as_func_success; then
   180   :
   181 else
   182   exitcode=1
   183   echo as_func_success failed.
   184 fi
   186 if as_func_failure; then
   187   exitcode=1
   188   echo as_func_failure succeeded.
   189 fi
   191 if as_func_ret_success; then
   192   :
   193 else
   194   exitcode=1
   195   echo as_func_ret_success failed.
   196 fi
   198 if as_func_ret_failure; then
   199   exitcode=1
   200   echo as_func_ret_failure succeeded.
   201 fi
   203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   204   :
   205 else
   206   exitcode=1
   207   echo positional parameters were not saved.
   208 fi
   210 test \$exitcode = 0) || { (exit 1); exit 1; }
   212 (
   213   as_lineno_1=\$LINENO
   214   as_lineno_2=\$LINENO
   215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
   216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
   217 ") 2> /dev/null; then
   218   :
   219 else
   220   as_candidate_shells=
   221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   223 do
   224   IFS=$as_save_IFS
   225   test -z "$as_dir" && as_dir=.
   226   case $as_dir in
   227 	 /*)
   228 	   for as_base in sh bash ksh sh5; do
   229 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
   230 	   done;;
   231        esac
   232 done
   233 IFS=$as_save_IFS
   236       for as_shell in $as_candidate_shells $SHELL; do
   237 	 # Try only shells that exist, to save several forks.
   238 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   239 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
   240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   241   emulate sh
   242   NULLCMD=:
   243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   244   # is contrary to our usage.  Disable this feature.
   245   alias -g '${1+"$@"}'='"$@"'
   246   setopt NO_GLOB_SUBST
   247 else
   248   case `(set -o) 2>/dev/null` in
   249   *posix*) set -o posix ;;
   250 esac
   252 fi
   255 :
   256 _ASEOF
   257 }; then
   258   CONFIG_SHELL=$as_shell
   259 	       as_have_required=yes
   260 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
   261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   262   emulate sh
   263   NULLCMD=:
   264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   265   # is contrary to our usage.  Disable this feature.
   266   alias -g '${1+"$@"}'='"$@"'
   267   setopt NO_GLOB_SUBST
   268 else
   269   case `(set -o) 2>/dev/null` in
   270   *posix*) set -o posix ;;
   271 esac
   273 fi
   276 :
   277 (as_func_return () {
   278   (exit $1)
   279 }
   280 as_func_success () {
   281   as_func_return 0
   282 }
   283 as_func_failure () {
   284   as_func_return 1
   285 }
   286 as_func_ret_success () {
   287   return 0
   288 }
   289 as_func_ret_failure () {
   290   return 1
   291 }
   293 exitcode=0
   294 if as_func_success; then
   295   :
   296 else
   297   exitcode=1
   298   echo as_func_success failed.
   299 fi
   301 if as_func_failure; then
   302   exitcode=1
   303   echo as_func_failure succeeded.
   304 fi
   306 if as_func_ret_success; then
   307   :
   308 else
   309   exitcode=1
   310   echo as_func_ret_success failed.
   311 fi
   313 if as_func_ret_failure; then
   314   exitcode=1
   315   echo as_func_ret_failure succeeded.
   316 fi
   318 if ( set x; as_func_ret_success y && test x = "$1" ); then
   319   :
   320 else
   321   exitcode=1
   322   echo positional parameters were not saved.
   323 fi
   325 test $exitcode = 0) || { (exit 1); exit 1; }
   327 (
   328   as_lineno_1=$LINENO
   329   as_lineno_2=$LINENO
   330   test "x$as_lineno_1" != "x$as_lineno_2" &&
   331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
   333 _ASEOF
   334 }; then
   335   break
   336 fi
   338 fi
   340       done
   342       if test "x$CONFIG_SHELL" != x; then
   343   for as_var in BASH_ENV ENV
   344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   345         done
   346         export CONFIG_SHELL
   347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   348 fi
   351     if test $as_have_required = no; then
   352   echo This script requires a shell more modern than all the
   353       echo shells that I found on your system.  Please install a
   354       echo modern shell, or manually run the script under such a
   355       echo shell if you do have one.
   356       { (exit 1); exit 1; }
   357 fi
   360 fi
   362 fi
   366 (eval "as_func_return () {
   367   (exit \$1)
   368 }
   369 as_func_success () {
   370   as_func_return 0
   371 }
   372 as_func_failure () {
   373   as_func_return 1
   374 }
   375 as_func_ret_success () {
   376   return 0
   377 }
   378 as_func_ret_failure () {
   379   return 1
   380 }
   382 exitcode=0
   383 if as_func_success; then
   384   :
   385 else
   386   exitcode=1
   387   echo as_func_success failed.
   388 fi
   390 if as_func_failure; then
   391   exitcode=1
   392   echo as_func_failure succeeded.
   393 fi
   395 if as_func_ret_success; then
   396   :
   397 else
   398   exitcode=1
   399   echo as_func_ret_success failed.
   400 fi
   402 if as_func_ret_failure; then
   403   exitcode=1
   404   echo as_func_ret_failure succeeded.
   405 fi
   407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   408   :
   409 else
   410   exitcode=1
   411   echo positional parameters were not saved.
   412 fi
   414 test \$exitcode = 0") || {
   415   echo No shell found that supports shell functions.
   416   echo Please tell autoconf@gnu.org about your system,
   417   echo including any error possibly output before this
   418   echo message
   419 }
   423   as_lineno_1=$LINENO
   424   as_lineno_2=$LINENO
   425   test "x$as_lineno_1" != "x$as_lineno_2" &&
   426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   429   # uniformly replaced by the line number.  The first 'sed' inserts a
   430   # line-number line after each line using $LINENO; the second 'sed'
   431   # does the real work.  The second script uses 'N' to pair each
   432   # line-number line with the line containing $LINENO, and appends
   433   # trailing '-' during substitution so that $LINENO is not a special
   434   # case at line end.
   435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   437   # E. McMahon (1931-1989) for sed's syntax.  :-)
   438   sed -n '
   439     p
   440     /[$]LINENO/=
   441   ' <$as_myself |
   442     sed '
   443       s/[$]LINENO.*/&-/
   444       t lineno
   445       b
   446       :lineno
   447       N
   448       :loop
   449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   450       t loop
   451       s/-\n.*//
   452     ' >$as_me.lineno &&
   453   chmod +x "$as_me.lineno" ||
   454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   455    { (exit 1); exit 1; }; }
   457   # Don't try to exec as it changes $[0], causing all sort of problems
   458   # (the dirname of $[0] is not the place where we might find the
   459   # original and so on.  Autoconf is especially sensitive to this).
   460   . "./$as_me.lineno"
   461   # Exit status is that of the last command.
   462   exit
   463 }
   466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   467   as_dirname=dirname
   468 else
   469   as_dirname=false
   470 fi
   472 ECHO_C= ECHO_N= ECHO_T=
   473 case `echo -n x` in
   474 -n*)
   475   case `echo 'x\c'` in
   476   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   477   *)   ECHO_C='\c';;
   478   esac;;
   479 *)
   480   ECHO_N='-n';;
   481 esac
   483 if expr a : '\(a\)' >/dev/null 2>&1 &&
   484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   485   as_expr=expr
   486 else
   487   as_expr=false
   488 fi
   490 rm -f conf$$ conf$$.exe conf$$.file
   491 if test -d conf$$.dir; then
   492   rm -f conf$$.dir/conf$$.file
   493 else
   494   rm -f conf$$.dir
   495   mkdir conf$$.dir
   496 fi
   497 echo >conf$$.file
   498 if ln -s conf$$.file conf$$ 2>/dev/null; then
   499   as_ln_s='ln -s'
   500   # ... but there are two gotchas:
   501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   503   # In both cases, we have to default to `cp -p'.
   504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   505     as_ln_s='cp -p'
   506 elif ln conf$$.file conf$$ 2>/dev/null; then
   507   as_ln_s=ln
   508 else
   509   as_ln_s='cp -p'
   510 fi
   511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   512 rmdir conf$$.dir 2>/dev/null
   514 if mkdir -p . 2>/dev/null; then
   515   as_mkdir_p=:
   516 else
   517   test -d ./-p && rmdir ./-p
   518   as_mkdir_p=false
   519 fi
   521 if test -x / >/dev/null 2>&1; then
   522   as_test_x='test -x'
   523 else
   524   if ls -dL / >/dev/null 2>&1; then
   525     as_ls_L_option=L
   526   else
   527     as_ls_L_option=
   528   fi
   529   as_test_x='
   530     eval sh -c '\''
   531       if test -d "$1"; then
   532         test -d "$1/.";
   533       else
   534 	case $1 in
   535         -*)set "./$1";;
   536 	esac;
   537 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   538 	???[sx]*):;;*)false;;esac;fi
   539     '\'' sh
   540   '
   541 fi
   542 as_executable_p=$as_test_x
   544 # Sed expression to map a string onto a valid CPP name.
   545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   547 # Sed expression to map a string onto a valid variable name.
   548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   552 exec 7<&0 </dev/null 6>&1
   554 # Name of the host.
   555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   556 # so uname gets run too.
   557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   559 #
   560 # Initializations.
   561 #
   562 ac_default_prefix=/usr/local
   563 ac_clean_files=
   564 ac_config_libobj_dir=.
   565 LIBOBJS=
   566 cross_compiling=no
   567 subdirs=
   568 MFLAGS=
   569 MAKEFLAGS=
   570 SHELL=${CONFIG_SHELL-/bin/sh}
   572 # Identity of this package.
   573 PACKAGE_NAME=
   574 PACKAGE_TARNAME=
   575 PACKAGE_VERSION=
   576 PACKAGE_STRING=
   577 PACKAGE_BUGREPORT=
   579 ac_unique_file="configure.in"
   580 # Factoring default headers for most tests.
   581 ac_includes_default="\
   582 #include <stdio.h>
   583 #ifdef HAVE_SYS_TYPES_H
   584 # include <sys/types.h>
   585 #endif
   586 #ifdef HAVE_SYS_STAT_H
   587 # include <sys/stat.h>
   588 #endif
   589 #ifdef STDC_HEADERS
   590 # include <stdlib.h>
   591 # include <stddef.h>
   592 #else
   593 # ifdef HAVE_STDLIB_H
   594 #  include <stdlib.h>
   595 # endif
   596 #endif
   597 #ifdef HAVE_STRING_H
   598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   599 #  include <memory.h>
   600 # endif
   601 # include <string.h>
   602 #endif
   603 #ifdef HAVE_STRINGS_H
   604 # include <strings.h>
   605 #endif
   606 #ifdef HAVE_INTTYPES_H
   607 # include <inttypes.h>
   608 #endif
   609 #ifdef HAVE_STDINT_H
   610 # include <stdint.h>
   611 #endif
   612 #ifdef HAVE_UNISTD_H
   613 # include <unistd.h>
   614 #endif"
   616 ac_subst_vars='SHELL
   617 PATH_SEPARATOR
   618 PACKAGE_NAME
   619 PACKAGE_TARNAME
   620 PACKAGE_VERSION
   621 PACKAGE_STRING
   622 PACKAGE_BUGREPORT
   623 exec_prefix
   624 prefix
   625 program_transform_name
   626 bindir
   627 sbindir
   628 libexecdir
   629 datarootdir
   630 datadir
   631 sysconfdir
   632 sharedstatedir
   633 localstatedir
   634 includedir
   635 oldincludedir
   636 docdir
   637 infodir
   638 htmldir
   639 dvidir
   640 pdfdir
   641 psdir
   642 libdir
   643 localedir
   644 mandir
   645 DEFS
   646 ECHO_C
   647 ECHO_N
   648 ECHO_T
   649 LIBS
   650 build_alias
   651 host_alias
   652 target_alias
   653 INSTALL_PROGRAM
   654 INSTALL_SCRIPT
   655 INSTALL_DATA
   656 CYGPATH_W
   657 PACKAGE
   658 VERSION
   659 ACLOCAL
   660 AUTOCONF
   661 AUTOMAKE
   662 AUTOHEADER
   663 MAKEINFO
   664 install_sh
   665 STRIP
   666 INSTALL_STRIP_PROGRAM
   667 mkdir_p
   668 AWK
   669 SET_MAKE
   670 am__leading_dot
   671 AMTAR
   672 am__tar
   673 am__untar
   674 MAINTAINER_MODE_TRUE
   675 MAINTAINER_MODE_FALSE
   676 MAINT
   677 build
   678 build_cpu
   679 build_vendor
   680 build_os
   681 host
   682 host_cpu
   683 host_vendor
   684 host_os
   685 ANT
   686 ANDROID_SDK_HOME
   687 ANDROID_NDK_HOME
   688 ANDROID_SDK_VERSION
   689 ANDROID_GDBSERVER
   690 GUI_ANDROID_TRUE
   691 GUI_ANDROID_FALSE
   692 CC
   693 CFLAGS
   694 LDFLAGS
   695 CPPFLAGS
   696 ac_ct_CC
   697 EXEEXT
   698 OBJEXT
   699 DEPDIR
   700 am__include
   701 am__quote
   702 AMDEP_TRUE
   703 AMDEP_FALSE
   704 AMDEPBACKSLASH
   705 CCDEPMODE
   706 am__fastdepCC_TRUE
   707 am__fastdepCC_FALSE
   708 CPP
   709 CC
   710 CFLAGS
   711 CPPFLAGS
   712 CC_FOR_BUILD
   713 ac_ct_CC_FOR_BUILD
   714 CC_FOR_BUILDDEPMODE
   715 am__fastdepCC_FOR_BUILD_TRUE
   716 am__fastdepCC_FOR_BUILD_FALSE
   717 CPP
   718 CPPFLAGS
   719 CPP_FOR_BUILD
   720 BUILD_EXEEXT
   721 BUILD_OBJEXT
   722 CFLAGS_FOR_BUILD
   723 CPPFLAGS_FOR_BUILD
   724 OBJC
   725 OBJCFLAGS
   726 ac_ct_OBJC
   727 SED
   728 CCAS
   729 CCASFLAGS
   730 RANLIB
   731 GREP
   732 EGREP
   733 OBJCDEPMODE
   734 am__fastdepOBJC_TRUE
   735 am__fastdepOBJC_FALSE
   736 POD2MAN
   737 POD2HTML
   738 GUI_COCOA_TRUE
   739 GUI_COCOA_FALSE
   740 SOEXT
   741 PLUGINCFLAGS
   742 PLUGINLDFLAGS
   743 LXDREAMLDFLAGS
   744 BUILD_PLUGINS_TRUE
   745 BUILD_PLUGINS_FALSE
   746 LXDREAMCPPFLAGS
   747 PKG_CONFIG
   748 LIBPNG_CFLAGS
   749 LIBPNG_LIBS
   750 GLIB_CFLAGS
   751 GLIB_LIBS
   752 GTK_CFLAGS
   753 GTK_LIBS
   754 GLIB_FOR_BUILD_CFLAGS
   755 GLIB_FOR_BUILD_LIBS
   756 GUI_GTK_TRUE
   757 GUI_GTK_FALSE
   758 LIBISOFS_CFLAGS
   759 LIBISOFS_LIBS
   760 LIBGL_CFLAGS
   761 LIBGL_LIBS
   762 VIDEO_OSMESA_TRUE
   763 VIDEO_OSMESA_FALSE
   764 VIDEO_GLX_TRUE
   765 VIDEO_GLX_FALSE
   766 VIDEO_NSGL_TRUE
   767 VIDEO_NSGL_FALSE
   768 BUILD_SH4X86_TRUE
   769 BUILD_SH4X86_FALSE
   770 AUDIO_OSX_TRUE
   771 AUDIO_OSX_FALSE
   772 SDL_CFLAGS
   773 SDL_LIBS
   774 AUDIO_SDL_TRUE
   775 AUDIO_SDL_FALSE
   776 PULSE_CFLAGS
   777 PULSE_LIBS
   778 AUDIO_PULSE_TRUE
   779 AUDIO_PULSE_FALSE
   780 ESOUND_CFLAGS
   781 ESOUND_LIBS
   782 AUDIO_ESOUND_TRUE
   783 AUDIO_ESOUND_FALSE
   784 ALSA_CFLAGS
   785 ALSA_LIBS
   786 AUDIO_ALSA_TRUE
   787 AUDIO_ALSA_FALSE
   788 CDROM_LINUX_TRUE
   789 CDROM_LINUX_FALSE
   790 CDROM_OSX_TRUE
   791 CDROM_OSX_FALSE
   792 CDROM_NONE_TRUE
   793 CDROM_NONE_FALSE
   794 JOY_LINUX_TRUE
   795 JOY_LINUX_FALSE
   796 INPUT_LIRC_TRUE
   797 INPUT_LIRC_FALSE
   798 SHCC
   799 SHLD
   800 SHOBJCOPY
   801 ARMCC
   802 ARMLD
   803 ARMOBJCOPY
   804 BUILD_SYSTEST_TRUE
   805 BUILD_SYSTEST_FALSE
   806 BUILD_ARMTEST_TRUE
   807 BUILD_ARMTEST_FALSE
   808 LXDREAM_LIBS
   809 GETTEXT_PACKAGE
   810 USE_NLS
   811 MSGFMT
   812 MSGFMT_OPTS
   813 GMSGFMT
   814 XGETTEXT
   815 CATALOGS
   816 CATOBJEXT
   817 DATADIRNAME
   818 GMOFILES
   819 INSTOBJEXT
   820 INTLLIBS
   821 PO_IN_DATADIR_TRUE
   822 PO_IN_DATADIR_FALSE
   823 POFILES
   824 POSUB
   825 MKINSTALLDIRS
   826 LIBOBJS
   827 LTLIBOBJS'
   828 ac_subst_files=''
   829       ac_precious_vars='build_alias
   830 host_alias
   831 target_alias
   832 CC
   833 CFLAGS
   834 LDFLAGS
   835 LIBS
   836 CPPFLAGS
   837 CPP
   838 CC
   839 CFLAGS
   840 CPPFLAGS
   841 CPP
   842 CPPFLAGS
   843 OBJC
   844 OBJCFLAGS
   845 CCAS
   846 CCASFLAGS
   847 PKG_CONFIG
   848 LIBPNG_CFLAGS
   849 LIBPNG_LIBS
   850 GLIB_CFLAGS
   851 GLIB_LIBS
   852 GTK_CFLAGS
   853 GTK_LIBS
   854 GLIB_FOR_BUILD_CFLAGS
   855 GLIB_FOR_BUILD_LIBS
   856 LIBISOFS_CFLAGS
   857 LIBISOFS_LIBS
   858 LIBGL_CFLAGS
   859 LIBGL_LIBS
   860 SDL_CFLAGS
   861 SDL_LIBS
   862 PULSE_CFLAGS
   863 PULSE_LIBS
   864 ESOUND_CFLAGS
   865 ESOUND_LIBS
   866 ALSA_CFLAGS
   867 ALSA_LIBS'
   870 # Initialize some variables set by options.
   871 ac_init_help=
   872 ac_init_version=false
   873 # The variables have the same names as the options, with
   874 # dashes changed to underlines.
   875 cache_file=/dev/null
   876 exec_prefix=NONE
   877 no_create=
   878 no_recursion=
   879 prefix=NONE
   880 program_prefix=NONE
   881 program_suffix=NONE
   882 program_transform_name=s,x,x,
   883 silent=
   884 site=
   885 srcdir=
   886 verbose=
   887 x_includes=NONE
   888 x_libraries=NONE
   890 # Installation directory options.
   891 # These are left unexpanded so users can "make install exec_prefix=/foo"
   892 # and all the variables that are supposed to be based on exec_prefix
   893 # by default will actually change.
   894 # Use braces instead of parens because sh, perl, etc. also accept them.
   895 # (The list follows the same order as the GNU Coding Standards.)
   896 bindir='${exec_prefix}/bin'
   897 sbindir='${exec_prefix}/sbin'
   898 libexecdir='${exec_prefix}/libexec'
   899 datarootdir='${prefix}/share'
   900 datadir='${datarootdir}'
   901 sysconfdir='${prefix}/etc'
   902 sharedstatedir='${prefix}/com'
   903 localstatedir='${prefix}/var'
   904 includedir='${prefix}/include'
   905 oldincludedir='/usr/include'
   906 docdir='${datarootdir}/doc/${PACKAGE}'
   907 infodir='${datarootdir}/info'
   908 htmldir='${docdir}'
   909 dvidir='${docdir}'
   910 pdfdir='${docdir}'
   911 psdir='${docdir}'
   912 libdir='${exec_prefix}/lib'
   913 localedir='${datarootdir}/locale'
   914 mandir='${datarootdir}/man'
   916 ac_prev=
   917 ac_dashdash=
   918 for ac_option
   919 do
   920   # If the previous option needs an argument, assign it.
   921   if test -n "$ac_prev"; then
   922     eval $ac_prev=\$ac_option
   923     ac_prev=
   924     continue
   925   fi
   927   case $ac_option in
   928   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   929   *)	ac_optarg=yes ;;
   930   esac
   932   # Accept the important Cygnus configure options, so we can diagnose typos.
   934   case $ac_dashdash$ac_option in
   935   --)
   936     ac_dashdash=yes ;;
   938   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   939     ac_prev=bindir ;;
   940   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   941     bindir=$ac_optarg ;;
   943   -build | --build | --buil | --bui | --bu)
   944     ac_prev=build_alias ;;
   945   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   946     build_alias=$ac_optarg ;;
   948   -cache-file | --cache-file | --cache-fil | --cache-fi \
   949   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   950     ac_prev=cache_file ;;
   951   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   952   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   953     cache_file=$ac_optarg ;;
   955   --config-cache | -C)
   956     cache_file=config.cache ;;
   958   -datadir | --datadir | --datadi | --datad)
   959     ac_prev=datadir ;;
   960   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   961     datadir=$ac_optarg ;;
   963   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   964   | --dataroo | --dataro | --datar)
   965     ac_prev=datarootdir ;;
   966   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   967   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   968     datarootdir=$ac_optarg ;;
   970   -disable-* | --disable-*)
   971     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   972     # Reject names that are not valid shell variable names.
   973     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   974       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   975    { (exit 1); exit 1; }; }
   976     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   977     eval enable_$ac_feature=no ;;
   979   -docdir | --docdir | --docdi | --doc | --do)
   980     ac_prev=docdir ;;
   981   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   982     docdir=$ac_optarg ;;
   984   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   985     ac_prev=dvidir ;;
   986   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   987     dvidir=$ac_optarg ;;
   989   -enable-* | --enable-*)
   990     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   991     # Reject names that are not valid shell variable names.
   992     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   993       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   994    { (exit 1); exit 1; }; }
   995     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   996     eval enable_$ac_feature=\$ac_optarg ;;
   998   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   999   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1000   | --exec | --exe | --ex)
  1001     ac_prev=exec_prefix ;;
  1002   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1003   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1004   | --exec=* | --exe=* | --ex=*)
  1005     exec_prefix=$ac_optarg ;;
  1007   -gas | --gas | --ga | --g)
  1008     # Obsolete; use --with-gas.
  1009     with_gas=yes ;;
  1011   -help | --help | --hel | --he | -h)
  1012     ac_init_help=long ;;
  1013   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1014     ac_init_help=recursive ;;
  1015   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1016     ac_init_help=short ;;
  1018   -host | --host | --hos | --ho)
  1019     ac_prev=host_alias ;;
  1020   -host=* | --host=* | --hos=* | --ho=*)
  1021     host_alias=$ac_optarg ;;
  1023   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1024     ac_prev=htmldir ;;
  1025   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1026   | --ht=*)
  1027     htmldir=$ac_optarg ;;
  1029   -includedir | --includedir | --includedi | --included | --include \
  1030   | --includ | --inclu | --incl | --inc)
  1031     ac_prev=includedir ;;
  1032   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1033   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1034     includedir=$ac_optarg ;;
  1036   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1037     ac_prev=infodir ;;
  1038   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1039     infodir=$ac_optarg ;;
  1041   -libdir | --libdir | --libdi | --libd)
  1042     ac_prev=libdir ;;
  1043   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1044     libdir=$ac_optarg ;;
  1046   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1047   | --libexe | --libex | --libe)
  1048     ac_prev=libexecdir ;;
  1049   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1050   | --libexe=* | --libex=* | --libe=*)
  1051     libexecdir=$ac_optarg ;;
  1053   -localedir | --localedir | --localedi | --localed | --locale)
  1054     ac_prev=localedir ;;
  1055   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1056     localedir=$ac_optarg ;;
  1058   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1059   | --localstate | --localstat | --localsta | --localst | --locals)
  1060     ac_prev=localstatedir ;;
  1061   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1062   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1063     localstatedir=$ac_optarg ;;
  1065   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1066     ac_prev=mandir ;;
  1067   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1068     mandir=$ac_optarg ;;
  1070   -nfp | --nfp | --nf)
  1071     # Obsolete; use --without-fp.
  1072     with_fp=no ;;
  1074   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1075   | --no-cr | --no-c | -n)
  1076     no_create=yes ;;
  1078   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1079   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1080     no_recursion=yes ;;
  1082   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1083   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1084   | --oldin | --oldi | --old | --ol | --o)
  1085     ac_prev=oldincludedir ;;
  1086   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1087   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1088   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1089     oldincludedir=$ac_optarg ;;
  1091   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1092     ac_prev=prefix ;;
  1093   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1094     prefix=$ac_optarg ;;
  1096   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1097   | --program-pre | --program-pr | --program-p)
  1098     ac_prev=program_prefix ;;
  1099   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1100   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1101     program_prefix=$ac_optarg ;;
  1103   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1104   | --program-suf | --program-su | --program-s)
  1105     ac_prev=program_suffix ;;
  1106   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1107   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1108     program_suffix=$ac_optarg ;;
  1110   -program-transform-name | --program-transform-name \
  1111   | --program-transform-nam | --program-transform-na \
  1112   | --program-transform-n | --program-transform- \
  1113   | --program-transform | --program-transfor \
  1114   | --program-transfo | --program-transf \
  1115   | --program-trans | --program-tran \
  1116   | --progr-tra | --program-tr | --program-t)
  1117     ac_prev=program_transform_name ;;
  1118   -program-transform-name=* | --program-transform-name=* \
  1119   | --program-transform-nam=* | --program-transform-na=* \
  1120   | --program-transform-n=* | --program-transform-=* \
  1121   | --program-transform=* | --program-transfor=* \
  1122   | --program-transfo=* | --program-transf=* \
  1123   | --program-trans=* | --program-tran=* \
  1124   | --progr-tra=* | --program-tr=* | --program-t=*)
  1125     program_transform_name=$ac_optarg ;;
  1127   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1128     ac_prev=pdfdir ;;
  1129   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1130     pdfdir=$ac_optarg ;;
  1132   -psdir | --psdir | --psdi | --psd | --ps)
  1133     ac_prev=psdir ;;
  1134   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1135     psdir=$ac_optarg ;;
  1137   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1138   | -silent | --silent | --silen | --sile | --sil)
  1139     silent=yes ;;
  1141   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1142     ac_prev=sbindir ;;
  1143   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1144   | --sbi=* | --sb=*)
  1145     sbindir=$ac_optarg ;;
  1147   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1148   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1149   | --sharedst | --shareds | --shared | --share | --shar \
  1150   | --sha | --sh)
  1151     ac_prev=sharedstatedir ;;
  1152   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1153   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1154   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1155   | --sha=* | --sh=*)
  1156     sharedstatedir=$ac_optarg ;;
  1158   -site | --site | --sit)
  1159     ac_prev=site ;;
  1160   -site=* | --site=* | --sit=*)
  1161     site=$ac_optarg ;;
  1163   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1164     ac_prev=srcdir ;;
  1165   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1166     srcdir=$ac_optarg ;;
  1168   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1169   | --syscon | --sysco | --sysc | --sys | --sy)
  1170     ac_prev=sysconfdir ;;
  1171   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1172   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1173     sysconfdir=$ac_optarg ;;
  1175   -target | --target | --targe | --targ | --tar | --ta | --t)
  1176     ac_prev=target_alias ;;
  1177   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1178     target_alias=$ac_optarg ;;
  1180   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1181     verbose=yes ;;
  1183   -version | --version | --versio | --versi | --vers | -V)
  1184     ac_init_version=: ;;
  1186   -with-* | --with-*)
  1187     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1188     # Reject names that are not valid shell variable names.
  1189     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1190       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1191    { (exit 1); exit 1; }; }
  1192     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1193     eval with_$ac_package=\$ac_optarg ;;
  1195   -without-* | --without-*)
  1196     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1197     # Reject names that are not valid shell variable names.
  1198     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1199       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1200    { (exit 1); exit 1; }; }
  1201     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1202     eval with_$ac_package=no ;;
  1204   --x)
  1205     # Obsolete; use --with-x.
  1206     with_x=yes ;;
  1208   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1209   | --x-incl | --x-inc | --x-in | --x-i)
  1210     ac_prev=x_includes ;;
  1211   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1212   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1213     x_includes=$ac_optarg ;;
  1215   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1216   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1217     ac_prev=x_libraries ;;
  1218   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1219   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1220     x_libraries=$ac_optarg ;;
  1222   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1223 Try \`$0 --help' for more information." >&2
  1224    { (exit 1); exit 1; }; }
  1225     ;;
  1227   *=*)
  1228     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1229     # Reject names that are not valid shell variable names.
  1230     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1231       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1232    { (exit 1); exit 1; }; }
  1233     eval $ac_envvar=\$ac_optarg
  1234     export $ac_envvar ;;
  1236   *)
  1237     # FIXME: should be removed in autoconf 3.0.
  1238     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1239     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1240       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1241     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1242     ;;
  1244   esac
  1245 done
  1247 if test -n "$ac_prev"; then
  1248   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1249   { echo "$as_me: error: missing argument to $ac_option" >&2
  1250    { (exit 1); exit 1; }; }
  1251 fi
  1253 # Be sure to have absolute directory names.
  1254 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1255 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1256 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1257 		libdir localedir mandir
  1258 do
  1259   eval ac_val=\$$ac_var
  1260   case $ac_val in
  1261     [\\/$]* | ?:[\\/]* )  continue;;
  1262     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1263   esac
  1264   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1265    { (exit 1); exit 1; }; }
  1266 done
  1268 # There might be people who depend on the old broken behavior: `$host'
  1269 # used to hold the argument of --host etc.
  1270 # FIXME: To remove some day.
  1271 build=$build_alias
  1272 host=$host_alias
  1273 target=$target_alias
  1275 # FIXME: To remove some day.
  1276 if test "x$host_alias" != x; then
  1277   if test "x$build_alias" = x; then
  1278     cross_compiling=maybe
  1279     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1280     If a cross compiler is detected then cross compile mode will be used." >&2
  1281   elif test "x$build_alias" != "x$host_alias"; then
  1282     cross_compiling=yes
  1283   fi
  1284 fi
  1286 ac_tool_prefix=
  1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1289 test "$silent" = yes && exec 6>/dev/null
  1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1293 ac_ls_di=`ls -di .` &&
  1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1295   { echo "$as_me: error: Working directory cannot be determined" >&2
  1296    { (exit 1); exit 1; }; }
  1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1298   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1299    { (exit 1); exit 1; }; }
  1302 # Find the source files, if location was not specified.
  1303 if test -z "$srcdir"; then
  1304   ac_srcdir_defaulted=yes
  1305   # Try the directory containing this script, then the parent directory.
  1306   ac_confdir=`$as_dirname -- "$0" ||
  1307 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1308 	 X"$0" : 'X\(//\)[^/]' \| \
  1309 	 X"$0" : 'X\(//\)$' \| \
  1310 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1311 echo X"$0" |
  1312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1313 	    s//\1/
  1316 	  /^X\(\/\/\)[^/].*/{
  1317 	    s//\1/
  1320 	  /^X\(\/\/\)$/{
  1321 	    s//\1/
  1324 	  /^X\(\/\).*/{
  1325 	    s//\1/
  1328 	  s/.*/./; q'`
  1329   srcdir=$ac_confdir
  1330   if test ! -r "$srcdir/$ac_unique_file"; then
  1331     srcdir=..
  1332   fi
  1333 else
  1334   ac_srcdir_defaulted=no
  1335 fi
  1336 if test ! -r "$srcdir/$ac_unique_file"; then
  1337   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1338   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1339    { (exit 1); exit 1; }; }
  1340 fi
  1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1342 ac_abs_confdir=`(
  1343 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1344    { (exit 1); exit 1; }; }
  1345 	pwd)`
  1346 # When building in place, set srcdir=.
  1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1348   srcdir=.
  1349 fi
  1350 # Remove unnecessary trailing slashes from srcdir.
  1351 # Double slashes in file names in object file debugging info
  1352 # mess up M-x gdb in Emacs.
  1353 case $srcdir in
  1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1355 esac
  1356 for ac_var in $ac_precious_vars; do
  1357   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1358   eval ac_env_${ac_var}_value=\$${ac_var}
  1359   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1360   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1361 done
  1364 # Report the --help message.
  1366 if test "$ac_init_help" = "long"; then
  1367   # Omit some internal or obsolete options to make the list less imposing.
  1368   # This message is too long to be a string in the A/UX 3.1 sh.
  1369   cat <<_ACEOF
  1370 \`configure' configures this package to adapt to many kinds of systems.
  1372 Usage: $0 [OPTION]... [VAR=VALUE]...
  1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1375 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1377 Defaults for the options are specified in brackets.
  1379 Configuration:
  1380   -h, --help              display this help and exit
  1381       --help=short        display options specific to this package
  1382       --help=recursive    display the short help of all the included packages
  1383   -V, --version           display version information and exit
  1384   -q, --quiet, --silent   do not print \`checking...' messages
  1385       --cache-file=FILE   cache test results in FILE [disabled]
  1386   -C, --config-cache      alias for \`--cache-file=config.cache'
  1387   -n, --no-create         do not create output files
  1388       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1390 Installation directories:
  1391   --prefix=PREFIX         install architecture-independent files in PREFIX
  1392 			  [$ac_default_prefix]
  1393   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1394 			  [PREFIX]
  1396 By default, \`make install' will install all the files in
  1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1399 for instance \`--prefix=\$HOME'.
  1401 For better control, use the options below.
  1403 Fine tuning of the installation directories:
  1404   --bindir=DIR           user executables [EPREFIX/bin]
  1405   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1406   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1407   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1408   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1409   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1410   --libdir=DIR           object code libraries [EPREFIX/lib]
  1411   --includedir=DIR       C header files [PREFIX/include]
  1412   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1413   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1414   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1415   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1416   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1417   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1418   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1419   --htmldir=DIR          html documentation [DOCDIR]
  1420   --dvidir=DIR           dvi documentation [DOCDIR]
  1421   --pdfdir=DIR           pdf documentation [DOCDIR]
  1422   --psdir=DIR            ps documentation [DOCDIR]
  1423 _ACEOF
  1425   cat <<\_ACEOF
  1427 Program names:
  1428   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1429   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1430   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1432 System types:
  1433   --build=BUILD     configure for building on BUILD [guessed]
  1434   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1435 _ACEOF
  1436 fi
  1438 if test -n "$ac_init_help"; then
  1440   cat <<\_ACEOF
  1442 Optional Features:
  1443   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1444   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1445   --enable-maintainer-mode  enable make rules and dependencies not useful
  1446 			  (and sometimes confusing) to the casual installer
  1447   --disable-dependency-tracking  speeds up one-time build
  1448   --enable-dependency-tracking   do not reject slow dependency extractors
  1449   --enable-strict-warn    Enable strict compilation warnings
  1450   --disable-translator    Disable the SH4 translator (Enabled by default)
  1451   --disable-optimized     Disable compile-time optimizations (Enabled by
  1452                           default)
  1453   --enable-shared         Build drivers as shared libraries (Enabled if
  1454                           available)
  1455   --enable-profiled       Enable profiling build
  1456   --enable-trace          Enable generation of IO traces (warning: hurts
  1457                           performance)
  1458   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1459                           performance)
  1460   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1462 Optional Packages:
  1463   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1464   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1465   --with-android=SDK      Specify the location of the Android SDK
  1466   --with-android-ndk=NDK  Specify the location of the Android NDK
  1467   --with-android-version  Specify target Android SDK version
  1468   --with-osmesa           Build with the osmesa GL library (software
  1469                           rendering)
  1470   --with-gtk              Build with the GTK UI. Default on X11 systems
  1471   --with-esd              Build with support for the ESounD audio system
  1472   --with-pulse            Build with support for the PulseAudio audio system
  1473   --with-sdl              Build with support for SDL audio
  1475 Some influential environment variables:
  1476   CC          C compiler command
  1477   CFLAGS      C compiler flags
  1478   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1479               nonstandard directory <lib dir>
  1480   LIBS        libraries to pass to the linker, e.g. -l<library>
  1481   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1482               you have headers in a nonstandard directory <include dir>
  1483   CPP         C preprocessor
  1484   OBJC        Objective C compiler command
  1485   OBJCFLAGS   Objective C compiler flags
  1486   CCAS        assembler compiler command (defaults to CC)
  1487   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1488   PKG_CONFIG  path to pkg-config utility
  1489   LIBPNG_CFLAGS
  1490               C compiler flags for LIBPNG, overriding pkg-config
  1491   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1492   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1493   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1494   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1495   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1496   GLIB_FOR_BUILD_CFLAGS
  1497               C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
  1498   GLIB_FOR_BUILD_LIBS
  1499               linker flags for GLIB_FOR_BUILD, overriding pkg-config
  1500   LIBISOFS_CFLAGS
  1501               C compiler flags for LIBISOFS, overriding pkg-config
  1502   LIBISOFS_LIBS
  1503               linker flags for LIBISOFS, overriding pkg-config
  1504   LIBGL_CFLAGS
  1505               C compiler flags for LIBGL, overriding pkg-config
  1506   LIBGL_LIBS  linker flags for LIBGL, overriding pkg-config
  1507   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
  1508   SDL_LIBS    linker flags for SDL, overriding pkg-config
  1509   PULSE_CFLAGS
  1510               C compiler flags for PULSE, overriding pkg-config
  1511   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1512   ESOUND_CFLAGS
  1513               C compiler flags for ESOUND, overriding pkg-config
  1514   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1515   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1516   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1518 Use these variables to override the choices made by `configure' or to help
  1519 it to find libraries and programs with nonstandard names/locations.
  1521 _ACEOF
  1522 ac_status=$?
  1523 fi
  1525 if test "$ac_init_help" = "recursive"; then
  1526   # If there are subdirs, report their specific --help.
  1527   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1528     test -d "$ac_dir" || continue
  1529     ac_builddir=.
  1531 case "$ac_dir" in
  1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1533 *)
  1534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1535   # A ".." for each directory in $ac_dir_suffix.
  1536   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1537   case $ac_top_builddir_sub in
  1538   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1539   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1540   esac ;;
  1541 esac
  1542 ac_abs_top_builddir=$ac_pwd
  1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1544 # for backward compatibility:
  1545 ac_top_builddir=$ac_top_build_prefix
  1547 case $srcdir in
  1548   .)  # We are building in place.
  1549     ac_srcdir=.
  1550     ac_top_srcdir=$ac_top_builddir_sub
  1551     ac_abs_top_srcdir=$ac_pwd ;;
  1552   [\\/]* | ?:[\\/]* )  # Absolute name.
  1553     ac_srcdir=$srcdir$ac_dir_suffix;
  1554     ac_top_srcdir=$srcdir
  1555     ac_abs_top_srcdir=$srcdir ;;
  1556   *) # Relative name.
  1557     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1558     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1559     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1560 esac
  1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1563     cd "$ac_dir" || { ac_status=$?; continue; }
  1564     # Check for guested configure.
  1565     if test -f "$ac_srcdir/configure.gnu"; then
  1566       echo &&
  1567       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1568     elif test -f "$ac_srcdir/configure"; then
  1569       echo &&
  1570       $SHELL "$ac_srcdir/configure" --help=recursive
  1571     else
  1572       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1573     fi || ac_status=$?
  1574     cd "$ac_pwd" || { ac_status=$?; break; }
  1575   done
  1576 fi
  1578 test -n "$ac_init_help" && exit $ac_status
  1579 if $ac_init_version; then
  1580   cat <<\_ACEOF
  1581 configure
  1582 generated by GNU Autoconf 2.61
  1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1586 This configure script is free software; the Free Software Foundation
  1587 gives unlimited permission to copy, distribute and modify it.
  1588 _ACEOF
  1589   exit
  1590 fi
  1591 cat >config.log <<_ACEOF
  1592 This file contains any messages produced by compilers while
  1593 running configure, to aid debugging if configure makes a mistake.
  1595 It was created by $as_me, which was
  1596 generated by GNU Autoconf 2.61.  Invocation command line was
  1598   $ $0 $@
  1600 _ACEOF
  1601 exec 5>>config.log
  1603 cat <<_ASUNAME
  1604 ## --------- ##
  1605 ## Platform. ##
  1606 ## --------- ##
  1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1615 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1617 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1618 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1620 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1621 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1622 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1623 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1625 _ASUNAME
  1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1628 for as_dir in $PATH
  1629 do
  1630   IFS=$as_save_IFS
  1631   test -z "$as_dir" && as_dir=.
  1632   echo "PATH: $as_dir"
  1633 done
  1634 IFS=$as_save_IFS
  1636 } >&5
  1638 cat >&5 <<_ACEOF
  1641 ## ----------- ##
  1642 ## Core tests. ##
  1643 ## ----------- ##
  1645 _ACEOF
  1648 # Keep a trace of the command line.
  1649 # Strip out --no-create and --no-recursion so they do not pile up.
  1650 # Strip out --silent because we don't want to record it for future runs.
  1651 # Also quote any args containing shell meta-characters.
  1652 # Make two passes to allow for proper duplicate-argument suppression.
  1653 ac_configure_args=
  1654 ac_configure_args0=
  1655 ac_configure_args1=
  1656 ac_must_keep_next=false
  1657 for ac_pass in 1 2
  1658 do
  1659   for ac_arg
  1660   do
  1661     case $ac_arg in
  1662     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1663     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1664     | -silent | --silent | --silen | --sile | --sil)
  1665       continue ;;
  1666     *\'*)
  1667       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1668     esac
  1669     case $ac_pass in
  1670     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1671     2)
  1672       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1673       if test $ac_must_keep_next = true; then
  1674 	ac_must_keep_next=false # Got value, back to normal.
  1675       else
  1676 	case $ac_arg in
  1677 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1678 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1679 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1680 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1681 	    case "$ac_configure_args0 " in
  1682 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1683 	    esac
  1684 	    ;;
  1685 	  -* ) ac_must_keep_next=true ;;
  1686 	esac
  1687       fi
  1688       ac_configure_args="$ac_configure_args '$ac_arg'"
  1689       ;;
  1690     esac
  1691   done
  1692 done
  1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1696 # When interrupted or exit'd, cleanup temporary files, and complete
  1697 # config.log.  We remove comments because anyway the quotes in there
  1698 # would cause problems or look ugly.
  1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1701 trap 'exit_status=$?
  1702   # Save into config.log some information that might help in debugging.
  1704     echo
  1706     cat <<\_ASBOX
  1707 ## ---------------- ##
  1708 ## Cache variables. ##
  1709 ## ---------------- ##
  1710 _ASBOX
  1711     echo
  1712     # The following way of writing the cache mishandles newlines in values,
  1714   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1715     eval ac_val=\$$ac_var
  1716     case $ac_val in #(
  1717     *${as_nl}*)
  1718       case $ac_var in #(
  1719       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1721       esac
  1722       case $ac_var in #(
  1723       _ | IFS | as_nl) ;; #(
  1724       *) $as_unset $ac_var ;;
  1725       esac ;;
  1726     esac
  1727   done
  1728   (set) 2>&1 |
  1729     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1730     *${as_nl}ac_space=\ *)
  1731       sed -n \
  1732 	"s/'\''/'\''\\\\'\'''\''/g;
  1733 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1734       ;; #(
  1735     *)
  1736       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1737       ;;
  1738     esac |
  1739     sort
  1741     echo
  1743     cat <<\_ASBOX
  1744 ## ----------------- ##
  1745 ## Output variables. ##
  1746 ## ----------------- ##
  1747 _ASBOX
  1748     echo
  1749     for ac_var in $ac_subst_vars
  1750     do
  1751       eval ac_val=\$$ac_var
  1752       case $ac_val in
  1753       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1754       esac
  1755       echo "$ac_var='\''$ac_val'\''"
  1756     done | sort
  1757     echo
  1759     if test -n "$ac_subst_files"; then
  1760       cat <<\_ASBOX
  1761 ## ------------------- ##
  1762 ## File substitutions. ##
  1763 ## ------------------- ##
  1764 _ASBOX
  1765       echo
  1766       for ac_var in $ac_subst_files
  1767       do
  1768 	eval ac_val=\$$ac_var
  1769 	case $ac_val in
  1770 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1771 	esac
  1772 	echo "$ac_var='\''$ac_val'\''"
  1773       done | sort
  1774       echo
  1775     fi
  1777     if test -s confdefs.h; then
  1778       cat <<\_ASBOX
  1779 ## ----------- ##
  1780 ## confdefs.h. ##
  1781 ## ----------- ##
  1782 _ASBOX
  1783       echo
  1784       cat confdefs.h
  1785       echo
  1786     fi
  1787     test "$ac_signal" != 0 &&
  1788       echo "$as_me: caught signal $ac_signal"
  1789     echo "$as_me: exit $exit_status"
  1790   } >&5
  1791   rm -f core *.core core.conftest.* &&
  1792     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1793     exit $exit_status
  1794 ' 0
  1795 for ac_signal in 1 2 13 15; do
  1796   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1797 done
  1798 ac_signal=0
  1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1801 rm -f -r conftest* confdefs.h
  1803 # Predefined preprocessor variables.
  1805 cat >>confdefs.h <<_ACEOF
  1806 #define PACKAGE_NAME "$PACKAGE_NAME"
  1807 _ACEOF
  1810 cat >>confdefs.h <<_ACEOF
  1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1812 _ACEOF
  1815 cat >>confdefs.h <<_ACEOF
  1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1817 _ACEOF
  1820 cat >>confdefs.h <<_ACEOF
  1821 #define PACKAGE_STRING "$PACKAGE_STRING"
  1822 _ACEOF
  1825 cat >>confdefs.h <<_ACEOF
  1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1827 _ACEOF
  1830 # Let the site file select an alternate cache file if it wants to.
  1831 # Prefer explicitly selected file to automatically selected ones.
  1832 if test -n "$CONFIG_SITE"; then
  1833   set x "$CONFIG_SITE"
  1834 elif test "x$prefix" != xNONE; then
  1835   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1836 else
  1837   set x "$ac_default_prefix/share/config.site" \
  1838 	"$ac_default_prefix/etc/config.site"
  1839 fi
  1840 shift
  1841 for ac_site_file
  1842 do
  1843   if test -r "$ac_site_file"; then
  1844     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1845 echo "$as_me: loading site script $ac_site_file" >&6;}
  1846     sed 's/^/| /' "$ac_site_file" >&5
  1847     . "$ac_site_file"
  1848   fi
  1849 done
  1851 if test -r "$cache_file"; then
  1852   # Some versions of bash will fail to source /dev/null (special
  1853   # files actually), so we avoid doing that.
  1854   if test -f "$cache_file"; then
  1855     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1856 echo "$as_me: loading cache $cache_file" >&6;}
  1857     case $cache_file in
  1858       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1859       *)                      . "./$cache_file";;
  1860     esac
  1861   fi
  1862 else
  1863   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1864 echo "$as_me: creating cache $cache_file" >&6;}
  1865   >$cache_file
  1866 fi
  1868 # Check that the precious variables saved in the cache have kept the same
  1869 # value.
  1870 ac_cache_corrupted=false
  1871 for ac_var in $ac_precious_vars; do
  1872   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1873   eval ac_new_set=\$ac_env_${ac_var}_set
  1874   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1875   eval ac_new_val=\$ac_env_${ac_var}_value
  1876   case $ac_old_set,$ac_new_set in
  1877     set,)
  1878       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1880       ac_cache_corrupted=: ;;
  1881     ,set)
  1882       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1884       ac_cache_corrupted=: ;;
  1885     ,);;
  1886     *)
  1887       if test "x$ac_old_val" != "x$ac_new_val"; then
  1888 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1890 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1891 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1892 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1893 echo "$as_me:   current value: $ac_new_val" >&2;}
  1894 	ac_cache_corrupted=:
  1895       fi;;
  1896   esac
  1897   # Pass precious variables to config.status.
  1898   if test "$ac_new_set" = set; then
  1899     case $ac_new_val in
  1900     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1901     *) ac_arg=$ac_var=$ac_new_val ;;
  1902     esac
  1903     case " $ac_configure_args " in
  1904       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1905       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1906     esac
  1907   fi
  1908 done
  1909 if $ac_cache_corrupted; then
  1910   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1912   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1914    { (exit 1); exit 1; }; }
  1915 fi
  1933 ac_ext=c
  1934 ac_cpp='$CPP $CPPFLAGS'
  1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1940 am__api_version="1.9"
  1941 ac_aux_dir=
  1942 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1943   if test -f "$ac_dir/install-sh"; then
  1944     ac_aux_dir=$ac_dir
  1945     ac_install_sh="$ac_aux_dir/install-sh -c"
  1946     break
  1947   elif test -f "$ac_dir/install.sh"; then
  1948     ac_aux_dir=$ac_dir
  1949     ac_install_sh="$ac_aux_dir/install.sh -c"
  1950     break
  1951   elif test -f "$ac_dir/shtool"; then
  1952     ac_aux_dir=$ac_dir
  1953     ac_install_sh="$ac_aux_dir/shtool install -c"
  1954     break
  1955   fi
  1956 done
  1957 if test -z "$ac_aux_dir"; then
  1958   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1959 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1960    { (exit 1); exit 1; }; }
  1961 fi
  1963 # These three variables are undocumented and unsupported,
  1964 # and are intended to be withdrawn in a future Autoconf release.
  1965 # They can cause serious problems if a builder's source tree is in a directory
  1966 # whose full name contains unusual characters.
  1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1969 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1972 # Find a good install program.  We prefer a C program (faster),
  1973 # so one script is as good as another.  But avoid the broken or
  1974 # incompatible versions:
  1975 # SysV /etc/install, /usr/sbin/install
  1976 # SunOS /usr/etc/install
  1977 # IRIX /sbin/install
  1978 # AIX /bin/install
  1979 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1983 # OS/2's system install, which has a completely different semantic
  1984 # ./install, which can be erroneously created by make from ./install.sh.
  1985 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1986 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1987 if test -z "$INSTALL"; then
  1988 if test "${ac_cv_path_install+set}" = set; then
  1989   echo $ECHO_N "(cached) $ECHO_C" >&6
  1990 else
  1991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1992 for as_dir in $PATH
  1993 do
  1994   IFS=$as_save_IFS
  1995   test -z "$as_dir" && as_dir=.
  1996   # Account for people who put trailing slashes in PATH elements.
  1997 case $as_dir/ in
  1998   ./ | .// | /cC/* | \
  1999   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2000   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2001   /usr/ucb/* ) ;;
  2002   *)
  2003     # OSF1 and SCO ODT 3.0 have their own names for install.
  2004     # Don't use installbsd from OSF since it installs stuff as root
  2005     # by default.
  2006     for ac_prog in ginstall scoinst install; do
  2007       for ac_exec_ext in '' $ac_executable_extensions; do
  2008 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2009 	  if test $ac_prog = install &&
  2010 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2011 	    # AIX install.  It has an incompatible calling convention.
  2013 	  elif test $ac_prog = install &&
  2014 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2015 	    # program-specific install script used by HP pwplus--don't use.
  2017 	  else
  2018 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2019 	    break 3
  2020 	  fi
  2021 	fi
  2022       done
  2023     done
  2024     ;;
  2025 esac
  2026 done
  2027 IFS=$as_save_IFS
  2030 fi
  2031   if test "${ac_cv_path_install+set}" = set; then
  2032     INSTALL=$ac_cv_path_install
  2033   else
  2034     # As a last resort, use the slow shell script.  Don't cache a
  2035     # value for INSTALL within a source directory, because that will
  2036     # break other packages using the cache if that directory is
  2037     # removed, or if the value is a relative name.
  2038     INSTALL=$ac_install_sh
  2039   fi
  2040 fi
  2041 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2042 echo "${ECHO_T}$INSTALL" >&6; }
  2044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2045 # It thinks the first close brace ends the variable substitution.
  2046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2052 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2053 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2054 # Just in case
  2055 sleep 1
  2056 echo timestamp > conftest.file
  2057 # Do `set' in a subshell so we don't clobber the current shell's
  2058 # arguments.  Must try -L first in case configure is actually a
  2059 # symlink; some systems play weird games with the mod time of symlinks
  2060 # (eg FreeBSD returns the mod time of the symlink's containing
  2061 # directory).
  2062 if (
  2063    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2064    if test "$*" = "X"; then
  2065       # -L didn't work.
  2066       set X `ls -t $srcdir/configure conftest.file`
  2067    fi
  2068    rm -f conftest.file
  2069    if test "$*" != "X $srcdir/configure conftest.file" \
  2070       && test "$*" != "X conftest.file $srcdir/configure"; then
  2072       # If neither matched, then we have a broken ls.  This can happen
  2073       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2074       # broken ls alias from the environment.  This has actually
  2075       # happened.  Such a system could not be considered "sane".
  2076       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2077 alias in your environment" >&5
  2078 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2079 alias in your environment" >&2;}
  2080    { (exit 1); exit 1; }; }
  2081    fi
  2083    test "$2" = conftest.file
  2085 then
  2086    # Ok.
  2088 else
  2089    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2090 Check your system clock" >&5
  2091 echo "$as_me: error: newly created file is older than distributed files!
  2092 Check your system clock" >&2;}
  2093    { (exit 1); exit 1; }; }
  2094 fi
  2095 { echo "$as_me:$LINENO: result: yes" >&5
  2096 echo "${ECHO_T}yes" >&6; }
  2097 test "$program_prefix" != NONE &&
  2098   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2099 # Use a double $ so make ignores it.
  2100 test "$program_suffix" != NONE &&
  2101   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2102 # Double any \ or $.  echo might interpret backslashes.
  2103 # By default was `s,x,x', remove it if useless.
  2104 cat <<\_ACEOF >conftest.sed
  2105 s/[\\$]/&&/g;s/;s,x,x,$//
  2106 _ACEOF
  2107 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2108 rm -f conftest.sed
  2110 # expand $ac_aux_dir to an absolute path
  2111 am_aux_dir=`cd $ac_aux_dir && pwd`
  2113 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2114 # Use eval to expand $SHELL
  2115 if eval "$MISSING --run true"; then
  2116   am_missing_run="$MISSING --run "
  2117 else
  2118   am_missing_run=
  2119   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2120 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2121 fi
  2123 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2124   # We used to keeping the `.' as first argument, in order to
  2125   # allow $(mkdir_p) to be used without argument.  As in
  2126   #   $(mkdir_p) $(somedir)
  2127   # where $(somedir) is conditionally defined.  However this is wrong
  2128   # for two reasons:
  2129   #  1. if the package is installed by a user who cannot write `.'
  2130   #     make install will fail,
  2131   #  2. the above comment should most certainly read
  2132   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2133   #     so it does not work when $(somedir) is undefined and
  2134   #     $(DESTDIR) is not.
  2135   #  To support the latter case, we have to write
  2136   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2137   #  so the `.' trick is pointless.
  2138   mkdir_p='mkdir -p --'
  2139 else
  2140   # On NextStep and OpenStep, the `mkdir' command does not
  2141   # recognize any option.  It will interpret all options as
  2142   # directories to create, and then abort because `.' already
  2143   # exists.
  2144   for d in ./-p ./--version;
  2145   do
  2146     test -d $d && rmdir $d
  2147   done
  2148   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2149   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2150     mkdir_p='$(mkinstalldirs)'
  2151   else
  2152     mkdir_p='$(install_sh) -d'
  2153   fi
  2154 fi
  2156 for ac_prog in gawk mawk nawk awk
  2157 do
  2158   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2159 set dummy $ac_prog; ac_word=$2
  2160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2162 if test "${ac_cv_prog_AWK+set}" = set; then
  2163   echo $ECHO_N "(cached) $ECHO_C" >&6
  2164 else
  2165   if test -n "$AWK"; then
  2166   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2167 else
  2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2169 for as_dir in $PATH
  2170 do
  2171   IFS=$as_save_IFS
  2172   test -z "$as_dir" && as_dir=.
  2173   for ac_exec_ext in '' $ac_executable_extensions; do
  2174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2175     ac_cv_prog_AWK="$ac_prog"
  2176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2177     break 2
  2178   fi
  2179 done
  2180 done
  2181 IFS=$as_save_IFS
  2183 fi
  2184 fi
  2185 AWK=$ac_cv_prog_AWK
  2186 if test -n "$AWK"; then
  2187   { echo "$as_me:$LINENO: result: $AWK" >&5
  2188 echo "${ECHO_T}$AWK" >&6; }
  2189 else
  2190   { echo "$as_me:$LINENO: result: no" >&5
  2191 echo "${ECHO_T}no" >&6; }
  2192 fi
  2195   test -n "$AWK" && break
  2196 done
  2198 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2199 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2200 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2201 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2202   echo $ECHO_N "(cached) $ECHO_C" >&6
  2203 else
  2204   cat >conftest.make <<\_ACEOF
  2205 SHELL = /bin/sh
  2206 all:
  2207 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2208 _ACEOF
  2209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2211   *@@@%%%=?*=@@@%%%*)
  2212     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2213   *)
  2214     eval ac_cv_prog_make_${ac_make}_set=no;;
  2215 esac
  2216 rm -f conftest.make
  2217 fi
  2218 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2219   { echo "$as_me:$LINENO: result: yes" >&5
  2220 echo "${ECHO_T}yes" >&6; }
  2221   SET_MAKE=
  2222 else
  2223   { echo "$as_me:$LINENO: result: no" >&5
  2224 echo "${ECHO_T}no" >&6; }
  2225   SET_MAKE="MAKE=${MAKE-make}"
  2226 fi
  2228 rm -rf .tst 2>/dev/null
  2229 mkdir .tst 2>/dev/null
  2230 if test -d .tst; then
  2231   am__leading_dot=.
  2232 else
  2233   am__leading_dot=_
  2234 fi
  2235 rmdir .tst 2>/dev/null
  2237 # test to see if srcdir already configured
  2238 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2239    test -f $srcdir/config.status; then
  2240   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2241 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2242    { (exit 1); exit 1; }; }
  2243 fi
  2245 # test whether we have cygpath
  2246 if test -z "$CYGPATH_W"; then
  2247   if (cygpath --version) >/dev/null 2>/dev/null; then
  2248     CYGPATH_W='cygpath -w'
  2249   else
  2250     CYGPATH_W=echo
  2251   fi
  2252 fi
  2255 # Define the identity of the package.
  2256  PACKAGE=lxdream
  2257  VERSION=0.9.1
  2260 cat >>confdefs.h <<_ACEOF
  2261 #define PACKAGE "$PACKAGE"
  2262 _ACEOF
  2265 cat >>confdefs.h <<_ACEOF
  2266 #define VERSION "$VERSION"
  2267 _ACEOF
  2269 # Some tools Automake needs.
  2271 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2274 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2277 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2280 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2283 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2285 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2287 # Installed binaries are usually stripped using `strip' when the user
  2288 # run `make install-strip'.  However `strip' might not be the right
  2289 # tool to use in cross-compilation environments, therefore Automake
  2290 # will honor the `STRIP' environment variable to overrule this program.
  2291 if test "$cross_compiling" != no; then
  2292   if test -n "$ac_tool_prefix"; then
  2293   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2294 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2297 if test "${ac_cv_prog_STRIP+set}" = set; then
  2298   echo $ECHO_N "(cached) $ECHO_C" >&6
  2299 else
  2300   if test -n "$STRIP"; then
  2301   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2302 else
  2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304 for as_dir in $PATH
  2305 do
  2306   IFS=$as_save_IFS
  2307   test -z "$as_dir" && as_dir=.
  2308   for ac_exec_ext in '' $ac_executable_extensions; do
  2309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2310     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2312     break 2
  2313   fi
  2314 done
  2315 done
  2316 IFS=$as_save_IFS
  2318 fi
  2319 fi
  2320 STRIP=$ac_cv_prog_STRIP
  2321 if test -n "$STRIP"; then
  2322   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2323 echo "${ECHO_T}$STRIP" >&6; }
  2324 else
  2325   { echo "$as_me:$LINENO: result: no" >&5
  2326 echo "${ECHO_T}no" >&6; }
  2327 fi
  2330 fi
  2331 if test -z "$ac_cv_prog_STRIP"; then
  2332   ac_ct_STRIP=$STRIP
  2333   # Extract the first word of "strip", so it can be a program name with args.
  2334 set dummy strip; ac_word=$2
  2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2337 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2338   echo $ECHO_N "(cached) $ECHO_C" >&6
  2339 else
  2340   if test -n "$ac_ct_STRIP"; then
  2341   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2342 else
  2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344 for as_dir in $PATH
  2345 do
  2346   IFS=$as_save_IFS
  2347   test -z "$as_dir" && as_dir=.
  2348   for ac_exec_ext in '' $ac_executable_extensions; do
  2349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350     ac_cv_prog_ac_ct_STRIP="strip"
  2351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352     break 2
  2353   fi
  2354 done
  2355 done
  2356 IFS=$as_save_IFS
  2358 fi
  2359 fi
  2360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2361 if test -n "$ac_ct_STRIP"; then
  2362   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2363 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2364 else
  2365   { echo "$as_me:$LINENO: result: no" >&5
  2366 echo "${ECHO_T}no" >&6; }
  2367 fi
  2369   if test "x$ac_ct_STRIP" = x; then
  2370     STRIP=":"
  2371   else
  2372     case $cross_compiling:$ac_tool_warned in
  2373 yes:)
  2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2375 whose name does not start with the host triplet.  If you think this
  2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2378 whose name does not start with the host triplet.  If you think this
  2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2380 ac_tool_warned=yes ;;
  2381 esac
  2382     STRIP=$ac_ct_STRIP
  2383   fi
  2384 else
  2385   STRIP="$ac_cv_prog_STRIP"
  2386 fi
  2388 fi
  2389 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2391 # We need awk for the "check" target.  The system "awk" is bad on
  2392 # some platforms.
  2393 # Always define AMTAR for backward compatibility.
  2395 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2397 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2403 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2404 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2405     # Check whether --enable-maintainer-mode was given.
  2406 if test "${enable_maintainer_mode+set}" = set; then
  2407   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2408 else
  2409   USE_MAINTAINER_MODE=no
  2410 fi
  2412   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2413 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2416 if test $USE_MAINTAINER_MODE = yes; then
  2417   MAINTAINER_MODE_TRUE=
  2418   MAINTAINER_MODE_FALSE='#'
  2419 else
  2420   MAINTAINER_MODE_TRUE='#'
  2421   MAINTAINER_MODE_FALSE=
  2422 fi
  2424   MAINT=$MAINTAINER_MODE_TRUE
  2427 ac_config_headers="$ac_config_headers config.h"
  2430 # Make sure we can run config.sub.
  2431 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2432   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2433 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2434    { (exit 1); exit 1; }; }
  2436 { echo "$as_me:$LINENO: checking build system type" >&5
  2437 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2438 if test "${ac_cv_build+set}" = set; then
  2439   echo $ECHO_N "(cached) $ECHO_C" >&6
  2440 else
  2441   ac_build_alias=$build_alias
  2442 test "x$ac_build_alias" = x &&
  2443   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2444 test "x$ac_build_alias" = x &&
  2445   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2447    { (exit 1); exit 1; }; }
  2448 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2449   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2450 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2451    { (exit 1); exit 1; }; }
  2453 fi
  2454 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2455 echo "${ECHO_T}$ac_cv_build" >&6; }
  2456 case $ac_cv_build in
  2457 *-*-*) ;;
  2458 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2459 echo "$as_me: error: invalid value of canonical build" >&2;}
  2460    { (exit 1); exit 1; }; };;
  2461 esac
  2462 build=$ac_cv_build
  2463 ac_save_IFS=$IFS; IFS='-'
  2464 set x $ac_cv_build
  2465 shift
  2466 build_cpu=$1
  2467 build_vendor=$2
  2468 shift; shift
  2469 # Remember, the first character of IFS is used to create $*,
  2470 # except with old shells:
  2471 build_os=$*
  2472 IFS=$ac_save_IFS
  2473 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2476 { echo "$as_me:$LINENO: checking host system type" >&5
  2477 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2478 if test "${ac_cv_host+set}" = set; then
  2479   echo $ECHO_N "(cached) $ECHO_C" >&6
  2480 else
  2481   if test "x$host_alias" = x; then
  2482   ac_cv_host=$ac_cv_build
  2483 else
  2484   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2485     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2486 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2487    { (exit 1); exit 1; }; }
  2488 fi
  2490 fi
  2491 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2492 echo "${ECHO_T}$ac_cv_host" >&6; }
  2493 case $ac_cv_host in
  2494 *-*-*) ;;
  2495 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2496 echo "$as_me: error: invalid value of canonical host" >&2;}
  2497    { (exit 1); exit 1; }; };;
  2498 esac
  2499 host=$ac_cv_host
  2500 ac_save_IFS=$IFS; IFS='-'
  2501 set x $ac_cv_host
  2502 shift
  2503 host_cpu=$1
  2504 host_vendor=$2
  2505 shift; shift
  2506 # Remember, the first character of IFS is used to create $*,
  2507 # except with old shells:
  2508 host_os=$*
  2509 IFS=$ac_save_IFS
  2510 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2521 # LX_ANDROID_BUILD
  2522 # Defines --with-android, --with-android-ndk, and --with-android-version
  2523 # If specified, checks for a working install, and sets build parameters
  2524 # appropriately for an Android host.
  2530 # Check whether --with-android was given.
  2531 if test "${with_android+set}" = set; then
  2532   withval=$with_android;
  2533 fi
  2536 # Check whether --with-android-ndk was given.
  2537 if test "${with_android_ndk+set}" = set; then
  2538   withval=$with_android_ndk;
  2539 fi
  2542 # Check whether --with-android-version was given.
  2543 if test "${with_android_version+set}" = set; then
  2544   withval=$with_android_version;
  2545 else
  2546   with_android_version="android-8"
  2547 fi
  2550    if test "x$with_android" != "x"; then
  2551       if test "$with_android" = "yes"; then
  2552          { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
  2553 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
  2554    { (exit 1); exit 1; }; }
  2555       fi
  2556       if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
  2557          { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
  2558 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
  2559    { (exit 1); exit 1; }; }
  2560       fi
  2562       ANDROID_SDK_HOME="$with_android"
  2563       ANDROID_NDK_HOME="$with_android_ndk"
  2564       ANDROID_SDK_VERSION="$with_android_version"
  2566       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
  2567 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
  2568 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
  2569 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2570   echo $ECHO_N "(cached) $ECHO_C" >&6
  2571 else
  2572   test "$cross_compiling" = yes &&
  2573   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2574 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2575    { (exit 1); exit 1; }; }
  2576 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
  2577   eval "$as_ac_File=yes"
  2578 else
  2579   eval "$as_ac_File=no"
  2580 fi
  2581 fi
  2582 ac_res=`eval echo '${'$as_ac_File'}'`
  2583 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2584 echo "${ECHO_T}$ac_res" >&6; }
  2585 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2587 else
  2588    { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
  2589 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
  2590    { (exit 1); exit 1; }; }
  2591 fi
  2593       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
  2594 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
  2595 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
  2596 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2597   echo $ECHO_N "(cached) $ECHO_C" >&6
  2598 else
  2599   test "$cross_compiling" = yes &&
  2600   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2601 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2602    { (exit 1); exit 1; }; }
  2603 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
  2604   eval "$as_ac_File=yes"
  2605 else
  2606   eval "$as_ac_File=no"
  2607 fi
  2608 fi
  2609 ac_res=`eval echo '${'$as_ac_File'}'`
  2610 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2611 echo "${ECHO_T}$ac_res" >&6; }
  2612 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2614 else
  2615    { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
  2616 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
  2617    { (exit 1); exit 1; }; }
  2618 fi
  2620       as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
  2621 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
  2622 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
  2623 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2624   echo $ECHO_N "(cached) $ECHO_C" >&6
  2625 else
  2626   test "$cross_compiling" = yes &&
  2627   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2628 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2629    { (exit 1); exit 1; }; }
  2630 if test -r "$ANDROID_NDK_HOME/toolchains"; then
  2631   eval "$as_ac_File=yes"
  2632 else
  2633   eval "$as_ac_File=no"
  2634 fi
  2635 fi
  2636 ac_res=`eval echo '${'$as_ac_File'}'`
  2637 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2638 echo "${ECHO_T}$ac_res" >&6; }
  2639 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2641 else
  2642    { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
  2643 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
  2644    { (exit 1); exit 1; }; }
  2645 fi
  2648       case $host_alias in
  2649          arm-* | "")
  2650             host_alias="arm-linux-androideabi"
  2651             host_cpu="arm"
  2652             host_vendor="unknown";
  2653             host_os="linux-androideabi"
  2654             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
  2655             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
  2656             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_SDK_VERSION/arch-arm"
  2657             TARGETFLAGS="-ffunction-sections -funwind-tables -fstack-protector -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wno-psabi -Wa,--noexecstack"
  2658             TARGETFLAGS="$TARGETFLAGS -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -march=armv5te -mtune=xscale -msoft-float -mthumb -Os"
  2659             ;;
  2660          i686-*)
  2661             host_alias="i686-android-linux"
  2662             host_cpu="i686"
  2663             host_vendor="android"
  2664             host_os="linux"
  2665             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
  2666             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
  2667             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_SDK_VERSION/arch-x86"
  2668             TARGETFLAGS=""
  2669             ;;
  2670          *)
  2671             { { echo "$as_me:$LINENO: error: Unsupported android host $host_alias" >&5
  2672 echo "$as_me: error: Unsupported android host $host_alias" >&2;}
  2673    { (exit 1); exit 1; }; }
  2674       	    ;;
  2675       esac
  2677       # Extract the first word of "ant ", so it can be a program name with args.
  2678 set dummy ant ; ac_word=$2
  2679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2681 if test "${ac_cv_path_ANT+set}" = set; then
  2682   echo $ECHO_N "(cached) $ECHO_C" >&6
  2683 else
  2684   case $ANT in
  2685   [\\/]* | ?:[\\/]*)
  2686   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  2687   ;;
  2688   *)
  2689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2690 for as_dir in $PATH
  2691 do
  2692   IFS=$as_save_IFS
  2693   test -z "$as_dir" && as_dir=.
  2694   for ac_exec_ext in '' $ac_executable_extensions; do
  2695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2696     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  2697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2698     break 2
  2699   fi
  2700 done
  2701 done
  2702 IFS=$as_save_IFS
  2704   ;;
  2705 esac
  2706 fi
  2707 ANT=$ac_cv_path_ANT
  2708 if test -n "$ANT"; then
  2709   { echo "$as_me:$LINENO: result: $ANT" >&5
  2710 echo "${ECHO_T}$ANT" >&6; }
  2711 else
  2712   { echo "$as_me:$LINENO: result: no" >&5
  2713 echo "${ECHO_T}no" >&6; }
  2714 fi
  2718       CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
  2719       CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
  2720       CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
  2721       LD="$ANDROID_NDK_BIN/${host_alias}-ld"
  2722       AR="$ANDROID_NDK_BIN/${host_alias}-ar"
  2723       RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
  2724       STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
  2725       OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
  2726       CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
  2727       LDFLAGS="-nostdlib -Wl,--no-undefined -L${ANDROID_SYSROOT}/usr/lib -Wl,-rpath-link,${ANDROID_SYSROOT}/usr/lib -Wl,-allow-shlib-undefined -Wl,-z,noexecstack $LDFLAGS"
  2728       LIBS="$LIBS -liconv -llog -lgcc -lc"
  2735       ANDROID_BUILD=yes
  2736       cross_compiling=yes
  2737    fi
  2741 if test "$ANDROID_BUILD" = "yes"; then
  2742   GUI_ANDROID_TRUE=
  2743   GUI_ANDROID_FALSE='#'
  2744 else
  2745   GUI_ANDROID_TRUE='#'
  2746   GUI_ANDROID_FALSE=
  2747 fi
  2752 DEPDIR="${am__leading_dot}deps"
  2754 ac_config_commands="$ac_config_commands depfiles"
  2757 am_make=${MAKE-make}
  2758 cat > confinc << 'END'
  2759 am__doit:
  2760 	@echo done
  2761 .PHONY: am__doit
  2762 END
  2763 # If we don't find an include directive, just comment out the code.
  2764 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2765 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2766 am__include="#"
  2767 am__quote=
  2768 _am_result=none
  2769 # First try GNU make style include.
  2770 echo "include confinc" > confmf
  2771 # We grep out `Entering directory' and `Leaving directory'
  2772 # messages which can occur if `w' ends up in MAKEFLAGS.
  2773 # In particular we don't look at `^make:' because GNU make might
  2774 # be invoked under some other name (usually "gmake"), in which
  2775 # case it prints its new name instead of `make'.
  2776 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2777    am__include=include
  2778    am__quote=
  2779    _am_result=GNU
  2780 fi
  2781 # Now try BSD make style include.
  2782 if test "$am__include" = "#"; then
  2783    echo '.include "confinc"' > confmf
  2784    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2785       am__include=.include
  2786       am__quote="\""
  2787       _am_result=BSD
  2788    fi
  2789 fi
  2792 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2793 echo "${ECHO_T}$_am_result" >&6; }
  2794 rm -f confinc confmf
  2796 # Check whether --enable-dependency-tracking was given.
  2797 if test "${enable_dependency_tracking+set}" = set; then
  2798   enableval=$enable_dependency_tracking;
  2799 fi
  2801 if test "x$enable_dependency_tracking" != xno; then
  2802   am_depcomp="$ac_aux_dir/depcomp"
  2803   AMDEPBACKSLASH='\'
  2804 fi
  2807 if test "x$enable_dependency_tracking" != xno; then
  2808   AMDEP_TRUE=
  2809   AMDEP_FALSE='#'
  2810 else
  2811   AMDEP_TRUE='#'
  2812   AMDEP_FALSE=
  2813 fi
  2817 ac_ext=c
  2818 ac_cpp='$CPP $CPPFLAGS'
  2819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2822 if test -n "$ac_tool_prefix"; then
  2823   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2827 if test "${ac_cv_prog_CC+set}" = set; then
  2828   echo $ECHO_N "(cached) $ECHO_C" >&6
  2829 else
  2830   if test -n "$CC"; then
  2831   ac_cv_prog_CC="$CC" # Let the user override the test.
  2832 else
  2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2834 for as_dir in $PATH
  2835 do
  2836   IFS=$as_save_IFS
  2837   test -z "$as_dir" && as_dir=.
  2838   for ac_exec_ext in '' $ac_executable_extensions; do
  2839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2840     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2842     break 2
  2843   fi
  2844 done
  2845 done
  2846 IFS=$as_save_IFS
  2848 fi
  2849 fi
  2850 CC=$ac_cv_prog_CC
  2851 if test -n "$CC"; then
  2852   { echo "$as_me:$LINENO: result: $CC" >&5
  2853 echo "${ECHO_T}$CC" >&6; }
  2854 else
  2855   { echo "$as_me:$LINENO: result: no" >&5
  2856 echo "${ECHO_T}no" >&6; }
  2857 fi
  2860 fi
  2861 if test -z "$ac_cv_prog_CC"; then
  2862   ac_ct_CC=$CC
  2863   # Extract the first word of "gcc", so it can be a program name with args.
  2864 set dummy gcc; ac_word=$2
  2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2868   echo $ECHO_N "(cached) $ECHO_C" >&6
  2869 else
  2870   if test -n "$ac_ct_CC"; then
  2871   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2872 else
  2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2874 for as_dir in $PATH
  2875 do
  2876   IFS=$as_save_IFS
  2877   test -z "$as_dir" && as_dir=.
  2878   for ac_exec_ext in '' $ac_executable_extensions; do
  2879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2880     ac_cv_prog_ac_ct_CC="gcc"
  2881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2882     break 2
  2883   fi
  2884 done
  2885 done
  2886 IFS=$as_save_IFS
  2888 fi
  2889 fi
  2890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2891 if test -n "$ac_ct_CC"; then
  2892   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2893 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2894 else
  2895   { echo "$as_me:$LINENO: result: no" >&5
  2896 echo "${ECHO_T}no" >&6; }
  2897 fi
  2899   if test "x$ac_ct_CC" = x; then
  2900     CC=""
  2901   else
  2902     case $cross_compiling:$ac_tool_warned in
  2903 yes:)
  2904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2905 whose name does not start with the host triplet.  If you think this
  2906 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2908 whose name does not start with the host triplet.  If you think this
  2909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2910 ac_tool_warned=yes ;;
  2911 esac
  2912     CC=$ac_ct_CC
  2913   fi
  2914 else
  2915   CC="$ac_cv_prog_CC"
  2916 fi
  2918 if test -z "$CC"; then
  2919           if test -n "$ac_tool_prefix"; then
  2920     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2921 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2924 if test "${ac_cv_prog_CC+set}" = set; then
  2925   echo $ECHO_N "(cached) $ECHO_C" >&6
  2926 else
  2927   if test -n "$CC"; then
  2928   ac_cv_prog_CC="$CC" # Let the user override the test.
  2929 else
  2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2931 for as_dir in $PATH
  2932 do
  2933   IFS=$as_save_IFS
  2934   test -z "$as_dir" && as_dir=.
  2935   for ac_exec_ext in '' $ac_executable_extensions; do
  2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2937     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2939     break 2
  2940   fi
  2941 done
  2942 done
  2943 IFS=$as_save_IFS
  2945 fi
  2946 fi
  2947 CC=$ac_cv_prog_CC
  2948 if test -n "$CC"; then
  2949   { echo "$as_me:$LINENO: result: $CC" >&5
  2950 echo "${ECHO_T}$CC" >&6; }
  2951 else
  2952   { echo "$as_me:$LINENO: result: no" >&5
  2953 echo "${ECHO_T}no" >&6; }
  2954 fi
  2957   fi
  2958 fi
  2959 if test -z "$CC"; then
  2960   # Extract the first word of "cc", so it can be a program name with args.
  2961 set dummy cc; ac_word=$2
  2962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2964 if test "${ac_cv_prog_CC+set}" = set; then
  2965   echo $ECHO_N "(cached) $ECHO_C" >&6
  2966 else
  2967   if test -n "$CC"; then
  2968   ac_cv_prog_CC="$CC" # Let the user override the test.
  2969 else
  2970   ac_prog_rejected=no
  2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2972 for as_dir in $PATH
  2973 do
  2974   IFS=$as_save_IFS
  2975   test -z "$as_dir" && as_dir=.
  2976   for ac_exec_ext in '' $ac_executable_extensions; do
  2977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2978     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2979        ac_prog_rejected=yes
  2980        continue
  2981      fi
  2982     ac_cv_prog_CC="cc"
  2983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2984     break 2
  2985   fi
  2986 done
  2987 done
  2988 IFS=$as_save_IFS
  2990 if test $ac_prog_rejected = yes; then
  2991   # We found a bogon in the path, so make sure we never use it.
  2992   set dummy $ac_cv_prog_CC
  2993   shift
  2994   if test $# != 0; then
  2995     # We chose a different compiler from the bogus one.
  2996     # However, it has the same basename, so the bogon will be chosen
  2997     # first if we set CC to just the basename; use the full file name.
  2998     shift
  2999     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3000   fi
  3001 fi
  3002 fi
  3003 fi
  3004 CC=$ac_cv_prog_CC
  3005 if test -n "$CC"; then
  3006   { echo "$as_me:$LINENO: result: $CC" >&5
  3007 echo "${ECHO_T}$CC" >&6; }
  3008 else
  3009   { echo "$as_me:$LINENO: result: no" >&5
  3010 echo "${ECHO_T}no" >&6; }
  3011 fi
  3014 fi
  3015 if test -z "$CC"; then
  3016   if test -n "$ac_tool_prefix"; then
  3017   for ac_prog in cl.exe
  3018   do
  3019     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3023 if test "${ac_cv_prog_CC+set}" = set; then
  3024   echo $ECHO_N "(cached) $ECHO_C" >&6
  3025 else
  3026   if test -n "$CC"; then
  3027   ac_cv_prog_CC="$CC" # Let the user override the test.
  3028 else
  3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3030 for as_dir in $PATH
  3031 do
  3032   IFS=$as_save_IFS
  3033   test -z "$as_dir" && as_dir=.
  3034   for ac_exec_ext in '' $ac_executable_extensions; do
  3035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3036     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3038     break 2
  3039   fi
  3040 done
  3041 done
  3042 IFS=$as_save_IFS
  3044 fi
  3045 fi
  3046 CC=$ac_cv_prog_CC
  3047 if test -n "$CC"; then
  3048   { echo "$as_me:$LINENO: result: $CC" >&5
  3049 echo "${ECHO_T}$CC" >&6; }
  3050 else
  3051   { echo "$as_me:$LINENO: result: no" >&5
  3052 echo "${ECHO_T}no" >&6; }
  3053 fi
  3056     test -n "$CC" && break
  3057   done
  3058 fi
  3059 if test -z "$CC"; then
  3060   ac_ct_CC=$CC
  3061   for ac_prog in cl.exe
  3062 do
  3063   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3064 set dummy $ac_prog; ac_word=$2
  3065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3068   echo $ECHO_N "(cached) $ECHO_C" >&6
  3069 else
  3070   if test -n "$ac_ct_CC"; then
  3071   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3072 else
  3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3074 for as_dir in $PATH
  3075 do
  3076   IFS=$as_save_IFS
  3077   test -z "$as_dir" && as_dir=.
  3078   for ac_exec_ext in '' $ac_executable_extensions; do
  3079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3080     ac_cv_prog_ac_ct_CC="$ac_prog"
  3081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3082     break 2
  3083   fi
  3084 done
  3085 done
  3086 IFS=$as_save_IFS
  3088 fi
  3089 fi
  3090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3091 if test -n "$ac_ct_CC"; then
  3092   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3093 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3094 else
  3095   { echo "$as_me:$LINENO: result: no" >&5
  3096 echo "${ECHO_T}no" >&6; }
  3097 fi
  3100   test -n "$ac_ct_CC" && break
  3101 done
  3103   if test "x$ac_ct_CC" = x; then
  3104     CC=""
  3105   else
  3106     case $cross_compiling:$ac_tool_warned in
  3107 yes:)
  3108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3109 whose name does not start with the host triplet.  If you think this
  3110 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3112 whose name does not start with the host triplet.  If you think this
  3113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3114 ac_tool_warned=yes ;;
  3115 esac
  3116     CC=$ac_ct_CC
  3117   fi
  3118 fi
  3120 fi
  3123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3124 See \`config.log' for more details." >&5
  3125 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3126 See \`config.log' for more details." >&2;}
  3127    { (exit 1); exit 1; }; }
  3129 # Provide some information about the compiler.
  3130 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3131 ac_compiler=`set X $ac_compile; echo $2`
  3132 { (ac_try="$ac_compiler --version >&5"
  3133 case "(($ac_try" in
  3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3135   *) ac_try_echo=$ac_try;;
  3136 esac
  3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3138   (eval "$ac_compiler --version >&5") 2>&5
  3139   ac_status=$?
  3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3141   (exit $ac_status); }
  3142 { (ac_try="$ac_compiler -v >&5"
  3143 case "(($ac_try" in
  3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3145   *) ac_try_echo=$ac_try;;
  3146 esac
  3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3148   (eval "$ac_compiler -v >&5") 2>&5
  3149   ac_status=$?
  3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3151   (exit $ac_status); }
  3152 { (ac_try="$ac_compiler -V >&5"
  3153 case "(($ac_try" in
  3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3155   *) ac_try_echo=$ac_try;;
  3156 esac
  3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3158   (eval "$ac_compiler -V >&5") 2>&5
  3159   ac_status=$?
  3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3161   (exit $ac_status); }
  3163 cat >conftest.$ac_ext <<_ACEOF
  3164 /* confdefs.h.  */
  3165 _ACEOF
  3166 cat confdefs.h >>conftest.$ac_ext
  3167 cat >>conftest.$ac_ext <<_ACEOF
  3168 /* end confdefs.h.  */
  3170 int
  3171 main ()
  3175   return 0;
  3177 _ACEOF
  3178 ac_clean_files_save=$ac_clean_files
  3179 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  3180 # Try to create an executable without -o first, disregard a.out.
  3181 # It will help us diagnose broken compilers, and finding out an intuition
  3182 # of exeext.
  3183 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  3184 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  3185 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3187 # List of possible output files, starting from the most likely.
  3188 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  3189 # only as a last resort.  b.out is created by i960 compilers.
  3190 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  3192 # The IRIX 6 linker writes into existing files which may not be
  3193 # executable, retaining their permissions.  Remove them first so a
  3194 # subsequent execution test works.
  3195 ac_rmfiles=
  3196 for ac_file in $ac_files
  3197 do
  3198   case $ac_file in
  3199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3200     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3201   esac
  3202 done
  3203 rm -f $ac_rmfiles
  3205 if { (ac_try="$ac_link_default"
  3206 case "(($ac_try" in
  3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3208   *) ac_try_echo=$ac_try;;
  3209 esac
  3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3211   (eval "$ac_link_default") 2>&5
  3212   ac_status=$?
  3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3214   (exit $ac_status); }; then
  3215   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3217 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3218 # so that the user can short-circuit this test for compilers unknown to
  3219 # Autoconf.
  3220 for ac_file in $ac_files ''
  3221 do
  3222   test -f "$ac_file" || continue
  3223   case $ac_file in
  3224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  3225 	;;
  3226     [ab].out )
  3227 	# We found the default executable, but exeext='' is most
  3228 	# certainly right.
  3229 	break;;
  3230     *.* )
  3231         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3232 	then :; else
  3233 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3234 	fi
  3235 	# We set ac_cv_exeext here because the later test for it is not
  3236 	# safe: cross compilers may not add the suffix if given an `-o'
  3237 	# argument, so we may need to know it at that point already.
  3238 	# Even if this section looks crufty: it has the advantage of
  3239 	# actually working.
  3240 	break;;
  3241     * )
  3242 	break;;
  3243   esac
  3244 done
  3245 test "$ac_cv_exeext" = no && ac_cv_exeext=
  3247 else
  3248   ac_file=''
  3249 fi
  3251 { echo "$as_me:$LINENO: result: $ac_file" >&5
  3252 echo "${ECHO_T}$ac_file" >&6; }
  3253 if test -z "$ac_file"; then
  3254   echo "$as_me: failed program was:" >&5
  3255 sed 's/^/| /' conftest.$ac_ext >&5
  3257 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  3258 See \`config.log' for more details." >&5
  3259 echo "$as_me: error: C compiler cannot create executables
  3260 See \`config.log' for more details." >&2;}
  3261    { (exit 77); exit 77; }; }
  3262 fi
  3264 ac_exeext=$ac_cv_exeext
  3266 # Check that the compiler produces executables we can run.  If not, either
  3267 # the compiler is broken, or we cross compile.
  3268 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3269 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  3270 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3271 # If not cross compiling, check that we can run a simple program.
  3272 if test "$cross_compiling" != yes; then
  3273   if { ac_try='./$ac_file'
  3274   { (case "(($ac_try" in
  3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3276   *) ac_try_echo=$ac_try;;
  3277 esac
  3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3279   (eval "$ac_try") 2>&5
  3280   ac_status=$?
  3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3282   (exit $ac_status); }; }; then
  3283     cross_compiling=no
  3284   else
  3285     if test "$cross_compiling" = maybe; then
  3286 	cross_compiling=yes
  3287     else
  3288 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3289 If you meant to cross compile, use \`--host'.
  3290 See \`config.log' for more details." >&5
  3291 echo "$as_me: error: cannot run C compiled programs.
  3292 If you meant to cross compile, use \`--host'.
  3293 See \`config.log' for more details." >&2;}
  3294    { (exit 1); exit 1; }; }
  3295     fi
  3296   fi
  3297 fi
  3298 { echo "$as_me:$LINENO: result: yes" >&5
  3299 echo "${ECHO_T}yes" >&6; }
  3301 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  3302 ac_clean_files=$ac_clean_files_save
  3303 # Check that the compiler produces executables we can run.  If not, either
  3304 # the compiler is broken, or we cross compile.
  3305 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3306 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3307 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3308 echo "${ECHO_T}$cross_compiling" >&6; }
  3310 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3311 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3312 if { (ac_try="$ac_link"
  3313 case "(($ac_try" in
  3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3315   *) ac_try_echo=$ac_try;;
  3316 esac
  3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3318   (eval "$ac_link") 2>&5
  3319   ac_status=$?
  3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3321   (exit $ac_status); }; then
  3322   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3323 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3324 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3325 # `rm'.
  3326 for ac_file in conftest.exe conftest conftest.*; do
  3327   test -f "$ac_file" || continue
  3328   case $ac_file in
  3329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3330     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3331 	  break;;
  3332     * ) break;;
  3333   esac
  3334 done
  3335 else
  3336   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3337 See \`config.log' for more details." >&5
  3338 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3339 See \`config.log' for more details." >&2;}
  3340    { (exit 1); exit 1; }; }
  3341 fi
  3343 rm -f conftest$ac_cv_exeext
  3344 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3345 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3347 rm -f conftest.$ac_ext
  3348 EXEEXT=$ac_cv_exeext
  3349 ac_exeext=$EXEEXT
  3350 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3351 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3352 if test "${ac_cv_objext+set}" = set; then
  3353   echo $ECHO_N "(cached) $ECHO_C" >&6
  3354 else
  3355   cat >conftest.$ac_ext <<_ACEOF
  3356 /* confdefs.h.  */
  3357 _ACEOF
  3358 cat confdefs.h >>conftest.$ac_ext
  3359 cat >>conftest.$ac_ext <<_ACEOF
  3360 /* end confdefs.h.  */
  3362 int
  3363 main ()
  3367   return 0;
  3369 _ACEOF
  3370 rm -f conftest.o conftest.obj
  3371 if { (ac_try="$ac_compile"
  3372 case "(($ac_try" in
  3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3374   *) ac_try_echo=$ac_try;;
  3375 esac
  3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3377   (eval "$ac_compile") 2>&5
  3378   ac_status=$?
  3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3380   (exit $ac_status); }; then
  3381   for ac_file in conftest.o conftest.obj conftest.*; do
  3382   test -f "$ac_file" || continue;
  3383   case $ac_file in
  3384     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3385     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3386        break;;
  3387   esac
  3388 done
  3389 else
  3390   echo "$as_me: failed program was:" >&5
  3391 sed 's/^/| /' conftest.$ac_ext >&5
  3393 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3394 See \`config.log' for more details." >&5
  3395 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3396 See \`config.log' for more details." >&2;}
  3397    { (exit 1); exit 1; }; }
  3398 fi
  3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3401 fi
  3402 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3403 echo "${ECHO_T}$ac_cv_objext" >&6; }
  3404 OBJEXT=$ac_cv_objext
  3405 ac_objext=$OBJEXT
  3406 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3407 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3408 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3409   echo $ECHO_N "(cached) $ECHO_C" >&6
  3410 else
  3411   cat >conftest.$ac_ext <<_ACEOF
  3412 /* confdefs.h.  */
  3413 _ACEOF
  3414 cat confdefs.h >>conftest.$ac_ext
  3415 cat >>conftest.$ac_ext <<_ACEOF
  3416 /* end confdefs.h.  */
  3418 int
  3419 main ()
  3421 #ifndef __GNUC__
  3422        choke me
  3423 #endif
  3426   return 0;
  3428 _ACEOF
  3429 rm -f conftest.$ac_objext
  3430 if { (ac_try="$ac_compile"
  3431 case "(($ac_try" in
  3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433   *) ac_try_echo=$ac_try;;
  3434 esac
  3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3436   (eval "$ac_compile") 2>conftest.er1
  3437   ac_status=$?
  3438   grep -v '^ *+' conftest.er1 >conftest.err
  3439   rm -f conftest.er1
  3440   cat conftest.err >&5
  3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3442   (exit $ac_status); } && {
  3443 	 test -z "$ac_c_werror_flag" ||
  3444 	 test ! -s conftest.err
  3445        } && test -s conftest.$ac_objext; then
  3446   ac_compiler_gnu=yes
  3447 else
  3448   echo "$as_me: failed program was:" >&5
  3449 sed 's/^/| /' conftest.$ac_ext >&5
  3451 	ac_compiler_gnu=no
  3452 fi
  3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3457 fi
  3458 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3460 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3461 ac_test_CFLAGS=${CFLAGS+set}
  3462 ac_save_CFLAGS=$CFLAGS
  3463 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3464 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3465 if test "${ac_cv_prog_cc_g+set}" = set; then
  3466   echo $ECHO_N "(cached) $ECHO_C" >&6
  3467 else
  3468   ac_save_c_werror_flag=$ac_c_werror_flag
  3469    ac_c_werror_flag=yes
  3470    ac_cv_prog_cc_g=no
  3471    CFLAGS="-g"
  3472    cat >conftest.$ac_ext <<_ACEOF
  3473 /* confdefs.h.  */
  3474 _ACEOF
  3475 cat confdefs.h >>conftest.$ac_ext
  3476 cat >>conftest.$ac_ext <<_ACEOF
  3477 /* end confdefs.h.  */
  3479 int
  3480 main ()
  3484   return 0;
  3486 _ACEOF
  3487 rm -f conftest.$ac_objext
  3488 if { (ac_try="$ac_compile"
  3489 case "(($ac_try" in
  3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3491   *) ac_try_echo=$ac_try;;
  3492 esac
  3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3494   (eval "$ac_compile") 2>conftest.er1
  3495   ac_status=$?
  3496   grep -v '^ *+' conftest.er1 >conftest.err
  3497   rm -f conftest.er1
  3498   cat conftest.err >&5
  3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3500   (exit $ac_status); } && {
  3501 	 test -z "$ac_c_werror_flag" ||
  3502 	 test ! -s conftest.err
  3503        } && test -s conftest.$ac_objext; then
  3504   ac_cv_prog_cc_g=yes
  3505 else
  3506   echo "$as_me: failed program was:" >&5
  3507 sed 's/^/| /' conftest.$ac_ext >&5
  3509 	CFLAGS=""
  3510       cat >conftest.$ac_ext <<_ACEOF
  3511 /* confdefs.h.  */
  3512 _ACEOF
  3513 cat confdefs.h >>conftest.$ac_ext
  3514 cat >>conftest.$ac_ext <<_ACEOF
  3515 /* end confdefs.h.  */
  3517 int
  3518 main ()
  3522   return 0;
  3524 _ACEOF
  3525 rm -f conftest.$ac_objext
  3526 if { (ac_try="$ac_compile"
  3527 case "(($ac_try" in
  3528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3529   *) ac_try_echo=$ac_try;;
  3530 esac
  3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3532   (eval "$ac_compile") 2>conftest.er1
  3533   ac_status=$?
  3534   grep -v '^ *+' conftest.er1 >conftest.err
  3535   rm -f conftest.er1
  3536   cat conftest.err >&5
  3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3538   (exit $ac_status); } && {
  3539 	 test -z "$ac_c_werror_flag" ||
  3540 	 test ! -s conftest.err
  3541        } && test -s conftest.$ac_objext; then
  3543 else
  3544   echo "$as_me: failed program was:" >&5
  3545 sed 's/^/| /' conftest.$ac_ext >&5
  3547 	ac_c_werror_flag=$ac_save_c_werror_flag
  3548 	 CFLAGS="-g"
  3549 	 cat >conftest.$ac_ext <<_ACEOF
  3550 /* confdefs.h.  */
  3551 _ACEOF
  3552 cat confdefs.h >>conftest.$ac_ext
  3553 cat >>conftest.$ac_ext <<_ACEOF
  3554 /* end confdefs.h.  */
  3556 int
  3557 main ()
  3561   return 0;
  3563 _ACEOF
  3564 rm -f conftest.$ac_objext
  3565 if { (ac_try="$ac_compile"
  3566 case "(($ac_try" in
  3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3568   *) ac_try_echo=$ac_try;;
  3569 esac
  3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3571   (eval "$ac_compile") 2>conftest.er1
  3572   ac_status=$?
  3573   grep -v '^ *+' conftest.er1 >conftest.err
  3574   rm -f conftest.er1
  3575   cat conftest.err >&5
  3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3577   (exit $ac_status); } && {
  3578 	 test -z "$ac_c_werror_flag" ||
  3579 	 test ! -s conftest.err
  3580        } && test -s conftest.$ac_objext; then
  3581   ac_cv_prog_cc_g=yes
  3582 else
  3583   echo "$as_me: failed program was:" >&5
  3584 sed 's/^/| /' conftest.$ac_ext >&5
  3587 fi
  3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3590 fi
  3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3593 fi
  3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3596    ac_c_werror_flag=$ac_save_c_werror_flag
  3597 fi
  3598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3599 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3600 if test "$ac_test_CFLAGS" = set; then
  3601   CFLAGS=$ac_save_CFLAGS
  3602 elif test $ac_cv_prog_cc_g = yes; then
  3603   if test "$GCC" = yes; then
  3604     CFLAGS="-g -O2"
  3605   else
  3606     CFLAGS="-g"
  3607   fi
  3608 else
  3609   if test "$GCC" = yes; then
  3610     CFLAGS="-O2"
  3611   else
  3612     CFLAGS=
  3613   fi
  3614 fi
  3615 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3616 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3617 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3618   echo $ECHO_N "(cached) $ECHO_C" >&6
  3619 else
  3620   ac_cv_prog_cc_c89=no
  3621 ac_save_CC=$CC
  3622 cat >conftest.$ac_ext <<_ACEOF
  3623 /* confdefs.h.  */
  3624 _ACEOF
  3625 cat confdefs.h >>conftest.$ac_ext
  3626 cat >>conftest.$ac_ext <<_ACEOF
  3627 /* end confdefs.h.  */
  3628 #include <stdarg.h>
  3629 #include <stdio.h>
  3630 #include <sys/types.h>
  3631 #include <sys/stat.h>
  3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3633 struct buf { int x; };
  3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3635 static char *e (p, i)
  3636      char **p;
  3637      int i;
  3639   return p[i];
  3641 static char *f (char * (*g) (char **, int), char **p, ...)
  3643   char *s;
  3644   va_list v;
  3645   va_start (v,p);
  3646   s = g (p, va_arg (v,int));
  3647   va_end (v);
  3648   return s;
  3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3652    function prototypes and stuff, but not '\xHH' hex character constants.
  3653    These don't provoke an error unfortunately, instead are silently treated
  3654    as 'x'.  The following induces an error, until -std is added to get
  3655    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3656    array size at least.  It's necessary to write '\x00'==0 to get something
  3657    that's true only with -std.  */
  3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3661    inside strings and character constants.  */
  3662 #define FOO(x) 'x'
  3663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3665 int test (int i, double x);
  3666 struct s1 {int (*f) (int a);};
  3667 struct s2 {int (*f) (double a);};
  3668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3669 int argc;
  3670 char **argv;
  3671 int
  3672 main ()
  3674 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3676   return 0;
  3678 _ACEOF
  3679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3680 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3681 do
  3682   CC="$ac_save_CC $ac_arg"
  3683   rm -f conftest.$ac_objext
  3684 if { (ac_try="$ac_compile"
  3685 case "(($ac_try" in
  3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3687   *) ac_try_echo=$ac_try;;
  3688 esac
  3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3690   (eval "$ac_compile") 2>conftest.er1
  3691   ac_status=$?
  3692   grep -v '^ *+' conftest.er1 >conftest.err
  3693   rm -f conftest.er1
  3694   cat conftest.err >&5
  3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3696   (exit $ac_status); } && {
  3697 	 test -z "$ac_c_werror_flag" ||
  3698 	 test ! -s conftest.err
  3699        } && test -s conftest.$ac_objext; then
  3700   ac_cv_prog_cc_c89=$ac_arg
  3701 else
  3702   echo "$as_me: failed program was:" >&5
  3703 sed 's/^/| /' conftest.$ac_ext >&5
  3706 fi
  3708 rm -f core conftest.err conftest.$ac_objext
  3709   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3710 done
  3711 rm -f conftest.$ac_ext
  3712 CC=$ac_save_CC
  3714 fi
  3715 # AC_CACHE_VAL
  3716 case "x$ac_cv_prog_cc_c89" in
  3717   x)
  3718     { echo "$as_me:$LINENO: result: none needed" >&5
  3719 echo "${ECHO_T}none needed" >&6; } ;;
  3720   xno)
  3721     { echo "$as_me:$LINENO: result: unsupported" >&5
  3722 echo "${ECHO_T}unsupported" >&6; } ;;
  3723   *)
  3724     CC="$CC $ac_cv_prog_cc_c89"
  3725     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3726 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3727 esac
  3730 ac_ext=c
  3731 ac_cpp='$CPP $CPPFLAGS'
  3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3736 depcc="$CC"   am_compiler_list=
  3738 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3739 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3740 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3741   echo $ECHO_N "(cached) $ECHO_C" >&6
  3742 else
  3743   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3744   # We make a subdir and do the tests there.  Otherwise we can end up
  3745   # making bogus files that we don't know about and never remove.  For
  3746   # instance it was reported that on HP-UX the gcc test will end up
  3747   # making a dummy file named `D' -- because `-MD' means `put the output
  3748   # in D'.
  3749   mkdir conftest.dir
  3750   # Copy depcomp to subdir because otherwise we won't find it if we're
  3751   # using a relative directory.
  3752   cp "$am_depcomp" conftest.dir
  3753   cd conftest.dir
  3754   # We will build objects and dependencies in a subdirectory because
  3755   # it helps to detect inapplicable dependency modes.  For instance
  3756   # both Tru64's cc and ICC support -MD to output dependencies as a
  3757   # side effect of compilation, but ICC will put the dependencies in
  3758   # the current directory while Tru64 will put them in the object
  3759   # directory.
  3760   mkdir sub
  3762   am_cv_CC_dependencies_compiler_type=none
  3763   if test "$am_compiler_list" = ""; then
  3764      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3765   fi
  3766   for depmode in $am_compiler_list; do
  3767     # Setup a source with many dependencies, because some compilers
  3768     # like to wrap large dependency lists on column 80 (with \), and
  3769     # we should not choose a depcomp mode which is confused by this.
  3771     # We need to recreate these files for each test, as the compiler may
  3772     # overwrite some of them when testing with obscure command lines.
  3773     # This happens at least with the AIX C compiler.
  3774     : > sub/conftest.c
  3775     for i in 1 2 3 4 5 6; do
  3776       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3777       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3778       # Solaris 8's {/usr,}/bin/sh.
  3779       touch sub/conftst$i.h
  3780     done
  3781     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3783     case $depmode in
  3784     nosideeffect)
  3785       # after this tag, mechanisms are not by side-effect, so they'll
  3786       # only be used when explicitly requested
  3787       if test "x$enable_dependency_tracking" = xyes; then
  3788 	continue
  3789       else
  3790 	break
  3791       fi
  3792       ;;
  3793     none) break ;;
  3794     esac
  3795     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3796     # mode.  It turns out that the SunPro C++ compiler does not properly
  3797     # handle `-M -o', and we need to detect this.
  3798     if depmode=$depmode \
  3799        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3800        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3801        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3802          >/dev/null 2>conftest.err &&
  3803        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3804        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3805        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3806       # icc doesn't choke on unknown options, it will just issue warnings
  3807       # or remarks (even with -Werror).  So we grep stderr for any message
  3808       # that says an option was ignored or not supported.
  3809       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3810       #   icc: Command line warning: ignoring option '-M'; no argument required
  3811       # The diagnosis changed in icc 8.0:
  3812       #   icc: Command line remark: option '-MP' not supported
  3813       if (grep 'ignoring option' conftest.err ||
  3814           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3815         am_cv_CC_dependencies_compiler_type=$depmode
  3816         break
  3817       fi
  3818     fi
  3819   done
  3821   cd ..
  3822   rm -rf conftest.dir
  3823 else
  3824   am_cv_CC_dependencies_compiler_type=none
  3825 fi
  3827 fi
  3828 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3829 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3830 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3834 if
  3835   test "x$enable_dependency_tracking" != xno \
  3836   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3837   am__fastdepCC_TRUE=
  3838   am__fastdepCC_FALSE='#'
  3839 else
  3840   am__fastdepCC_TRUE='#'
  3841   am__fastdepCC_FALSE=
  3842 fi
  3847         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3848 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  3849 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3850   echo $ECHO_N "(cached) $ECHO_C" >&6
  3851 else
  3852   ac_check_lib_save_LIBS=$LIBS
  3853 LIBS="-lcposix  $LIBS"
  3854 cat >conftest.$ac_ext <<_ACEOF
  3855 /* confdefs.h.  */
  3856 _ACEOF
  3857 cat confdefs.h >>conftest.$ac_ext
  3858 cat >>conftest.$ac_ext <<_ACEOF
  3859 /* end confdefs.h.  */
  3861 /* Override any GCC internal prototype to avoid an error.
  3862    Use char because int might match the return type of a GCC
  3863    builtin and then its argument prototype would still apply.  */
  3864 #ifdef __cplusplus
  3865 extern "C"
  3866 #endif
  3867 char strerror ();
  3868 int
  3869 main ()
  3871 return strerror ();
  3873   return 0;
  3875 _ACEOF
  3876 rm -f conftest.$ac_objext conftest$ac_exeext
  3877 if { (ac_try="$ac_link"
  3878 case "(($ac_try" in
  3879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3880   *) ac_try_echo=$ac_try;;
  3881 esac
  3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3883   (eval "$ac_link") 2>conftest.er1
  3884   ac_status=$?
  3885   grep -v '^ *+' conftest.er1 >conftest.err
  3886   rm -f conftest.er1
  3887   cat conftest.err >&5
  3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3889   (exit $ac_status); } && {
  3890 	 test -z "$ac_c_werror_flag" ||
  3891 	 test ! -s conftest.err
  3892        } && test -s conftest$ac_exeext &&
  3893        $as_test_x conftest$ac_exeext; then
  3894   ac_cv_lib_cposix_strerror=yes
  3895 else
  3896   echo "$as_me: failed program was:" >&5
  3897 sed 's/^/| /' conftest.$ac_ext >&5
  3899 	ac_cv_lib_cposix_strerror=no
  3900 fi
  3902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3903       conftest$ac_exeext conftest.$ac_ext
  3904 LIBS=$ac_check_lib_save_LIBS
  3905 fi
  3906 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3907 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  3908 if test $ac_cv_lib_cposix_strerror = yes; then
  3909   LIBS="$LIBS -lcposix"
  3910 fi
  3914 ac_ext=c
  3915 ac_cpp='$CPP $CPPFLAGS'
  3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3919 if test -n "$ac_tool_prefix"; then
  3920   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3924 if test "${ac_cv_prog_CC+set}" = set; then
  3925   echo $ECHO_N "(cached) $ECHO_C" >&6
  3926 else
  3927   if test -n "$CC"; then
  3928   ac_cv_prog_CC="$CC" # Let the user override the test.
  3929 else
  3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3931 for as_dir in $PATH
  3932 do
  3933   IFS=$as_save_IFS
  3934   test -z "$as_dir" && as_dir=.
  3935   for ac_exec_ext in '' $ac_executable_extensions; do
  3936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3937     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3939     break 2
  3940   fi
  3941 done
  3942 done
  3943 IFS=$as_save_IFS
  3945 fi
  3946 fi
  3947 CC=$ac_cv_prog_CC
  3948 if test -n "$CC"; then
  3949   { echo "$as_me:$LINENO: result: $CC" >&5
  3950 echo "${ECHO_T}$CC" >&6; }
  3951 else
  3952   { echo "$as_me:$LINENO: result: no" >&5
  3953 echo "${ECHO_T}no" >&6; }
  3954 fi
  3957 fi
  3958 if test -z "$ac_cv_prog_CC"; then
  3959   ac_ct_CC=$CC
  3960   # Extract the first word of "gcc", so it can be a program name with args.
  3961 set dummy gcc; ac_word=$2
  3962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3965   echo $ECHO_N "(cached) $ECHO_C" >&6
  3966 else
  3967   if test -n "$ac_ct_CC"; then
  3968   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3969 else
  3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3971 for as_dir in $PATH
  3972 do
  3973   IFS=$as_save_IFS
  3974   test -z "$as_dir" && as_dir=.
  3975   for ac_exec_ext in '' $ac_executable_extensions; do
  3976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3977     ac_cv_prog_ac_ct_CC="gcc"
  3978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3979     break 2
  3980   fi
  3981 done
  3982 done
  3983 IFS=$as_save_IFS
  3985 fi
  3986 fi
  3987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3988 if test -n "$ac_ct_CC"; then
  3989   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3990 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3991 else
  3992   { echo "$as_me:$LINENO: result: no" >&5
  3993 echo "${ECHO_T}no" >&6; }
  3994 fi
  3996   if test "x$ac_ct_CC" = x; then
  3997     CC=""
  3998   else
  3999     case $cross_compiling:$ac_tool_warned in
  4000 yes:)
  4001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4002 whose name does not start with the host triplet.  If you think this
  4003 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4005 whose name does not start with the host triplet.  If you think this
  4006 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4007 ac_tool_warned=yes ;;
  4008 esac
  4009     CC=$ac_ct_CC
  4010   fi
  4011 else
  4012   CC="$ac_cv_prog_CC"
  4013 fi
  4015 if test -z "$CC"; then
  4016           if test -n "$ac_tool_prefix"; then
  4017     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4018 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4021 if test "${ac_cv_prog_CC+set}" = set; then
  4022   echo $ECHO_N "(cached) $ECHO_C" >&6
  4023 else
  4024   if test -n "$CC"; then
  4025   ac_cv_prog_CC="$CC" # Let the user override the test.
  4026 else
  4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4028 for as_dir in $PATH
  4029 do
  4030   IFS=$as_save_IFS
  4031   test -z "$as_dir" && as_dir=.
  4032   for ac_exec_ext in '' $ac_executable_extensions; do
  4033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4034     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4036     break 2
  4037   fi
  4038 done
  4039 done
  4040 IFS=$as_save_IFS
  4042 fi
  4043 fi
  4044 CC=$ac_cv_prog_CC
  4045 if test -n "$CC"; then
  4046   { echo "$as_me:$LINENO: result: $CC" >&5
  4047 echo "${ECHO_T}$CC" >&6; }
  4048 else
  4049   { echo "$as_me:$LINENO: result: no" >&5
  4050 echo "${ECHO_T}no" >&6; }
  4051 fi
  4054   fi
  4055 fi
  4056 if test -z "$CC"; then
  4057   # Extract the first word of "cc", so it can be a program name with args.
  4058 set dummy cc; ac_word=$2
  4059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4061 if test "${ac_cv_prog_CC+set}" = set; then
  4062   echo $ECHO_N "(cached) $ECHO_C" >&6
  4063 else
  4064   if test -n "$CC"; then
  4065   ac_cv_prog_CC="$CC" # Let the user override the test.
  4066 else
  4067   ac_prog_rejected=no
  4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4069 for as_dir in $PATH
  4070 do
  4071   IFS=$as_save_IFS
  4072   test -z "$as_dir" && as_dir=.
  4073   for ac_exec_ext in '' $ac_executable_extensions; do
  4074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4075     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4076        ac_prog_rejected=yes
  4077        continue
  4078      fi
  4079     ac_cv_prog_CC="cc"
  4080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4081     break 2
  4082   fi
  4083 done
  4084 done
  4085 IFS=$as_save_IFS
  4087 if test $ac_prog_rejected = yes; then
  4088   # We found a bogon in the path, so make sure we never use it.
  4089   set dummy $ac_cv_prog_CC
  4090   shift
  4091   if test $# != 0; then
  4092     # We chose a different compiler from the bogus one.
  4093     # However, it has the same basename, so the bogon will be chosen
  4094     # first if we set CC to just the basename; use the full file name.
  4095     shift
  4096     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4097   fi
  4098 fi
  4099 fi
  4100 fi
  4101 CC=$ac_cv_prog_CC
  4102 if test -n "$CC"; then
  4103   { echo "$as_me:$LINENO: result: $CC" >&5
  4104 echo "${ECHO_T}$CC" >&6; }
  4105 else
  4106   { echo "$as_me:$LINENO: result: no" >&5
  4107 echo "${ECHO_T}no" >&6; }
  4108 fi
  4111 fi
  4112 if test -z "$CC"; then
  4113   if test -n "$ac_tool_prefix"; then
  4114   for ac_prog in cl.exe
  4115   do
  4116     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4120 if test "${ac_cv_prog_CC+set}" = set; then
  4121   echo $ECHO_N "(cached) $ECHO_C" >&6
  4122 else
  4123   if test -n "$CC"; then
  4124   ac_cv_prog_CC="$CC" # Let the user override the test.
  4125 else
  4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4127 for as_dir in $PATH
  4128 do
  4129   IFS=$as_save_IFS
  4130   test -z "$as_dir" && as_dir=.
  4131   for ac_exec_ext in '' $ac_executable_extensions; do
  4132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4133     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4135     break 2
  4136   fi
  4137 done
  4138 done
  4139 IFS=$as_save_IFS
  4141 fi
  4142 fi
  4143 CC=$ac_cv_prog_CC
  4144 if test -n "$CC"; then
  4145   { echo "$as_me:$LINENO: result: $CC" >&5
  4146 echo "${ECHO_T}$CC" >&6; }
  4147 else
  4148   { echo "$as_me:$LINENO: result: no" >&5
  4149 echo "${ECHO_T}no" >&6; }
  4150 fi
  4153     test -n "$CC" && break
  4154   done
  4155 fi
  4156 if test -z "$CC"; then
  4157   ac_ct_CC=$CC
  4158   for ac_prog in cl.exe
  4159 do
  4160   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4161 set dummy $ac_prog; ac_word=$2
  4162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4165   echo $ECHO_N "(cached) $ECHO_C" >&6
  4166 else
  4167   if test -n "$ac_ct_CC"; then
  4168   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4169 else
  4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4171 for as_dir in $PATH
  4172 do
  4173   IFS=$as_save_IFS
  4174   test -z "$as_dir" && as_dir=.
  4175   for ac_exec_ext in '' $ac_executable_extensions; do
  4176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4177     ac_cv_prog_ac_ct_CC="$ac_prog"
  4178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4179     break 2
  4180   fi
  4181 done
  4182 done
  4183 IFS=$as_save_IFS
  4185 fi
  4186 fi
  4187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4188 if test -n "$ac_ct_CC"; then
  4189   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4190 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4191 else
  4192   { echo "$as_me:$LINENO: result: no" >&5
  4193 echo "${ECHO_T}no" >&6; }
  4194 fi
  4197   test -n "$ac_ct_CC" && break
  4198 done
  4200   if test "x$ac_ct_CC" = x; then
  4201     CC=""
  4202   else
  4203     case $cross_compiling:$ac_tool_warned in
  4204 yes:)
  4205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4206 whose name does not start with the host triplet.  If you think this
  4207 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4209 whose name does not start with the host triplet.  If you think this
  4210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4211 ac_tool_warned=yes ;;
  4212 esac
  4213     CC=$ac_ct_CC
  4214   fi
  4215 fi
  4217 fi
  4220 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4221 See \`config.log' for more details." >&5
  4222 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4223 See \`config.log' for more details." >&2;}
  4224    { (exit 1); exit 1; }; }
  4226 # Provide some information about the compiler.
  4227 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4228 ac_compiler=`set X $ac_compile; echo $2`
  4229 { (ac_try="$ac_compiler --version >&5"
  4230 case "(($ac_try" in
  4231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4232   *) ac_try_echo=$ac_try;;
  4233 esac
  4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4235   (eval "$ac_compiler --version >&5") 2>&5
  4236   ac_status=$?
  4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4238   (exit $ac_status); }
  4239 { (ac_try="$ac_compiler -v >&5"
  4240 case "(($ac_try" in
  4241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4242   *) ac_try_echo=$ac_try;;
  4243 esac
  4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4245   (eval "$ac_compiler -v >&5") 2>&5
  4246   ac_status=$?
  4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248   (exit $ac_status); }
  4249 { (ac_try="$ac_compiler -V >&5"
  4250 case "(($ac_try" in
  4251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4252   *) ac_try_echo=$ac_try;;
  4253 esac
  4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4255   (eval "$ac_compiler -V >&5") 2>&5
  4256   ac_status=$?
  4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4258   (exit $ac_status); }
  4260 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4261 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4262 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4263   echo $ECHO_N "(cached) $ECHO_C" >&6
  4264 else
  4265   cat >conftest.$ac_ext <<_ACEOF
  4266 /* confdefs.h.  */
  4267 _ACEOF
  4268 cat confdefs.h >>conftest.$ac_ext
  4269 cat >>conftest.$ac_ext <<_ACEOF
  4270 /* end confdefs.h.  */
  4272 int
  4273 main ()
  4275 #ifndef __GNUC__
  4276        choke me
  4277 #endif
  4280   return 0;
  4282 _ACEOF
  4283 rm -f conftest.$ac_objext
  4284 if { (ac_try="$ac_compile"
  4285 case "(($ac_try" in
  4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4287   *) ac_try_echo=$ac_try;;
  4288 esac
  4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4290   (eval "$ac_compile") 2>conftest.er1
  4291   ac_status=$?
  4292   grep -v '^ *+' conftest.er1 >conftest.err
  4293   rm -f conftest.er1
  4294   cat conftest.err >&5
  4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4296   (exit $ac_status); } && {
  4297 	 test -z "$ac_c_werror_flag" ||
  4298 	 test ! -s conftest.err
  4299        } && test -s conftest.$ac_objext; then
  4300   ac_compiler_gnu=yes
  4301 else
  4302   echo "$as_me: failed program was:" >&5
  4303 sed 's/^/| /' conftest.$ac_ext >&5
  4305 	ac_compiler_gnu=no
  4306 fi
  4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4311 fi
  4312 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4313 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4314 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4315 ac_test_CFLAGS=${CFLAGS+set}
  4316 ac_save_CFLAGS=$CFLAGS
  4317 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4318 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4319 if test "${ac_cv_prog_cc_g+set}" = set; then
  4320   echo $ECHO_N "(cached) $ECHO_C" >&6
  4321 else
  4322   ac_save_c_werror_flag=$ac_c_werror_flag
  4323    ac_c_werror_flag=yes
  4324    ac_cv_prog_cc_g=no
  4325    CFLAGS="-g"
  4326    cat >conftest.$ac_ext <<_ACEOF
  4327 /* confdefs.h.  */
  4328 _ACEOF
  4329 cat confdefs.h >>conftest.$ac_ext
  4330 cat >>conftest.$ac_ext <<_ACEOF
  4331 /* end confdefs.h.  */
  4333 int
  4334 main ()
  4338   return 0;
  4340 _ACEOF
  4341 rm -f conftest.$ac_objext
  4342 if { (ac_try="$ac_compile"
  4343 case "(($ac_try" in
  4344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4345   *) ac_try_echo=$ac_try;;
  4346 esac
  4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4348   (eval "$ac_compile") 2>conftest.er1
  4349   ac_status=$?
  4350   grep -v '^ *+' conftest.er1 >conftest.err
  4351   rm -f conftest.er1
  4352   cat conftest.err >&5
  4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4354   (exit $ac_status); } && {
  4355 	 test -z "$ac_c_werror_flag" ||
  4356 	 test ! -s conftest.err
  4357        } && test -s conftest.$ac_objext; then
  4358   ac_cv_prog_cc_g=yes
  4359 else
  4360   echo "$as_me: failed program was:" >&5
  4361 sed 's/^/| /' conftest.$ac_ext >&5
  4363 	CFLAGS=""
  4364       cat >conftest.$ac_ext <<_ACEOF
  4365 /* confdefs.h.  */
  4366 _ACEOF
  4367 cat confdefs.h >>conftest.$ac_ext
  4368 cat >>conftest.$ac_ext <<_ACEOF
  4369 /* end confdefs.h.  */
  4371 int
  4372 main ()
  4376   return 0;
  4378 _ACEOF
  4379 rm -f conftest.$ac_objext
  4380 if { (ac_try="$ac_compile"
  4381 case "(($ac_try" in
  4382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4383   *) ac_try_echo=$ac_try;;
  4384 esac
  4385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4386   (eval "$ac_compile") 2>conftest.er1
  4387   ac_status=$?
  4388   grep -v '^ *+' conftest.er1 >conftest.err
  4389   rm -f conftest.er1
  4390   cat conftest.err >&5
  4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4392   (exit $ac_status); } && {
  4393 	 test -z "$ac_c_werror_flag" ||
  4394 	 test ! -s conftest.err
  4395        } && test -s conftest.$ac_objext; then
  4397 else
  4398   echo "$as_me: failed program was:" >&5
  4399 sed 's/^/| /' conftest.$ac_ext >&5
  4401 	ac_c_werror_flag=$ac_save_c_werror_flag
  4402 	 CFLAGS="-g"
  4403 	 cat >conftest.$ac_ext <<_ACEOF
  4404 /* confdefs.h.  */
  4405 _ACEOF
  4406 cat confdefs.h >>conftest.$ac_ext
  4407 cat >>conftest.$ac_ext <<_ACEOF
  4408 /* end confdefs.h.  */
  4410 int
  4411 main ()
  4415   return 0;
  4417 _ACEOF
  4418 rm -f conftest.$ac_objext
  4419 if { (ac_try="$ac_compile"
  4420 case "(($ac_try" in
  4421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4422   *) ac_try_echo=$ac_try;;
  4423 esac
  4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4425   (eval "$ac_compile") 2>conftest.er1
  4426   ac_status=$?
  4427   grep -v '^ *+' conftest.er1 >conftest.err
  4428   rm -f conftest.er1
  4429   cat conftest.err >&5
  4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4431   (exit $ac_status); } && {
  4432 	 test -z "$ac_c_werror_flag" ||
  4433 	 test ! -s conftest.err
  4434        } && test -s conftest.$ac_objext; then
  4435   ac_cv_prog_cc_g=yes
  4436 else
  4437   echo "$as_me: failed program was:" >&5
  4438 sed 's/^/| /' conftest.$ac_ext >&5
  4441 fi
  4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4444 fi
  4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4447 fi
  4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4450    ac_c_werror_flag=$ac_save_c_werror_flag
  4451 fi
  4452 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4453 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4454 if test "$ac_test_CFLAGS" = set; then
  4455   CFLAGS=$ac_save_CFLAGS
  4456 elif test $ac_cv_prog_cc_g = yes; then
  4457   if test "$GCC" = yes; then
  4458     CFLAGS="-g -O2"
  4459   else
  4460     CFLAGS="-g"
  4461   fi
  4462 else
  4463   if test "$GCC" = yes; then
  4464     CFLAGS="-O2"
  4465   else
  4466     CFLAGS=
  4467   fi
  4468 fi
  4469 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4470 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4471 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4472   echo $ECHO_N "(cached) $ECHO_C" >&6
  4473 else
  4474   ac_cv_prog_cc_c89=no
  4475 ac_save_CC=$CC
  4476 cat >conftest.$ac_ext <<_ACEOF
  4477 /* confdefs.h.  */
  4478 _ACEOF
  4479 cat confdefs.h >>conftest.$ac_ext
  4480 cat >>conftest.$ac_ext <<_ACEOF
  4481 /* end confdefs.h.  */
  4482 #include <stdarg.h>
  4483 #include <stdio.h>
  4484 #include <sys/types.h>
  4485 #include <sys/stat.h>
  4486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4487 struct buf { int x; };
  4488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4489 static char *e (p, i)
  4490      char **p;
  4491      int i;
  4493   return p[i];
  4495 static char *f (char * (*g) (char **, int), char **p, ...)
  4497   char *s;
  4498   va_list v;
  4499   va_start (v,p);
  4500   s = g (p, va_arg (v,int));
  4501   va_end (v);
  4502   return s;
  4505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4506    function prototypes and stuff, but not '\xHH' hex character constants.
  4507    These don't provoke an error unfortunately, instead are silently treated
  4508    as 'x'.  The following induces an error, until -std is added to get
  4509    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4510    array size at least.  It's necessary to write '\x00'==0 to get something
  4511    that's true only with -std.  */
  4512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4514 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4515    inside strings and character constants.  */
  4516 #define FOO(x) 'x'
  4517 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4519 int test (int i, double x);
  4520 struct s1 {int (*f) (int a);};
  4521 struct s2 {int (*f) (double a);};
  4522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4523 int argc;
  4524 char **argv;
  4525 int
  4526 main ()
  4528 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4530   return 0;
  4532 _ACEOF
  4533 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4534 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4535 do
  4536   CC="$ac_save_CC $ac_arg"
  4537   rm -f conftest.$ac_objext
  4538 if { (ac_try="$ac_compile"
  4539 case "(($ac_try" in
  4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4541   *) ac_try_echo=$ac_try;;
  4542 esac
  4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4544   (eval "$ac_compile") 2>conftest.er1
  4545   ac_status=$?
  4546   grep -v '^ *+' conftest.er1 >conftest.err
  4547   rm -f conftest.er1
  4548   cat conftest.err >&5
  4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4550   (exit $ac_status); } && {
  4551 	 test -z "$ac_c_werror_flag" ||
  4552 	 test ! -s conftest.err
  4553        } && test -s conftest.$ac_objext; then
  4554   ac_cv_prog_cc_c89=$ac_arg
  4555 else
  4556   echo "$as_me: failed program was:" >&5
  4557 sed 's/^/| /' conftest.$ac_ext >&5
  4560 fi
  4562 rm -f core conftest.err conftest.$ac_objext
  4563   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4564 done
  4565 rm -f conftest.$ac_ext
  4566 CC=$ac_save_CC
  4568 fi
  4569 # AC_CACHE_VAL
  4570 case "x$ac_cv_prog_cc_c89" in
  4571   x)
  4572     { echo "$as_me:$LINENO: result: none needed" >&5
  4573 echo "${ECHO_T}none needed" >&6; } ;;
  4574   xno)
  4575     { echo "$as_me:$LINENO: result: unsupported" >&5
  4576 echo "${ECHO_T}unsupported" >&6; } ;;
  4577   *)
  4578     CC="$CC $ac_cv_prog_cc_c89"
  4579     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4580 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4581 esac
  4584 ac_ext=c
  4585 ac_cpp='$CPP $CPPFLAGS'
  4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4590 depcc="$CC"   am_compiler_list=
  4592 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4593 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4594 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4595   echo $ECHO_N "(cached) $ECHO_C" >&6
  4596 else
  4597   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4598   # We make a subdir and do the tests there.  Otherwise we can end up
  4599   # making bogus files that we don't know about and never remove.  For
  4600   # instance it was reported that on HP-UX the gcc test will end up
  4601   # making a dummy file named `D' -- because `-MD' means `put the output
  4602   # in D'.
  4603   mkdir conftest.dir
  4604   # Copy depcomp to subdir because otherwise we won't find it if we're
  4605   # using a relative directory.
  4606   cp "$am_depcomp" conftest.dir
  4607   cd conftest.dir
  4608   # We will build objects and dependencies in a subdirectory because
  4609   # it helps to detect inapplicable dependency modes.  For instance
  4610   # both Tru64's cc and ICC support -MD to output dependencies as a
  4611   # side effect of compilation, but ICC will put the dependencies in
  4612   # the current directory while Tru64 will put them in the object
  4613   # directory.
  4614   mkdir sub
  4616   am_cv_CC_dependencies_compiler_type=none
  4617   if test "$am_compiler_list" = ""; then
  4618      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4619   fi
  4620   for depmode in $am_compiler_list; do
  4621     # Setup a source with many dependencies, because some compilers
  4622     # like to wrap large dependency lists on column 80 (with \), and
  4623     # we should not choose a depcomp mode which is confused by this.
  4625     # We need to recreate these files for each test, as the compiler may
  4626     # overwrite some of them when testing with obscure command lines.
  4627     # This happens at least with the AIX C compiler.
  4628     : > sub/conftest.c
  4629     for i in 1 2 3 4 5 6; do
  4630       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4631       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4632       # Solaris 8's {/usr,}/bin/sh.
  4633       touch sub/conftst$i.h
  4634     done
  4635     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4637     case $depmode in
  4638     nosideeffect)
  4639       # after this tag, mechanisms are not by side-effect, so they'll
  4640       # only be used when explicitly requested
  4641       if test "x$enable_dependency_tracking" = xyes; then
  4642 	continue
  4643       else
  4644 	break
  4645       fi
  4646       ;;
  4647     none) break ;;
  4648     esac
  4649     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4650     # mode.  It turns out that the SunPro C++ compiler does not properly
  4651     # handle `-M -o', and we need to detect this.
  4652     if depmode=$depmode \
  4653        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4654        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4655        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4656          >/dev/null 2>conftest.err &&
  4657        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4658        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4659        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4660       # icc doesn't choke on unknown options, it will just issue warnings
  4661       # or remarks (even with -Werror).  So we grep stderr for any message
  4662       # that says an option was ignored or not supported.
  4663       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4664       #   icc: Command line warning: ignoring option '-M'; no argument required
  4665       # The diagnosis changed in icc 8.0:
  4666       #   icc: Command line remark: option '-MP' not supported
  4667       if (grep 'ignoring option' conftest.err ||
  4668           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4669         am_cv_CC_dependencies_compiler_type=$depmode
  4670         break
  4671       fi
  4672     fi
  4673   done
  4675   cd ..
  4676   rm -rf conftest.dir
  4677 else
  4678   am_cv_CC_dependencies_compiler_type=none
  4679 fi
  4681 fi
  4682 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4683 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4684 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4688 if
  4689   test "x$enable_dependency_tracking" != xno \
  4690   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4691   am__fastdepCC_TRUE=
  4692   am__fastdepCC_FALSE='#'
  4693 else
  4694   am__fastdepCC_TRUE='#'
  4695   am__fastdepCC_FALSE=
  4696 fi
  4699 ac_ext=c
  4700 ac_cpp='$CPP $CPPFLAGS'
  4701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4704 if test -n "$ac_tool_prefix"; then
  4705   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4706 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4709 if test "${ac_cv_prog_CC+set}" = set; then
  4710   echo $ECHO_N "(cached) $ECHO_C" >&6
  4711 else
  4712   if test -n "$CC"; then
  4713   ac_cv_prog_CC="$CC" # Let the user override the test.
  4714 else
  4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4716 for as_dir in $PATH
  4717 do
  4718   IFS=$as_save_IFS
  4719   test -z "$as_dir" && as_dir=.
  4720   for ac_exec_ext in '' $ac_executable_extensions; do
  4721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4722     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4724     break 2
  4725   fi
  4726 done
  4727 done
  4728 IFS=$as_save_IFS
  4730 fi
  4731 fi
  4732 CC=$ac_cv_prog_CC
  4733 if test -n "$CC"; then
  4734   { echo "$as_me:$LINENO: result: $CC" >&5
  4735 echo "${ECHO_T}$CC" >&6; }
  4736 else
  4737   { echo "$as_me:$LINENO: result: no" >&5
  4738 echo "${ECHO_T}no" >&6; }
  4739 fi
  4742 fi
  4743 if test -z "$ac_cv_prog_CC"; then
  4744   ac_ct_CC=$CC
  4745   # Extract the first word of "gcc", so it can be a program name with args.
  4746 set dummy gcc; ac_word=$2
  4747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4749 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4750   echo $ECHO_N "(cached) $ECHO_C" >&6
  4751 else
  4752   if test -n "$ac_ct_CC"; then
  4753   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4754 else
  4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4756 for as_dir in $PATH
  4757 do
  4758   IFS=$as_save_IFS
  4759   test -z "$as_dir" && as_dir=.
  4760   for ac_exec_ext in '' $ac_executable_extensions; do
  4761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4762     ac_cv_prog_ac_ct_CC="gcc"
  4763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4764     break 2
  4765   fi
  4766 done
  4767 done
  4768 IFS=$as_save_IFS
  4770 fi
  4771 fi
  4772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4773 if test -n "$ac_ct_CC"; then
  4774   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4775 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4776 else
  4777   { echo "$as_me:$LINENO: result: no" >&5
  4778 echo "${ECHO_T}no" >&6; }
  4779 fi
  4781   if test "x$ac_ct_CC" = x; then
  4782     CC=""
  4783   else
  4784     case $cross_compiling:$ac_tool_warned in
  4785 yes:)
  4786 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4787 whose name does not start with the host triplet.  If you think this
  4788 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4789 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4790 whose name does not start with the host triplet.  If you think this
  4791 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4792 ac_tool_warned=yes ;;
  4793 esac
  4794     CC=$ac_ct_CC
  4795   fi
  4796 else
  4797   CC="$ac_cv_prog_CC"
  4798 fi
  4800 if test -z "$CC"; then
  4801           if test -n "$ac_tool_prefix"; then
  4802     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4803 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4806 if test "${ac_cv_prog_CC+set}" = set; then
  4807   echo $ECHO_N "(cached) $ECHO_C" >&6
  4808 else
  4809   if test -n "$CC"; then
  4810   ac_cv_prog_CC="$CC" # Let the user override the test.
  4811 else
  4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4813 for as_dir in $PATH
  4814 do
  4815   IFS=$as_save_IFS
  4816   test -z "$as_dir" && as_dir=.
  4817   for ac_exec_ext in '' $ac_executable_extensions; do
  4818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4819     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4821     break 2
  4822   fi
  4823 done
  4824 done
  4825 IFS=$as_save_IFS
  4827 fi
  4828 fi
  4829 CC=$ac_cv_prog_CC
  4830 if test -n "$CC"; then
  4831   { echo "$as_me:$LINENO: result: $CC" >&5
  4832 echo "${ECHO_T}$CC" >&6; }
  4833 else
  4834   { echo "$as_me:$LINENO: result: no" >&5
  4835 echo "${ECHO_T}no" >&6; }
  4836 fi
  4839   fi
  4840 fi
  4841 if test -z "$CC"; then
  4842   # Extract the first word of "cc", so it can be a program name with args.
  4843 set dummy cc; ac_word=$2
  4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4846 if test "${ac_cv_prog_CC+set}" = set; then
  4847   echo $ECHO_N "(cached) $ECHO_C" >&6
  4848 else
  4849   if test -n "$CC"; then
  4850   ac_cv_prog_CC="$CC" # Let the user override the test.
  4851 else
  4852   ac_prog_rejected=no
  4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854 for as_dir in $PATH
  4855 do
  4856   IFS=$as_save_IFS
  4857   test -z "$as_dir" && as_dir=.
  4858   for ac_exec_ext in '' $ac_executable_extensions; do
  4859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4860     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4861        ac_prog_rejected=yes
  4862        continue
  4863      fi
  4864     ac_cv_prog_CC="cc"
  4865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4866     break 2
  4867   fi
  4868 done
  4869 done
  4870 IFS=$as_save_IFS
  4872 if test $ac_prog_rejected = yes; then
  4873   # We found a bogon in the path, so make sure we never use it.
  4874   set dummy $ac_cv_prog_CC
  4875   shift
  4876   if test $# != 0; then
  4877     # We chose a different compiler from the bogus one.
  4878     # However, it has the same basename, so the bogon will be chosen
  4879     # first if we set CC to just the basename; use the full file name.
  4880     shift
  4881     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4882   fi
  4883 fi
  4884 fi
  4885 fi
  4886 CC=$ac_cv_prog_CC
  4887 if test -n "$CC"; then
  4888   { echo "$as_me:$LINENO: result: $CC" >&5
  4889 echo "${ECHO_T}$CC" >&6; }
  4890 else
  4891   { echo "$as_me:$LINENO: result: no" >&5
  4892 echo "${ECHO_T}no" >&6; }
  4893 fi
  4896 fi
  4897 if test -z "$CC"; then
  4898   if test -n "$ac_tool_prefix"; then
  4899   for ac_prog in cl.exe
  4900   do
  4901     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4905 if test "${ac_cv_prog_CC+set}" = set; then
  4906   echo $ECHO_N "(cached) $ECHO_C" >&6
  4907 else
  4908   if test -n "$CC"; then
  4909   ac_cv_prog_CC="$CC" # Let the user override the test.
  4910 else
  4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4912 for as_dir in $PATH
  4913 do
  4914   IFS=$as_save_IFS
  4915   test -z "$as_dir" && as_dir=.
  4916   for ac_exec_ext in '' $ac_executable_extensions; do
  4917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4918     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4920     break 2
  4921   fi
  4922 done
  4923 done
  4924 IFS=$as_save_IFS
  4926 fi
  4927 fi
  4928 CC=$ac_cv_prog_CC
  4929 if test -n "$CC"; then
  4930   { echo "$as_me:$LINENO: result: $CC" >&5
  4931 echo "${ECHO_T}$CC" >&6; }
  4932 else
  4933   { echo "$as_me:$LINENO: result: no" >&5
  4934 echo "${ECHO_T}no" >&6; }
  4935 fi
  4938     test -n "$CC" && break
  4939   done
  4940 fi
  4941 if test -z "$CC"; then
  4942   ac_ct_CC=$CC
  4943   for ac_prog in cl.exe
  4944 do
  4945   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4946 set dummy $ac_prog; ac_word=$2
  4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4950   echo $ECHO_N "(cached) $ECHO_C" >&6
  4951 else
  4952   if test -n "$ac_ct_CC"; then
  4953   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4954 else
  4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4956 for as_dir in $PATH
  4957 do
  4958   IFS=$as_save_IFS
  4959   test -z "$as_dir" && as_dir=.
  4960   for ac_exec_ext in '' $ac_executable_extensions; do
  4961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4962     ac_cv_prog_ac_ct_CC="$ac_prog"
  4963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4964     break 2
  4965   fi
  4966 done
  4967 done
  4968 IFS=$as_save_IFS
  4970 fi
  4971 fi
  4972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4973 if test -n "$ac_ct_CC"; then
  4974   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4975 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4976 else
  4977   { echo "$as_me:$LINENO: result: no" >&5
  4978 echo "${ECHO_T}no" >&6; }
  4979 fi
  4982   test -n "$ac_ct_CC" && break
  4983 done
  4985   if test "x$ac_ct_CC" = x; then
  4986     CC=""
  4987   else
  4988     case $cross_compiling:$ac_tool_warned in
  4989 yes:)
  4990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4991 whose name does not start with the host triplet.  If you think this
  4992 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4994 whose name does not start with the host triplet.  If you think this
  4995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4996 ac_tool_warned=yes ;;
  4997 esac
  4998     CC=$ac_ct_CC
  4999   fi
  5000 fi
  5002 fi
  5005 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5006 See \`config.log' for more details." >&5
  5007 echo "$as_me: error: no acceptable C compiler found in \$PATH
  5008 See \`config.log' for more details." >&2;}
  5009    { (exit 1); exit 1; }; }
  5011 # Provide some information about the compiler.
  5012 echo "$as_me:$LINENO: checking for C compiler version" >&5
  5013 ac_compiler=`set X $ac_compile; echo $2`
  5014 { (ac_try="$ac_compiler --version >&5"
  5015 case "(($ac_try" in
  5016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5017   *) ac_try_echo=$ac_try;;
  5018 esac
  5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5020   (eval "$ac_compiler --version >&5") 2>&5
  5021   ac_status=$?
  5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5023   (exit $ac_status); }
  5024 { (ac_try="$ac_compiler -v >&5"
  5025 case "(($ac_try" in
  5026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5027   *) ac_try_echo=$ac_try;;
  5028 esac
  5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5030   (eval "$ac_compiler -v >&5") 2>&5
  5031   ac_status=$?
  5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5033   (exit $ac_status); }
  5034 { (ac_try="$ac_compiler -V >&5"
  5035 case "(($ac_try" in
  5036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5037   *) ac_try_echo=$ac_try;;
  5038 esac
  5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5040   (eval "$ac_compiler -V >&5") 2>&5
  5041   ac_status=$?
  5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5043   (exit $ac_status); }
  5045 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5046 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  5047 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5048   echo $ECHO_N "(cached) $ECHO_C" >&6
  5049 else
  5050   cat >conftest.$ac_ext <<_ACEOF
  5051 /* confdefs.h.  */
  5052 _ACEOF
  5053 cat confdefs.h >>conftest.$ac_ext
  5054 cat >>conftest.$ac_ext <<_ACEOF
  5055 /* end confdefs.h.  */
  5057 int
  5058 main ()
  5060 #ifndef __GNUC__
  5061        choke me
  5062 #endif
  5065   return 0;
  5067 _ACEOF
  5068 rm -f conftest.$ac_objext
  5069 if { (ac_try="$ac_compile"
  5070 case "(($ac_try" in
  5071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5072   *) ac_try_echo=$ac_try;;
  5073 esac
  5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5075   (eval "$ac_compile") 2>conftest.er1
  5076   ac_status=$?
  5077   grep -v '^ *+' conftest.er1 >conftest.err
  5078   rm -f conftest.er1
  5079   cat conftest.err >&5
  5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5081   (exit $ac_status); } && {
  5082 	 test -z "$ac_c_werror_flag" ||
  5083 	 test ! -s conftest.err
  5084        } && test -s conftest.$ac_objext; then
  5085   ac_compiler_gnu=yes
  5086 else
  5087   echo "$as_me: failed program was:" >&5
  5088 sed 's/^/| /' conftest.$ac_ext >&5
  5090 	ac_compiler_gnu=no
  5091 fi
  5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5096 fi
  5097 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  5099 GCC=`test $ac_compiler_gnu = yes && echo yes`
  5100 ac_test_CFLAGS=${CFLAGS+set}
  5101 ac_save_CFLAGS=$CFLAGS
  5102 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5103 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  5104 if test "${ac_cv_prog_cc_g+set}" = set; then
  5105   echo $ECHO_N "(cached) $ECHO_C" >&6
  5106 else
  5107   ac_save_c_werror_flag=$ac_c_werror_flag
  5108    ac_c_werror_flag=yes
  5109    ac_cv_prog_cc_g=no
  5110    CFLAGS="-g"
  5111    cat >conftest.$ac_ext <<_ACEOF
  5112 /* confdefs.h.  */
  5113 _ACEOF
  5114 cat confdefs.h >>conftest.$ac_ext
  5115 cat >>conftest.$ac_ext <<_ACEOF
  5116 /* end confdefs.h.  */
  5118 int
  5119 main ()
  5123   return 0;
  5125 _ACEOF
  5126 rm -f conftest.$ac_objext
  5127 if { (ac_try="$ac_compile"
  5128 case "(($ac_try" in
  5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5130   *) ac_try_echo=$ac_try;;
  5131 esac
  5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5133   (eval "$ac_compile") 2>conftest.er1
  5134   ac_status=$?
  5135   grep -v '^ *+' conftest.er1 >conftest.err
  5136   rm -f conftest.er1
  5137   cat conftest.err >&5
  5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5139   (exit $ac_status); } && {
  5140 	 test -z "$ac_c_werror_flag" ||
  5141 	 test ! -s conftest.err
  5142        } && test -s conftest.$ac_objext; then
  5143   ac_cv_prog_cc_g=yes
  5144 else
  5145   echo "$as_me: failed program was:" >&5
  5146 sed 's/^/| /' conftest.$ac_ext >&5
  5148 	CFLAGS=""
  5149       cat >conftest.$ac_ext <<_ACEOF
  5150 /* confdefs.h.  */
  5151 _ACEOF
  5152 cat confdefs.h >>conftest.$ac_ext
  5153 cat >>conftest.$ac_ext <<_ACEOF
  5154 /* end confdefs.h.  */
  5156 int
  5157 main ()
  5161   return 0;
  5163 _ACEOF
  5164 rm -f conftest.$ac_objext
  5165 if { (ac_try="$ac_compile"
  5166 case "(($ac_try" in
  5167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5168   *) ac_try_echo=$ac_try;;
  5169 esac
  5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5171   (eval "$ac_compile") 2>conftest.er1
  5172   ac_status=$?
  5173   grep -v '^ *+' conftest.er1 >conftest.err
  5174   rm -f conftest.er1
  5175   cat conftest.err >&5
  5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5177   (exit $ac_status); } && {
  5178 	 test -z "$ac_c_werror_flag" ||
  5179 	 test ! -s conftest.err
  5180        } && test -s conftest.$ac_objext; then
  5182 else
  5183   echo "$as_me: failed program was:" >&5
  5184 sed 's/^/| /' conftest.$ac_ext >&5
  5186 	ac_c_werror_flag=$ac_save_c_werror_flag
  5187 	 CFLAGS="-g"
  5188 	 cat >conftest.$ac_ext <<_ACEOF
  5189 /* confdefs.h.  */
  5190 _ACEOF
  5191 cat confdefs.h >>conftest.$ac_ext
  5192 cat >>conftest.$ac_ext <<_ACEOF
  5193 /* end confdefs.h.  */
  5195 int
  5196 main ()
  5200   return 0;
  5202 _ACEOF
  5203 rm -f conftest.$ac_objext
  5204 if { (ac_try="$ac_compile"
  5205 case "(($ac_try" in
  5206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5207   *) ac_try_echo=$ac_try;;
  5208 esac
  5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5210   (eval "$ac_compile") 2>conftest.er1
  5211   ac_status=$?
  5212   grep -v '^ *+' conftest.er1 >conftest.err
  5213   rm -f conftest.er1
  5214   cat conftest.err >&5
  5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5216   (exit $ac_status); } && {
  5217 	 test -z "$ac_c_werror_flag" ||
  5218 	 test ! -s conftest.err
  5219        } && test -s conftest.$ac_objext; then
  5220   ac_cv_prog_cc_g=yes
  5221 else
  5222   echo "$as_me: failed program was:" >&5
  5223 sed 's/^/| /' conftest.$ac_ext >&5
  5226 fi
  5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5229 fi
  5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5232 fi
  5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5235    ac_c_werror_flag=$ac_save_c_werror_flag
  5236 fi
  5237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  5239 if test "$ac_test_CFLAGS" = set; then
  5240   CFLAGS=$ac_save_CFLAGS
  5241 elif test $ac_cv_prog_cc_g = yes; then
  5242   if test "$GCC" = yes; then
  5243     CFLAGS="-g -O2"
  5244   else
  5245     CFLAGS="-g"
  5246   fi
  5247 else
  5248   if test "$GCC" = yes; then
  5249     CFLAGS="-O2"
  5250   else
  5251     CFLAGS=
  5252   fi
  5253 fi
  5254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  5256 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5257   echo $ECHO_N "(cached) $ECHO_C" >&6
  5258 else
  5259   ac_cv_prog_cc_c89=no
  5260 ac_save_CC=$CC
  5261 cat >conftest.$ac_ext <<_ACEOF
  5262 /* confdefs.h.  */
  5263 _ACEOF
  5264 cat confdefs.h >>conftest.$ac_ext
  5265 cat >>conftest.$ac_ext <<_ACEOF
  5266 /* end confdefs.h.  */
  5267 #include <stdarg.h>
  5268 #include <stdio.h>
  5269 #include <sys/types.h>
  5270 #include <sys/stat.h>
  5271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5272 struct buf { int x; };
  5273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5274 static char *e (p, i)
  5275      char **p;
  5276      int i;
  5278   return p[i];
  5280 static char *f (char * (*g) (char **, int), char **p, ...)
  5282   char *s;
  5283   va_list v;
  5284   va_start (v,p);
  5285   s = g (p, va_arg (v,int));
  5286   va_end (v);
  5287   return s;
  5290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5291    function prototypes and stuff, but not '\xHH' hex character constants.
  5292    These don't provoke an error unfortunately, instead are silently treated
  5293    as 'x'.  The following induces an error, until -std is added to get
  5294    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5295    array size at least.  It's necessary to write '\x00'==0 to get something
  5296    that's true only with -std.  */
  5297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5300    inside strings and character constants.  */
  5301 #define FOO(x) 'x'
  5302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5304 int test (int i, double x);
  5305 struct s1 {int (*f) (int a);};
  5306 struct s2 {int (*f) (double a);};
  5307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5308 int argc;
  5309 char **argv;
  5310 int
  5311 main ()
  5313 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5315   return 0;
  5317 _ACEOF
  5318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5319 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5320 do
  5321   CC="$ac_save_CC $ac_arg"
  5322   rm -f conftest.$ac_objext
  5323 if { (ac_try="$ac_compile"
  5324 case "(($ac_try" in
  5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5326   *) ac_try_echo=$ac_try;;
  5327 esac
  5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5329   (eval "$ac_compile") 2>conftest.er1
  5330   ac_status=$?
  5331   grep -v '^ *+' conftest.er1 >conftest.err
  5332   rm -f conftest.er1
  5333   cat conftest.err >&5
  5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5335   (exit $ac_status); } && {
  5336 	 test -z "$ac_c_werror_flag" ||
  5337 	 test ! -s conftest.err
  5338        } && test -s conftest.$ac_objext; then
  5339   ac_cv_prog_cc_c89=$ac_arg
  5340 else
  5341   echo "$as_me: failed program was:" >&5
  5342 sed 's/^/| /' conftest.$ac_ext >&5
  5345 fi
  5347 rm -f core conftest.err conftest.$ac_objext
  5348   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5349 done
  5350 rm -f conftest.$ac_ext
  5351 CC=$ac_save_CC
  5353 fi
  5354 # AC_CACHE_VAL
  5355 case "x$ac_cv_prog_cc_c89" in
  5356   x)
  5357     { echo "$as_me:$LINENO: result: none needed" >&5
  5358 echo "${ECHO_T}none needed" >&6; } ;;
  5359   xno)
  5360     { echo "$as_me:$LINENO: result: unsupported" >&5
  5361 echo "${ECHO_T}unsupported" >&6; } ;;
  5362   *)
  5363     CC="$CC $ac_cv_prog_cc_c89"
  5364     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5365 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  5366 esac
  5369 ac_ext=c
  5370 ac_cpp='$CPP $CPPFLAGS'
  5371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5375 depcc="$CC"   am_compiler_list=
  5377 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5378 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5379 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5380   echo $ECHO_N "(cached) $ECHO_C" >&6
  5381 else
  5382   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5383   # We make a subdir and do the tests there.  Otherwise we can end up
  5384   # making bogus files that we don't know about and never remove.  For
  5385   # instance it was reported that on HP-UX the gcc test will end up
  5386   # making a dummy file named `D' -- because `-MD' means `put the output
  5387   # in D'.
  5388   mkdir conftest.dir
  5389   # Copy depcomp to subdir because otherwise we won't find it if we're
  5390   # using a relative directory.
  5391   cp "$am_depcomp" conftest.dir
  5392   cd conftest.dir
  5393   # We will build objects and dependencies in a subdirectory because
  5394   # it helps to detect inapplicable dependency modes.  For instance
  5395   # both Tru64's cc and ICC support -MD to output dependencies as a
  5396   # side effect of compilation, but ICC will put the dependencies in
  5397   # the current directory while Tru64 will put them in the object
  5398   # directory.
  5399   mkdir sub
  5401   am_cv_CC_dependencies_compiler_type=none
  5402   if test "$am_compiler_list" = ""; then
  5403      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5404   fi
  5405   for depmode in $am_compiler_list; do
  5406     # Setup a source with many dependencies, because some compilers
  5407     # like to wrap large dependency lists on column 80 (with \), and
  5408     # we should not choose a depcomp mode which is confused by this.
  5410     # We need to recreate these files for each test, as the compiler may
  5411     # overwrite some of them when testing with obscure command lines.
  5412     # This happens at least with the AIX C compiler.
  5413     : > sub/conftest.c
  5414     for i in 1 2 3 4 5 6; do
  5415       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5416       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5417       # Solaris 8's {/usr,}/bin/sh.
  5418       touch sub/conftst$i.h
  5419     done
  5420     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5422     case $depmode in
  5423     nosideeffect)
  5424       # after this tag, mechanisms are not by side-effect, so they'll
  5425       # only be used when explicitly requested
  5426       if test "x$enable_dependency_tracking" = xyes; then
  5427 	continue
  5428       else
  5429 	break
  5430       fi
  5431       ;;
  5432     none) break ;;
  5433     esac
  5434     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5435     # mode.  It turns out that the SunPro C++ compiler does not properly
  5436     # handle `-M -o', and we need to detect this.
  5437     if depmode=$depmode \
  5438        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5439        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5440        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5441          >/dev/null 2>conftest.err &&
  5442        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5443        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5444        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5445       # icc doesn't choke on unknown options, it will just issue warnings
  5446       # or remarks (even with -Werror).  So we grep stderr for any message
  5447       # that says an option was ignored or not supported.
  5448       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5449       #   icc: Command line warning: ignoring option '-M'; no argument required
  5450       # The diagnosis changed in icc 8.0:
  5451       #   icc: Command line remark: option '-MP' not supported
  5452       if (grep 'ignoring option' conftest.err ||
  5453           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5454         am_cv_CC_dependencies_compiler_type=$depmode
  5455         break
  5456       fi
  5457     fi
  5458   done
  5460   cd ..
  5461   rm -rf conftest.dir
  5462 else
  5463   am_cv_CC_dependencies_compiler_type=none
  5464 fi
  5466 fi
  5467 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5468 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  5469 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5473 if
  5474   test "x$enable_dependency_tracking" != xno \
  5475   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5476   am__fastdepCC_TRUE=
  5477   am__fastdepCC_FALSE='#'
  5478 else
  5479   am__fastdepCC_TRUE='#'
  5480   am__fastdepCC_FALSE=
  5481 fi
  5485 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5487 ac_ext=c
  5488 ac_cpp='$CPP $CPPFLAGS'
  5489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5492 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5493 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5494 # On Suns, sometimes $CPP names a directory.
  5495 if test -n "$CPP" && test -d "$CPP"; then
  5496   CPP=
  5497 fi
  5498 if test -z "$CPP"; then
  5499   if test "${ac_cv_prog_CPP+set}" = set; then
  5500   echo $ECHO_N "(cached) $ECHO_C" >&6
  5501 else
  5502       # Double quotes because CPP needs to be expanded
  5503     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5504     do
  5505       ac_preproc_ok=false
  5506 for ac_c_preproc_warn_flag in '' yes
  5507 do
  5508   # Use a header file that comes with gcc, so configuring glibc
  5509   # with a fresh cross-compiler works.
  5510   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5511   # <limits.h> exists even on freestanding compilers.
  5512   # On the NeXT, cc -E runs the code through the compiler's parser,
  5513   # not just through cpp. "Syntax error" is here to catch this case.
  5514   cat >conftest.$ac_ext <<_ACEOF
  5515 /* confdefs.h.  */
  5516 _ACEOF
  5517 cat confdefs.h >>conftest.$ac_ext
  5518 cat >>conftest.$ac_ext <<_ACEOF
  5519 /* end confdefs.h.  */
  5520 #ifdef __STDC__
  5521 # include <limits.h>
  5522 #else
  5523 # include <assert.h>
  5524 #endif
  5525 		     Syntax error
  5526 _ACEOF
  5527 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5528 case "(($ac_try" in
  5529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5530   *) ac_try_echo=$ac_try;;
  5531 esac
  5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5534   ac_status=$?
  5535   grep -v '^ *+' conftest.er1 >conftest.err
  5536   rm -f conftest.er1
  5537   cat conftest.err >&5
  5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5539   (exit $ac_status); } >/dev/null && {
  5540 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5541 	 test ! -s conftest.err
  5542        }; then
  5544 else
  5545   echo "$as_me: failed program was:" >&5
  5546 sed 's/^/| /' conftest.$ac_ext >&5
  5548   # Broken: fails on valid input.
  5549 continue
  5550 fi
  5552 rm -f conftest.err conftest.$ac_ext
  5554   # OK, works on sane cases.  Now check whether nonexistent headers
  5555   # can be detected and how.
  5556   cat >conftest.$ac_ext <<_ACEOF
  5557 /* confdefs.h.  */
  5558 _ACEOF
  5559 cat confdefs.h >>conftest.$ac_ext
  5560 cat >>conftest.$ac_ext <<_ACEOF
  5561 /* end confdefs.h.  */
  5562 #include <ac_nonexistent.h>
  5563 _ACEOF
  5564 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5565 case "(($ac_try" in
  5566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5567   *) ac_try_echo=$ac_try;;
  5568 esac
  5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5571   ac_status=$?
  5572   grep -v '^ *+' conftest.er1 >conftest.err
  5573   rm -f conftest.er1
  5574   cat conftest.err >&5
  5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5576   (exit $ac_status); } >/dev/null && {
  5577 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5578 	 test ! -s conftest.err
  5579        }; then
  5580   # Broken: success on invalid input.
  5581 continue
  5582 else
  5583   echo "$as_me: failed program was:" >&5
  5584 sed 's/^/| /' conftest.$ac_ext >&5
  5586   # Passes both tests.
  5587 ac_preproc_ok=:
  5588 break
  5589 fi
  5591 rm -f conftest.err conftest.$ac_ext
  5593 done
  5594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5595 rm -f conftest.err conftest.$ac_ext
  5596 if $ac_preproc_ok; then
  5597   break
  5598 fi
  5600     done
  5601     ac_cv_prog_CPP=$CPP
  5603 fi
  5604   CPP=$ac_cv_prog_CPP
  5605 else
  5606   ac_cv_prog_CPP=$CPP
  5607 fi
  5608 { echo "$as_me:$LINENO: result: $CPP" >&5
  5609 echo "${ECHO_T}$CPP" >&6; }
  5610 ac_preproc_ok=false
  5611 for ac_c_preproc_warn_flag in '' yes
  5612 do
  5613   # Use a header file that comes with gcc, so configuring glibc
  5614   # with a fresh cross-compiler works.
  5615   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5616   # <limits.h> exists even on freestanding compilers.
  5617   # On the NeXT, cc -E runs the code through the compiler's parser,
  5618   # not just through cpp. "Syntax error" is here to catch this case.
  5619   cat >conftest.$ac_ext <<_ACEOF
  5620 /* confdefs.h.  */
  5621 _ACEOF
  5622 cat confdefs.h >>conftest.$ac_ext
  5623 cat >>conftest.$ac_ext <<_ACEOF
  5624 /* end confdefs.h.  */
  5625 #ifdef __STDC__
  5626 # include <limits.h>
  5627 #else
  5628 # include <assert.h>
  5629 #endif
  5630 		     Syntax error
  5631 _ACEOF
  5632 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5633 case "(($ac_try" in
  5634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5635   *) ac_try_echo=$ac_try;;
  5636 esac
  5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5639   ac_status=$?
  5640   grep -v '^ *+' conftest.er1 >conftest.err
  5641   rm -f conftest.er1
  5642   cat conftest.err >&5
  5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5644   (exit $ac_status); } >/dev/null && {
  5645 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5646 	 test ! -s conftest.err
  5647        }; then
  5649 else
  5650   echo "$as_me: failed program was:" >&5
  5651 sed 's/^/| /' conftest.$ac_ext >&5
  5653   # Broken: fails on valid input.
  5654 continue
  5655 fi
  5657 rm -f conftest.err conftest.$ac_ext
  5659   # OK, works on sane cases.  Now check whether nonexistent headers
  5660   # can be detected and how.
  5661   cat >conftest.$ac_ext <<_ACEOF
  5662 /* confdefs.h.  */
  5663 _ACEOF
  5664 cat confdefs.h >>conftest.$ac_ext
  5665 cat >>conftest.$ac_ext <<_ACEOF
  5666 /* end confdefs.h.  */
  5667 #include <ac_nonexistent.h>
  5668 _ACEOF
  5669 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5670 case "(($ac_try" in
  5671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5672   *) ac_try_echo=$ac_try;;
  5673 esac
  5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5676   ac_status=$?
  5677   grep -v '^ *+' conftest.er1 >conftest.err
  5678   rm -f conftest.er1
  5679   cat conftest.err >&5
  5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5681   (exit $ac_status); } >/dev/null && {
  5682 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5683 	 test ! -s conftest.err
  5684        }; then
  5685   # Broken: success on invalid input.
  5686 continue
  5687 else
  5688   echo "$as_me: failed program was:" >&5
  5689 sed 's/^/| /' conftest.$ac_ext >&5
  5691   # Passes both tests.
  5692 ac_preproc_ok=:
  5693 break
  5694 fi
  5696 rm -f conftest.err conftest.$ac_ext
  5698 done
  5699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5700 rm -f conftest.err conftest.$ac_ext
  5701 if $ac_preproc_ok; then
  5703 else
  5704   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5705 See \`config.log' for more details." >&5
  5706 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5707 See \`config.log' for more details." >&2;}
  5708    { (exit 1); exit 1; }; }
  5709 fi
  5711 ac_ext=c
  5712 ac_cpp='$CPP $CPPFLAGS'
  5713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5718 ac_main_cc="$CC"
  5719 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
  5721 if test -z "$CC_FOR_BUILD"; then
  5722     if test "$#" = yes; then
  5723   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  5724 See \`config.log' for more details." >&5
  5725 echo "$as_me: error: cannot run test program while cross compiling
  5726 See \`config.log' for more details." >&2;}
  5727    { (exit 1); exit 1; }; }
  5728 else
  5729   cat >conftest.$ac_ext <<_ACEOF
  5730 int main(){return 0;}
  5731 _ACEOF
  5732 rm -f conftest$ac_exeext
  5733 if { (ac_try="$ac_link"
  5734 case "(($ac_try" in
  5735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5736   *) ac_try_echo=$ac_try;;
  5737 esac
  5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5739   (eval "$ac_link") 2>&5
  5740   ac_status=$?
  5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5743   { (case "(($ac_try" in
  5744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5745   *) ac_try_echo=$ac_try;;
  5746 esac
  5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5748   (eval "$ac_try") 2>&5
  5749   ac_status=$?
  5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5751   (exit $ac_status); }; }; then
  5752   CC_FOR_BUILD="$CC"
  5753 else
  5754   echo "$as_me: program exited with status $ac_status" >&5
  5755 echo "$as_me: failed program was:" >&5
  5756 sed 's/^/| /' conftest.$ac_ext >&5
  5758 fi
  5759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5760 fi
  5763 fi
  5766 ac_ext=c
  5767 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  5768 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  5769 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5770 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  5771 if test -n "$ac_build_tool_prefix"; then
  5772   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5773 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
  5774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5776 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5777   echo $ECHO_N "(cached) $ECHO_C" >&6
  5778 else
  5779   if test -n "$CC_FOR_BUILD"; then
  5780   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5781 else
  5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5783 for as_dir in $PATH
  5784 do
  5785   IFS=$as_save_IFS
  5786   test -z "$as_dir" && as_dir=.
  5787   for ac_exec_ext in '' $ac_executable_extensions; do
  5788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5789     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
  5790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5791     break 2
  5792   fi
  5793 done
  5794 done
  5795 IFS=$as_save_IFS
  5797 fi
  5798 fi
  5799 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5800 if test -n "$CC_FOR_BUILD"; then
  5801   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5802 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5803 else
  5804   { echo "$as_me:$LINENO: result: no" >&5
  5805 echo "${ECHO_T}no" >&6; }
  5806 fi
  5809 fi
  5810 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
  5811   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  5812   # Extract the first word of "gcc", so it can be a program name with args.
  5813 set dummy gcc; ac_word=$2
  5814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5816 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  5817   echo $ECHO_N "(cached) $ECHO_C" >&6
  5818 else
  5819   if test -n "$ac_ct_CC_FOR_BUILD"; then
  5820   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  5821 else
  5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5823 for as_dir in $PATH
  5824 do
  5825   IFS=$as_save_IFS
  5826   test -z "$as_dir" && as_dir=.
  5827   for ac_exec_ext in '' $ac_executable_extensions; do
  5828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5829     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
  5830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5831     break 2
  5832   fi
  5833 done
  5834 done
  5835 IFS=$as_save_IFS
  5837 fi
  5838 fi
  5839 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  5840 if test -n "$ac_ct_CC_FOR_BUILD"; then
  5841   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  5842 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  5843 else
  5844   { echo "$as_me:$LINENO: result: no" >&5
  5845 echo "${ECHO_T}no" >&6; }
  5846 fi
  5848   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  5849     CC_FOR_BUILD=""
  5850   else
  5851     case $#:$ac_tool_warned in
  5852 yes:)
  5853 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5854 whose name does not start with the build triplet.  If you think this
  5855 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5856 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5857 whose name does not start with the build triplet.  If you think this
  5858 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5859 ac_tool_warned=yes ;;
  5860 esac
  5861     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  5862   fi
  5863 else
  5864   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
  5865 fi
  5867 if test -z "$CC_FOR_BUILD"; then
  5868           if test -n "$ac_build_tool_prefix"; then
  5869     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5870 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
  5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5873 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5874   echo $ECHO_N "(cached) $ECHO_C" >&6
  5875 else
  5876   if test -n "$CC_FOR_BUILD"; then
  5877   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5878 else
  5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5880 for as_dir in $PATH
  5881 do
  5882   IFS=$as_save_IFS
  5883   test -z "$as_dir" && as_dir=.
  5884   for ac_exec_ext in '' $ac_executable_extensions; do
  5885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5886     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
  5887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5888     break 2
  5889   fi
  5890 done
  5891 done
  5892 IFS=$as_save_IFS
  5894 fi
  5895 fi
  5896 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5897 if test -n "$CC_FOR_BUILD"; then
  5898   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5899 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5900 else
  5901   { echo "$as_me:$LINENO: result: no" >&5
  5902 echo "${ECHO_T}no" >&6; }
  5903 fi
  5906   fi
  5907 fi
  5908 if test -z "$CC_FOR_BUILD"; then
  5909   # Extract the first word of "cc", so it can be a program name with args.
  5910 set dummy cc; ac_word=$2
  5911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5913 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5914   echo $ECHO_N "(cached) $ECHO_C" >&6
  5915 else
  5916   if test -n "$CC_FOR_BUILD"; then
  5917   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5918 else
  5919   ac_prog_rejected=no
  5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5921 for as_dir in $PATH
  5922 do
  5923   IFS=$as_save_IFS
  5924   test -z "$as_dir" && as_dir=.
  5925   for ac_exec_ext in '' $ac_executable_extensions; do
  5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5927     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5928        ac_prog_rejected=yes
  5929        continue
  5930      fi
  5931     ac_cv_prog_CC_FOR_BUILD="cc"
  5932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5933     break 2
  5934   fi
  5935 done
  5936 done
  5937 IFS=$as_save_IFS
  5939 if test $ac_prog_rejected = yes; then
  5940   # We found a bogon in the path, so make sure we never use it.
  5941   set dummy $ac_cv_prog_CC_FOR_BUILD
  5942   shift
  5943   if test $# != 0; then
  5944     # We chose a different compiler from the bogus one.
  5945     # However, it has the same basename, so the bogon will be chosen
  5946     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
  5947     shift
  5948     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
  5949   fi
  5950 fi
  5951 fi
  5952 fi
  5953 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5954 if test -n "$CC_FOR_BUILD"; then
  5955   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5956 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5957 else
  5958   { echo "$as_me:$LINENO: result: no" >&5
  5959 echo "${ECHO_T}no" >&6; }
  5960 fi
  5963 fi
  5964 if test -z "$CC_FOR_BUILD"; then
  5965   if test -n "$ac_build_tool_prefix"; then
  5966   for ac_prog in cl.exe
  5967   do
  5968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5969 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
  5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5972 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5973   echo $ECHO_N "(cached) $ECHO_C" >&6
  5974 else
  5975   if test -n "$CC_FOR_BUILD"; then
  5976   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5977 else
  5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5979 for as_dir in $PATH
  5980 do
  5981   IFS=$as_save_IFS
  5982   test -z "$as_dir" && as_dir=.
  5983   for ac_exec_ext in '' $ac_executable_extensions; do
  5984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5985     ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
  5986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5987     break 2
  5988   fi
  5989 done
  5990 done
  5991 IFS=$as_save_IFS
  5993 fi
  5994 fi
  5995 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5996 if test -n "$CC_FOR_BUILD"; then
  5997   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5998 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5999 else
  6000   { echo "$as_me:$LINENO: result: no" >&5
  6001 echo "${ECHO_T}no" >&6; }
  6002 fi
  6005     test -n "$CC_FOR_BUILD" && break
  6006   done
  6007 fi
  6008 if test -z "$CC_FOR_BUILD"; then
  6009   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  6010   for ac_prog in cl.exe
  6011 do
  6012   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6013 set dummy $ac_prog; ac_word=$2
  6014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6016 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  6017   echo $ECHO_N "(cached) $ECHO_C" >&6
  6018 else
  6019   if test -n "$ac_ct_CC_FOR_BUILD"; then
  6020   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  6021 else
  6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6023 for as_dir in $PATH
  6024 do
  6025   IFS=$as_save_IFS
  6026   test -z "$as_dir" && as_dir=.
  6027   for ac_exec_ext in '' $ac_executable_extensions; do
  6028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6029     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
  6030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6031     break 2
  6032   fi
  6033 done
  6034 done
  6035 IFS=$as_save_IFS
  6037 fi
  6038 fi
  6039 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  6040 if test -n "$ac_ct_CC_FOR_BUILD"; then
  6041   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  6042 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  6043 else
  6044   { echo "$as_me:$LINENO: result: no" >&5
  6045 echo "${ECHO_T}no" >&6; }
  6046 fi
  6049   test -n "$ac_ct_CC_FOR_BUILD" && break
  6050 done
  6052   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  6053     CC_FOR_BUILD=""
  6054   else
  6055     case $#:$ac_tool_warned in
  6056 yes:)
  6057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6058 whose name does not start with the build triplet.  If you think this
  6059 configuration is useful to you, please write to autoconf@gnu.org." >&5
  6060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6061 whose name does not start with the build triplet.  If you think this
  6062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6063 ac_tool_warned=yes ;;
  6064 esac
  6065     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  6066   fi
  6067 fi
  6069 fi
  6072 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  6073 See \`config.log' for more details." >&5
  6074 echo "$as_me: error: no acceptable C compiler found in \$PATH
  6075 See \`config.log' for more details." >&2;}
  6076    { (exit 1); exit 1; }; }
  6078 # Provide some information about the compiler.
  6079 echo "$as_me:$LINENO: checking for C compiler version" >&5
  6080 ac_compiler=`set X $ac_build_compile; echo $2`
  6081 { (ac_try="$ac_compiler --version >&5"
  6082 case "(($ac_try" in
  6083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6084   *) ac_try_echo=$ac_try;;
  6085 esac
  6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6087   (eval "$ac_compiler --version >&5") 2>&5
  6088   ac_status=$?
  6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6090   (exit $ac_status); }
  6091 { (ac_try="$ac_compiler -v >&5"
  6092 case "(($ac_try" in
  6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6094   *) ac_try_echo=$ac_try;;
  6095 esac
  6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6097   (eval "$ac_compiler -v >&5") 2>&5
  6098   ac_status=$?
  6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6100   (exit $ac_status); }
  6101 { (ac_try="$ac_compiler -V >&5"
  6102 case "(($ac_try" in
  6103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6104   *) ac_try_echo=$ac_try;;
  6105 esac
  6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6107   (eval "$ac_compiler -V >&5") 2>&5
  6108   ac_status=$?
  6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6110   (exit $ac_status); }
  6112 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  6113 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  6114 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  6115   echo $ECHO_N "(cached) $ECHO_C" >&6
  6116 else
  6117   cat >conftest.$ac_ext <<_ACEOF
  6118 /* confdefs.h.  */
  6119 _ACEOF
  6120 cat confdefs.h >>conftest.$ac_ext
  6121 cat >>conftest.$ac_ext <<_ACEOF
  6122 /* end confdefs.h.  */
  6124 int
  6125 main ()
  6127 #ifndef __GNUC__
  6128        choke me
  6129 #endif
  6132   return 0;
  6134 _ACEOF
  6135 rm -f conftest.$ac_build_objext
  6136 if { (ac_try="$ac_build_compile"
  6137 case "(($ac_try" in
  6138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6139   *) ac_try_echo=$ac_try;;
  6140 esac
  6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6142   (eval "$ac_build_compile") 2>conftest.er1
  6143   ac_status=$?
  6144   grep -v '^ *+' conftest.er1 >conftest.err
  6145   rm -f conftest.er1
  6146   cat conftest.err >&5
  6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6148   (exit $ac_status); } && {
  6149 	 test -z "$ac_c_werror_flag" ||
  6150 	 test ! -s conftest.err
  6151        } && test -s conftest.$ac_build_objext; then
  6152   ac_build_compiler_gnu=yes
  6153 else
  6154   echo "$as_me: failed program was:" >&5
  6155 sed 's/^/| /' conftest.$ac_ext >&5
  6157 	ac_build_compiler_gnu=no
  6158 fi
  6160 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6161 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
  6163 fi
  6164 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  6165 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  6166 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
  6167 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
  6168 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
  6169 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
  6170 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
  6171 if test "${ac_cv_build_prog_cc_g+set}" = set; then
  6172   echo $ECHO_N "(cached) $ECHO_C" >&6
  6173 else
  6174   ac_save_c_werror_flag=$ac_c_werror_flag
  6175    ac_c_werror_flag=yes
  6176    ac_cv_build_prog_cc_g=no
  6177    CFLAGS_FOR_BUILD="-g"
  6178    cat >conftest.$ac_ext <<_ACEOF
  6179 /* confdefs.h.  */
  6180 _ACEOF
  6181 cat confdefs.h >>conftest.$ac_ext
  6182 cat >>conftest.$ac_ext <<_ACEOF
  6183 /* end confdefs.h.  */
  6185 int
  6186 main ()
  6190   return 0;
  6192 _ACEOF
  6193 rm -f conftest.$ac_build_objext
  6194 if { (ac_try="$ac_build_compile"
  6195 case "(($ac_try" in
  6196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6197   *) ac_try_echo=$ac_try;;
  6198 esac
  6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6200   (eval "$ac_build_compile") 2>conftest.er1
  6201   ac_status=$?
  6202   grep -v '^ *+' conftest.er1 >conftest.err
  6203   rm -f conftest.er1
  6204   cat conftest.err >&5
  6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6206   (exit $ac_status); } && {
  6207 	 test -z "$ac_c_werror_flag" ||
  6208 	 test ! -s conftest.err
  6209        } && test -s conftest.$ac_build_objext; then
  6210   ac_cv_build_prog_cc_g=yes
  6211 else
  6212   echo "$as_me: failed program was:" >&5
  6213 sed 's/^/| /' conftest.$ac_ext >&5
  6215 	CFLAGS_FOR_BUILD=""
  6216       cat >conftest.$ac_ext <<_ACEOF
  6217 /* confdefs.h.  */
  6218 _ACEOF
  6219 cat confdefs.h >>conftest.$ac_ext
  6220 cat >>conftest.$ac_ext <<_ACEOF
  6221 /* end confdefs.h.  */
  6223 int
  6224 main ()
  6228   return 0;
  6230 _ACEOF
  6231 rm -f conftest.$ac_build_objext
  6232 if { (ac_try="$ac_build_compile"
  6233 case "(($ac_try" in
  6234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6235   *) ac_try_echo=$ac_try;;
  6236 esac
  6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6238   (eval "$ac_build_compile") 2>conftest.er1
  6239   ac_status=$?
  6240   grep -v '^ *+' conftest.er1 >conftest.err
  6241   rm -f conftest.er1
  6242   cat conftest.err >&5
  6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6244   (exit $ac_status); } && {
  6245 	 test -z "$ac_c_werror_flag" ||
  6246 	 test ! -s conftest.err
  6247        } && test -s conftest.$ac_build_objext; then
  6249 else
  6250   echo "$as_me: failed program was:" >&5
  6251 sed 's/^/| /' conftest.$ac_ext >&5
  6253 	ac_c_werror_flag=$ac_save_c_werror_flag
  6254 	 CFLAGS_FOR_BUILD="-g"
  6255 	 cat >conftest.$ac_ext <<_ACEOF
  6256 /* confdefs.h.  */
  6257 _ACEOF
  6258 cat confdefs.h >>conftest.$ac_ext
  6259 cat >>conftest.$ac_ext <<_ACEOF
  6260 /* end confdefs.h.  */
  6262 int
  6263 main ()
  6267   return 0;
  6269 _ACEOF
  6270 rm -f conftest.$ac_build_objext
  6271 if { (ac_try="$ac_build_compile"
  6272 case "(($ac_try" in
  6273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6274   *) ac_try_echo=$ac_try;;
  6275 esac
  6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6277   (eval "$ac_build_compile") 2>conftest.er1
  6278   ac_status=$?
  6279   grep -v '^ *+' conftest.er1 >conftest.err
  6280   rm -f conftest.er1
  6281   cat conftest.err >&5
  6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6283   (exit $ac_status); } && {
  6284 	 test -z "$ac_c_werror_flag" ||
  6285 	 test ! -s conftest.err
  6286        } && test -s conftest.$ac_build_objext; then
  6287   ac_cv_build_prog_cc_g=yes
  6288 else
  6289   echo "$as_me: failed program was:" >&5
  6290 sed 's/^/| /' conftest.$ac_ext >&5
  6293 fi
  6295 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6296 fi
  6298 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6299 fi
  6301 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6302    ac_c_werror_flag=$ac_save_c_werror_flag
  6303 fi
  6304 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
  6305 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
  6306 if test "$ac_test_CFLAGS" = set; then
  6307   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
  6308 elif test $ac_cv_build_prog_cc_g = yes; then
  6309   if test "$GCC" = yes; then
  6310     CFLAGS_FOR_BUILD="-g -O2"
  6311   else
  6312     CFLAGS_FOR_BUILD="-g"
  6313   fi
  6314 else
  6315   if test "$GCC" = yes; then
  6316     CFLAGS_FOR_BUILD="-O2"
  6317   else
  6318     CFLAGS_FOR_BUILD=
  6319   fi
  6320 fi
  6321 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6322 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6323 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6324   echo $ECHO_N "(cached) $ECHO_C" >&6
  6325 else
  6326   ac_cv_build_prog_cc_stdc=no
  6327 ac_save_CC=$CC_FOR_BUILD
  6328 cat >conftest.$ac_ext <<_ACEOF
  6329 /* confdefs.h.  */
  6330 _ACEOF
  6331 cat confdefs.h >>conftest.$ac_ext
  6332 cat >>conftest.$ac_ext <<_ACEOF
  6333 /* end confdefs.h.  */
  6334 #include <stdarg.h>
  6335 #include <stdio.h>
  6336 #include <sys/types.h>
  6337 #include <sys/stat.h>
  6338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6339 struct buf { int x; };
  6340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6341 static char *e (p, i)
  6342      char **p;
  6343      int i;
  6345   return p[i];
  6347 static char *f (char * (*g) (char **, int), char **p, ...)
  6349   char *s;
  6350   va_list v;
  6351   va_start (v,p);
  6352   s = g (p, va_arg (v,int));
  6353   va_end (v);
  6354   return s;
  6357 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6358    function prototypes and stuff, but not '\xHH' hex character constants.
  6359    These don't provoke an error unfortunately, instead are silently treated
  6360    as 'x'.  The following induces an error, until -std is added to get
  6361    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6362    array size at least.  It's necessary to write '\x00'==0 to get something
  6363    that's true only with -std.  */
  6364 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6366 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6367    inside strings and character constants.  */
  6368 #define FOO(x) 'x'
  6369 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6371 int test (int i, double x);
  6372 struct s1 {int (*f) (int a);};
  6373 struct s2 {int (*f) (double a);};
  6374 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6375 int argc;
  6376 char **argv;
  6377 int
  6378 main ()
  6380 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6382   return 0;
  6384 _ACEOF
  6385 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6386 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6387 do
  6388   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6389   rm -f conftest.$ac_build_objext
  6390 if { (ac_try="$ac_build_compile"
  6391 case "(($ac_try" in
  6392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6393   *) ac_try_echo=$ac_try;;
  6394 esac
  6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6396   (eval "$ac_build_compile") 2>conftest.er1
  6397   ac_status=$?
  6398   grep -v '^ *+' conftest.er1 >conftest.err
  6399   rm -f conftest.er1
  6400   cat conftest.err >&5
  6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6402   (exit $ac_status); } && {
  6403 	 test -z "$ac_c_werror_flag" ||
  6404 	 test ! -s conftest.err
  6405        } && test -s conftest.$ac_build_objext; then
  6406   ac_cv_build_prog_cc_stdc=$ac_arg
  6407 else
  6408   echo "$as_me: failed program was:" >&5
  6409 sed 's/^/| /' conftest.$ac_ext >&5
  6412 fi
  6414 rm -f core conftest.err conftest.$ac_build_objext
  6415   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6416 done
  6417 rm -f conftest.$ac_ext
  6418 CC_FOR_BUILD=$ac_save_CC
  6420 fi
  6421 # AC_CACHE_VAL
  6422 case "x$ac_cv_build_prog_cc_stdc" in
  6423   x)
  6424     { echo "$as_me:$LINENO: result: none needed" >&5
  6425 echo "${ECHO_T}none needed" >&6; } ;;
  6426   xno)
  6427     { echo "$as_me:$LINENO: result: unsupported" >&5
  6428 echo "${ECHO_T}unsupported" >&6; } ;;
  6429   *)
  6430     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6431     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6432 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6433 esac
  6436 ac_ext=c
  6437 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6438 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6439 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6440 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6442 depcc="$CC_FOR_BUILD"   am_compiler_list=
  6444 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6445 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  6446 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
  6447   echo $ECHO_N "(cached) $ECHO_C" >&6
  6448 else
  6449   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6450   # We make a subdir and do the tests there.  Otherwise we can end up
  6451   # making bogus files that we don't know about and never remove.  For
  6452   # instance it was reported that on HP-UX the gcc test will end up
  6453   # making a dummy file named `D' -- because `-MD' means `put the output
  6454   # in D'.
  6455   mkdir conftest.dir
  6456   # Copy depcomp to subdir because otherwise we won't find it if we're
  6457   # using a relative directory.
  6458   cp "$am_depcomp" conftest.dir
  6459   cd conftest.dir
  6460   # We will build objects and dependencies in a subdirectory because
  6461   # it helps to detect inapplicable dependency modes.  For instance
  6462   # both Tru64's cc and ICC support -MD to output dependencies as a
  6463   # side effect of compilation, but ICC will put the dependencies in
  6464   # the current directory while Tru64 will put them in the object
  6465   # directory.
  6466   mkdir sub
  6468   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6469   if test "$am_compiler_list" = ""; then
  6470      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6471   fi
  6472   for depmode in $am_compiler_list; do
  6473     # Setup a source with many dependencies, because some compilers
  6474     # like to wrap large dependency lists on column 80 (with \), and
  6475     # we should not choose a depcomp mode which is confused by this.
  6477     # We need to recreate these files for each test, as the compiler may
  6478     # overwrite some of them when testing with obscure command lines.
  6479     # This happens at least with the AIX C compiler.
  6480     : > sub/conftest.c
  6481     for i in 1 2 3 4 5 6; do
  6482       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6483       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6484       # Solaris 8's {/usr,}/bin/sh.
  6485       touch sub/conftst$i.h
  6486     done
  6487     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6489     case $depmode in
  6490     nosideeffect)
  6491       # after this tag, mechanisms are not by side-effect, so they'll
  6492       # only be used when explicitly requested
  6493       if test "x$enable_dependency_tracking" = xyes; then
  6494 	continue
  6495       else
  6496 	break
  6497       fi
  6498       ;;
  6499     none) break ;;
  6500     esac
  6501     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6502     # mode.  It turns out that the SunPro C++ compiler does not properly
  6503     # handle `-M -o', and we need to detect this.
  6504     if depmode=$depmode \
  6505        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6506        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6507        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6508          >/dev/null 2>conftest.err &&
  6509        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6510        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6511        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6512       # icc doesn't choke on unknown options, it will just issue warnings
  6513       # or remarks (even with -Werror).  So we grep stderr for any message
  6514       # that says an option was ignored or not supported.
  6515       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6516       #   icc: Command line warning: ignoring option '-M'; no argument required
  6517       # The diagnosis changed in icc 8.0:
  6518       #   icc: Command line remark: option '-MP' not supported
  6519       if (grep 'ignoring option' conftest.err ||
  6520           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6521         am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
  6522         break
  6523       fi
  6524     fi
  6525   done
  6527   cd ..
  6528   rm -rf conftest.dir
  6529 else
  6530   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6531 fi
  6533 fi
  6534 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
  6535 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
  6536 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
  6540 if
  6541   test "x$enable_dependency_tracking" != xno \
  6542   && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
  6543   am__fastdepCC_FOR_BUILD_TRUE=
  6544   am__fastdepCC_FOR_BUILD_FALSE='#'
  6545 else
  6546   am__fastdepCC_FOR_BUILD_TRUE='#'
  6547   am__fastdepCC_FOR_BUILD_FALSE=
  6548 fi
  6551    case $ac_cv_build_prog_cc_stdc in
  6552   no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
  6553   *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
  6554 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
  6555 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6556   echo $ECHO_N "(cached) $ECHO_C" >&6
  6557 else
  6558   ac_cv_build_prog_cc_stdc=no
  6559 ac_save_CC=$CC_FOR_BUILD
  6560 cat >conftest.$ac_ext <<_ACEOF
  6561 /* confdefs.h.  */
  6562 _ACEOF
  6563 cat confdefs.h >>conftest.$ac_ext
  6564 cat >>conftest.$ac_ext <<_ACEOF
  6565 /* end confdefs.h.  */
  6566 #include <stdarg.h>
  6567 #include <stdbool.h>
  6568 #include <stdlib.h>
  6569 #include <wchar.h>
  6570 #include <stdio.h>
  6572 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
  6573 #define debug(...) fprintf (stderr, __VA_ARGS__)
  6574 #define showlist(...) puts (#__VA_ARGS__)
  6575 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  6576 static void
  6577 test_varargs_macros (void)
  6579   int x = 1234;
  6580   int y = 5678;
  6581   debug ("Flag");
  6582   debug ("X = %d\n", x);
  6583   showlist (The first, second, and third items.);
  6584   report (x>y, "x is %d but y is %d", x, y);
  6587 // Check long long types.
  6588 #define BIG64 18446744073709551615ull
  6589 #define BIG32 4294967295ul
  6590 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  6591 #if !BIG_OK
  6592   your preprocessor is broken;
  6593 #endif
  6594 #if BIG_OK
  6595 #else
  6596   your preprocessor is broken;
  6597 #endif
  6598 static long long int bignum = -9223372036854775807LL;
  6599 static unsigned long long int ubignum = BIG64;
  6601 struct incomplete_array
  6603   int datasize;
  6604   double data[];
  6605 };
  6607 struct named_init {
  6608   int number;
  6609   const wchar_t *name;
  6610   double average;
  6611 };
  6613 typedef const char *ccp;
  6615 static inline int
  6616 test_restrict (ccp restrict text)
  6618   // See if C++-style comments work.
  6619   // Iterate through items via the restricted pointer.
  6620   // Also check for declarations in for loops.
  6621   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  6622     continue;
  6623   return 0;
  6626 // Check varargs and va_copy.
  6627 static void
  6628 test_varargs (const char *format, ...)
  6630   va_list args;
  6631   va_start (args, format);
  6632   va_list args_copy;
  6633   va_copy (args_copy, args);
  6635   const char *str;
  6636   int number;
  6637   float fnumber;
  6639   while (*format)
  6641       switch (*format++)
  6643 	case 's': // string
  6644 	  str = va_arg (args_copy, const char *);
  6645 	  break;
  6646 	case 'd': // int
  6647 	  number = va_arg (args_copy, int);
  6648 	  break;
  6649 	case 'f': // float
  6650 	  fnumber = va_arg (args_copy, double);
  6651 	  break;
  6652 	default:
  6653 	  break;
  6656   va_end (args_copy);
  6657   va_end (args);
  6660 int
  6661 main ()
  6664   // Check bool.
  6665   _Bool success = false;
  6667   // Check restrict.
  6668   if (test_restrict ("String literal") == 0)
  6669     success = true;
  6670   char *restrict newvar = "Another string";
  6672   // Check varargs.
  6673   test_varargs ("s, d' f .", "string", 65, 34.234);
  6674   test_varargs_macros ();
  6676   // Check flexible array members.
  6677   struct incomplete_array *ia =
  6678     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  6679   ia->datasize = 10;
  6680   for (int i = 0; i < ia->datasize; ++i)
  6681     ia->data[i] = i * 1.234;
  6683   // Check named initializers.
  6684   struct named_init ni = {
  6685     .number = 34,
  6686     .name = L"Test wide string",
  6687     .average = 543.34343,
  6688   };
  6690   ni.number = 58;
  6692   int dynamic_array[ni.number];
  6693   dynamic_array[ni.number - 1] = 543;
  6695   // work around unused variable warnings
  6696   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  6697 	  || dynamic_array[ni.number - 1] != 543);
  6700   return 0;
  6702 _ACEOF
  6703 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  6704 do
  6705   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6706   rm -f conftest.$ac_build_objext
  6707 if { (ac_try="$ac_build_compile"
  6708 case "(($ac_try" in
  6709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6710   *) ac_try_echo=$ac_try;;
  6711 esac
  6712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6713   (eval "$ac_build_compile") 2>conftest.er1
  6714   ac_status=$?
  6715   grep -v '^ *+' conftest.er1 >conftest.err
  6716   rm -f conftest.er1
  6717   cat conftest.err >&5
  6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6719   (exit $ac_status); } && {
  6720 	 test -z "$ac_c_werror_flag" ||
  6721 	 test ! -s conftest.err
  6722        } && test -s conftest.$ac_build_objext; then
  6723   ac_cv_build_prog_cc_stdc=$ac_arg
  6724 else
  6725   echo "$as_me: failed program was:" >&5
  6726 sed 's/^/| /' conftest.$ac_ext >&5
  6729 fi
  6731 rm -f core conftest.err conftest.$ac_build_objext
  6732   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6733 done
  6734 rm -f conftest.$ac_ext
  6735 CC_FOR_BUILD=$ac_save_CC
  6737 fi
  6738 # AC_CACHE_VAL
  6739 case "x$ac_cv_build_prog_cc_stdc" in
  6740   x)
  6741     { echo "$as_me:$LINENO: result: none needed" >&5
  6742 echo "${ECHO_T}none needed" >&6; } ;;
  6743   xno)
  6744     { echo "$as_me:$LINENO: result: unsupported" >&5
  6745 echo "${ECHO_T}unsupported" >&6; } ;;
  6746   *)
  6747     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6748     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6749 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6750 esac
  6751 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6752   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6753 else
  6754   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6755 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6756 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6757   echo $ECHO_N "(cached) $ECHO_C" >&6
  6758 else
  6759   ac_cv_build_prog_cc_stdc=no
  6760 ac_save_CC=$CC_FOR_BUILD
  6761 cat >conftest.$ac_ext <<_ACEOF
  6762 /* confdefs.h.  */
  6763 _ACEOF
  6764 cat confdefs.h >>conftest.$ac_ext
  6765 cat >>conftest.$ac_ext <<_ACEOF
  6766 /* end confdefs.h.  */
  6767 #include <stdarg.h>
  6768 #include <stdio.h>
  6769 #include <sys/types.h>
  6770 #include <sys/stat.h>
  6771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6772 struct buf { int x; };
  6773 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6774 static char *e (p, i)
  6775      char **p;
  6776      int i;
  6778   return p[i];
  6780 static char *f (char * (*g) (char **, int), char **p, ...)
  6782   char *s;
  6783   va_list v;
  6784   va_start (v,p);
  6785   s = g (p, va_arg (v,int));
  6786   va_end (v);
  6787   return s;
  6790 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6791    function prototypes and stuff, but not '\xHH' hex character constants.
  6792    These don't provoke an error unfortunately, instead are silently treated
  6793    as 'x'.  The following induces an error, until -std is added to get
  6794    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6795    array size at least.  It's necessary to write '\x00'==0 to get something
  6796    that's true only with -std.  */
  6797 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6799 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6800    inside strings and character constants.  */
  6801 #define FOO(x) 'x'
  6802 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6804 int test (int i, double x);
  6805 struct s1 {int (*f) (int a);};
  6806 struct s2 {int (*f) (double a);};
  6807 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6808 int argc;
  6809 char **argv;
  6810 int
  6811 main ()
  6813 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6815   return 0;
  6817 _ACEOF
  6818 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6819 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6820 do
  6821   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6822   rm -f conftest.$ac_build_objext
  6823 if { (ac_try="$ac_build_compile"
  6824 case "(($ac_try" in
  6825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6826   *) ac_try_echo=$ac_try;;
  6827 esac
  6828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6829   (eval "$ac_build_compile") 2>conftest.er1
  6830   ac_status=$?
  6831   grep -v '^ *+' conftest.er1 >conftest.err
  6832   rm -f conftest.er1
  6833   cat conftest.err >&5
  6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6835   (exit $ac_status); } && {
  6836 	 test -z "$ac_c_werror_flag" ||
  6837 	 test ! -s conftest.err
  6838        } && test -s conftest.$ac_build_objext; then
  6839   ac_cv_build_prog_cc_stdc=$ac_arg
  6840 else
  6841   echo "$as_me: failed program was:" >&5
  6842 sed 's/^/| /' conftest.$ac_ext >&5
  6845 fi
  6847 rm -f core conftest.err conftest.$ac_build_objext
  6848   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6849 done
  6850 rm -f conftest.$ac_ext
  6851 CC_FOR_BUILD=$ac_save_CC
  6853 fi
  6854 # AC_CACHE_VAL
  6855 case "x$ac_cv_build_prog_cc_stdc" in
  6856   x)
  6857     { echo "$as_me:$LINENO: result: none needed" >&5
  6858 echo "${ECHO_T}none needed" >&6; } ;;
  6859   xno)
  6860     { echo "$as_me:$LINENO: result: unsupported" >&5
  6861 echo "${ECHO_T}unsupported" >&6; } ;;
  6862   *)
  6863     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6864     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6865 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6866 esac
  6867 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6868   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6869 else
  6870   ac_cv_build_prog_cc_stdc=no
  6871 fi
  6874 fi
  6876  ;;
  6877 esac
  6878   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
  6879 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
  6880   if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6881   echo $ECHO_N "(cached) $ECHO_C" >&6
  6882 fi
  6884   case $ac_cv_build_prog_cc_stdc in
  6885   no) { echo "$as_me:$LINENO: result: unsupported" >&5
  6886 echo "${ECHO_T}unsupported" >&6; } ;;
  6887   '') { echo "$as_me:$LINENO: result: none needed" >&5
  6888 echo "${ECHO_T}none needed" >&6; } ;;
  6889   *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6890 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6891 esac
  6894 ac_ext=c
  6895 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6896 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6897 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6898 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6899 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6900 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  6901 # On Suns, sometimes $CPP names a directory.
  6902 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
  6903   CPP_FOR_BUILD=
  6904 fi
  6905 if test -z "$CPP_FOR_BUILD"; then
  6906   if test "${ac_cv_build_prog_CPP+set}" = set; then
  6907   echo $ECHO_N "(cached) $ECHO_C" >&6
  6908 else
  6909       # Double quotes because CPP needs to be expanded
  6910     for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
  6911     do
  6912       ac_preproc_ok=false
  6913 for ac_c_preproc_warn_flag in '' yes
  6914 do
  6915   # Use a header file that comes with gcc, so configuring glibc
  6916   # with a fresh cross-compiler works.
  6917   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6918   # <limits.h> exists even on freestanding compilers.
  6919   # On the NeXT, cc -E runs the code through the compiler's parser,
  6920   # not just through cpp. "Syntax error" is here to catch this case.
  6921   cat >conftest.$ac_ext <<_ACEOF
  6922 /* confdefs.h.  */
  6923 _ACEOF
  6924 cat confdefs.h >>conftest.$ac_ext
  6925 cat >>conftest.$ac_ext <<_ACEOF
  6926 /* end confdefs.h.  */
  6927 #ifdef __STDC__
  6928 # include <limits.h>
  6929 #else
  6930 # include <assert.h>
  6931 #endif
  6932 		     Syntax error
  6933 _ACEOF
  6934 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6935 case "(($ac_try" in
  6936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6937   *) ac_try_echo=$ac_try;;
  6938 esac
  6939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6940   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6941   ac_status=$?
  6942   grep -v '^ *+' conftest.er1 >conftest.err
  6943   rm -f conftest.er1
  6944   cat conftest.err >&5
  6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6946   (exit $ac_status); } >/dev/null && {
  6947 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6948 	 test ! -s conftest.err
  6949        }; then
  6951 else
  6952   echo "$as_me: failed program was:" >&5
  6953 sed 's/^/| /' conftest.$ac_ext >&5
  6955   # Broken: fails on valid input.
  6956 continue
  6957 fi
  6959 rm -f conftest.err conftest.$ac_ext
  6961   # OK, works on sane cases.  Now check whether nonexistent headers
  6962   # can be detected and how.
  6963   cat >conftest.$ac_ext <<_ACEOF
  6964 /* confdefs.h.  */
  6965 _ACEOF
  6966 cat confdefs.h >>conftest.$ac_ext
  6967 cat >>conftest.$ac_ext <<_ACEOF
  6968 /* end confdefs.h.  */
  6969 #include <ac_nonexistent.h>
  6970 _ACEOF
  6971 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6972 case "(($ac_try" in
  6973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6974   *) ac_try_echo=$ac_try;;
  6975 esac
  6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6977   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6978   ac_status=$?
  6979   grep -v '^ *+' conftest.er1 >conftest.err
  6980   rm -f conftest.er1
  6981   cat conftest.err >&5
  6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6983   (exit $ac_status); } >/dev/null && {
  6984 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6985 	 test ! -s conftest.err
  6986        }; then
  6987   # Broken: success on invalid input.
  6988 continue
  6989 else
  6990   echo "$as_me: failed program was:" >&5
  6991 sed 's/^/| /' conftest.$ac_ext >&5
  6993   # Passes both tests.
  6994 ac_preproc_ok=:
  6995 break
  6996 fi
  6998 rm -f conftest.err conftest.$ac_ext
  7000 done
  7001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7002 rm -f conftest.err conftest.$ac_ext
  7003 if $ac_preproc_ok; then
  7004   break
  7005 fi
  7007     done
  7008     ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  7010 fi
  7011   CPP_FOR_BUILD=$ac_cv_build_prog_CPP
  7012 else
  7013   ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  7014 fi
  7015 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
  7016 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
  7017 ac_preproc_ok=false
  7018 for ac_c_preproc_warn_flag in '' yes
  7019 do
  7020   # Use a header file that comes with gcc, so configuring glibc
  7021   # with a fresh cross-compiler works.
  7022   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7023   # <limits.h> exists even on freestanding compilers.
  7024   # On the NeXT, cc -E runs the code through the compiler's parser,
  7025   # not just through cpp. "Syntax error" is here to catch this case.
  7026   cat >conftest.$ac_ext <<_ACEOF
  7027 /* confdefs.h.  */
  7028 _ACEOF
  7029 cat confdefs.h >>conftest.$ac_ext
  7030 cat >>conftest.$ac_ext <<_ACEOF
  7031 /* end confdefs.h.  */
  7032 #ifdef __STDC__
  7033 # include <limits.h>
  7034 #else
  7035 # include <assert.h>
  7036 #endif
  7037 		     Syntax error
  7038 _ACEOF
  7039 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  7040 case "(($ac_try" in
  7041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7042   *) ac_try_echo=$ac_try;;
  7043 esac
  7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7045   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  7046   ac_status=$?
  7047   grep -v '^ *+' conftest.er1 >conftest.err
  7048   rm -f conftest.er1
  7049   cat conftest.err >&5
  7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7051   (exit $ac_status); } >/dev/null && {
  7052 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7053 	 test ! -s conftest.err
  7054        }; then
  7056 else
  7057   echo "$as_me: failed program was:" >&5
  7058 sed 's/^/| /' conftest.$ac_ext >&5
  7060   # Broken: fails on valid input.
  7061 continue
  7062 fi
  7064 rm -f conftest.err conftest.$ac_ext
  7066   # OK, works on sane cases.  Now check whether nonexistent headers
  7067   # can be detected and how.
  7068   cat >conftest.$ac_ext <<_ACEOF
  7069 /* confdefs.h.  */
  7070 _ACEOF
  7071 cat confdefs.h >>conftest.$ac_ext
  7072 cat >>conftest.$ac_ext <<_ACEOF
  7073 /* end confdefs.h.  */
  7074 #include <ac_nonexistent.h>
  7075 _ACEOF
  7076 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  7077 case "(($ac_try" in
  7078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7079   *) ac_try_echo=$ac_try;;
  7080 esac
  7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7082   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  7083   ac_status=$?
  7084   grep -v '^ *+' conftest.er1 >conftest.err
  7085   rm -f conftest.er1
  7086   cat conftest.err >&5
  7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7088   (exit $ac_status); } >/dev/null && {
  7089 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7090 	 test ! -s conftest.err
  7091        }; then
  7092   # Broken: success on invalid input.
  7093 continue
  7094 else
  7095   echo "$as_me: failed program was:" >&5
  7096 sed 's/^/| /' conftest.$ac_ext >&5
  7098   # Passes both tests.
  7099 ac_preproc_ok=:
  7100 break
  7101 fi
  7103 rm -f conftest.err conftest.$ac_ext
  7105 done
  7106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7107 rm -f conftest.err conftest.$ac_ext
  7108 if $ac_preproc_ok; then
  7110 else
  7111   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  7112 See \`config.log' for more details." >&5
  7113 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  7114 See \`config.log' for more details." >&2;}
  7115    { (exit 1); exit 1; }; }
  7116 fi
  7118 ac_ext=c
  7119 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  7120 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  7121 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7122 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  7127 BUILD_EXEEXT=$ac_build_exeext
  7128 BUILD_OBJEXT=$ac_build_objext
  7130 ac_ext=m
  7131 ac_cpp='$OBJCPP $CPPFLAGS'
  7132 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7133 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7134 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  7135 if test -n "$ac_tool_prefix"; then
  7136   for ac_prog in gcc objcc objc cc CC
  7137   do
  7138     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7142 if test "${ac_cv_prog_OBJC+set}" = set; then
  7143   echo $ECHO_N "(cached) $ECHO_C" >&6
  7144 else
  7145   if test -n "$OBJC"; then
  7146   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  7147 else
  7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7149 for as_dir in $PATH
  7150 do
  7151   IFS=$as_save_IFS
  7152   test -z "$as_dir" && as_dir=.
  7153   for ac_exec_ext in '' $ac_executable_extensions; do
  7154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7155     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  7156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7157     break 2
  7158   fi
  7159 done
  7160 done
  7161 IFS=$as_save_IFS
  7163 fi
  7164 fi
  7165 OBJC=$ac_cv_prog_OBJC
  7166 if test -n "$OBJC"; then
  7167   { echo "$as_me:$LINENO: result: $OBJC" >&5
  7168 echo "${ECHO_T}$OBJC" >&6; }
  7169 else
  7170   { echo "$as_me:$LINENO: result: no" >&5
  7171 echo "${ECHO_T}no" >&6; }
  7172 fi
  7175     test -n "$OBJC" && break
  7176   done
  7177 fi
  7178 if test -z "$OBJC"; then
  7179   ac_ct_OBJC=$OBJC
  7180   for ac_prog in gcc objcc objc cc CC
  7181 do
  7182   # Extract the first word of "$ac_prog", so it can be a program name with args.
  7183 set dummy $ac_prog; ac_word=$2
  7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7186 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  7187   echo $ECHO_N "(cached) $ECHO_C" >&6
  7188 else
  7189   if test -n "$ac_ct_OBJC"; then
  7190   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  7191 else
  7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7193 for as_dir in $PATH
  7194 do
  7195   IFS=$as_save_IFS
  7196   test -z "$as_dir" && as_dir=.
  7197   for ac_exec_ext in '' $ac_executable_extensions; do
  7198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7199     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  7200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7201     break 2
  7202   fi
  7203 done
  7204 done
  7205 IFS=$as_save_IFS
  7207 fi
  7208 fi
  7209 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  7210 if test -n "$ac_ct_OBJC"; then
  7211   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  7212 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  7213 else
  7214   { echo "$as_me:$LINENO: result: no" >&5
  7215 echo "${ECHO_T}no" >&6; }
  7216 fi
  7219   test -n "$ac_ct_OBJC" && break
  7220 done
  7222   if test "x$ac_ct_OBJC" = x; then
  7223     OBJC="gcc"
  7224   else
  7225     case $cross_compiling:$ac_tool_warned in
  7226 yes:)
  7227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7228 whose name does not start with the host triplet.  If you think this
  7229 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7231 whose name does not start with the host triplet.  If you think this
  7232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7233 ac_tool_warned=yes ;;
  7234 esac
  7235     OBJC=$ac_ct_OBJC
  7236   fi
  7237 fi
  7239 # Provide some information about the compiler.
  7240 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  7241 ac_compiler=`set X $ac_compile; echo $2`
  7242 { (ac_try="$ac_compiler --version >&5"
  7243 case "(($ac_try" in
  7244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7245   *) ac_try_echo=$ac_try;;
  7246 esac
  7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7248   (eval "$ac_compiler --version >&5") 2>&5
  7249   ac_status=$?
  7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7251   (exit $ac_status); }
  7252 { (ac_try="$ac_compiler -v >&5"
  7253 case "(($ac_try" in
  7254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7255   *) ac_try_echo=$ac_try;;
  7256 esac
  7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7258   (eval "$ac_compiler -v >&5") 2>&5
  7259   ac_status=$?
  7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7261   (exit $ac_status); }
  7262 { (ac_try="$ac_compiler -V >&5"
  7263 case "(($ac_try" in
  7264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7265   *) ac_try_echo=$ac_try;;
  7266 esac
  7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7268   (eval "$ac_compiler -V >&5") 2>&5
  7269   ac_status=$?
  7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7271   (exit $ac_status); }
  7273 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  7274 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  7275 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  7276   echo $ECHO_N "(cached) $ECHO_C" >&6
  7277 else
  7278   cat >conftest.$ac_ext <<_ACEOF
  7279 /* confdefs.h.  */
  7280 _ACEOF
  7281 cat confdefs.h >>conftest.$ac_ext
  7282 cat >>conftest.$ac_ext <<_ACEOF
  7283 /* end confdefs.h.  */
  7285 int
  7286 main ()
  7288 #ifndef __GNUC__
  7289        choke me
  7290 #endif
  7293   return 0;
  7295 _ACEOF
  7296 rm -f conftest.$ac_objext
  7297 if { (ac_try="$ac_compile"
  7298 case "(($ac_try" in
  7299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7300   *) ac_try_echo=$ac_try;;
  7301 esac
  7302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7303   (eval "$ac_compile") 2>conftest.er1
  7304   ac_status=$?
  7305   grep -v '^ *+' conftest.er1 >conftest.err
  7306   rm -f conftest.er1
  7307   cat conftest.err >&5
  7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7309   (exit $ac_status); } && {
  7310 	 test -z "$ac_objc_werror_flag" ||
  7311 	 test ! -s conftest.err
  7312        } && test -s conftest.$ac_objext; then
  7313   ac_compiler_gnu=yes
  7314 else
  7315   echo "$as_me: failed program was:" >&5
  7316 sed 's/^/| /' conftest.$ac_ext >&5
  7318 	ac_compiler_gnu=no
  7319 fi
  7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7322 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  7324 fi
  7325 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  7326 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  7327 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  7328 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  7329 ac_save_OBJCFLAGS=$OBJCFLAGS
  7330 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  7331 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  7332 if test "${ac_cv_prog_objc_g+set}" = set; then
  7333   echo $ECHO_N "(cached) $ECHO_C" >&6
  7334 else
  7335   ac_save_objc_werror_flag=$ac_objc_werror_flag
  7336    ac_objc_werror_flag=yes
  7337    ac_cv_prog_objc_g=no
  7338    OBJCFLAGS="-g"
  7339    cat >conftest.$ac_ext <<_ACEOF
  7340 /* confdefs.h.  */
  7341 _ACEOF
  7342 cat confdefs.h >>conftest.$ac_ext
  7343 cat >>conftest.$ac_ext <<_ACEOF
  7344 /* end confdefs.h.  */
  7346 int
  7347 main ()
  7351   return 0;
  7353 _ACEOF
  7354 rm -f conftest.$ac_objext
  7355 if { (ac_try="$ac_compile"
  7356 case "(($ac_try" in
  7357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7358   *) ac_try_echo=$ac_try;;
  7359 esac
  7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7361   (eval "$ac_compile") 2>conftest.er1
  7362   ac_status=$?
  7363   grep -v '^ *+' conftest.er1 >conftest.err
  7364   rm -f conftest.er1
  7365   cat conftest.err >&5
  7366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7367   (exit $ac_status); } && {
  7368 	 test -z "$ac_objc_werror_flag" ||
  7369 	 test ! -s conftest.err
  7370        } && test -s conftest.$ac_objext; then
  7371   ac_cv_prog_objc_g=yes
  7372 else
  7373   echo "$as_me: failed program was:" >&5
  7374 sed 's/^/| /' conftest.$ac_ext >&5
  7376 	OBJCFLAGS=""
  7377       cat >conftest.$ac_ext <<_ACEOF
  7378 /* confdefs.h.  */
  7379 _ACEOF
  7380 cat confdefs.h >>conftest.$ac_ext
  7381 cat >>conftest.$ac_ext <<_ACEOF
  7382 /* end confdefs.h.  */
  7384 int
  7385 main ()
  7389   return 0;
  7391 _ACEOF
  7392 rm -f conftest.$ac_objext
  7393 if { (ac_try="$ac_compile"
  7394 case "(($ac_try" in
  7395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7396   *) ac_try_echo=$ac_try;;
  7397 esac
  7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7399   (eval "$ac_compile") 2>conftest.er1
  7400   ac_status=$?
  7401   grep -v '^ *+' conftest.er1 >conftest.err
  7402   rm -f conftest.er1
  7403   cat conftest.err >&5
  7404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7405   (exit $ac_status); } && {
  7406 	 test -z "$ac_objc_werror_flag" ||
  7407 	 test ! -s conftest.err
  7408        } && test -s conftest.$ac_objext; then
  7410 else
  7411   echo "$as_me: failed program was:" >&5
  7412 sed 's/^/| /' conftest.$ac_ext >&5
  7414 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  7415 	 OBJCFLAGS="-g"
  7416 	 cat >conftest.$ac_ext <<_ACEOF
  7417 /* confdefs.h.  */
  7418 _ACEOF
  7419 cat confdefs.h >>conftest.$ac_ext
  7420 cat >>conftest.$ac_ext <<_ACEOF
  7421 /* end confdefs.h.  */
  7423 int
  7424 main ()
  7428   return 0;
  7430 _ACEOF
  7431 rm -f conftest.$ac_objext
  7432 if { (ac_try="$ac_compile"
  7433 case "(($ac_try" in
  7434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7435   *) ac_try_echo=$ac_try;;
  7436 esac
  7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7438   (eval "$ac_compile") 2>conftest.er1
  7439   ac_status=$?
  7440   grep -v '^ *+' conftest.er1 >conftest.err
  7441   rm -f conftest.er1
  7442   cat conftest.err >&5
  7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7444   (exit $ac_status); } && {
  7445 	 test -z "$ac_objc_werror_flag" ||
  7446 	 test ! -s conftest.err
  7447        } && test -s conftest.$ac_objext; then
  7448   ac_cv_prog_objc_g=yes
  7449 else
  7450   echo "$as_me: failed program was:" >&5
  7451 sed 's/^/| /' conftest.$ac_ext >&5
  7454 fi
  7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7457 fi
  7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7460 fi
  7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7463    ac_objc_werror_flag=$ac_save_objc_werror_flag
  7464 fi
  7465 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  7466 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  7467 if test "$ac_test_OBJCFLAGS" = set; then
  7468   OBJCFLAGS=$ac_save_OBJCFLAGS
  7469 elif test $ac_cv_prog_objc_g = yes; then
  7470   if test "$GOBJC" = yes; then
  7471     OBJCFLAGS="-g -O2"
  7472   else
  7473     OBJCFLAGS="-g"
  7474   fi
  7475 else
  7476   if test "$GOBJC" = yes; then
  7477     OBJCFLAGS="-O2"
  7478   else
  7479     OBJCFLAGS=
  7480   fi
  7481 fi
  7482 ac_ext=c
  7483 ac_cpp='$CPP $CPPFLAGS'
  7484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7488 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  7489 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  7490 if test "${ac_cv_path_SED+set}" = set; then
  7491   echo $ECHO_N "(cached) $ECHO_C" >&6
  7492 else
  7493             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7494      for ac_i in 1 2 3 4 5 6 7; do
  7495        ac_script="$ac_script$as_nl$ac_script"
  7496      done
  7497      echo "$ac_script" | sed 99q >conftest.sed
  7498      $as_unset ac_script || ac_script=
  7499      # Extract the first word of "sed gsed" to use in msg output
  7500 if test -z "$SED"; then
  7501 set dummy sed gsed; ac_prog_name=$2
  7502 if test "${ac_cv_path_SED+set}" = set; then
  7503   echo $ECHO_N "(cached) $ECHO_C" >&6
  7504 else
  7505   ac_path_SED_found=false
  7506 # Loop through the user's path and test for each of PROGNAME-LIST
  7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7508 for as_dir in $PATH
  7509 do
  7510   IFS=$as_save_IFS
  7511   test -z "$as_dir" && as_dir=.
  7512   for ac_prog in sed gsed; do
  7513   for ac_exec_ext in '' $ac_executable_extensions; do
  7514     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  7515     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  7516     # Check for GNU ac_path_SED and select it if it is found.
  7517   # Check for GNU $ac_path_SED
  7518 case `"$ac_path_SED" --version 2>&1` in
  7519 *GNU*)
  7520   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7521 *)
  7522   ac_count=0
  7523   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7524   while :
  7525   do
  7526     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7527     mv "conftest.tmp" "conftest.in"
  7528     cp "conftest.in" "conftest.nl"
  7529     echo '' >> "conftest.nl"
  7530     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7531     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7532     ac_count=`expr $ac_count + 1`
  7533     if test $ac_count -gt ${ac_path_SED_max-0}; then
  7534       # Best one so far, save it but keep looking for a better one
  7535       ac_cv_path_SED="$ac_path_SED"
  7536       ac_path_SED_max=$ac_count
  7537     fi
  7538     # 10*(2^10) chars as input seems more than enough
  7539     test $ac_count -gt 10 && break
  7540   done
  7541   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7542 esac
  7545     $ac_path_SED_found && break 3
  7546   done
  7547 done
  7549 done
  7550 IFS=$as_save_IFS
  7553 fi
  7555 SED="$ac_cv_path_SED"
  7556 if test -z "$SED"; then
  7557   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  7558 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  7559    { (exit 1); exit 1; }; }
  7560 fi
  7562 else
  7563   ac_cv_path_SED=$SED
  7564 fi
  7566 fi
  7567 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  7568 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  7569  SED="$ac_cv_path_SED"
  7570   rm -f conftest.sed
  7572 # By default we simply use the C compiler to build assembly code.
  7574 test "${CCAS+set}" = set || CCAS=$CC
  7575 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  7579 if test -n "$ac_tool_prefix"; then
  7580   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7584 if test "${ac_cv_prog_RANLIB+set}" = set; then
  7585   echo $ECHO_N "(cached) $ECHO_C" >&6
  7586 else
  7587   if test -n "$RANLIB"; then
  7588   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7589 else
  7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7591 for as_dir in $PATH
  7592 do
  7593   IFS=$as_save_IFS
  7594   test -z "$as_dir" && as_dir=.
  7595   for ac_exec_ext in '' $ac_executable_extensions; do
  7596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7597     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7599     break 2
  7600   fi
  7601 done
  7602 done
  7603 IFS=$as_save_IFS
  7605 fi
  7606 fi
  7607 RANLIB=$ac_cv_prog_RANLIB
  7608 if test -n "$RANLIB"; then
  7609   { echo "$as_me:$LINENO: result: $RANLIB" >&5
  7610 echo "${ECHO_T}$RANLIB" >&6; }
  7611 else
  7612   { echo "$as_me:$LINENO: result: no" >&5
  7613 echo "${ECHO_T}no" >&6; }
  7614 fi
  7617 fi
  7618 if test -z "$ac_cv_prog_RANLIB"; then
  7619   ac_ct_RANLIB=$RANLIB
  7620   # Extract the first word of "ranlib", so it can be a program name with args.
  7621 set dummy ranlib; ac_word=$2
  7622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  7625   echo $ECHO_N "(cached) $ECHO_C" >&6
  7626 else
  7627   if test -n "$ac_ct_RANLIB"; then
  7628   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7629 else
  7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7631 for as_dir in $PATH
  7632 do
  7633   IFS=$as_save_IFS
  7634   test -z "$as_dir" && as_dir=.
  7635   for ac_exec_ext in '' $ac_executable_extensions; do
  7636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7637     ac_cv_prog_ac_ct_RANLIB="ranlib"
  7638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7639     break 2
  7640   fi
  7641 done
  7642 done
  7643 IFS=$as_save_IFS
  7645 fi
  7646 fi
  7647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7648 if test -n "$ac_ct_RANLIB"; then
  7649   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  7650 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  7651 else
  7652   { echo "$as_me:$LINENO: result: no" >&5
  7653 echo "${ECHO_T}no" >&6; }
  7654 fi
  7656   if test "x$ac_ct_RANLIB" = x; then
  7657     RANLIB=":"
  7658   else
  7659     case $cross_compiling:$ac_tool_warned in
  7660 yes:)
  7661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7662 whose name does not start with the host triplet.  If you think this
  7663 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7665 whose name does not start with the host triplet.  If you think this
  7666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7667 ac_tool_warned=yes ;;
  7668 esac
  7669     RANLIB=$ac_ct_RANLIB
  7670   fi
  7671 else
  7672   RANLIB="$ac_cv_prog_RANLIB"
  7673 fi
  7676 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  7677 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  7678 if test "${ac_cv_path_GREP+set}" = set; then
  7679   echo $ECHO_N "(cached) $ECHO_C" >&6
  7680 else
  7681   # Extract the first word of "grep ggrep" to use in msg output
  7682 if test -z "$GREP"; then
  7683 set dummy grep ggrep; ac_prog_name=$2
  7684 if test "${ac_cv_path_GREP+set}" = set; then
  7685   echo $ECHO_N "(cached) $ECHO_C" >&6
  7686 else
  7687   ac_path_GREP_found=false
  7688 # Loop through the user's path and test for each of PROGNAME-LIST
  7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7691 do
  7692   IFS=$as_save_IFS
  7693   test -z "$as_dir" && as_dir=.
  7694   for ac_prog in grep ggrep; do
  7695   for ac_exec_ext in '' $ac_executable_extensions; do
  7696     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  7697     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  7698     # Check for GNU ac_path_GREP and select it if it is found.
  7699   # Check for GNU $ac_path_GREP
  7700 case `"$ac_path_GREP" --version 2>&1` in
  7701 *GNU*)
  7702   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  7703 *)
  7704   ac_count=0
  7705   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7706   while :
  7707   do
  7708     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7709     mv "conftest.tmp" "conftest.in"
  7710     cp "conftest.in" "conftest.nl"
  7711     echo 'GREP' >> "conftest.nl"
  7712     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7713     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7714     ac_count=`expr $ac_count + 1`
  7715     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  7716       # Best one so far, save it but keep looking for a better one
  7717       ac_cv_path_GREP="$ac_path_GREP"
  7718       ac_path_GREP_max=$ac_count
  7719     fi
  7720     # 10*(2^10) chars as input seems more than enough
  7721     test $ac_count -gt 10 && break
  7722   done
  7723   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7724 esac
  7727     $ac_path_GREP_found && break 3
  7728   done
  7729 done
  7731 done
  7732 IFS=$as_save_IFS
  7735 fi
  7737 GREP="$ac_cv_path_GREP"
  7738 if test -z "$GREP"; then
  7739   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  7740 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  7741    { (exit 1); exit 1; }; }
  7742 fi
  7744 else
  7745   ac_cv_path_GREP=$GREP
  7746 fi
  7749 fi
  7750 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  7751 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  7752  GREP="$ac_cv_path_GREP"
  7755 { echo "$as_me:$LINENO: checking for egrep" >&5
  7756 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  7757 if test "${ac_cv_path_EGREP+set}" = set; then
  7758   echo $ECHO_N "(cached) $ECHO_C" >&6
  7759 else
  7760   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  7761    then ac_cv_path_EGREP="$GREP -E"
  7762    else
  7763      # Extract the first word of "egrep" to use in msg output
  7764 if test -z "$EGREP"; then
  7765 set dummy egrep; ac_prog_name=$2
  7766 if test "${ac_cv_path_EGREP+set}" = set; then
  7767   echo $ECHO_N "(cached) $ECHO_C" >&6
  7768 else
  7769   ac_path_EGREP_found=false
  7770 # Loop through the user's path and test for each of PROGNAME-LIST
  7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7773 do
  7774   IFS=$as_save_IFS
  7775   test -z "$as_dir" && as_dir=.
  7776   for ac_prog in egrep; do
  7777   for ac_exec_ext in '' $ac_executable_extensions; do
  7778     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  7779     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  7780     # Check for GNU ac_path_EGREP and select it if it is found.
  7781   # Check for GNU $ac_path_EGREP
  7782 case `"$ac_path_EGREP" --version 2>&1` in
  7783 *GNU*)
  7784   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  7785 *)
  7786   ac_count=0
  7787   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7788   while :
  7789   do
  7790     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7791     mv "conftest.tmp" "conftest.in"
  7792     cp "conftest.in" "conftest.nl"
  7793     echo 'EGREP' >> "conftest.nl"
  7794     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7795     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7796     ac_count=`expr $ac_count + 1`
  7797     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  7798       # Best one so far, save it but keep looking for a better one
  7799       ac_cv_path_EGREP="$ac_path_EGREP"
  7800       ac_path_EGREP_max=$ac_count
  7801     fi
  7802     # 10*(2^10) chars as input seems more than enough
  7803     test $ac_count -gt 10 && break
  7804   done
  7805   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7806 esac
  7809     $ac_path_EGREP_found && break 3
  7810   done
  7811 done
  7813 done
  7814 IFS=$as_save_IFS
  7817 fi
  7819 EGREP="$ac_cv_path_EGREP"
  7820 if test -z "$EGREP"; then
  7821   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  7822 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  7823    { (exit 1); exit 1; }; }
  7824 fi
  7826 else
  7827   ac_cv_path_EGREP=$EGREP
  7828 fi
  7831    fi
  7832 fi
  7833 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  7834 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  7835  EGREP="$ac_cv_path_EGREP"
  7838 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7839 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  7840 if test "${ac_cv_header_stdc+set}" = set; then
  7841   echo $ECHO_N "(cached) $ECHO_C" >&6
  7842 else
  7843   cat >conftest.$ac_ext <<_ACEOF
  7844 /* confdefs.h.  */
  7845 _ACEOF
  7846 cat confdefs.h >>conftest.$ac_ext
  7847 cat >>conftest.$ac_ext <<_ACEOF
  7848 /* end confdefs.h.  */
  7849 #include <stdlib.h>
  7850 #include <stdarg.h>
  7851 #include <string.h>
  7852 #include <float.h>
  7854 int
  7855 main ()
  7859   return 0;
  7861 _ACEOF
  7862 rm -f conftest.$ac_objext
  7863 if { (ac_try="$ac_compile"
  7864 case "(($ac_try" in
  7865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7866   *) ac_try_echo=$ac_try;;
  7867 esac
  7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7869   (eval "$ac_compile") 2>conftest.er1
  7870   ac_status=$?
  7871   grep -v '^ *+' conftest.er1 >conftest.err
  7872   rm -f conftest.er1
  7873   cat conftest.err >&5
  7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7875   (exit $ac_status); } && {
  7876 	 test -z "$ac_c_werror_flag" ||
  7877 	 test ! -s conftest.err
  7878        } && test -s conftest.$ac_objext; then
  7879   ac_cv_header_stdc=yes
  7880 else
  7881   echo "$as_me: failed program was:" >&5
  7882 sed 's/^/| /' conftest.$ac_ext >&5
  7884 	ac_cv_header_stdc=no
  7885 fi
  7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7889 if test $ac_cv_header_stdc = yes; then
  7890   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7891   cat >conftest.$ac_ext <<_ACEOF
  7892 /* confdefs.h.  */
  7893 _ACEOF
  7894 cat confdefs.h >>conftest.$ac_ext
  7895 cat >>conftest.$ac_ext <<_ACEOF
  7896 /* end confdefs.h.  */
  7897 #include <string.h>
  7899 _ACEOF
  7900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7901   $EGREP "memchr" >/dev/null 2>&1; then
  7903 else
  7904   ac_cv_header_stdc=no
  7905 fi
  7906 rm -f conftest*
  7908 fi
  7910 if test $ac_cv_header_stdc = yes; then
  7911   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7912   cat >conftest.$ac_ext <<_ACEOF
  7913 /* confdefs.h.  */
  7914 _ACEOF
  7915 cat confdefs.h >>conftest.$ac_ext
  7916 cat >>conftest.$ac_ext <<_ACEOF
  7917 /* end confdefs.h.  */
  7918 #include <stdlib.h>
  7920 _ACEOF
  7921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7922   $EGREP "free" >/dev/null 2>&1; then
  7924 else
  7925   ac_cv_header_stdc=no
  7926 fi
  7927 rm -f conftest*
  7929 fi
  7931 if test $ac_cv_header_stdc = yes; then
  7932   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7933   if test "$cross_compiling" = yes; then
  7935 else
  7936   cat >conftest.$ac_ext <<_ACEOF
  7937 /* confdefs.h.  */
  7938 _ACEOF
  7939 cat confdefs.h >>conftest.$ac_ext
  7940 cat >>conftest.$ac_ext <<_ACEOF
  7941 /* end confdefs.h.  */
  7942 #include <ctype.h>
  7943 #include <stdlib.h>
  7944 #if ((' ' & 0x0FF) == 0x020)
  7945 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7946 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7947 #else
  7948 # define ISLOWER(c) \
  7949 		   (('a' <= (c) && (c) <= 'i') \
  7950 		     || ('j' <= (c) && (c) <= 'r') \
  7951 		     || ('s' <= (c) && (c) <= 'z'))
  7952 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7953 #endif
  7955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7956 int
  7957 main ()
  7959   int i;
  7960   for (i = 0; i < 256; i++)
  7961     if (XOR (islower (i), ISLOWER (i))
  7962 	|| toupper (i) != TOUPPER (i))
  7963       return 2;
  7964   return 0;
  7966 _ACEOF
  7967 rm -f conftest$ac_exeext
  7968 if { (ac_try="$ac_link"
  7969 case "(($ac_try" in
  7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7971   *) ac_try_echo=$ac_try;;
  7972 esac
  7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7974   (eval "$ac_link") 2>&5
  7975   ac_status=$?
  7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7978   { (case "(($ac_try" in
  7979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7980   *) ac_try_echo=$ac_try;;
  7981 esac
  7982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7983   (eval "$ac_try") 2>&5
  7984   ac_status=$?
  7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7986   (exit $ac_status); }; }; then
  7988 else
  7989   echo "$as_me: program exited with status $ac_status" >&5
  7990 echo "$as_me: failed program was:" >&5
  7991 sed 's/^/| /' conftest.$ac_ext >&5
  7993 ( exit $ac_status )
  7994 ac_cv_header_stdc=no
  7995 fi
  7996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7997 fi
  8000 fi
  8001 fi
  8002 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8003 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  8004 if test $ac_cv_header_stdc = yes; then
  8006 cat >>confdefs.h <<\_ACEOF
  8007 #define STDC_HEADERS 1
  8008 _ACEOF
  8010 fi
  8012 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8022 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8023 		  inttypes.h stdint.h unistd.h
  8024 do
  8025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8029   echo $ECHO_N "(cached) $ECHO_C" >&6
  8030 else
  8031   cat >conftest.$ac_ext <<_ACEOF
  8032 /* confdefs.h.  */
  8033 _ACEOF
  8034 cat confdefs.h >>conftest.$ac_ext
  8035 cat >>conftest.$ac_ext <<_ACEOF
  8036 /* end confdefs.h.  */
  8037 $ac_includes_default
  8039 #include <$ac_header>
  8040 _ACEOF
  8041 rm -f conftest.$ac_objext
  8042 if { (ac_try="$ac_compile"
  8043 case "(($ac_try" in
  8044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8045   *) ac_try_echo=$ac_try;;
  8046 esac
  8047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8048   (eval "$ac_compile") 2>conftest.er1
  8049   ac_status=$?
  8050   grep -v '^ *+' conftest.er1 >conftest.err
  8051   rm -f conftest.er1
  8052   cat conftest.err >&5
  8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8054   (exit $ac_status); } && {
  8055 	 test -z "$ac_c_werror_flag" ||
  8056 	 test ! -s conftest.err
  8057        } && test -s conftest.$ac_objext; then
  8058   eval "$as_ac_Header=yes"
  8059 else
  8060   echo "$as_me: failed program was:" >&5
  8061 sed 's/^/| /' conftest.$ac_ext >&5
  8063 	eval "$as_ac_Header=no"
  8064 fi
  8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8067 fi
  8068 ac_res=`eval echo '${'$as_ac_Header'}'`
  8069 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8070 echo "${ECHO_T}$ac_res" >&6; }
  8071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8072   cat >>confdefs.h <<_ACEOF
  8073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8074 _ACEOF
  8076 fi
  8078 done
  8081 { echo "$as_me:$LINENO: checking for void *" >&5
  8082 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
  8083 if test "${ac_cv_type_void_p+set}" = set; then
  8084   echo $ECHO_N "(cached) $ECHO_C" >&6
  8085 else
  8086   cat >conftest.$ac_ext <<_ACEOF
  8087 /* confdefs.h.  */
  8088 _ACEOF
  8089 cat confdefs.h >>conftest.$ac_ext
  8090 cat >>conftest.$ac_ext <<_ACEOF
  8091 /* end confdefs.h.  */
  8092 $ac_includes_default
  8093 typedef void * ac__type_new_;
  8094 int
  8095 main ()
  8097 if ((ac__type_new_ *) 0)
  8098   return 0;
  8099 if (sizeof (ac__type_new_))
  8100   return 0;
  8102   return 0;
  8104 _ACEOF
  8105 rm -f conftest.$ac_objext
  8106 if { (ac_try="$ac_compile"
  8107 case "(($ac_try" in
  8108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8109   *) ac_try_echo=$ac_try;;
  8110 esac
  8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8112   (eval "$ac_compile") 2>conftest.er1
  8113   ac_status=$?
  8114   grep -v '^ *+' conftest.er1 >conftest.err
  8115   rm -f conftest.er1
  8116   cat conftest.err >&5
  8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8118   (exit $ac_status); } && {
  8119 	 test -z "$ac_c_werror_flag" ||
  8120 	 test ! -s conftest.err
  8121        } && test -s conftest.$ac_objext; then
  8122   ac_cv_type_void_p=yes
  8123 else
  8124   echo "$as_me: failed program was:" >&5
  8125 sed 's/^/| /' conftest.$ac_ext >&5
  8127 	ac_cv_type_void_p=no
  8128 fi
  8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8131 fi
  8132 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
  8133 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
  8135 # The cast to long int works around a bug in the HP C Compiler
  8136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8138 # This bug is HP SR number 8606223364.
  8139 { echo "$as_me:$LINENO: checking size of void *" >&5
  8140 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
  8141 if test "${ac_cv_sizeof_void_p+set}" = set; then
  8142   echo $ECHO_N "(cached) $ECHO_C" >&6
  8143 else
  8144   if test "$cross_compiling" = yes; then
  8145   # Depending upon the size, compute the lo and hi bounds.
  8146 cat >conftest.$ac_ext <<_ACEOF
  8147 /* confdefs.h.  */
  8148 _ACEOF
  8149 cat confdefs.h >>conftest.$ac_ext
  8150 cat >>conftest.$ac_ext <<_ACEOF
  8151 /* end confdefs.h.  */
  8152 $ac_includes_default
  8153    typedef void * ac__type_sizeof_;
  8154 int
  8155 main ()
  8157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  8158 test_array [0] = 0
  8161   return 0;
  8163 _ACEOF
  8164 rm -f conftest.$ac_objext
  8165 if { (ac_try="$ac_compile"
  8166 case "(($ac_try" in
  8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8168   *) ac_try_echo=$ac_try;;
  8169 esac
  8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8171   (eval "$ac_compile") 2>conftest.er1
  8172   ac_status=$?
  8173   grep -v '^ *+' conftest.er1 >conftest.err
  8174   rm -f conftest.er1
  8175   cat conftest.err >&5
  8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8177   (exit $ac_status); } && {
  8178 	 test -z "$ac_c_werror_flag" ||
  8179 	 test ! -s conftest.err
  8180        } && test -s conftest.$ac_objext; then
  8181   ac_lo=0 ac_mid=0
  8182   while :; do
  8183     cat >conftest.$ac_ext <<_ACEOF
  8184 /* confdefs.h.  */
  8185 _ACEOF
  8186 cat confdefs.h >>conftest.$ac_ext
  8187 cat >>conftest.$ac_ext <<_ACEOF
  8188 /* end confdefs.h.  */
  8189 $ac_includes_default
  8190    typedef void * ac__type_sizeof_;
  8191 int
  8192 main ()
  8194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8195 test_array [0] = 0
  8198   return 0;
  8200 _ACEOF
  8201 rm -f conftest.$ac_objext
  8202 if { (ac_try="$ac_compile"
  8203 case "(($ac_try" in
  8204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8205   *) ac_try_echo=$ac_try;;
  8206 esac
  8207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8208   (eval "$ac_compile") 2>conftest.er1
  8209   ac_status=$?
  8210   grep -v '^ *+' conftest.er1 >conftest.err
  8211   rm -f conftest.er1
  8212   cat conftest.err >&5
  8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8214   (exit $ac_status); } && {
  8215 	 test -z "$ac_c_werror_flag" ||
  8216 	 test ! -s conftest.err
  8217        } && test -s conftest.$ac_objext; then
  8218   ac_hi=$ac_mid; break
  8219 else
  8220   echo "$as_me: failed program was:" >&5
  8221 sed 's/^/| /' conftest.$ac_ext >&5
  8223 	ac_lo=`expr $ac_mid + 1`
  8224 			if test $ac_lo -le $ac_mid; then
  8225 			  ac_lo= ac_hi=
  8226 			  break
  8227 			fi
  8228 			ac_mid=`expr 2 '*' $ac_mid + 1`
  8229 fi
  8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8232   done
  8233 else
  8234   echo "$as_me: failed program was:" >&5
  8235 sed 's/^/| /' conftest.$ac_ext >&5
  8237 	cat >conftest.$ac_ext <<_ACEOF
  8238 /* confdefs.h.  */
  8239 _ACEOF
  8240 cat confdefs.h >>conftest.$ac_ext
  8241 cat >>conftest.$ac_ext <<_ACEOF
  8242 /* end confdefs.h.  */
  8243 $ac_includes_default
  8244    typedef void * ac__type_sizeof_;
  8245 int
  8246 main ()
  8248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  8249 test_array [0] = 0
  8252   return 0;
  8254 _ACEOF
  8255 rm -f conftest.$ac_objext
  8256 if { (ac_try="$ac_compile"
  8257 case "(($ac_try" in
  8258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8259   *) ac_try_echo=$ac_try;;
  8260 esac
  8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8262   (eval "$ac_compile") 2>conftest.er1
  8263   ac_status=$?
  8264   grep -v '^ *+' conftest.er1 >conftest.err
  8265   rm -f conftest.er1
  8266   cat conftest.err >&5
  8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8268   (exit $ac_status); } && {
  8269 	 test -z "$ac_c_werror_flag" ||
  8270 	 test ! -s conftest.err
  8271        } && test -s conftest.$ac_objext; then
  8272   ac_hi=-1 ac_mid=-1
  8273   while :; do
  8274     cat >conftest.$ac_ext <<_ACEOF
  8275 /* confdefs.h.  */
  8276 _ACEOF
  8277 cat confdefs.h >>conftest.$ac_ext
  8278 cat >>conftest.$ac_ext <<_ACEOF
  8279 /* end confdefs.h.  */
  8280 $ac_includes_default
  8281    typedef void * ac__type_sizeof_;
  8282 int
  8283 main ()
  8285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  8286 test_array [0] = 0
  8289   return 0;
  8291 _ACEOF
  8292 rm -f conftest.$ac_objext
  8293 if { (ac_try="$ac_compile"
  8294 case "(($ac_try" in
  8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8296   *) ac_try_echo=$ac_try;;
  8297 esac
  8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8299   (eval "$ac_compile") 2>conftest.er1
  8300   ac_status=$?
  8301   grep -v '^ *+' conftest.er1 >conftest.err
  8302   rm -f conftest.er1
  8303   cat conftest.err >&5
  8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8305   (exit $ac_status); } && {
  8306 	 test -z "$ac_c_werror_flag" ||
  8307 	 test ! -s conftest.err
  8308        } && test -s conftest.$ac_objext; then
  8309   ac_lo=$ac_mid; break
  8310 else
  8311   echo "$as_me: failed program was:" >&5
  8312 sed 's/^/| /' conftest.$ac_ext >&5
  8314 	ac_hi=`expr '(' $ac_mid ')' - 1`
  8315 			if test $ac_mid -le $ac_hi; then
  8316 			  ac_lo= ac_hi=
  8317 			  break
  8318 			fi
  8319 			ac_mid=`expr 2 '*' $ac_mid`
  8320 fi
  8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8323   done
  8324 else
  8325   echo "$as_me: failed program was:" >&5
  8326 sed 's/^/| /' conftest.$ac_ext >&5
  8328 	ac_lo= ac_hi=
  8329 fi
  8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8332 fi
  8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8335 # Binary search between lo and hi bounds.
  8336 while test "x$ac_lo" != "x$ac_hi"; do
  8337   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8338   cat >conftest.$ac_ext <<_ACEOF
  8339 /* confdefs.h.  */
  8340 _ACEOF
  8341 cat confdefs.h >>conftest.$ac_ext
  8342 cat >>conftest.$ac_ext <<_ACEOF
  8343 /* end confdefs.h.  */
  8344 $ac_includes_default
  8345    typedef void * ac__type_sizeof_;
  8346 int
  8347 main ()
  8349 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8350 test_array [0] = 0
  8353   return 0;
  8355 _ACEOF
  8356 rm -f conftest.$ac_objext
  8357 if { (ac_try="$ac_compile"
  8358 case "(($ac_try" in
  8359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8360   *) ac_try_echo=$ac_try;;
  8361 esac
  8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8363   (eval "$ac_compile") 2>conftest.er1
  8364   ac_status=$?
  8365   grep -v '^ *+' conftest.er1 >conftest.err
  8366   rm -f conftest.er1
  8367   cat conftest.err >&5
  8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8369   (exit $ac_status); } && {
  8370 	 test -z "$ac_c_werror_flag" ||
  8371 	 test ! -s conftest.err
  8372        } && test -s conftest.$ac_objext; then
  8373   ac_hi=$ac_mid
  8374 else
  8375   echo "$as_me: failed program was:" >&5
  8376 sed 's/^/| /' conftest.$ac_ext >&5
  8378 	ac_lo=`expr '(' $ac_mid ')' + 1`
  8379 fi
  8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8382 done
  8383 case $ac_lo in
  8384 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  8385 '') if test "$ac_cv_type_void_p" = yes; then
  8386      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  8387 See \`config.log' for more details." >&5
  8388 echo "$as_me: error: cannot compute sizeof (void *)
  8389 See \`config.log' for more details." >&2;}
  8390    { (exit 77); exit 77; }; }
  8391    else
  8392      ac_cv_sizeof_void_p=0
  8393    fi ;;
  8394 esac
  8395 else
  8396   cat >conftest.$ac_ext <<_ACEOF
  8397 /* confdefs.h.  */
  8398 _ACEOF
  8399 cat confdefs.h >>conftest.$ac_ext
  8400 cat >>conftest.$ac_ext <<_ACEOF
  8401 /* end confdefs.h.  */
  8402 $ac_includes_default
  8403    typedef void * ac__type_sizeof_;
  8404 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8405 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8406 #include <stdio.h>
  8407 #include <stdlib.h>
  8408 int
  8409 main ()
  8412   FILE *f = fopen ("conftest.val", "w");
  8413   if (! f)
  8414     return 1;
  8415   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  8417       long int i = longval ();
  8418       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8419 	return 1;
  8420       fprintf (f, "%ld\n", i);
  8422   else
  8424       unsigned long int i = ulongval ();
  8425       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8426 	return 1;
  8427       fprintf (f, "%lu\n", i);
  8429   return ferror (f) || fclose (f) != 0;
  8432   return 0;
  8434 _ACEOF
  8435 rm -f conftest$ac_exeext
  8436 if { (ac_try="$ac_link"
  8437 case "(($ac_try" in
  8438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8439   *) ac_try_echo=$ac_try;;
  8440 esac
  8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8442   (eval "$ac_link") 2>&5
  8443   ac_status=$?
  8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8446   { (case "(($ac_try" in
  8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8448   *) ac_try_echo=$ac_try;;
  8449 esac
  8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8451   (eval "$ac_try") 2>&5
  8452   ac_status=$?
  8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8454   (exit $ac_status); }; }; then
  8455   ac_cv_sizeof_void_p=`cat conftest.val`
  8456 else
  8457   echo "$as_me: program exited with status $ac_status" >&5
  8458 echo "$as_me: failed program was:" >&5
  8459 sed 's/^/| /' conftest.$ac_ext >&5
  8461 ( exit $ac_status )
  8462 if test "$ac_cv_type_void_p" = yes; then
  8463      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  8464 See \`config.log' for more details." >&5
  8465 echo "$as_me: error: cannot compute sizeof (void *)
  8466 See \`config.log' for more details." >&2;}
  8467    { (exit 77); exit 77; }; }
  8468    else
  8469      ac_cv_sizeof_void_p=0
  8470    fi
  8471 fi
  8472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8473 fi
  8474 rm -f conftest.val
  8475 fi
  8476 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  8477 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
  8481 cat >>confdefs.h <<_ACEOF
  8482 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  8483 _ACEOF
  8486 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  8487 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  8488 if test "${ac_cv_header_stdc+set}" = set; then
  8489   echo $ECHO_N "(cached) $ECHO_C" >&6
  8490 else
  8491   cat >conftest.$ac_ext <<_ACEOF
  8492 /* confdefs.h.  */
  8493 _ACEOF
  8494 cat confdefs.h >>conftest.$ac_ext
  8495 cat >>conftest.$ac_ext <<_ACEOF
  8496 /* end confdefs.h.  */
  8497 #include <stdlib.h>
  8498 #include <stdarg.h>
  8499 #include <string.h>
  8500 #include <float.h>
  8502 int
  8503 main ()
  8507   return 0;
  8509 _ACEOF
  8510 rm -f conftest.$ac_objext
  8511 if { (ac_try="$ac_compile"
  8512 case "(($ac_try" in
  8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8514   *) ac_try_echo=$ac_try;;
  8515 esac
  8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8517   (eval "$ac_compile") 2>conftest.er1
  8518   ac_status=$?
  8519   grep -v '^ *+' conftest.er1 >conftest.err
  8520   rm -f conftest.er1
  8521   cat conftest.err >&5
  8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8523   (exit $ac_status); } && {
  8524 	 test -z "$ac_c_werror_flag" ||
  8525 	 test ! -s conftest.err
  8526        } && test -s conftest.$ac_objext; then
  8527   ac_cv_header_stdc=yes
  8528 else
  8529   echo "$as_me: failed program was:" >&5
  8530 sed 's/^/| /' conftest.$ac_ext >&5
  8532 	ac_cv_header_stdc=no
  8533 fi
  8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8537 if test $ac_cv_header_stdc = yes; then
  8538   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8539   cat >conftest.$ac_ext <<_ACEOF
  8540 /* confdefs.h.  */
  8541 _ACEOF
  8542 cat confdefs.h >>conftest.$ac_ext
  8543 cat >>conftest.$ac_ext <<_ACEOF
  8544 /* end confdefs.h.  */
  8545 #include <string.h>
  8547 _ACEOF
  8548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8549   $EGREP "memchr" >/dev/null 2>&1; then
  8551 else
  8552   ac_cv_header_stdc=no
  8553 fi
  8554 rm -f conftest*
  8556 fi
  8558 if test $ac_cv_header_stdc = yes; then
  8559   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8560   cat >conftest.$ac_ext <<_ACEOF
  8561 /* confdefs.h.  */
  8562 _ACEOF
  8563 cat confdefs.h >>conftest.$ac_ext
  8564 cat >>conftest.$ac_ext <<_ACEOF
  8565 /* end confdefs.h.  */
  8566 #include <stdlib.h>
  8568 _ACEOF
  8569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8570   $EGREP "free" >/dev/null 2>&1; then
  8572 else
  8573   ac_cv_header_stdc=no
  8574 fi
  8575 rm -f conftest*
  8577 fi
  8579 if test $ac_cv_header_stdc = yes; then
  8580   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8581   if test "$cross_compiling" = yes; then
  8583 else
  8584   cat >conftest.$ac_ext <<_ACEOF
  8585 /* confdefs.h.  */
  8586 _ACEOF
  8587 cat confdefs.h >>conftest.$ac_ext
  8588 cat >>conftest.$ac_ext <<_ACEOF
  8589 /* end confdefs.h.  */
  8590 #include <ctype.h>
  8591 #include <stdlib.h>
  8592 #if ((' ' & 0x0FF) == 0x020)
  8593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8595 #else
  8596 # define ISLOWER(c) \
  8597 		   (('a' <= (c) && (c) <= 'i') \
  8598 		     || ('j' <= (c) && (c) <= 'r') \
  8599 		     || ('s' <= (c) && (c) <= 'z'))
  8600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8601 #endif
  8603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8604 int
  8605 main ()
  8607   int i;
  8608   for (i = 0; i < 256; i++)
  8609     if (XOR (islower (i), ISLOWER (i))
  8610 	|| toupper (i) != TOUPPER (i))
  8611       return 2;
  8612   return 0;
  8614 _ACEOF
  8615 rm -f conftest$ac_exeext
  8616 if { (ac_try="$ac_link"
  8617 case "(($ac_try" in
  8618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8619   *) ac_try_echo=$ac_try;;
  8620 esac
  8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8622   (eval "$ac_link") 2>&5
  8623   ac_status=$?
  8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8626   { (case "(($ac_try" in
  8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8628   *) ac_try_echo=$ac_try;;
  8629 esac
  8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8631   (eval "$ac_try") 2>&5
  8632   ac_status=$?
  8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8634   (exit $ac_status); }; }; then
  8636 else
  8637   echo "$as_me: program exited with status $ac_status" >&5
  8638 echo "$as_me: failed program was:" >&5
  8639 sed 's/^/| /' conftest.$ac_ext >&5
  8641 ( exit $ac_status )
  8642 ac_cv_header_stdc=no
  8643 fi
  8644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8645 fi
  8648 fi
  8649 fi
  8650 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8651 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  8652 if test $ac_cv_header_stdc = yes; then
  8654 cat >>confdefs.h <<\_ACEOF
  8655 #define STDC_HEADERS 1
  8656 _ACEOF
  8658 fi
  8662 depcc="$OBJC" am_compiler_list='gcc3 gcc'
  8664 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  8665 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  8666 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
  8667   echo $ECHO_N "(cached) $ECHO_C" >&6
  8668 else
  8669   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8670   # We make a subdir and do the tests there.  Otherwise we can end up
  8671   # making bogus files that we don't know about and never remove.  For
  8672   # instance it was reported that on HP-UX the gcc test will end up
  8673   # making a dummy file named `D' -- because `-MD' means `put the output
  8674   # in D'.
  8675   mkdir conftest.dir
  8676   # Copy depcomp to subdir because otherwise we won't find it if we're
  8677   # using a relative directory.
  8678   cp "$am_depcomp" conftest.dir
  8679   cd conftest.dir
  8680   # We will build objects and dependencies in a subdirectory because
  8681   # it helps to detect inapplicable dependency modes.  For instance
  8682   # both Tru64's cc and ICC support -MD to output dependencies as a
  8683   # side effect of compilation, but ICC will put the dependencies in
  8684   # the current directory while Tru64 will put them in the object
  8685   # directory.
  8686   mkdir sub
  8688   am_cv_OBJC_dependencies_compiler_type=none
  8689   if test "$am_compiler_list" = ""; then
  8690      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  8691   fi
  8692   for depmode in $am_compiler_list; do
  8693     # Setup a source with many dependencies, because some compilers
  8694     # like to wrap large dependency lists on column 80 (with \), and
  8695     # we should not choose a depcomp mode which is confused by this.
  8697     # We need to recreate these files for each test, as the compiler may
  8698     # overwrite some of them when testing with obscure command lines.
  8699     # This happens at least with the AIX C compiler.
  8700     : > sub/conftest.c
  8701     for i in 1 2 3 4 5 6; do
  8702       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8703       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8704       # Solaris 8's {/usr,}/bin/sh.
  8705       touch sub/conftst$i.h
  8706     done
  8707     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8709     case $depmode in
  8710     nosideeffect)
  8711       # after this tag, mechanisms are not by side-effect, so they'll
  8712       # only be used when explicitly requested
  8713       if test "x$enable_dependency_tracking" = xyes; then
  8714 	continue
  8715       else
  8716 	break
  8717       fi
  8718       ;;
  8719     none) break ;;
  8720     esac
  8721     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8722     # mode.  It turns out that the SunPro C++ compiler does not properly
  8723     # handle `-M -o', and we need to detect this.
  8724     if depmode=$depmode \
  8725        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  8726        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8727        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  8728          >/dev/null 2>conftest.err &&
  8729        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8730        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  8731        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8732       # icc doesn't choke on unknown options, it will just issue warnings
  8733       # or remarks (even with -Werror).  So we grep stderr for any message
  8734       # that says an option was ignored or not supported.
  8735       # When given -MP, icc 7.0 and 7.1 complain thusly:
  8736       #   icc: Command line warning: ignoring option '-M'; no argument required
  8737       # The diagnosis changed in icc 8.0:
  8738       #   icc: Command line remark: option '-MP' not supported
  8739       if (grep 'ignoring option' conftest.err ||
  8740           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8741         am_cv_OBJC_dependencies_compiler_type=$depmode
  8742         break
  8743       fi
  8744     fi
  8745   done
  8747   cd ..
  8748   rm -rf conftest.dir
  8749 else
  8750   am_cv_OBJC_dependencies_compiler_type=none
  8751 fi
  8753 fi
  8754 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
  8755 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
  8756 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
  8760 if
  8761   test "x$enable_dependency_tracking" != xno \
  8762   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  8763   am__fastdepOBJC_TRUE=
  8764   am__fastdepOBJC_FALSE='#'
  8765 else
  8766   am__fastdepOBJC_TRUE='#'
  8767   am__fastdepOBJC_FALSE=
  8768 fi
  8772 # Extract the first word of "pod2man", so it can be a program name with args.
  8773 set dummy pod2man; ac_word=$2
  8774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8776 if test "${ac_cv_path_POD2MAN+set}" = set; then
  8777   echo $ECHO_N "(cached) $ECHO_C" >&6
  8778 else
  8779   case $POD2MAN in
  8780   [\\/]* | ?:[\\/]*)
  8781   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  8782   ;;
  8783   *)
  8784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8785 for as_dir in $PATH
  8786 do
  8787   IFS=$as_save_IFS
  8788   test -z "$as_dir" && as_dir=.
  8789   for ac_exec_ext in '' $ac_executable_extensions; do
  8790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8791     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  8792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8793     break 2
  8794   fi
  8795 done
  8796 done
  8797 IFS=$as_save_IFS
  8799   ;;
  8800 esac
  8801 fi
  8802 POD2MAN=$ac_cv_path_POD2MAN
  8803 if test -n "$POD2MAN"; then
  8804   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
  8805 echo "${ECHO_T}$POD2MAN" >&6; }
  8806 else
  8807   { echo "$as_me:$LINENO: result: no" >&5
  8808 echo "${ECHO_T}no" >&6; }
  8809 fi
  8812 # Extract the first word of "pod2html", so it can be a program name with args.
  8813 set dummy pod2html; ac_word=$2
  8814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8816 if test "${ac_cv_path_POD2HTML+set}" = set; then
  8817   echo $ECHO_N "(cached) $ECHO_C" >&6
  8818 else
  8819   case $POD2HTML in
  8820   [\\/]* | ?:[\\/]*)
  8821   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  8822   ;;
  8823   *)
  8824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8825 for as_dir in $PATH
  8826 do
  8827   IFS=$as_save_IFS
  8828   test -z "$as_dir" && as_dir=.
  8829   for ac_exec_ext in '' $ac_executable_extensions; do
  8830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8831     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  8832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8833     break 2
  8834   fi
  8835 done
  8836 done
  8837 IFS=$as_save_IFS
  8839   ;;
  8840 esac
  8841 fi
  8842 POD2HTML=$ac_cv_path_POD2HTML
  8843 if test -n "$POD2HTML"; then
  8844   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
  8845 echo "${ECHO_T}$POD2HTML" >&6; }
  8846 else
  8847   { echo "$as_me:$LINENO: result: no" >&5
  8848 echo "${ECHO_T}no" >&6; }
  8849 fi
  8854 cat >>confdefs.h <<_ACEOF
  8855 #define BUILD_SED_PROG "${SED}"
  8856 _ACEOF
  8859 cat >>confdefs.h <<_ACEOF
  8860 #define BUILD_CPP_PROG "${CPP}"
  8861 _ACEOF
  8865 # Check whether --enable-strict-warn was given.
  8866 if test "${enable_strict_warn+set}" = set; then
  8867   enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
  8868       enable_strictwarn=yes
  8869     fi
  8870 fi
  8872 # Check whether --enable-translator was given.
  8873 if test "${enable_translator+set}" = set; then
  8874   enableval=$enable_translator; true
  8875 else
  8876   enable_translator=yes
  8877 fi
  8879 # Check whether --enable-optimized was given.
  8880 if test "${enable_optimized+set}" = set; then
  8881   enableval=$enable_optimized; true
  8882 else
  8883   enable_optimized=yes
  8884 fi
  8886 # Check whether --enable-shared was given.
  8887 if test "${enable_shared+set}" = set; then
  8888   enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
  8889 else
  8890   enable_shared=cond
  8891 fi
  8893 # Check whether --enable-profiled was given.
  8894 if test "${enable_profiled+set}" = set; then
  8895   enableval=$enable_profiled; if test "$enableval" == "yes"; then
  8896       enable_profiled=yes;
  8897     fi
  8898 fi
  8900 # Check whether --enable-trace was given.
  8901 if test "${enable_trace+set}" = set; then
  8902   enableval=$enable_trace; if test "$enableval" == "yes"; then
  8904 cat >>confdefs.h <<\_ACEOF
  8905 #define ENABLE_TRACE_IO 1
  8906 _ACEOF
  8908     fi
  8909 fi
  8911 # Check whether --enable-watch was given.
  8912 if test "${enable_watch+set}" = set; then
  8913   enableval=$enable_watch; if test "$enableval" == "yes"; then
  8915 cat >>confdefs.h <<\_ACEOF
  8916 #define ENABLE_WATCH 1
  8917 _ACEOF
  8919    fi
  8920 fi
  8922 # Check whether --enable-sh4stats was given.
  8923 if test "${enable_sh4stats+set}" = set; then
  8924   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  8926 cat >>confdefs.h <<\_ACEOF
  8927 #define ENABLE_SH4STATS 1
  8928 _ACEOF
  8930     fi
  8931 fi
  8934 # Check whether --with-osmesa was given.
  8935 if test "${with_osmesa+set}" = set; then
  8936   withval=$with_osmesa;
  8937 else
  8938   with_osmesa=no
  8939 fi
  8942 # Check whether --with-gtk was given.
  8943 if test "${with_gtk+set}" = set; then
  8944   withval=$with_gtk; with_gtk=yes
  8945 else
  8946   with_gtk=x11
  8947 fi
  8950 # Check whether --with-esd was given.
  8951 if test "${with_esd+set}" = set; then
  8952   withval=$with_esd;
  8953 fi
  8956 # Check whether --with-pulse was given.
  8957 if test "${with_pulse+set}" = set; then
  8958   withval=$with_pulse;
  8959 fi
  8962 # Check whether --with-sdl was given.
  8963 if test "${with_sdl+set}" = set; then
  8964   withval=$with_sdl;
  8965 fi
  8970 if test "$ANDROID_BUILD" = "yes"; then
  8971    with_gtk=no;
  8972    EXTRA_OUTPUT_FILES="src/android/build.properties"
  8973    LIBS="-lGLESv2 $LIBS"
  8975 cat >>confdefs.h <<\_ACEOF
  8976 #define HAVE_GLES2 1
  8977 _ACEOF
  8979    with_sdl=no
  8980 else
  8983 ac_ext=m
  8984 ac_cpp='$OBJCPP $CPPFLAGS'
  8985 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8986 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8987 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  8988 if test -n "$ac_tool_prefix"; then
  8989   for ac_prog in gcc objcc objc cc CC
  8990   do
  8991     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8995 if test "${ac_cv_prog_OBJC+set}" = set; then
  8996   echo $ECHO_N "(cached) $ECHO_C" >&6
  8997 else
  8998   if test -n "$OBJC"; then
  8999   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  9000 else
  9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9002 for as_dir in $PATH
  9003 do
  9004   IFS=$as_save_IFS
  9005   test -z "$as_dir" && as_dir=.
  9006   for ac_exec_ext in '' $ac_executable_extensions; do
  9007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9008     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  9009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9010     break 2
  9011   fi
  9012 done
  9013 done
  9014 IFS=$as_save_IFS
  9016 fi
  9017 fi
  9018 OBJC=$ac_cv_prog_OBJC
  9019 if test -n "$OBJC"; then
  9020   { echo "$as_me:$LINENO: result: $OBJC" >&5
  9021 echo "${ECHO_T}$OBJC" >&6; }
  9022 else
  9023   { echo "$as_me:$LINENO: result: no" >&5
  9024 echo "${ECHO_T}no" >&6; }
  9025 fi
  9028     test -n "$OBJC" && break
  9029   done
  9030 fi
  9031 if test -z "$OBJC"; then
  9032   ac_ct_OBJC=$OBJC
  9033   for ac_prog in gcc objcc objc cc CC
  9034 do
  9035   # Extract the first word of "$ac_prog", so it can be a program name with args.
  9036 set dummy $ac_prog; ac_word=$2
  9037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9039 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  9040   echo $ECHO_N "(cached) $ECHO_C" >&6
  9041 else
  9042   if test -n "$ac_ct_OBJC"; then
  9043   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  9044 else
  9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9046 for as_dir in $PATH
  9047 do
  9048   IFS=$as_save_IFS
  9049   test -z "$as_dir" && as_dir=.
  9050   for ac_exec_ext in '' $ac_executable_extensions; do
  9051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9052     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  9053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9054     break 2
  9055   fi
  9056 done
  9057 done
  9058 IFS=$as_save_IFS
  9060 fi
  9061 fi
  9062 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  9063 if test -n "$ac_ct_OBJC"; then
  9064   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  9065 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  9066 else
  9067   { echo "$as_me:$LINENO: result: no" >&5
  9068 echo "${ECHO_T}no" >&6; }
  9069 fi
  9072   test -n "$ac_ct_OBJC" && break
  9073 done
  9075   if test "x$ac_ct_OBJC" = x; then
  9076     OBJC="gcc"
  9077   else
  9078     case $cross_compiling:$ac_tool_warned in
  9079 yes:)
  9080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  9081 whose name does not start with the host triplet.  If you think this
  9082 configuration is useful to you, please write to autoconf@gnu.org." >&5
  9083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  9084 whose name does not start with the host triplet.  If you think this
  9085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  9086 ac_tool_warned=yes ;;
  9087 esac
  9088     OBJC=$ac_ct_OBJC
  9089   fi
  9090 fi
  9092 # Provide some information about the compiler.
  9093 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  9094 ac_compiler=`set X $ac_compile; echo $2`
  9095 { (ac_try="$ac_compiler --version >&5"
  9096 case "(($ac_try" in
  9097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9098   *) ac_try_echo=$ac_try;;
  9099 esac
  9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9101   (eval "$ac_compiler --version >&5") 2>&5
  9102   ac_status=$?
  9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9104   (exit $ac_status); }
  9105 { (ac_try="$ac_compiler -v >&5"
  9106 case "(($ac_try" in
  9107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9108   *) ac_try_echo=$ac_try;;
  9109 esac
  9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9111   (eval "$ac_compiler -v >&5") 2>&5
  9112   ac_status=$?
  9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9114   (exit $ac_status); }
  9115 { (ac_try="$ac_compiler -V >&5"
  9116 case "(($ac_try" in
  9117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9118   *) ac_try_echo=$ac_try;;
  9119 esac
  9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9121   (eval "$ac_compiler -V >&5") 2>&5
  9122   ac_status=$?
  9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9124   (exit $ac_status); }
  9126 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  9127 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  9128 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  9129   echo $ECHO_N "(cached) $ECHO_C" >&6
  9130 else
  9131   cat >conftest.$ac_ext <<_ACEOF
  9132 /* confdefs.h.  */
  9133 _ACEOF
  9134 cat confdefs.h >>conftest.$ac_ext
  9135 cat >>conftest.$ac_ext <<_ACEOF
  9136 /* end confdefs.h.  */
  9138 int
  9139 main ()
  9141 #ifndef __GNUC__
  9142        choke me
  9143 #endif
  9146   return 0;
  9148 _ACEOF
  9149 rm -f conftest.$ac_objext
  9150 if { (ac_try="$ac_compile"
  9151 case "(($ac_try" in
  9152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9153   *) ac_try_echo=$ac_try;;
  9154 esac
  9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9156   (eval "$ac_compile") 2>conftest.er1
  9157   ac_status=$?
  9158   grep -v '^ *+' conftest.er1 >conftest.err
  9159   rm -f conftest.er1
  9160   cat conftest.err >&5
  9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9162   (exit $ac_status); } && {
  9163 	 test -z "$ac_objc_werror_flag" ||
  9164 	 test ! -s conftest.err
  9165        } && test -s conftest.$ac_objext; then
  9166   ac_compiler_gnu=yes
  9167 else
  9168   echo "$as_me: failed program was:" >&5
  9169 sed 's/^/| /' conftest.$ac_ext >&5
  9171 	ac_compiler_gnu=no
  9172 fi
  9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9175 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  9177 fi
  9178 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  9179 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  9180 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  9181 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  9182 ac_save_OBJCFLAGS=$OBJCFLAGS
  9183 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  9184 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  9185 if test "${ac_cv_prog_objc_g+set}" = set; then
  9186   echo $ECHO_N "(cached) $ECHO_C" >&6
  9187 else
  9188   ac_save_objc_werror_flag=$ac_objc_werror_flag
  9189    ac_objc_werror_flag=yes
  9190    ac_cv_prog_objc_g=no
  9191    OBJCFLAGS="-g"
  9192    cat >conftest.$ac_ext <<_ACEOF
  9193 /* confdefs.h.  */
  9194 _ACEOF
  9195 cat confdefs.h >>conftest.$ac_ext
  9196 cat >>conftest.$ac_ext <<_ACEOF
  9197 /* end confdefs.h.  */
  9199 int
  9200 main ()
  9204   return 0;
  9206 _ACEOF
  9207 rm -f conftest.$ac_objext
  9208 if { (ac_try="$ac_compile"
  9209 case "(($ac_try" in
  9210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9211   *) ac_try_echo=$ac_try;;
  9212 esac
  9213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9214   (eval "$ac_compile") 2>conftest.er1
  9215   ac_status=$?
  9216   grep -v '^ *+' conftest.er1 >conftest.err
  9217   rm -f conftest.er1
  9218   cat conftest.err >&5
  9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9220   (exit $ac_status); } && {
  9221 	 test -z "$ac_objc_werror_flag" ||
  9222 	 test ! -s conftest.err
  9223        } && test -s conftest.$ac_objext; then
  9224   ac_cv_prog_objc_g=yes
  9225 else
  9226   echo "$as_me: failed program was:" >&5
  9227 sed 's/^/| /' conftest.$ac_ext >&5
  9229 	OBJCFLAGS=""
  9230       cat >conftest.$ac_ext <<_ACEOF
  9231 /* confdefs.h.  */
  9232 _ACEOF
  9233 cat confdefs.h >>conftest.$ac_ext
  9234 cat >>conftest.$ac_ext <<_ACEOF
  9235 /* end confdefs.h.  */
  9237 int
  9238 main ()
  9242   return 0;
  9244 _ACEOF
  9245 rm -f conftest.$ac_objext
  9246 if { (ac_try="$ac_compile"
  9247 case "(($ac_try" in
  9248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9249   *) ac_try_echo=$ac_try;;
  9250 esac
  9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9252   (eval "$ac_compile") 2>conftest.er1
  9253   ac_status=$?
  9254   grep -v '^ *+' conftest.er1 >conftest.err
  9255   rm -f conftest.er1
  9256   cat conftest.err >&5
  9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9258   (exit $ac_status); } && {
  9259 	 test -z "$ac_objc_werror_flag" ||
  9260 	 test ! -s conftest.err
  9261        } && test -s conftest.$ac_objext; then
  9263 else
  9264   echo "$as_me: failed program was:" >&5
  9265 sed 's/^/| /' conftest.$ac_ext >&5
  9267 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  9268 	 OBJCFLAGS="-g"
  9269 	 cat >conftest.$ac_ext <<_ACEOF
  9270 /* confdefs.h.  */
  9271 _ACEOF
  9272 cat confdefs.h >>conftest.$ac_ext
  9273 cat >>conftest.$ac_ext <<_ACEOF
  9274 /* end confdefs.h.  */
  9276 int
  9277 main ()
  9281   return 0;
  9283 _ACEOF
  9284 rm -f conftest.$ac_objext
  9285 if { (ac_try="$ac_compile"
  9286 case "(($ac_try" in
  9287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9288   *) ac_try_echo=$ac_try;;
  9289 esac
  9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9291   (eval "$ac_compile") 2>conftest.er1
  9292   ac_status=$?
  9293   grep -v '^ *+' conftest.er1 >conftest.err
  9294   rm -f conftest.er1
  9295   cat conftest.err >&5
  9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9297   (exit $ac_status); } && {
  9298 	 test -z "$ac_objc_werror_flag" ||
  9299 	 test ! -s conftest.err
  9300        } && test -s conftest.$ac_objext; then
  9301   ac_cv_prog_objc_g=yes
  9302 else
  9303   echo "$as_me: failed program was:" >&5
  9304 sed 's/^/| /' conftest.$ac_ext >&5
  9307 fi
  9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9310 fi
  9312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9313 fi
  9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9316    ac_objc_werror_flag=$ac_save_objc_werror_flag
  9317 fi
  9318 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  9319 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  9320 if test "$ac_test_OBJCFLAGS" = set; then
  9321   OBJCFLAGS=$ac_save_OBJCFLAGS
  9322 elif test $ac_cv_prog_objc_g = yes; then
  9323   if test "$GOBJC" = yes; then
  9324     OBJCFLAGS="-g -O2"
  9325   else
  9326     OBJCFLAGS="-g"
  9327   fi
  9328 else
  9329   if test "$GOBJC" = yes; then
  9330     OBJCFLAGS="-O2"
  9331   else
  9332     OBJCFLAGS=
  9333   fi
  9334 fi
  9335 ac_ext=c
  9336 ac_cpp='$CPP $CPPFLAGS'
  9337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9341 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
  9342 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
  9343 ac_ext=m
  9344 ac_cpp='$OBJCPP $CPPFLAGS'
  9345 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9346 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9347 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9348 cat >conftest.$ac_ext <<_ACEOF
  9349 /* confdefs.h.  */
  9350 _ACEOF
  9351 cat confdefs.h >>conftest.$ac_ext
  9352 cat >>conftest.$ac_ext <<_ACEOF
  9353 /* end confdefs.h.  */
  9354 @interface Foo @end
  9355 int
  9356 main ()
  9360   return 0;
  9362 _ACEOF
  9363 rm -f conftest.$ac_objext
  9364 if { (ac_try="$ac_compile"
  9365 case "(($ac_try" in
  9366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9367   *) ac_try_echo=$ac_try;;
  9368 esac
  9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9370   (eval "$ac_compile") 2>conftest.er1
  9371   ac_status=$?
  9372   grep -v '^ *+' conftest.er1 >conftest.err
  9373   rm -f conftest.er1
  9374   cat conftest.err >&5
  9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9376   (exit $ac_status); } && {
  9377 	 test -z "$ac_objc_werror_flag" ||
  9378 	 test ! -s conftest.err
  9379        } && test -s conftest.$ac_objext; then
  9380   { echo "$as_me:$LINENO: result: yes" >&5
  9381 echo "${ECHO_T}yes" >&6; }
  9383    { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  9384 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
  9385 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  9386   echo $ECHO_N "(cached) $ECHO_C" >&6
  9387 else
  9388   cat >conftest.$ac_ext <<_ACEOF
  9389 /* confdefs.h.  */
  9390 _ACEOF
  9391 cat confdefs.h >>conftest.$ac_ext
  9392 cat >>conftest.$ac_ext <<_ACEOF
  9393 /* end confdefs.h.  */
  9394 $ac_includes_default
  9396 #include <Cocoa/Cocoa.h>
  9397 _ACEOF
  9398 rm -f conftest.$ac_objext
  9399 if { (ac_try="$ac_compile"
  9400 case "(($ac_try" in
  9401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9402   *) ac_try_echo=$ac_try;;
  9403 esac
  9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9405   (eval "$ac_compile") 2>conftest.er1
  9406   ac_status=$?
  9407   grep -v '^ *+' conftest.er1 >conftest.err
  9408   rm -f conftest.er1
  9409   cat conftest.err >&5
  9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9411   (exit $ac_status); } && {
  9412 	 test -z "$ac_objc_werror_flag" ||
  9413 	 test ! -s conftest.err
  9414        } && test -s conftest.$ac_objext; then
  9415   ac_cv_header_Cocoa_Cocoa_h=yes
  9416 else
  9417   echo "$as_me: failed program was:" >&5
  9418 sed 's/^/| /' conftest.$ac_ext >&5
  9420 	ac_cv_header_Cocoa_Cocoa_h=no
  9421 fi
  9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9424 fi
  9425 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  9426 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  9427 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  9429       HAVE_COCOA='yes'
  9430       APPLE_BUILD='yes'
  9431       LIBS="$LIBS -framework AppKit -framework Carbon"
  9432       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"
  9433       LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
  9434       LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
  9436 cat >>confdefs.h <<\_ACEOF
  9437 #define HAVE_COCOA 1
  9438 _ACEOF
  9441 cat >>confdefs.h <<\_ACEOF
  9442 #define APPLE_BUILD 1
  9443 _ACEOF
  9445       if test "x$with_gtk" = "xx11"; then
  9446         with_gtk=no
  9447       fi
  9449 fi
  9454 { echo "$as_me:$LINENO: checking OBJC version" >&5
  9455 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
  9456 if test -n "$OBJC"; then
  9457   _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
  9458   if test -n "$_GOBJC_VERSION"; then
  9459     { echo "$as_me:$LINENO: result: GCC" >&5
  9460 echo "${ECHO_T}GCC" >&6; }
  9461       OBJCOPT="-O2"
  9462                      OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
  9463   else
  9464     { echo "$as_me:$LINENO: result: Unknown" >&5
  9465 echo "${ECHO_T}Unknown" >&6; }
  9466       OBJCOPT="-O2"
  9467   fi
  9468 else
  9469   { echo "$as_me:$LINENO: result: None" >&5
  9470 echo "${ECHO_T}None" >&6; }
  9472 fi
  9475 ac_ext=m
  9476 ac_cpp='$OBJCPP $CPPFLAGS'
  9477 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9478 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9479 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9481 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
  9482 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
  9483 save_OBJCFLAGS="$OBJCFLAGS"
  9484 OBJCFLAGS="-msse2 $OBJCFLAGS"
  9485 cat >conftest.$ac_ext <<_ACEOF
  9487   /* confdefs.h.  */
  9488 _ACEOF
  9489 cat confdefs.h >>conftest.$ac_ext
  9490 cat >>conftest.$ac_ext <<_ACEOF
  9491 /* end confdefs.h.  */
  9492 int main() { return 0; }
  9493 _ACEOF
  9494 rm -f conftest.$ac_objext
  9495 if { (ac_try="$ac_compile"
  9496 case "(($ac_try" in
  9497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9498   *) ac_try_echo=$ac_try;;
  9499 esac
  9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9501   (eval "$ac_compile") 2>conftest.er1
  9502   ac_status=$?
  9503   grep -v '^ *+' conftest.er1 >conftest.err
  9504   rm -f conftest.er1
  9505   cat conftest.err >&5
  9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9507   (exit $ac_status); } && {
  9508 	 test -z "$ac_objc_werror_flag" ||
  9509 	 test ! -s conftest.err
  9510        } && test -s conftest.$ac_objext; then
  9512    { echo "$as_me:$LINENO: result: yes" >&5
  9513 echo "${ECHO_T}yes" >&6; }
  9515 else
  9516   echo "$as_me: failed program was:" >&5
  9517 sed 's/^/| /' conftest.$ac_ext >&5
  9520    OBJCFLAGS="$save_OBJCFLAGS"
  9521    { echo "$as_me:$LINENO: result: no" >&5
  9522 echo "${ECHO_T}no" >&6; }
  9524 fi
  9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9527 ac_ext=m
  9528 ac_cpp='$OBJCPP $CPPFLAGS'
  9529 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9530 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9531 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9535 ac_ext=m
  9536 ac_cpp='$OBJCPP $CPPFLAGS'
  9537 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9538 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9539 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9541 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
  9542 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
  9543 save_OBJCFLAGS="$OBJCFLAGS"
  9544 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
  9545 cat >conftest.$ac_ext <<_ACEOF
  9547   /* confdefs.h.  */
  9548 _ACEOF
  9549 cat confdefs.h >>conftest.$ac_ext
  9550 cat >>conftest.$ac_ext <<_ACEOF
  9551 /* end confdefs.h.  */
  9552 int main() { return 0; }
  9553 _ACEOF
  9554 rm -f conftest.$ac_objext
  9555 if { (ac_try="$ac_compile"
  9556 case "(($ac_try" in
  9557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9558   *) ac_try_echo=$ac_try;;
  9559 esac
  9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9561   (eval "$ac_compile") 2>conftest.er1
  9562   ac_status=$?
  9563   grep -v '^ *+' conftest.er1 >conftest.err
  9564   rm -f conftest.er1
  9565   cat conftest.err >&5
  9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9567   (exit $ac_status); } && {
  9568 	 test -z "$ac_objc_werror_flag" ||
  9569 	 test ! -s conftest.err
  9570        } && test -s conftest.$ac_objext; then
  9572    { echo "$as_me:$LINENO: result: yes" >&5
  9573 echo "${ECHO_T}yes" >&6; }
  9575 else
  9576   echo "$as_me: failed program was:" >&5
  9577 sed 's/^/| /' conftest.$ac_ext >&5
  9580    OBJCFLAGS="$save_OBJCFLAGS"
  9581    { echo "$as_me:$LINENO: result: no" >&5
  9582 echo "${ECHO_T}no" >&6; }
  9584 fi
  9586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9587 ac_ext=m
  9588 ac_cpp='$OBJCPP $CPPFLAGS'
  9589 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9590 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9591 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9595 else
  9596   echo "$as_me: failed program was:" >&5
  9597 sed 's/^/| /' conftest.$ac_ext >&5
  9599 	{ echo "$as_me:$LINENO: result: No" >&5
  9600 echo "${ECHO_T}No" >&6; }
  9602 fi
  9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
  9605 ac_ext=c
  9606 ac_cpp='$CPP $CPPFLAGS'
  9607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9612 fi
  9616 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  9617   GUI_COCOA_TRUE=
  9618   GUI_COCOA_FALSE='#'
  9619 else
  9620   GUI_COCOA_TRUE='#'
  9621   GUI_COCOA_FALSE=
  9622 fi
  9624 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
  9626 cat >>confdefs.h <<\_ACEOF
  9627 #define OSX_BUNDLE 1
  9628 _ACEOF
  9630 fi
  9632 CFLAGS_FOR_BUILD="-O2 -std=c99"
  9633 CFLAGS="-g -fexceptions"
  9634 OBJCFLAGS="-g -fexceptions"
  9636 cat >>confdefs.h <<\_ACEOF
  9637 #define HAVE_EXCEPTIONS 1
  9638 _ACEOF
  9641 STDCFLAG="-std=c99"
  9643 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
  9644 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
  9645 { echo "$as_me:$LINENO: checking CC version" >&5
  9646 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
  9647 if test -n "$_ICC_VERSION"; then
  9648    { echo "$as_me:$LINENO: result: ICC" >&5
  9649 echo "${ECHO_T}ICC" >&6; }
  9650      CCOPT="$CFLAGS -fast"
  9651                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  9652 elif test -n "$_GCC_VERSION"; then
  9653    { echo "$as_me:$LINENO: result: GCC" >&5
  9654 echo "${ECHO_T}GCC" >&6; }
  9655      CCOPT="-O2"
  9656                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  9657 else
  9658    { echo "$as_me:$LINENO: result: Unknown" >&5
  9659 echo "${ECHO_T}Unknown" >&6; }
  9660      CCOPT="$CFLAGS -O2"
  9661 fi
  9664 ac_ext=c
  9665 ac_cpp='$CPP $CPPFLAGS'
  9666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9670 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
  9671 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
  9672 save_CFLAGS="$CFLAGS"
  9673 CFLAGS="-msse2 $CFLAGS"
  9674 cat >conftest.$ac_ext <<_ACEOF
  9676   /* confdefs.h.  */
  9677 _ACEOF
  9678 cat confdefs.h >>conftest.$ac_ext
  9679 cat >>conftest.$ac_ext <<_ACEOF
  9680 /* end confdefs.h.  */
  9681 int main() { return 0; }
  9682 _ACEOF
  9683 rm -f conftest.$ac_objext
  9684 if { (ac_try="$ac_compile"
  9685 case "(($ac_try" in
  9686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9687   *) ac_try_echo=$ac_try;;
  9688 esac
  9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9690   (eval "$ac_compile") 2>conftest.er1
  9691   ac_status=$?
  9692   grep -v '^ *+' conftest.er1 >conftest.err
  9693   rm -f conftest.er1
  9694   cat conftest.err >&5
  9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9696   (exit $ac_status); } && {
  9697 	 test -z "$ac_c_werror_flag" ||
  9698 	 test ! -s conftest.err
  9699        } && test -s conftest.$ac_objext; then
  9701    { echo "$as_me:$LINENO: result: yes" >&5
  9702 echo "${ECHO_T}yes" >&6; }
  9704 else
  9705   echo "$as_me: failed program was:" >&5
  9706 sed 's/^/| /' conftest.$ac_ext >&5
  9709    CFLAGS="$save_CFLAGS"
  9710    { echo "$as_me:$LINENO: result: no" >&5
  9711 echo "${ECHO_T}no" >&6; }
  9713 fi
  9715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9716 ac_ext=c
  9717 ac_cpp='$CPP $CPPFLAGS'
  9718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9724 ac_ext=c
  9725 ac_cpp='$CPP $CPPFLAGS'
  9726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9730 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
  9731 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
  9732 save_CFLAGS="$CFLAGS"
  9733 CFLAGS="-mfpmath=sse $CFLAGS"
  9734 cat >conftest.$ac_ext <<_ACEOF
  9736   /* confdefs.h.  */
  9737 _ACEOF
  9738 cat confdefs.h >>conftest.$ac_ext
  9739 cat >>conftest.$ac_ext <<_ACEOF
  9740 /* end confdefs.h.  */
  9741 int main() { return 0; }
  9742 _ACEOF
  9743 rm -f conftest.$ac_objext
  9744 if { (ac_try="$ac_compile"
  9745 case "(($ac_try" in
  9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9747   *) ac_try_echo=$ac_try;;
  9748 esac
  9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9750   (eval "$ac_compile") 2>conftest.er1
  9751   ac_status=$?
  9752   grep -v '^ *+' conftest.er1 >conftest.err
  9753   rm -f conftest.er1
  9754   cat conftest.err >&5
  9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9756   (exit $ac_status); } && {
  9757 	 test -z "$ac_c_werror_flag" ||
  9758 	 test ! -s conftest.err
  9759        } && test -s conftest.$ac_objext; then
  9761    { echo "$as_me:$LINENO: result: yes" >&5
  9762 echo "${ECHO_T}yes" >&6; }
  9764 else
  9765   echo "$as_me: failed program was:" >&5
  9766 sed 's/^/| /' conftest.$ac_ext >&5
  9769    CFLAGS="$save_CFLAGS"
  9770    { echo "$as_me:$LINENO: result: no" >&5
  9771 echo "${ECHO_T}no" >&6; }
  9773 fi
  9775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9776 ac_ext=c
  9777 ac_cpp='$CPP $CPPFLAGS'
  9778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9784 if test "x$enable_optimized" = "xyes"; then
  9785    CFLAGS="$CFLAGS $CCOPT"
  9786    OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
  9787    if test "x$enable_profiled" != "xyes"; then
  9788               CFLAGS="$CFLAGS -fomit-frame-pointer"
  9789        OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
  9790    fi
  9791 else
  9792    CFLAGS="$CFLAGS -g3"
  9793    OBJCFLAGS="$OBJCFLAGS -g3"
  9794 fi
  9796 if test "x$enable_profiled" = "xyes"; then
  9797    CFLAGS="$CFLAGS -pg"
  9798    LDFLAGS="$LDFLAGS -pg";
  9799    OBJCFLAGS="$OBJCFLAGS -pg";
  9800 fi
  9802 if test "x$enable_strictwarn" = "xyes"; then
  9803    CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
  9804    OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
  9805 fi
  9807 if test "x$enable_shared" != "xno"; then
  9808    if test "x$APPLE_BUILD" = "xyes"; then
  9809       SOEXT="dylib"
  9810       PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
  9811    else
  9812       SOEXT="so"
  9813       PLUGINLDFLAGS="-shared"
  9814    fi
  9815    PLUGINCFLAGS="-fPIC"
  9817    if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9818   { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  9819 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  9820 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9821   echo $ECHO_N "(cached) $ECHO_C" >&6
  9822 fi
  9823 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  9824 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  9825 else
  9826   # Is the header compilable?
  9827 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
  9828 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
  9829 cat >conftest.$ac_ext <<_ACEOF
  9830 /* confdefs.h.  */
  9831 _ACEOF
  9832 cat confdefs.h >>conftest.$ac_ext
  9833 cat >>conftest.$ac_ext <<_ACEOF
  9834 /* end confdefs.h.  */
  9835 $ac_includes_default
  9836 #include <dlfcn.h>
  9837 _ACEOF
  9838 rm -f conftest.$ac_objext
  9839 if { (ac_try="$ac_compile"
  9840 case "(($ac_try" in
  9841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9842   *) ac_try_echo=$ac_try;;
  9843 esac
  9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9845   (eval "$ac_compile") 2>conftest.er1
  9846   ac_status=$?
  9847   grep -v '^ *+' conftest.er1 >conftest.err
  9848   rm -f conftest.er1
  9849   cat conftest.err >&5
  9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9851   (exit $ac_status); } && {
  9852 	 test -z "$ac_c_werror_flag" ||
  9853 	 test ! -s conftest.err
  9854        } && test -s conftest.$ac_objext; then
  9855   ac_header_compiler=yes
  9856 else
  9857   echo "$as_me: failed program was:" >&5
  9858 sed 's/^/| /' conftest.$ac_ext >&5
  9860 	ac_header_compiler=no
  9861 fi
  9863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9865 echo "${ECHO_T}$ac_header_compiler" >&6; }
  9867 # Is the header present?
  9868 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
  9869 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
  9870 cat >conftest.$ac_ext <<_ACEOF
  9871 /* confdefs.h.  */
  9872 _ACEOF
  9873 cat confdefs.h >>conftest.$ac_ext
  9874 cat >>conftest.$ac_ext <<_ACEOF
  9875 /* end confdefs.h.  */
  9876 #include <dlfcn.h>
  9877 _ACEOF
  9878 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9879 case "(($ac_try" in
  9880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9881   *) ac_try_echo=$ac_try;;
  9882 esac
  9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9885   ac_status=$?
  9886   grep -v '^ *+' conftest.er1 >conftest.err
  9887   rm -f conftest.er1
  9888   cat conftest.err >&5
  9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9890   (exit $ac_status); } >/dev/null && {
  9891 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9892 	 test ! -s conftest.err
  9893        }; then
  9894   ac_header_preproc=yes
  9895 else
  9896   echo "$as_me: failed program was:" >&5
  9897 sed 's/^/| /' conftest.$ac_ext >&5
  9899   ac_header_preproc=no
  9900 fi
  9902 rm -f conftest.err conftest.$ac_ext
  9903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9904 echo "${ECHO_T}$ac_header_preproc" >&6; }
  9906 # So?  What about this header?
  9907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9908   yes:no: )
  9909     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9910 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9911     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
  9912 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
  9913     ac_header_preproc=yes
  9914     ;;
  9915   no:yes:* )
  9916     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
  9917 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
  9918     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
  9919 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
  9920     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
  9921 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
  9922     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
  9923 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9924     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
  9925 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
  9926     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
  9927 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
  9929     ;;
  9930 esac
  9931 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  9932 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  9933 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9934   echo $ECHO_N "(cached) $ECHO_C" >&6
  9935 else
  9936   ac_cv_header_dlfcn_h=$ac_header_preproc
  9937 fi
  9938 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  9939 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  9941 fi
  9942 if test $ac_cv_header_dlfcn_h = yes; then
  9944       { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  9945 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
  9946 if test "${ac_cv_search_dlopen+set}" = set; then
  9947   echo $ECHO_N "(cached) $ECHO_C" >&6
  9948 else
  9949   ac_func_search_save_LIBS=$LIBS
  9950 cat >conftest.$ac_ext <<_ACEOF
  9951 /* confdefs.h.  */
  9952 _ACEOF
  9953 cat confdefs.h >>conftest.$ac_ext
  9954 cat >>conftest.$ac_ext <<_ACEOF
  9955 /* end confdefs.h.  */
  9957 /* Override any GCC internal prototype to avoid an error.
  9958    Use char because int might match the return type of a GCC
  9959    builtin and then its argument prototype would still apply.  */
  9960 #ifdef __cplusplus
  9961 extern "C"
  9962 #endif
  9963 char dlopen ();
  9964 int
  9965 main ()
  9967 return dlopen ();
  9969   return 0;
  9971 _ACEOF
  9972 for ac_lib in '' dl; do
  9973   if test -z "$ac_lib"; then
  9974     ac_res="none required"
  9975   else
  9976     ac_res=-l$ac_lib
  9977     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  9978   fi
  9979   rm -f conftest.$ac_objext conftest$ac_exeext
  9980 if { (ac_try="$ac_link"
  9981 case "(($ac_try" in
  9982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9983   *) ac_try_echo=$ac_try;;
  9984 esac
  9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9986   (eval "$ac_link") 2>conftest.er1
  9987   ac_status=$?
  9988   grep -v '^ *+' conftest.er1 >conftest.err
  9989   rm -f conftest.er1
  9990   cat conftest.err >&5
  9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9992   (exit $ac_status); } && {
  9993 	 test -z "$ac_c_werror_flag" ||
  9994 	 test ! -s conftest.err
  9995        } && test -s conftest$ac_exeext &&
  9996        $as_test_x conftest$ac_exeext; then
  9997   ac_cv_search_dlopen=$ac_res
  9998 else
  9999   echo "$as_me: failed program was:" >&5
 10000 sed 's/^/| /' conftest.$ac_ext >&5
 10003 fi
 10005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10006       conftest$ac_exeext
 10007   if test "${ac_cv_search_dlopen+set}" = set; then
 10008   break
 10009 fi
 10010 done
 10011 if test "${ac_cv_search_dlopen+set}" = set; then
 10013 else
 10014   ac_cv_search_dlopen=no
 10015 fi
 10016 rm conftest.$ac_ext
 10017 LIBS=$ac_func_search_save_LIBS
 10018 fi
 10019 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
 10020 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
 10021 ac_res=$ac_cv_search_dlopen
 10022 if test "$ac_res" != no; then
 10023   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10024   have_dlopen=yes
 10025 fi
 10027 fi
 10030    if test "x$have_dlopen" != "xyes"; then
 10031       if test "x$enable_shared" == "xyes"; then
 10032          { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
 10033 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
 10034    { (exit 1); exit 1; }; }
 10035       else
 10036          { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
 10037 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
 10038       fi
 10039    fi
 10041    { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
 10042 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
 10043    old_LDFLAGS="$LDFLAGS"
 10044    LDFLAGS="$LDFLAGS -rdynamic"
 10045    cat >conftest.$ac_ext <<_ACEOF
 10046 /* confdefs.h.  */
 10047 _ACEOF
 10048 cat confdefs.h >>conftest.$ac_ext
 10049 cat >>conftest.$ac_ext <<_ACEOF
 10050 /* end confdefs.h.  */
 10051 int main() { return 0; }
 10052 _ACEOF
 10053 rm -f conftest.$ac_objext conftest$ac_exeext
 10054 if { (ac_try="$ac_link"
 10055 case "(($ac_try" in
 10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10057   *) ac_try_echo=$ac_try;;
 10058 esac
 10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10060   (eval "$ac_link") 2>conftest.er1
 10061   ac_status=$?
 10062   grep -v '^ *+' conftest.er1 >conftest.err
 10063   rm -f conftest.er1
 10064   cat conftest.err >&5
 10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10066   (exit $ac_status); } && {
 10067 	 test -z "$ac_c_werror_flag" ||
 10068 	 test ! -s conftest.err
 10069        } && test -s conftest$ac_exeext &&
 10070        $as_test_x conftest$ac_exeext; then
 10072      LXDREAMLDFLAGS="-rdynamic"
 10073      { echo "$as_me:$LINENO: result: yes" >&5
 10074 echo "${ECHO_T}yes" >&6; }
 10076 else
 10077   echo "$as_me: failed program was:" >&5
 10078 sed 's/^/| /' conftest.$ac_ext >&5
 10081      LXDREAMLDFLAGS=""
 10082      { echo "$as_me:$LINENO: result: no" >&5
 10083 echo "${ECHO_T}no" >&6; }
 10084 fi
 10086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10087       conftest$ac_exeext conftest.$ac_ext
 10088    LDFLAGS="$old_LDFLAGS"
 10094 fi
 10095 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
 10097 cat >>confdefs.h <<\_ACEOF
 10098 #define BUILD_PLUGINS 1
 10099 _ACEOF
 10101 fi
 10104 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
 10105   BUILD_PLUGINS_TRUE=
 10106   BUILD_PLUGINS_FALSE='#'
 10107 else
 10108   BUILD_PLUGINS_TRUE='#'
 10109   BUILD_PLUGINS_FALSE=
 10110 fi
 10114 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
 10115 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
 10116 save_CFLAGS="$CFLAGS"
 10117 CFLAGS="-Werror $save_CFLAGS"
 10118 if test "$cross_compiling" = yes; then
 10120       { echo "$as_me:$LINENO: result: no" >&5
 10121 echo "${ECHO_T}no" >&6; }
 10123 else
 10124   cat >conftest.$ac_ext <<_ACEOF
 10126   /* confdefs.h.  */
 10127 _ACEOF
 10128 cat confdefs.h >>conftest.$ac_ext
 10129 cat >>conftest.$ac_ext <<_ACEOF
 10130 /* end confdefs.h.  */
 10132 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
 10134 int main(int argc, char *argv[])
 10136    return foo( 1, 2 ) == 3 ? 0 : 1;
 10138 _ACEOF
 10139 rm -f conftest$ac_exeext
 10140 if { (ac_try="$ac_link"
 10141 case "(($ac_try" in
 10142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10143   *) ac_try_echo=$ac_try;;
 10144 esac
 10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10146   (eval "$ac_link") 2>&5
 10147   ac_status=$?
 10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 10150   { (case "(($ac_try" in
 10151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10152   *) ac_try_echo=$ac_try;;
 10153 esac
 10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10155   (eval "$ac_try") 2>&5
 10156   ac_status=$?
 10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10158   (exit $ac_status); }; }; then
 10160    { echo "$as_me:$LINENO: result: yes" >&5
 10161 echo "${ECHO_T}yes" >&6; }
 10164 cat >>confdefs.h <<\_ACEOF
 10165 #define HAVE_FASTCALL 1
 10166 _ACEOF
 10169 else
 10170   echo "$as_me: program exited with status $ac_status" >&5
 10171 echo "$as_me: failed program was:" >&5
 10172 sed 's/^/| /' conftest.$ac_ext >&5
 10174 ( exit $ac_status )
 10176    { echo "$as_me:$LINENO: result: no" >&5
 10177 echo "${ECHO_T}no" >&6; }
 10179 fi
 10180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 10181 fi
 10184 CFLAGS="$save_CFLAGS"
 10187 { echo "$as_me:$LINENO: checking support for force inlining" >&5
 10188 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
 10189 cat >conftest.$ac_ext <<_ACEOF
 10191   /* confdefs.h.  */
 10192 _ACEOF
 10193 cat confdefs.h >>conftest.$ac_ext
 10194 cat >>conftest.$ac_ext <<_ACEOF
 10195 /* end confdefs.h.  */
 10197 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
 10199 int main(int argc, char *argv[])
 10201    return foo( 1, 2 ) == 3 ? 0 : 1;
 10203 _ACEOF
 10204 rm -f conftest.$ac_objext
 10205 if { (ac_try="$ac_compile"
 10206 case "(($ac_try" in
 10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10208   *) ac_try_echo=$ac_try;;
 10209 esac
 10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10211   (eval "$ac_compile") 2>conftest.er1
 10212   ac_status=$?
 10213   grep -v '^ *+' conftest.er1 >conftest.err
 10214   rm -f conftest.er1
 10215   cat conftest.err >&5
 10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10217   (exit $ac_status); } && {
 10218 	 test -z "$ac_c_werror_flag" ||
 10219 	 test ! -s conftest.err
 10220        } && test -s conftest.$ac_objext; then
 10222    FORCEINLINE="__attribute__((always_inline))"
 10223    { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
 10224 echo "${ECHO_T}$FORCEINLINE" >&6; }
 10226 else
 10227   echo "$as_me: failed program was:" >&5
 10228 sed 's/^/| /' conftest.$ac_ext >&5
 10231    FORCEINLINE=""
 10232    { echo "$as_me:$LINENO: result: no" >&5
 10233 echo "${ECHO_T}no" >&6; }
 10235 fi
 10237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10240 cat >>confdefs.h <<_ACEOF
 10241 #define FORCEINLINE $FORCEINLINE
 10242 _ACEOF
 10245 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
 10246 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
 10247 if test "$cross_compiling" = yes; then
 10249    { echo "$as_me:$LINENO: result: no" >&5
 10250 echo "${ECHO_T}no" >&6; }
 10251     { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
 10252 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
 10253 else
 10254   cat >conftest.$ac_ext <<_ACEOF
 10256   /* confdefs.h.  */
 10257 _ACEOF
 10258 cat confdefs.h >>conftest.$ac_ext
 10259 cat >>conftest.$ac_ext <<_ACEOF
 10260 /* end confdefs.h.  */
 10262 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
 10263 int __attribute__((noinline)) foo( int arg, void *exc )
 10265     if( arg < 2 ) {
 10266         *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
 10268     return 0;
 10271 int main(int argc, char *argv[])
 10273    goto *first_arg(&&start, &&except);
 10275 start:
 10276    return foo( argc, &&except ) + 1;
 10278 except:
 10279    return 0;
 10281 _ACEOF
 10282 rm -f conftest$ac_exeext
 10283 if { (ac_try="$ac_link"
 10284 case "(($ac_try" in
 10285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10286   *) ac_try_echo=$ac_try;;
 10287 esac
 10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10289   (eval "$ac_link") 2>&5
 10290   ac_status=$?
 10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 10293   { (case "(($ac_try" in
 10294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10295   *) ac_try_echo=$ac_try;;
 10296 esac
 10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10298   (eval "$ac_try") 2>&5
 10299   ac_status=$?
 10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10301   (exit $ac_status); }; }; then
 10303    { echo "$as_me:$LINENO: result: yes" >&5
 10304 echo "${ECHO_T}yes" >&6; }
 10307 cat >>confdefs.h <<\_ACEOF
 10308 #define HAVE_FRAME_ADDRESS 1
 10309 _ACEOF
 10312 else
 10313   echo "$as_me: program exited with status $ac_status" >&5
 10314 echo "$as_me: failed program was:" >&5
 10315 sed 's/^/| /' conftest.$ac_ext >&5
 10317 ( exit $ac_status )
 10319    { echo "$as_me:$LINENO: result: no" >&5
 10320 echo "${ECHO_T}no" >&6; }
 10321     { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
 10322 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
 10323 fi
 10324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 10325 fi
 10331 { echo "$as_me:$LINENO: checking for library containing listen" >&5
 10332 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
 10333 if test "${ac_cv_search_listen+set}" = set; then
 10334   echo $ECHO_N "(cached) $ECHO_C" >&6
 10335 else
 10336   ac_func_search_save_LIBS=$LIBS
 10337 cat >conftest.$ac_ext <<_ACEOF
 10338 /* confdefs.h.  */
 10339 _ACEOF
 10340 cat confdefs.h >>conftest.$ac_ext
 10341 cat >>conftest.$ac_ext <<_ACEOF
 10342 /* end confdefs.h.  */
 10344 /* Override any GCC internal prototype to avoid an error.
 10345    Use char because int might match the return type of a GCC
 10346    builtin and then its argument prototype would still apply.  */
 10347 #ifdef __cplusplus
 10348 extern "C"
 10349 #endif
 10350 char listen ();
 10351 int
 10352 main ()
 10354 return listen ();
 10356   return 0;
 10358 _ACEOF
 10359 for ac_lib in '' socket; do
 10360   if test -z "$ac_lib"; then
 10361     ac_res="none required"
 10362   else
 10363     ac_res=-l$ac_lib
 10364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10365   fi
 10366   rm -f conftest.$ac_objext conftest$ac_exeext
 10367 if { (ac_try="$ac_link"
 10368 case "(($ac_try" in
 10369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10370   *) ac_try_echo=$ac_try;;
 10371 esac
 10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10373   (eval "$ac_link") 2>conftest.er1
 10374   ac_status=$?
 10375   grep -v '^ *+' conftest.er1 >conftest.err
 10376   rm -f conftest.er1
 10377   cat conftest.err >&5
 10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10379   (exit $ac_status); } && {
 10380 	 test -z "$ac_c_werror_flag" ||
 10381 	 test ! -s conftest.err
 10382        } && test -s conftest$ac_exeext &&
 10383        $as_test_x conftest$ac_exeext; then
 10384   ac_cv_search_listen=$ac_res
 10385 else
 10386   echo "$as_me: failed program was:" >&5
 10387 sed 's/^/| /' conftest.$ac_ext >&5
 10390 fi
 10392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10393       conftest$ac_exeext
 10394   if test "${ac_cv_search_listen+set}" = set; then
 10395   break
 10396 fi
 10397 done
 10398 if test "${ac_cv_search_listen+set}" = set; then
 10400 else
 10401   ac_cv_search_listen=no
 10402 fi
 10403 rm conftest.$ac_ext
 10404 LIBS=$ac_func_search_save_LIBS
 10405 fi
 10406 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
 10407 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
 10408 ac_res=$ac_cv_search_listen
 10409 if test "$ac_res" != no; then
 10410   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10412 fi
 10414 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
 10415 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
 10416 if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10417   echo $ECHO_N "(cached) $ECHO_C" >&6
 10418 else
 10419   ac_func_search_save_LIBS=$LIBS
 10420 cat >conftest.$ac_ext <<_ACEOF
 10421 /* confdefs.h.  */
 10422 _ACEOF
 10423 cat confdefs.h >>conftest.$ac_ext
 10424 cat >>conftest.$ac_ext <<_ACEOF
 10425 /* end confdefs.h.  */
 10427 /* Override any GCC internal prototype to avoid an error.
 10428    Use char because int might match the return type of a GCC
 10429    builtin and then its argument prototype would still apply.  */
 10430 #ifdef __cplusplus
 10431 extern "C"
 10432 #endif
 10433 char inet_ntoa ();
 10434 int
 10435 main ()
 10437 return inet_ntoa ();
 10439   return 0;
 10441 _ACEOF
 10442 for ac_lib in '' nsl; do
 10443   if test -z "$ac_lib"; then
 10444     ac_res="none required"
 10445   else
 10446     ac_res=-l$ac_lib
 10447     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10448   fi
 10449   rm -f conftest.$ac_objext conftest$ac_exeext
 10450 if { (ac_try="$ac_link"
 10451 case "(($ac_try" in
 10452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10453   *) ac_try_echo=$ac_try;;
 10454 esac
 10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10456   (eval "$ac_link") 2>conftest.er1
 10457   ac_status=$?
 10458   grep -v '^ *+' conftest.er1 >conftest.err
 10459   rm -f conftest.er1
 10460   cat conftest.err >&5
 10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10462   (exit $ac_status); } && {
 10463 	 test -z "$ac_c_werror_flag" ||
 10464 	 test ! -s conftest.err
 10465        } && test -s conftest$ac_exeext &&
 10466        $as_test_x conftest$ac_exeext; then
 10467   ac_cv_search_inet_ntoa=$ac_res
 10468 else
 10469   echo "$as_me: failed program was:" >&5
 10470 sed 's/^/| /' conftest.$ac_ext >&5
 10473 fi
 10475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10476       conftest$ac_exeext
 10477   if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10478   break
 10479 fi
 10480 done
 10481 if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10483 else
 10484   ac_cv_search_inet_ntoa=no
 10485 fi
 10486 rm conftest.$ac_ext
 10487 LIBS=$ac_func_search_save_LIBS
 10488 fi
 10489 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
 10490 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
 10491 ac_res=$ac_cv_search_inet_ntoa
 10492 if test "$ac_res" != no; then
 10493   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10495 fi
 10500 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 10501 	if test -n "$ac_tool_prefix"; then
 10502   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 10503 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 10504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10506 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 10507   echo $ECHO_N "(cached) $ECHO_C" >&6
 10508 else
 10509   case $PKG_CONFIG in
 10510   [\\/]* | ?:[\\/]*)
 10511   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 10512   ;;
 10513   *)
 10514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10515 for as_dir in $PATH
 10516 do
 10517   IFS=$as_save_IFS
 10518   test -z "$as_dir" && as_dir=.
 10519   for ac_exec_ext in '' $ac_executable_extensions; do
 10520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10521     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 10522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10523     break 2
 10524   fi
 10525 done
 10526 done
 10527 IFS=$as_save_IFS
 10529   ;;
 10530 esac
 10531 fi
 10532 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 10533 if test -n "$PKG_CONFIG"; then
 10534   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 10535 echo "${ECHO_T}$PKG_CONFIG" >&6; }
 10536 else
 10537   { echo "$as_me:$LINENO: result: no" >&5
 10538 echo "${ECHO_T}no" >&6; }
 10539 fi
 10542 fi
 10543 if test -z "$ac_cv_path_PKG_CONFIG"; then
 10544   ac_pt_PKG_CONFIG=$PKG_CONFIG
 10545   # Extract the first word of "pkg-config", so it can be a program name with args.
 10546 set dummy pkg-config; ac_word=$2
 10547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10549 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 10550   echo $ECHO_N "(cached) $ECHO_C" >&6
 10551 else
 10552   case $ac_pt_PKG_CONFIG in
 10553   [\\/]* | ?:[\\/]*)
 10554   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 10555   ;;
 10556   *)
 10557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10558 for as_dir in $PATH
 10559 do
 10560   IFS=$as_save_IFS
 10561   test -z "$as_dir" && as_dir=.
 10562   for ac_exec_ext in '' $ac_executable_extensions; do
 10563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10564     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 10565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10566     break 2
 10567   fi
 10568 done
 10569 done
 10570 IFS=$as_save_IFS
 10572   ;;
 10573 esac
 10574 fi
 10575 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 10576 if test -n "$ac_pt_PKG_CONFIG"; then
 10577   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 10578 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 10579 else
 10580   { echo "$as_me:$LINENO: result: no" >&5
 10581 echo "${ECHO_T}no" >&6; }
 10582 fi
 10584   if test "x$ac_pt_PKG_CONFIG" = x; then
 10585     PKG_CONFIG=""
 10586   else
 10587     case $cross_compiling:$ac_tool_warned in
 10588 yes:)
 10589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 10590 whose name does not start with the host triplet.  If you think this
 10591 configuration is useful to you, please write to autoconf@gnu.org." >&5
 10592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 10593 whose name does not start with the host triplet.  If you think this
 10594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 10595 ac_tool_warned=yes ;;
 10596 esac
 10597     PKG_CONFIG=$ac_pt_PKG_CONFIG
 10598   fi
 10599 else
 10600   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 10601 fi
 10603 fi
 10604 if test -n "$PKG_CONFIG"; then
 10605 	_pkg_min_version=0.9.0
 10606 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 10607 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 10608 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 10609 		{ echo "$as_me:$LINENO: result: yes" >&5
 10610 echo "${ECHO_T}yes" >&6; }
 10611 	else
 10612 		{ echo "$as_me:$LINENO: result: no" >&5
 10613 echo "${ECHO_T}no" >&6; }
 10614 		PKG_CONFIG=""
 10615 	fi
 10617 fi
 10619 pkg_failed=no
 10620 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
 10621 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
 10623 if test -n "$LIBPNG_CFLAGS"; then
 10624     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
 10625  elif test -n "$PKG_CONFIG"; then
 10626     if test -n "$PKG_CONFIG" && \
 10627     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
 10628   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
 10629   ac_status=$?
 10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10631   (exit $ac_status); }; then
 10632   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
 10633 else
 10634   pkg_failed=yes
 10635 fi
 10636  else
 10637     pkg_failed=untried
 10638 fi
 10639 if test -n "$LIBPNG_LIBS"; then
 10640     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
 10641  elif test -n "$PKG_CONFIG"; then
 10642     if test -n "$PKG_CONFIG" && \
 10643     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
 10644   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
 10645   ac_status=$?
 10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10647   (exit $ac_status); }; then
 10648   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
 10649 else
 10650   pkg_failed=yes
 10651 fi
 10652  else
 10653     pkg_failed=untried
 10654 fi
 10658 if test $pkg_failed = yes; then
 10660 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10661         _pkg_short_errors_supported=yes
 10662 else
 10663         _pkg_short_errors_supported=no
 10664 fi
 10665         if test $_pkg_short_errors_supported = yes; then
 10666 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
 10667         else
 10668 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
 10669         fi
 10670 	# Put the nasty error message in config.log where it belongs
 10671 	echo "$LIBPNG_PKG_ERRORS" >&5
 10673 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
 10675 $LIBPNG_PKG_ERRORS
 10677 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10678 installed software in a non-standard prefix.
 10680 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10681 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10682 See the pkg-config man page for more details.
 10683 " >&5
 10684 echo "$as_me: error: Package requirements (libpng ) were not met:
 10686 $LIBPNG_PKG_ERRORS
 10688 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10689 installed software in a non-standard prefix.
 10691 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10692 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10693 See the pkg-config man page for more details.
 10694 " >&2;}
 10695    { (exit 1); exit 1; }; }
 10696 elif test $pkg_failed = untried; then
 10697 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 10698 is in your PATH or set the PKG_CONFIG environment variable to the full
 10699 path to pkg-config.
 10701 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10702 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10703 See the pkg-config man page for more details.
 10705 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10706 See \`config.log' for more details." >&5
 10707 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 10708 is in your PATH or set the PKG_CONFIG environment variable to the full
 10709 path to pkg-config.
 10711 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10712 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10713 See the pkg-config man page for more details.
 10715 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10716 See \`config.log' for more details." >&2;}
 10717    { (exit 1); exit 1; }; }
 10718 else
 10719 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
 10720 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
 10721         { echo "$as_me:$LINENO: result: yes" >&5
 10722 echo "${ECHO_T}yes" >&6; }
 10724 fi
 10727 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
 10728 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
 10729 if test "${ac_cv_lib_z_uncompress+set}" = set; then
 10730   echo $ECHO_N "(cached) $ECHO_C" >&6
 10731 else
 10732   ac_check_lib_save_LIBS=$LIBS
 10733 LIBS="-lz  $LIBS"
 10734 cat >conftest.$ac_ext <<_ACEOF
 10735 /* confdefs.h.  */
 10736 _ACEOF
 10737 cat confdefs.h >>conftest.$ac_ext
 10738 cat >>conftest.$ac_ext <<_ACEOF
 10739 /* end confdefs.h.  */
 10741 /* Override any GCC internal prototype to avoid an error.
 10742    Use char because int might match the return type of a GCC
 10743    builtin and then its argument prototype would still apply.  */
 10744 #ifdef __cplusplus
 10745 extern "C"
 10746 #endif
 10747 char uncompress ();
 10748 int
 10749 main ()
 10751 return uncompress ();
 10753   return 0;
 10755 _ACEOF
 10756 rm -f conftest.$ac_objext conftest$ac_exeext
 10757 if { (ac_try="$ac_link"
 10758 case "(($ac_try" in
 10759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10760   *) ac_try_echo=$ac_try;;
 10761 esac
 10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10763   (eval "$ac_link") 2>conftest.er1
 10764   ac_status=$?
 10765   grep -v '^ *+' conftest.er1 >conftest.err
 10766   rm -f conftest.er1
 10767   cat conftest.err >&5
 10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10769   (exit $ac_status); } && {
 10770 	 test -z "$ac_c_werror_flag" ||
 10771 	 test ! -s conftest.err
 10772        } && test -s conftest$ac_exeext &&
 10773        $as_test_x conftest$ac_exeext; then
 10774   ac_cv_lib_z_uncompress=yes
 10775 else
 10776   echo "$as_me: failed program was:" >&5
 10777 sed 's/^/| /' conftest.$ac_ext >&5
 10779 	ac_cv_lib_z_uncompress=no
 10780 fi
 10782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10783       conftest$ac_exeext conftest.$ac_ext
 10784 LIBS=$ac_check_lib_save_LIBS
 10785 fi
 10786 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
 10787 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
 10788 if test $ac_cv_lib_z_uncompress = yes; then
 10789   cat >>confdefs.h <<_ACEOF
 10790 #define HAVE_LIBZ 1
 10791 _ACEOF
 10793   LIBS="-lz $LIBS"
 10795 else
 10797     echo "Zlib (libz.so) could not be found, but is required."
 10798     exit 1
 10799 fi
 10802 if test "x$with_gtk" = "xno"; then
 10804 pkg_failed=no
 10805 { echo "$as_me:$LINENO: checking for GLIB" >&5
 10806 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
 10808 if test -n "$GLIB_CFLAGS"; then
 10809     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
 10810  elif test -n "$PKG_CONFIG"; then
 10811     if test -n "$PKG_CONFIG" && \
 10812     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 10813   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 10814   ac_status=$?
 10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10816   (exit $ac_status); }; then
 10817   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 10818 else
 10819   pkg_failed=yes
 10820 fi
 10821  else
 10822     pkg_failed=untried
 10823 fi
 10824 if test -n "$GLIB_LIBS"; then
 10825     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
 10826  elif test -n "$PKG_CONFIG"; then
 10827     if test -n "$PKG_CONFIG" && \
 10828     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 10829   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 10830   ac_status=$?
 10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10832   (exit $ac_status); }; then
 10833   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 10834 else
 10835   pkg_failed=yes
 10836 fi
 10837  else
 10838     pkg_failed=untried
 10839 fi
 10843 if test $pkg_failed = yes; then
 10845 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10846         _pkg_short_errors_supported=yes
 10847 else
 10848         _pkg_short_errors_supported=no
 10849 fi
 10850         if test $_pkg_short_errors_supported = yes; then
 10851 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
 10852         else
 10853 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
 10854         fi
 10855 	# Put the nasty error message in config.log where it belongs
 10856 	echo "$GLIB_PKG_ERRORS" >&5
 10858 	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 10860 $GLIB_PKG_ERRORS
 10862 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10863 installed software in a non-standard prefix.
 10865 Alternatively, you may set the environment variables GLIB_CFLAGS
 10866 and GLIB_LIBS to avoid the need to call pkg-config.
 10867 See the pkg-config man page for more details.
 10868 " >&5
 10869 echo "$as_me: error: Package requirements (glib-2.0) were not met:
 10871 $GLIB_PKG_ERRORS
 10873 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10874 installed software in a non-standard prefix.
 10876 Alternatively, you may set the environment variables GLIB_CFLAGS
 10877 and GLIB_LIBS to avoid the need to call pkg-config.
 10878 See the pkg-config man page for more details.
 10879 " >&2;}
 10880    { (exit 1); exit 1; }; }
 10881 elif test $pkg_failed = untried; then
 10882 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 10883 is in your PATH or set the PKG_CONFIG environment variable to the full
 10884 path to pkg-config.
 10886 Alternatively, you may set the environment variables GLIB_CFLAGS
 10887 and GLIB_LIBS to avoid the need to call pkg-config.
 10888 See the pkg-config man page for more details.
 10890 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10891 See \`config.log' for more details." >&5
 10892 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 10893 is in your PATH or set the PKG_CONFIG environment variable to the full
 10894 path to pkg-config.
 10896 Alternatively, you may set the environment variables GLIB_CFLAGS
 10897 and GLIB_LIBS to avoid the need to call pkg-config.
 10898 See the pkg-config man page for more details.
 10900 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10901 See \`config.log' for more details." >&2;}
 10902    { (exit 1); exit 1; }; }
 10903 else
 10904 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
 10905 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
 10906         { echo "$as_me:$LINENO: result: yes" >&5
 10907 echo "${ECHO_T}yes" >&6; }
 10909 fi
 10910 else
 10912 pkg_failed=no
 10913 { echo "$as_me:$LINENO: checking for GTK" >&5
 10914 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
 10916 if test -n "$GTK_CFLAGS"; then
 10917     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
 10918  elif test -n "$PKG_CONFIG"; then
 10919     if test -n "$PKG_CONFIG" && \
 10920     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 10921   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 10922   ac_status=$?
 10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10924   (exit $ac_status); }; then
 10925   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
 10926 else
 10927   pkg_failed=yes
 10928 fi
 10929  else
 10930     pkg_failed=untried
 10931 fi
 10932 if test -n "$GTK_LIBS"; then
 10933     pkg_cv_GTK_LIBS="$GTK_LIBS"
 10934  elif test -n "$PKG_CONFIG"; then
 10935     if test -n "$PKG_CONFIG" && \
 10936     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 10937   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 10938   ac_status=$?
 10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10940   (exit $ac_status); }; then
 10941   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
 10942 else
 10943   pkg_failed=yes
 10944 fi
 10945  else
 10946     pkg_failed=untried
 10947 fi
 10951 if test $pkg_failed = yes; then
 10953 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10954         _pkg_short_errors_supported=yes
 10955 else
 10956         _pkg_short_errors_supported=no
 10957 fi
 10958         if test $_pkg_short_errors_supported = yes; then
 10959 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
 10960         else
 10961 	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
 10962         fi
 10963 	# Put the nasty error message in config.log where it belongs
 10964 	echo "$GTK_PKG_ERRORS" >&5
 10966 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
 10968 $GTK_PKG_ERRORS
 10970 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10971 installed software in a non-standard prefix.
 10973 Alternatively, you may set the environment variables GTK_CFLAGS
 10974 and GTK_LIBS to avoid the need to call pkg-config.
 10975 See the pkg-config man page for more details.
 10976 " >&5
 10977 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
 10979 $GTK_PKG_ERRORS
 10981 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10982 installed software in a non-standard prefix.
 10984 Alternatively, you may set the environment variables GTK_CFLAGS
 10985 and GTK_LIBS to avoid the need to call pkg-config.
 10986 See the pkg-config man page for more details.
 10987 " >&2;}
 10988    { (exit 1); exit 1; }; }
 10989 elif test $pkg_failed = untried; then
 10990 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 10991 is in your PATH or set the PKG_CONFIG environment variable to the full
 10992 path to pkg-config.
 10994 Alternatively, you may set the environment variables GTK_CFLAGS
 10995 and GTK_LIBS to avoid the need to call pkg-config.
 10996 See the pkg-config man page for more details.
 10998 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10999 See \`config.log' for more details." >&5
 11000 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11001 is in your PATH or set the PKG_CONFIG environment variable to the full
 11002 path to pkg-config.
 11004 Alternatively, you may set the environment variables GTK_CFLAGS
 11005 and GTK_LIBS to avoid the need to call pkg-config.
 11006 See the pkg-config man page for more details.
 11008 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11009 See \`config.log' for more details." >&2;}
 11010    { (exit 1); exit 1; }; }
 11011 else
 11012 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
 11013 	GTK_LIBS=$pkg_cv_GTK_LIBS
 11014         { echo "$as_me:$LINENO: result: yes" >&5
 11015 echo "${ECHO_T}yes" >&6; }
 11017        HAVE_GTK='yes'
 11019 cat >>confdefs.h <<\_ACEOF
 11020 #define HAVE_GTK 1
 11021 _ACEOF
 11024 fi
 11026       LIBS="$LIBS $GTK_LIBS"
 11027    { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
 11028 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
 11029 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
 11030   echo $ECHO_N "(cached) $ECHO_C" >&6
 11031 else
 11032   cat >conftest.$ac_ext <<_ACEOF
 11033 /* confdefs.h.  */
 11034 _ACEOF
 11035 cat confdefs.h >>conftest.$ac_ext
 11036 cat >>conftest.$ac_ext <<_ACEOF
 11037 /* end confdefs.h.  */
 11038 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
 11039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11040 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
 11042 /* System header to define __stub macros and hopefully few prototypes,
 11043     which can conflict with char gdk_x11_display_get_xdisplay (); below.
 11044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11045     <limits.h> exists even on freestanding compilers.  */
 11047 #ifdef __STDC__
 11048 # include <limits.h>
 11049 #else
 11050 # include <assert.h>
 11051 #endif
 11053 #undef gdk_x11_display_get_xdisplay
 11055 /* Override any GCC internal prototype to avoid an error.
 11056    Use char because int might match the return type of a GCC
 11057    builtin and then its argument prototype would still apply.  */
 11058 #ifdef __cplusplus
 11059 extern "C"
 11060 #endif
 11061 char gdk_x11_display_get_xdisplay ();
 11062 /* The GNU C library defines this for functions which it implements
 11063     to always fail with ENOSYS.  Some functions are actually named
 11064     something starting with __ and the normal name is an alias.  */
 11065 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
 11066 choke me
 11067 #endif
 11069 int
 11070 main ()
 11072 return gdk_x11_display_get_xdisplay ();
 11074   return 0;
 11076 _ACEOF
 11077 rm -f conftest.$ac_objext conftest$ac_exeext
 11078 if { (ac_try="$ac_link"
 11079 case "(($ac_try" in
 11080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11081   *) ac_try_echo=$ac_try;;
 11082 esac
 11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11084   (eval "$ac_link") 2>conftest.er1
 11085   ac_status=$?
 11086   grep -v '^ *+' conftest.er1 >conftest.err
 11087   rm -f conftest.er1
 11088   cat conftest.err >&5
 11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11090   (exit $ac_status); } && {
 11091 	 test -z "$ac_c_werror_flag" ||
 11092 	 test ! -s conftest.err
 11093        } && test -s conftest$ac_exeext &&
 11094        $as_test_x conftest$ac_exeext; then
 11095   ac_cv_func_gdk_x11_display_get_xdisplay=yes
 11096 else
 11097   echo "$as_me: failed program was:" >&5
 11098 sed 's/^/| /' conftest.$ac_ext >&5
 11100 	ac_cv_func_gdk_x11_display_get_xdisplay=no
 11101 fi
 11103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11104       conftest$ac_exeext conftest.$ac_ext
 11105 fi
 11106 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
 11107 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
 11108 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
 11110       HAVE_GTK_X11='yes'
 11112 cat >>confdefs.h <<\_ACEOF
 11113 #define HAVE_GTK_X11 1
 11114 _ACEOF
 11116 fi
 11118             GTK_LIBS="$GTK_LIBS -lX11"
 11119       LIBS="$LIBS -lX11"
 11120    { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
 11121 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
 11122 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
 11123   echo $ECHO_N "(cached) $ECHO_C" >&6
 11124 else
 11125   cat >conftest.$ac_ext <<_ACEOF
 11126 /* confdefs.h.  */
 11127 _ACEOF
 11128 cat confdefs.h >>conftest.$ac_ext
 11129 cat >>conftest.$ac_ext <<_ACEOF
 11130 /* end confdefs.h.  */
 11131 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
 11132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11133 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
 11135 /* System header to define __stub macros and hopefully few prototypes,
 11136     which can conflict with char gdk_quartz_window_get_nsview (); below.
 11137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11138     <limits.h> exists even on freestanding compilers.  */
 11140 #ifdef __STDC__
 11141 # include <limits.h>
 11142 #else
 11143 # include <assert.h>
 11144 #endif
 11146 #undef gdk_quartz_window_get_nsview
 11148 /* Override any GCC internal prototype to avoid an error.
 11149    Use char because int might match the return type of a GCC
 11150    builtin and then its argument prototype would still apply.  */
 11151 #ifdef __cplusplus
 11152 extern "C"
 11153 #endif
 11154 char gdk_quartz_window_get_nsview ();
 11155 /* The GNU C library defines this for functions which it implements
 11156     to always fail with ENOSYS.  Some functions are actually named
 11157     something starting with __ and the normal name is an alias.  */
 11158 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
 11159 choke me
 11160 #endif
 11162 int
 11163 main ()
 11165 return gdk_quartz_window_get_nsview ();
 11167   return 0;
 11169 _ACEOF
 11170 rm -f conftest.$ac_objext conftest$ac_exeext
 11171 if { (ac_try="$ac_link"
 11172 case "(($ac_try" in
 11173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11174   *) ac_try_echo=$ac_try;;
 11175 esac
 11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11177   (eval "$ac_link") 2>conftest.er1
 11178   ac_status=$?
 11179   grep -v '^ *+' conftest.er1 >conftest.err
 11180   rm -f conftest.er1
 11181   cat conftest.err >&5
 11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11183   (exit $ac_status); } && {
 11184 	 test -z "$ac_c_werror_flag" ||
 11185 	 test ! -s conftest.err
 11186        } && test -s conftest$ac_exeext &&
 11187        $as_test_x conftest$ac_exeext; then
 11188   ac_cv_func_gdk_quartz_window_get_nsview=yes
 11189 else
 11190   echo "$as_me: failed program was:" >&5
 11191 sed 's/^/| /' conftest.$ac_ext >&5
 11193 	ac_cv_func_gdk_quartz_window_get_nsview=no
 11194 fi
 11196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11197       conftest$ac_exeext conftest.$ac_ext
 11198 fi
 11199 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
 11200 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
 11201 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
 11203       HAVE_GTK_OSX='yes'
 11205 cat >>confdefs.h <<\_ACEOF
 11206 #define HAVE_GTK_OSX 1
 11207 _ACEOF
 11209 fi
 11211    if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
 11212       { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
 11213 See \`config.log' for more details." >&5
 11214 echo "$as_me: error: Unable to identify GTK platform
 11215 See \`config.log' for more details." >&2;}
 11216    { (exit 1); exit 1; }; }
 11217    fi
 11218 fi
 11222 pkg_failed=no
 11223 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
 11224 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
 11226 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
 11227     pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
 11228  elif test -n "$PKG_CONFIG"; then
 11229     if test -n "$PKG_CONFIG" && \
 11230     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 11231   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 11232   ac_status=$?
 11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11234   (exit $ac_status); }; then
 11235   pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 11236 else
 11237   pkg_failed=yes
 11238 fi
 11239  else
 11240     pkg_failed=untried
 11241 fi
 11242 if test -n "$GLIB_FOR_BUILD_LIBS"; then
 11243     pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
 11244  elif test -n "$PKG_CONFIG"; then
 11245     if test -n "$PKG_CONFIG" && \
 11246     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 11247   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 11248   ac_status=$?
 11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11250   (exit $ac_status); }; then
 11251   pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 11252 else
 11253   pkg_failed=yes
 11254 fi
 11255  else
 11256     pkg_failed=untried
 11257 fi
 11261 if test $pkg_failed = yes; then
 11263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11264         _pkg_short_errors_supported=yes
 11265 else
 11266         _pkg_short_errors_supported=no
 11267 fi
 11268         if test $_pkg_short_errors_supported = yes; then
 11269 	        GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
 11270         else
 11271 	        GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
 11272         fi
 11273 	# Put the nasty error message in config.log where it belongs
 11274 	echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
 11276 	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 11278 $GLIB_FOR_BUILD_PKG_ERRORS
 11280 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11281 installed software in a non-standard prefix.
 11283 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11284 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11285 See the pkg-config man page for more details.
 11286 " >&5
 11287 echo "$as_me: error: Package requirements (glib-2.0) were not met:
 11289 $GLIB_FOR_BUILD_PKG_ERRORS
 11291 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11292 installed software in a non-standard prefix.
 11294 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11295 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11296 See the pkg-config man page for more details.
 11297 " >&2;}
 11298    { (exit 1); exit 1; }; }
 11299 elif test $pkg_failed = untried; then
 11300 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11301 is in your PATH or set the PKG_CONFIG environment variable to the full
 11302 path to pkg-config.
 11304 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11305 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11306 See the pkg-config man page for more details.
 11308 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11309 See \`config.log' for more details." >&5
 11310 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11311 is in your PATH or set the PKG_CONFIG environment variable to the full
 11312 path to pkg-config.
 11314 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11315 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11316 See the pkg-config man page for more details.
 11318 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11319 See \`config.log' for more details." >&2;}
 11320    { (exit 1); exit 1; }; }
 11321 else
 11322 	GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
 11323 	GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
 11324         { echo "$as_me:$LINENO: result: yes" >&5
 11325 echo "${ECHO_T}yes" >&6; }
 11327 fi
 11332 if test "$HAVE_GTK" = 'yes'; then
 11333   GUI_GTK_TRUE=
 11334   GUI_GTK_FALSE='#'
 11335 else
 11336   GUI_GTK_TRUE='#'
 11337   GUI_GTK_FALSE=
 11338 fi
 11342 pkg_failed=no
 11343 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
 11344 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
 11346 if test -n "$LIBISOFS_CFLAGS"; then
 11347     pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
 11348  elif test -n "$PKG_CONFIG"; then
 11349     if test -n "$PKG_CONFIG" && \
 11350     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
 11351   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
 11352   ac_status=$?
 11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11354   (exit $ac_status); }; then
 11355   pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
 11356 else
 11357   pkg_failed=yes
 11358 fi
 11359  else
 11360     pkg_failed=untried
 11361 fi
 11362 if test -n "$LIBISOFS_LIBS"; then
 11363     pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
 11364  elif test -n "$PKG_CONFIG"; then
 11365     if test -n "$PKG_CONFIG" && \
 11366     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
 11367   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
 11368   ac_status=$?
 11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11370   (exit $ac_status); }; then
 11371   pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
 11372 else
 11373   pkg_failed=yes
 11374 fi
 11375  else
 11376     pkg_failed=untried
 11377 fi
 11381 if test $pkg_failed = yes; then
 11383 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11384         _pkg_short_errors_supported=yes
 11385 else
 11386         _pkg_short_errors_supported=no
 11387 fi
 11388         if test $_pkg_short_errors_supported = yes; then
 11389 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
 11390         else
 11391 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
 11392         fi
 11393 	# Put the nasty error message in config.log where it belongs
 11394 	echo "$LIBISOFS_PKG_ERRORS" >&5
 11396 	{ { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
 11398 $LIBISOFS_PKG_ERRORS
 11400 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11401 installed software in a non-standard prefix.
 11403 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11404 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11405 See the pkg-config man page for more details.
 11406 " >&5
 11407 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
 11409 $LIBISOFS_PKG_ERRORS
 11411 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11412 installed software in a non-standard prefix.
 11414 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11415 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11416 See the pkg-config man page for more details.
 11417 " >&2;}
 11418    { (exit 1); exit 1; }; }
 11419 elif test $pkg_failed = untried; then
 11420 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11421 is in your PATH or set the PKG_CONFIG environment variable to the full
 11422 path to pkg-config.
 11424 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11425 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11426 See the pkg-config man page for more details.
 11428 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11429 See \`config.log' for more details." >&5
 11430 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11431 is in your PATH or set the PKG_CONFIG environment variable to the full
 11432 path to pkg-config.
 11434 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11435 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11436 See the pkg-config man page for more details.
 11438 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11439 See \`config.log' for more details." >&2;}
 11440    { (exit 1); exit 1; }; }
 11441 else
 11442 	LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
 11443 	LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
 11444         { echo "$as_me:$LINENO: result: yes" >&5
 11445 echo "${ECHO_T}yes" >&6; }
 11447 fi
 11449 if test "x$with_osmesa" != xno; then
 11453 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
 11454 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
 11455 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
 11456   echo $ECHO_N "(cached) $ECHO_C" >&6
 11457 else
 11458   ac_check_lib_save_LIBS=$LIBS
 11459 LIBS="-lOSMesa  $LIBS"
 11460 cat >conftest.$ac_ext <<_ACEOF
 11461 /* confdefs.h.  */
 11462 _ACEOF
 11463 cat confdefs.h >>conftest.$ac_ext
 11464 cat >>conftest.$ac_ext <<_ACEOF
 11465 /* end confdefs.h.  */
 11467 /* Override any GCC internal prototype to avoid an error.
 11468    Use char because int might match the return type of a GCC
 11469    builtin and then its argument prototype would still apply.  */
 11470 #ifdef __cplusplus
 11471 extern "C"
 11472 #endif
 11473 char OSMesaCreateContext ();
 11474 int
 11475 main ()
 11477 return OSMesaCreateContext ();
 11479   return 0;
 11481 _ACEOF
 11482 rm -f conftest.$ac_objext conftest$ac_exeext
 11483 if { (ac_try="$ac_link"
 11484 case "(($ac_try" in
 11485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11486   *) ac_try_echo=$ac_try;;
 11487 esac
 11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11489   (eval "$ac_link") 2>conftest.er1
 11490   ac_status=$?
 11491   grep -v '^ *+' conftest.er1 >conftest.err
 11492   rm -f conftest.er1
 11493   cat conftest.err >&5
 11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11495   (exit $ac_status); } && {
 11496 	 test -z "$ac_c_werror_flag" ||
 11497 	 test ! -s conftest.err
 11498        } && test -s conftest$ac_exeext &&
 11499        $as_test_x conftest$ac_exeext; then
 11500   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
 11501 else
 11502   echo "$as_me: failed program was:" >&5
 11503 sed 's/^/| /' conftest.$ac_ext >&5
 11505 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
 11506 fi
 11508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11509       conftest$ac_exeext conftest.$ac_ext
 11510 LIBS=$ac_check_lib_save_LIBS
 11511 fi
 11512 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
 11513 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
 11514 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
 11515   cat >>confdefs.h <<_ACEOF
 11516 #define HAVE_LIBOSMESA 1
 11517 _ACEOF
 11519   LIBS="-lOSMesa $LIBS"
 11521 else
 11522   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
 11523 See \`config.log' for more details." >&5
 11524 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
 11525 See \`config.log' for more details." >&2;}
 11526    { (exit 1); exit 1; }; }
 11527 fi
 11529   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11530   { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
 11531 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
 11532 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11533   echo $ECHO_N "(cached) $ECHO_C" >&6
 11534 fi
 11535 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
 11536 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
 11537 else
 11538   # Is the header compilable?
 11539 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
 11540 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
 11541 cat >conftest.$ac_ext <<_ACEOF
 11542 /* confdefs.h.  */
 11543 _ACEOF
 11544 cat confdefs.h >>conftest.$ac_ext
 11545 cat >>conftest.$ac_ext <<_ACEOF
 11546 /* end confdefs.h.  */
 11547 $ac_includes_default
 11548 #include <GL/osmesa.h>
 11549 _ACEOF
 11550 rm -f conftest.$ac_objext
 11551 if { (ac_try="$ac_compile"
 11552 case "(($ac_try" in
 11553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11554   *) ac_try_echo=$ac_try;;
 11555 esac
 11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11557   (eval "$ac_compile") 2>conftest.er1
 11558   ac_status=$?
 11559   grep -v '^ *+' conftest.er1 >conftest.err
 11560   rm -f conftest.er1
 11561   cat conftest.err >&5
 11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11563   (exit $ac_status); } && {
 11564 	 test -z "$ac_c_werror_flag" ||
 11565 	 test ! -s conftest.err
 11566        } && test -s conftest.$ac_objext; then
 11567   ac_header_compiler=yes
 11568 else
 11569   echo "$as_me: failed program was:" >&5
 11570 sed 's/^/| /' conftest.$ac_ext >&5
 11572 	ac_header_compiler=no
 11573 fi
 11575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11577 echo "${ECHO_T}$ac_header_compiler" >&6; }
 11579 # Is the header present?
 11580 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
 11581 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
 11582 cat >conftest.$ac_ext <<_ACEOF
 11583 /* confdefs.h.  */
 11584 _ACEOF
 11585 cat confdefs.h >>conftest.$ac_ext
 11586 cat >>conftest.$ac_ext <<_ACEOF
 11587 /* end confdefs.h.  */
 11588 #include <GL/osmesa.h>
 11589 _ACEOF
 11590 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11591 case "(($ac_try" in
 11592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11593   *) ac_try_echo=$ac_try;;
 11594 esac
 11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11597   ac_status=$?
 11598   grep -v '^ *+' conftest.er1 >conftest.err
 11599   rm -f conftest.er1
 11600   cat conftest.err >&5
 11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11602   (exit $ac_status); } >/dev/null && {
 11603 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11604 	 test ! -s conftest.err
 11605        }; then
 11606   ac_header_preproc=yes
 11607 else
 11608   echo "$as_me: failed program was:" >&5
 11609 sed 's/^/| /' conftest.$ac_ext >&5
 11611   ac_header_preproc=no
 11612 fi
 11614 rm -f conftest.err conftest.$ac_ext
 11615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11616 echo "${ECHO_T}$ac_header_preproc" >&6; }
 11618 # So?  What about this header?
 11619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11620   yes:no: )
 11621     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11622 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11623     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
 11624 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
 11625     ac_header_preproc=yes
 11626     ;;
 11627   no:yes:* )
 11628     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
 11629 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
 11630     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
 11631 echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
 11632     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
 11633 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
 11634     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
 11635 echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11636     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
 11637 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
 11638     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
 11639 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
 11641     ;;
 11642 esac
 11643 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
 11644 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
 11645 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11646   echo $ECHO_N "(cached) $ECHO_C" >&6
 11647 else
 11648   ac_cv_header_GL_osmesa_h=$ac_header_preproc
 11649 fi
 11650 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
 11651 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
 11653 fi
 11654 if test $ac_cv_header_GL_osmesa_h = yes; then
 11656 else
 11657   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
 11658 See \`config.log' for more details." >&5
 11659 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
 11660 See \`config.log' for more details." >&2;}
 11661    { (exit 1); exit 1; }; }
 11662 fi
 11665   HAVE_OSMESA='yes'
 11666   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
 11668 cat >>confdefs.h <<\_ACEOF
 11669 #define HAVE_OSMESA 1
 11670 _ACEOF
 11672 else
 11675    if test "x$APPLE_BUILD" != 'xyes' -a "x$ANDROID_BUILD" != 'xyes'; then
 11677 pkg_failed=no
 11678 { echo "$as_me:$LINENO: checking for LIBGL" >&5
 11679 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
 11681 if test -n "$LIBGL_CFLAGS"; then
 11682     pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
 11683  elif test -n "$PKG_CONFIG"; then
 11684     if test -n "$PKG_CONFIG" && \
 11685     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
 11686   ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
 11687   ac_status=$?
 11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11689   (exit $ac_status); }; then
 11690   pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
 11691 else
 11692   pkg_failed=yes
 11693 fi
 11694  else
 11695     pkg_failed=untried
 11696 fi
 11697 if test -n "$LIBGL_LIBS"; then
 11698     pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
 11699  elif test -n "$PKG_CONFIG"; then
 11700     if test -n "$PKG_CONFIG" && \
 11701     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
 11702   ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
 11703   ac_status=$?
 11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11705   (exit $ac_status); }; then
 11706   pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
 11707 else
 11708   pkg_failed=yes
 11709 fi
 11710  else
 11711     pkg_failed=untried
 11712 fi
 11716 if test $pkg_failed = yes; then
 11718 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11719         _pkg_short_errors_supported=yes
 11720 else
 11721         _pkg_short_errors_supported=no
 11722 fi
 11723         if test $_pkg_short_errors_supported = yes; then
 11724 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
 11725         else
 11726 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
 11727         fi
 11728 	# Put the nasty error message in config.log where it belongs
 11729 	echo "$LIBGL_PKG_ERRORS" >&5
 11731 	{ { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
 11733 $LIBGL_PKG_ERRORS
 11735 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11736 installed software in a non-standard prefix.
 11738 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11739 and LIBGL_LIBS to avoid the need to call pkg-config.
 11740 See the pkg-config man page for more details.
 11741 " >&5
 11742 echo "$as_me: error: Package requirements (gl ) were not met:
 11744 $LIBGL_PKG_ERRORS
 11746 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11747 installed software in a non-standard prefix.
 11749 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11750 and LIBGL_LIBS to avoid the need to call pkg-config.
 11751 See the pkg-config man page for more details.
 11752 " >&2;}
 11753    { (exit 1); exit 1; }; }
 11754 elif test $pkg_failed = untried; then
 11755 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11756 is in your PATH or set the PKG_CONFIG environment variable to the full
 11757 path to pkg-config.
 11759 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11760 and LIBGL_LIBS to avoid the need to call pkg-config.
 11761 See the pkg-config man page for more details.
 11763 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11764 See \`config.log' for more details." >&5
 11765 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11766 is in your PATH or set the PKG_CONFIG environment variable to the full
 11767 path to pkg-config.
 11769 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11770 and LIBGL_LIBS to avoid the need to call pkg-config.
 11771 See the pkg-config man page for more details.
 11773 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11774 See \`config.log' for more details." >&2;}
 11775    { (exit 1); exit 1; }; }
 11776 else
 11777 	LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
 11778 	LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
 11779         { echo "$as_me:$LINENO: result: yes" >&5
 11780 echo "${ECHO_T}yes" >&6; }
 11782 fi
 11783                                       LIBS="$LIBS $LIBGL_LIBS";
 11784       CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
 11785    else
 11786       { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
 11787 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
 11788 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
 11789   echo $ECHO_N "(cached) $ECHO_C" >&6
 11790 else
 11791   cat >conftest.$ac_ext <<_ACEOF
 11792 /* confdefs.h.  */
 11793 _ACEOF
 11794 cat confdefs.h >>conftest.$ac_ext
 11795 cat >>conftest.$ac_ext <<_ACEOF
 11796 /* end confdefs.h.  */
 11797 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
 11798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11799 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
 11801 /* System header to define __stub macros and hopefully few prototypes,
 11802     which can conflict with char NSOpenGLGetVersion (); below.
 11803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11804     <limits.h> exists even on freestanding compilers.  */
 11806 #ifdef __STDC__
 11807 # include <limits.h>
 11808 #else
 11809 # include <assert.h>
 11810 #endif
 11812 #undef NSOpenGLGetVersion
 11814 /* Override any GCC internal prototype to avoid an error.
 11815    Use char because int might match the return type of a GCC
 11816    builtin and then its argument prototype would still apply.  */
 11817 #ifdef __cplusplus
 11818 extern "C"
 11819 #endif
 11820 char NSOpenGLGetVersion ();
 11821 /* The GNU C library defines this for functions which it implements
 11822     to always fail with ENOSYS.  Some functions are actually named
 11823     something starting with __ and the normal name is an alias.  */
 11824 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
 11825 choke me
 11826 #endif
 11828 int
 11829 main ()
 11831 return NSOpenGLGetVersion ();
 11833   return 0;
 11835 _ACEOF
 11836 rm -f conftest.$ac_objext conftest$ac_exeext
 11837 if { (ac_try="$ac_link"
 11838 case "(($ac_try" in
 11839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11840   *) ac_try_echo=$ac_try;;
 11841 esac
 11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11843   (eval "$ac_link") 2>conftest.er1
 11844   ac_status=$?
 11845   grep -v '^ *+' conftest.er1 >conftest.err
 11846   rm -f conftest.er1
 11847   cat conftest.err >&5
 11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11849   (exit $ac_status); } && {
 11850 	 test -z "$ac_c_werror_flag" ||
 11851 	 test ! -s conftest.err
 11852        } && test -s conftest$ac_exeext &&
 11853        $as_test_x conftest$ac_exeext; then
 11854   ac_cv_func_NSOpenGLGetVersion=yes
 11855 else
 11856   echo "$as_me: failed program was:" >&5
 11857 sed 's/^/| /' conftest.$ac_ext >&5
 11859 	ac_cv_func_NSOpenGLGetVersion=no
 11860 fi
 11862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11863       conftest$ac_exeext conftest.$ac_ext
 11864 fi
 11865 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
 11866 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
 11867 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
 11869          HAVE_NSGL='yes'
 11870          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
 11872 cat >>confdefs.h <<\_ACEOF
 11873 #define HAVE_NSGL 1
 11874 _ACEOF
 11876 fi
 11878    fi
 11880    if test "x$HAVE_GTK_X11" = "xyes"; then
 11881       if test "x$APPLE_BUILD" = "xyes"; then
 11882          LIBS="$LIBS -L/usr/X11/lib -lGL"
 11883       fi
 11884       { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
 11885 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
 11886 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
 11887   echo $ECHO_N "(cached) $ECHO_C" >&6
 11888 else
 11889   cat >conftest.$ac_ext <<_ACEOF
 11890 /* confdefs.h.  */
 11891 _ACEOF
 11892 cat confdefs.h >>conftest.$ac_ext
 11893 cat >>conftest.$ac_ext <<_ACEOF
 11894 /* end confdefs.h.  */
 11895 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
 11896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11897 #define glXQueryVersion innocuous_glXQueryVersion
 11899 /* System header to define __stub macros and hopefully few prototypes,
 11900     which can conflict with char glXQueryVersion (); below.
 11901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11902     <limits.h> exists even on freestanding compilers.  */
 11904 #ifdef __STDC__
 11905 # include <limits.h>
 11906 #else
 11907 # include <assert.h>
 11908 #endif
 11910 #undef glXQueryVersion
 11912 /* Override any GCC internal prototype to avoid an error.
 11913    Use char because int might match the return type of a GCC
 11914    builtin and then its argument prototype would still apply.  */
 11915 #ifdef __cplusplus
 11916 extern "C"
 11917 #endif
 11918 char glXQueryVersion ();
 11919 /* The GNU C library defines this for functions which it implements
 11920     to always fail with ENOSYS.  Some functions are actually named
 11921     something starting with __ and the normal name is an alias.  */
 11922 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
 11923 choke me
 11924 #endif
 11926 int
 11927 main ()
 11929 return glXQueryVersion ();
 11931   return 0;
 11933 _ACEOF
 11934 rm -f conftest.$ac_objext conftest$ac_exeext
 11935 if { (ac_try="$ac_link"
 11936 case "(($ac_try" in
 11937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11938   *) ac_try_echo=$ac_try;;
 11939 esac
 11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11941   (eval "$ac_link") 2>conftest.er1
 11942   ac_status=$?
 11943   grep -v '^ *+' conftest.er1 >conftest.err
 11944   rm -f conftest.er1
 11945   cat conftest.err >&5
 11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11947   (exit $ac_status); } && {
 11948 	 test -z "$ac_c_werror_flag" ||
 11949 	 test ! -s conftest.err
 11950        } && test -s conftest$ac_exeext &&
 11951        $as_test_x conftest$ac_exeext; then
 11952   ac_cv_func_glXQueryVersion=yes
 11953 else
 11954   echo "$as_me: failed program was:" >&5
 11955 sed 's/^/| /' conftest.$ac_ext >&5
 11957 	ac_cv_func_glXQueryVersion=no
 11958 fi
 11960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11961       conftest$ac_exeext conftest.$ac_ext
 11962 fi
 11963 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
 11964 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
 11965 if test $ac_cv_func_glXQueryVersion = yes; then
 11967          HAVE_GLX='yes'
 11968          VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
 11970 cat >>confdefs.h <<\_ACEOF
 11971 #define HAVE_GLX 1
 11972 _ACEOF
 11974 fi
 11976    fi
 11979 fi
 11986 if test "x$HAVE_OSMESA" = "xyes"; then
 11987   VIDEO_OSMESA_TRUE=
 11988   VIDEO_OSMESA_FALSE='#'
 11989 else
 11990   VIDEO_OSMESA_TRUE='#'
 11991   VIDEO_OSMESA_FALSE=
 11992 fi
 11996 if test "x$HAVE_GLX" = "xyes"; then
 11997   VIDEO_GLX_TRUE=
 11998   VIDEO_GLX_FALSE='#'
 11999 else
 12000   VIDEO_GLX_TRUE='#'
 12001   VIDEO_GLX_FALSE=
 12002 fi
 12006 if test "x$HAVE_NSGL" = "xyes"; then
 12007   VIDEO_NSGL_TRUE=
 12008   VIDEO_NSGL_FALSE='#'
 12009 else
 12010   VIDEO_NSGL_TRUE='#'
 12011   VIDEO_NSGL_FALSE=
 12012 fi
 12015 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
 12016 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
 12017 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
 12018   echo $ECHO_N "(cached) $ECHO_C" >&6
 12019 else
 12020   cat >conftest.$ac_ext <<_ACEOF
 12021 /* confdefs.h.  */
 12022 _ACEOF
 12023 cat confdefs.h >>conftest.$ac_ext
 12024 cat >>conftest.$ac_ext <<_ACEOF
 12025 /* end confdefs.h.  */
 12026 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
 12027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12028 #define glGenFramebuffers innocuous_glGenFramebuffers
 12030 /* System header to define __stub macros and hopefully few prototypes,
 12031     which can conflict with char glGenFramebuffers (); below.
 12032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12033     <limits.h> exists even on freestanding compilers.  */
 12035 #ifdef __STDC__
 12036 # include <limits.h>
 12037 #else
 12038 # include <assert.h>
 12039 #endif
 12041 #undef glGenFramebuffers
 12043 /* Override any GCC internal prototype to avoid an error.
 12044    Use char because int might match the return type of a GCC
 12045    builtin and then its argument prototype would still apply.  */
 12046 #ifdef __cplusplus
 12047 extern "C"
 12048 #endif
 12049 char glGenFramebuffers ();
 12050 /* The GNU C library defines this for functions which it implements
 12051     to always fail with ENOSYS.  Some functions are actually named
 12052     something starting with __ and the normal name is an alias.  */
 12053 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
 12054 choke me
 12055 #endif
 12057 int
 12058 main ()
 12060 return glGenFramebuffers ();
 12062   return 0;
 12064 _ACEOF
 12065 rm -f conftest.$ac_objext conftest$ac_exeext
 12066 if { (ac_try="$ac_link"
 12067 case "(($ac_try" in
 12068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12069   *) ac_try_echo=$ac_try;;
 12070 esac
 12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12072   (eval "$ac_link") 2>conftest.er1
 12073   ac_status=$?
 12074   grep -v '^ *+' conftest.er1 >conftest.err
 12075   rm -f conftest.er1
 12076   cat conftest.err >&5
 12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12078   (exit $ac_status); } && {
 12079 	 test -z "$ac_c_werror_flag" ||
 12080 	 test ! -s conftest.err
 12081        } && test -s conftest$ac_exeext &&
 12082        $as_test_x conftest$ac_exeext; then
 12083   ac_cv_func_glGenFramebuffers=yes
 12084 else
 12085   echo "$as_me: failed program was:" >&5
 12086 sed 's/^/| /' conftest.$ac_ext >&5
 12088 	ac_cv_func_glGenFramebuffers=no
 12089 fi
 12091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12092       conftest$ac_exeext conftest.$ac_ext
 12093 fi
 12094 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
 12095 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
 12096 if test $ac_cv_func_glGenFramebuffers = yes; then
 12098 cat >>confdefs.h <<\_ACEOF
 12099 #define HAVE_OPENGL_FBO 1
 12100 _ACEOF
 12102 fi
 12104 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
 12105 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
 12106 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
 12107   echo $ECHO_N "(cached) $ECHO_C" >&6
 12108 else
 12109   cat >conftest.$ac_ext <<_ACEOF
 12110 /* confdefs.h.  */
 12111 _ACEOF
 12112 cat confdefs.h >>conftest.$ac_ext
 12113 cat >>conftest.$ac_ext <<_ACEOF
 12114 /* end confdefs.h.  */
 12115 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
 12116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12117 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
 12119 /* System header to define __stub macros and hopefully few prototypes,
 12120     which can conflict with char glGenFramebuffersEXT (); below.
 12121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12122     <limits.h> exists even on freestanding compilers.  */
 12124 #ifdef __STDC__
 12125 # include <limits.h>
 12126 #else
 12127 # include <assert.h>
 12128 #endif
 12130 #undef glGenFramebuffersEXT
 12132 /* Override any GCC internal prototype to avoid an error.
 12133    Use char because int might match the return type of a GCC
 12134    builtin and then its argument prototype would still apply.  */
 12135 #ifdef __cplusplus
 12136 extern "C"
 12137 #endif
 12138 char glGenFramebuffersEXT ();
 12139 /* The GNU C library defines this for functions which it implements
 12140     to always fail with ENOSYS.  Some functions are actually named
 12141     something starting with __ and the normal name is an alias.  */
 12142 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
 12143 choke me
 12144 #endif
 12146 int
 12147 main ()
 12149 return glGenFramebuffersEXT ();
 12151   return 0;
 12153 _ACEOF
 12154 rm -f conftest.$ac_objext conftest$ac_exeext
 12155 if { (ac_try="$ac_link"
 12156 case "(($ac_try" in
 12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12158   *) ac_try_echo=$ac_try;;
 12159 esac
 12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12161   (eval "$ac_link") 2>conftest.er1
 12162   ac_status=$?
 12163   grep -v '^ *+' conftest.er1 >conftest.err
 12164   rm -f conftest.er1
 12165   cat conftest.err >&5
 12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12167   (exit $ac_status); } && {
 12168 	 test -z "$ac_c_werror_flag" ||
 12169 	 test ! -s conftest.err
 12170        } && test -s conftest$ac_exeext &&
 12171        $as_test_x conftest$ac_exeext; then
 12172   ac_cv_func_glGenFramebuffersEXT=yes
 12173 else
 12174   echo "$as_me: failed program was:" >&5
 12175 sed 's/^/| /' conftest.$ac_ext >&5
 12177 	ac_cv_func_glGenFramebuffersEXT=no
 12178 fi
 12180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12181       conftest$ac_exeext conftest.$ac_ext
 12182 fi
 12183 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
 12184 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
 12185 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
 12187 cat >>confdefs.h <<\_ACEOF
 12188 #define HAVE_OPENGL_FBO_EXT 1
 12189 _ACEOF
 12191 fi
 12193 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
 12194 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
 12195 if test "${ac_cv_func_glCreateShader+set}" = set; then
 12196   echo $ECHO_N "(cached) $ECHO_C" >&6
 12197 else
 12198   cat >conftest.$ac_ext <<_ACEOF
 12199 /* confdefs.h.  */
 12200 _ACEOF
 12201 cat confdefs.h >>conftest.$ac_ext
 12202 cat >>conftest.$ac_ext <<_ACEOF
 12203 /* end confdefs.h.  */
 12204 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
 12205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12206 #define glCreateShader innocuous_glCreateShader
 12208 /* System header to define __stub macros and hopefully few prototypes,
 12209     which can conflict with char glCreateShader (); below.
 12210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12211     <limits.h> exists even on freestanding compilers.  */
 12213 #ifdef __STDC__
 12214 # include <limits.h>
 12215 #else
 12216 # include <assert.h>
 12217 #endif
 12219 #undef glCreateShader
 12221 /* Override any GCC internal prototype to avoid an error.
 12222    Use char because int might match the return type of a GCC
 12223    builtin and then its argument prototype would still apply.  */
 12224 #ifdef __cplusplus
 12225 extern "C"
 12226 #endif
 12227 char glCreateShader ();
 12228 /* The GNU C library defines this for functions which it implements
 12229     to always fail with ENOSYS.  Some functions are actually named
 12230     something starting with __ and the normal name is an alias.  */
 12231 #if defined __stub_glCreateShader || defined __stub___glCreateShader
 12232 choke me
 12233 #endif
 12235 int
 12236 main ()
 12238 return glCreateShader ();
 12240   return 0;
 12242 _ACEOF
 12243 rm -f conftest.$ac_objext conftest$ac_exeext
 12244 if { (ac_try="$ac_link"
 12245 case "(($ac_try" in
 12246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12247   *) ac_try_echo=$ac_try;;
 12248 esac
 12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12250   (eval "$ac_link") 2>conftest.er1
 12251   ac_status=$?
 12252   grep -v '^ *+' conftest.er1 >conftest.err
 12253   rm -f conftest.er1
 12254   cat conftest.err >&5
 12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12256   (exit $ac_status); } && {
 12257 	 test -z "$ac_c_werror_flag" ||
 12258 	 test ! -s conftest.err
 12259        } && test -s conftest$ac_exeext &&
 12260        $as_test_x conftest$ac_exeext; then
 12261   ac_cv_func_glCreateShader=yes
 12262 else
 12263   echo "$as_me: failed program was:" >&5
 12264 sed 's/^/| /' conftest.$ac_ext >&5
 12266 	ac_cv_func_glCreateShader=no
 12267 fi
 12269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12270       conftest$ac_exeext conftest.$ac_ext
 12271 fi
 12272 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
 12273 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
 12274 if test $ac_cv_func_glCreateShader = yes; then
 12276 cat >>confdefs.h <<\_ACEOF
 12277 #define HAVE_OPENGL_SHADER 1
 12278 _ACEOF
 12280 fi
 12282 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
 12283 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
 12284 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
 12285   echo $ECHO_N "(cached) $ECHO_C" >&6
 12286 else
 12287   cat >conftest.$ac_ext <<_ACEOF
 12288 /* confdefs.h.  */
 12289 _ACEOF
 12290 cat confdefs.h >>conftest.$ac_ext
 12291 cat >>conftest.$ac_ext <<_ACEOF
 12292 /* end confdefs.h.  */
 12293 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
 12294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12295 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
 12297 /* System header to define __stub macros and hopefully few prototypes,
 12298     which can conflict with char glCreateShaderObjectARB (); below.
 12299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12300     <limits.h> exists even on freestanding compilers.  */
 12302 #ifdef __STDC__
 12303 # include <limits.h>
 12304 #else
 12305 # include <assert.h>
 12306 #endif
 12308 #undef glCreateShaderObjectARB
 12310 /* Override any GCC internal prototype to avoid an error.
 12311    Use char because int might match the return type of a GCC
 12312    builtin and then its argument prototype would still apply.  */
 12313 #ifdef __cplusplus
 12314 extern "C"
 12315 #endif
 12316 char glCreateShaderObjectARB ();
 12317 /* The GNU C library defines this for functions which it implements
 12318     to always fail with ENOSYS.  Some functions are actually named
 12319     something starting with __ and the normal name is an alias.  */
 12320 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
 12321 choke me
 12322 #endif
 12324 int
 12325 main ()
 12327 return glCreateShaderObjectARB ();
 12329   return 0;
 12331 _ACEOF
 12332 rm -f conftest.$ac_objext conftest$ac_exeext
 12333 if { (ac_try="$ac_link"
 12334 case "(($ac_try" in
 12335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12336   *) ac_try_echo=$ac_try;;
 12337 esac
 12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12339   (eval "$ac_link") 2>conftest.er1
 12340   ac_status=$?
 12341   grep -v '^ *+' conftest.er1 >conftest.err
 12342   rm -f conftest.er1
 12343   cat conftest.err >&5
 12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12345   (exit $ac_status); } && {
 12346 	 test -z "$ac_c_werror_flag" ||
 12347 	 test ! -s conftest.err
 12348        } && test -s conftest$ac_exeext &&
 12349        $as_test_x conftest$ac_exeext; then
 12350   ac_cv_func_glCreateShaderObjectARB=yes
 12351 else
 12352   echo "$as_me: failed program was:" >&5
 12353 sed 's/^/| /' conftest.$ac_ext >&5
 12355 	ac_cv_func_glCreateShaderObjectARB=no
 12356 fi
 12358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12359       conftest$ac_exeext conftest.$ac_ext
 12360 fi
 12361 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
 12362 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
 12363 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
 12365 cat >>confdefs.h <<\_ACEOF
 12366 #define HAVE_OPENGL_SHADER_ARB 1
 12367 _ACEOF
 12369 fi
 12371 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
 12372 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
 12373 if test "${ac_cv_func_glClampColorARB+set}" = set; then
 12374   echo $ECHO_N "(cached) $ECHO_C" >&6
 12375 else
 12376   cat >conftest.$ac_ext <<_ACEOF
 12377 /* confdefs.h.  */
 12378 _ACEOF
 12379 cat confdefs.h >>conftest.$ac_ext
 12380 cat >>conftest.$ac_ext <<_ACEOF
 12381 /* end confdefs.h.  */
 12382 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
 12383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12384 #define glClampColorARB innocuous_glClampColorARB
 12386 /* System header to define __stub macros and hopefully few prototypes,
 12387     which can conflict with char glClampColorARB (); below.
 12388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12389     <limits.h> exists even on freestanding compilers.  */
 12391 #ifdef __STDC__
 12392 # include <limits.h>
 12393 #else
 12394 # include <assert.h>
 12395 #endif
 12397 #undef glClampColorARB
 12399 /* Override any GCC internal prototype to avoid an error.
 12400    Use char because int might match the return type of a GCC
 12401    builtin and then its argument prototype would still apply.  */
 12402 #ifdef __cplusplus
 12403 extern "C"
 12404 #endif
 12405 char glClampColorARB ();
 12406 /* The GNU C library defines this for functions which it implements
 12407     to always fail with ENOSYS.  Some functions are actually named
 12408     something starting with __ and the normal name is an alias.  */
 12409 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
 12410 choke me
 12411 #endif
 12413 int
 12414 main ()
 12416 return glClampColorARB ();
 12418   return 0;
 12420 _ACEOF
 12421 rm -f conftest.$ac_objext conftest$ac_exeext
 12422 if { (ac_try="$ac_link"
 12423 case "(($ac_try" in
 12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12425   *) ac_try_echo=$ac_try;;
 12426 esac
 12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12428   (eval "$ac_link") 2>conftest.er1
 12429   ac_status=$?
 12430   grep -v '^ *+' conftest.er1 >conftest.err
 12431   rm -f conftest.er1
 12432   cat conftest.err >&5
 12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12434   (exit $ac_status); } && {
 12435 	 test -z "$ac_c_werror_flag" ||
 12436 	 test ! -s conftest.err
 12437        } && test -s conftest$ac_exeext &&
 12438        $as_test_x conftest$ac_exeext; then
 12439   ac_cv_func_glClampColorARB=yes
 12440 else
 12441   echo "$as_me: failed program was:" >&5
 12442 sed 's/^/| /' conftest.$ac_ext >&5
 12444 	ac_cv_func_glClampColorARB=no
 12445 fi
 12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12448       conftest$ac_exeext conftest.$ac_ext
 12449 fi
 12450 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
 12451 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
 12452 if test $ac_cv_func_glClampColorARB = yes; then
 12454 cat >>confdefs.h <<\_ACEOF
 12455 #define HAVE_OPENGL_CLAMP_COLOR 1
 12456 _ACEOF
 12458 fi
 12460 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
 12461 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
 12462 if test "${ac_cv_func_glClearDepthf+set}" = set; then
 12463   echo $ECHO_N "(cached) $ECHO_C" >&6
 12464 else
 12465   cat >conftest.$ac_ext <<_ACEOF
 12466 /* confdefs.h.  */
 12467 _ACEOF
 12468 cat confdefs.h >>conftest.$ac_ext
 12469 cat >>conftest.$ac_ext <<_ACEOF
 12470 /* end confdefs.h.  */
 12471 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
 12472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12473 #define glClearDepthf innocuous_glClearDepthf
 12475 /* System header to define __stub macros and hopefully few prototypes,
 12476     which can conflict with char glClearDepthf (); below.
 12477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12478     <limits.h> exists even on freestanding compilers.  */
 12480 #ifdef __STDC__
 12481 # include <limits.h>
 12482 #else
 12483 # include <assert.h>
 12484 #endif
 12486 #undef glClearDepthf
 12488 /* Override any GCC internal prototype to avoid an error.
 12489    Use char because int might match the return type of a GCC
 12490    builtin and then its argument prototype would still apply.  */
 12491 #ifdef __cplusplus
 12492 extern "C"
 12493 #endif
 12494 char glClearDepthf ();
 12495 /* The GNU C library defines this for functions which it implements
 12496     to always fail with ENOSYS.  Some functions are actually named
 12497     something starting with __ and the normal name is an alias.  */
 12498 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
 12499 choke me
 12500 #endif
 12502 int
 12503 main ()
 12505 return glClearDepthf ();
 12507   return 0;
 12509 _ACEOF
 12510 rm -f conftest.$ac_objext conftest$ac_exeext
 12511 if { (ac_try="$ac_link"
 12512 case "(($ac_try" in
 12513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12514   *) ac_try_echo=$ac_try;;
 12515 esac
 12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12517   (eval "$ac_link") 2>conftest.er1
 12518   ac_status=$?
 12519   grep -v '^ *+' conftest.er1 >conftest.err
 12520   rm -f conftest.er1
 12521   cat conftest.err >&5
 12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12523   (exit $ac_status); } && {
 12524 	 test -z "$ac_c_werror_flag" ||
 12525 	 test ! -s conftest.err
 12526        } && test -s conftest$ac_exeext &&
 12527        $as_test_x conftest$ac_exeext; then
 12528   ac_cv_func_glClearDepthf=yes
 12529 else
 12530   echo "$as_me: failed program was:" >&5
 12531 sed 's/^/| /' conftest.$ac_ext >&5
 12533 	ac_cv_func_glClearDepthf=no
 12534 fi
 12536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12537       conftest$ac_exeext conftest.$ac_ext
 12538 fi
 12539 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
 12540 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
 12541 if test $ac_cv_func_glClearDepthf = yes; then
 12543 cat >>confdefs.h <<\_ACEOF
 12544 #define HAVE_OPENGL_CLEAR_DEPTHF 1
 12545 _ACEOF
 12547 fi
 12549 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
 12550 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
 12551 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
 12552   echo $ECHO_N "(cached) $ECHO_C" >&6
 12553 else
 12554   cat >conftest.$ac_ext <<_ACEOF
 12555 /* confdefs.h.  */
 12556 _ACEOF
 12557 cat confdefs.h >>conftest.$ac_ext
 12558 cat >>conftest.$ac_ext <<_ACEOF
 12559 /* end confdefs.h.  */
 12560 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
 12561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12562 #define glAreTexturesResident innocuous_glAreTexturesResident
 12564 /* System header to define __stub macros and hopefully few prototypes,
 12565     which can conflict with char glAreTexturesResident (); below.
 12566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12567     <limits.h> exists even on freestanding compilers.  */
 12569 #ifdef __STDC__
 12570 # include <limits.h>
 12571 #else
 12572 # include <assert.h>
 12573 #endif
 12575 #undef glAreTexturesResident
 12577 /* Override any GCC internal prototype to avoid an error.
 12578    Use char because int might match the return type of a GCC
 12579    builtin and then its argument prototype would still apply.  */
 12580 #ifdef __cplusplus
 12581 extern "C"
 12582 #endif
 12583 char glAreTexturesResident ();
 12584 /* The GNU C library defines this for functions which it implements
 12585     to always fail with ENOSYS.  Some functions are actually named
 12586     something starting with __ and the normal name is an alias.  */
 12587 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
 12588 choke me
 12589 #endif
 12591 int
 12592 main ()
 12594 return glAreTexturesResident ();
 12596   return 0;
 12598 _ACEOF
 12599 rm -f conftest.$ac_objext conftest$ac_exeext
 12600 if { (ac_try="$ac_link"
 12601 case "(($ac_try" in
 12602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12603   *) ac_try_echo=$ac_try;;
 12604 esac
 12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12606   (eval "$ac_link") 2>conftest.er1
 12607   ac_status=$?
 12608   grep -v '^ *+' conftest.er1 >conftest.err
 12609   rm -f conftest.er1
 12610   cat conftest.err >&5
 12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12612   (exit $ac_status); } && {
 12613 	 test -z "$ac_c_werror_flag" ||
 12614 	 test ! -s conftest.err
 12615        } && test -s conftest$ac_exeext &&
 12616        $as_test_x conftest$ac_exeext; then
 12617   ac_cv_func_glAreTexturesResident=yes
 12618 else
 12619   echo "$as_me: failed program was:" >&5
 12620 sed 's/^/| /' conftest.$ac_ext >&5
 12622 	ac_cv_func_glAreTexturesResident=no
 12623 fi
 12625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12626       conftest$ac_exeext conftest.$ac_ext
 12627 fi
 12628 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
 12629 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
 12630 if test $ac_cv_func_glAreTexturesResident = yes; then
 12632 cat >>confdefs.h <<\_ACEOF
 12633 #define HAVE_OPENGL_TEX_RESIDENT 1
 12634 _ACEOF
 12636 fi
 12638 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
 12639 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
 12640 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
 12641   echo $ECHO_N "(cached) $ECHO_C" >&6
 12642 else
 12643   cat >conftest.$ac_ext <<_ACEOF
 12644 /* confdefs.h.  */
 12645 _ACEOF
 12646 cat confdefs.h >>conftest.$ac_ext
 12647 cat >>conftest.$ac_ext <<_ACEOF
 12648 /* end confdefs.h.  */
 12649 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
 12650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12651 #define glDrawBuffer innocuous_glDrawBuffer
 12653 /* System header to define __stub macros and hopefully few prototypes,
 12654     which can conflict with char glDrawBuffer (); below.
 12655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12656     <limits.h> exists even on freestanding compilers.  */
 12658 #ifdef __STDC__
 12659 # include <limits.h>
 12660 #else
 12661 # include <assert.h>
 12662 #endif
 12664 #undef glDrawBuffer
 12666 /* Override any GCC internal prototype to avoid an error.
 12667    Use char because int might match the return type of a GCC
 12668    builtin and then its argument prototype would still apply.  */
 12669 #ifdef __cplusplus
 12670 extern "C"
 12671 #endif
 12672 char glDrawBuffer ();
 12673 /* The GNU C library defines this for functions which it implements
 12674     to always fail with ENOSYS.  Some functions are actually named
 12675     something starting with __ and the normal name is an alias.  */
 12676 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
 12677 choke me
 12678 #endif
 12680 int
 12681 main ()
 12683 return glDrawBuffer ();
 12685   return 0;
 12687 _ACEOF
 12688 rm -f conftest.$ac_objext conftest$ac_exeext
 12689 if { (ac_try="$ac_link"
 12690 case "(($ac_try" in
 12691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12692   *) ac_try_echo=$ac_try;;
 12693 esac
 12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12695   (eval "$ac_link") 2>conftest.er1
 12696   ac_status=$?
 12697   grep -v '^ *+' conftest.er1 >conftest.err
 12698   rm -f conftest.er1
 12699   cat conftest.err >&5
 12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12701   (exit $ac_status); } && {
 12702 	 test -z "$ac_c_werror_flag" ||
 12703 	 test ! -s conftest.err
 12704        } && test -s conftest$ac_exeext &&
 12705        $as_test_x conftest$ac_exeext; then
 12706   ac_cv_func_glDrawBuffer=yes
 12707 else
 12708   echo "$as_me: failed program was:" >&5
 12709 sed 's/^/| /' conftest.$ac_ext >&5
 12711 	ac_cv_func_glDrawBuffer=no
 12712 fi
 12714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12715       conftest$ac_exeext conftest.$ac_ext
 12716 fi
 12717 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
 12718 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
 12719 if test $ac_cv_func_glDrawBuffer = yes; then
 12721 cat >>confdefs.h <<\_ACEOF
 12722 #define HAVE_OPENGL_DRAW_BUFFER 1
 12723 _ACEOF
 12725 fi
 12727 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
 12728 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
 12729 if test "${ac_cv_func_glTexEnvi+set}" = set; then
 12730   echo $ECHO_N "(cached) $ECHO_C" >&6
 12731 else
 12732   cat >conftest.$ac_ext <<_ACEOF
 12733 /* confdefs.h.  */
 12734 _ACEOF
 12735 cat confdefs.h >>conftest.$ac_ext
 12736 cat >>conftest.$ac_ext <<_ACEOF
 12737 /* end confdefs.h.  */
 12738 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
 12739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12740 #define glTexEnvi innocuous_glTexEnvi
 12742 /* System header to define __stub macros and hopefully few prototypes,
 12743     which can conflict with char glTexEnvi (); below.
 12744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12745     <limits.h> exists even on freestanding compilers.  */
 12747 #ifdef __STDC__
 12748 # include <limits.h>
 12749 #else
 12750 # include <assert.h>
 12751 #endif
 12753 #undef glTexEnvi
 12755 /* Override any GCC internal prototype to avoid an error.
 12756    Use char because int might match the return type of a GCC
 12757    builtin and then its argument prototype would still apply.  */
 12758 #ifdef __cplusplus
 12759 extern "C"
 12760 #endif
 12761 char glTexEnvi ();
 12762 /* The GNU C library defines this for functions which it implements
 12763     to always fail with ENOSYS.  Some functions are actually named
 12764     something starting with __ and the normal name is an alias.  */
 12765 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
 12766 choke me
 12767 #endif
 12769 int
 12770 main ()
 12772 return glTexEnvi ();
 12774   return 0;
 12776 _ACEOF
 12777 rm -f conftest.$ac_objext conftest$ac_exeext
 12778 if { (ac_try="$ac_link"
 12779 case "(($ac_try" in
 12780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12781   *) ac_try_echo=$ac_try;;
 12782 esac
 12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12784   (eval "$ac_link") 2>conftest.er1
 12785   ac_status=$?
 12786   grep -v '^ *+' conftest.er1 >conftest.err
 12787   rm -f conftest.er1
 12788   cat conftest.err >&5
 12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12790   (exit $ac_status); } && {
 12791 	 test -z "$ac_c_werror_flag" ||
 12792 	 test ! -s conftest.err
 12793        } && test -s conftest$ac_exeext &&
 12794        $as_test_x conftest$ac_exeext; then
 12795   ac_cv_func_glTexEnvi=yes
 12796 else
 12797   echo "$as_me: failed program was:" >&5
 12798 sed 's/^/| /' conftest.$ac_ext >&5
 12800 	ac_cv_func_glTexEnvi=no
 12801 fi
 12803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12804       conftest$ac_exeext conftest.$ac_ext
 12805 fi
 12806 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
 12807 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
 12808 if test $ac_cv_func_glTexEnvi = yes; then
 12810 cat >>confdefs.h <<\_ACEOF
 12811 #define HAVE_OPENGL_FIXEDFUNC 1
 12812 _ACEOF
 12814 fi
 12817 if test "x$enable_translator" != "xno"; then
 12818     case $host_cpu in
 12819         i386|i486|i586|i686|x86_64)
 12820 	    SH4_TRANSLATOR="x86"
 12822 cat >>confdefs.h <<_ACEOF
 12823 #define SH4_TRANSLATOR TARGET_X86
 12824 _ACEOF
 12825 ;;
 12826     esac
 12827 fi
 12830 if test "$SH4_TRANSLATOR" = "x86"; then
 12831   BUILD_SH4X86_TRUE=
 12832   BUILD_SH4X86_FALSE='#'
 12833 else
 12834   BUILD_SH4X86_TRUE='#'
 12835   BUILD_SH4X86_FALSE=
 12836 fi
 12839 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 12840   { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 12841 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 12842 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 12843   echo $ECHO_N "(cached) $ECHO_C" >&6
 12844 fi
 12845 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 12846 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 12847 else
 12848   # Is the header compilable?
 12849 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 12850 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
 12851 cat >conftest.$ac_ext <<_ACEOF
 12852 /* confdefs.h.  */
 12853 _ACEOF
 12854 cat confdefs.h >>conftest.$ac_ext
 12855 cat >>conftest.$ac_ext <<_ACEOF
 12856 /* end confdefs.h.  */
 12857 $ac_includes_default
 12858 #include <CoreAudio/CoreAudio.h>
 12859 _ACEOF
 12860 rm -f conftest.$ac_objext
 12861 if { (ac_try="$ac_compile"
 12862 case "(($ac_try" in
 12863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12864   *) ac_try_echo=$ac_try;;
 12865 esac
 12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12867   (eval "$ac_compile") 2>conftest.er1
 12868   ac_status=$?
 12869   grep -v '^ *+' conftest.er1 >conftest.err
 12870   rm -f conftest.er1
 12871   cat conftest.err >&5
 12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12873   (exit $ac_status); } && {
 12874 	 test -z "$ac_c_werror_flag" ||
 12875 	 test ! -s conftest.err
 12876        } && test -s conftest.$ac_objext; then
 12877   ac_header_compiler=yes
 12878 else
 12879   echo "$as_me: failed program was:" >&5
 12880 sed 's/^/| /' conftest.$ac_ext >&5
 12882 	ac_header_compiler=no
 12883 fi
 12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 12886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 12887 echo "${ECHO_T}$ac_header_compiler" >&6; }
 12889 # Is the header present?
 12890 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 12891 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
 12892 cat >conftest.$ac_ext <<_ACEOF
 12893 /* confdefs.h.  */
 12894 _ACEOF
 12895 cat confdefs.h >>conftest.$ac_ext
 12896 cat >>conftest.$ac_ext <<_ACEOF
 12897 /* end confdefs.h.  */
 12898 #include <CoreAudio/CoreAudio.h>
 12899 _ACEOF
 12900 if { (ac_try="$ac_cpp conftest.$ac_ext"
 12901 case "(($ac_try" in
 12902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12903   *) ac_try_echo=$ac_try;;
 12904 esac
 12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 12907   ac_status=$?
 12908   grep -v '^ *+' conftest.er1 >conftest.err
 12909   rm -f conftest.er1
 12910   cat conftest.err >&5
 12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12912   (exit $ac_status); } >/dev/null && {
 12913 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 12914 	 test ! -s conftest.err
 12915        }; then
 12916   ac_header_preproc=yes
 12917 else
 12918   echo "$as_me: failed program was:" >&5
 12919 sed 's/^/| /' conftest.$ac_ext >&5
 12921   ac_header_preproc=no
 12922 fi
 12924 rm -f conftest.err conftest.$ac_ext
 12925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 12926 echo "${ECHO_T}$ac_header_preproc" >&6; }
 12928 # So?  What about this header?
 12929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 12930   yes:no: )
 12931     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 12932 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 12933     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 12934 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 12935     ac_header_preproc=yes
 12936     ;;
 12937   no:yes:* )
 12938     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 12939 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 12940     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 12941 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 12942     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 12943 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 12944     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 12945 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 12946     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 12947 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 12948     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 12949 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 12951     ;;
 12952 esac
 12953 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 12954 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 12955 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 12956   echo $ECHO_N "(cached) $ECHO_C" >&6
 12957 else
 12958   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 12959 fi
 12960 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 12961 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 12963 fi
 12964 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
 12966      HAVE_CORE_AUDIO=yes
 12967      LIBS="$LIBS -framework CoreAudio"
 12968      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
 12970 cat >>confdefs.h <<\_ACEOF
 12971 #define HAVE_CORE_AUDIO 1
 12972 _ACEOF
 12974 else
 12975   true
 12976 fi
 12981 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
 12982   AUDIO_OSX_TRUE=
 12983   AUDIO_OSX_FALSE='#'
 12984 else
 12985   AUDIO_OSX_TRUE='#'
 12986   AUDIO_OSX_FALSE=
 12987 fi
 12990 if test "x$with_sdl" != "xno"; then
 12992 pkg_failed=no
 12993 { echo "$as_me:$LINENO: checking for SDL" >&5
 12994 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
 12996 if test -n "$SDL_CFLAGS"; then
 12997     pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
 12998  elif test -n "$PKG_CONFIG"; then
 12999     if test -n "$PKG_CONFIG" && \
 13000     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 13001   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 13002   ac_status=$?
 13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13004   (exit $ac_status); }; then
 13005   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
 13006 else
 13007   pkg_failed=yes
 13008 fi
 13009  else
 13010     pkg_failed=untried
 13011 fi
 13012 if test -n "$SDL_LIBS"; then
 13013     pkg_cv_SDL_LIBS="$SDL_LIBS"
 13014  elif test -n "$PKG_CONFIG"; then
 13015     if test -n "$PKG_CONFIG" && \
 13016     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 13017   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 13018   ac_status=$?
 13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13020   (exit $ac_status); }; then
 13021   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
 13022 else
 13023   pkg_failed=yes
 13024 fi
 13025  else
 13026     pkg_failed=untried
 13027 fi
 13031 if test $pkg_failed = yes; then
 13033 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13034         _pkg_short_errors_supported=yes
 13035 else
 13036         _pkg_short_errors_supported=no
 13037 fi
 13038         if test $_pkg_short_errors_supported = yes; then
 13039 	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
 13040         else
 13041 	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
 13042         fi
 13043 	# Put the nasty error message in config.log where it belongs
 13044 	echo "$SDL_PKG_ERRORS" >&5
 13046 	{ echo "$as_me:$LINENO: result: no" >&5
 13047 echo "${ECHO_T}no" >&6; }
 13049       if test "x$with_sdl" = "xyes"; then
 13050          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 13051 See \`config.log' for more details." >&5
 13052 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 13053 See \`config.log' for more details." >&2;}
 13054    { (exit 1); exit 1; }; }
 13055       fi
 13057 elif test $pkg_failed = untried; then
 13059       if test "x$with_sdl" = "xyes"; then
 13060          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 13061 See \`config.log' for more details." >&5
 13062 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 13063 See \`config.log' for more details." >&2;}
 13064    { (exit 1); exit 1; }; }
 13065       fi
 13067 else
 13068 	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
 13069 	SDL_LIBS=$pkg_cv_SDL_LIBS
 13070         { echo "$as_me:$LINENO: result: yes" >&5
 13071 echo "${ECHO_T}yes" >&6; }
 13073        HAVE_SDL='yes'
 13074        AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
 13076 cat >>confdefs.h <<\_ACEOF
 13077 #define HAVE_SDL 1
 13078 _ACEOF
 13081 fi
 13082 fi
 13085 if test "$HAVE_SDL" = 'yes' ; then
 13086   AUDIO_SDL_TRUE=
 13087   AUDIO_SDL_FALSE='#'
 13088 else
 13089   AUDIO_SDL_TRUE='#'
 13090   AUDIO_SDL_FALSE=
 13091 fi
 13094 if test "x$with_pulse" != "xno"; then
 13096 pkg_failed=no
 13097 { echo "$as_me:$LINENO: checking for PULSE" >&5
 13098 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
 13100 if test -n "$PULSE_CFLAGS"; then
 13101     pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
 13102  elif test -n "$PKG_CONFIG"; then
 13103     if test -n "$PKG_CONFIG" && \
 13104     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 13105   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 13106   ac_status=$?
 13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13108   (exit $ac_status); }; then
 13109   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
 13110 else
 13111   pkg_failed=yes
 13112 fi
 13113  else
 13114     pkg_failed=untried
 13115 fi
 13116 if test -n "$PULSE_LIBS"; then
 13117     pkg_cv_PULSE_LIBS="$PULSE_LIBS"
 13118  elif test -n "$PKG_CONFIG"; then
 13119     if test -n "$PKG_CONFIG" && \
 13120     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 13121   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 13122   ac_status=$?
 13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13124   (exit $ac_status); }; then
 13125   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
 13126 else
 13127   pkg_failed=yes
 13128 fi
 13129  else
 13130     pkg_failed=untried
 13131 fi
 13135 if test $pkg_failed = yes; then
 13137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13138         _pkg_short_errors_supported=yes
 13139 else
 13140         _pkg_short_errors_supported=no
 13141 fi
 13142         if test $_pkg_short_errors_supported = yes; then
 13143 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
 13144         else
 13145 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
 13146         fi
 13147 	# Put the nasty error message in config.log where it belongs
 13148 	echo "$PULSE_PKG_ERRORS" >&5
 13150 	{ echo "$as_me:$LINENO: result: no" >&5
 13151 echo "${ECHO_T}no" >&6; }
 13153        if test "x$with_pulse" = "xyes"; then
 13154           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 13155 See \`config.log' for more details." >&5
 13156 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 13157 See \`config.log' for more details." >&2;}
 13158    { (exit 1); exit 1; }; }
 13159        fi
 13161 elif test $pkg_failed = untried; then
 13163        if test "x$with_pulse" = "xyes"; then
 13164           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 13165 See \`config.log' for more details." >&5
 13166 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 13167 See \`config.log' for more details." >&2;}
 13168    { (exit 1); exit 1; }; }
 13169        fi
 13171 else
 13172 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
 13173 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
 13174         { echo "$as_me:$LINENO: result: yes" >&5
 13175 echo "${ECHO_T}yes" >&6; }
 13177        HAVE_PULSE='yes'
 13178        AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
 13180 cat >>confdefs.h <<\_ACEOF
 13181 #define HAVE_PULSE 1
 13182 _ACEOF
 13185 fi
 13186 fi
 13189 if test "$HAVE_PULSE" = 'yes' ; then
 13190   AUDIO_PULSE_TRUE=
 13191   AUDIO_PULSE_FALSE='#'
 13192 else
 13193   AUDIO_PULSE_TRUE='#'
 13194   AUDIO_PULSE_FALSE=
 13195 fi
 13198 if test "x$with_esd" != "xno"; then
 13200 pkg_failed=no
 13201 { echo "$as_me:$LINENO: checking for ESOUND" >&5
 13202 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
 13204 if test -n "$ESOUND_CFLAGS"; then
 13205     pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
 13206  elif test -n "$PKG_CONFIG"; then
 13207     if test -n "$PKG_CONFIG" && \
 13208     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 13209   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 13210   ac_status=$?
 13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13212   (exit $ac_status); }; then
 13213   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
 13214 else
 13215   pkg_failed=yes
 13216 fi
 13217  else
 13218     pkg_failed=untried
 13219 fi
 13220 if test -n "$ESOUND_LIBS"; then
 13221     pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
 13222  elif test -n "$PKG_CONFIG"; then
 13223     if test -n "$PKG_CONFIG" && \
 13224     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 13225   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 13226   ac_status=$?
 13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13228   (exit $ac_status); }; then
 13229   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
 13230 else
 13231   pkg_failed=yes
 13232 fi
 13233  else
 13234     pkg_failed=untried
 13235 fi
 13239 if test $pkg_failed = yes; then
 13241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13242         _pkg_short_errors_supported=yes
 13243 else
 13244         _pkg_short_errors_supported=no
 13245 fi
 13246         if test $_pkg_short_errors_supported = yes; then
 13247 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
 13248         else
 13249 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
 13250         fi
 13251 	# Put the nasty error message in config.log where it belongs
 13252 	echo "$ESOUND_PKG_ERRORS" >&5
 13254 	{ echo "$as_me:$LINENO: result: no" >&5
 13255 echo "${ECHO_T}no" >&6; }
 13257        if test "x$with_esd" = "xyes"; then
 13258           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 13259 See \`config.log' for more details." >&5
 13260 echo "$as_me: error: ESounD audio package could not be found (but was required)
 13261 See \`config.log' for more details." >&2;}
 13262    { (exit 1); exit 1; }; }
 13263        fi
 13265 elif test $pkg_failed = untried; then
 13267        if test "x$with_esd" = "xyes"; then
 13268           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 13269 See \`config.log' for more details." >&5
 13270 echo "$as_me: error: ESounD audio package could not be found (but was required)
 13271 See \`config.log' for more details." >&2;}
 13272    { (exit 1); exit 1; }; }
 13273        fi
 13275 else
 13276 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
 13277 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
 13278         { echo "$as_me:$LINENO: result: yes" >&5
 13279 echo "${ECHO_T}yes" >&6; }
 13281        HAVE_ESOUND='yes'
 13282        AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
 13284 cat >>confdefs.h <<\_ACEOF
 13285 #define HAVE_ESOUND 1
 13286 _ACEOF
 13289 fi
 13290 fi
 13293 if test "$HAVE_ESOUND" = 'yes' ; then
 13294   AUDIO_ESOUND_TRUE=
 13295   AUDIO_ESOUND_FALSE='#'
 13296 else
 13297   AUDIO_ESOUND_TRUE='#'
 13298   AUDIO_ESOUND_FALSE=
 13299 fi
 13303 pkg_failed=no
 13304 { echo "$as_me:$LINENO: checking for ALSA" >&5
 13305 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
 13307 if test -n "$ALSA_CFLAGS"; then
 13308     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 13309  elif test -n "$PKG_CONFIG"; then
 13310     if test -n "$PKG_CONFIG" && \
 13311     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 13312   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 13313   ac_status=$?
 13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13315   (exit $ac_status); }; then
 13316   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
 13317 else
 13318   pkg_failed=yes
 13319 fi
 13320  else
 13321     pkg_failed=untried
 13322 fi
 13323 if test -n "$ALSA_LIBS"; then
 13324     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 13325  elif test -n "$PKG_CONFIG"; then
 13326     if test -n "$PKG_CONFIG" && \
 13327     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 13328   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 13329   ac_status=$?
 13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13331   (exit $ac_status); }; then
 13332   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
 13333 else
 13334   pkg_failed=yes
 13335 fi
 13336  else
 13337     pkg_failed=untried
 13338 fi
 13342 if test $pkg_failed = yes; then
 13344 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13345         _pkg_short_errors_supported=yes
 13346 else
 13347         _pkg_short_errors_supported=no
 13348 fi
 13349         if test $_pkg_short_errors_supported = yes; then
 13350 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
 13351         else
 13352 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
 13353         fi
 13354 	# Put the nasty error message in config.log where it belongs
 13355 	echo "$ALSA_PKG_ERRORS" >&5
 13357 	{ echo "$as_me:$LINENO: result: no" >&5
 13358 echo "${ECHO_T}no" >&6; }
 13359                 true
 13360 elif test $pkg_failed = untried; then
 13361 	true
 13362 else
 13363 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
 13364 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
 13365         { echo "$as_me:$LINENO: result: yes" >&5
 13366 echo "${ECHO_T}yes" >&6; }
 13368      HAVE_ALSA='yes'
 13369      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
 13371 cat >>confdefs.h <<\_ACEOF
 13372 #define HAVE_ALSA 1
 13373 _ACEOF
 13375 fi
 13378 if test "$HAVE_ALSA" = 'yes' ; then
 13379   AUDIO_ALSA_TRUE=
 13380   AUDIO_ALSA_FALSE='#'
 13381 else
 13382   AUDIO_ALSA_TRUE='#'
 13383   AUDIO_ALSA_FALSE=
 13384 fi
 13388 if test "$ANDROID_BUILD" != "yes"; then
 13389   if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13390   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 13391 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 13392 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13393   echo $ECHO_N "(cached) $ECHO_C" >&6
 13394 fi
 13395 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 13396 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 13397 else
 13398   # Is the header compilable?
 13399 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
 13400 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
 13401 cat >conftest.$ac_ext <<_ACEOF
 13402 /* confdefs.h.  */
 13403 _ACEOF
 13404 cat confdefs.h >>conftest.$ac_ext
 13405 cat >>conftest.$ac_ext <<_ACEOF
 13406 /* end confdefs.h.  */
 13407 $ac_includes_default
 13408 #include <linux/cdrom.h>
 13409 _ACEOF
 13410 rm -f conftest.$ac_objext
 13411 if { (ac_try="$ac_compile"
 13412 case "(($ac_try" in
 13413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13414   *) ac_try_echo=$ac_try;;
 13415 esac
 13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13417   (eval "$ac_compile") 2>conftest.er1
 13418   ac_status=$?
 13419   grep -v '^ *+' conftest.er1 >conftest.err
 13420   rm -f conftest.er1
 13421   cat conftest.err >&5
 13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13423   (exit $ac_status); } && {
 13424 	 test -z "$ac_c_werror_flag" ||
 13425 	 test ! -s conftest.err
 13426        } && test -s conftest.$ac_objext; then
 13427   ac_header_compiler=yes
 13428 else
 13429   echo "$as_me: failed program was:" >&5
 13430 sed 's/^/| /' conftest.$ac_ext >&5
 13432 	ac_header_compiler=no
 13433 fi
 13435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13437 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13439 # Is the header present?
 13440 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
 13441 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
 13442 cat >conftest.$ac_ext <<_ACEOF
 13443 /* confdefs.h.  */
 13444 _ACEOF
 13445 cat confdefs.h >>conftest.$ac_ext
 13446 cat >>conftest.$ac_ext <<_ACEOF
 13447 /* end confdefs.h.  */
 13448 #include <linux/cdrom.h>
 13449 _ACEOF
 13450 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13451 case "(($ac_try" in
 13452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13453   *) ac_try_echo=$ac_try;;
 13454 esac
 13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13457   ac_status=$?
 13458   grep -v '^ *+' conftest.er1 >conftest.err
 13459   rm -f conftest.er1
 13460   cat conftest.err >&5
 13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13462   (exit $ac_status); } >/dev/null && {
 13463 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13464 	 test ! -s conftest.err
 13465        }; then
 13466   ac_header_preproc=yes
 13467 else
 13468   echo "$as_me: failed program was:" >&5
 13469 sed 's/^/| /' conftest.$ac_ext >&5
 13471   ac_header_preproc=no
 13472 fi
 13474 rm -f conftest.err conftest.$ac_ext
 13475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13476 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13478 # So?  What about this header?
 13479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13480   yes:no: )
 13481     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13482 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13483     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
 13484 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
 13485     ac_header_preproc=yes
 13486     ;;
 13487   no:yes:* )
 13488     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
 13489 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
 13490     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
 13491 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
 13492     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
 13493 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
 13494     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
 13495 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13496     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
 13497 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
 13498     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
 13499 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
 13501     ;;
 13502 esac
 13503 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 13504 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 13505 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13506   echo $ECHO_N "(cached) $ECHO_C" >&6
 13507 else
 13508   ac_cv_header_linux_cdrom_h=$ac_header_preproc
 13509 fi
 13510 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 13511 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 13513 fi
 13514 if test $ac_cv_header_linux_cdrom_h = yes; then
 13516      CDROM_DRIVER=linux
 13517           { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
 13518 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
 13519      old_CFLAGS="$CFLAGS"
 13520      CFLAGS="$CFLAGS $STDCFLAG"
 13521      cat >conftest.$ac_ext <<_ACEOF
 13522 /* confdefs.h.  */
 13523 _ACEOF
 13524 cat confdefs.h >>conftest.$ac_ext
 13525 cat >>conftest.$ac_ext <<_ACEOF
 13526 /* end confdefs.h.  */
 13527 #include <linux/cdrom.h>
 13528 int
 13529 main ()
 13533   return 0;
 13535 _ACEOF
 13536 rm -f conftest.$ac_objext
 13537 if { (ac_try="$ac_compile"
 13538 case "(($ac_try" in
 13539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13540   *) ac_try_echo=$ac_try;;
 13541 esac
 13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13543   (eval "$ac_compile") 2>conftest.er1
 13544   ac_status=$?
 13545   grep -v '^ *+' conftest.er1 >conftest.err
 13546   rm -f conftest.er1
 13547   cat conftest.err >&5
 13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13549   (exit $ac_status); } && {
 13550 	 test -z "$ac_c_werror_flag" ||
 13551 	 test ! -s conftest.err
 13552        } && test -s conftest.$ac_objext; then
 13553   { echo "$as_me:$LINENO: result: Yes" >&5
 13554 echo "${ECHO_T}Yes" >&6; }
 13555 else
 13556   echo "$as_me: failed program was:" >&5
 13557 sed 's/^/| /' conftest.$ac_ext >&5
 13560         { echo "$as_me:$LINENO: result: No" >&5
 13561 echo "${ECHO_T}No" >&6; }
 13562         STDCFLAG="-std=gnu99"
 13563 fi
 13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13566      CFLAGS="$old_CFLAGS"
 13568 else
 13569   true
 13570 fi
 13573   if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13574   { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 13575 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 13576 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13577   echo $ECHO_N "(cached) $ECHO_C" >&6
 13578 fi
 13579 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 13580 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 13581 else
 13582   # Is the header compilable?
 13583 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
 13584 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
 13585 cat >conftest.$ac_ext <<_ACEOF
 13586 /* confdefs.h.  */
 13587 _ACEOF
 13588 cat confdefs.h >>conftest.$ac_ext
 13589 cat >>conftest.$ac_ext <<_ACEOF
 13590 /* end confdefs.h.  */
 13591 $ac_includes_default
 13592 #include <IOKit/IOKitLib.h>
 13593 _ACEOF
 13594 rm -f conftest.$ac_objext
 13595 if { (ac_try="$ac_compile"
 13596 case "(($ac_try" in
 13597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13598   *) ac_try_echo=$ac_try;;
 13599 esac
 13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13601   (eval "$ac_compile") 2>conftest.er1
 13602   ac_status=$?
 13603   grep -v '^ *+' conftest.er1 >conftest.err
 13604   rm -f conftest.er1
 13605   cat conftest.err >&5
 13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13607   (exit $ac_status); } && {
 13608 	 test -z "$ac_c_werror_flag" ||
 13609 	 test ! -s conftest.err
 13610        } && test -s conftest.$ac_objext; then
 13611   ac_header_compiler=yes
 13612 else
 13613   echo "$as_me: failed program was:" >&5
 13614 sed 's/^/| /' conftest.$ac_ext >&5
 13616 	ac_header_compiler=no
 13617 fi
 13619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13621 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13623 # Is the header present?
 13624 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
 13625 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
 13626 cat >conftest.$ac_ext <<_ACEOF
 13627 /* confdefs.h.  */
 13628 _ACEOF
 13629 cat confdefs.h >>conftest.$ac_ext
 13630 cat >>conftest.$ac_ext <<_ACEOF
 13631 /* end confdefs.h.  */
 13632 #include <IOKit/IOKitLib.h>
 13633 _ACEOF
 13634 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13635 case "(($ac_try" in
 13636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13637   *) ac_try_echo=$ac_try;;
 13638 esac
 13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13641   ac_status=$?
 13642   grep -v '^ *+' conftest.er1 >conftest.err
 13643   rm -f conftest.er1
 13644   cat conftest.err >&5
 13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13646   (exit $ac_status); } >/dev/null && {
 13647 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13648 	 test ! -s conftest.err
 13649        }; then
 13650   ac_header_preproc=yes
 13651 else
 13652   echo "$as_me: failed program was:" >&5
 13653 sed 's/^/| /' conftest.$ac_ext >&5
 13655   ac_header_preproc=no
 13656 fi
 13658 rm -f conftest.err conftest.$ac_ext
 13659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13660 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13662 # So?  What about this header?
 13663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13664   yes:no: )
 13665     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13666 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13667     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
 13668 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
 13669     ac_header_preproc=yes
 13670     ;;
 13671   no:yes:* )
 13672     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
 13673 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
 13674     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&5
 13675 echo "$as_me: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&2;}
 13676     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
 13677 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
 13678     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&5
 13679 echo "$as_me: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13680     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
 13681 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
 13682     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
 13683 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
 13685     ;;
 13686 esac
 13687 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 13688 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 13689 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13690   echo $ECHO_N "(cached) $ECHO_C" >&6
 13691 else
 13692   ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
 13693 fi
 13694 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 13695 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 13697 fi
 13698 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
 13700        CDROM_DRIVER=osx
 13701        LIBS="$LIBS -framework IOKit"
 13702 else
 13703   true
 13704 fi
 13707 fi
 13710 if test "x$CDROM_DRIVER" = "xlinux"; then
 13711   CDROM_LINUX_TRUE=
 13712   CDROM_LINUX_FALSE='#'
 13713 else
 13714   CDROM_LINUX_TRUE='#'
 13715   CDROM_LINUX_FALSE=
 13716 fi
 13720 if test "x$CDROM_DRIVER" = "xosx"; then
 13721   CDROM_OSX_TRUE=
 13722   CDROM_OSX_FALSE='#'
 13723 else
 13724   CDROM_OSX_TRUE='#'
 13725   CDROM_OSX_FALSE=
 13726 fi
 13730 if test "x$CDROM_DRIVER" = "x"; then
 13731   CDROM_NONE_TRUE=
 13732   CDROM_NONE_FALSE='#'
 13733 else
 13734   CDROM_NONE_TRUE='#'
 13735   CDROM_NONE_FALSE=
 13736 fi
 13738 if test "x$CDROM_DRIVER" = "xlinux"; then
 13740 cat >>confdefs.h <<\_ACEOF
 13741 #define HAVE_LINUX_CDROM 1
 13742 _ACEOF
 13744 fi
 13746 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 13747   { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 13748 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 13749 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 13750   echo $ECHO_N "(cached) $ECHO_C" >&6
 13751 fi
 13752 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 13753 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 13754 else
 13755   # Is the header compilable?
 13756 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
 13757 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
 13758 cat >conftest.$ac_ext <<_ACEOF
 13759 /* confdefs.h.  */
 13760 _ACEOF
 13761 cat confdefs.h >>conftest.$ac_ext
 13762 cat >>conftest.$ac_ext <<_ACEOF
 13763 /* end confdefs.h.  */
 13764 $ac_includes_default
 13765 #include <linux/joystick.h>
 13766 _ACEOF
 13767 rm -f conftest.$ac_objext
 13768 if { (ac_try="$ac_compile"
 13769 case "(($ac_try" in
 13770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13771   *) ac_try_echo=$ac_try;;
 13772 esac
 13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13774   (eval "$ac_compile") 2>conftest.er1
 13775   ac_status=$?
 13776   grep -v '^ *+' conftest.er1 >conftest.err
 13777   rm -f conftest.er1
 13778   cat conftest.err >&5
 13779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13780   (exit $ac_status); } && {
 13781 	 test -z "$ac_c_werror_flag" ||
 13782 	 test ! -s conftest.err
 13783        } && test -s conftest.$ac_objext; then
 13784   ac_header_compiler=yes
 13785 else
 13786   echo "$as_me: failed program was:" >&5
 13787 sed 's/^/| /' conftest.$ac_ext >&5
 13789 	ac_header_compiler=no
 13790 fi
 13792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13794 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13796 # Is the header present?
 13797 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
 13798 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
 13799 cat >conftest.$ac_ext <<_ACEOF
 13800 /* confdefs.h.  */
 13801 _ACEOF
 13802 cat confdefs.h >>conftest.$ac_ext
 13803 cat >>conftest.$ac_ext <<_ACEOF
 13804 /* end confdefs.h.  */
 13805 #include <linux/joystick.h>
 13806 _ACEOF
 13807 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13808 case "(($ac_try" in
 13809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13810   *) ac_try_echo=$ac_try;;
 13811 esac
 13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13814   ac_status=$?
 13815   grep -v '^ *+' conftest.er1 >conftest.err
 13816   rm -f conftest.er1
 13817   cat conftest.err >&5
 13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13819   (exit $ac_status); } >/dev/null && {
 13820 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13821 	 test ! -s conftest.err
 13822        }; then
 13823   ac_header_preproc=yes
 13824 else
 13825   echo "$as_me: failed program was:" >&5
 13826 sed 's/^/| /' conftest.$ac_ext >&5
 13828   ac_header_preproc=no
 13829 fi
 13831 rm -f conftest.err conftest.$ac_ext
 13832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13833 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13835 # So?  What about this header?
 13836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13837   yes:no: )
 13838     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13839 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13840     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
 13841 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
 13842     ac_header_preproc=yes
 13843     ;;
 13844   no:yes:* )
 13845     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
 13846 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
 13847     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
 13848 echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
 13849     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
 13850 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
 13851     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
 13852 echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13853     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
 13854 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
 13855     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
 13856 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
 13858     ;;
 13859 esac
 13860 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 13861 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 13862 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 13863   echo $ECHO_N "(cached) $ECHO_C" >&6
 13864 else
 13865   ac_cv_header_linux_joystick_h=$ac_header_preproc
 13866 fi
 13867 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 13868 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 13870 fi
 13871 if test $ac_cv_header_linux_joystick_h = yes; then
 13873     HAVE_LINUX_JOYSTICK_H=yes
 13875 cat >>confdefs.h <<\_ACEOF
 13876 #define HAVE_LINUX_JOYSTICK 1
 13877 _ACEOF
 13879     INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
 13880 else
 13881    echo "Linux Joystick support not found, building without it."
 13882 fi
 13887 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
 13888   JOY_LINUX_TRUE=
 13889   JOY_LINUX_FALSE='#'
 13890 else
 13891   JOY_LINUX_TRUE='#'
 13892   JOY_LINUX_FALSE=
 13893 fi
 13896 if test "x$with_lirc" != "xno"; then
 13897     if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 13898   { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 13899 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 13900 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 13901   echo $ECHO_N "(cached) $ECHO_C" >&6
 13902 fi
 13903 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 13904 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 13905 else
 13906   # Is the header compilable?
 13907 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
 13908 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
 13909 cat >conftest.$ac_ext <<_ACEOF
 13910 /* confdefs.h.  */
 13911 _ACEOF
 13912 cat confdefs.h >>conftest.$ac_ext
 13913 cat >>conftest.$ac_ext <<_ACEOF
 13914 /* end confdefs.h.  */
 13915 $ac_includes_default
 13916 #include <lirc/lirc_client.h>
 13917 _ACEOF
 13918 rm -f conftest.$ac_objext
 13919 if { (ac_try="$ac_compile"
 13920 case "(($ac_try" in
 13921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13922   *) ac_try_echo=$ac_try;;
 13923 esac
 13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13925   (eval "$ac_compile") 2>conftest.er1
 13926   ac_status=$?
 13927   grep -v '^ *+' conftest.er1 >conftest.err
 13928   rm -f conftest.er1
 13929   cat conftest.err >&5
 13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13931   (exit $ac_status); } && {
 13932 	 test -z "$ac_c_werror_flag" ||
 13933 	 test ! -s conftest.err
 13934        } && test -s conftest.$ac_objext; then
 13935   ac_header_compiler=yes
 13936 else
 13937   echo "$as_me: failed program was:" >&5
 13938 sed 's/^/| /' conftest.$ac_ext >&5
 13940 	ac_header_compiler=no
 13941 fi
 13943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13945 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13947 # Is the header present?
 13948 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
 13949 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
 13950 cat >conftest.$ac_ext <<_ACEOF
 13951 /* confdefs.h.  */
 13952 _ACEOF
 13953 cat confdefs.h >>conftest.$ac_ext
 13954 cat >>conftest.$ac_ext <<_ACEOF
 13955 /* end confdefs.h.  */
 13956 #include <lirc/lirc_client.h>
 13957 _ACEOF
 13958 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13959 case "(($ac_try" in
 13960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13961   *) ac_try_echo=$ac_try;;
 13962 esac
 13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13965   ac_status=$?
 13966   grep -v '^ *+' conftest.er1 >conftest.err
 13967   rm -f conftest.er1
 13968   cat conftest.err >&5
 13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13970   (exit $ac_status); } >/dev/null && {
 13971 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13972 	 test ! -s conftest.err
 13973        }; then
 13974   ac_header_preproc=yes
 13975 else
 13976   echo "$as_me: failed program was:" >&5
 13977 sed 's/^/| /' conftest.$ac_ext >&5
 13979   ac_header_preproc=no
 13980 fi
 13982 rm -f conftest.err conftest.$ac_ext
 13983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13984 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13986 # So?  What about this header?
 13987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13988   yes:no: )
 13989     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13990 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13991     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
 13992 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
 13993     ac_header_preproc=yes
 13994     ;;
 13995   no:yes:* )
 13996     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
 13997 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
 13998     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&5
 13999 echo "$as_me: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&2;}
 14000     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
 14001 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
 14002     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&5
 14003 echo "$as_me: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14004     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
 14005 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
 14006     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
 14007 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
 14009     ;;
 14010 esac
 14011 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 14012 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 14013 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 14014   echo $ECHO_N "(cached) $ECHO_C" >&6
 14015 else
 14016   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
 14017 fi
 14018 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 14019 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 14021 fi
 14022 if test $ac_cv_header_lirc_lirc_client_h = yes; then
 14024         HAVE_LIRC_CLIENT_H=yes
 14026 cat >>confdefs.h <<\_ACEOF
 14027 #define HAVE_LIRC 1
 14028 _ACEOF
 14030         INPUT_DRIVERS="$INPUT_DRIVERS lirc"
 14032 else
 14033    echo "LIRC support not found, building without it."
 14034 fi
 14037 fi
 14040 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
 14041   INPUT_LIRC_TRUE=
 14042   INPUT_LIRC_FALSE='#'
 14043 else
 14044   INPUT_LIRC_TRUE='#'
 14045   INPUT_LIRC_FALSE=
 14046 fi
 14049 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
 14050 set dummy sh-elf-gcc; ac_word=$2
 14051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14053 if test "${ac_cv_path_SHCC+set}" = set; then
 14054   echo $ECHO_N "(cached) $ECHO_C" >&6
 14055 else
 14056   case $SHCC in
 14057   [\\/]* | ?:[\\/]*)
 14058   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
 14059   ;;
 14060   *)
 14061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14062 for as_dir in $PATH
 14063 do
 14064   IFS=$as_save_IFS
 14065   test -z "$as_dir" && as_dir=.
 14066   for ac_exec_ext in '' $ac_executable_extensions; do
 14067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14068     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
 14069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14070     break 2
 14071   fi
 14072 done
 14073 done
 14074 IFS=$as_save_IFS
 14076   ;;
 14077 esac
 14078 fi
 14079 SHCC=$ac_cv_path_SHCC
 14080 if test -n "$SHCC"; then
 14081   { echo "$as_me:$LINENO: result: $SHCC" >&5
 14082 echo "${ECHO_T}$SHCC" >&6; }
 14083 else
 14084   { echo "$as_me:$LINENO: result: no" >&5
 14085 echo "${ECHO_T}no" >&6; }
 14086 fi
 14089 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
 14090 set dummy sh-elf-ld; ac_word=$2
 14091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14093 if test "${ac_cv_path_SHLD+set}" = set; then
 14094   echo $ECHO_N "(cached) $ECHO_C" >&6
 14095 else
 14096   case $SHLD in
 14097   [\\/]* | ?:[\\/]*)
 14098   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
 14099   ;;
 14100   *)
 14101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14102 for as_dir in $PATH
 14103 do
 14104   IFS=$as_save_IFS
 14105   test -z "$as_dir" && as_dir=.
 14106   for ac_exec_ext in '' $ac_executable_extensions; do
 14107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14108     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
 14109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14110     break 2
 14111   fi
 14112 done
 14113 done
 14114 IFS=$as_save_IFS
 14116   ;;
 14117 esac
 14118 fi
 14119 SHLD=$ac_cv_path_SHLD
 14120 if test -n "$SHLD"; then
 14121   { echo "$as_me:$LINENO: result: $SHLD" >&5
 14122 echo "${ECHO_T}$SHLD" >&6; }
 14123 else
 14124   { echo "$as_me:$LINENO: result: no" >&5
 14125 echo "${ECHO_T}no" >&6; }
 14126 fi
 14129 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
 14130 set dummy sh-elf-objcopy; ac_word=$2
 14131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14133 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
 14134   echo $ECHO_N "(cached) $ECHO_C" >&6
 14135 else
 14136   case $SHOBJCOPY in
 14137   [\\/]* | ?:[\\/]*)
 14138   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
 14139   ;;
 14140   *)
 14141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14142 for as_dir in $PATH
 14143 do
 14144   IFS=$as_save_IFS
 14145   test -z "$as_dir" && as_dir=.
 14146   for ac_exec_ext in '' $ac_executable_extensions; do
 14147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14148     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 14149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14150     break 2
 14151   fi
 14152 done
 14153 done
 14154 IFS=$as_save_IFS
 14156   ;;
 14157 esac
 14158 fi
 14159 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
 14160 if test -n "$SHOBJCOPY"; then
 14161   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
 14162 echo "${ECHO_T}$SHOBJCOPY" >&6; }
 14163 else
 14164   { echo "$as_me:$LINENO: result: no" >&5
 14165 echo "${ECHO_T}no" >&6; }
 14166 fi
 14169 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
 14170 set dummy arm-elf-gcc; ac_word=$2
 14171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14173 if test "${ac_cv_path_ARMCC+set}" = set; then
 14174   echo $ECHO_N "(cached) $ECHO_C" >&6
 14175 else
 14176   case $ARMCC in
 14177   [\\/]* | ?:[\\/]*)
 14178   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
 14179   ;;
 14180   *)
 14181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14182 for as_dir in $PATH
 14183 do
 14184   IFS=$as_save_IFS
 14185   test -z "$as_dir" && as_dir=.
 14186   for ac_exec_ext in '' $ac_executable_extensions; do
 14187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14188     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
 14189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14190     break 2
 14191   fi
 14192 done
 14193 done
 14194 IFS=$as_save_IFS
 14196   ;;
 14197 esac
 14198 fi
 14199 ARMCC=$ac_cv_path_ARMCC
 14200 if test -n "$ARMCC"; then
 14201   { echo "$as_me:$LINENO: result: $ARMCC" >&5
 14202 echo "${ECHO_T}$ARMCC" >&6; }
 14203 else
 14204   { echo "$as_me:$LINENO: result: no" >&5
 14205 echo "${ECHO_T}no" >&6; }
 14206 fi
 14209 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
 14210 set dummy arm-elf-ld; ac_word=$2
 14211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14213 if test "${ac_cv_path_ARMLD+set}" = set; then
 14214   echo $ECHO_N "(cached) $ECHO_C" >&6
 14215 else
 14216   case $ARMLD in
 14217   [\\/]* | ?:[\\/]*)
 14218   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
 14219   ;;
 14220   *)
 14221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14222 for as_dir in $PATH
 14223 do
 14224   IFS=$as_save_IFS
 14225   test -z "$as_dir" && as_dir=.
 14226   for ac_exec_ext in '' $ac_executable_extensions; do
 14227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14228     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
 14229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14230     break 2
 14231   fi
 14232 done
 14233 done
 14234 IFS=$as_save_IFS
 14236   ;;
 14237 esac
 14238 fi
 14239 ARMLD=$ac_cv_path_ARMLD
 14240 if test -n "$ARMLD"; then
 14241   { echo "$as_me:$LINENO: result: $ARMLD" >&5
 14242 echo "${ECHO_T}$ARMLD" >&6; }
 14243 else
 14244   { echo "$as_me:$LINENO: result: no" >&5
 14245 echo "${ECHO_T}no" >&6; }
 14246 fi
 14249 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
 14250 set dummy arm-elf-objcopy; ac_word=$2
 14251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14253 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
 14254   echo $ECHO_N "(cached) $ECHO_C" >&6
 14255 else
 14256   case $ARMOBJCOPY in
 14257   [\\/]* | ?:[\\/]*)
 14258   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
 14259   ;;
 14260   *)
 14261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14262 for as_dir in $PATH
 14263 do
 14264   IFS=$as_save_IFS
 14265   test -z "$as_dir" && as_dir=.
 14266   for ac_exec_ext in '' $ac_executable_extensions; do
 14267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14268     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 14269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14270     break 2
 14271   fi
 14272 done
 14273 done
 14274 IFS=$as_save_IFS
 14276   ;;
 14277 esac
 14278 fi
 14279 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
 14280 if test -n "$ARMOBJCOPY"; then
 14281   { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
 14282 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
 14283 else
 14284   { echo "$as_me:$LINENO: result: no" >&5
 14285 echo "${ECHO_T}no" >&6; }
 14286 fi
 14290 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
 14291   BUILD_SH="no"
 14292   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
 14293 else
 14294   BUILD_SH="yes"
 14295 fi
 14296 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
 14297   BUILD_ARM="no"
 14298   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
 14299 else
 14300   BUILD_ARM="yes"
 14301 fi
 14304 if test "$BUILD_SH" = "yes"; then
 14305   BUILD_SYSTEST_TRUE=
 14306   BUILD_SYSTEST_FALSE='#'
 14307 else
 14308   BUILD_SYSTEST_TRUE='#'
 14309   BUILD_SYSTEST_FALSE=
 14310 fi
 14314 if test "$BUILD_ARM" = "yes"; then
 14315   BUILD_ARMTEST_TRUE=
 14316   BUILD_ARMTEST_FALSE='#'
 14317 else
 14318   BUILD_ARMTEST_TRUE='#'
 14319   BUILD_ARMTEST_FALSE=
 14320 fi
 14323 CFLAGS="$CFLAGS $STDCFLAG"
 14325 GETTEXT_PACKAGE=lxdream
 14326 LXDREAM_LIBS="$LIBS"
 14327 LIBS=""
 14331 cat >>confdefs.h <<_ACEOF
 14332 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 14333 _ACEOF
 14336 ALL_LINGUAS="de es it nl pt_BR"
 14339 for ac_header in locale.h
 14340 do
 14341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 14342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14343   { echo "$as_me:$LINENO: checking for $ac_header" >&5
 14344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 14345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14346   echo $ECHO_N "(cached) $ECHO_C" >&6
 14347 fi
 14348 ac_res=`eval echo '${'$as_ac_Header'}'`
 14349 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14350 echo "${ECHO_T}$ac_res" >&6; }
 14351 else
 14352   # Is the header compilable?
 14353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
 14354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 14355 cat >conftest.$ac_ext <<_ACEOF
 14356 /* confdefs.h.  */
 14357 _ACEOF
 14358 cat confdefs.h >>conftest.$ac_ext
 14359 cat >>conftest.$ac_ext <<_ACEOF
 14360 /* end confdefs.h.  */
 14361 $ac_includes_default
 14362 #include <$ac_header>
 14363 _ACEOF
 14364 rm -f conftest.$ac_objext
 14365 if { (ac_try="$ac_compile"
 14366 case "(($ac_try" in
 14367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14368   *) ac_try_echo=$ac_try;;
 14369 esac
 14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14371   (eval "$ac_compile") 2>conftest.er1
 14372   ac_status=$?
 14373   grep -v '^ *+' conftest.er1 >conftest.err
 14374   rm -f conftest.er1
 14375   cat conftest.err >&5
 14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14377   (exit $ac_status); } && {
 14378 	 test -z "$ac_c_werror_flag" ||
 14379 	 test ! -s conftest.err
 14380        } && test -s conftest.$ac_objext; then
 14381   ac_header_compiler=yes
 14382 else
 14383   echo "$as_me: failed program was:" >&5
 14384 sed 's/^/| /' conftest.$ac_ext >&5
 14386 	ac_header_compiler=no
 14387 fi
 14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14391 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14393 # Is the header present?
 14394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
 14395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 14396 cat >conftest.$ac_ext <<_ACEOF
 14397 /* confdefs.h.  */
 14398 _ACEOF
 14399 cat confdefs.h >>conftest.$ac_ext
 14400 cat >>conftest.$ac_ext <<_ACEOF
 14401 /* end confdefs.h.  */
 14402 #include <$ac_header>
 14403 _ACEOF
 14404 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14405 case "(($ac_try" in
 14406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14407   *) ac_try_echo=$ac_try;;
 14408 esac
 14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14411   ac_status=$?
 14412   grep -v '^ *+' conftest.er1 >conftest.err
 14413   rm -f conftest.er1
 14414   cat conftest.err >&5
 14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14416   (exit $ac_status); } >/dev/null && {
 14417 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14418 	 test ! -s conftest.err
 14419        }; then
 14420   ac_header_preproc=yes
 14421 else
 14422   echo "$as_me: failed program was:" >&5
 14423 sed 's/^/| /' conftest.$ac_ext >&5
 14425   ac_header_preproc=no
 14426 fi
 14428 rm -f conftest.err conftest.$ac_ext
 14429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14430 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14432 # So?  What about this header?
 14433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14434   yes:no: )
 14435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 14436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 14438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 14439     ac_header_preproc=yes
 14440     ;;
 14441   no:yes:* )
 14442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 14443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 14444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 14445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 14446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 14447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 14448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 14449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 14450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 14451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 14452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 14453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 14455     ;;
 14456 esac
 14457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
 14458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 14459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14460   echo $ECHO_N "(cached) $ECHO_C" >&6
 14461 else
 14462   eval "$as_ac_Header=\$ac_header_preproc"
 14463 fi
 14464 ac_res=`eval echo '${'$as_ac_Header'}'`
 14465 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14466 echo "${ECHO_T}$ac_res" >&6; }
 14468 fi
 14469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
 14470   cat >>confdefs.h <<_ACEOF
 14471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 14472 _ACEOF
 14474 fi
 14476 done
 14478     if test $ac_cv_header_locale_h = yes; then
 14479     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 14480 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 14481 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 14482   echo $ECHO_N "(cached) $ECHO_C" >&6
 14483 else
 14484   cat >conftest.$ac_ext <<_ACEOF
 14485 /* confdefs.h.  */
 14486 _ACEOF
 14487 cat confdefs.h >>conftest.$ac_ext
 14488 cat >>conftest.$ac_ext <<_ACEOF
 14489 /* end confdefs.h.  */
 14490 #include <locale.h>
 14491 int
 14492 main ()
 14494 return LC_MESSAGES
 14496   return 0;
 14498 _ACEOF
 14499 rm -f conftest.$ac_objext conftest$ac_exeext
 14500 if { (ac_try="$ac_link"
 14501 case "(($ac_try" in
 14502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14503   *) ac_try_echo=$ac_try;;
 14504 esac
 14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14506   (eval "$ac_link") 2>conftest.er1
 14507   ac_status=$?
 14508   grep -v '^ *+' conftest.er1 >conftest.err
 14509   rm -f conftest.er1
 14510   cat conftest.err >&5
 14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14512   (exit $ac_status); } && {
 14513 	 test -z "$ac_c_werror_flag" ||
 14514 	 test ! -s conftest.err
 14515        } && test -s conftest$ac_exeext &&
 14516        $as_test_x conftest$ac_exeext; then
 14517   am_cv_val_LC_MESSAGES=yes
 14518 else
 14519   echo "$as_me: failed program was:" >&5
 14520 sed 's/^/| /' conftest.$ac_ext >&5
 14522 	am_cv_val_LC_MESSAGES=no
 14523 fi
 14525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14526       conftest$ac_exeext conftest.$ac_ext
 14527 fi
 14528 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 14529 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
 14530     if test $am_cv_val_LC_MESSAGES = yes; then
 14532 cat >>confdefs.h <<\_ACEOF
 14533 #define HAVE_LC_MESSAGES 1
 14534 _ACEOF
 14536     fi
 14537   fi
 14538      USE_NLS=yes
 14541     gt_cv_have_gettext=no
 14543     CATOBJEXT=NONE
 14544     XGETTEXT=:
 14545     INTLLIBS=
 14547     if test "${ac_cv_header_libintl_h+set}" = set; then
 14548   { echo "$as_me:$LINENO: checking for libintl.h" >&5
 14549 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 14550 if test "${ac_cv_header_libintl_h+set}" = set; then
 14551   echo $ECHO_N "(cached) $ECHO_C" >&6
 14552 fi
 14553 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 14554 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 14555 else
 14556   # Is the header compilable?
 14557 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
 14558 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
 14559 cat >conftest.$ac_ext <<_ACEOF
 14560 /* confdefs.h.  */
 14561 _ACEOF
 14562 cat confdefs.h >>conftest.$ac_ext
 14563 cat >>conftest.$ac_ext <<_ACEOF
 14564 /* end confdefs.h.  */
 14565 $ac_includes_default
 14566 #include <libintl.h>
 14567 _ACEOF
 14568 rm -f conftest.$ac_objext
 14569 if { (ac_try="$ac_compile"
 14570 case "(($ac_try" in
 14571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14572   *) ac_try_echo=$ac_try;;
 14573 esac
 14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14575   (eval "$ac_compile") 2>conftest.er1
 14576   ac_status=$?
 14577   grep -v '^ *+' conftest.er1 >conftest.err
 14578   rm -f conftest.er1
 14579   cat conftest.err >&5
 14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14581   (exit $ac_status); } && {
 14582 	 test -z "$ac_c_werror_flag" ||
 14583 	 test ! -s conftest.err
 14584        } && test -s conftest.$ac_objext; then
 14585   ac_header_compiler=yes
 14586 else
 14587   echo "$as_me: failed program was:" >&5
 14588 sed 's/^/| /' conftest.$ac_ext >&5
 14590 	ac_header_compiler=no
 14591 fi
 14593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14595 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14597 # Is the header present?
 14598 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
 14599 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
 14600 cat >conftest.$ac_ext <<_ACEOF
 14601 /* confdefs.h.  */
 14602 _ACEOF
 14603 cat confdefs.h >>conftest.$ac_ext
 14604 cat >>conftest.$ac_ext <<_ACEOF
 14605 /* end confdefs.h.  */
 14606 #include <libintl.h>
 14607 _ACEOF
 14608 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14609 case "(($ac_try" in
 14610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14611   *) ac_try_echo=$ac_try;;
 14612 esac
 14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14615   ac_status=$?
 14616   grep -v '^ *+' conftest.er1 >conftest.err
 14617   rm -f conftest.er1
 14618   cat conftest.err >&5
 14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14620   (exit $ac_status); } >/dev/null && {
 14621 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14622 	 test ! -s conftest.err
 14623        }; then
 14624   ac_header_preproc=yes
 14625 else
 14626   echo "$as_me: failed program was:" >&5
 14627 sed 's/^/| /' conftest.$ac_ext >&5
 14629   ac_header_preproc=no
 14630 fi
 14632 rm -f conftest.err conftest.$ac_ext
 14633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14634 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14636 # So?  What about this header?
 14637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14638   yes:no: )
 14639     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 14640 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14641     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 14642 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 14643     ac_header_preproc=yes
 14644     ;;
 14645   no:yes:* )
 14646     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 14647 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 14648     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 14649 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 14650     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 14651 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 14652     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 14653 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14654     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 14655 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 14656     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 14657 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 14659     ;;
 14660 esac
 14661 { echo "$as_me:$LINENO: checking for libintl.h" >&5
 14662 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 14663 if test "${ac_cv_header_libintl_h+set}" = set; then
 14664   echo $ECHO_N "(cached) $ECHO_C" >&6
 14665 else
 14666   ac_cv_header_libintl_h=$ac_header_preproc
 14667 fi
 14668 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 14669 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 14671 fi
 14672 if test $ac_cv_header_libintl_h = yes; then
 14673   gt_cv_func_dgettext_libintl="no"
 14674       libintl_extra_libs=""
 14677       # First check in libc
 14679       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 14680 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
 14681 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 14682   echo $ECHO_N "(cached) $ECHO_C" >&6
 14683 else
 14684   cat >conftest.$ac_ext <<_ACEOF
 14685 /* confdefs.h.  */
 14686 _ACEOF
 14687 cat confdefs.h >>conftest.$ac_ext
 14688 cat >>conftest.$ac_ext <<_ACEOF
 14689 /* end confdefs.h.  */
 14691 #include <libintl.h>
 14693 int
 14694 main ()
 14696 return !ngettext ("","", 1)
 14698   return 0;
 14700 _ACEOF
 14701 rm -f conftest.$ac_objext conftest$ac_exeext
 14702 if { (ac_try="$ac_link"
 14703 case "(($ac_try" in
 14704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14705   *) ac_try_echo=$ac_try;;
 14706 esac
 14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14708   (eval "$ac_link") 2>conftest.er1
 14709   ac_status=$?
 14710   grep -v '^ *+' conftest.er1 >conftest.err
 14711   rm -f conftest.er1
 14712   cat conftest.err >&5
 14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14714   (exit $ac_status); } && {
 14715 	 test -z "$ac_c_werror_flag" ||
 14716 	 test ! -s conftest.err
 14717        } && test -s conftest$ac_exeext &&
 14718        $as_test_x conftest$ac_exeext; then
 14719   gt_cv_func_ngettext_libc=yes
 14720 else
 14721   echo "$as_me: failed program was:" >&5
 14722 sed 's/^/| /' conftest.$ac_ext >&5
 14724 	gt_cv_func_ngettext_libc=no
 14725 fi
 14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14728       conftest$ac_exeext conftest.$ac_ext
 14730 fi
 14731 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 14732 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
 14734       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 14735 	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 14736 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
 14737 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 14738   echo $ECHO_N "(cached) $ECHO_C" >&6
 14739 else
 14740   cat >conftest.$ac_ext <<_ACEOF
 14741 /* confdefs.h.  */
 14742 _ACEOF
 14743 cat confdefs.h >>conftest.$ac_ext
 14744 cat >>conftest.$ac_ext <<_ACEOF
 14745 /* end confdefs.h.  */
 14747 #include <libintl.h>
 14749 int
 14750 main ()
 14752 return !dgettext ("","")
 14754   return 0;
 14756 _ACEOF
 14757 rm -f conftest.$ac_objext conftest$ac_exeext
 14758 if { (ac_try="$ac_link"
 14759 case "(($ac_try" in
 14760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14761   *) ac_try_echo=$ac_try;;
 14762 esac
 14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14764   (eval "$ac_link") 2>conftest.er1
 14765   ac_status=$?
 14766   grep -v '^ *+' conftest.er1 >conftest.err
 14767   rm -f conftest.er1
 14768   cat conftest.err >&5
 14769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14770   (exit $ac_status); } && {
 14771 	 test -z "$ac_c_werror_flag" ||
 14772 	 test ! -s conftest.err
 14773        } && test -s conftest$ac_exeext &&
 14774        $as_test_x conftest$ac_exeext; then
 14775   gt_cv_func_dgettext_libc=yes
 14776 else
 14777   echo "$as_me: failed program was:" >&5
 14778 sed 's/^/| /' conftest.$ac_ext >&5
 14780 	gt_cv_func_dgettext_libc=no
 14781 fi
 14783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14784       conftest$ac_exeext conftest.$ac_ext
 14786 fi
 14787 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 14788 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
 14789       fi
 14791       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 14793 for ac_func in bind_textdomain_codeset
 14794 do
 14795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 14796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 14797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 14798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 14799   echo $ECHO_N "(cached) $ECHO_C" >&6
 14800 else
 14801   cat >conftest.$ac_ext <<_ACEOF
 14802 /* confdefs.h.  */
 14803 _ACEOF
 14804 cat confdefs.h >>conftest.$ac_ext
 14805 cat >>conftest.$ac_ext <<_ACEOF
 14806 /* end confdefs.h.  */
 14807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 14808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 14809 #define $ac_func innocuous_$ac_func
 14811 /* System header to define __stub macros and hopefully few prototypes,
 14812     which can conflict with char $ac_func (); below.
 14813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 14814     <limits.h> exists even on freestanding compilers.  */
 14816 #ifdef __STDC__
 14817 # include <limits.h>
 14818 #else
 14819 # include <assert.h>
 14820 #endif
 14822 #undef $ac_func
 14824 /* Override any GCC internal prototype to avoid an error.
 14825    Use char because int might match the return type of a GCC
 14826    builtin and then its argument prototype would still apply.  */
 14827 #ifdef __cplusplus
 14828 extern "C"
 14829 #endif
 14830 char $ac_func ();
 14831 /* The GNU C library defines this for functions which it implements
 14832     to always fail with ENOSYS.  Some functions are actually named
 14833     something starting with __ and the normal name is an alias.  */
 14834 #if defined __stub_$ac_func || defined __stub___$ac_func
 14835 choke me
 14836 #endif
 14838 int
 14839 main ()
 14841 return $ac_func ();
 14843   return 0;
 14845 _ACEOF
 14846 rm -f conftest.$ac_objext conftest$ac_exeext
 14847 if { (ac_try="$ac_link"
 14848 case "(($ac_try" in
 14849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14850   *) ac_try_echo=$ac_try;;
 14851 esac
 14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14853   (eval "$ac_link") 2>conftest.er1
 14854   ac_status=$?
 14855   grep -v '^ *+' conftest.er1 >conftest.err
 14856   rm -f conftest.er1
 14857   cat conftest.err >&5
 14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14859   (exit $ac_status); } && {
 14860 	 test -z "$ac_c_werror_flag" ||
 14861 	 test ! -s conftest.err
 14862        } && test -s conftest$ac_exeext &&
 14863        $as_test_x conftest$ac_exeext; then
 14864   eval "$as_ac_var=yes"
 14865 else
 14866   echo "$as_me: failed program was:" >&5
 14867 sed 's/^/| /' conftest.$ac_ext >&5
 14869 	eval "$as_ac_var=no"
 14870 fi
 14872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14873       conftest$ac_exeext conftest.$ac_ext
 14874 fi
 14875 ac_res=`eval echo '${'$as_ac_var'}'`
 14876 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14877 echo "${ECHO_T}$ac_res" >&6; }
 14878 if test `eval echo '${'$as_ac_var'}'` = yes; then
 14879   cat >>confdefs.h <<_ACEOF
 14880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 14881 _ACEOF
 14883 fi
 14884 done
 14886       fi
 14889       # If we don't have everything we want, check in libintl
 14891       if test "$gt_cv_func_dgettext_libc" != "yes" \
 14892 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 14893          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 14895         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 14896 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
 14897 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 14898   echo $ECHO_N "(cached) $ECHO_C" >&6
 14899 else
 14900   ac_check_lib_save_LIBS=$LIBS
 14901 LIBS="-lintl  $LIBS"
 14902 cat >conftest.$ac_ext <<_ACEOF
 14903 /* confdefs.h.  */
 14904 _ACEOF
 14905 cat confdefs.h >>conftest.$ac_ext
 14906 cat >>conftest.$ac_ext <<_ACEOF
 14907 /* end confdefs.h.  */
 14909 /* Override any GCC internal prototype to avoid an error.
 14910    Use char because int might match the return type of a GCC
 14911    builtin and then its argument prototype would still apply.  */
 14912 #ifdef __cplusplus
 14913 extern "C"
 14914 #endif
 14915 char bindtextdomain ();
 14916 int
 14917 main ()
 14919 return bindtextdomain ();
 14921   return 0;
 14923 _ACEOF
 14924 rm -f conftest.$ac_objext conftest$ac_exeext
 14925 if { (ac_try="$ac_link"
 14926 case "(($ac_try" in
 14927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14928   *) ac_try_echo=$ac_try;;
 14929 esac
 14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14931   (eval "$ac_link") 2>conftest.er1
 14932   ac_status=$?
 14933   grep -v '^ *+' conftest.er1 >conftest.err
 14934   rm -f conftest.er1
 14935   cat conftest.err >&5
 14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14937   (exit $ac_status); } && {
 14938 	 test -z "$ac_c_werror_flag" ||
 14939 	 test ! -s conftest.err
 14940        } && test -s conftest$ac_exeext &&
 14941        $as_test_x conftest$ac_exeext; then
 14942   ac_cv_lib_intl_bindtextdomain=yes
 14943 else
 14944   echo "$as_me: failed program was:" >&5
 14945 sed 's/^/| /' conftest.$ac_ext >&5
 14947 	ac_cv_lib_intl_bindtextdomain=no
 14948 fi
 14950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14951       conftest$ac_exeext conftest.$ac_ext
 14952 LIBS=$ac_check_lib_save_LIBS
 14953 fi
 14954 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 14955 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
 14956 if test $ac_cv_lib_intl_bindtextdomain = yes; then
 14957   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 14958 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 14959 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 14960   echo $ECHO_N "(cached) $ECHO_C" >&6
 14961 else
 14962   ac_check_lib_save_LIBS=$LIBS
 14963 LIBS="-lintl  $LIBS"
 14964 cat >conftest.$ac_ext <<_ACEOF
 14965 /* confdefs.h.  */
 14966 _ACEOF
 14967 cat confdefs.h >>conftest.$ac_ext
 14968 cat >>conftest.$ac_ext <<_ACEOF
 14969 /* end confdefs.h.  */
 14971 /* Override any GCC internal prototype to avoid an error.
 14972    Use char because int might match the return type of a GCC
 14973    builtin and then its argument prototype would still apply.  */
 14974 #ifdef __cplusplus
 14975 extern "C"
 14976 #endif
 14977 char ngettext ();
 14978 int
 14979 main ()
 14981 return ngettext ();
 14983   return 0;
 14985 _ACEOF
 14986 rm -f conftest.$ac_objext conftest$ac_exeext
 14987 if { (ac_try="$ac_link"
 14988 case "(($ac_try" in
 14989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14990   *) ac_try_echo=$ac_try;;
 14991 esac
 14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14993   (eval "$ac_link") 2>conftest.er1
 14994   ac_status=$?
 14995   grep -v '^ *+' conftest.er1 >conftest.err
 14996   rm -f conftest.er1
 14997   cat conftest.err >&5
 14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14999   (exit $ac_status); } && {
 15000 	 test -z "$ac_c_werror_flag" ||
 15001 	 test ! -s conftest.err
 15002        } && test -s conftest$ac_exeext &&
 15003        $as_test_x conftest$ac_exeext; then
 15004   ac_cv_lib_intl_ngettext=yes
 15005 else
 15006   echo "$as_me: failed program was:" >&5
 15007 sed 's/^/| /' conftest.$ac_ext >&5
 15009 	ac_cv_lib_intl_ngettext=no
 15010 fi
 15012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15013       conftest$ac_exeext conftest.$ac_ext
 15014 LIBS=$ac_check_lib_save_LIBS
 15015 fi
 15016 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 15017 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 15018 if test $ac_cv_lib_intl_ngettext = yes; then
 15019   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 15020 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
 15021 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 15022   echo $ECHO_N "(cached) $ECHO_C" >&6
 15023 else
 15024   ac_check_lib_save_LIBS=$LIBS
 15025 LIBS="-lintl  $LIBS"
 15026 cat >conftest.$ac_ext <<_ACEOF
 15027 /* confdefs.h.  */
 15028 _ACEOF
 15029 cat confdefs.h >>conftest.$ac_ext
 15030 cat >>conftest.$ac_ext <<_ACEOF
 15031 /* end confdefs.h.  */
 15033 /* Override any GCC internal prototype to avoid an error.
 15034    Use char because int might match the return type of a GCC
 15035    builtin and then its argument prototype would still apply.  */
 15036 #ifdef __cplusplus
 15037 extern "C"
 15038 #endif
 15039 char dgettext ();
 15040 int
 15041 main ()
 15043 return dgettext ();
 15045   return 0;
 15047 _ACEOF
 15048 rm -f conftest.$ac_objext conftest$ac_exeext
 15049 if { (ac_try="$ac_link"
 15050 case "(($ac_try" in
 15051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15052   *) ac_try_echo=$ac_try;;
 15053 esac
 15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15055   (eval "$ac_link") 2>conftest.er1
 15056   ac_status=$?
 15057   grep -v '^ *+' conftest.er1 >conftest.err
 15058   rm -f conftest.er1
 15059   cat conftest.err >&5
 15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15061   (exit $ac_status); } && {
 15062 	 test -z "$ac_c_werror_flag" ||
 15063 	 test ! -s conftest.err
 15064        } && test -s conftest$ac_exeext &&
 15065        $as_test_x conftest$ac_exeext; then
 15066   ac_cv_lib_intl_dgettext=yes
 15067 else
 15068   echo "$as_me: failed program was:" >&5
 15069 sed 's/^/| /' conftest.$ac_ext >&5
 15071 	ac_cv_lib_intl_dgettext=no
 15072 fi
 15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15075       conftest$ac_exeext conftest.$ac_ext
 15076 LIBS=$ac_check_lib_save_LIBS
 15077 fi
 15078 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 15079 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
 15080 if test $ac_cv_lib_intl_dgettext = yes; then
 15081   gt_cv_func_dgettext_libintl=yes
 15082 fi
 15084 fi
 15086 fi
 15089 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 15090 	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 15091 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
 15092 	  { echo "$as_me:$LINENO: result: " >&5
 15093 echo "${ECHO_T}" >&6; }
 15094   	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 15095 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 15096 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 15097   echo $ECHO_N "(cached) $ECHO_C" >&6
 15098 else
 15099   ac_check_lib_save_LIBS=$LIBS
 15100 LIBS="-lintl -liconv $LIBS"
 15101 cat >conftest.$ac_ext <<_ACEOF
 15102 /* confdefs.h.  */
 15103 _ACEOF
 15104 cat confdefs.h >>conftest.$ac_ext
 15105 cat >>conftest.$ac_ext <<_ACEOF
 15106 /* end confdefs.h.  */
 15108 /* Override any GCC internal prototype to avoid an error.
 15109    Use char because int might match the return type of a GCC
 15110    builtin and then its argument prototype would still apply.  */
 15111 #ifdef __cplusplus
 15112 extern "C"
 15113 #endif
 15114 char ngettext ();
 15115 int
 15116 main ()
 15118 return ngettext ();
 15120   return 0;
 15122 _ACEOF
 15123 rm -f conftest.$ac_objext conftest$ac_exeext
 15124 if { (ac_try="$ac_link"
 15125 case "(($ac_try" in
 15126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15127   *) ac_try_echo=$ac_try;;
 15128 esac
 15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15130   (eval "$ac_link") 2>conftest.er1
 15131   ac_status=$?
 15132   grep -v '^ *+' conftest.er1 >conftest.err
 15133   rm -f conftest.er1
 15134   cat conftest.err >&5
 15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15136   (exit $ac_status); } && {
 15137 	 test -z "$ac_c_werror_flag" ||
 15138 	 test ! -s conftest.err
 15139        } && test -s conftest$ac_exeext &&
 15140        $as_test_x conftest$ac_exeext; then
 15141   ac_cv_lib_intl_ngettext=yes
 15142 else
 15143   echo "$as_me: failed program was:" >&5
 15144 sed 's/^/| /' conftest.$ac_ext >&5
 15146 	ac_cv_lib_intl_ngettext=no
 15147 fi
 15149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15150       conftest$ac_exeext conftest.$ac_ext
 15151 LIBS=$ac_check_lib_save_LIBS
 15152 fi
 15153 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 15154 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 15155 if test $ac_cv_lib_intl_ngettext = yes; then
 15156   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 15157 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
 15158 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 15159   echo $ECHO_N "(cached) $ECHO_C" >&6
 15160 else
 15161   ac_check_lib_save_LIBS=$LIBS
 15162 LIBS="-lintl -liconv $LIBS"
 15163 cat >conftest.$ac_ext <<_ACEOF
 15164 /* confdefs.h.  */
 15165 _ACEOF
 15166 cat confdefs.h >>conftest.$ac_ext
 15167 cat >>conftest.$ac_ext <<_ACEOF
 15168 /* end confdefs.h.  */
 15170 /* Override any GCC internal prototype to avoid an error.
 15171    Use char because int might match the return type of a GCC
 15172    builtin and then its argument prototype would still apply.  */
 15173 #ifdef __cplusplus
 15174 extern "C"
 15175 #endif
 15176 char dcgettext ();
 15177 int
 15178 main ()
 15180 return dcgettext ();
 15182   return 0;
 15184 _ACEOF
 15185 rm -f conftest.$ac_objext conftest$ac_exeext
 15186 if { (ac_try="$ac_link"
 15187 case "(($ac_try" in
 15188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15189   *) ac_try_echo=$ac_try;;
 15190 esac
 15191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15192   (eval "$ac_link") 2>conftest.er1
 15193   ac_status=$?
 15194   grep -v '^ *+' conftest.er1 >conftest.err
 15195   rm -f conftest.er1
 15196   cat conftest.err >&5
 15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15198   (exit $ac_status); } && {
 15199 	 test -z "$ac_c_werror_flag" ||
 15200 	 test ! -s conftest.err
 15201        } && test -s conftest$ac_exeext &&
 15202        $as_test_x conftest$ac_exeext; then
 15203   ac_cv_lib_intl_dcgettext=yes
 15204 else
 15205   echo "$as_me: failed program was:" >&5
 15206 sed 's/^/| /' conftest.$ac_ext >&5
 15208 	ac_cv_lib_intl_dcgettext=no
 15209 fi
 15211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15212       conftest$ac_exeext conftest.$ac_ext
 15213 LIBS=$ac_check_lib_save_LIBS
 15214 fi
 15215 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 15216 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
 15217 if test $ac_cv_lib_intl_dcgettext = yes; then
 15218   gt_cv_func_dgettext_libintl=yes
 15219 			libintl_extra_libs=-liconv
 15220 else
 15222 fi
 15224 else
 15226 fi
 15228         fi
 15231         # If we found libintl, then check in it for bind_textdomain_codeset();
 15232         # we'll prefer libc if neither have bind_textdomain_codeset(),
 15233         # and both have dgettext and ngettext
 15235         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 15236           glib_save_LIBS="$LIBS"
 15237           LIBS="$LIBS -lintl $libintl_extra_libs"
 15238           unset ac_cv_func_bind_textdomain_codeset
 15240 for ac_func in bind_textdomain_codeset
 15241 do
 15242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15246   echo $ECHO_N "(cached) $ECHO_C" >&6
 15247 else
 15248   cat >conftest.$ac_ext <<_ACEOF
 15249 /* confdefs.h.  */
 15250 _ACEOF
 15251 cat confdefs.h >>conftest.$ac_ext
 15252 cat >>conftest.$ac_ext <<_ACEOF
 15253 /* end confdefs.h.  */
 15254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15256 #define $ac_func innocuous_$ac_func
 15258 /* System header to define __stub macros and hopefully few prototypes,
 15259     which can conflict with char $ac_func (); below.
 15260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15261     <limits.h> exists even on freestanding compilers.  */
 15263 #ifdef __STDC__
 15264 # include <limits.h>
 15265 #else
 15266 # include <assert.h>
 15267 #endif
 15269 #undef $ac_func
 15271 /* Override any GCC internal prototype to avoid an error.
 15272    Use char because int might match the return type of a GCC
 15273    builtin and then its argument prototype would still apply.  */
 15274 #ifdef __cplusplus
 15275 extern "C"
 15276 #endif
 15277 char $ac_func ();
 15278 /* The GNU C library defines this for functions which it implements
 15279     to always fail with ENOSYS.  Some functions are actually named
 15280     something starting with __ and the normal name is an alias.  */
 15281 #if defined __stub_$ac_func || defined __stub___$ac_func
 15282 choke me
 15283 #endif
 15285 int
 15286 main ()
 15288 return $ac_func ();
 15290   return 0;
 15292 _ACEOF
 15293 rm -f conftest.$ac_objext conftest$ac_exeext
 15294 if { (ac_try="$ac_link"
 15295 case "(($ac_try" in
 15296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15297   *) ac_try_echo=$ac_try;;
 15298 esac
 15299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15300   (eval "$ac_link") 2>conftest.er1
 15301   ac_status=$?
 15302   grep -v '^ *+' conftest.er1 >conftest.err
 15303   rm -f conftest.er1
 15304   cat conftest.err >&5
 15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15306   (exit $ac_status); } && {
 15307 	 test -z "$ac_c_werror_flag" ||
 15308 	 test ! -s conftest.err
 15309        } && test -s conftest$ac_exeext &&
 15310        $as_test_x conftest$ac_exeext; then
 15311   eval "$as_ac_var=yes"
 15312 else
 15313   echo "$as_me: failed program was:" >&5
 15314 sed 's/^/| /' conftest.$ac_ext >&5
 15316 	eval "$as_ac_var=no"
 15317 fi
 15319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15320       conftest$ac_exeext conftest.$ac_ext
 15321 fi
 15322 ac_res=`eval echo '${'$as_ac_var'}'`
 15323 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15324 echo "${ECHO_T}$ac_res" >&6; }
 15325 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15326   cat >>confdefs.h <<_ACEOF
 15327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15328 _ACEOF
 15330 fi
 15331 done
 15333           LIBS="$glib_save_LIBS"
 15335           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 15336             gt_cv_func_dgettext_libc=no
 15337           else
 15338             if test "$gt_cv_func_dgettext_libc" = "yes" \
 15339 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 15340               gt_cv_func_dgettext_libintl=no
 15341             fi
 15342           fi
 15343         fi
 15344       fi
 15346       if test "$gt_cv_func_dgettext_libc" = "yes" \
 15347 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 15348         gt_cv_have_gettext=yes
 15349       fi
 15351       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 15352         INTLLIBS="-lintl $libintl_extra_libs"
 15353       fi
 15355       if test "$gt_cv_have_gettext" = "yes"; then
 15357 cat >>confdefs.h <<\_ACEOF
 15358 #define HAVE_GETTEXT 1
 15359 _ACEOF
 15361 	# Extract the first word of "msgfmt", so it can be a program name with args.
 15362 set dummy msgfmt; ac_word=$2
 15363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15365 if test "${ac_cv_path_MSGFMT+set}" = set; then
 15366   echo $ECHO_N "(cached) $ECHO_C" >&6
 15367 else
 15368   case "$MSGFMT" in
 15369   /*)
 15370   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 15371   ;;
 15372   *)
 15373   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 15374   for ac_dir in $PATH; do
 15375     test -z "$ac_dir" && ac_dir=.
 15376     if test -f $ac_dir/$ac_word; then
 15377       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 15378 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 15379 	break
 15380       fi
 15381     fi
 15382   done
 15383   IFS="$ac_save_ifs"
 15384   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 15385   ;;
 15386 esac
 15387 fi
 15388 MSGFMT="$ac_cv_path_MSGFMT"
 15389 if test "$MSGFMT" != "no"; then
 15390   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 15391 echo "${ECHO_T}$MSGFMT" >&6; }
 15392 else
 15393   { echo "$as_me:$LINENO: result: no" >&5
 15394 echo "${ECHO_T}no" >&6; }
 15395 fi
 15396 	if test "$MSGFMT" != "no"; then
 15397           glib_save_LIBS="$LIBS"
 15398           LIBS="$LIBS $INTLLIBS"
 15400 for ac_func in dcgettext
 15401 do
 15402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15406   echo $ECHO_N "(cached) $ECHO_C" >&6
 15407 else
 15408   cat >conftest.$ac_ext <<_ACEOF
 15409 /* confdefs.h.  */
 15410 _ACEOF
 15411 cat confdefs.h >>conftest.$ac_ext
 15412 cat >>conftest.$ac_ext <<_ACEOF
 15413 /* end confdefs.h.  */
 15414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15416 #define $ac_func innocuous_$ac_func
 15418 /* System header to define __stub macros and hopefully few prototypes,
 15419     which can conflict with char $ac_func (); below.
 15420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15421     <limits.h> exists even on freestanding compilers.  */
 15423 #ifdef __STDC__
 15424 # include <limits.h>
 15425 #else
 15426 # include <assert.h>
 15427 #endif
 15429 #undef $ac_func
 15431 /* Override any GCC internal prototype to avoid an error.
 15432    Use char because int might match the return type of a GCC
 15433    builtin and then its argument prototype would still apply.  */
 15434 #ifdef __cplusplus
 15435 extern "C"
 15436 #endif
 15437 char $ac_func ();
 15438 /* The GNU C library defines this for functions which it implements
 15439     to always fail with ENOSYS.  Some functions are actually named
 15440     something starting with __ and the normal name is an alias.  */
 15441 #if defined __stub_$ac_func || defined __stub___$ac_func
 15442 choke me
 15443 #endif
 15445 int
 15446 main ()
 15448 return $ac_func ();
 15450   return 0;
 15452 _ACEOF
 15453 rm -f conftest.$ac_objext conftest$ac_exeext
 15454 if { (ac_try="$ac_link"
 15455 case "(($ac_try" in
 15456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15457   *) ac_try_echo=$ac_try;;
 15458 esac
 15459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15460   (eval "$ac_link") 2>conftest.er1
 15461   ac_status=$?
 15462   grep -v '^ *+' conftest.er1 >conftest.err
 15463   rm -f conftest.er1
 15464   cat conftest.err >&5
 15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15466   (exit $ac_status); } && {
 15467 	 test -z "$ac_c_werror_flag" ||
 15468 	 test ! -s conftest.err
 15469        } && test -s conftest$ac_exeext &&
 15470        $as_test_x conftest$ac_exeext; then
 15471   eval "$as_ac_var=yes"
 15472 else
 15473   echo "$as_me: failed program was:" >&5
 15474 sed 's/^/| /' conftest.$ac_ext >&5
 15476 	eval "$as_ac_var=no"
 15477 fi
 15479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15480       conftest$ac_exeext conftest.$ac_ext
 15481 fi
 15482 ac_res=`eval echo '${'$as_ac_var'}'`
 15483 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15484 echo "${ECHO_T}$ac_res" >&6; }
 15485 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15486   cat >>confdefs.h <<_ACEOF
 15487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15488 _ACEOF
 15490 fi
 15491 done
 15493 	  MSGFMT_OPTS=
 15494 	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 15495 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
 15496 	  cat >conftest.foo <<_ACEOF
 15498 msgid ""
 15499 msgstr ""
 15500 "Content-Type: text/plain; charset=UTF-8\n"
 15501 "Project-Id-Version: test 1.0\n"
 15502 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 15503 "Last-Translator: test <foo@bar.xx>\n"
 15504 "Language-Team: C <LL@li.org>\n"
 15505 "MIME-Version: 1.0\n"
 15506 "Content-Transfer-Encoding: 8bit\n"
 15508 _ACEOF
 15509 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
 15510   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 15511   ac_status=$?
 15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15513   (exit $ac_status); }; then
 15514   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
 15515 echo "${ECHO_T}yes" >&6; }
 15516 else { echo "$as_me:$LINENO: result: no" >&5
 15517 echo "${ECHO_T}no" >&6; }
 15518 echo "$as_me: failed input was:" >&5
 15519 sed 's/^/| /' conftest.foo >&5
 15520 fi
 15522 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 15523 set dummy gmsgfmt; ac_word=$2
 15524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15526 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 15527   echo $ECHO_N "(cached) $ECHO_C" >&6
 15528 else
 15529   case $GMSGFMT in
 15530   [\\/]* | ?:[\\/]*)
 15531   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 15532   ;;
 15533   *)
 15534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 15535 for as_dir in $PATH
 15536 do
 15537   IFS=$as_save_IFS
 15538   test -z "$as_dir" && as_dir=.
 15539   for ac_exec_ext in '' $ac_executable_extensions; do
 15540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 15541     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 15542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 15543     break 2
 15544   fi
 15545 done
 15546 done
 15547 IFS=$as_save_IFS
 15549   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 15550   ;;
 15551 esac
 15552 fi
 15553 GMSGFMT=$ac_cv_path_GMSGFMT
 15554 if test -n "$GMSGFMT"; then
 15555   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 15556 echo "${ECHO_T}$GMSGFMT" >&6; }
 15557 else
 15558   { echo "$as_me:$LINENO: result: no" >&5
 15559 echo "${ECHO_T}no" >&6; }
 15560 fi
 15563 	  # Extract the first word of "xgettext", so it can be a program name with args.
 15564 set dummy xgettext; ac_word=$2
 15565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15567 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 15568   echo $ECHO_N "(cached) $ECHO_C" >&6
 15569 else
 15570   case "$XGETTEXT" in
 15571   /*)
 15572   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 15573   ;;
 15574   *)
 15575   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 15576   for ac_dir in $PATH; do
 15577     test -z "$ac_dir" && ac_dir=.
 15578     if test -f $ac_dir/$ac_word; then
 15579       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 15580 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 15581 	break
 15582       fi
 15583     fi
 15584   done
 15585   IFS="$ac_save_ifs"
 15586   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 15587   ;;
 15588 esac
 15589 fi
 15590 XGETTEXT="$ac_cv_path_XGETTEXT"
 15591 if test "$XGETTEXT" != ":"; then
 15592   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 15593 echo "${ECHO_T}$XGETTEXT" >&6; }
 15594 else
 15595   { echo "$as_me:$LINENO: result: no" >&5
 15596 echo "${ECHO_T}no" >&6; }
 15597 fi
 15599 	  cat >conftest.$ac_ext <<_ACEOF
 15600 /* confdefs.h.  */
 15601 _ACEOF
 15602 cat confdefs.h >>conftest.$ac_ext
 15603 cat >>conftest.$ac_ext <<_ACEOF
 15604 /* end confdefs.h.  */
 15606 int
 15607 main ()
 15609 extern int _nl_msg_cat_cntr;
 15610 			 return _nl_msg_cat_cntr
 15612   return 0;
 15614 _ACEOF
 15615 rm -f conftest.$ac_objext conftest$ac_exeext
 15616 if { (ac_try="$ac_link"
 15617 case "(($ac_try" in
 15618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15619   *) ac_try_echo=$ac_try;;
 15620 esac
 15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15622   (eval "$ac_link") 2>conftest.er1
 15623   ac_status=$?
 15624   grep -v '^ *+' conftest.er1 >conftest.err
 15625   rm -f conftest.er1
 15626   cat conftest.err >&5
 15627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15628   (exit $ac_status); } && {
 15629 	 test -z "$ac_c_werror_flag" ||
 15630 	 test ! -s conftest.err
 15631        } && test -s conftest$ac_exeext &&
 15632        $as_test_x conftest$ac_exeext; then
 15633   CATOBJEXT=.gmo
 15634              DATADIRNAME=share
 15635 else
 15636   echo "$as_me: failed program was:" >&5
 15637 sed 's/^/| /' conftest.$ac_ext >&5
 15639 	case $host in
 15640 	    *-*-solaris*)
 15641 	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 15642 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 15643 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 15644   echo $ECHO_N "(cached) $ECHO_C" >&6
 15645 else
 15646   cat >conftest.$ac_ext <<_ACEOF
 15647 /* confdefs.h.  */
 15648 _ACEOF
 15649 cat confdefs.h >>conftest.$ac_ext
 15650 cat >>conftest.$ac_ext <<_ACEOF
 15651 /* end confdefs.h.  */
 15652 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 15653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15654 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 15656 /* System header to define __stub macros and hopefully few prototypes,
 15657     which can conflict with char bind_textdomain_codeset (); below.
 15658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15659     <limits.h> exists even on freestanding compilers.  */
 15661 #ifdef __STDC__
 15662 # include <limits.h>
 15663 #else
 15664 # include <assert.h>
 15665 #endif
 15667 #undef bind_textdomain_codeset
 15669 /* Override any GCC internal prototype to avoid an error.
 15670    Use char because int might match the return type of a GCC
 15671    builtin and then its argument prototype would still apply.  */
 15672 #ifdef __cplusplus
 15673 extern "C"
 15674 #endif
 15675 char bind_textdomain_codeset ();
 15676 /* The GNU C library defines this for functions which it implements
 15677     to always fail with ENOSYS.  Some functions are actually named
 15678     something starting with __ and the normal name is an alias.  */
 15679 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 15680 choke me
 15681 #endif
 15683 int
 15684 main ()
 15686 return bind_textdomain_codeset ();
 15688   return 0;
 15690 _ACEOF
 15691 rm -f conftest.$ac_objext conftest$ac_exeext
 15692 if { (ac_try="$ac_link"
 15693 case "(($ac_try" in
 15694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15695   *) ac_try_echo=$ac_try;;
 15696 esac
 15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15698   (eval "$ac_link") 2>conftest.er1
 15699   ac_status=$?
 15700   grep -v '^ *+' conftest.er1 >conftest.err
 15701   rm -f conftest.er1
 15702   cat conftest.err >&5
 15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15704   (exit $ac_status); } && {
 15705 	 test -z "$ac_c_werror_flag" ||
 15706 	 test ! -s conftest.err
 15707        } && test -s conftest$ac_exeext &&
 15708        $as_test_x conftest$ac_exeext; then
 15709   ac_cv_func_bind_textdomain_codeset=yes
 15710 else
 15711   echo "$as_me: failed program was:" >&5
 15712 sed 's/^/| /' conftest.$ac_ext >&5
 15714 	ac_cv_func_bind_textdomain_codeset=no
 15715 fi
 15717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15718       conftest$ac_exeext conftest.$ac_ext
 15719 fi
 15720 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 15721 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 15722 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 15723   CATOBJEXT=.gmo
 15724                DATADIRNAME=share
 15725 else
 15726   CATOBJEXT=.mo
 15727                DATADIRNAME=lib
 15728 fi
 15730 	    ;;
 15731 	    *)
 15732 	    CATOBJEXT=.mo
 15733             DATADIRNAME=lib
 15734 	    ;;
 15735 	    esac
 15736 fi
 15738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15739       conftest$ac_exeext conftest.$ac_ext
 15740           LIBS="$glib_save_LIBS"
 15741 	  INSTOBJEXT=.mo
 15742 	else
 15743 	  gt_cv_have_gettext=no
 15744 	fi
 15745       fi
 15747 fi
 15751     if test "$gt_cv_have_gettext" = "yes" ; then
 15753 cat >>confdefs.h <<\_ACEOF
 15754 #define ENABLE_NLS 1
 15755 _ACEOF
 15757     fi
 15759         if test "$XGETTEXT" != ":"; then
 15760                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 15761         : ;
 15762       else
 15763         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 15764 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 15765         XGETTEXT=":"
 15766       fi
 15767     fi
 15769     # We need to process the po/ directory.
 15770     POSUB=po
 15772     ac_config_commands="$ac_config_commands default-1"
 15775                 for lang in $ALL_LINGUAS; do
 15776       GMOFILES="$GMOFILES $lang.gmo"
 15777       POFILES="$POFILES $lang.po"
 15778     done
 15792    if test "$gt_cv_have_gettext" = "yes"; then
 15793      if test "x$ALL_LINGUAS" = "x"; then
 15794        LINGUAS=
 15795      else
 15796        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 15797 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
 15798        NEW_LINGUAS=
 15799        for presentlang in $ALL_LINGUAS; do
 15800          useit=no
 15801          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 15802            desiredlanguages="$LINGUAS"
 15803          else
 15804            desiredlanguages="$ALL_LINGUAS"
 15805          fi
 15806          for desiredlang in $desiredlanguages; do
 15807  	   # Use the presentlang catalog if desiredlang is
 15808            #   a. equal to presentlang, or
 15809            #   b. a variant of presentlang (because in this case,
 15810            #      presentlang can be used as a fallback for messages
 15811            #      which are not translated in the desiredlang catalog).
 15812            case "$desiredlang" in
 15813              "$presentlang"*) useit=yes;;
 15814            esac
 15815          done
 15816          if test $useit = yes; then
 15817            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 15818          fi
 15819        done
 15820        LINGUAS=$NEW_LINGUAS
 15821        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
 15822 echo "${ECHO_T}$LINGUAS" >&6; }
 15823      fi
 15825           if test -n "$LINGUAS"; then
 15826        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 15827      fi
 15828    fi
 15830             MKINSTALLDIRS=
 15831    if test -n "$ac_aux_dir"; then
 15832      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 15833    fi
 15834    if test -z "$MKINSTALLDIRS"; then
 15835      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 15836    fi
 15839          test -d po || mkdir po
 15840    if test "x$srcdir" != "x."; then
 15841      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 15842        posrcprefix="$srcdir/"
 15843      else
 15844        posrcprefix="../$srcdir/"
 15845      fi
 15846    else
 15847      posrcprefix="../"
 15848    fi
 15849    rm -f po/POTFILES
 15850    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 15851 	< $srcdir/po/POTFILES.in > po/POTFILES
 15854 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
 15856 cat >confcache <<\_ACEOF
 15857 # This file is a shell script that caches the results of configure
 15858 # tests run on this system so they can be shared between configure
 15859 # scripts and configure runs, see configure's option --config-cache.
 15860 # It is not useful on other systems.  If it contains results you don't
 15861 # want to keep, you may remove or edit it.
 15863 # config.status only pays attention to the cache file if you give it
 15864 # the --recheck option to rerun configure.
 15866 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 15867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 15868 # following values.
 15870 _ACEOF
 15872 # The following way of writing the cache mishandles newlines in values,
 15873 # but we know of no workaround that is simple, portable, and efficient.
 15874 # So, we kill variables containing newlines.
 15875 # Ultrix sh set writes to stderr and can't be redirected directly,
 15876 # and sets the high bit in the cache file unless we assign to the vars.
 15878   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 15879     eval ac_val=\$$ac_var
 15880     case $ac_val in #(
 15881     *${as_nl}*)
 15882       case $ac_var in #(
 15883       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 15884 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 15885       esac
 15886       case $ac_var in #(
 15887       _ | IFS | as_nl) ;; #(
 15888       *) $as_unset $ac_var ;;
 15889       esac ;;
 15890     esac
 15891   done
 15893   (set) 2>&1 |
 15894     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 15895     *${as_nl}ac_space=\ *)
 15896       # `set' does not quote correctly, so add quotes (double-quote
 15897       # substitution turns \\\\ into \\, and sed turns \\ into \).
 15898       sed -n \
 15899 	"s/'/'\\\\''/g;
 15900 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 15901       ;; #(
 15902     *)
 15903       # `set' quotes correctly as required by POSIX, so do not add quotes.
 15904       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 15905       ;;
 15906     esac |
 15907     sort
 15908 ) |
 15909   sed '
 15910      /^ac_cv_env_/b end
 15911      t clear
 15912      :clear
 15913      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 15914      t end
 15915      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 15916      :end' >>confcache
 15917 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 15918   if test -w "$cache_file"; then
 15919     test "x$cache_file" != "x/dev/null" &&
 15920       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 15921 echo "$as_me: updating cache $cache_file" >&6;}
 15922     cat confcache >$cache_file
 15923   else
 15924     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 15925 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 15926   fi
 15927 fi
 15928 rm -f confcache
 15930 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 15931 # Let make expand exec_prefix.
 15932 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 15934 DEFS=-DHAVE_CONFIG_H
 15936 ac_libobjs=
 15937 ac_ltlibobjs=
 15938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 15939   # 1. Remove the extension, and $U if already installed.
 15940   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 15941   ac_i=`echo "$ac_i" | sed "$ac_script"`
 15942   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 15943   #    will be set to the directory where LIBOBJS objects are built.
 15944   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 15945   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 15946 done
 15947 LIBOBJS=$ac_libobjs
 15949 LTLIBOBJS=$ac_ltlibobjs
 15952 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 15953   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 15954 Usually this means the macro was only invoked conditionally." >&5
 15955 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 15956 Usually this means the macro was only invoked conditionally." >&2;}
 15957    { (exit 1); exit 1; }; }
 15958 fi
 15959 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
 15960   { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
 15961 Usually this means the macro was only invoked conditionally." >&5
 15962 echo "$as_me: error: conditional \"GUI_ANDROID\" was never defined.
 15963 Usually this means the macro was only invoked conditionally." >&2;}
 15964    { (exit 1); exit 1; }; }
 15965 fi
 15966 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 15967   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 15968 Usually this means the macro was only invoked conditionally." >&5
 15969 echo "$as_me: error: conditional \"AMDEP\" 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 "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 15974   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 15975 Usually this means the macro was only invoked conditionally." >&5
 15976 echo "$as_me: error: conditional \"am__fastdepCC\" 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 "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 15981   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 15982 Usually this means the macro was only invoked conditionally." >&5
 15983 echo "$as_me: error: conditional \"am__fastdepCC\" 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_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
 15995   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
 15996 Usually this means the macro was only invoked conditionally." >&5
 15997 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" 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__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
 16002   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
 16003 Usually this means the macro was only invoked conditionally." >&5
 16004 echo "$as_me: error: conditional \"am__fastdepOBJC\" 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 "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 16009   { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 16010 Usually this means the macro was only invoked conditionally." >&5
 16011 echo "$as_me: error: conditional \"GUI_COCOA\" 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 "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
 16016   { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
 16017 Usually this means the macro was only invoked conditionally." >&5
 16018 echo "$as_me: error: conditional \"BUILD_PLUGINS\" 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_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 16023   { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 16024 Usually this means the macro was only invoked conditionally." >&5
 16025 echo "$as_me: error: conditional \"GUI_GTK\" 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 "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 16030   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 16031 Usually this means the macro was only invoked conditionally." >&5
 16032 echo "$as_me: error: conditional \"VIDEO_OSMESA\" 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 "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 16037   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 16038 Usually this means the macro was only invoked conditionally." >&5
 16039 echo "$as_me: error: conditional \"VIDEO_GLX\" 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_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 16044   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 16045 Usually this means the macro was only invoked conditionally." >&5
 16046 echo "$as_me: error: conditional \"VIDEO_NSGL\" 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 "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 16051   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 16052 Usually this means the macro was only invoked conditionally." >&5
 16053 echo "$as_me: error: conditional \"BUILD_SH4X86\" 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 "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 16058   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 16059 Usually this means the macro was only invoked conditionally." >&5
 16060 echo "$as_me: error: conditional \"AUDIO_OSX\" 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 "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
 16065   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
 16066 Usually this means the macro was only invoked conditionally." >&5
 16067 echo "$as_me: error: conditional \"AUDIO_SDL\" 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_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 16072   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 16073 Usually this means the macro was only invoked conditionally." >&5
 16074 echo "$as_me: error: conditional \"AUDIO_PULSE\" 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_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 16079   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 16080 Usually this means the macro was only invoked conditionally." >&5
 16081 echo "$as_me: error: conditional \"AUDIO_ESOUND\" 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_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 16086   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 16087 Usually this means the macro was only invoked conditionally." >&5
 16088 echo "$as_me: error: conditional \"AUDIO_ALSA\" 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 "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 16093   { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 16094 Usually this means the macro was only invoked conditionally." >&5
 16095 echo "$as_me: error: conditional \"CDROM_LINUX\" 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 "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
 16100   { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
 16101 Usually this means the macro was only invoked conditionally." >&5
 16102 echo "$as_me: error: conditional \"CDROM_OSX\" 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_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
 16107   { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
 16108 Usually this means the macro was only invoked conditionally." >&5
 16109 echo "$as_me: error: conditional \"CDROM_NONE\" 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 "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 16114   { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 16115 Usually this means the macro was only invoked conditionally." >&5
 16116 echo "$as_me: error: conditional \"JOY_LINUX\" 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 "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
 16121   { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
 16122 Usually this means the macro was only invoked conditionally." >&5
 16123 echo "$as_me: error: conditional \"INPUT_LIRC\" 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 "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 16128   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 16129 Usually this means the macro was only invoked conditionally." >&5
 16130 echo "$as_me: error: conditional \"BUILD_SYSTEST\" 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 "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 16135   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 16136 Usually this means the macro was only invoked conditionally." >&5
 16137 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 16138 Usually this means the macro was only invoked conditionally." >&2;}
 16139    { (exit 1); exit 1; }; }
 16140 fi
 16142 : ${CONFIG_STATUS=./config.status}
 16143 ac_clean_files_save=$ac_clean_files
 16144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 16145 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 16146 echo "$as_me: creating $CONFIG_STATUS" >&6;}
 16147 cat >$CONFIG_STATUS <<_ACEOF
 16148 #! $SHELL
 16149 # Generated by $as_me.
 16150 # Run this file to recreate the current configuration.
 16151 # Compiler output produced by configure, useful for debugging
 16152 # configure, is in config.log if it exists.
 16154 debug=false
 16155 ac_cs_recheck=false
 16156 ac_cs_silent=false
 16157 SHELL=\${CONFIG_SHELL-$SHELL}
 16158 _ACEOF
 16160 cat >>$CONFIG_STATUS <<\_ACEOF
 16161 ## --------------------- ##
 16162 ## M4sh Initialization.  ##
 16163 ## --------------------- ##
 16165 # Be more Bourne compatible
 16166 DUALCASE=1; export DUALCASE # for MKS sh
 16167 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 16168   emulate sh
 16169   NULLCMD=:
 16170   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 16171   # is contrary to our usage.  Disable this feature.
 16172   alias -g '${1+"$@"}'='"$@"'
 16173   setopt NO_GLOB_SUBST
 16174 else
 16175   case `(set -o) 2>/dev/null` in
 16176   *posix*) set -o posix ;;
 16177 esac
 16179 fi
 16184 # PATH needs CR
 16185 # Avoid depending upon Character Ranges.
 16186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 16187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 16188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 16189 as_cr_digits='0123456789'
 16190 as_cr_alnum=$as_cr_Letters$as_cr_digits
 16192 # The user is always right.
 16193 if test "${PATH_SEPARATOR+set}" != set; then
 16194   echo "#! /bin/sh" >conf$$.sh
 16195   echo  "exit 0"   >>conf$$.sh
 16196   chmod +x conf$$.sh
 16197   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 16198     PATH_SEPARATOR=';'
 16199   else
 16200     PATH_SEPARATOR=:
 16201   fi
 16202   rm -f conf$$.sh
 16203 fi
 16205 # Support unset when possible.
 16206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 16207   as_unset=unset
 16208 else
 16209   as_unset=false
 16210 fi
 16213 # IFS
 16214 # We need space, tab and new line, in precisely that order.  Quoting is
 16215 # there to prevent editors from complaining about space-tab.
 16216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 16217 # splitting by setting IFS to empty value.)
 16218 as_nl='
 16220 IFS=" ""	$as_nl"
 16222 # Find who we are.  Look in the path if we contain no directory separator.
 16223 case $0 in
 16224   *[\\/]* ) as_myself=$0 ;;
 16225   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16226 for as_dir in $PATH
 16227 do
 16228   IFS=$as_save_IFS
 16229   test -z "$as_dir" && as_dir=.
 16230   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 16231 done
 16232 IFS=$as_save_IFS
 16234      ;;
 16235 esac
 16236 # We did not find ourselves, most probably we were run as `sh COMMAND'
 16237 # in which case we are not to be found in the path.
 16238 if test "x$as_myself" = x; then
 16239   as_myself=$0
 16240 fi
 16241 if test ! -f "$as_myself"; then
 16242   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 16243   { (exit 1); exit 1; }
 16244 fi
 16246 # Work around bugs in pre-3.0 UWIN ksh.
 16247 for as_var in ENV MAIL MAILPATH
 16248 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 16249 done
 16250 PS1='$ '
 16251 PS2='> '
 16252 PS4='+ '
 16254 # NLS nuisances.
 16255 for as_var in \
 16256   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 16257   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 16258   LC_TELEPHONE LC_TIME
 16259 do
 16260   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 16261     eval $as_var=C; export $as_var
 16262   else
 16263     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 16264   fi
 16265 done
 16267 # Required to use basename.
 16268 if expr a : '\(a\)' >/dev/null 2>&1 &&
 16269    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 16270   as_expr=expr
 16271 else
 16272   as_expr=false
 16273 fi
 16275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 16276   as_basename=basename
 16277 else
 16278   as_basename=false
 16279 fi
 16282 # Name of the executable.
 16283 as_me=`$as_basename -- "$0" ||
 16284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 16285 	 X"$0" : 'X\(//\)$' \| \
 16286 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 16287 echo X/"$0" |
 16288     sed '/^.*\/\([^/][^/]*\)\/*$/{
 16289 	    s//\1/
 16292 	  /^X\/\(\/\/\)$/{
 16293 	    s//\1/
 16296 	  /^X\/\(\/\).*/{
 16297 	    s//\1/
 16300 	  s/.*/./; q'`
 16302 # CDPATH.
 16303 $as_unset CDPATH
 16307   as_lineno_1=$LINENO
 16308   as_lineno_2=$LINENO
 16309   test "x$as_lineno_1" != "x$as_lineno_2" &&
 16310   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 16312   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 16313   # uniformly replaced by the line number.  The first 'sed' inserts a
 16314   # line-number line after each line using $LINENO; the second 'sed'
 16315   # does the real work.  The second script uses 'N' to pair each
 16316   # line-number line with the line containing $LINENO, and appends
 16317   # trailing '-' during substitution so that $LINENO is not a special
 16318   # case at line end.
 16319   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 16320   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 16321   # E. McMahon (1931-1989) for sed's syntax.  :-)
 16322   sed -n '
 16324     /[$]LINENO/=
 16325   ' <$as_myself |
 16326     sed '
 16327       s/[$]LINENO.*/&-/
 16328       t lineno
 16330       :lineno
 16332       :loop
 16333       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 16334       t loop
 16335       s/-\n.*//
 16336     ' >$as_me.lineno &&
 16337   chmod +x "$as_me.lineno" ||
 16338     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 16339    { (exit 1); exit 1; }; }
 16341   # Don't try to exec as it changes $[0], causing all sort of problems
 16342   # (the dirname of $[0] is not the place where we might find the
 16343   # original and so on.  Autoconf is especially sensitive to this).
 16344   . "./$as_me.lineno"
 16345   # Exit status is that of the last command.
 16346   exit
 16350 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 16351   as_dirname=dirname
 16352 else
 16353   as_dirname=false
 16354 fi
 16356 ECHO_C= ECHO_N= ECHO_T=
 16357 case `echo -n x` in
 16358 -n*)
 16359   case `echo 'x\c'` in
 16360   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 16361   *)   ECHO_C='\c';;
 16362   esac;;
 16363 *)
 16364   ECHO_N='-n';;
 16365 esac
 16367 if expr a : '\(a\)' >/dev/null 2>&1 &&
 16368    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 16369   as_expr=expr
 16370 else
 16371   as_expr=false
 16372 fi
 16374 rm -f conf$$ conf$$.exe conf$$.file
 16375 if test -d conf$$.dir; then
 16376   rm -f conf$$.dir/conf$$.file
 16377 else
 16378   rm -f conf$$.dir
 16379   mkdir conf$$.dir
 16380 fi
 16381 echo >conf$$.file
 16382 if ln -s conf$$.file conf$$ 2>/dev/null; then
 16383   as_ln_s='ln -s'
 16384   # ... but there are two gotchas:
 16385   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 16386   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 16387   # In both cases, we have to default to `cp -p'.
 16388   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 16389     as_ln_s='cp -p'
 16390 elif ln conf$$.file conf$$ 2>/dev/null; then
 16391   as_ln_s=ln
 16392 else
 16393   as_ln_s='cp -p'
 16394 fi
 16395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 16396 rmdir conf$$.dir 2>/dev/null
 16398 if mkdir -p . 2>/dev/null; then
 16399   as_mkdir_p=:
 16400 else
 16401   test -d ./-p && rmdir ./-p
 16402   as_mkdir_p=false
 16403 fi
 16405 if test -x / >/dev/null 2>&1; then
 16406   as_test_x='test -x'
 16407 else
 16408   if ls -dL / >/dev/null 2>&1; then
 16409     as_ls_L_option=L
 16410   else
 16411     as_ls_L_option=
 16412   fi
 16413   as_test_x='
 16414     eval sh -c '\''
 16415       if test -d "$1"; then
 16416         test -d "$1/.";
 16417       else
 16418 	case $1 in
 16419         -*)set "./$1";;
 16420 	esac;
 16421 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 16422 	???[sx]*):;;*)false;;esac;fi
 16423     '\'' sh
 16425 fi
 16426 as_executable_p=$as_test_x
 16428 # Sed expression to map a string onto a valid CPP name.
 16429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 16431 # Sed expression to map a string onto a valid variable name.
 16432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 16435 exec 6>&1
 16437 # Save the log message, to keep $[0] and so on meaningful, and to
 16438 # report actual input values of CONFIG_FILES etc. instead of their
 16439 # values after options handling.
 16440 ac_log="
 16441 This file was extended by $as_me, which was
 16442 generated by GNU Autoconf 2.61.  Invocation command line was
 16444   CONFIG_FILES    = $CONFIG_FILES
 16445   CONFIG_HEADERS  = $CONFIG_HEADERS
 16446   CONFIG_LINKS    = $CONFIG_LINKS
 16447   CONFIG_COMMANDS = $CONFIG_COMMANDS
 16448   $ $0 $@
 16450 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 16453 _ACEOF
 16455 cat >>$CONFIG_STATUS <<_ACEOF
 16456 # Files that config.status was made for.
 16457 config_files="$ac_config_files"
 16458 config_headers="$ac_config_headers"
 16459 config_commands="$ac_config_commands"
 16461 _ACEOF
 16463 cat >>$CONFIG_STATUS <<\_ACEOF
 16464 ac_cs_usage="\
 16465 \`$as_me' instantiates files from templates according to the
 16466 current configuration.
 16468 Usage: $0 [OPTIONS] [FILE]...
 16470   -h, --help       print this help, then exit
 16471   -V, --version    print version number and configuration settings, then exit
 16472   -q, --quiet      do not print progress messages
 16473   -d, --debug      don't remove temporary files
 16474       --recheck    update $as_me by reconfiguring in the same conditions
 16475   --file=FILE[:TEMPLATE]
 16476 		   instantiate the configuration file FILE
 16477   --header=FILE[:TEMPLATE]
 16478 		   instantiate the configuration header FILE
 16480 Configuration files:
 16481 $config_files
 16483 Configuration headers:
 16484 $config_headers
 16486 Configuration commands:
 16487 $config_commands
 16489 Report bugs to <bug-autoconf@gnu.org>."
 16491 _ACEOF
 16492 cat >>$CONFIG_STATUS <<_ACEOF
 16493 ac_cs_version="\\
 16494 config.status
 16495 configured by $0, generated by GNU Autoconf 2.61,
 16496   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 16498 Copyright (C) 2006 Free Software Foundation, Inc.
 16499 This config.status script is free software; the Free Software Foundation
 16500 gives unlimited permission to copy, distribute and modify it."
 16502 ac_pwd='$ac_pwd'
 16503 srcdir='$srcdir'
 16504 INSTALL='$INSTALL'
 16505 _ACEOF
 16507 cat >>$CONFIG_STATUS <<\_ACEOF
 16508 # If no file are specified by the user, then we need to provide default
 16509 # value.  By we need to know if files were specified by the user.
 16510 ac_need_defaults=:
 16511 while test $# != 0
 16512 do
 16513   case $1 in
 16514   --*=*)
 16515     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 16516     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 16517     ac_shift=:
 16518     ;;
 16519   *)
 16520     ac_option=$1
 16521     ac_optarg=$2
 16522     ac_shift=shift
 16523     ;;
 16524   esac
 16526   case $ac_option in
 16527   # Handling of the options.
 16528   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 16529     ac_cs_recheck=: ;;
 16530   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 16531     echo "$ac_cs_version"; exit ;;
 16532   --debug | --debu | --deb | --de | --d | -d )
 16533     debug=: ;;
 16534   --file | --fil | --fi | --f )
 16535     $ac_shift
 16536     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 16537     ac_need_defaults=false;;
 16538   --header | --heade | --head | --hea )
 16539     $ac_shift
 16540     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 16541     ac_need_defaults=false;;
 16542   --he | --h)
 16543     # Conflict between --help and --header
 16544     { echo "$as_me: error: ambiguous option: $1
 16545 Try \`$0 --help' for more information." >&2
 16546    { (exit 1); exit 1; }; };;
 16547   --help | --hel | -h )
 16548     echo "$ac_cs_usage"; exit ;;
 16549   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 16550   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 16551     ac_cs_silent=: ;;
 16553   # This is an error.
 16554   -*) { echo "$as_me: error: unrecognized option: $1
 16555 Try \`$0 --help' for more information." >&2
 16556    { (exit 1); exit 1; }; } ;;
 16558   *) ac_config_targets="$ac_config_targets $1"
 16559      ac_need_defaults=false ;;
 16561   esac
 16562   shift
 16563 done
 16565 ac_configure_extra_args=
 16567 if $ac_cs_silent; then
 16568   exec 6>/dev/null
 16569   ac_configure_extra_args="$ac_configure_extra_args --silent"
 16570 fi
 16572 _ACEOF
 16573 cat >>$CONFIG_STATUS <<_ACEOF
 16574 if \$ac_cs_recheck; then
 16575   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 16576   CONFIG_SHELL=$SHELL
 16577   export CONFIG_SHELL
 16578   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 16579 fi
 16581 _ACEOF
 16582 cat >>$CONFIG_STATUS <<\_ACEOF
 16583 exec 5>>config.log
 16585   echo
 16586   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 16587 ## Running $as_me. ##
 16588 _ASBOX
 16589   echo "$ac_log"
 16590 } >&5
 16592 _ACEOF
 16593 cat >>$CONFIG_STATUS <<_ACEOF
 16595 # INIT-COMMANDS
 16597 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 16600 _ACEOF
 16602 cat >>$CONFIG_STATUS <<\_ACEOF
 16604 # Handling of arguments.
 16605 for ac_config_target in $ac_config_targets
 16606 do
 16607   case $ac_config_target in
 16608     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 16609     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 16610     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 16611     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 16612     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 16613     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
 16614     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 16615     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 16616     "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
 16618   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 16619 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 16620    { (exit 1); exit 1; }; };;
 16621   esac
 16622 done
 16625 # If the user did not use the arguments to specify the items to instantiate,
 16626 # then the envvar interface is used.  Set only those that are not.
 16627 # We use the long form for the default assignment because of an extremely
 16628 # bizarre bug on SunOS 4.1.3.
 16629 if $ac_need_defaults; then
 16630   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 16631   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 16632   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 16633 fi
 16635 # Have a temporary directory for convenience.  Make it in the build tree
 16636 # simply because there is no reason against having it here, and in addition,
 16637 # creating and moving files from /tmp can sometimes cause problems.
 16638 # Hook for its removal unless debugging.
 16639 # Note that there is a small window in which the directory will not be cleaned:
 16640 # after its creation but before its name has been assigned to `$tmp'.
 16641 $debug ||
 16643   tmp=
 16644   trap 'exit_status=$?
 16645   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 16646 ' 0
 16647   trap '{ (exit 1); exit 1; }' 1 2 13 15
 16649 # Create a (secure) tmp directory for tmp files.
 16652   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 16653   test -n "$tmp" && test -d "$tmp"
 16654 }  ||
 16656   tmp=./conf$$-$RANDOM
 16657   (umask 077 && mkdir "$tmp")
 16658 } ||
 16660    echo "$me: cannot create a temporary directory in ." >&2
 16661    { (exit 1); exit 1; }
 16665 # Set up the sed scripts for CONFIG_FILES section.
 16668 # No need to generate the scripts if there are no CONFIG_FILES.
 16669 # This happens for instance when ./config.status config.h
 16670 if test -n "$CONFIG_FILES"; then
 16672 _ACEOF
 16676 ac_delim='%!_!# '
 16677 for ac_last_try in false false false false false :; do
 16678   cat >conf$$subs.sed <<_ACEOF
 16679 SHELL!$SHELL$ac_delim
 16680 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 16681 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 16682 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 16683 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 16684 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 16685 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 16686 exec_prefix!$exec_prefix$ac_delim
 16687 prefix!$prefix$ac_delim
 16688 program_transform_name!$program_transform_name$ac_delim
 16689 bindir!$bindir$ac_delim
 16690 sbindir!$sbindir$ac_delim
 16691 libexecdir!$libexecdir$ac_delim
 16692 datarootdir!$datarootdir$ac_delim
 16693 datadir!$datadir$ac_delim
 16694 sysconfdir!$sysconfdir$ac_delim
 16695 sharedstatedir!$sharedstatedir$ac_delim
 16696 localstatedir!$localstatedir$ac_delim
 16697 includedir!$includedir$ac_delim
 16698 oldincludedir!$oldincludedir$ac_delim
 16699 docdir!$docdir$ac_delim
 16700 infodir!$infodir$ac_delim
 16701 htmldir!$htmldir$ac_delim
 16702 dvidir!$dvidir$ac_delim
 16703 pdfdir!$pdfdir$ac_delim
 16704 psdir!$psdir$ac_delim
 16705 libdir!$libdir$ac_delim
 16706 localedir!$localedir$ac_delim
 16707 mandir!$mandir$ac_delim
 16708 DEFS!$DEFS$ac_delim
 16709 ECHO_C!$ECHO_C$ac_delim
 16710 ECHO_N!$ECHO_N$ac_delim
 16711 ECHO_T!$ECHO_T$ac_delim
 16712 LIBS!$LIBS$ac_delim
 16713 build_alias!$build_alias$ac_delim
 16714 host_alias!$host_alias$ac_delim
 16715 target_alias!$target_alias$ac_delim
 16716 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 16717 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 16718 INSTALL_DATA!$INSTALL_DATA$ac_delim
 16719 CYGPATH_W!$CYGPATH_W$ac_delim
 16720 PACKAGE!$PACKAGE$ac_delim
 16721 VERSION!$VERSION$ac_delim
 16722 ACLOCAL!$ACLOCAL$ac_delim
 16723 AUTOCONF!$AUTOCONF$ac_delim
 16724 AUTOMAKE!$AUTOMAKE$ac_delim
 16725 AUTOHEADER!$AUTOHEADER$ac_delim
 16726 MAKEINFO!$MAKEINFO$ac_delim
 16727 install_sh!$install_sh$ac_delim
 16728 STRIP!$STRIP$ac_delim
 16729 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 16730 mkdir_p!$mkdir_p$ac_delim
 16731 AWK!$AWK$ac_delim
 16732 SET_MAKE!$SET_MAKE$ac_delim
 16733 am__leading_dot!$am__leading_dot$ac_delim
 16734 AMTAR!$AMTAR$ac_delim
 16735 am__tar!$am__tar$ac_delim
 16736 am__untar!$am__untar$ac_delim
 16737 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 16738 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 16739 MAINT!$MAINT$ac_delim
 16740 build!$build$ac_delim
 16741 build_cpu!$build_cpu$ac_delim
 16742 build_vendor!$build_vendor$ac_delim
 16743 build_os!$build_os$ac_delim
 16744 host!$host$ac_delim
 16745 host_cpu!$host_cpu$ac_delim
 16746 host_vendor!$host_vendor$ac_delim
 16747 host_os!$host_os$ac_delim
 16748 ANT!$ANT$ac_delim
 16749 ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
 16750 ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
 16751 ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
 16752 ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
 16753 GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
 16754 GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
 16755 CC!$CC$ac_delim
 16756 CFLAGS!$CFLAGS$ac_delim
 16757 LDFLAGS!$LDFLAGS$ac_delim
 16758 CPPFLAGS!$CPPFLAGS$ac_delim
 16759 ac_ct_CC!$ac_ct_CC$ac_delim
 16760 EXEEXT!$EXEEXT$ac_delim
 16761 OBJEXT!$OBJEXT$ac_delim
 16762 DEPDIR!$DEPDIR$ac_delim
 16763 am__include!$am__include$ac_delim
 16764 am__quote!$am__quote$ac_delim
 16765 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 16766 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 16767 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 16768 CCDEPMODE!$CCDEPMODE$ac_delim
 16769 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 16770 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 16771 CPP!$CPP$ac_delim
 16772 CC!$CC$ac_delim
 16773 CFLAGS!$CFLAGS$ac_delim
 16774 CPPFLAGS!$CPPFLAGS$ac_delim
 16775 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
 16776 _ACEOF
 16778   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 16779     break
 16780   elif $ac_last_try; then
 16781     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 16782 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 16783    { (exit 1); exit 1; }; }
 16784   else
 16785     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 16786   fi
 16787 done
 16789 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 16790 if test -n "$ac_eof"; then
 16791   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 16792   ac_eof=`expr $ac_eof + 1`
 16793 fi
 16795 cat >>$CONFIG_STATUS <<_ACEOF
 16796 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 16797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 16798 _ACEOF
 16799 sed '
 16800 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 16801 s/^/s,@/; s/!/@,|#_!!_#|/
 16802 :n
 16803 t n
 16804 s/'"$ac_delim"'$/,g/; t
 16805 s/$/\\/; p
 16806 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 16807 ' >>$CONFIG_STATUS <conf$$subs.sed
 16808 rm -f conf$$subs.sed
 16809 cat >>$CONFIG_STATUS <<_ACEOF
 16810 CEOF$ac_eof
 16811 _ACEOF
 16814 ac_delim='%!_!# '
 16815 for ac_last_try in false false false false false :; do
 16816   cat >conf$$subs.sed <<_ACEOF
 16817 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
 16818 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
 16819 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
 16820 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
 16821 CPP!$CPP$ac_delim
 16822 CPPFLAGS!$CPPFLAGS$ac_delim
 16823 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
 16824 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
 16825 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
 16826 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
 16827 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
 16828 OBJC!$OBJC$ac_delim
 16829 OBJCFLAGS!$OBJCFLAGS$ac_delim
 16830 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
 16831 SED!$SED$ac_delim
 16832 CCAS!$CCAS$ac_delim
 16833 CCASFLAGS!$CCASFLAGS$ac_delim
 16834 RANLIB!$RANLIB$ac_delim
 16835 GREP!$GREP$ac_delim
 16836 EGREP!$EGREP$ac_delim
 16837 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
 16838 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
 16839 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
 16840 POD2MAN!$POD2MAN$ac_delim
 16841 POD2HTML!$POD2HTML$ac_delim
 16842 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
 16843 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
 16844 SOEXT!$SOEXT$ac_delim
 16845 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
 16846 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
 16847 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
 16848 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
 16849 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
 16850 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
 16851 PKG_CONFIG!$PKG_CONFIG$ac_delim
 16852 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
 16853 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
 16854 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
 16855 GLIB_LIBS!$GLIB_LIBS$ac_delim
 16856 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
 16857 GTK_LIBS!$GTK_LIBS$ac_delim
 16858 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
 16859 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
 16860 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
 16861 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
 16862 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
 16863 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
 16864 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
 16865 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
 16866 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
 16867 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
 16868 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
 16869 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
 16870 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
 16871 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
 16872 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
 16873 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
 16874 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
 16875 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
 16876 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
 16877 SDL_LIBS!$SDL_LIBS$ac_delim
 16878 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
 16879 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
 16880 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
 16881 PULSE_LIBS!$PULSE_LIBS$ac_delim
 16882 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
 16883 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
 16884 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
 16885 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
 16886 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
 16887 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
 16888 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
 16889 ALSA_LIBS!$ALSA_LIBS$ac_delim
 16890 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
 16891 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
 16892 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
 16893 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
 16894 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
 16895 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
 16896 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
 16897 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
 16898 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
 16899 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
 16900 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
 16901 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
 16902 SHCC!$SHCC$ac_delim
 16903 SHLD!$SHLD$ac_delim
 16904 SHOBJCOPY!$SHOBJCOPY$ac_delim
 16905 ARMCC!$ARMCC$ac_delim
 16906 ARMLD!$ARMLD$ac_delim
 16907 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
 16908 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
 16909 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
 16910 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
 16911 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
 16912 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
 16913 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 16914 _ACEOF
 16916   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 16917     break
 16918   elif $ac_last_try; then
 16919     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 16920 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 16921    { (exit 1); exit 1; }; }
 16922   else
 16923     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 16924   fi
 16925 done
 16927 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 16928 if test -n "$ac_eof"; then
 16929   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 16930   ac_eof=`expr $ac_eof + 1`
 16931 fi
 16933 cat >>$CONFIG_STATUS <<_ACEOF
 16934 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 16935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 16936 _ACEOF
 16937 sed '
 16938 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 16939 s/^/s,@/; s/!/@,|#_!!_#|/
 16940 :n
 16941 t n
 16942 s/'"$ac_delim"'$/,g/; t
 16943 s/$/\\/; p
 16944 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 16945 ' >>$CONFIG_STATUS <conf$$subs.sed
 16946 rm -f conf$$subs.sed
 16947 cat >>$CONFIG_STATUS <<_ACEOF
 16948 CEOF$ac_eof
 16949 _ACEOF
 16952 ac_delim='%!_!# '
 16953 for ac_last_try in false false false false false :; do
 16954   cat >conf$$subs.sed <<_ACEOF
 16955 USE_NLS!$USE_NLS$ac_delim
 16956 MSGFMT!$MSGFMT$ac_delim
 16957 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
 16958 GMSGFMT!$GMSGFMT$ac_delim
 16959 XGETTEXT!$XGETTEXT$ac_delim
 16960 CATALOGS!$CATALOGS$ac_delim
 16961 CATOBJEXT!$CATOBJEXT$ac_delim
 16962 DATADIRNAME!$DATADIRNAME$ac_delim
 16963 GMOFILES!$GMOFILES$ac_delim
 16964 INSTOBJEXT!$INSTOBJEXT$ac_delim
 16965 INTLLIBS!$INTLLIBS$ac_delim
 16966 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
 16967 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
 16968 POFILES!$POFILES$ac_delim
 16969 POSUB!$POSUB$ac_delim
 16970 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 16971 LIBOBJS!$LIBOBJS$ac_delim
 16972 LTLIBOBJS!$LTLIBOBJS$ac_delim
 16973 _ACEOF
 16975   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
 16976     break
 16977   elif $ac_last_try; then
 16978     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 16979 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 16980    { (exit 1); exit 1; }; }
 16981   else
 16982     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 16983   fi
 16984 done
 16986 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 16987 if test -n "$ac_eof"; then
 16988   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 16989   ac_eof=`expr $ac_eof + 1`
 16990 fi
 16992 cat >>$CONFIG_STATUS <<_ACEOF
 16993 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
 16994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 16995 _ACEOF
 16996 sed '
 16997 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 16998 s/^/s,@/; s/!/@,|#_!!_#|/
 16999 :n
 17000 t n
 17001 s/'"$ac_delim"'$/,g/; t
 17002 s/$/\\/; p
 17003 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 17004 ' >>$CONFIG_STATUS <conf$$subs.sed
 17005 rm -f conf$$subs.sed
 17006 cat >>$CONFIG_STATUS <<_ACEOF
 17007 :end
 17008 s/|#_!!_#|//g
 17009 CEOF$ac_eof
 17010 _ACEOF
 17013 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 17014 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 17015 # trailing colons and then remove the whole line if VPATH becomes empty
 17016 # (actually we leave an empty line to preserve line numbers).
 17017 if test "x$srcdir" = x.; then
 17018   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 17019 s/:*\$(srcdir):*/:/
 17020 s/:*\${srcdir}:*/:/
 17021 s/:*@srcdir@:*/:/
 17022 s/^\([^=]*=[	 ]*\):*/\1/
 17023 s/:*$//
 17024 s/^[^=]*=[	 ]*$//
 17025 }'
 17026 fi
 17028 cat >>$CONFIG_STATUS <<\_ACEOF
 17029 fi # test -n "$CONFIG_FILES"
 17032 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 17033 do
 17034   case $ac_tag in
 17035   :[FHLC]) ac_mode=$ac_tag; continue;;
 17036   esac
 17037   case $ac_mode$ac_tag in
 17038   :[FHL]*:*);;
 17039   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 17040 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 17041    { (exit 1); exit 1; }; };;
 17042   :[FH]-) ac_tag=-:-;;
 17043   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 17044   esac
 17045   ac_save_IFS=$IFS
 17046   IFS=:
 17047   set x $ac_tag
 17048   IFS=$ac_save_IFS
 17049   shift
 17050   ac_file=$1
 17051   shift
 17053   case $ac_mode in
 17054   :L) ac_source=$1;;
 17055   :[FH])
 17056     ac_file_inputs=
 17057     for ac_f
 17058     do
 17059       case $ac_f in
 17060       -) ac_f="$tmp/stdin";;
 17061       *) # Look for the file first in the build tree, then in the source tree
 17062 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 17063 	 # because $ac_f cannot contain `:'.
 17064 	 test -f "$ac_f" ||
 17065 	   case $ac_f in
 17066 	   [\\/$]*) false;;
 17067 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 17068 	   esac ||
 17069 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 17070 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 17071    { (exit 1); exit 1; }; };;
 17072       esac
 17073       ac_file_inputs="$ac_file_inputs $ac_f"
 17074     done
 17076     # Let's still pretend it is `configure' which instantiates (i.e., don't
 17077     # use $as_me), people would be surprised to read:
 17078     #    /* config.h.  Generated by config.status.  */
 17079     configure_input="Generated from "`IFS=:
 17080 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 17081     if test x"$ac_file" != x-; then
 17082       configure_input="$ac_file.  $configure_input"
 17083       { echo "$as_me:$LINENO: creating $ac_file" >&5
 17084 echo "$as_me: creating $ac_file" >&6;}
 17085     fi
 17087     case $ac_tag in
 17088     *:-:* | *:-) cat >"$tmp/stdin";;
 17089     esac
 17090     ;;
 17091   esac
 17093   ac_dir=`$as_dirname -- "$ac_file" ||
 17094 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17095 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 17096 	 X"$ac_file" : 'X\(//\)$' \| \
 17097 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 17098 echo X"$ac_file" |
 17099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17100 	    s//\1/
 17103 	  /^X\(\/\/\)[^/].*/{
 17104 	    s//\1/
 17107 	  /^X\(\/\/\)$/{
 17108 	    s//\1/
 17111 	  /^X\(\/\).*/{
 17112 	    s//\1/
 17115 	  s/.*/./; q'`
 17116   { as_dir="$ac_dir"
 17117   case $as_dir in #(
 17118   -*) as_dir=./$as_dir;;
 17119   esac
 17120   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17121     as_dirs=
 17122     while :; do
 17123       case $as_dir in #(
 17124       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17125       *) as_qdir=$as_dir;;
 17126       esac
 17127       as_dirs="'$as_qdir' $as_dirs"
 17128       as_dir=`$as_dirname -- "$as_dir" ||
 17129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17130 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17131 	 X"$as_dir" : 'X\(//\)$' \| \
 17132 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17133 echo X"$as_dir" |
 17134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17135 	    s//\1/
 17138 	  /^X\(\/\/\)[^/].*/{
 17139 	    s//\1/
 17142 	  /^X\(\/\/\)$/{
 17143 	    s//\1/
 17146 	  /^X\(\/\).*/{
 17147 	    s//\1/
 17150 	  s/.*/./; q'`
 17151       test -d "$as_dir" && break
 17152     done
 17153     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17154   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17155 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17156    { (exit 1); exit 1; }; }; }
 17157   ac_builddir=.
 17159 case "$ac_dir" in
 17160 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 17161 *)
 17162   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 17163   # A ".." for each directory in $ac_dir_suffix.
 17164   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 17165   case $ac_top_builddir_sub in
 17166   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 17167   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 17168   esac ;;
 17169 esac
 17170 ac_abs_top_builddir=$ac_pwd
 17171 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 17172 # for backward compatibility:
 17173 ac_top_builddir=$ac_top_build_prefix
 17175 case $srcdir in
 17176   .)  # We are building in place.
 17177     ac_srcdir=.
 17178     ac_top_srcdir=$ac_top_builddir_sub
 17179     ac_abs_top_srcdir=$ac_pwd ;;
 17180   [\\/]* | ?:[\\/]* )  # Absolute name.
 17181     ac_srcdir=$srcdir$ac_dir_suffix;
 17182     ac_top_srcdir=$srcdir
 17183     ac_abs_top_srcdir=$srcdir ;;
 17184   *) # Relative name.
 17185     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 17186     ac_top_srcdir=$ac_top_build_prefix$srcdir
 17187     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 17188 esac
 17189 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 17192   case $ac_mode in
 17193   :F)
 17195   # CONFIG_FILE
 17198   case $INSTALL in
 17199   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 17200   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 17201   esac
 17202 _ACEOF
 17204 cat >>$CONFIG_STATUS <<\_ACEOF
 17205 # If the template does not know about datarootdir, expand it.
 17206 # FIXME: This hack should be removed a few years after 2.60.
 17207 ac_datarootdir_hack=; ac_datarootdir_seen=
 17209 case `sed -n '/datarootdir/ {
 17213 /@datadir@/p
 17214 /@docdir@/p
 17215 /@infodir@/p
 17216 /@localedir@/p
 17217 /@mandir@/p
 17218 ' $ac_file_inputs` in
 17219 *datarootdir*) ac_datarootdir_seen=yes;;
 17220 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 17221   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 17222 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 17223 _ACEOF
 17224 cat >>$CONFIG_STATUS <<_ACEOF
 17225   ac_datarootdir_hack='
 17226   s&@datadir@&$datadir&g
 17227   s&@docdir@&$docdir&g
 17228   s&@infodir@&$infodir&g
 17229   s&@localedir@&$localedir&g
 17230   s&@mandir@&$mandir&g
 17231     s&\\\${datarootdir}&$datarootdir&g' ;;
 17232 esac
 17233 _ACEOF
 17235 # Neutralize VPATH when `$srcdir' = `.'.
 17236 # Shell code in configure.ac might set extrasub.
 17237 # FIXME: do we really want to maintain this feature?
 17238 cat >>$CONFIG_STATUS <<_ACEOF
 17239   sed "$ac_vpsub
 17240 $extrasub
 17241 _ACEOF
 17242 cat >>$CONFIG_STATUS <<\_ACEOF
 17243 :t
 17244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 17245 s&@configure_input@&$configure_input&;t t
 17246 s&@top_builddir@&$ac_top_builddir_sub&;t t
 17247 s&@srcdir@&$ac_srcdir&;t t
 17248 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 17249 s&@top_srcdir@&$ac_top_srcdir&;t t
 17250 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 17251 s&@builddir@&$ac_builddir&;t t
 17252 s&@abs_builddir@&$ac_abs_builddir&;t t
 17253 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 17254 s&@INSTALL@&$ac_INSTALL&;t t
 17255 $ac_datarootdir_hack
 17256 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
 17258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 17259   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 17260   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 17261   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 17262 which seems to be undefined.  Please make sure it is defined." >&5
 17263 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 17264 which seems to be undefined.  Please make sure it is defined." >&2;}
 17266   rm -f "$tmp/stdin"
 17267   case $ac_file in
 17268   -) cat "$tmp/out"; rm -f "$tmp/out";;
 17269   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 17270   esac
 17271  ;;
 17272   :H)
 17274   # CONFIG_HEADER
 17276 _ACEOF
 17278 # Transform confdefs.h into a sed script `conftest.defines', that
 17279 # substitutes the proper values into config.h.in to produce config.h.
 17280 rm -f conftest.defines conftest.tail
 17281 # First, append a space to every undef/define line, to ease matching.
 17282 echo 's/$/ /' >conftest.defines
 17283 # Then, protect against being on the right side of a sed subst, or in
 17284 # an unquoted here document, in config.status.  If some macros were
 17285 # called several times there might be several #defines for the same
 17286 # symbol, which is useless.  But do not sort them, since the last
 17287 # AC_DEFINE must be honored.
 17288 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 17289 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 17290 # NAME is the cpp macro being defined, VALUE is the value it is being given.
 17291 # PARAMS is the parameter list in the macro definition--in most cases, it's
 17292 # just an empty string.
 17293 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
 17294 ac_dB='\\)[	 (].*,\\1define\\2'
 17295 ac_dC=' '
 17296 ac_dD=' ,'
 17298 uniq confdefs.h |
 17299   sed -n '
 17300 	t rset
 17301 	:rset
 17302 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
 17303 	t ok
 17305 	:ok
 17306 	s/[\\&,]/\\&/g
 17307 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 17308 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 17309   ' >>conftest.defines
 17311 # Remove the space that was appended to ease matching.
 17312 # Then replace #undef with comments.  This is necessary, for
 17313 # example, in the case of _POSIX_SOURCE, which is predefined and required
 17314 # on some systems where configure will not decide to define it.
 17315 # (The regexp can be short, since the line contains either #define or #undef.)
 17316 echo 's/ $//
 17317 s,^[	 #]*u.*,/* & */,' >>conftest.defines
 17319 # Break up conftest.defines:
 17320 ac_max_sed_lines=50
 17322 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 17323 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 17324 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 17325 # et cetera.
 17326 ac_in='$ac_file_inputs'
 17327 ac_out='"$tmp/out1"'
 17328 ac_nxt='"$tmp/out2"'
 17330 while :
 17331 do
 17332   # Write a here document:
 17333     cat >>$CONFIG_STATUS <<_ACEOF
 17334     # First, check the format of the line:
 17335     cat >"\$tmp/defines.sed" <<\\CEOF
 17336 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
 17337 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
 17339 :def
 17340 _ACEOF
 17341   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 17342   echo 'CEOF
 17343     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 17344   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 17345   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 17346   grep . conftest.tail >/dev/null || break
 17347   rm -f conftest.defines
 17348   mv conftest.tail conftest.defines
 17349 done
 17350 rm -f conftest.defines conftest.tail
 17352 echo "ac_result=$ac_in" >>$CONFIG_STATUS
 17353 cat >>$CONFIG_STATUS <<\_ACEOF
 17354   if test x"$ac_file" != x-; then
 17355     echo "/* $configure_input  */" >"$tmp/config.h"
 17356     cat "$ac_result" >>"$tmp/config.h"
 17357     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 17358       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 17359 echo "$as_me: $ac_file is unchanged" >&6;}
 17360     else
 17361       rm -f $ac_file
 17362       mv "$tmp/config.h" $ac_file
 17363     fi
 17364   else
 17365     echo "/* $configure_input  */"
 17366     cat "$ac_result"
 17367   fi
 17368   rm -f "$tmp/out12"
 17369 # Compute $ac_file's index in $config_headers.
 17370 _am_stamp_count=1
 17371 for _am_header in $config_headers :; do
 17372   case $_am_header in
 17373     $ac_file | $ac_file:* )
 17374       break ;;
 17375     * )
 17376       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 17377   esac
 17378 done
 17379 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 17380 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17381 	 X$ac_file : 'X\(//\)[^/]' \| \
 17382 	 X$ac_file : 'X\(//\)$' \| \
 17383 	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 17384 echo X$ac_file |
 17385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17386 	    s//\1/
 17389 	  /^X\(\/\/\)[^/].*/{
 17390 	    s//\1/
 17393 	  /^X\(\/\/\)$/{
 17394 	    s//\1/
 17397 	  /^X\(\/\).*/{
 17398 	    s//\1/
 17401 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 17402  ;;
 17404   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 17405 echo "$as_me: executing $ac_file commands" >&6;}
 17406  ;;
 17407   esac
 17410   case $ac_file$ac_mode in
 17411     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 17412   # Strip MF so we end up with the name of the file.
 17413   mf=`echo "$mf" | sed -e 's/:.*$//'`
 17414   # Check whether this is an Automake generated Makefile or not.
 17415   # We used to match only the files named `Makefile.in', but
 17416   # some people rename them; so instead we look at the file content.
 17417   # Grep'ing the first line is not enough: some people post-process
 17418   # each Makefile.in and add a new line on top of each file to say so.
 17419   # So let's grep whole file.
 17420   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 17421     dirpart=`$as_dirname -- "$mf" ||
 17422 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17423 	 X"$mf" : 'X\(//\)[^/]' \| \
 17424 	 X"$mf" : 'X\(//\)$' \| \
 17425 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 17426 echo X"$mf" |
 17427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17428 	    s//\1/
 17431 	  /^X\(\/\/\)[^/].*/{
 17432 	    s//\1/
 17435 	  /^X\(\/\/\)$/{
 17436 	    s//\1/
 17439 	  /^X\(\/\).*/{
 17440 	    s//\1/
 17443 	  s/.*/./; q'`
 17444   else
 17445     continue
 17446   fi
 17447   # Extract the definition of DEPDIR, am__include, and am__quote
 17448   # from the Makefile without running `make'.
 17449   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 17450   test -z "$DEPDIR" && continue
 17451   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 17452   test -z "am__include" && continue
 17453   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 17454   # When using ansi2knr, U may be empty or an underscore; expand it
 17455   U=`sed -n 's/^U = //p' < "$mf"`
 17456   # Find all dependency output files, they are included files with
 17457   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 17458   # simplest approach to changing $(DEPDIR) to its actual value in the
 17459   # expansion.
 17460   for file in `sed -n "
 17461     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 17462        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 17463     # Make sure the directory exists.
 17464     test -f "$dirpart/$file" && continue
 17465     fdir=`$as_dirname -- "$file" ||
 17466 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17467 	 X"$file" : 'X\(//\)[^/]' \| \
 17468 	 X"$file" : 'X\(//\)$' \| \
 17469 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 17470 echo X"$file" |
 17471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17472 	    s//\1/
 17475 	  /^X\(\/\/\)[^/].*/{
 17476 	    s//\1/
 17479 	  /^X\(\/\/\)$/{
 17480 	    s//\1/
 17483 	  /^X\(\/\).*/{
 17484 	    s//\1/
 17487 	  s/.*/./; q'`
 17488     { as_dir=$dirpart/$fdir
 17489   case $as_dir in #(
 17490   -*) as_dir=./$as_dir;;
 17491   esac
 17492   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17493     as_dirs=
 17494     while :; do
 17495       case $as_dir in #(
 17496       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17497       *) as_qdir=$as_dir;;
 17498       esac
 17499       as_dirs="'$as_qdir' $as_dirs"
 17500       as_dir=`$as_dirname -- "$as_dir" ||
 17501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17502 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17503 	 X"$as_dir" : 'X\(//\)$' \| \
 17504 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17505 echo X"$as_dir" |
 17506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17507 	    s//\1/
 17510 	  /^X\(\/\/\)[^/].*/{
 17511 	    s//\1/
 17514 	  /^X\(\/\/\)$/{
 17515 	    s//\1/
 17518 	  /^X\(\/\).*/{
 17519 	    s//\1/
 17522 	  s/.*/./; q'`
 17523       test -d "$as_dir" && break
 17524     done
 17525     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17526   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17527 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17528    { (exit 1); exit 1; }; }; }
 17529     # echo "creating $dirpart/$file"
 17530     echo '# dummy' > "$dirpart/$file"
 17531   done
 17532 done
 17533  ;;
 17534     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 17535         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 17536       esac ;;
 17538   esac
 17539 done # for ac_tag
 17542 { (exit 0); exit 0; }
 17543 _ACEOF
 17544 chmod +x $CONFIG_STATUS
 17545 ac_clean_files=$ac_clean_files_save
 17548 # configure is writing to config.log, and then calls config.status.
 17549 # config.status does its own redirection, appending to config.log.
 17550 # Unfortunately, on DOS this fails, as config.log is still kept open
 17551 # by configure, so config.status won't be able to write to it; its
 17552 # output is simply discarded.  So we exec the FD to /dev/null,
 17553 # effectively closing config.log, so it can be properly (re)opened and
 17554 # appended to by config.status.  When coming back to configure, we
 17555 # need to make the FD available again.
 17556 if test "$no_create" != yes; then
 17557   ac_cs_success=:
 17558   ac_config_status_args=
 17559   test "$silent" = yes &&
 17560     ac_config_status_args="$ac_config_status_args --quiet"
 17561   exec 5>/dev/null
 17562   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 17563   exec 5>>config.log
 17564   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 17565   # would make configure fail if this is the last instruction.
 17566   $ac_cs_success || { (exit 1); exit 1; }
 17567 fi
 17569 { as_dir=test/sh4
 17570   case $as_dir in #(
 17571   -*) as_dir=./$as_dir;;
 17572   esac
 17573   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17574     as_dirs=
 17575     while :; do
 17576       case $as_dir in #(
 17577       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17578       *) as_qdir=$as_dir;;
 17579       esac
 17580       as_dirs="'$as_qdir' $as_dirs"
 17581       as_dir=`$as_dirname -- "$as_dir" ||
 17582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17583 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17584 	 X"$as_dir" : 'X\(//\)$' \| \
 17585 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17586 echo X"$as_dir" |
 17587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17588 	    s//\1/
 17591 	  /^X\(\/\/\)[^/].*/{
 17592 	    s//\1/
 17595 	  /^X\(\/\/\)$/{
 17596 	    s//\1/
 17599 	  /^X\(\/\).*/{
 17600 	    s//\1/
 17603 	  s/.*/./; q'`
 17604       test -d "$as_dir" && break
 17605     done
 17606     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17607   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17608 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17609    { (exit 1); exit 1; }; }; }
 17612 echo
 17613 echo "Configuration complete"
 17614 echo
 17616 if test "x$HAVE_GTK" = x; then
 17617   if test "x$HAVE_COCOA" = x; then
 17618      echo "  User interface: none"
 17619   else
 17620      echo "  User interface: Cocoa"
 17621   fi
 17622 else
 17623   echo "  User interface: GTK"
 17624 fi
 17626 if test "x$SH4_TRANSLATOR" = "x"; then
 17627   echo "  SH4 translator: None (emulation core only)"
 17628 else
 17629   echo "  SH4 translator: $SH4_TRANSLATOR"
 17630 fi
 17632 if test "x$VIDEO_DRIVERS" = "x"; then
 17633    echo "  Video drivers: none (no supported GL found)"
 17634 else
 17635    echo "  Video drivers: $VIDEO_DRIVERS"
 17636 fi
 17638 if test "x$AUDIO_DRIVERS" = "x"; then
 17639    echo "  Audio drivers: none (no supported output devices found)"
 17640 else
 17641    echo "  Audio drivers: $AUDIO_DRIVERS"
 17642 fi
 17644 if test "x$INPUT_DRIVERS" = "x"; then
 17645    echo "  Input drivers: none (no supported input devices found)"
 17646 else
 17647    echo "  Input drivers: $INPUT_DRIVERS"
 17648 fi
 17650 if test "x$CDROM_DRIVER" = "x"; then
 17651    echo "  CD-ROM driver: none (no supported cd-rom devices found)"
 17652 else
 17653    echo "  CD-ROM driver:  $CDROM_DRIVER"
 17654 fi
.