Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1287:dac8f363f1fe
prev1284:0db0a5e72698
next1293:36123decfb24
author nkeynes
date Wed Jul 04 12:01:31 2012 +1000 (11 years ago)
permissions -rwxr-xr-x
last change Remove use of extended regexes to make porting easier
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 CC
   686 CFLAGS
   687 LDFLAGS
   688 CPPFLAGS
   689 ac_ct_CC
   690 EXEEXT
   691 OBJEXT
   692 DEPDIR
   693 am__include
   694 am__quote
   695 AMDEP_TRUE
   696 AMDEP_FALSE
   697 AMDEPBACKSLASH
   698 CCDEPMODE
   699 am__fastdepCC_TRUE
   700 am__fastdepCC_FALSE
   701 CPP
   702 CC
   703 CFLAGS
   704 CPPFLAGS
   705 CC_FOR_BUILD
   706 ac_ct_CC_FOR_BUILD
   707 CC_FOR_BUILDDEPMODE
   708 am__fastdepCC_FOR_BUILD_TRUE
   709 am__fastdepCC_FOR_BUILD_FALSE
   710 CPP
   711 CPPFLAGS
   712 CPP_FOR_BUILD
   713 BUILD_EXEEXT
   714 BUILD_OBJEXT
   715 CFLAGS_FOR_BUILD
   716 CPPFLAGS_FOR_BUILD
   717 OBJC
   718 OBJCFLAGS
   719 ac_ct_OBJC
   720 SED
   721 CCAS
   722 CCASFLAGS
   723 RANLIB
   724 GREP
   725 EGREP
   726 OBJCDEPMODE
   727 am__fastdepOBJC_TRUE
   728 am__fastdepOBJC_FALSE
   729 POD2MAN
   730 POD2HTML
   731 ANT
   732 ANDROID_ABI
   733 ANDROID_SDK_HOME
   734 ANDROID_NDK_HOME
   735 ANDROID_SDK_VERSION
   736 ANDROID_NDK_VERSION
   737 ANDROID_GDBSERVER
   738 GUI_ANDROID_TRUE
   739 GUI_ANDROID_FALSE
   740 GUI_COCOA_TRUE
   741 GUI_COCOA_FALSE
   742 SOEXT
   743 PLUGINCFLAGS
   744 PLUGINLDFLAGS
   745 LXDREAMLDFLAGS
   746 BUILD_PLUGINS_TRUE
   747 BUILD_PLUGINS_FALSE
   748 LXDREAMCPPFLAGS
   749 PKG_CONFIG
   750 LIBPNG_CFLAGS
   751 LIBPNG_LIBS
   752 GLIB_CFLAGS
   753 GLIB_LIBS
   754 GTK_CFLAGS
   755 GTK_LIBS
   756 GLIB_FOR_BUILD_CFLAGS
   757 GLIB_FOR_BUILD_LIBS
   758 GUI_GTK_TRUE
   759 GUI_GTK_FALSE
   760 LIBISOFS_CFLAGS
   761 LIBISOFS_LIBS
   762 LIBGL_CFLAGS
   763 LIBGL_LIBS
   764 VIDEO_OSMESA_TRUE
   765 VIDEO_OSMESA_FALSE
   766 VIDEO_GLX_TRUE
   767 VIDEO_GLX_FALSE
   768 VIDEO_NSGL_TRUE
   769 VIDEO_NSGL_FALSE
   770 VIDEO_EGL_TRUE
   771 VIDEO_EGL_FALSE
   772 BUILD_SH4X86_TRUE
   773 BUILD_SH4X86_FALSE
   774 AUDIO_OSX_TRUE
   775 AUDIO_OSX_FALSE
   776 SDL_CFLAGS
   777 SDL_LIBS
   778 AUDIO_SDL_TRUE
   779 AUDIO_SDL_FALSE
   780 PULSE_CFLAGS
   781 PULSE_LIBS
   782 AUDIO_PULSE_TRUE
   783 AUDIO_PULSE_FALSE
   784 ESOUND_CFLAGS
   785 ESOUND_LIBS
   786 AUDIO_ESOUND_TRUE
   787 AUDIO_ESOUND_FALSE
   788 ALSA_CFLAGS
   789 ALSA_LIBS
   790 AUDIO_ALSA_TRUE
   791 AUDIO_ALSA_FALSE
   792 CDROM_LINUX_TRUE
   793 CDROM_LINUX_FALSE
   794 CDROM_OSX_TRUE
   795 CDROM_OSX_FALSE
   796 CDROM_NONE_TRUE
   797 CDROM_NONE_FALSE
   798 JOY_LINUX_TRUE
   799 JOY_LINUX_FALSE
   800 INPUT_LIRC_TRUE
   801 INPUT_LIRC_FALSE
   802 SHCC
   803 SHLD
   804 SHOBJCOPY
   805 ARMCC
   806 ARMLD
   807 ARMOBJCOPY
   808 BUILD_SYSTEST_TRUE
   809 BUILD_SYSTEST_FALSE
   810 BUILD_ARMTEST_TRUE
   811 BUILD_ARMTEST_FALSE
   812 LXDREAM_LIBS
   813 GETTEXT_PACKAGE
   814 USE_NLS
   815 MSGFMT
   816 MSGFMT_OPTS
   817 GMSGFMT
   818 XGETTEXT
   819 CATALOGS
   820 CATOBJEXT
   821 DATADIRNAME
   822 GMOFILES
   823 INSTOBJEXT
   824 INTLLIBS
   825 PO_IN_DATADIR_TRUE
   826 PO_IN_DATADIR_FALSE
   827 POFILES
   828 POSUB
   829 MKINSTALLDIRS
   830 LIBOBJS
   831 LTLIBOBJS'
   832 ac_subst_files=''
   833       ac_precious_vars='build_alias
   834 host_alias
   835 target_alias
   836 CC
   837 CFLAGS
   838 LDFLAGS
   839 LIBS
   840 CPPFLAGS
   841 CPP
   842 CC
   843 CFLAGS
   844 CPPFLAGS
   845 CPP
   846 CPPFLAGS
   847 OBJC
   848 OBJCFLAGS
   849 CCAS
   850 CCASFLAGS
   851 PKG_CONFIG
   852 LIBPNG_CFLAGS
   853 LIBPNG_LIBS
   854 GLIB_CFLAGS
   855 GLIB_LIBS
   856 GTK_CFLAGS
   857 GTK_LIBS
   858 GLIB_FOR_BUILD_CFLAGS
   859 GLIB_FOR_BUILD_LIBS
   860 LIBISOFS_CFLAGS
   861 LIBISOFS_LIBS
   862 LIBGL_CFLAGS
   863 LIBGL_LIBS
   864 SDL_CFLAGS
   865 SDL_LIBS
   866 PULSE_CFLAGS
   867 PULSE_LIBS
   868 ESOUND_CFLAGS
   869 ESOUND_LIBS
   870 ALSA_CFLAGS
   871 ALSA_LIBS'
   874 # Initialize some variables set by options.
   875 ac_init_help=
   876 ac_init_version=false
   877 # The variables have the same names as the options, with
   878 # dashes changed to underlines.
   879 cache_file=/dev/null
   880 exec_prefix=NONE
   881 no_create=
   882 no_recursion=
   883 prefix=NONE
   884 program_prefix=NONE
   885 program_suffix=NONE
   886 program_transform_name=s,x,x,
   887 silent=
   888 site=
   889 srcdir=
   890 verbose=
   891 x_includes=NONE
   892 x_libraries=NONE
   894 # Installation directory options.
   895 # These are left unexpanded so users can "make install exec_prefix=/foo"
   896 # and all the variables that are supposed to be based on exec_prefix
   897 # by default will actually change.
   898 # Use braces instead of parens because sh, perl, etc. also accept them.
   899 # (The list follows the same order as the GNU Coding Standards.)
   900 bindir='${exec_prefix}/bin'
   901 sbindir='${exec_prefix}/sbin'
   902 libexecdir='${exec_prefix}/libexec'
   903 datarootdir='${prefix}/share'
   904 datadir='${datarootdir}'
   905 sysconfdir='${prefix}/etc'
   906 sharedstatedir='${prefix}/com'
   907 localstatedir='${prefix}/var'
   908 includedir='${prefix}/include'
   909 oldincludedir='/usr/include'
   910 docdir='${datarootdir}/doc/${PACKAGE}'
   911 infodir='${datarootdir}/info'
   912 htmldir='${docdir}'
   913 dvidir='${docdir}'
   914 pdfdir='${docdir}'
   915 psdir='${docdir}'
   916 libdir='${exec_prefix}/lib'
   917 localedir='${datarootdir}/locale'
   918 mandir='${datarootdir}/man'
   920 ac_prev=
   921 ac_dashdash=
   922 for ac_option
   923 do
   924   # If the previous option needs an argument, assign it.
   925   if test -n "$ac_prev"; then
   926     eval $ac_prev=\$ac_option
   927     ac_prev=
   928     continue
   929   fi
   931   case $ac_option in
   932   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   933   *)	ac_optarg=yes ;;
   934   esac
   936   # Accept the important Cygnus configure options, so we can diagnose typos.
   938   case $ac_dashdash$ac_option in
   939   --)
   940     ac_dashdash=yes ;;
   942   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   943     ac_prev=bindir ;;
   944   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   945     bindir=$ac_optarg ;;
   947   -build | --build | --buil | --bui | --bu)
   948     ac_prev=build_alias ;;
   949   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   950     build_alias=$ac_optarg ;;
   952   -cache-file | --cache-file | --cache-fil | --cache-fi \
   953   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   954     ac_prev=cache_file ;;
   955   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   956   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   957     cache_file=$ac_optarg ;;
   959   --config-cache | -C)
   960     cache_file=config.cache ;;
   962   -datadir | --datadir | --datadi | --datad)
   963     ac_prev=datadir ;;
   964   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   965     datadir=$ac_optarg ;;
   967   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   968   | --dataroo | --dataro | --datar)
   969     ac_prev=datarootdir ;;
   970   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   971   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   972     datarootdir=$ac_optarg ;;
   974   -disable-* | --disable-*)
   975     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   976     # Reject names that are not valid shell variable names.
   977     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   978       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   979    { (exit 1); exit 1; }; }
   980     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   981     eval enable_$ac_feature=no ;;
   983   -docdir | --docdir | --docdi | --doc | --do)
   984     ac_prev=docdir ;;
   985   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   986     docdir=$ac_optarg ;;
   988   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   989     ac_prev=dvidir ;;
   990   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   991     dvidir=$ac_optarg ;;
   993   -enable-* | --enable-*)
   994     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   995     # Reject names that are not valid shell variable names.
   996     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   997       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   998    { (exit 1); exit 1; }; }
   999     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  1000     eval enable_$ac_feature=\$ac_optarg ;;
  1002   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1003   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1004   | --exec | --exe | --ex)
  1005     ac_prev=exec_prefix ;;
  1006   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1007   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1008   | --exec=* | --exe=* | --ex=*)
  1009     exec_prefix=$ac_optarg ;;
  1011   -gas | --gas | --ga | --g)
  1012     # Obsolete; use --with-gas.
  1013     with_gas=yes ;;
  1015   -help | --help | --hel | --he | -h)
  1016     ac_init_help=long ;;
  1017   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1018     ac_init_help=recursive ;;
  1019   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1020     ac_init_help=short ;;
  1022   -host | --host | --hos | --ho)
  1023     ac_prev=host_alias ;;
  1024   -host=* | --host=* | --hos=* | --ho=*)
  1025     host_alias=$ac_optarg ;;
  1027   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1028     ac_prev=htmldir ;;
  1029   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1030   | --ht=*)
  1031     htmldir=$ac_optarg ;;
  1033   -includedir | --includedir | --includedi | --included | --include \
  1034   | --includ | --inclu | --incl | --inc)
  1035     ac_prev=includedir ;;
  1036   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1037   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1038     includedir=$ac_optarg ;;
  1040   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1041     ac_prev=infodir ;;
  1042   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1043     infodir=$ac_optarg ;;
  1045   -libdir | --libdir | --libdi | --libd)
  1046     ac_prev=libdir ;;
  1047   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1048     libdir=$ac_optarg ;;
  1050   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1051   | --libexe | --libex | --libe)
  1052     ac_prev=libexecdir ;;
  1053   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1054   | --libexe=* | --libex=* | --libe=*)
  1055     libexecdir=$ac_optarg ;;
  1057   -localedir | --localedir | --localedi | --localed | --locale)
  1058     ac_prev=localedir ;;
  1059   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1060     localedir=$ac_optarg ;;
  1062   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1063   | --localstate | --localstat | --localsta | --localst | --locals)
  1064     ac_prev=localstatedir ;;
  1065   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1066   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1067     localstatedir=$ac_optarg ;;
  1069   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1070     ac_prev=mandir ;;
  1071   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1072     mandir=$ac_optarg ;;
  1074   -nfp | --nfp | --nf)
  1075     # Obsolete; use --without-fp.
  1076     with_fp=no ;;
  1078   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1079   | --no-cr | --no-c | -n)
  1080     no_create=yes ;;
  1082   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1083   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1084     no_recursion=yes ;;
  1086   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1087   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1088   | --oldin | --oldi | --old | --ol | --o)
  1089     ac_prev=oldincludedir ;;
  1090   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1091   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1092   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1093     oldincludedir=$ac_optarg ;;
  1095   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1096     ac_prev=prefix ;;
  1097   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1098     prefix=$ac_optarg ;;
  1100   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1101   | --program-pre | --program-pr | --program-p)
  1102     ac_prev=program_prefix ;;
  1103   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1104   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1105     program_prefix=$ac_optarg ;;
  1107   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1108   | --program-suf | --program-su | --program-s)
  1109     ac_prev=program_suffix ;;
  1110   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1111   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1112     program_suffix=$ac_optarg ;;
  1114   -program-transform-name | --program-transform-name \
  1115   | --program-transform-nam | --program-transform-na \
  1116   | --program-transform-n | --program-transform- \
  1117   | --program-transform | --program-transfor \
  1118   | --program-transfo | --program-transf \
  1119   | --program-trans | --program-tran \
  1120   | --progr-tra | --program-tr | --program-t)
  1121     ac_prev=program_transform_name ;;
  1122   -program-transform-name=* | --program-transform-name=* \
  1123   | --program-transform-nam=* | --program-transform-na=* \
  1124   | --program-transform-n=* | --program-transform-=* \
  1125   | --program-transform=* | --program-transfor=* \
  1126   | --program-transfo=* | --program-transf=* \
  1127   | --program-trans=* | --program-tran=* \
  1128   | --progr-tra=* | --program-tr=* | --program-t=*)
  1129     program_transform_name=$ac_optarg ;;
  1131   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1132     ac_prev=pdfdir ;;
  1133   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1134     pdfdir=$ac_optarg ;;
  1136   -psdir | --psdir | --psdi | --psd | --ps)
  1137     ac_prev=psdir ;;
  1138   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1139     psdir=$ac_optarg ;;
  1141   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1142   | -silent | --silent | --silen | --sile | --sil)
  1143     silent=yes ;;
  1145   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1146     ac_prev=sbindir ;;
  1147   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1148   | --sbi=* | --sb=*)
  1149     sbindir=$ac_optarg ;;
  1151   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1152   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1153   | --sharedst | --shareds | --shared | --share | --shar \
  1154   | --sha | --sh)
  1155     ac_prev=sharedstatedir ;;
  1156   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1157   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1158   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1159   | --sha=* | --sh=*)
  1160     sharedstatedir=$ac_optarg ;;
  1162   -site | --site | --sit)
  1163     ac_prev=site ;;
  1164   -site=* | --site=* | --sit=*)
  1165     site=$ac_optarg ;;
  1167   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1168     ac_prev=srcdir ;;
  1169   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1170     srcdir=$ac_optarg ;;
  1172   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1173   | --syscon | --sysco | --sysc | --sys | --sy)
  1174     ac_prev=sysconfdir ;;
  1175   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1176   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1177     sysconfdir=$ac_optarg ;;
  1179   -target | --target | --targe | --targ | --tar | --ta | --t)
  1180     ac_prev=target_alias ;;
  1181   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1182     target_alias=$ac_optarg ;;
  1184   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1185     verbose=yes ;;
  1187   -version | --version | --versio | --versi | --vers | -V)
  1188     ac_init_version=: ;;
  1190   -with-* | --with-*)
  1191     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1192     # Reject names that are not valid shell variable names.
  1193     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1194       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1195    { (exit 1); exit 1; }; }
  1196     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1197     eval with_$ac_package=\$ac_optarg ;;
  1199   -without-* | --without-*)
  1200     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1201     # Reject names that are not valid shell variable names.
  1202     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1203       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1204    { (exit 1); exit 1; }; }
  1205     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1206     eval with_$ac_package=no ;;
  1208   --x)
  1209     # Obsolete; use --with-x.
  1210     with_x=yes ;;
  1212   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1213   | --x-incl | --x-inc | --x-in | --x-i)
  1214     ac_prev=x_includes ;;
  1215   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1216   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1217     x_includes=$ac_optarg ;;
  1219   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1220   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1221     ac_prev=x_libraries ;;
  1222   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1223   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1224     x_libraries=$ac_optarg ;;
  1226   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1227 Try \`$0 --help' for more information." >&2
  1228    { (exit 1); exit 1; }; }
  1229     ;;
  1231   *=*)
  1232     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1233     # Reject names that are not valid shell variable names.
  1234     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1235       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1236    { (exit 1); exit 1; }; }
  1237     eval $ac_envvar=\$ac_optarg
  1238     export $ac_envvar ;;
  1240   *)
  1241     # FIXME: should be removed in autoconf 3.0.
  1242     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1243     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1244       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1245     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1246     ;;
  1248   esac
  1249 done
  1251 if test -n "$ac_prev"; then
  1252   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1253   { echo "$as_me: error: missing argument to $ac_option" >&2
  1254    { (exit 1); exit 1; }; }
  1255 fi
  1257 # Be sure to have absolute directory names.
  1258 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1259 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1260 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1261 		libdir localedir mandir
  1262 do
  1263   eval ac_val=\$$ac_var
  1264   case $ac_val in
  1265     [\\/$]* | ?:[\\/]* )  continue;;
  1266     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1267   esac
  1268   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1269    { (exit 1); exit 1; }; }
  1270 done
  1272 # There might be people who depend on the old broken behavior: `$host'
  1273 # used to hold the argument of --host etc.
  1274 # FIXME: To remove some day.
  1275 build=$build_alias
  1276 host=$host_alias
  1277 target=$target_alias
  1279 # FIXME: To remove some day.
  1280 if test "x$host_alias" != x; then
  1281   if test "x$build_alias" = x; then
  1282     cross_compiling=maybe
  1283     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1284     If a cross compiler is detected then cross compile mode will be used." >&2
  1285   elif test "x$build_alias" != "x$host_alias"; then
  1286     cross_compiling=yes
  1287   fi
  1288 fi
  1290 ac_tool_prefix=
  1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1293 test "$silent" = yes && exec 6>/dev/null
  1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1297 ac_ls_di=`ls -di .` &&
  1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1299   { echo "$as_me: error: Working directory cannot be determined" >&2
  1300    { (exit 1); exit 1; }; }
  1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1302   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1303    { (exit 1); exit 1; }; }
  1306 # Find the source files, if location was not specified.
  1307 if test -z "$srcdir"; then
  1308   ac_srcdir_defaulted=yes
  1309   # Try the directory containing this script, then the parent directory.
  1310   ac_confdir=`$as_dirname -- "$0" ||
  1311 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1312 	 X"$0" : 'X\(//\)[^/]' \| \
  1313 	 X"$0" : 'X\(//\)$' \| \
  1314 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1315 echo X"$0" |
  1316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1317 	    s//\1/
  1320 	  /^X\(\/\/\)[^/].*/{
  1321 	    s//\1/
  1324 	  /^X\(\/\/\)$/{
  1325 	    s//\1/
  1328 	  /^X\(\/\).*/{
  1329 	    s//\1/
  1332 	  s/.*/./; q'`
  1333   srcdir=$ac_confdir
  1334   if test ! -r "$srcdir/$ac_unique_file"; then
  1335     srcdir=..
  1336   fi
  1337 else
  1338   ac_srcdir_defaulted=no
  1339 fi
  1340 if test ! -r "$srcdir/$ac_unique_file"; then
  1341   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1342   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1343    { (exit 1); exit 1; }; }
  1344 fi
  1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1346 ac_abs_confdir=`(
  1347 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1348    { (exit 1); exit 1; }; }
  1349 	pwd)`
  1350 # When building in place, set srcdir=.
  1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1352   srcdir=.
  1353 fi
  1354 # Remove unnecessary trailing slashes from srcdir.
  1355 # Double slashes in file names in object file debugging info
  1356 # mess up M-x gdb in Emacs.
  1357 case $srcdir in
  1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1359 esac
  1360 for ac_var in $ac_precious_vars; do
  1361   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1362   eval ac_env_${ac_var}_value=\$${ac_var}
  1363   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1364   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1365 done
  1368 # Report the --help message.
  1370 if test "$ac_init_help" = "long"; then
  1371   # Omit some internal or obsolete options to make the list less imposing.
  1372   # This message is too long to be a string in the A/UX 3.1 sh.
  1373   cat <<_ACEOF
  1374 \`configure' configures this package to adapt to many kinds of systems.
  1376 Usage: $0 [OPTION]... [VAR=VALUE]...
  1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1379 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1381 Defaults for the options are specified in brackets.
  1383 Configuration:
  1384   -h, --help              display this help and exit
  1385       --help=short        display options specific to this package
  1386       --help=recursive    display the short help of all the included packages
  1387   -V, --version           display version information and exit
  1388   -q, --quiet, --silent   do not print \`checking...' messages
  1389       --cache-file=FILE   cache test results in FILE [disabled]
  1390   -C, --config-cache      alias for \`--cache-file=config.cache'
  1391   -n, --no-create         do not create output files
  1392       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1394 Installation directories:
  1395   --prefix=PREFIX         install architecture-independent files in PREFIX
  1396 			  [$ac_default_prefix]
  1397   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1398 			  [PREFIX]
  1400 By default, \`make install' will install all the files in
  1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1403 for instance \`--prefix=\$HOME'.
  1405 For better control, use the options below.
  1407 Fine tuning of the installation directories:
  1408   --bindir=DIR           user executables [EPREFIX/bin]
  1409   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1410   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1411   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1412   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1413   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1414   --libdir=DIR           object code libraries [EPREFIX/lib]
  1415   --includedir=DIR       C header files [PREFIX/include]
  1416   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1417   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1418   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1419   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1420   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1421   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1422   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1423   --htmldir=DIR          html documentation [DOCDIR]
  1424   --dvidir=DIR           dvi documentation [DOCDIR]
  1425   --pdfdir=DIR           pdf documentation [DOCDIR]
  1426   --psdir=DIR            ps documentation [DOCDIR]
  1427 _ACEOF
  1429   cat <<\_ACEOF
  1431 Program names:
  1432   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1433   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1434   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1436 System types:
  1437   --build=BUILD     configure for building on BUILD [guessed]
  1438   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1439 _ACEOF
  1440 fi
  1442 if test -n "$ac_init_help"; then
  1444   cat <<\_ACEOF
  1446 Optional Features:
  1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1449   --enable-maintainer-mode  enable make rules and dependencies not useful
  1450 			  (and sometimes confusing) to the casual installer
  1451   --disable-dependency-tracking  speeds up one-time build
  1452   --enable-dependency-tracking   do not reject slow dependency extractors
  1453   --enable-strict-warn    Enable strict compilation warnings
  1454   --disable-translator    Disable the SH4 translator (Enabled by default)
  1455   --disable-optimized     Disable compile-time optimizations (Enabled by
  1456                           default)
  1457   --enable-shared         Build drivers as shared libraries (Enabled if
  1458                           available)
  1459   --enable-profiled       Enable profiling build
  1460   --enable-trace          Enable generation of IO traces (warning: hurts
  1461                           performance)
  1462   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1463                           performance)
  1464   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1466 Optional Packages:
  1467   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1468   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1469   --with-osmesa           Build with the osmesa GL library (software
  1470                           rendering)
  1471   --with-gtk              Build with the GTK UI. Default on X11 systems
  1472   --with-esd              Build with support for the ESounD audio system
  1473   --with-pulse            Build with support for the PulseAudio audio system
  1474   --with-sdl              Build with support for SDL audio
  1475   --with-sysroot=SYSROOT  Build using an alternate sysroot
  1476   --with-android=SDK      Specify the location of the Android SDK
  1477   --with-android-ndk=NDK  Specify the location of the Android NDK
  1478   --with-android-version  Specify target Android SDK version
  1479   --with-android-version  Specify target Android NDK version
  1480   --with-android-abi      Specify target Android ABI
  1482 Some influential environment variables:
  1483   CC          C compiler command
  1484   CFLAGS      C compiler flags
  1485   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1486               nonstandard directory <lib dir>
  1487   LIBS        libraries to pass to the linker, e.g. -l<library>
  1488   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1489               you have headers in a nonstandard directory <include dir>
  1490   CPP         C preprocessor
  1491   OBJC        Objective C compiler command
  1492   OBJCFLAGS   Objective C compiler flags
  1493   CCAS        assembler compiler command (defaults to CC)
  1494   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1495   PKG_CONFIG  path to pkg-config utility
  1496   LIBPNG_CFLAGS
  1497               C compiler flags for LIBPNG, overriding pkg-config
  1498   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1499   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1500   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1501   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1502   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1503   GLIB_FOR_BUILD_CFLAGS
  1504               C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
  1505   GLIB_FOR_BUILD_LIBS
  1506               linker flags for GLIB_FOR_BUILD, overriding pkg-config
  1507   LIBISOFS_CFLAGS
  1508               C compiler flags for LIBISOFS, overriding pkg-config
  1509   LIBISOFS_LIBS
  1510               linker flags for LIBISOFS, overriding pkg-config
  1511   LIBGL_CFLAGS
  1512               C compiler flags for LIBGL, overriding pkg-config
  1513   LIBGL_LIBS  linker flags for LIBGL, overriding pkg-config
  1514   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
  1515   SDL_LIBS    linker flags for SDL, overriding pkg-config
  1516   PULSE_CFLAGS
  1517               C compiler flags for PULSE, overriding pkg-config
  1518   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1519   ESOUND_CFLAGS
  1520               C compiler flags for ESOUND, overriding pkg-config
  1521   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1522   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1523   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1525 Use these variables to override the choices made by `configure' or to help
  1526 it to find libraries and programs with nonstandard names/locations.
  1528 _ACEOF
  1529 ac_status=$?
  1530 fi
  1532 if test "$ac_init_help" = "recursive"; then
  1533   # If there are subdirs, report their specific --help.
  1534   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1535     test -d "$ac_dir" || continue
  1536     ac_builddir=.
  1538 case "$ac_dir" in
  1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1540 *)
  1541   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1542   # A ".." for each directory in $ac_dir_suffix.
  1543   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1544   case $ac_top_builddir_sub in
  1545   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1546   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1547   esac ;;
  1548 esac
  1549 ac_abs_top_builddir=$ac_pwd
  1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1551 # for backward compatibility:
  1552 ac_top_builddir=$ac_top_build_prefix
  1554 case $srcdir in
  1555   .)  # We are building in place.
  1556     ac_srcdir=.
  1557     ac_top_srcdir=$ac_top_builddir_sub
  1558     ac_abs_top_srcdir=$ac_pwd ;;
  1559   [\\/]* | ?:[\\/]* )  # Absolute name.
  1560     ac_srcdir=$srcdir$ac_dir_suffix;
  1561     ac_top_srcdir=$srcdir
  1562     ac_abs_top_srcdir=$srcdir ;;
  1563   *) # Relative name.
  1564     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1565     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1566     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1567 esac
  1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1570     cd "$ac_dir" || { ac_status=$?; continue; }
  1571     # Check for guested configure.
  1572     if test -f "$ac_srcdir/configure.gnu"; then
  1573       echo &&
  1574       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1575     elif test -f "$ac_srcdir/configure"; then
  1576       echo &&
  1577       $SHELL "$ac_srcdir/configure" --help=recursive
  1578     else
  1579       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1580     fi || ac_status=$?
  1581     cd "$ac_pwd" || { ac_status=$?; break; }
  1582   done
  1583 fi
  1585 test -n "$ac_init_help" && exit $ac_status
  1586 if $ac_init_version; then
  1587   cat <<\_ACEOF
  1588 configure
  1589 generated by GNU Autoconf 2.61
  1591 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1592 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1593 This configure script is free software; the Free Software Foundation
  1594 gives unlimited permission to copy, distribute and modify it.
  1595 _ACEOF
  1596   exit
  1597 fi
  1598 cat >config.log <<_ACEOF
  1599 This file contains any messages produced by compilers while
  1600 running configure, to aid debugging if configure makes a mistake.
  1602 It was created by $as_me, which was
  1603 generated by GNU Autoconf 2.61.  Invocation command line was
  1605   $ $0 $@
  1607 _ACEOF
  1608 exec 5>>config.log
  1610 cat <<_ASUNAME
  1611 ## --------- ##
  1612 ## Platform. ##
  1613 ## --------- ##
  1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1622 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1624 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1625 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1627 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1628 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1629 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1630 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1632 _ASUNAME
  1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1635 for as_dir in $PATH
  1636 do
  1637   IFS=$as_save_IFS
  1638   test -z "$as_dir" && as_dir=.
  1639   echo "PATH: $as_dir"
  1640 done
  1641 IFS=$as_save_IFS
  1643 } >&5
  1645 cat >&5 <<_ACEOF
  1648 ## ----------- ##
  1649 ## Core tests. ##
  1650 ## ----------- ##
  1652 _ACEOF
  1655 # Keep a trace of the command line.
  1656 # Strip out --no-create and --no-recursion so they do not pile up.
  1657 # Strip out --silent because we don't want to record it for future runs.
  1658 # Also quote any args containing shell meta-characters.
  1659 # Make two passes to allow for proper duplicate-argument suppression.
  1660 ac_configure_args=
  1661 ac_configure_args0=
  1662 ac_configure_args1=
  1663 ac_must_keep_next=false
  1664 for ac_pass in 1 2
  1665 do
  1666   for ac_arg
  1667   do
  1668     case $ac_arg in
  1669     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1670     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1671     | -silent | --silent | --silen | --sile | --sil)
  1672       continue ;;
  1673     *\'*)
  1674       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1675     esac
  1676     case $ac_pass in
  1677     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1678     2)
  1679       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1680       if test $ac_must_keep_next = true; then
  1681 	ac_must_keep_next=false # Got value, back to normal.
  1682       else
  1683 	case $ac_arg in
  1684 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1685 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1686 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1687 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1688 	    case "$ac_configure_args0 " in
  1689 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1690 	    esac
  1691 	    ;;
  1692 	  -* ) ac_must_keep_next=true ;;
  1693 	esac
  1694       fi
  1695       ac_configure_args="$ac_configure_args '$ac_arg'"
  1696       ;;
  1697     esac
  1698   done
  1699 done
  1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1703 # When interrupted or exit'd, cleanup temporary files, and complete
  1704 # config.log.  We remove comments because anyway the quotes in there
  1705 # would cause problems or look ugly.
  1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1708 trap 'exit_status=$?
  1709   # Save into config.log some information that might help in debugging.
  1711     echo
  1713     cat <<\_ASBOX
  1714 ## ---------------- ##
  1715 ## Cache variables. ##
  1716 ## ---------------- ##
  1717 _ASBOX
  1718     echo
  1719     # The following way of writing the cache mishandles newlines in values,
  1721   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1722     eval ac_val=\$$ac_var
  1723     case $ac_val in #(
  1724     *${as_nl}*)
  1725       case $ac_var in #(
  1726       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1728       esac
  1729       case $ac_var in #(
  1730       _ | IFS | as_nl) ;; #(
  1731       *) $as_unset $ac_var ;;
  1732       esac ;;
  1733     esac
  1734   done
  1735   (set) 2>&1 |
  1736     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1737     *${as_nl}ac_space=\ *)
  1738       sed -n \
  1739 	"s/'\''/'\''\\\\'\'''\''/g;
  1740 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1741       ;; #(
  1742     *)
  1743       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1744       ;;
  1745     esac |
  1746     sort
  1748     echo
  1750     cat <<\_ASBOX
  1751 ## ----------------- ##
  1752 ## Output variables. ##
  1753 ## ----------------- ##
  1754 _ASBOX
  1755     echo
  1756     for ac_var in $ac_subst_vars
  1757     do
  1758       eval ac_val=\$$ac_var
  1759       case $ac_val in
  1760       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1761       esac
  1762       echo "$ac_var='\''$ac_val'\''"
  1763     done | sort
  1764     echo
  1766     if test -n "$ac_subst_files"; then
  1767       cat <<\_ASBOX
  1768 ## ------------------- ##
  1769 ## File substitutions. ##
  1770 ## ------------------- ##
  1771 _ASBOX
  1772       echo
  1773       for ac_var in $ac_subst_files
  1774       do
  1775 	eval ac_val=\$$ac_var
  1776 	case $ac_val in
  1777 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1778 	esac
  1779 	echo "$ac_var='\''$ac_val'\''"
  1780       done | sort
  1781       echo
  1782     fi
  1784     if test -s confdefs.h; then
  1785       cat <<\_ASBOX
  1786 ## ----------- ##
  1787 ## confdefs.h. ##
  1788 ## ----------- ##
  1789 _ASBOX
  1790       echo
  1791       cat confdefs.h
  1792       echo
  1793     fi
  1794     test "$ac_signal" != 0 &&
  1795       echo "$as_me: caught signal $ac_signal"
  1796     echo "$as_me: exit $exit_status"
  1797   } >&5
  1798   rm -f core *.core core.conftest.* &&
  1799     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1800     exit $exit_status
  1801 ' 0
  1802 for ac_signal in 1 2 13 15; do
  1803   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1804 done
  1805 ac_signal=0
  1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1808 rm -f -r conftest* confdefs.h
  1810 # Predefined preprocessor variables.
  1812 cat >>confdefs.h <<_ACEOF
  1813 #define PACKAGE_NAME "$PACKAGE_NAME"
  1814 _ACEOF
  1817 cat >>confdefs.h <<_ACEOF
  1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1819 _ACEOF
  1822 cat >>confdefs.h <<_ACEOF
  1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1824 _ACEOF
  1827 cat >>confdefs.h <<_ACEOF
  1828 #define PACKAGE_STRING "$PACKAGE_STRING"
  1829 _ACEOF
  1832 cat >>confdefs.h <<_ACEOF
  1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1834 _ACEOF
  1837 # Let the site file select an alternate cache file if it wants to.
  1838 # Prefer explicitly selected file to automatically selected ones.
  1839 if test -n "$CONFIG_SITE"; then
  1840   set x "$CONFIG_SITE"
  1841 elif test "x$prefix" != xNONE; then
  1842   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1843 else
  1844   set x "$ac_default_prefix/share/config.site" \
  1845 	"$ac_default_prefix/etc/config.site"
  1846 fi
  1847 shift
  1848 for ac_site_file
  1849 do
  1850   if test -r "$ac_site_file"; then
  1851     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1852 echo "$as_me: loading site script $ac_site_file" >&6;}
  1853     sed 's/^/| /' "$ac_site_file" >&5
  1854     . "$ac_site_file"
  1855   fi
  1856 done
  1858 if test -r "$cache_file"; then
  1859   # Some versions of bash will fail to source /dev/null (special
  1860   # files actually), so we avoid doing that.
  1861   if test -f "$cache_file"; then
  1862     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1863 echo "$as_me: loading cache $cache_file" >&6;}
  1864     case $cache_file in
  1865       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1866       *)                      . "./$cache_file";;
  1867     esac
  1868   fi
  1869 else
  1870   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1871 echo "$as_me: creating cache $cache_file" >&6;}
  1872   >$cache_file
  1873 fi
  1875 # Check that the precious variables saved in the cache have kept the same
  1876 # value.
  1877 ac_cache_corrupted=false
  1878 for ac_var in $ac_precious_vars; do
  1879   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1880   eval ac_new_set=\$ac_env_${ac_var}_set
  1881   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1882   eval ac_new_val=\$ac_env_${ac_var}_value
  1883   case $ac_old_set,$ac_new_set in
  1884     set,)
  1885       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1887       ac_cache_corrupted=: ;;
  1888     ,set)
  1889       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1891       ac_cache_corrupted=: ;;
  1892     ,);;
  1893     *)
  1894       if test "x$ac_old_val" != "x$ac_new_val"; then
  1895 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1897 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1898 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1899 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1900 echo "$as_me:   current value: $ac_new_val" >&2;}
  1901 	ac_cache_corrupted=:
  1902       fi;;
  1903   esac
  1904   # Pass precious variables to config.status.
  1905   if test "$ac_new_set" = set; then
  1906     case $ac_new_val in
  1907     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1908     *) ac_arg=$ac_var=$ac_new_val ;;
  1909     esac
  1910     case " $ac_configure_args " in
  1911       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1912       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1913     esac
  1914   fi
  1915 done
  1916 if $ac_cache_corrupted; then
  1917   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1919   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1921    { (exit 1); exit 1; }; }
  1922 fi
  1940 ac_ext=c
  1941 ac_cpp='$CPP $CPPFLAGS'
  1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1947 am__api_version="1.9"
  1948 ac_aux_dir=
  1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1950   if test -f "$ac_dir/install-sh"; then
  1951     ac_aux_dir=$ac_dir
  1952     ac_install_sh="$ac_aux_dir/install-sh -c"
  1953     break
  1954   elif test -f "$ac_dir/install.sh"; then
  1955     ac_aux_dir=$ac_dir
  1956     ac_install_sh="$ac_aux_dir/install.sh -c"
  1957     break
  1958   elif test -f "$ac_dir/shtool"; then
  1959     ac_aux_dir=$ac_dir
  1960     ac_install_sh="$ac_aux_dir/shtool install -c"
  1961     break
  1962   fi
  1963 done
  1964 if test -z "$ac_aux_dir"; then
  1965   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1966 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1967    { (exit 1); exit 1; }; }
  1968 fi
  1970 # These three variables are undocumented and unsupported,
  1971 # and are intended to be withdrawn in a future Autoconf release.
  1972 # They can cause serious problems if a builder's source tree is in a directory
  1973 # whose full name contains unusual characters.
  1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1976 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1979 # Find a good install program.  We prefer a C program (faster),
  1980 # so one script is as good as another.  But avoid the broken or
  1981 # incompatible versions:
  1982 # SysV /etc/install, /usr/sbin/install
  1983 # SunOS /usr/etc/install
  1984 # IRIX /sbin/install
  1985 # AIX /bin/install
  1986 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1990 # OS/2's system install, which has a completely different semantic
  1991 # ./install, which can be erroneously created by make from ./install.sh.
  1992 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1993 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1994 if test -z "$INSTALL"; then
  1995 if test "${ac_cv_path_install+set}" = set; then
  1996   echo $ECHO_N "(cached) $ECHO_C" >&6
  1997 else
  1998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1999 for as_dir in $PATH
  2000 do
  2001   IFS=$as_save_IFS
  2002   test -z "$as_dir" && as_dir=.
  2003   # Account for people who put trailing slashes in PATH elements.
  2004 case $as_dir/ in
  2005   ./ | .// | /cC/* | \
  2006   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2007   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2008   /usr/ucb/* ) ;;
  2009   *)
  2010     # OSF1 and SCO ODT 3.0 have their own names for install.
  2011     # Don't use installbsd from OSF since it installs stuff as root
  2012     # by default.
  2013     for ac_prog in ginstall scoinst install; do
  2014       for ac_exec_ext in '' $ac_executable_extensions; do
  2015 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2016 	  if test $ac_prog = install &&
  2017 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2018 	    # AIX install.  It has an incompatible calling convention.
  2020 	  elif test $ac_prog = install &&
  2021 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2022 	    # program-specific install script used by HP pwplus--don't use.
  2024 	  else
  2025 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2026 	    break 3
  2027 	  fi
  2028 	fi
  2029       done
  2030     done
  2031     ;;
  2032 esac
  2033 done
  2034 IFS=$as_save_IFS
  2037 fi
  2038   if test "${ac_cv_path_install+set}" = set; then
  2039     INSTALL=$ac_cv_path_install
  2040   else
  2041     # As a last resort, use the slow shell script.  Don't cache a
  2042     # value for INSTALL within a source directory, because that will
  2043     # break other packages using the cache if that directory is
  2044     # removed, or if the value is a relative name.
  2045     INSTALL=$ac_install_sh
  2046   fi
  2047 fi
  2048 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2049 echo "${ECHO_T}$INSTALL" >&6; }
  2051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2052 # It thinks the first close brace ends the variable substitution.
  2053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2057 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2059 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2060 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2061 # Just in case
  2062 sleep 1
  2063 echo timestamp > conftest.file
  2064 # Do `set' in a subshell so we don't clobber the current shell's
  2065 # arguments.  Must try -L first in case configure is actually a
  2066 # symlink; some systems play weird games with the mod time of symlinks
  2067 # (eg FreeBSD returns the mod time of the symlink's containing
  2068 # directory).
  2069 if (
  2070    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2071    if test "$*" = "X"; then
  2072       # -L didn't work.
  2073       set X `ls -t $srcdir/configure conftest.file`
  2074    fi
  2075    rm -f conftest.file
  2076    if test "$*" != "X $srcdir/configure conftest.file" \
  2077       && test "$*" != "X conftest.file $srcdir/configure"; then
  2079       # If neither matched, then we have a broken ls.  This can happen
  2080       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2081       # broken ls alias from the environment.  This has actually
  2082       # happened.  Such a system could not be considered "sane".
  2083       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2084 alias in your environment" >&5
  2085 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2086 alias in your environment" >&2;}
  2087    { (exit 1); exit 1; }; }
  2088    fi
  2090    test "$2" = conftest.file
  2092 then
  2093    # Ok.
  2095 else
  2096    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2097 Check your system clock" >&5
  2098 echo "$as_me: error: newly created file is older than distributed files!
  2099 Check your system clock" >&2;}
  2100    { (exit 1); exit 1; }; }
  2101 fi
  2102 { echo "$as_me:$LINENO: result: yes" >&5
  2103 echo "${ECHO_T}yes" >&6; }
  2104 test "$program_prefix" != NONE &&
  2105   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2106 # Use a double $ so make ignores it.
  2107 test "$program_suffix" != NONE &&
  2108   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2109 # Double any \ or $.  echo might interpret backslashes.
  2110 # By default was `s,x,x', remove it if useless.
  2111 cat <<\_ACEOF >conftest.sed
  2112 s/[\\$]/&&/g;s/;s,x,x,$//
  2113 _ACEOF
  2114 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2115 rm -f conftest.sed
  2117 # expand $ac_aux_dir to an absolute path
  2118 am_aux_dir=`cd $ac_aux_dir && pwd`
  2120 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2121 # Use eval to expand $SHELL
  2122 if eval "$MISSING --run true"; then
  2123   am_missing_run="$MISSING --run "
  2124 else
  2125   am_missing_run=
  2126   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2127 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2128 fi
  2130 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2131   # We used to keeping the `.' as first argument, in order to
  2132   # allow $(mkdir_p) to be used without argument.  As in
  2133   #   $(mkdir_p) $(somedir)
  2134   # where $(somedir) is conditionally defined.  However this is wrong
  2135   # for two reasons:
  2136   #  1. if the package is installed by a user who cannot write `.'
  2137   #     make install will fail,
  2138   #  2. the above comment should most certainly read
  2139   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2140   #     so it does not work when $(somedir) is undefined and
  2141   #     $(DESTDIR) is not.
  2142   #  To support the latter case, we have to write
  2143   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2144   #  so the `.' trick is pointless.
  2145   mkdir_p='mkdir -p --'
  2146 else
  2147   # On NextStep and OpenStep, the `mkdir' command does not
  2148   # recognize any option.  It will interpret all options as
  2149   # directories to create, and then abort because `.' already
  2150   # exists.
  2151   for d in ./-p ./--version;
  2152   do
  2153     test -d $d && rmdir $d
  2154   done
  2155   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2156   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2157     mkdir_p='$(mkinstalldirs)'
  2158   else
  2159     mkdir_p='$(install_sh) -d'
  2160   fi
  2161 fi
  2163 for ac_prog in gawk mawk nawk awk
  2164 do
  2165   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2166 set dummy $ac_prog; ac_word=$2
  2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2169 if test "${ac_cv_prog_AWK+set}" = set; then
  2170   echo $ECHO_N "(cached) $ECHO_C" >&6
  2171 else
  2172   if test -n "$AWK"; then
  2173   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2174 else
  2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2176 for as_dir in $PATH
  2177 do
  2178   IFS=$as_save_IFS
  2179   test -z "$as_dir" && as_dir=.
  2180   for ac_exec_ext in '' $ac_executable_extensions; do
  2181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2182     ac_cv_prog_AWK="$ac_prog"
  2183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2184     break 2
  2185   fi
  2186 done
  2187 done
  2188 IFS=$as_save_IFS
  2190 fi
  2191 fi
  2192 AWK=$ac_cv_prog_AWK
  2193 if test -n "$AWK"; then
  2194   { echo "$as_me:$LINENO: result: $AWK" >&5
  2195 echo "${ECHO_T}$AWK" >&6; }
  2196 else
  2197   { echo "$as_me:$LINENO: result: no" >&5
  2198 echo "${ECHO_T}no" >&6; }
  2199 fi
  2202   test -n "$AWK" && break
  2203 done
  2205 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2206 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2207 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2209   echo $ECHO_N "(cached) $ECHO_C" >&6
  2210 else
  2211   cat >conftest.make <<\_ACEOF
  2212 SHELL = /bin/sh
  2213 all:
  2214 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2215 _ACEOF
  2216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2218   *@@@%%%=?*=@@@%%%*)
  2219     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2220   *)
  2221     eval ac_cv_prog_make_${ac_make}_set=no;;
  2222 esac
  2223 rm -f conftest.make
  2224 fi
  2225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2226   { echo "$as_me:$LINENO: result: yes" >&5
  2227 echo "${ECHO_T}yes" >&6; }
  2228   SET_MAKE=
  2229 else
  2230   { echo "$as_me:$LINENO: result: no" >&5
  2231 echo "${ECHO_T}no" >&6; }
  2232   SET_MAKE="MAKE=${MAKE-make}"
  2233 fi
  2235 rm -rf .tst 2>/dev/null
  2236 mkdir .tst 2>/dev/null
  2237 if test -d .tst; then
  2238   am__leading_dot=.
  2239 else
  2240   am__leading_dot=_
  2241 fi
  2242 rmdir .tst 2>/dev/null
  2244 # test to see if srcdir already configured
  2245 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2246    test -f $srcdir/config.status; then
  2247   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2248 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2249    { (exit 1); exit 1; }; }
  2250 fi
  2252 # test whether we have cygpath
  2253 if test -z "$CYGPATH_W"; then
  2254   if (cygpath --version) >/dev/null 2>/dev/null; then
  2255     CYGPATH_W='cygpath -w'
  2256   else
  2257     CYGPATH_W=echo
  2258   fi
  2259 fi
  2262 # Define the identity of the package.
  2263  PACKAGE=lxdream
  2264  VERSION=0.9.1
  2267 cat >>confdefs.h <<_ACEOF
  2268 #define PACKAGE "$PACKAGE"
  2269 _ACEOF
  2272 cat >>confdefs.h <<_ACEOF
  2273 #define VERSION "$VERSION"
  2274 _ACEOF
  2276 # Some tools Automake needs.
  2278 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2281 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2284 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2287 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2290 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2292 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2294 # Installed binaries are usually stripped using `strip' when the user
  2295 # run `make install-strip'.  However `strip' might not be the right
  2296 # tool to use in cross-compilation environments, therefore Automake
  2297 # will honor the `STRIP' environment variable to overrule this program.
  2298 if test "$cross_compiling" != no; then
  2299   if test -n "$ac_tool_prefix"; then
  2300   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2301 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2304 if test "${ac_cv_prog_STRIP+set}" = set; then
  2305   echo $ECHO_N "(cached) $ECHO_C" >&6
  2306 else
  2307   if test -n "$STRIP"; then
  2308   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2309 else
  2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2311 for as_dir in $PATH
  2312 do
  2313   IFS=$as_save_IFS
  2314   test -z "$as_dir" && as_dir=.
  2315   for ac_exec_ext in '' $ac_executable_extensions; do
  2316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2317     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2319     break 2
  2320   fi
  2321 done
  2322 done
  2323 IFS=$as_save_IFS
  2325 fi
  2326 fi
  2327 STRIP=$ac_cv_prog_STRIP
  2328 if test -n "$STRIP"; then
  2329   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2330 echo "${ECHO_T}$STRIP" >&6; }
  2331 else
  2332   { echo "$as_me:$LINENO: result: no" >&5
  2333 echo "${ECHO_T}no" >&6; }
  2334 fi
  2337 fi
  2338 if test -z "$ac_cv_prog_STRIP"; then
  2339   ac_ct_STRIP=$STRIP
  2340   # Extract the first word of "strip", so it can be a program name with args.
  2341 set dummy strip; ac_word=$2
  2342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2344 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2345   echo $ECHO_N "(cached) $ECHO_C" >&6
  2346 else
  2347   if test -n "$ac_ct_STRIP"; then
  2348   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2349 else
  2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2351 for as_dir in $PATH
  2352 do
  2353   IFS=$as_save_IFS
  2354   test -z "$as_dir" && as_dir=.
  2355   for ac_exec_ext in '' $ac_executable_extensions; do
  2356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2357     ac_cv_prog_ac_ct_STRIP="strip"
  2358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2359     break 2
  2360   fi
  2361 done
  2362 done
  2363 IFS=$as_save_IFS
  2365 fi
  2366 fi
  2367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2368 if test -n "$ac_ct_STRIP"; then
  2369   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2370 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2371 else
  2372   { echo "$as_me:$LINENO: result: no" >&5
  2373 echo "${ECHO_T}no" >&6; }
  2374 fi
  2376   if test "x$ac_ct_STRIP" = x; then
  2377     STRIP=":"
  2378   else
  2379     case $cross_compiling:$ac_tool_warned in
  2380 yes:)
  2381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2382 whose name does not start with the host triplet.  If you think this
  2383 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2385 whose name does not start with the host triplet.  If you think this
  2386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2387 ac_tool_warned=yes ;;
  2388 esac
  2389     STRIP=$ac_ct_STRIP
  2390   fi
  2391 else
  2392   STRIP="$ac_cv_prog_STRIP"
  2393 fi
  2395 fi
  2396 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2398 # We need awk for the "check" target.  The system "awk" is bad on
  2399 # some platforms.
  2400 # Always define AMTAR for backward compatibility.
  2402 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2404 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2410 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2411 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2412     # Check whether --enable-maintainer-mode was given.
  2413 if test "${enable_maintainer_mode+set}" = set; then
  2414   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2415 else
  2416   USE_MAINTAINER_MODE=no
  2417 fi
  2419   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2420 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2423 if test $USE_MAINTAINER_MODE = yes; then
  2424   MAINTAINER_MODE_TRUE=
  2425   MAINTAINER_MODE_FALSE='#'
  2426 else
  2427   MAINTAINER_MODE_TRUE='#'
  2428   MAINTAINER_MODE_FALSE=
  2429 fi
  2431   MAINT=$MAINTAINER_MODE_TRUE
  2434 ac_config_headers="$ac_config_headers config.h"
  2437 # Make sure we can run config.sub.
  2438 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2439   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2440 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2441    { (exit 1); exit 1; }; }
  2443 { echo "$as_me:$LINENO: checking build system type" >&5
  2444 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2445 if test "${ac_cv_build+set}" = set; then
  2446   echo $ECHO_N "(cached) $ECHO_C" >&6
  2447 else
  2448   ac_build_alias=$build_alias
  2449 test "x$ac_build_alias" = x &&
  2450   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2451 test "x$ac_build_alias" = x &&
  2452   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2453 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2454    { (exit 1); exit 1; }; }
  2455 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2456   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2457 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2458    { (exit 1); exit 1; }; }
  2460 fi
  2461 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2462 echo "${ECHO_T}$ac_cv_build" >&6; }
  2463 case $ac_cv_build in
  2464 *-*-*) ;;
  2465 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2466 echo "$as_me: error: invalid value of canonical build" >&2;}
  2467    { (exit 1); exit 1; }; };;
  2468 esac
  2469 build=$ac_cv_build
  2470 ac_save_IFS=$IFS; IFS='-'
  2471 set x $ac_cv_build
  2472 shift
  2473 build_cpu=$1
  2474 build_vendor=$2
  2475 shift; shift
  2476 # Remember, the first character of IFS is used to create $*,
  2477 # except with old shells:
  2478 build_os=$*
  2479 IFS=$ac_save_IFS
  2480 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2483 { echo "$as_me:$LINENO: checking host system type" >&5
  2484 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2485 if test "${ac_cv_host+set}" = set; then
  2486   echo $ECHO_N "(cached) $ECHO_C" >&6
  2487 else
  2488   if test "x$host_alias" = x; then
  2489   ac_cv_host=$ac_cv_build
  2490 else
  2491   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2492     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2493 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2494    { (exit 1); exit 1; }; }
  2495 fi
  2497 fi
  2498 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2499 echo "${ECHO_T}$ac_cv_host" >&6; }
  2500 case $ac_cv_host in
  2501 *-*-*) ;;
  2502 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2503 echo "$as_me: error: invalid value of canonical host" >&2;}
  2504    { (exit 1); exit 1; }; };;
  2505 esac
  2506 host=$ac_cv_host
  2507 ac_save_IFS=$IFS; IFS='-'
  2508 set x $ac_cv_host
  2509 shift
  2510 host_cpu=$1
  2511 host_vendor=$2
  2512 shift; shift
  2513 # Remember, the first character of IFS is used to create $*,
  2514 # except with old shells:
  2515 host_os=$*
  2516 IFS=$ac_save_IFS
  2517 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2528 # LX_ANDROID_BUILD
  2529 # Defines --with-android, --with-android-ndk, and --with-android-version
  2530 # If specified, checks for a working install, and sets build parameters
  2531 # appropriately for an Android host.
  2535 DEPDIR="${am__leading_dot}deps"
  2537 ac_config_commands="$ac_config_commands depfiles"
  2540 am_make=${MAKE-make}
  2541 cat > confinc << 'END'
  2542 am__doit:
  2543 	@echo done
  2544 .PHONY: am__doit
  2545 END
  2546 # If we don't find an include directive, just comment out the code.
  2547 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2548 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2549 am__include="#"
  2550 am__quote=
  2551 _am_result=none
  2552 # First try GNU make style include.
  2553 echo "include confinc" > confmf
  2554 # We grep out `Entering directory' and `Leaving directory'
  2555 # messages which can occur if `w' ends up in MAKEFLAGS.
  2556 # In particular we don't look at `^make:' because GNU make might
  2557 # be invoked under some other name (usually "gmake"), in which
  2558 # case it prints its new name instead of `make'.
  2559 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2560    am__include=include
  2561    am__quote=
  2562    _am_result=GNU
  2563 fi
  2564 # Now try BSD make style include.
  2565 if test "$am__include" = "#"; then
  2566    echo '.include "confinc"' > confmf
  2567    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2568       am__include=.include
  2569       am__quote="\""
  2570       _am_result=BSD
  2571    fi
  2572 fi
  2575 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2576 echo "${ECHO_T}$_am_result" >&6; }
  2577 rm -f confinc confmf
  2579 # Check whether --enable-dependency-tracking was given.
  2580 if test "${enable_dependency_tracking+set}" = set; then
  2581   enableval=$enable_dependency_tracking;
  2582 fi
  2584 if test "x$enable_dependency_tracking" != xno; then
  2585   am_depcomp="$ac_aux_dir/depcomp"
  2586   AMDEPBACKSLASH='\'
  2587 fi
  2590 if test "x$enable_dependency_tracking" != xno; then
  2591   AMDEP_TRUE=
  2592   AMDEP_FALSE='#'
  2593 else
  2594   AMDEP_TRUE='#'
  2595   AMDEP_FALSE=
  2596 fi
  2600 ac_ext=c
  2601 ac_cpp='$CPP $CPPFLAGS'
  2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2605 if test -n "$ac_tool_prefix"; then
  2606   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2610 if test "${ac_cv_prog_CC+set}" = set; then
  2611   echo $ECHO_N "(cached) $ECHO_C" >&6
  2612 else
  2613   if test -n "$CC"; then
  2614   ac_cv_prog_CC="$CC" # Let the user override the test.
  2615 else
  2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2617 for as_dir in $PATH
  2618 do
  2619   IFS=$as_save_IFS
  2620   test -z "$as_dir" && as_dir=.
  2621   for ac_exec_ext in '' $ac_executable_extensions; do
  2622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2623     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2625     break 2
  2626   fi
  2627 done
  2628 done
  2629 IFS=$as_save_IFS
  2631 fi
  2632 fi
  2633 CC=$ac_cv_prog_CC
  2634 if test -n "$CC"; then
  2635   { echo "$as_me:$LINENO: result: $CC" >&5
  2636 echo "${ECHO_T}$CC" >&6; }
  2637 else
  2638   { echo "$as_me:$LINENO: result: no" >&5
  2639 echo "${ECHO_T}no" >&6; }
  2640 fi
  2643 fi
  2644 if test -z "$ac_cv_prog_CC"; then
  2645   ac_ct_CC=$CC
  2646   # Extract the first word of "gcc", so it can be a program name with args.
  2647 set dummy gcc; ac_word=$2
  2648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2651   echo $ECHO_N "(cached) $ECHO_C" >&6
  2652 else
  2653   if test -n "$ac_ct_CC"; then
  2654   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2655 else
  2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2657 for as_dir in $PATH
  2658 do
  2659   IFS=$as_save_IFS
  2660   test -z "$as_dir" && as_dir=.
  2661   for ac_exec_ext in '' $ac_executable_extensions; do
  2662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2663     ac_cv_prog_ac_ct_CC="gcc"
  2664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2665     break 2
  2666   fi
  2667 done
  2668 done
  2669 IFS=$as_save_IFS
  2671 fi
  2672 fi
  2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2674 if test -n "$ac_ct_CC"; then
  2675   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2676 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2677 else
  2678   { echo "$as_me:$LINENO: result: no" >&5
  2679 echo "${ECHO_T}no" >&6; }
  2680 fi
  2682   if test "x$ac_ct_CC" = x; then
  2683     CC=""
  2684   else
  2685     case $cross_compiling:$ac_tool_warned in
  2686 yes:)
  2687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2688 whose name does not start with the host triplet.  If you think this
  2689 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2691 whose name does not start with the host triplet.  If you think this
  2692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2693 ac_tool_warned=yes ;;
  2694 esac
  2695     CC=$ac_ct_CC
  2696   fi
  2697 else
  2698   CC="$ac_cv_prog_CC"
  2699 fi
  2701 if test -z "$CC"; then
  2702           if test -n "$ac_tool_prefix"; then
  2703     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2704 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2707 if test "${ac_cv_prog_CC+set}" = set; then
  2708   echo $ECHO_N "(cached) $ECHO_C" >&6
  2709 else
  2710   if test -n "$CC"; then
  2711   ac_cv_prog_CC="$CC" # Let the user override the test.
  2712 else
  2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2714 for as_dir in $PATH
  2715 do
  2716   IFS=$as_save_IFS
  2717   test -z "$as_dir" && as_dir=.
  2718   for ac_exec_ext in '' $ac_executable_extensions; do
  2719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2720     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2722     break 2
  2723   fi
  2724 done
  2725 done
  2726 IFS=$as_save_IFS
  2728 fi
  2729 fi
  2730 CC=$ac_cv_prog_CC
  2731 if test -n "$CC"; then
  2732   { echo "$as_me:$LINENO: result: $CC" >&5
  2733 echo "${ECHO_T}$CC" >&6; }
  2734 else
  2735   { echo "$as_me:$LINENO: result: no" >&5
  2736 echo "${ECHO_T}no" >&6; }
  2737 fi
  2740   fi
  2741 fi
  2742 if test -z "$CC"; then
  2743   # Extract the first word of "cc", so it can be a program name with args.
  2744 set dummy cc; ac_word=$2
  2745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2747 if test "${ac_cv_prog_CC+set}" = set; then
  2748   echo $ECHO_N "(cached) $ECHO_C" >&6
  2749 else
  2750   if test -n "$CC"; then
  2751   ac_cv_prog_CC="$CC" # Let the user override the test.
  2752 else
  2753   ac_prog_rejected=no
  2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2755 for as_dir in $PATH
  2756 do
  2757   IFS=$as_save_IFS
  2758   test -z "$as_dir" && as_dir=.
  2759   for ac_exec_ext in '' $ac_executable_extensions; do
  2760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2761     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2762        ac_prog_rejected=yes
  2763        continue
  2764      fi
  2765     ac_cv_prog_CC="cc"
  2766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2767     break 2
  2768   fi
  2769 done
  2770 done
  2771 IFS=$as_save_IFS
  2773 if test $ac_prog_rejected = yes; then
  2774   # We found a bogon in the path, so make sure we never use it.
  2775   set dummy $ac_cv_prog_CC
  2776   shift
  2777   if test $# != 0; then
  2778     # We chose a different compiler from the bogus one.
  2779     # However, it has the same basename, so the bogon will be chosen
  2780     # first if we set CC to just the basename; use the full file name.
  2781     shift
  2782     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2783   fi
  2784 fi
  2785 fi
  2786 fi
  2787 CC=$ac_cv_prog_CC
  2788 if test -n "$CC"; then
  2789   { echo "$as_me:$LINENO: result: $CC" >&5
  2790 echo "${ECHO_T}$CC" >&6; }
  2791 else
  2792   { echo "$as_me:$LINENO: result: no" >&5
  2793 echo "${ECHO_T}no" >&6; }
  2794 fi
  2797 fi
  2798 if test -z "$CC"; then
  2799   if test -n "$ac_tool_prefix"; then
  2800   for ac_prog in cl.exe
  2801   do
  2802     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2806 if test "${ac_cv_prog_CC+set}" = set; then
  2807   echo $ECHO_N "(cached) $ECHO_C" >&6
  2808 else
  2809   if test -n "$CC"; then
  2810   ac_cv_prog_CC="$CC" # Let the user override the test.
  2811 else
  2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2813 for as_dir in $PATH
  2814 do
  2815   IFS=$as_save_IFS
  2816   test -z "$as_dir" && as_dir=.
  2817   for ac_exec_ext in '' $ac_executable_extensions; do
  2818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2819     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2821     break 2
  2822   fi
  2823 done
  2824 done
  2825 IFS=$as_save_IFS
  2827 fi
  2828 fi
  2829 CC=$ac_cv_prog_CC
  2830 if test -n "$CC"; then
  2831   { echo "$as_me:$LINENO: result: $CC" >&5
  2832 echo "${ECHO_T}$CC" >&6; }
  2833 else
  2834   { echo "$as_me:$LINENO: result: no" >&5
  2835 echo "${ECHO_T}no" >&6; }
  2836 fi
  2839     test -n "$CC" && break
  2840   done
  2841 fi
  2842 if test -z "$CC"; then
  2843   ac_ct_CC=$CC
  2844   for ac_prog in cl.exe
  2845 do
  2846   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2847 set dummy $ac_prog; ac_word=$2
  2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2851   echo $ECHO_N "(cached) $ECHO_C" >&6
  2852 else
  2853   if test -n "$ac_ct_CC"; then
  2854   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2855 else
  2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2857 for as_dir in $PATH
  2858 do
  2859   IFS=$as_save_IFS
  2860   test -z "$as_dir" && as_dir=.
  2861   for ac_exec_ext in '' $ac_executable_extensions; do
  2862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2863     ac_cv_prog_ac_ct_CC="$ac_prog"
  2864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2865     break 2
  2866   fi
  2867 done
  2868 done
  2869 IFS=$as_save_IFS
  2871 fi
  2872 fi
  2873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2874 if test -n "$ac_ct_CC"; then
  2875   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2876 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2877 else
  2878   { echo "$as_me:$LINENO: result: no" >&5
  2879 echo "${ECHO_T}no" >&6; }
  2880 fi
  2883   test -n "$ac_ct_CC" && break
  2884 done
  2886   if test "x$ac_ct_CC" = x; then
  2887     CC=""
  2888   else
  2889     case $cross_compiling:$ac_tool_warned in
  2890 yes:)
  2891 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2892 whose name does not start with the host triplet.  If you think this
  2893 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2895 whose name does not start with the host triplet.  If you think this
  2896 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2897 ac_tool_warned=yes ;;
  2898 esac
  2899     CC=$ac_ct_CC
  2900   fi
  2901 fi
  2903 fi
  2906 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2907 See \`config.log' for more details." >&5
  2908 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2909 See \`config.log' for more details." >&2;}
  2910    { (exit 1); exit 1; }; }
  2912 # Provide some information about the compiler.
  2913 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2914 ac_compiler=`set X $ac_compile; echo $2`
  2915 { (ac_try="$ac_compiler --version >&5"
  2916 case "(($ac_try" in
  2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2918   *) ac_try_echo=$ac_try;;
  2919 esac
  2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2921   (eval "$ac_compiler --version >&5") 2>&5
  2922   ac_status=$?
  2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2924   (exit $ac_status); }
  2925 { (ac_try="$ac_compiler -v >&5"
  2926 case "(($ac_try" in
  2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2928   *) ac_try_echo=$ac_try;;
  2929 esac
  2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2931   (eval "$ac_compiler -v >&5") 2>&5
  2932   ac_status=$?
  2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2934   (exit $ac_status); }
  2935 { (ac_try="$ac_compiler -V >&5"
  2936 case "(($ac_try" in
  2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2938   *) ac_try_echo=$ac_try;;
  2939 esac
  2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2941   (eval "$ac_compiler -V >&5") 2>&5
  2942   ac_status=$?
  2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2944   (exit $ac_status); }
  2946 cat >conftest.$ac_ext <<_ACEOF
  2947 /* confdefs.h.  */
  2948 _ACEOF
  2949 cat confdefs.h >>conftest.$ac_ext
  2950 cat >>conftest.$ac_ext <<_ACEOF
  2951 /* end confdefs.h.  */
  2953 int
  2954 main ()
  2958   return 0;
  2960 _ACEOF
  2961 ac_clean_files_save=$ac_clean_files
  2962 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2963 # Try to create an executable without -o first, disregard a.out.
  2964 # It will help us diagnose broken compilers, and finding out an intuition
  2965 # of exeext.
  2966 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2967 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2968 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2970 # List of possible output files, starting from the most likely.
  2971 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2972 # only as a last resort.  b.out is created by i960 compilers.
  2973 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2975 # The IRIX 6 linker writes into existing files which may not be
  2976 # executable, retaining their permissions.  Remove them first so a
  2977 # subsequent execution test works.
  2978 ac_rmfiles=
  2979 for ac_file in $ac_files
  2980 do
  2981   case $ac_file in
  2982     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2983     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2984   esac
  2985 done
  2986 rm -f $ac_rmfiles
  2988 if { (ac_try="$ac_link_default"
  2989 case "(($ac_try" in
  2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2991   *) ac_try_echo=$ac_try;;
  2992 esac
  2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2994   (eval "$ac_link_default") 2>&5
  2995   ac_status=$?
  2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2997   (exit $ac_status); }; then
  2998   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2999 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3000 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3001 # so that the user can short-circuit this test for compilers unknown to
  3002 # Autoconf.
  3003 for ac_file in $ac_files ''
  3004 do
  3005   test -f "$ac_file" || continue
  3006   case $ac_file in
  3007     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  3008 	;;
  3009     [ab].out )
  3010 	# We found the default executable, but exeext='' is most
  3011 	# certainly right.
  3012 	break;;
  3013     *.* )
  3014         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3015 	then :; else
  3016 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3017 	fi
  3018 	# We set ac_cv_exeext here because the later test for it is not
  3019 	# safe: cross compilers may not add the suffix if given an `-o'
  3020 	# argument, so we may need to know it at that point already.
  3021 	# Even if this section looks crufty: it has the advantage of
  3022 	# actually working.
  3023 	break;;
  3024     * )
  3025 	break;;
  3026   esac
  3027 done
  3028 test "$ac_cv_exeext" = no && ac_cv_exeext=
  3030 else
  3031   ac_file=''
  3032 fi
  3034 { echo "$as_me:$LINENO: result: $ac_file" >&5
  3035 echo "${ECHO_T}$ac_file" >&6; }
  3036 if test -z "$ac_file"; then
  3037   echo "$as_me: failed program was:" >&5
  3038 sed 's/^/| /' conftest.$ac_ext >&5
  3040 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  3041 See \`config.log' for more details." >&5
  3042 echo "$as_me: error: C compiler cannot create executables
  3043 See \`config.log' for more details." >&2;}
  3044    { (exit 77); exit 77; }; }
  3045 fi
  3047 ac_exeext=$ac_cv_exeext
  3049 # Check that the compiler produces executables we can run.  If not, either
  3050 # the compiler is broken, or we cross compile.
  3051 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3052 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  3053 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3054 # If not cross compiling, check that we can run a simple program.
  3055 if test "$cross_compiling" != yes; then
  3056   if { ac_try='./$ac_file'
  3057   { (case "(($ac_try" in
  3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3059   *) ac_try_echo=$ac_try;;
  3060 esac
  3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3062   (eval "$ac_try") 2>&5
  3063   ac_status=$?
  3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3065   (exit $ac_status); }; }; then
  3066     cross_compiling=no
  3067   else
  3068     if test "$cross_compiling" = maybe; then
  3069 	cross_compiling=yes
  3070     else
  3071 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3072 If you meant to cross compile, use \`--host'.
  3073 See \`config.log' for more details." >&5
  3074 echo "$as_me: error: cannot run C compiled programs.
  3075 If you meant to cross compile, use \`--host'.
  3076 See \`config.log' for more details." >&2;}
  3077    { (exit 1); exit 1; }; }
  3078     fi
  3079   fi
  3080 fi
  3081 { echo "$as_me:$LINENO: result: yes" >&5
  3082 echo "${ECHO_T}yes" >&6; }
  3084 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  3085 ac_clean_files=$ac_clean_files_save
  3086 # Check that the compiler produces executables we can run.  If not, either
  3087 # the compiler is broken, or we cross compile.
  3088 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3089 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3090 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3091 echo "${ECHO_T}$cross_compiling" >&6; }
  3093 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3094 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3095 if { (ac_try="$ac_link"
  3096 case "(($ac_try" in
  3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3098   *) ac_try_echo=$ac_try;;
  3099 esac
  3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3101   (eval "$ac_link") 2>&5
  3102   ac_status=$?
  3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3104   (exit $ac_status); }; then
  3105   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3106 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3107 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3108 # `rm'.
  3109 for ac_file in conftest.exe conftest conftest.*; do
  3110   test -f "$ac_file" || continue
  3111   case $ac_file in
  3112     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3113     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3114 	  break;;
  3115     * ) break;;
  3116   esac
  3117 done
  3118 else
  3119   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3120 See \`config.log' for more details." >&5
  3121 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3122 See \`config.log' for more details." >&2;}
  3123    { (exit 1); exit 1; }; }
  3124 fi
  3126 rm -f conftest$ac_cv_exeext
  3127 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3128 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3130 rm -f conftest.$ac_ext
  3131 EXEEXT=$ac_cv_exeext
  3132 ac_exeext=$EXEEXT
  3133 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3134 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3135 if test "${ac_cv_objext+set}" = set; then
  3136   echo $ECHO_N "(cached) $ECHO_C" >&6
  3137 else
  3138   cat >conftest.$ac_ext <<_ACEOF
  3139 /* confdefs.h.  */
  3140 _ACEOF
  3141 cat confdefs.h >>conftest.$ac_ext
  3142 cat >>conftest.$ac_ext <<_ACEOF
  3143 /* end confdefs.h.  */
  3145 int
  3146 main ()
  3150   return 0;
  3152 _ACEOF
  3153 rm -f conftest.o conftest.obj
  3154 if { (ac_try="$ac_compile"
  3155 case "(($ac_try" in
  3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3157   *) ac_try_echo=$ac_try;;
  3158 esac
  3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3160   (eval "$ac_compile") 2>&5
  3161   ac_status=$?
  3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3163   (exit $ac_status); }; then
  3164   for ac_file in conftest.o conftest.obj conftest.*; do
  3165   test -f "$ac_file" || continue;
  3166   case $ac_file in
  3167     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3168     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3169        break;;
  3170   esac
  3171 done
  3172 else
  3173   echo "$as_me: failed program was:" >&5
  3174 sed 's/^/| /' conftest.$ac_ext >&5
  3176 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3177 See \`config.log' for more details." >&5
  3178 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3179 See \`config.log' for more details." >&2;}
  3180    { (exit 1); exit 1; }; }
  3181 fi
  3183 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3184 fi
  3185 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3186 echo "${ECHO_T}$ac_cv_objext" >&6; }
  3187 OBJEXT=$ac_cv_objext
  3188 ac_objext=$OBJEXT
  3189 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3190 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3191 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3192   echo $ECHO_N "(cached) $ECHO_C" >&6
  3193 else
  3194   cat >conftest.$ac_ext <<_ACEOF
  3195 /* confdefs.h.  */
  3196 _ACEOF
  3197 cat confdefs.h >>conftest.$ac_ext
  3198 cat >>conftest.$ac_ext <<_ACEOF
  3199 /* end confdefs.h.  */
  3201 int
  3202 main ()
  3204 #ifndef __GNUC__
  3205        choke me
  3206 #endif
  3209   return 0;
  3211 _ACEOF
  3212 rm -f conftest.$ac_objext
  3213 if { (ac_try="$ac_compile"
  3214 case "(($ac_try" in
  3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3216   *) ac_try_echo=$ac_try;;
  3217 esac
  3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3219   (eval "$ac_compile") 2>conftest.er1
  3220   ac_status=$?
  3221   grep -v '^ *+' conftest.er1 >conftest.err
  3222   rm -f conftest.er1
  3223   cat conftest.err >&5
  3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3225   (exit $ac_status); } && {
  3226 	 test -z "$ac_c_werror_flag" ||
  3227 	 test ! -s conftest.err
  3228        } && test -s conftest.$ac_objext; then
  3229   ac_compiler_gnu=yes
  3230 else
  3231   echo "$as_me: failed program was:" >&5
  3232 sed 's/^/| /' conftest.$ac_ext >&5
  3234 	ac_compiler_gnu=no
  3235 fi
  3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3238 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3240 fi
  3241 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3242 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3243 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3244 ac_test_CFLAGS=${CFLAGS+set}
  3245 ac_save_CFLAGS=$CFLAGS
  3246 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3247 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3248 if test "${ac_cv_prog_cc_g+set}" = set; then
  3249   echo $ECHO_N "(cached) $ECHO_C" >&6
  3250 else
  3251   ac_save_c_werror_flag=$ac_c_werror_flag
  3252    ac_c_werror_flag=yes
  3253    ac_cv_prog_cc_g=no
  3254    CFLAGS="-g"
  3255    cat >conftest.$ac_ext <<_ACEOF
  3256 /* confdefs.h.  */
  3257 _ACEOF
  3258 cat confdefs.h >>conftest.$ac_ext
  3259 cat >>conftest.$ac_ext <<_ACEOF
  3260 /* end confdefs.h.  */
  3262 int
  3263 main ()
  3267   return 0;
  3269 _ACEOF
  3270 rm -f conftest.$ac_objext
  3271 if { (ac_try="$ac_compile"
  3272 case "(($ac_try" in
  3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3274   *) ac_try_echo=$ac_try;;
  3275 esac
  3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3277   (eval "$ac_compile") 2>conftest.er1
  3278   ac_status=$?
  3279   grep -v '^ *+' conftest.er1 >conftest.err
  3280   rm -f conftest.er1
  3281   cat conftest.err >&5
  3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3283   (exit $ac_status); } && {
  3284 	 test -z "$ac_c_werror_flag" ||
  3285 	 test ! -s conftest.err
  3286        } && test -s conftest.$ac_objext; then
  3287   ac_cv_prog_cc_g=yes
  3288 else
  3289   echo "$as_me: failed program was:" >&5
  3290 sed 's/^/| /' conftest.$ac_ext >&5
  3292 	CFLAGS=""
  3293       cat >conftest.$ac_ext <<_ACEOF
  3294 /* confdefs.h.  */
  3295 _ACEOF
  3296 cat confdefs.h >>conftest.$ac_ext
  3297 cat >>conftest.$ac_ext <<_ACEOF
  3298 /* end confdefs.h.  */
  3300 int
  3301 main ()
  3305   return 0;
  3307 _ACEOF
  3308 rm -f conftest.$ac_objext
  3309 if { (ac_try="$ac_compile"
  3310 case "(($ac_try" in
  3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3312   *) ac_try_echo=$ac_try;;
  3313 esac
  3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3315   (eval "$ac_compile") 2>conftest.er1
  3316   ac_status=$?
  3317   grep -v '^ *+' conftest.er1 >conftest.err
  3318   rm -f conftest.er1
  3319   cat conftest.err >&5
  3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3321   (exit $ac_status); } && {
  3322 	 test -z "$ac_c_werror_flag" ||
  3323 	 test ! -s conftest.err
  3324        } && test -s conftest.$ac_objext; then
  3326 else
  3327   echo "$as_me: failed program was:" >&5
  3328 sed 's/^/| /' conftest.$ac_ext >&5
  3330 	ac_c_werror_flag=$ac_save_c_werror_flag
  3331 	 CFLAGS="-g"
  3332 	 cat >conftest.$ac_ext <<_ACEOF
  3333 /* confdefs.h.  */
  3334 _ACEOF
  3335 cat confdefs.h >>conftest.$ac_ext
  3336 cat >>conftest.$ac_ext <<_ACEOF
  3337 /* end confdefs.h.  */
  3339 int
  3340 main ()
  3344   return 0;
  3346 _ACEOF
  3347 rm -f conftest.$ac_objext
  3348 if { (ac_try="$ac_compile"
  3349 case "(($ac_try" in
  3350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3351   *) ac_try_echo=$ac_try;;
  3352 esac
  3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3354   (eval "$ac_compile") 2>conftest.er1
  3355   ac_status=$?
  3356   grep -v '^ *+' conftest.er1 >conftest.err
  3357   rm -f conftest.er1
  3358   cat conftest.err >&5
  3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3360   (exit $ac_status); } && {
  3361 	 test -z "$ac_c_werror_flag" ||
  3362 	 test ! -s conftest.err
  3363        } && test -s conftest.$ac_objext; then
  3364   ac_cv_prog_cc_g=yes
  3365 else
  3366   echo "$as_me: failed program was:" >&5
  3367 sed 's/^/| /' conftest.$ac_ext >&5
  3370 fi
  3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3373 fi
  3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3376 fi
  3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3379    ac_c_werror_flag=$ac_save_c_werror_flag
  3380 fi
  3381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3382 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3383 if test "$ac_test_CFLAGS" = set; then
  3384   CFLAGS=$ac_save_CFLAGS
  3385 elif test $ac_cv_prog_cc_g = yes; then
  3386   if test "$GCC" = yes; then
  3387     CFLAGS="-g -O2"
  3388   else
  3389     CFLAGS="-g"
  3390   fi
  3391 else
  3392   if test "$GCC" = yes; then
  3393     CFLAGS="-O2"
  3394   else
  3395     CFLAGS=
  3396   fi
  3397 fi
  3398 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3399 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3400 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3401   echo $ECHO_N "(cached) $ECHO_C" >&6
  3402 else
  3403   ac_cv_prog_cc_c89=no
  3404 ac_save_CC=$CC
  3405 cat >conftest.$ac_ext <<_ACEOF
  3406 /* confdefs.h.  */
  3407 _ACEOF
  3408 cat confdefs.h >>conftest.$ac_ext
  3409 cat >>conftest.$ac_ext <<_ACEOF
  3410 /* end confdefs.h.  */
  3411 #include <stdarg.h>
  3412 #include <stdio.h>
  3413 #include <sys/types.h>
  3414 #include <sys/stat.h>
  3415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3416 struct buf { int x; };
  3417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3418 static char *e (p, i)
  3419      char **p;
  3420      int i;
  3422   return p[i];
  3424 static char *f (char * (*g) (char **, int), char **p, ...)
  3426   char *s;
  3427   va_list v;
  3428   va_start (v,p);
  3429   s = g (p, va_arg (v,int));
  3430   va_end (v);
  3431   return s;
  3434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3435    function prototypes and stuff, but not '\xHH' hex character constants.
  3436    These don't provoke an error unfortunately, instead are silently treated
  3437    as 'x'.  The following induces an error, until -std is added to get
  3438    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3439    array size at least.  It's necessary to write '\x00'==0 to get something
  3440    that's true only with -std.  */
  3441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3444    inside strings and character constants.  */
  3445 #define FOO(x) 'x'
  3446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3448 int test (int i, double x);
  3449 struct s1 {int (*f) (int a);};
  3450 struct s2 {int (*f) (double a);};
  3451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3452 int argc;
  3453 char **argv;
  3454 int
  3455 main ()
  3457 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3459   return 0;
  3461 _ACEOF
  3462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3463 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3464 do
  3465   CC="$ac_save_CC $ac_arg"
  3466   rm -f conftest.$ac_objext
  3467 if { (ac_try="$ac_compile"
  3468 case "(($ac_try" in
  3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3470   *) ac_try_echo=$ac_try;;
  3471 esac
  3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3473   (eval "$ac_compile") 2>conftest.er1
  3474   ac_status=$?
  3475   grep -v '^ *+' conftest.er1 >conftest.err
  3476   rm -f conftest.er1
  3477   cat conftest.err >&5
  3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3479   (exit $ac_status); } && {
  3480 	 test -z "$ac_c_werror_flag" ||
  3481 	 test ! -s conftest.err
  3482        } && test -s conftest.$ac_objext; then
  3483   ac_cv_prog_cc_c89=$ac_arg
  3484 else
  3485   echo "$as_me: failed program was:" >&5
  3486 sed 's/^/| /' conftest.$ac_ext >&5
  3489 fi
  3491 rm -f core conftest.err conftest.$ac_objext
  3492   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3493 done
  3494 rm -f conftest.$ac_ext
  3495 CC=$ac_save_CC
  3497 fi
  3498 # AC_CACHE_VAL
  3499 case "x$ac_cv_prog_cc_c89" in
  3500   x)
  3501     { echo "$as_me:$LINENO: result: none needed" >&5
  3502 echo "${ECHO_T}none needed" >&6; } ;;
  3503   xno)
  3504     { echo "$as_me:$LINENO: result: unsupported" >&5
  3505 echo "${ECHO_T}unsupported" >&6; } ;;
  3506   *)
  3507     CC="$CC $ac_cv_prog_cc_c89"
  3508     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3509 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3510 esac
  3513 ac_ext=c
  3514 ac_cpp='$CPP $CPPFLAGS'
  3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3519 depcc="$CC"   am_compiler_list=
  3521 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3522 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3523 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3524   echo $ECHO_N "(cached) $ECHO_C" >&6
  3525 else
  3526   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3527   # We make a subdir and do the tests there.  Otherwise we can end up
  3528   # making bogus files that we don't know about and never remove.  For
  3529   # instance it was reported that on HP-UX the gcc test will end up
  3530   # making a dummy file named `D' -- because `-MD' means `put the output
  3531   # in D'.
  3532   mkdir conftest.dir
  3533   # Copy depcomp to subdir because otherwise we won't find it if we're
  3534   # using a relative directory.
  3535   cp "$am_depcomp" conftest.dir
  3536   cd conftest.dir
  3537   # We will build objects and dependencies in a subdirectory because
  3538   # it helps to detect inapplicable dependency modes.  For instance
  3539   # both Tru64's cc and ICC support -MD to output dependencies as a
  3540   # side effect of compilation, but ICC will put the dependencies in
  3541   # the current directory while Tru64 will put them in the object
  3542   # directory.
  3543   mkdir sub
  3545   am_cv_CC_dependencies_compiler_type=none
  3546   if test "$am_compiler_list" = ""; then
  3547      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3548   fi
  3549   for depmode in $am_compiler_list; do
  3550     # Setup a source with many dependencies, because some compilers
  3551     # like to wrap large dependency lists on column 80 (with \), and
  3552     # we should not choose a depcomp mode which is confused by this.
  3554     # We need to recreate these files for each test, as the compiler may
  3555     # overwrite some of them when testing with obscure command lines.
  3556     # This happens at least with the AIX C compiler.
  3557     : > sub/conftest.c
  3558     for i in 1 2 3 4 5 6; do
  3559       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3560       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3561       # Solaris 8's {/usr,}/bin/sh.
  3562       touch sub/conftst$i.h
  3563     done
  3564     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3566     case $depmode in
  3567     nosideeffect)
  3568       # after this tag, mechanisms are not by side-effect, so they'll
  3569       # only be used when explicitly requested
  3570       if test "x$enable_dependency_tracking" = xyes; then
  3571 	continue
  3572       else
  3573 	break
  3574       fi
  3575       ;;
  3576     none) break ;;
  3577     esac
  3578     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3579     # mode.  It turns out that the SunPro C++ compiler does not properly
  3580     # handle `-M -o', and we need to detect this.
  3581     if depmode=$depmode \
  3582        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3583        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3584        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3585          >/dev/null 2>conftest.err &&
  3586        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3587        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3588        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3589       # icc doesn't choke on unknown options, it will just issue warnings
  3590       # or remarks (even with -Werror).  So we grep stderr for any message
  3591       # that says an option was ignored or not supported.
  3592       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3593       #   icc: Command line warning: ignoring option '-M'; no argument required
  3594       # The diagnosis changed in icc 8.0:
  3595       #   icc: Command line remark: option '-MP' not supported
  3596       if (grep 'ignoring option' conftest.err ||
  3597           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3598         am_cv_CC_dependencies_compiler_type=$depmode
  3599         break
  3600       fi
  3601     fi
  3602   done
  3604   cd ..
  3605   rm -rf conftest.dir
  3606 else
  3607   am_cv_CC_dependencies_compiler_type=none
  3608 fi
  3610 fi
  3611 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3612 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3613 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3617 if
  3618   test "x$enable_dependency_tracking" != xno \
  3619   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3620   am__fastdepCC_TRUE=
  3621   am__fastdepCC_FALSE='#'
  3622 else
  3623   am__fastdepCC_TRUE='#'
  3624   am__fastdepCC_FALSE=
  3625 fi
  3630         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3631 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  3632 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3633   echo $ECHO_N "(cached) $ECHO_C" >&6
  3634 else
  3635   ac_check_lib_save_LIBS=$LIBS
  3636 LIBS="-lcposix  $LIBS"
  3637 cat >conftest.$ac_ext <<_ACEOF
  3638 /* confdefs.h.  */
  3639 _ACEOF
  3640 cat confdefs.h >>conftest.$ac_ext
  3641 cat >>conftest.$ac_ext <<_ACEOF
  3642 /* end confdefs.h.  */
  3644 /* Override any GCC internal prototype to avoid an error.
  3645    Use char because int might match the return type of a GCC
  3646    builtin and then its argument prototype would still apply.  */
  3647 #ifdef __cplusplus
  3648 extern "C"
  3649 #endif
  3650 char strerror ();
  3651 int
  3652 main ()
  3654 return strerror ();
  3656   return 0;
  3658 _ACEOF
  3659 rm -f conftest.$ac_objext conftest$ac_exeext
  3660 if { (ac_try="$ac_link"
  3661 case "(($ac_try" in
  3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3663   *) ac_try_echo=$ac_try;;
  3664 esac
  3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3666   (eval "$ac_link") 2>conftest.er1
  3667   ac_status=$?
  3668   grep -v '^ *+' conftest.er1 >conftest.err
  3669   rm -f conftest.er1
  3670   cat conftest.err >&5
  3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3672   (exit $ac_status); } && {
  3673 	 test -z "$ac_c_werror_flag" ||
  3674 	 test ! -s conftest.err
  3675        } && test -s conftest$ac_exeext &&
  3676        $as_test_x conftest$ac_exeext; then
  3677   ac_cv_lib_cposix_strerror=yes
  3678 else
  3679   echo "$as_me: failed program was:" >&5
  3680 sed 's/^/| /' conftest.$ac_ext >&5
  3682 	ac_cv_lib_cposix_strerror=no
  3683 fi
  3685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3686       conftest$ac_exeext conftest.$ac_ext
  3687 LIBS=$ac_check_lib_save_LIBS
  3688 fi
  3689 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3690 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  3691 if test $ac_cv_lib_cposix_strerror = yes; then
  3692   LIBS="$LIBS -lcposix"
  3693 fi
  3697 ac_ext=c
  3698 ac_cpp='$CPP $CPPFLAGS'
  3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3702 if test -n "$ac_tool_prefix"; then
  3703   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3704 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3707 if test "${ac_cv_prog_CC+set}" = set; then
  3708   echo $ECHO_N "(cached) $ECHO_C" >&6
  3709 else
  3710   if test -n "$CC"; then
  3711   ac_cv_prog_CC="$CC" # Let the user override the test.
  3712 else
  3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3714 for as_dir in $PATH
  3715 do
  3716   IFS=$as_save_IFS
  3717   test -z "$as_dir" && as_dir=.
  3718   for ac_exec_ext in '' $ac_executable_extensions; do
  3719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3720     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3722     break 2
  3723   fi
  3724 done
  3725 done
  3726 IFS=$as_save_IFS
  3728 fi
  3729 fi
  3730 CC=$ac_cv_prog_CC
  3731 if test -n "$CC"; then
  3732   { echo "$as_me:$LINENO: result: $CC" >&5
  3733 echo "${ECHO_T}$CC" >&6; }
  3734 else
  3735   { echo "$as_me:$LINENO: result: no" >&5
  3736 echo "${ECHO_T}no" >&6; }
  3737 fi
  3740 fi
  3741 if test -z "$ac_cv_prog_CC"; then
  3742   ac_ct_CC=$CC
  3743   # Extract the first word of "gcc", so it can be a program name with args.
  3744 set dummy gcc; ac_word=$2
  3745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3748   echo $ECHO_N "(cached) $ECHO_C" >&6
  3749 else
  3750   if test -n "$ac_ct_CC"; then
  3751   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3752 else
  3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3754 for as_dir in $PATH
  3755 do
  3756   IFS=$as_save_IFS
  3757   test -z "$as_dir" && as_dir=.
  3758   for ac_exec_ext in '' $ac_executable_extensions; do
  3759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3760     ac_cv_prog_ac_ct_CC="gcc"
  3761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3762     break 2
  3763   fi
  3764 done
  3765 done
  3766 IFS=$as_save_IFS
  3768 fi
  3769 fi
  3770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3771 if test -n "$ac_ct_CC"; then
  3772   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3773 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3774 else
  3775   { echo "$as_me:$LINENO: result: no" >&5
  3776 echo "${ECHO_T}no" >&6; }
  3777 fi
  3779   if test "x$ac_ct_CC" = x; then
  3780     CC=""
  3781   else
  3782     case $cross_compiling:$ac_tool_warned in
  3783 yes:)
  3784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3785 whose name does not start with the host triplet.  If you think this
  3786 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3788 whose name does not start with the host triplet.  If you think this
  3789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3790 ac_tool_warned=yes ;;
  3791 esac
  3792     CC=$ac_ct_CC
  3793   fi
  3794 else
  3795   CC="$ac_cv_prog_CC"
  3796 fi
  3798 if test -z "$CC"; then
  3799           if test -n "$ac_tool_prefix"; then
  3800     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3801 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3804 if test "${ac_cv_prog_CC+set}" = set; then
  3805   echo $ECHO_N "(cached) $ECHO_C" >&6
  3806 else
  3807   if test -n "$CC"; then
  3808   ac_cv_prog_CC="$CC" # Let the user override the test.
  3809 else
  3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3811 for as_dir in $PATH
  3812 do
  3813   IFS=$as_save_IFS
  3814   test -z "$as_dir" && as_dir=.
  3815   for ac_exec_ext in '' $ac_executable_extensions; do
  3816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3817     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3819     break 2
  3820   fi
  3821 done
  3822 done
  3823 IFS=$as_save_IFS
  3825 fi
  3826 fi
  3827 CC=$ac_cv_prog_CC
  3828 if test -n "$CC"; then
  3829   { echo "$as_me:$LINENO: result: $CC" >&5
  3830 echo "${ECHO_T}$CC" >&6; }
  3831 else
  3832   { echo "$as_me:$LINENO: result: no" >&5
  3833 echo "${ECHO_T}no" >&6; }
  3834 fi
  3837   fi
  3838 fi
  3839 if test -z "$CC"; then
  3840   # Extract the first word of "cc", so it can be a program name with args.
  3841 set dummy cc; ac_word=$2
  3842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3844 if test "${ac_cv_prog_CC+set}" = set; then
  3845   echo $ECHO_N "(cached) $ECHO_C" >&6
  3846 else
  3847   if test -n "$CC"; then
  3848   ac_cv_prog_CC="$CC" # Let the user override the test.
  3849 else
  3850   ac_prog_rejected=no
  3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3852 for as_dir in $PATH
  3853 do
  3854   IFS=$as_save_IFS
  3855   test -z "$as_dir" && as_dir=.
  3856   for ac_exec_ext in '' $ac_executable_extensions; do
  3857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3858     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3859        ac_prog_rejected=yes
  3860        continue
  3861      fi
  3862     ac_cv_prog_CC="cc"
  3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3864     break 2
  3865   fi
  3866 done
  3867 done
  3868 IFS=$as_save_IFS
  3870 if test $ac_prog_rejected = yes; then
  3871   # We found a bogon in the path, so make sure we never use it.
  3872   set dummy $ac_cv_prog_CC
  3873   shift
  3874   if test $# != 0; then
  3875     # We chose a different compiler from the bogus one.
  3876     # However, it has the same basename, so the bogon will be chosen
  3877     # first if we set CC to just the basename; use the full file name.
  3878     shift
  3879     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3880   fi
  3881 fi
  3882 fi
  3883 fi
  3884 CC=$ac_cv_prog_CC
  3885 if test -n "$CC"; then
  3886   { echo "$as_me:$LINENO: result: $CC" >&5
  3887 echo "${ECHO_T}$CC" >&6; }
  3888 else
  3889   { echo "$as_me:$LINENO: result: no" >&5
  3890 echo "${ECHO_T}no" >&6; }
  3891 fi
  3894 fi
  3895 if test -z "$CC"; then
  3896   if test -n "$ac_tool_prefix"; then
  3897   for ac_prog in cl.exe
  3898   do
  3899     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3903 if test "${ac_cv_prog_CC+set}" = set; then
  3904   echo $ECHO_N "(cached) $ECHO_C" >&6
  3905 else
  3906   if test -n "$CC"; then
  3907   ac_cv_prog_CC="$CC" # Let the user override the test.
  3908 else
  3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3910 for as_dir in $PATH
  3911 do
  3912   IFS=$as_save_IFS
  3913   test -z "$as_dir" && as_dir=.
  3914   for ac_exec_ext in '' $ac_executable_extensions; do
  3915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3916     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3918     break 2
  3919   fi
  3920 done
  3921 done
  3922 IFS=$as_save_IFS
  3924 fi
  3925 fi
  3926 CC=$ac_cv_prog_CC
  3927 if test -n "$CC"; then
  3928   { echo "$as_me:$LINENO: result: $CC" >&5
  3929 echo "${ECHO_T}$CC" >&6; }
  3930 else
  3931   { echo "$as_me:$LINENO: result: no" >&5
  3932 echo "${ECHO_T}no" >&6; }
  3933 fi
  3936     test -n "$CC" && break
  3937   done
  3938 fi
  3939 if test -z "$CC"; then
  3940   ac_ct_CC=$CC
  3941   for ac_prog in cl.exe
  3942 do
  3943   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3944 set dummy $ac_prog; ac_word=$2
  3945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3948   echo $ECHO_N "(cached) $ECHO_C" >&6
  3949 else
  3950   if test -n "$ac_ct_CC"; then
  3951   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3952 else
  3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3954 for as_dir in $PATH
  3955 do
  3956   IFS=$as_save_IFS
  3957   test -z "$as_dir" && as_dir=.
  3958   for ac_exec_ext in '' $ac_executable_extensions; do
  3959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3960     ac_cv_prog_ac_ct_CC="$ac_prog"
  3961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3962     break 2
  3963   fi
  3964 done
  3965 done
  3966 IFS=$as_save_IFS
  3968 fi
  3969 fi
  3970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3971 if test -n "$ac_ct_CC"; then
  3972   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3973 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3974 else
  3975   { echo "$as_me:$LINENO: result: no" >&5
  3976 echo "${ECHO_T}no" >&6; }
  3977 fi
  3980   test -n "$ac_ct_CC" && break
  3981 done
  3983   if test "x$ac_ct_CC" = x; then
  3984     CC=""
  3985   else
  3986     case $cross_compiling:$ac_tool_warned in
  3987 yes:)
  3988 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3989 whose name does not start with the host triplet.  If you think this
  3990 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3991 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3992 whose name does not start with the host triplet.  If you think this
  3993 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3994 ac_tool_warned=yes ;;
  3995 esac
  3996     CC=$ac_ct_CC
  3997   fi
  3998 fi
  4000 fi
  4003 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4004 See \`config.log' for more details." >&5
  4005 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4006 See \`config.log' for more details." >&2;}
  4007    { (exit 1); exit 1; }; }
  4009 # Provide some information about the compiler.
  4010 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4011 ac_compiler=`set X $ac_compile; echo $2`
  4012 { (ac_try="$ac_compiler --version >&5"
  4013 case "(($ac_try" in
  4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4015   *) ac_try_echo=$ac_try;;
  4016 esac
  4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4018   (eval "$ac_compiler --version >&5") 2>&5
  4019   ac_status=$?
  4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4021   (exit $ac_status); }
  4022 { (ac_try="$ac_compiler -v >&5"
  4023 case "(($ac_try" in
  4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4025   *) ac_try_echo=$ac_try;;
  4026 esac
  4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4028   (eval "$ac_compiler -v >&5") 2>&5
  4029   ac_status=$?
  4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031   (exit $ac_status); }
  4032 { (ac_try="$ac_compiler -V >&5"
  4033 case "(($ac_try" in
  4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4035   *) ac_try_echo=$ac_try;;
  4036 esac
  4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4038   (eval "$ac_compiler -V >&5") 2>&5
  4039   ac_status=$?
  4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4041   (exit $ac_status); }
  4043 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4044 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4045 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4046   echo $ECHO_N "(cached) $ECHO_C" >&6
  4047 else
  4048   cat >conftest.$ac_ext <<_ACEOF
  4049 /* confdefs.h.  */
  4050 _ACEOF
  4051 cat confdefs.h >>conftest.$ac_ext
  4052 cat >>conftest.$ac_ext <<_ACEOF
  4053 /* end confdefs.h.  */
  4055 int
  4056 main ()
  4058 #ifndef __GNUC__
  4059        choke me
  4060 #endif
  4063   return 0;
  4065 _ACEOF
  4066 rm -f conftest.$ac_objext
  4067 if { (ac_try="$ac_compile"
  4068 case "(($ac_try" in
  4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4070   *) ac_try_echo=$ac_try;;
  4071 esac
  4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4073   (eval "$ac_compile") 2>conftest.er1
  4074   ac_status=$?
  4075   grep -v '^ *+' conftest.er1 >conftest.err
  4076   rm -f conftest.er1
  4077   cat conftest.err >&5
  4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4079   (exit $ac_status); } && {
  4080 	 test -z "$ac_c_werror_flag" ||
  4081 	 test ! -s conftest.err
  4082        } && test -s conftest.$ac_objext; then
  4083   ac_compiler_gnu=yes
  4084 else
  4085   echo "$as_me: failed program was:" >&5
  4086 sed 's/^/| /' conftest.$ac_ext >&5
  4088 	ac_compiler_gnu=no
  4089 fi
  4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4092 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4094 fi
  4095 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4096 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4097 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4098 ac_test_CFLAGS=${CFLAGS+set}
  4099 ac_save_CFLAGS=$CFLAGS
  4100 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4101 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4102 if test "${ac_cv_prog_cc_g+set}" = set; then
  4103   echo $ECHO_N "(cached) $ECHO_C" >&6
  4104 else
  4105   ac_save_c_werror_flag=$ac_c_werror_flag
  4106    ac_c_werror_flag=yes
  4107    ac_cv_prog_cc_g=no
  4108    CFLAGS="-g"
  4109    cat >conftest.$ac_ext <<_ACEOF
  4110 /* confdefs.h.  */
  4111 _ACEOF
  4112 cat confdefs.h >>conftest.$ac_ext
  4113 cat >>conftest.$ac_ext <<_ACEOF
  4114 /* end confdefs.h.  */
  4116 int
  4117 main ()
  4121   return 0;
  4123 _ACEOF
  4124 rm -f conftest.$ac_objext
  4125 if { (ac_try="$ac_compile"
  4126 case "(($ac_try" in
  4127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4128   *) ac_try_echo=$ac_try;;
  4129 esac
  4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4131   (eval "$ac_compile") 2>conftest.er1
  4132   ac_status=$?
  4133   grep -v '^ *+' conftest.er1 >conftest.err
  4134   rm -f conftest.er1
  4135   cat conftest.err >&5
  4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4137   (exit $ac_status); } && {
  4138 	 test -z "$ac_c_werror_flag" ||
  4139 	 test ! -s conftest.err
  4140        } && test -s conftest.$ac_objext; then
  4141   ac_cv_prog_cc_g=yes
  4142 else
  4143   echo "$as_me: failed program was:" >&5
  4144 sed 's/^/| /' conftest.$ac_ext >&5
  4146 	CFLAGS=""
  4147       cat >conftest.$ac_ext <<_ACEOF
  4148 /* confdefs.h.  */
  4149 _ACEOF
  4150 cat confdefs.h >>conftest.$ac_ext
  4151 cat >>conftest.$ac_ext <<_ACEOF
  4152 /* end confdefs.h.  */
  4154 int
  4155 main ()
  4159   return 0;
  4161 _ACEOF
  4162 rm -f conftest.$ac_objext
  4163 if { (ac_try="$ac_compile"
  4164 case "(($ac_try" in
  4165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4166   *) ac_try_echo=$ac_try;;
  4167 esac
  4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4169   (eval "$ac_compile") 2>conftest.er1
  4170   ac_status=$?
  4171   grep -v '^ *+' conftest.er1 >conftest.err
  4172   rm -f conftest.er1
  4173   cat conftest.err >&5
  4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4175   (exit $ac_status); } && {
  4176 	 test -z "$ac_c_werror_flag" ||
  4177 	 test ! -s conftest.err
  4178        } && test -s conftest.$ac_objext; then
  4180 else
  4181   echo "$as_me: failed program was:" >&5
  4182 sed 's/^/| /' conftest.$ac_ext >&5
  4184 	ac_c_werror_flag=$ac_save_c_werror_flag
  4185 	 CFLAGS="-g"
  4186 	 cat >conftest.$ac_ext <<_ACEOF
  4187 /* confdefs.h.  */
  4188 _ACEOF
  4189 cat confdefs.h >>conftest.$ac_ext
  4190 cat >>conftest.$ac_ext <<_ACEOF
  4191 /* end confdefs.h.  */
  4193 int
  4194 main ()
  4198   return 0;
  4200 _ACEOF
  4201 rm -f conftest.$ac_objext
  4202 if { (ac_try="$ac_compile"
  4203 case "(($ac_try" in
  4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4205   *) ac_try_echo=$ac_try;;
  4206 esac
  4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4208   (eval "$ac_compile") 2>conftest.er1
  4209   ac_status=$?
  4210   grep -v '^ *+' conftest.er1 >conftest.err
  4211   rm -f conftest.er1
  4212   cat conftest.err >&5
  4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4214   (exit $ac_status); } && {
  4215 	 test -z "$ac_c_werror_flag" ||
  4216 	 test ! -s conftest.err
  4217        } && test -s conftest.$ac_objext; then
  4218   ac_cv_prog_cc_g=yes
  4219 else
  4220   echo "$as_me: failed program was:" >&5
  4221 sed 's/^/| /' conftest.$ac_ext >&5
  4224 fi
  4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4227 fi
  4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4230 fi
  4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4233    ac_c_werror_flag=$ac_save_c_werror_flag
  4234 fi
  4235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4236 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4237 if test "$ac_test_CFLAGS" = set; then
  4238   CFLAGS=$ac_save_CFLAGS
  4239 elif test $ac_cv_prog_cc_g = yes; then
  4240   if test "$GCC" = yes; then
  4241     CFLAGS="-g -O2"
  4242   else
  4243     CFLAGS="-g"
  4244   fi
  4245 else
  4246   if test "$GCC" = yes; then
  4247     CFLAGS="-O2"
  4248   else
  4249     CFLAGS=
  4250   fi
  4251 fi
  4252 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4253 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4254 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4255   echo $ECHO_N "(cached) $ECHO_C" >&6
  4256 else
  4257   ac_cv_prog_cc_c89=no
  4258 ac_save_CC=$CC
  4259 cat >conftest.$ac_ext <<_ACEOF
  4260 /* confdefs.h.  */
  4261 _ACEOF
  4262 cat confdefs.h >>conftest.$ac_ext
  4263 cat >>conftest.$ac_ext <<_ACEOF
  4264 /* end confdefs.h.  */
  4265 #include <stdarg.h>
  4266 #include <stdio.h>
  4267 #include <sys/types.h>
  4268 #include <sys/stat.h>
  4269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4270 struct buf { int x; };
  4271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4272 static char *e (p, i)
  4273      char **p;
  4274      int i;
  4276   return p[i];
  4278 static char *f (char * (*g) (char **, int), char **p, ...)
  4280   char *s;
  4281   va_list v;
  4282   va_start (v,p);
  4283   s = g (p, va_arg (v,int));
  4284   va_end (v);
  4285   return s;
  4288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4289    function prototypes and stuff, but not '\xHH' hex character constants.
  4290    These don't provoke an error unfortunately, instead are silently treated
  4291    as 'x'.  The following induces an error, until -std is added to get
  4292    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4293    array size at least.  It's necessary to write '\x00'==0 to get something
  4294    that's true only with -std.  */
  4295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4298    inside strings and character constants.  */
  4299 #define FOO(x) 'x'
  4300 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4302 int test (int i, double x);
  4303 struct s1 {int (*f) (int a);};
  4304 struct s2 {int (*f) (double a);};
  4305 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4306 int argc;
  4307 char **argv;
  4308 int
  4309 main ()
  4311 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4313   return 0;
  4315 _ACEOF
  4316 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4317 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4318 do
  4319   CC="$ac_save_CC $ac_arg"
  4320   rm -f conftest.$ac_objext
  4321 if { (ac_try="$ac_compile"
  4322 case "(($ac_try" in
  4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4324   *) ac_try_echo=$ac_try;;
  4325 esac
  4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4327   (eval "$ac_compile") 2>conftest.er1
  4328   ac_status=$?
  4329   grep -v '^ *+' conftest.er1 >conftest.err
  4330   rm -f conftest.er1
  4331   cat conftest.err >&5
  4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4333   (exit $ac_status); } && {
  4334 	 test -z "$ac_c_werror_flag" ||
  4335 	 test ! -s conftest.err
  4336        } && test -s conftest.$ac_objext; then
  4337   ac_cv_prog_cc_c89=$ac_arg
  4338 else
  4339   echo "$as_me: failed program was:" >&5
  4340 sed 's/^/| /' conftest.$ac_ext >&5
  4343 fi
  4345 rm -f core conftest.err conftest.$ac_objext
  4346   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4347 done
  4348 rm -f conftest.$ac_ext
  4349 CC=$ac_save_CC
  4351 fi
  4352 # AC_CACHE_VAL
  4353 case "x$ac_cv_prog_cc_c89" in
  4354   x)
  4355     { echo "$as_me:$LINENO: result: none needed" >&5
  4356 echo "${ECHO_T}none needed" >&6; } ;;
  4357   xno)
  4358     { echo "$as_me:$LINENO: result: unsupported" >&5
  4359 echo "${ECHO_T}unsupported" >&6; } ;;
  4360   *)
  4361     CC="$CC $ac_cv_prog_cc_c89"
  4362     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4363 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4364 esac
  4367 ac_ext=c
  4368 ac_cpp='$CPP $CPPFLAGS'
  4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4373 depcc="$CC"   am_compiler_list=
  4375 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4376 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4377 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4378   echo $ECHO_N "(cached) $ECHO_C" >&6
  4379 else
  4380   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4381   # We make a subdir and do the tests there.  Otherwise we can end up
  4382   # making bogus files that we don't know about and never remove.  For
  4383   # instance it was reported that on HP-UX the gcc test will end up
  4384   # making a dummy file named `D' -- because `-MD' means `put the output
  4385   # in D'.
  4386   mkdir conftest.dir
  4387   # Copy depcomp to subdir because otherwise we won't find it if we're
  4388   # using a relative directory.
  4389   cp "$am_depcomp" conftest.dir
  4390   cd conftest.dir
  4391   # We will build objects and dependencies in a subdirectory because
  4392   # it helps to detect inapplicable dependency modes.  For instance
  4393   # both Tru64's cc and ICC support -MD to output dependencies as a
  4394   # side effect of compilation, but ICC will put the dependencies in
  4395   # the current directory while Tru64 will put them in the object
  4396   # directory.
  4397   mkdir sub
  4399   am_cv_CC_dependencies_compiler_type=none
  4400   if test "$am_compiler_list" = ""; then
  4401      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4402   fi
  4403   for depmode in $am_compiler_list; do
  4404     # Setup a source with many dependencies, because some compilers
  4405     # like to wrap large dependency lists on column 80 (with \), and
  4406     # we should not choose a depcomp mode which is confused by this.
  4408     # We need to recreate these files for each test, as the compiler may
  4409     # overwrite some of them when testing with obscure command lines.
  4410     # This happens at least with the AIX C compiler.
  4411     : > sub/conftest.c
  4412     for i in 1 2 3 4 5 6; do
  4413       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4414       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4415       # Solaris 8's {/usr,}/bin/sh.
  4416       touch sub/conftst$i.h
  4417     done
  4418     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4420     case $depmode in
  4421     nosideeffect)
  4422       # after this tag, mechanisms are not by side-effect, so they'll
  4423       # only be used when explicitly requested
  4424       if test "x$enable_dependency_tracking" = xyes; then
  4425 	continue
  4426       else
  4427 	break
  4428       fi
  4429       ;;
  4430     none) break ;;
  4431     esac
  4432     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4433     # mode.  It turns out that the SunPro C++ compiler does not properly
  4434     # handle `-M -o', and we need to detect this.
  4435     if depmode=$depmode \
  4436        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4437        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4438        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4439          >/dev/null 2>conftest.err &&
  4440        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4441        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4442        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4443       # icc doesn't choke on unknown options, it will just issue warnings
  4444       # or remarks (even with -Werror).  So we grep stderr for any message
  4445       # that says an option was ignored or not supported.
  4446       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4447       #   icc: Command line warning: ignoring option '-M'; no argument required
  4448       # The diagnosis changed in icc 8.0:
  4449       #   icc: Command line remark: option '-MP' not supported
  4450       if (grep 'ignoring option' conftest.err ||
  4451           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4452         am_cv_CC_dependencies_compiler_type=$depmode
  4453         break
  4454       fi
  4455     fi
  4456   done
  4458   cd ..
  4459   rm -rf conftest.dir
  4460 else
  4461   am_cv_CC_dependencies_compiler_type=none
  4462 fi
  4464 fi
  4465 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4466 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4467 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4471 if
  4472   test "x$enable_dependency_tracking" != xno \
  4473   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4474   am__fastdepCC_TRUE=
  4475   am__fastdepCC_FALSE='#'
  4476 else
  4477   am__fastdepCC_TRUE='#'
  4478   am__fastdepCC_FALSE=
  4479 fi
  4482 ac_ext=c
  4483 ac_cpp='$CPP $CPPFLAGS'
  4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4487 if test -n "$ac_tool_prefix"; then
  4488   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4492 if test "${ac_cv_prog_CC+set}" = set; then
  4493   echo $ECHO_N "(cached) $ECHO_C" >&6
  4494 else
  4495   if test -n "$CC"; then
  4496   ac_cv_prog_CC="$CC" # Let the user override the test.
  4497 else
  4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4499 for as_dir in $PATH
  4500 do
  4501   IFS=$as_save_IFS
  4502   test -z "$as_dir" && as_dir=.
  4503   for ac_exec_ext in '' $ac_executable_extensions; do
  4504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4505     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4507     break 2
  4508   fi
  4509 done
  4510 done
  4511 IFS=$as_save_IFS
  4513 fi
  4514 fi
  4515 CC=$ac_cv_prog_CC
  4516 if test -n "$CC"; then
  4517   { echo "$as_me:$LINENO: result: $CC" >&5
  4518 echo "${ECHO_T}$CC" >&6; }
  4519 else
  4520   { echo "$as_me:$LINENO: result: no" >&5
  4521 echo "${ECHO_T}no" >&6; }
  4522 fi
  4525 fi
  4526 if test -z "$ac_cv_prog_CC"; then
  4527   ac_ct_CC=$CC
  4528   # Extract the first word of "gcc", so it can be a program name with args.
  4529 set dummy gcc; ac_word=$2
  4530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4533   echo $ECHO_N "(cached) $ECHO_C" >&6
  4534 else
  4535   if test -n "$ac_ct_CC"; then
  4536   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4537 else
  4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4539 for as_dir in $PATH
  4540 do
  4541   IFS=$as_save_IFS
  4542   test -z "$as_dir" && as_dir=.
  4543   for ac_exec_ext in '' $ac_executable_extensions; do
  4544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4545     ac_cv_prog_ac_ct_CC="gcc"
  4546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4547     break 2
  4548   fi
  4549 done
  4550 done
  4551 IFS=$as_save_IFS
  4553 fi
  4554 fi
  4555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4556 if test -n "$ac_ct_CC"; then
  4557   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4558 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4559 else
  4560   { echo "$as_me:$LINENO: result: no" >&5
  4561 echo "${ECHO_T}no" >&6; }
  4562 fi
  4564   if test "x$ac_ct_CC" = x; then
  4565     CC=""
  4566   else
  4567     case $cross_compiling:$ac_tool_warned in
  4568 yes:)
  4569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4570 whose name does not start with the host triplet.  If you think this
  4571 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4573 whose name does not start with the host triplet.  If you think this
  4574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4575 ac_tool_warned=yes ;;
  4576 esac
  4577     CC=$ac_ct_CC
  4578   fi
  4579 else
  4580   CC="$ac_cv_prog_CC"
  4581 fi
  4583 if test -z "$CC"; then
  4584           if test -n "$ac_tool_prefix"; then
  4585     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4586 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4589 if test "${ac_cv_prog_CC+set}" = set; then
  4590   echo $ECHO_N "(cached) $ECHO_C" >&6
  4591 else
  4592   if test -n "$CC"; then
  4593   ac_cv_prog_CC="$CC" # Let the user override the test.
  4594 else
  4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4596 for as_dir in $PATH
  4597 do
  4598   IFS=$as_save_IFS
  4599   test -z "$as_dir" && as_dir=.
  4600   for ac_exec_ext in '' $ac_executable_extensions; do
  4601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4602     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4604     break 2
  4605   fi
  4606 done
  4607 done
  4608 IFS=$as_save_IFS
  4610 fi
  4611 fi
  4612 CC=$ac_cv_prog_CC
  4613 if test -n "$CC"; then
  4614   { echo "$as_me:$LINENO: result: $CC" >&5
  4615 echo "${ECHO_T}$CC" >&6; }
  4616 else
  4617   { echo "$as_me:$LINENO: result: no" >&5
  4618 echo "${ECHO_T}no" >&6; }
  4619 fi
  4622   fi
  4623 fi
  4624 if test -z "$CC"; then
  4625   # Extract the first word of "cc", so it can be a program name with args.
  4626 set dummy cc; ac_word=$2
  4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4629 if test "${ac_cv_prog_CC+set}" = set; then
  4630   echo $ECHO_N "(cached) $ECHO_C" >&6
  4631 else
  4632   if test -n "$CC"; then
  4633   ac_cv_prog_CC="$CC" # Let the user override the test.
  4634 else
  4635   ac_prog_rejected=no
  4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4637 for as_dir in $PATH
  4638 do
  4639   IFS=$as_save_IFS
  4640   test -z "$as_dir" && as_dir=.
  4641   for ac_exec_ext in '' $ac_executable_extensions; do
  4642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4643     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4644        ac_prog_rejected=yes
  4645        continue
  4646      fi
  4647     ac_cv_prog_CC="cc"
  4648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4649     break 2
  4650   fi
  4651 done
  4652 done
  4653 IFS=$as_save_IFS
  4655 if test $ac_prog_rejected = yes; then
  4656   # We found a bogon in the path, so make sure we never use it.
  4657   set dummy $ac_cv_prog_CC
  4658   shift
  4659   if test $# != 0; then
  4660     # We chose a different compiler from the bogus one.
  4661     # However, it has the same basename, so the bogon will be chosen
  4662     # first if we set CC to just the basename; use the full file name.
  4663     shift
  4664     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4665   fi
  4666 fi
  4667 fi
  4668 fi
  4669 CC=$ac_cv_prog_CC
  4670 if test -n "$CC"; then
  4671   { echo "$as_me:$LINENO: result: $CC" >&5
  4672 echo "${ECHO_T}$CC" >&6; }
  4673 else
  4674   { echo "$as_me:$LINENO: result: no" >&5
  4675 echo "${ECHO_T}no" >&6; }
  4676 fi
  4679 fi
  4680 if test -z "$CC"; then
  4681   if test -n "$ac_tool_prefix"; then
  4682   for ac_prog in cl.exe
  4683   do
  4684     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4688 if test "${ac_cv_prog_CC+set}" = set; then
  4689   echo $ECHO_N "(cached) $ECHO_C" >&6
  4690 else
  4691   if test -n "$CC"; then
  4692   ac_cv_prog_CC="$CC" # Let the user override the test.
  4693 else
  4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695 for as_dir in $PATH
  4696 do
  4697   IFS=$as_save_IFS
  4698   test -z "$as_dir" && as_dir=.
  4699   for ac_exec_ext in '' $ac_executable_extensions; do
  4700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4701     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4703     break 2
  4704   fi
  4705 done
  4706 done
  4707 IFS=$as_save_IFS
  4709 fi
  4710 fi
  4711 CC=$ac_cv_prog_CC
  4712 if test -n "$CC"; then
  4713   { echo "$as_me:$LINENO: result: $CC" >&5
  4714 echo "${ECHO_T}$CC" >&6; }
  4715 else
  4716   { echo "$as_me:$LINENO: result: no" >&5
  4717 echo "${ECHO_T}no" >&6; }
  4718 fi
  4721     test -n "$CC" && break
  4722   done
  4723 fi
  4724 if test -z "$CC"; then
  4725   ac_ct_CC=$CC
  4726   for ac_prog in cl.exe
  4727 do
  4728   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4729 set dummy $ac_prog; ac_word=$2
  4730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4733   echo $ECHO_N "(cached) $ECHO_C" >&6
  4734 else
  4735   if test -n "$ac_ct_CC"; then
  4736   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4737 else
  4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4739 for as_dir in $PATH
  4740 do
  4741   IFS=$as_save_IFS
  4742   test -z "$as_dir" && as_dir=.
  4743   for ac_exec_ext in '' $ac_executable_extensions; do
  4744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4745     ac_cv_prog_ac_ct_CC="$ac_prog"
  4746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4747     break 2
  4748   fi
  4749 done
  4750 done
  4751 IFS=$as_save_IFS
  4753 fi
  4754 fi
  4755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4756 if test -n "$ac_ct_CC"; then
  4757   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4758 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4759 else
  4760   { echo "$as_me:$LINENO: result: no" >&5
  4761 echo "${ECHO_T}no" >&6; }
  4762 fi
  4765   test -n "$ac_ct_CC" && break
  4766 done
  4768   if test "x$ac_ct_CC" = x; then
  4769     CC=""
  4770   else
  4771     case $cross_compiling:$ac_tool_warned in
  4772 yes:)
  4773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4774 whose name does not start with the host triplet.  If you think this
  4775 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4777 whose name does not start with the host triplet.  If you think this
  4778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4779 ac_tool_warned=yes ;;
  4780 esac
  4781     CC=$ac_ct_CC
  4782   fi
  4783 fi
  4785 fi
  4788 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4789 See \`config.log' for more details." >&5
  4790 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4791 See \`config.log' for more details." >&2;}
  4792    { (exit 1); exit 1; }; }
  4794 # Provide some information about the compiler.
  4795 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4796 ac_compiler=`set X $ac_compile; echo $2`
  4797 { (ac_try="$ac_compiler --version >&5"
  4798 case "(($ac_try" in
  4799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4800   *) ac_try_echo=$ac_try;;
  4801 esac
  4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4803   (eval "$ac_compiler --version >&5") 2>&5
  4804   ac_status=$?
  4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4806   (exit $ac_status); }
  4807 { (ac_try="$ac_compiler -v >&5"
  4808 case "(($ac_try" in
  4809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4810   *) ac_try_echo=$ac_try;;
  4811 esac
  4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4813   (eval "$ac_compiler -v >&5") 2>&5
  4814   ac_status=$?
  4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4816   (exit $ac_status); }
  4817 { (ac_try="$ac_compiler -V >&5"
  4818 case "(($ac_try" in
  4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4820   *) ac_try_echo=$ac_try;;
  4821 esac
  4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4823   (eval "$ac_compiler -V >&5") 2>&5
  4824   ac_status=$?
  4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4826   (exit $ac_status); }
  4828 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4829 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4830 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4831   echo $ECHO_N "(cached) $ECHO_C" >&6
  4832 else
  4833   cat >conftest.$ac_ext <<_ACEOF
  4834 /* confdefs.h.  */
  4835 _ACEOF
  4836 cat confdefs.h >>conftest.$ac_ext
  4837 cat >>conftest.$ac_ext <<_ACEOF
  4838 /* end confdefs.h.  */
  4840 int
  4841 main ()
  4843 #ifndef __GNUC__
  4844        choke me
  4845 #endif
  4848   return 0;
  4850 _ACEOF
  4851 rm -f conftest.$ac_objext
  4852 if { (ac_try="$ac_compile"
  4853 case "(($ac_try" in
  4854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4855   *) ac_try_echo=$ac_try;;
  4856 esac
  4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4858   (eval "$ac_compile") 2>conftest.er1
  4859   ac_status=$?
  4860   grep -v '^ *+' conftest.er1 >conftest.err
  4861   rm -f conftest.er1
  4862   cat conftest.err >&5
  4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4864   (exit $ac_status); } && {
  4865 	 test -z "$ac_c_werror_flag" ||
  4866 	 test ! -s conftest.err
  4867        } && test -s conftest.$ac_objext; then
  4868   ac_compiler_gnu=yes
  4869 else
  4870   echo "$as_me: failed program was:" >&5
  4871 sed 's/^/| /' conftest.$ac_ext >&5
  4873 	ac_compiler_gnu=no
  4874 fi
  4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4877 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4879 fi
  4880 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4881 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4882 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4883 ac_test_CFLAGS=${CFLAGS+set}
  4884 ac_save_CFLAGS=$CFLAGS
  4885 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4886 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4887 if test "${ac_cv_prog_cc_g+set}" = set; then
  4888   echo $ECHO_N "(cached) $ECHO_C" >&6
  4889 else
  4890   ac_save_c_werror_flag=$ac_c_werror_flag
  4891    ac_c_werror_flag=yes
  4892    ac_cv_prog_cc_g=no
  4893    CFLAGS="-g"
  4894    cat >conftest.$ac_ext <<_ACEOF
  4895 /* confdefs.h.  */
  4896 _ACEOF
  4897 cat confdefs.h >>conftest.$ac_ext
  4898 cat >>conftest.$ac_ext <<_ACEOF
  4899 /* end confdefs.h.  */
  4901 int
  4902 main ()
  4906   return 0;
  4908 _ACEOF
  4909 rm -f conftest.$ac_objext
  4910 if { (ac_try="$ac_compile"
  4911 case "(($ac_try" in
  4912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4913   *) ac_try_echo=$ac_try;;
  4914 esac
  4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4916   (eval "$ac_compile") 2>conftest.er1
  4917   ac_status=$?
  4918   grep -v '^ *+' conftest.er1 >conftest.err
  4919   rm -f conftest.er1
  4920   cat conftest.err >&5
  4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4922   (exit $ac_status); } && {
  4923 	 test -z "$ac_c_werror_flag" ||
  4924 	 test ! -s conftest.err
  4925        } && test -s conftest.$ac_objext; then
  4926   ac_cv_prog_cc_g=yes
  4927 else
  4928   echo "$as_me: failed program was:" >&5
  4929 sed 's/^/| /' conftest.$ac_ext >&5
  4931 	CFLAGS=""
  4932       cat >conftest.$ac_ext <<_ACEOF
  4933 /* confdefs.h.  */
  4934 _ACEOF
  4935 cat confdefs.h >>conftest.$ac_ext
  4936 cat >>conftest.$ac_ext <<_ACEOF
  4937 /* end confdefs.h.  */
  4939 int
  4940 main ()
  4944   return 0;
  4946 _ACEOF
  4947 rm -f conftest.$ac_objext
  4948 if { (ac_try="$ac_compile"
  4949 case "(($ac_try" in
  4950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4951   *) ac_try_echo=$ac_try;;
  4952 esac
  4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4954   (eval "$ac_compile") 2>conftest.er1
  4955   ac_status=$?
  4956   grep -v '^ *+' conftest.er1 >conftest.err
  4957   rm -f conftest.er1
  4958   cat conftest.err >&5
  4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4960   (exit $ac_status); } && {
  4961 	 test -z "$ac_c_werror_flag" ||
  4962 	 test ! -s conftest.err
  4963        } && test -s conftest.$ac_objext; then
  4965 else
  4966   echo "$as_me: failed program was:" >&5
  4967 sed 's/^/| /' conftest.$ac_ext >&5
  4969 	ac_c_werror_flag=$ac_save_c_werror_flag
  4970 	 CFLAGS="-g"
  4971 	 cat >conftest.$ac_ext <<_ACEOF
  4972 /* confdefs.h.  */
  4973 _ACEOF
  4974 cat confdefs.h >>conftest.$ac_ext
  4975 cat >>conftest.$ac_ext <<_ACEOF
  4976 /* end confdefs.h.  */
  4978 int
  4979 main ()
  4983   return 0;
  4985 _ACEOF
  4986 rm -f conftest.$ac_objext
  4987 if { (ac_try="$ac_compile"
  4988 case "(($ac_try" in
  4989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4990   *) ac_try_echo=$ac_try;;
  4991 esac
  4992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4993   (eval "$ac_compile") 2>conftest.er1
  4994   ac_status=$?
  4995   grep -v '^ *+' conftest.er1 >conftest.err
  4996   rm -f conftest.er1
  4997   cat conftest.err >&5
  4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4999   (exit $ac_status); } && {
  5000 	 test -z "$ac_c_werror_flag" ||
  5001 	 test ! -s conftest.err
  5002        } && test -s conftest.$ac_objext; then
  5003   ac_cv_prog_cc_g=yes
  5004 else
  5005   echo "$as_me: failed program was:" >&5
  5006 sed 's/^/| /' conftest.$ac_ext >&5
  5009 fi
  5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5012 fi
  5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5015 fi
  5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5018    ac_c_werror_flag=$ac_save_c_werror_flag
  5019 fi
  5020 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5021 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  5022 if test "$ac_test_CFLAGS" = set; then
  5023   CFLAGS=$ac_save_CFLAGS
  5024 elif test $ac_cv_prog_cc_g = yes; then
  5025   if test "$GCC" = yes; then
  5026     CFLAGS="-g -O2"
  5027   else
  5028     CFLAGS="-g"
  5029   fi
  5030 else
  5031   if test "$GCC" = yes; then
  5032     CFLAGS="-O2"
  5033   else
  5034     CFLAGS=
  5035   fi
  5036 fi
  5037 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5038 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  5039 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5040   echo $ECHO_N "(cached) $ECHO_C" >&6
  5041 else
  5042   ac_cv_prog_cc_c89=no
  5043 ac_save_CC=$CC
  5044 cat >conftest.$ac_ext <<_ACEOF
  5045 /* confdefs.h.  */
  5046 _ACEOF
  5047 cat confdefs.h >>conftest.$ac_ext
  5048 cat >>conftest.$ac_ext <<_ACEOF
  5049 /* end confdefs.h.  */
  5050 #include <stdarg.h>
  5051 #include <stdio.h>
  5052 #include <sys/types.h>
  5053 #include <sys/stat.h>
  5054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5055 struct buf { int x; };
  5056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5057 static char *e (p, i)
  5058      char **p;
  5059      int i;
  5061   return p[i];
  5063 static char *f (char * (*g) (char **, int), char **p, ...)
  5065   char *s;
  5066   va_list v;
  5067   va_start (v,p);
  5068   s = g (p, va_arg (v,int));
  5069   va_end (v);
  5070   return s;
  5073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5074    function prototypes and stuff, but not '\xHH' hex character constants.
  5075    These don't provoke an error unfortunately, instead are silently treated
  5076    as 'x'.  The following induces an error, until -std is added to get
  5077    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5078    array size at least.  It's necessary to write '\x00'==0 to get something
  5079    that's true only with -std.  */
  5080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5083    inside strings and character constants.  */
  5084 #define FOO(x) 'x'
  5085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5087 int test (int i, double x);
  5088 struct s1 {int (*f) (int a);};
  5089 struct s2 {int (*f) (double a);};
  5090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5091 int argc;
  5092 char **argv;
  5093 int
  5094 main ()
  5096 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5098   return 0;
  5100 _ACEOF
  5101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5102 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5103 do
  5104   CC="$ac_save_CC $ac_arg"
  5105   rm -f conftest.$ac_objext
  5106 if { (ac_try="$ac_compile"
  5107 case "(($ac_try" in
  5108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5109   *) ac_try_echo=$ac_try;;
  5110 esac
  5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5112   (eval "$ac_compile") 2>conftest.er1
  5113   ac_status=$?
  5114   grep -v '^ *+' conftest.er1 >conftest.err
  5115   rm -f conftest.er1
  5116   cat conftest.err >&5
  5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5118   (exit $ac_status); } && {
  5119 	 test -z "$ac_c_werror_flag" ||
  5120 	 test ! -s conftest.err
  5121        } && test -s conftest.$ac_objext; then
  5122   ac_cv_prog_cc_c89=$ac_arg
  5123 else
  5124   echo "$as_me: failed program was:" >&5
  5125 sed 's/^/| /' conftest.$ac_ext >&5
  5128 fi
  5130 rm -f core conftest.err conftest.$ac_objext
  5131   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5132 done
  5133 rm -f conftest.$ac_ext
  5134 CC=$ac_save_CC
  5136 fi
  5137 # AC_CACHE_VAL
  5138 case "x$ac_cv_prog_cc_c89" in
  5139   x)
  5140     { echo "$as_me:$LINENO: result: none needed" >&5
  5141 echo "${ECHO_T}none needed" >&6; } ;;
  5142   xno)
  5143     { echo "$as_me:$LINENO: result: unsupported" >&5
  5144 echo "${ECHO_T}unsupported" >&6; } ;;
  5145   *)
  5146     CC="$CC $ac_cv_prog_cc_c89"
  5147     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5148 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  5149 esac
  5152 ac_ext=c
  5153 ac_cpp='$CPP $CPPFLAGS'
  5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5158 depcc="$CC"   am_compiler_list=
  5160 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5161 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5162 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5163   echo $ECHO_N "(cached) $ECHO_C" >&6
  5164 else
  5165   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5166   # We make a subdir and do the tests there.  Otherwise we can end up
  5167   # making bogus files that we don't know about and never remove.  For
  5168   # instance it was reported that on HP-UX the gcc test will end up
  5169   # making a dummy file named `D' -- because `-MD' means `put the output
  5170   # in D'.
  5171   mkdir conftest.dir
  5172   # Copy depcomp to subdir because otherwise we won't find it if we're
  5173   # using a relative directory.
  5174   cp "$am_depcomp" conftest.dir
  5175   cd conftest.dir
  5176   # We will build objects and dependencies in a subdirectory because
  5177   # it helps to detect inapplicable dependency modes.  For instance
  5178   # both Tru64's cc and ICC support -MD to output dependencies as a
  5179   # side effect of compilation, but ICC will put the dependencies in
  5180   # the current directory while Tru64 will put them in the object
  5181   # directory.
  5182   mkdir sub
  5184   am_cv_CC_dependencies_compiler_type=none
  5185   if test "$am_compiler_list" = ""; then
  5186      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5187   fi
  5188   for depmode in $am_compiler_list; do
  5189     # Setup a source with many dependencies, because some compilers
  5190     # like to wrap large dependency lists on column 80 (with \), and
  5191     # we should not choose a depcomp mode which is confused by this.
  5193     # We need to recreate these files for each test, as the compiler may
  5194     # overwrite some of them when testing with obscure command lines.
  5195     # This happens at least with the AIX C compiler.
  5196     : > sub/conftest.c
  5197     for i in 1 2 3 4 5 6; do
  5198       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5199       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5200       # Solaris 8's {/usr,}/bin/sh.
  5201       touch sub/conftst$i.h
  5202     done
  5203     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5205     case $depmode in
  5206     nosideeffect)
  5207       # after this tag, mechanisms are not by side-effect, so they'll
  5208       # only be used when explicitly requested
  5209       if test "x$enable_dependency_tracking" = xyes; then
  5210 	continue
  5211       else
  5212 	break
  5213       fi
  5214       ;;
  5215     none) break ;;
  5216     esac
  5217     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5218     # mode.  It turns out that the SunPro C++ compiler does not properly
  5219     # handle `-M -o', and we need to detect this.
  5220     if depmode=$depmode \
  5221        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5222        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5223        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5224          >/dev/null 2>conftest.err &&
  5225        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5226        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5227        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5228       # icc doesn't choke on unknown options, it will just issue warnings
  5229       # or remarks (even with -Werror).  So we grep stderr for any message
  5230       # that says an option was ignored or not supported.
  5231       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5232       #   icc: Command line warning: ignoring option '-M'; no argument required
  5233       # The diagnosis changed in icc 8.0:
  5234       #   icc: Command line remark: option '-MP' not supported
  5235       if (grep 'ignoring option' conftest.err ||
  5236           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5237         am_cv_CC_dependencies_compiler_type=$depmode
  5238         break
  5239       fi
  5240     fi
  5241   done
  5243   cd ..
  5244   rm -rf conftest.dir
  5245 else
  5246   am_cv_CC_dependencies_compiler_type=none
  5247 fi
  5249 fi
  5250 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5251 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  5252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5256 if
  5257   test "x$enable_dependency_tracking" != xno \
  5258   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5259   am__fastdepCC_TRUE=
  5260   am__fastdepCC_FALSE='#'
  5261 else
  5262   am__fastdepCC_TRUE='#'
  5263   am__fastdepCC_FALSE=
  5264 fi
  5268 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5270 ac_ext=c
  5271 ac_cpp='$CPP $CPPFLAGS'
  5272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5275 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5276 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5277 # On Suns, sometimes $CPP names a directory.
  5278 if test -n "$CPP" && test -d "$CPP"; then
  5279   CPP=
  5280 fi
  5281 if test -z "$CPP"; then
  5282   if test "${ac_cv_prog_CPP+set}" = set; then
  5283   echo $ECHO_N "(cached) $ECHO_C" >&6
  5284 else
  5285       # Double quotes because CPP needs to be expanded
  5286     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5287     do
  5288       ac_preproc_ok=false
  5289 for ac_c_preproc_warn_flag in '' yes
  5290 do
  5291   # Use a header file that comes with gcc, so configuring glibc
  5292   # with a fresh cross-compiler works.
  5293   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5294   # <limits.h> exists even on freestanding compilers.
  5295   # On the NeXT, cc -E runs the code through the compiler's parser,
  5296   # not just through cpp. "Syntax error" is here to catch this case.
  5297   cat >conftest.$ac_ext <<_ACEOF
  5298 /* confdefs.h.  */
  5299 _ACEOF
  5300 cat confdefs.h >>conftest.$ac_ext
  5301 cat >>conftest.$ac_ext <<_ACEOF
  5302 /* end confdefs.h.  */
  5303 #ifdef __STDC__
  5304 # include <limits.h>
  5305 #else
  5306 # include <assert.h>
  5307 #endif
  5308 		     Syntax error
  5309 _ACEOF
  5310 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5311 case "(($ac_try" in
  5312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5313   *) ac_try_echo=$ac_try;;
  5314 esac
  5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5317   ac_status=$?
  5318   grep -v '^ *+' conftest.er1 >conftest.err
  5319   rm -f conftest.er1
  5320   cat conftest.err >&5
  5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5322   (exit $ac_status); } >/dev/null && {
  5323 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5324 	 test ! -s conftest.err
  5325        }; then
  5327 else
  5328   echo "$as_me: failed program was:" >&5
  5329 sed 's/^/| /' conftest.$ac_ext >&5
  5331   # Broken: fails on valid input.
  5332 continue
  5333 fi
  5335 rm -f conftest.err conftest.$ac_ext
  5337   # OK, works on sane cases.  Now check whether nonexistent headers
  5338   # can be detected and how.
  5339   cat >conftest.$ac_ext <<_ACEOF
  5340 /* confdefs.h.  */
  5341 _ACEOF
  5342 cat confdefs.h >>conftest.$ac_ext
  5343 cat >>conftest.$ac_ext <<_ACEOF
  5344 /* end confdefs.h.  */
  5345 #include <ac_nonexistent.h>
  5346 _ACEOF
  5347 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5348 case "(($ac_try" in
  5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5350   *) ac_try_echo=$ac_try;;
  5351 esac
  5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5354   ac_status=$?
  5355   grep -v '^ *+' conftest.er1 >conftest.err
  5356   rm -f conftest.er1
  5357   cat conftest.err >&5
  5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5359   (exit $ac_status); } >/dev/null && {
  5360 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5361 	 test ! -s conftest.err
  5362        }; then
  5363   # Broken: success on invalid input.
  5364 continue
  5365 else
  5366   echo "$as_me: failed program was:" >&5
  5367 sed 's/^/| /' conftest.$ac_ext >&5
  5369   # Passes both tests.
  5370 ac_preproc_ok=:
  5371 break
  5372 fi
  5374 rm -f conftest.err conftest.$ac_ext
  5376 done
  5377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5378 rm -f conftest.err conftest.$ac_ext
  5379 if $ac_preproc_ok; then
  5380   break
  5381 fi
  5383     done
  5384     ac_cv_prog_CPP=$CPP
  5386 fi
  5387   CPP=$ac_cv_prog_CPP
  5388 else
  5389   ac_cv_prog_CPP=$CPP
  5390 fi
  5391 { echo "$as_me:$LINENO: result: $CPP" >&5
  5392 echo "${ECHO_T}$CPP" >&6; }
  5393 ac_preproc_ok=false
  5394 for ac_c_preproc_warn_flag in '' yes
  5395 do
  5396   # Use a header file that comes with gcc, so configuring glibc
  5397   # with a fresh cross-compiler works.
  5398   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5399   # <limits.h> exists even on freestanding compilers.
  5400   # On the NeXT, cc -E runs the code through the compiler's parser,
  5401   # not just through cpp. "Syntax error" is here to catch this case.
  5402   cat >conftest.$ac_ext <<_ACEOF
  5403 /* confdefs.h.  */
  5404 _ACEOF
  5405 cat confdefs.h >>conftest.$ac_ext
  5406 cat >>conftest.$ac_ext <<_ACEOF
  5407 /* end confdefs.h.  */
  5408 #ifdef __STDC__
  5409 # include <limits.h>
  5410 #else
  5411 # include <assert.h>
  5412 #endif
  5413 		     Syntax error
  5414 _ACEOF
  5415 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5416 case "(($ac_try" in
  5417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5418   *) ac_try_echo=$ac_try;;
  5419 esac
  5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5422   ac_status=$?
  5423   grep -v '^ *+' conftest.er1 >conftest.err
  5424   rm -f conftest.er1
  5425   cat conftest.err >&5
  5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5427   (exit $ac_status); } >/dev/null && {
  5428 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5429 	 test ! -s conftest.err
  5430        }; then
  5432 else
  5433   echo "$as_me: failed program was:" >&5
  5434 sed 's/^/| /' conftest.$ac_ext >&5
  5436   # Broken: fails on valid input.
  5437 continue
  5438 fi
  5440 rm -f conftest.err conftest.$ac_ext
  5442   # OK, works on sane cases.  Now check whether nonexistent headers
  5443   # can be detected and how.
  5444   cat >conftest.$ac_ext <<_ACEOF
  5445 /* confdefs.h.  */
  5446 _ACEOF
  5447 cat confdefs.h >>conftest.$ac_ext
  5448 cat >>conftest.$ac_ext <<_ACEOF
  5449 /* end confdefs.h.  */
  5450 #include <ac_nonexistent.h>
  5451 _ACEOF
  5452 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5453 case "(($ac_try" in
  5454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5455   *) ac_try_echo=$ac_try;;
  5456 esac
  5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5459   ac_status=$?
  5460   grep -v '^ *+' conftest.er1 >conftest.err
  5461   rm -f conftest.er1
  5462   cat conftest.err >&5
  5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5464   (exit $ac_status); } >/dev/null && {
  5465 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5466 	 test ! -s conftest.err
  5467        }; then
  5468   # Broken: success on invalid input.
  5469 continue
  5470 else
  5471   echo "$as_me: failed program was:" >&5
  5472 sed 's/^/| /' conftest.$ac_ext >&5
  5474   # Passes both tests.
  5475 ac_preproc_ok=:
  5476 break
  5477 fi
  5479 rm -f conftest.err conftest.$ac_ext
  5481 done
  5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5483 rm -f conftest.err conftest.$ac_ext
  5484 if $ac_preproc_ok; then
  5486 else
  5487   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5488 See \`config.log' for more details." >&5
  5489 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5490 See \`config.log' for more details." >&2;}
  5491    { (exit 1); exit 1; }; }
  5492 fi
  5494 ac_ext=c
  5495 ac_cpp='$CPP $CPPFLAGS'
  5496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5501 ac_main_cc="$CC"
  5502 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
  5504 if test -z "$CC_FOR_BUILD"; then
  5505     if test "$#" = yes; then
  5506   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  5507 See \`config.log' for more details." >&5
  5508 echo "$as_me: error: cannot run test program while cross compiling
  5509 See \`config.log' for more details." >&2;}
  5510    { (exit 1); exit 1; }; }
  5511 else
  5512   cat >conftest.$ac_ext <<_ACEOF
  5513 int main(){return 0;}
  5514 _ACEOF
  5515 rm -f conftest$ac_exeext
  5516 if { (ac_try="$ac_link"
  5517 case "(($ac_try" in
  5518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5519   *) ac_try_echo=$ac_try;;
  5520 esac
  5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5522   (eval "$ac_link") 2>&5
  5523   ac_status=$?
  5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5526   { (case "(($ac_try" in
  5527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5528   *) ac_try_echo=$ac_try;;
  5529 esac
  5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5531   (eval "$ac_try") 2>&5
  5532   ac_status=$?
  5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5534   (exit $ac_status); }; }; then
  5535   CC_FOR_BUILD="$CC"
  5536 else
  5537   echo "$as_me: program exited with status $ac_status" >&5
  5538 echo "$as_me: failed program was:" >&5
  5539 sed 's/^/| /' conftest.$ac_ext >&5
  5541 fi
  5542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5543 fi
  5546 fi
  5549 ac_ext=c
  5550 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  5551 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  5552 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5553 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  5554 if test -n "$ac_build_tool_prefix"; then
  5555   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5556 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
  5557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5559 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5560   echo $ECHO_N "(cached) $ECHO_C" >&6
  5561 else
  5562   if test -n "$CC_FOR_BUILD"; then
  5563   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5564 else
  5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5566 for as_dir in $PATH
  5567 do
  5568   IFS=$as_save_IFS
  5569   test -z "$as_dir" && as_dir=.
  5570   for ac_exec_ext in '' $ac_executable_extensions; do
  5571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5572     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
  5573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5574     break 2
  5575   fi
  5576 done
  5577 done
  5578 IFS=$as_save_IFS
  5580 fi
  5581 fi
  5582 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5583 if test -n "$CC_FOR_BUILD"; then
  5584   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5585 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5586 else
  5587   { echo "$as_me:$LINENO: result: no" >&5
  5588 echo "${ECHO_T}no" >&6; }
  5589 fi
  5592 fi
  5593 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
  5594   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  5595   # Extract the first word of "gcc", so it can be a program name with args.
  5596 set dummy gcc; ac_word=$2
  5597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5599 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  5600   echo $ECHO_N "(cached) $ECHO_C" >&6
  5601 else
  5602   if test -n "$ac_ct_CC_FOR_BUILD"; then
  5603   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  5604 else
  5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5606 for as_dir in $PATH
  5607 do
  5608   IFS=$as_save_IFS
  5609   test -z "$as_dir" && as_dir=.
  5610   for ac_exec_ext in '' $ac_executable_extensions; do
  5611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5612     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
  5613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5614     break 2
  5615   fi
  5616 done
  5617 done
  5618 IFS=$as_save_IFS
  5620 fi
  5621 fi
  5622 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  5623 if test -n "$ac_ct_CC_FOR_BUILD"; then
  5624   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  5625 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  5626 else
  5627   { echo "$as_me:$LINENO: result: no" >&5
  5628 echo "${ECHO_T}no" >&6; }
  5629 fi
  5631   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  5632     CC_FOR_BUILD=""
  5633   else
  5634     case $#:$ac_tool_warned in
  5635 yes:)
  5636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5637 whose name does not start with the build triplet.  If you think this
  5638 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5640 whose name does not start with the build triplet.  If you think this
  5641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5642 ac_tool_warned=yes ;;
  5643 esac
  5644     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  5645   fi
  5646 else
  5647   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
  5648 fi
  5650 if test -z "$CC_FOR_BUILD"; then
  5651           if test -n "$ac_build_tool_prefix"; then
  5652     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5653 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
  5654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5656 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5657   echo $ECHO_N "(cached) $ECHO_C" >&6
  5658 else
  5659   if test -n "$CC_FOR_BUILD"; then
  5660   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5661 else
  5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5663 for as_dir in $PATH
  5664 do
  5665   IFS=$as_save_IFS
  5666   test -z "$as_dir" && as_dir=.
  5667   for ac_exec_ext in '' $ac_executable_extensions; do
  5668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5669     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
  5670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5671     break 2
  5672   fi
  5673 done
  5674 done
  5675 IFS=$as_save_IFS
  5677 fi
  5678 fi
  5679 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5680 if test -n "$CC_FOR_BUILD"; then
  5681   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5682 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5683 else
  5684   { echo "$as_me:$LINENO: result: no" >&5
  5685 echo "${ECHO_T}no" >&6; }
  5686 fi
  5689   fi
  5690 fi
  5691 if test -z "$CC_FOR_BUILD"; then
  5692   # Extract the first word of "cc", so it can be a program name with args.
  5693 set dummy cc; ac_word=$2
  5694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5696 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5697   echo $ECHO_N "(cached) $ECHO_C" >&6
  5698 else
  5699   if test -n "$CC_FOR_BUILD"; then
  5700   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5701 else
  5702   ac_prog_rejected=no
  5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5704 for as_dir in $PATH
  5705 do
  5706   IFS=$as_save_IFS
  5707   test -z "$as_dir" && as_dir=.
  5708   for ac_exec_ext in '' $ac_executable_extensions; do
  5709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5710     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5711        ac_prog_rejected=yes
  5712        continue
  5713      fi
  5714     ac_cv_prog_CC_FOR_BUILD="cc"
  5715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5716     break 2
  5717   fi
  5718 done
  5719 done
  5720 IFS=$as_save_IFS
  5722 if test $ac_prog_rejected = yes; then
  5723   # We found a bogon in the path, so make sure we never use it.
  5724   set dummy $ac_cv_prog_CC_FOR_BUILD
  5725   shift
  5726   if test $# != 0; then
  5727     # We chose a different compiler from the bogus one.
  5728     # However, it has the same basename, so the bogon will be chosen
  5729     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
  5730     shift
  5731     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
  5732   fi
  5733 fi
  5734 fi
  5735 fi
  5736 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5737 if test -n "$CC_FOR_BUILD"; then
  5738   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5739 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5740 else
  5741   { echo "$as_me:$LINENO: result: no" >&5
  5742 echo "${ECHO_T}no" >&6; }
  5743 fi
  5746 fi
  5747 if test -z "$CC_FOR_BUILD"; then
  5748   if test -n "$ac_build_tool_prefix"; then
  5749   for ac_prog in cl.exe
  5750   do
  5751     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5752 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
  5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5755 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5756   echo $ECHO_N "(cached) $ECHO_C" >&6
  5757 else
  5758   if test -n "$CC_FOR_BUILD"; then
  5759   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5760 else
  5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5762 for as_dir in $PATH
  5763 do
  5764   IFS=$as_save_IFS
  5765   test -z "$as_dir" && as_dir=.
  5766   for ac_exec_ext in '' $ac_executable_extensions; do
  5767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5768     ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
  5769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5770     break 2
  5771   fi
  5772 done
  5773 done
  5774 IFS=$as_save_IFS
  5776 fi
  5777 fi
  5778 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5779 if test -n "$CC_FOR_BUILD"; then
  5780   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5781 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5782 else
  5783   { echo "$as_me:$LINENO: result: no" >&5
  5784 echo "${ECHO_T}no" >&6; }
  5785 fi
  5788     test -n "$CC_FOR_BUILD" && break
  5789   done
  5790 fi
  5791 if test -z "$CC_FOR_BUILD"; then
  5792   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  5793   for ac_prog in cl.exe
  5794 do
  5795   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5796 set dummy $ac_prog; ac_word=$2
  5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5799 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  5800   echo $ECHO_N "(cached) $ECHO_C" >&6
  5801 else
  5802   if test -n "$ac_ct_CC_FOR_BUILD"; then
  5803   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  5804 else
  5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5806 for as_dir in $PATH
  5807 do
  5808   IFS=$as_save_IFS
  5809   test -z "$as_dir" && as_dir=.
  5810   for ac_exec_ext in '' $ac_executable_extensions; do
  5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5812     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
  5813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5814     break 2
  5815   fi
  5816 done
  5817 done
  5818 IFS=$as_save_IFS
  5820 fi
  5821 fi
  5822 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  5823 if test -n "$ac_ct_CC_FOR_BUILD"; then
  5824   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  5825 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  5826 else
  5827   { echo "$as_me:$LINENO: result: no" >&5
  5828 echo "${ECHO_T}no" >&6; }
  5829 fi
  5832   test -n "$ac_ct_CC_FOR_BUILD" && break
  5833 done
  5835   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  5836     CC_FOR_BUILD=""
  5837   else
  5838     case $#:$ac_tool_warned in
  5839 yes:)
  5840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5841 whose name does not start with the build triplet.  If you think this
  5842 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5843 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5844 whose name does not start with the build triplet.  If you think this
  5845 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5846 ac_tool_warned=yes ;;
  5847 esac
  5848     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  5849   fi
  5850 fi
  5852 fi
  5855 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5856 See \`config.log' for more details." >&5
  5857 echo "$as_me: error: no acceptable C compiler found in \$PATH
  5858 See \`config.log' for more details." >&2;}
  5859    { (exit 1); exit 1; }; }
  5861 # Provide some information about the compiler.
  5862 echo "$as_me:$LINENO: checking for C compiler version" >&5
  5863 ac_compiler=`set X $ac_build_compile; echo $2`
  5864 { (ac_try="$ac_compiler --version >&5"
  5865 case "(($ac_try" in
  5866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5867   *) ac_try_echo=$ac_try;;
  5868 esac
  5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5870   (eval "$ac_compiler --version >&5") 2>&5
  5871   ac_status=$?
  5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5873   (exit $ac_status); }
  5874 { (ac_try="$ac_compiler -v >&5"
  5875 case "(($ac_try" in
  5876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5877   *) ac_try_echo=$ac_try;;
  5878 esac
  5879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5880   (eval "$ac_compiler -v >&5") 2>&5
  5881   ac_status=$?
  5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5883   (exit $ac_status); }
  5884 { (ac_try="$ac_compiler -V >&5"
  5885 case "(($ac_try" in
  5886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5887   *) ac_try_echo=$ac_try;;
  5888 esac
  5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5890   (eval "$ac_compiler -V >&5") 2>&5
  5891   ac_status=$?
  5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5893   (exit $ac_status); }
  5895 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5896 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  5897 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5898   echo $ECHO_N "(cached) $ECHO_C" >&6
  5899 else
  5900   cat >conftest.$ac_ext <<_ACEOF
  5901 /* confdefs.h.  */
  5902 _ACEOF
  5903 cat confdefs.h >>conftest.$ac_ext
  5904 cat >>conftest.$ac_ext <<_ACEOF
  5905 /* end confdefs.h.  */
  5907 int
  5908 main ()
  5910 #ifndef __GNUC__
  5911        choke me
  5912 #endif
  5915   return 0;
  5917 _ACEOF
  5918 rm -f conftest.$ac_build_objext
  5919 if { (ac_try="$ac_build_compile"
  5920 case "(($ac_try" in
  5921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5922   *) ac_try_echo=$ac_try;;
  5923 esac
  5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5925   (eval "$ac_build_compile") 2>conftest.er1
  5926   ac_status=$?
  5927   grep -v '^ *+' conftest.er1 >conftest.err
  5928   rm -f conftest.er1
  5929   cat conftest.err >&5
  5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5931   (exit $ac_status); } && {
  5932 	 test -z "$ac_c_werror_flag" ||
  5933 	 test ! -s conftest.err
  5934        } && test -s conftest.$ac_build_objext; then
  5935   ac_build_compiler_gnu=yes
  5936 else
  5937   echo "$as_me: failed program was:" >&5
  5938 sed 's/^/| /' conftest.$ac_ext >&5
  5940 	ac_build_compiler_gnu=no
  5941 fi
  5943 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  5944 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
  5946 fi
  5947 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5948 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  5949 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
  5950 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
  5951 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
  5952 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
  5953 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
  5954 if test "${ac_cv_build_prog_cc_g+set}" = set; then
  5955   echo $ECHO_N "(cached) $ECHO_C" >&6
  5956 else
  5957   ac_save_c_werror_flag=$ac_c_werror_flag
  5958    ac_c_werror_flag=yes
  5959    ac_cv_build_prog_cc_g=no
  5960    CFLAGS_FOR_BUILD="-g"
  5961    cat >conftest.$ac_ext <<_ACEOF
  5962 /* confdefs.h.  */
  5963 _ACEOF
  5964 cat confdefs.h >>conftest.$ac_ext
  5965 cat >>conftest.$ac_ext <<_ACEOF
  5966 /* end confdefs.h.  */
  5968 int
  5969 main ()
  5973   return 0;
  5975 _ACEOF
  5976 rm -f conftest.$ac_build_objext
  5977 if { (ac_try="$ac_build_compile"
  5978 case "(($ac_try" in
  5979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5980   *) ac_try_echo=$ac_try;;
  5981 esac
  5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5983   (eval "$ac_build_compile") 2>conftest.er1
  5984   ac_status=$?
  5985   grep -v '^ *+' conftest.er1 >conftest.err
  5986   rm -f conftest.er1
  5987   cat conftest.err >&5
  5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5989   (exit $ac_status); } && {
  5990 	 test -z "$ac_c_werror_flag" ||
  5991 	 test ! -s conftest.err
  5992        } && test -s conftest.$ac_build_objext; then
  5993   ac_cv_build_prog_cc_g=yes
  5994 else
  5995   echo "$as_me: failed program was:" >&5
  5996 sed 's/^/| /' conftest.$ac_ext >&5
  5998 	CFLAGS_FOR_BUILD=""
  5999       cat >conftest.$ac_ext <<_ACEOF
  6000 /* confdefs.h.  */
  6001 _ACEOF
  6002 cat confdefs.h >>conftest.$ac_ext
  6003 cat >>conftest.$ac_ext <<_ACEOF
  6004 /* end confdefs.h.  */
  6006 int
  6007 main ()
  6011   return 0;
  6013 _ACEOF
  6014 rm -f conftest.$ac_build_objext
  6015 if { (ac_try="$ac_build_compile"
  6016 case "(($ac_try" in
  6017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6018   *) ac_try_echo=$ac_try;;
  6019 esac
  6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6021   (eval "$ac_build_compile") 2>conftest.er1
  6022   ac_status=$?
  6023   grep -v '^ *+' conftest.er1 >conftest.err
  6024   rm -f conftest.er1
  6025   cat conftest.err >&5
  6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6027   (exit $ac_status); } && {
  6028 	 test -z "$ac_c_werror_flag" ||
  6029 	 test ! -s conftest.err
  6030        } && test -s conftest.$ac_build_objext; then
  6032 else
  6033   echo "$as_me: failed program was:" >&5
  6034 sed 's/^/| /' conftest.$ac_ext >&5
  6036 	ac_c_werror_flag=$ac_save_c_werror_flag
  6037 	 CFLAGS_FOR_BUILD="-g"
  6038 	 cat >conftest.$ac_ext <<_ACEOF
  6039 /* confdefs.h.  */
  6040 _ACEOF
  6041 cat confdefs.h >>conftest.$ac_ext
  6042 cat >>conftest.$ac_ext <<_ACEOF
  6043 /* end confdefs.h.  */
  6045 int
  6046 main ()
  6050   return 0;
  6052 _ACEOF
  6053 rm -f conftest.$ac_build_objext
  6054 if { (ac_try="$ac_build_compile"
  6055 case "(($ac_try" in
  6056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6057   *) ac_try_echo=$ac_try;;
  6058 esac
  6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6060   (eval "$ac_build_compile") 2>conftest.er1
  6061   ac_status=$?
  6062   grep -v '^ *+' conftest.er1 >conftest.err
  6063   rm -f conftest.er1
  6064   cat conftest.err >&5
  6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6066   (exit $ac_status); } && {
  6067 	 test -z "$ac_c_werror_flag" ||
  6068 	 test ! -s conftest.err
  6069        } && test -s conftest.$ac_build_objext; then
  6070   ac_cv_build_prog_cc_g=yes
  6071 else
  6072   echo "$as_me: failed program was:" >&5
  6073 sed 's/^/| /' conftest.$ac_ext >&5
  6076 fi
  6078 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6079 fi
  6081 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6082 fi
  6084 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6085    ac_c_werror_flag=$ac_save_c_werror_flag
  6086 fi
  6087 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
  6088 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
  6089 if test "$ac_test_CFLAGS" = set; then
  6090   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
  6091 elif test $ac_cv_build_prog_cc_g = yes; then
  6092   if test "$GCC" = yes; then
  6093     CFLAGS_FOR_BUILD="-g -O2"
  6094   else
  6095     CFLAGS_FOR_BUILD="-g"
  6096   fi
  6097 else
  6098   if test "$GCC" = yes; then
  6099     CFLAGS_FOR_BUILD="-O2"
  6100   else
  6101     CFLAGS_FOR_BUILD=
  6102   fi
  6103 fi
  6104 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6105 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6106 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6107   echo $ECHO_N "(cached) $ECHO_C" >&6
  6108 else
  6109   ac_cv_build_prog_cc_stdc=no
  6110 ac_save_CC=$CC_FOR_BUILD
  6111 cat >conftest.$ac_ext <<_ACEOF
  6112 /* confdefs.h.  */
  6113 _ACEOF
  6114 cat confdefs.h >>conftest.$ac_ext
  6115 cat >>conftest.$ac_ext <<_ACEOF
  6116 /* end confdefs.h.  */
  6117 #include <stdarg.h>
  6118 #include <stdio.h>
  6119 #include <sys/types.h>
  6120 #include <sys/stat.h>
  6121 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6122 struct buf { int x; };
  6123 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6124 static char *e (p, i)
  6125      char **p;
  6126      int i;
  6128   return p[i];
  6130 static char *f (char * (*g) (char **, int), char **p, ...)
  6132   char *s;
  6133   va_list v;
  6134   va_start (v,p);
  6135   s = g (p, va_arg (v,int));
  6136   va_end (v);
  6137   return s;
  6140 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6141    function prototypes and stuff, but not '\xHH' hex character constants.
  6142    These don't provoke an error unfortunately, instead are silently treated
  6143    as 'x'.  The following induces an error, until -std is added to get
  6144    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6145    array size at least.  It's necessary to write '\x00'==0 to get something
  6146    that's true only with -std.  */
  6147 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6149 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6150    inside strings and character constants.  */
  6151 #define FOO(x) 'x'
  6152 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6154 int test (int i, double x);
  6155 struct s1 {int (*f) (int a);};
  6156 struct s2 {int (*f) (double a);};
  6157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6158 int argc;
  6159 char **argv;
  6160 int
  6161 main ()
  6163 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6165   return 0;
  6167 _ACEOF
  6168 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6169 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6170 do
  6171   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6172   rm -f conftest.$ac_build_objext
  6173 if { (ac_try="$ac_build_compile"
  6174 case "(($ac_try" in
  6175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6176   *) ac_try_echo=$ac_try;;
  6177 esac
  6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6179   (eval "$ac_build_compile") 2>conftest.er1
  6180   ac_status=$?
  6181   grep -v '^ *+' conftest.er1 >conftest.err
  6182   rm -f conftest.er1
  6183   cat conftest.err >&5
  6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6185   (exit $ac_status); } && {
  6186 	 test -z "$ac_c_werror_flag" ||
  6187 	 test ! -s conftest.err
  6188        } && test -s conftest.$ac_build_objext; then
  6189   ac_cv_build_prog_cc_stdc=$ac_arg
  6190 else
  6191   echo "$as_me: failed program was:" >&5
  6192 sed 's/^/| /' conftest.$ac_ext >&5
  6195 fi
  6197 rm -f core conftest.err conftest.$ac_build_objext
  6198   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6199 done
  6200 rm -f conftest.$ac_ext
  6201 CC_FOR_BUILD=$ac_save_CC
  6203 fi
  6204 # AC_CACHE_VAL
  6205 case "x$ac_cv_build_prog_cc_stdc" in
  6206   x)
  6207     { echo "$as_me:$LINENO: result: none needed" >&5
  6208 echo "${ECHO_T}none needed" >&6; } ;;
  6209   xno)
  6210     { echo "$as_me:$LINENO: result: unsupported" >&5
  6211 echo "${ECHO_T}unsupported" >&6; } ;;
  6212   *)
  6213     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6214     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6215 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6216 esac
  6219 ac_ext=c
  6220 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6221 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6222 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6223 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6225 depcc="$CC_FOR_BUILD"   am_compiler_list=
  6227 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6228 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  6229 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
  6230   echo $ECHO_N "(cached) $ECHO_C" >&6
  6231 else
  6232   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6233   # We make a subdir and do the tests there.  Otherwise we can end up
  6234   # making bogus files that we don't know about and never remove.  For
  6235   # instance it was reported that on HP-UX the gcc test will end up
  6236   # making a dummy file named `D' -- because `-MD' means `put the output
  6237   # in D'.
  6238   mkdir conftest.dir
  6239   # Copy depcomp to subdir because otherwise we won't find it if we're
  6240   # using a relative directory.
  6241   cp "$am_depcomp" conftest.dir
  6242   cd conftest.dir
  6243   # We will build objects and dependencies in a subdirectory because
  6244   # it helps to detect inapplicable dependency modes.  For instance
  6245   # both Tru64's cc and ICC support -MD to output dependencies as a
  6246   # side effect of compilation, but ICC will put the dependencies in
  6247   # the current directory while Tru64 will put them in the object
  6248   # directory.
  6249   mkdir sub
  6251   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6252   if test "$am_compiler_list" = ""; then
  6253      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6254   fi
  6255   for depmode in $am_compiler_list; do
  6256     # Setup a source with many dependencies, because some compilers
  6257     # like to wrap large dependency lists on column 80 (with \), and
  6258     # we should not choose a depcomp mode which is confused by this.
  6260     # We need to recreate these files for each test, as the compiler may
  6261     # overwrite some of them when testing with obscure command lines.
  6262     # This happens at least with the AIX C compiler.
  6263     : > sub/conftest.c
  6264     for i in 1 2 3 4 5 6; do
  6265       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6266       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6267       # Solaris 8's {/usr,}/bin/sh.
  6268       touch sub/conftst$i.h
  6269     done
  6270     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6272     case $depmode in
  6273     nosideeffect)
  6274       # after this tag, mechanisms are not by side-effect, so they'll
  6275       # only be used when explicitly requested
  6276       if test "x$enable_dependency_tracking" = xyes; then
  6277 	continue
  6278       else
  6279 	break
  6280       fi
  6281       ;;
  6282     none) break ;;
  6283     esac
  6284     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6285     # mode.  It turns out that the SunPro C++ compiler does not properly
  6286     # handle `-M -o', and we need to detect this.
  6287     if depmode=$depmode \
  6288        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6289        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6290        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6291          >/dev/null 2>conftest.err &&
  6292        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6293        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6294        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6295       # icc doesn't choke on unknown options, it will just issue warnings
  6296       # or remarks (even with -Werror).  So we grep stderr for any message
  6297       # that says an option was ignored or not supported.
  6298       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6299       #   icc: Command line warning: ignoring option '-M'; no argument required
  6300       # The diagnosis changed in icc 8.0:
  6301       #   icc: Command line remark: option '-MP' not supported
  6302       if (grep 'ignoring option' conftest.err ||
  6303           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6304         am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
  6305         break
  6306       fi
  6307     fi
  6308   done
  6310   cd ..
  6311   rm -rf conftest.dir
  6312 else
  6313   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6314 fi
  6316 fi
  6317 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
  6318 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
  6319 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
  6323 if
  6324   test "x$enable_dependency_tracking" != xno \
  6325   && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
  6326   am__fastdepCC_FOR_BUILD_TRUE=
  6327   am__fastdepCC_FOR_BUILD_FALSE='#'
  6328 else
  6329   am__fastdepCC_FOR_BUILD_TRUE='#'
  6330   am__fastdepCC_FOR_BUILD_FALSE=
  6331 fi
  6334    case $ac_cv_build_prog_cc_stdc in
  6335   no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
  6336   *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
  6337 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
  6338 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6339   echo $ECHO_N "(cached) $ECHO_C" >&6
  6340 else
  6341   ac_cv_build_prog_cc_stdc=no
  6342 ac_save_CC=$CC_FOR_BUILD
  6343 cat >conftest.$ac_ext <<_ACEOF
  6344 /* confdefs.h.  */
  6345 _ACEOF
  6346 cat confdefs.h >>conftest.$ac_ext
  6347 cat >>conftest.$ac_ext <<_ACEOF
  6348 /* end confdefs.h.  */
  6349 #include <stdarg.h>
  6350 #include <stdbool.h>
  6351 #include <stdlib.h>
  6352 #include <wchar.h>
  6353 #include <stdio.h>
  6355 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
  6356 #define debug(...) fprintf (stderr, __VA_ARGS__)
  6357 #define showlist(...) puts (#__VA_ARGS__)
  6358 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  6359 static void
  6360 test_varargs_macros (void)
  6362   int x = 1234;
  6363   int y = 5678;
  6364   debug ("Flag");
  6365   debug ("X = %d\n", x);
  6366   showlist (The first, second, and third items.);
  6367   report (x>y, "x is %d but y is %d", x, y);
  6370 // Check long long types.
  6371 #define BIG64 18446744073709551615ull
  6372 #define BIG32 4294967295ul
  6373 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  6374 #if !BIG_OK
  6375   your preprocessor is broken;
  6376 #endif
  6377 #if BIG_OK
  6378 #else
  6379   your preprocessor is broken;
  6380 #endif
  6381 static long long int bignum = -9223372036854775807LL;
  6382 static unsigned long long int ubignum = BIG64;
  6384 struct incomplete_array
  6386   int datasize;
  6387   double data[];
  6388 };
  6390 struct named_init {
  6391   int number;
  6392   const wchar_t *name;
  6393   double average;
  6394 };
  6396 typedef const char *ccp;
  6398 static inline int
  6399 test_restrict (ccp restrict text)
  6401   // See if C++-style comments work.
  6402   // Iterate through items via the restricted pointer.
  6403   // Also check for declarations in for loops.
  6404   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  6405     continue;
  6406   return 0;
  6409 // Check varargs and va_copy.
  6410 static void
  6411 test_varargs (const char *format, ...)
  6413   va_list args;
  6414   va_start (args, format);
  6415   va_list args_copy;
  6416   va_copy (args_copy, args);
  6418   const char *str;
  6419   int number;
  6420   float fnumber;
  6422   while (*format)
  6424       switch (*format++)
  6426 	case 's': // string
  6427 	  str = va_arg (args_copy, const char *);
  6428 	  break;
  6429 	case 'd': // int
  6430 	  number = va_arg (args_copy, int);
  6431 	  break;
  6432 	case 'f': // float
  6433 	  fnumber = va_arg (args_copy, double);
  6434 	  break;
  6435 	default:
  6436 	  break;
  6439   va_end (args_copy);
  6440   va_end (args);
  6443 int
  6444 main ()
  6447   // Check bool.
  6448   _Bool success = false;
  6450   // Check restrict.
  6451   if (test_restrict ("String literal") == 0)
  6452     success = true;
  6453   char *restrict newvar = "Another string";
  6455   // Check varargs.
  6456   test_varargs ("s, d' f .", "string", 65, 34.234);
  6457   test_varargs_macros ();
  6459   // Check flexible array members.
  6460   struct incomplete_array *ia =
  6461     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  6462   ia->datasize = 10;
  6463   for (int i = 0; i < ia->datasize; ++i)
  6464     ia->data[i] = i * 1.234;
  6466   // Check named initializers.
  6467   struct named_init ni = {
  6468     .number = 34,
  6469     .name = L"Test wide string",
  6470     .average = 543.34343,
  6471   };
  6473   ni.number = 58;
  6475   int dynamic_array[ni.number];
  6476   dynamic_array[ni.number - 1] = 543;
  6478   // work around unused variable warnings
  6479   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  6480 	  || dynamic_array[ni.number - 1] != 543);
  6483   return 0;
  6485 _ACEOF
  6486 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  6487 do
  6488   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6489   rm -f conftest.$ac_build_objext
  6490 if { (ac_try="$ac_build_compile"
  6491 case "(($ac_try" in
  6492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6493   *) ac_try_echo=$ac_try;;
  6494 esac
  6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6496   (eval "$ac_build_compile") 2>conftest.er1
  6497   ac_status=$?
  6498   grep -v '^ *+' conftest.er1 >conftest.err
  6499   rm -f conftest.er1
  6500   cat conftest.err >&5
  6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6502   (exit $ac_status); } && {
  6503 	 test -z "$ac_c_werror_flag" ||
  6504 	 test ! -s conftest.err
  6505        } && test -s conftest.$ac_build_objext; then
  6506   ac_cv_build_prog_cc_stdc=$ac_arg
  6507 else
  6508   echo "$as_me: failed program was:" >&5
  6509 sed 's/^/| /' conftest.$ac_ext >&5
  6512 fi
  6514 rm -f core conftest.err conftest.$ac_build_objext
  6515   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6516 done
  6517 rm -f conftest.$ac_ext
  6518 CC_FOR_BUILD=$ac_save_CC
  6520 fi
  6521 # AC_CACHE_VAL
  6522 case "x$ac_cv_build_prog_cc_stdc" in
  6523   x)
  6524     { echo "$as_me:$LINENO: result: none needed" >&5
  6525 echo "${ECHO_T}none needed" >&6; } ;;
  6526   xno)
  6527     { echo "$as_me:$LINENO: result: unsupported" >&5
  6528 echo "${ECHO_T}unsupported" >&6; } ;;
  6529   *)
  6530     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6531     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6532 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6533 esac
  6534 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6535   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6536 else
  6537   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6538 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6539 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6540   echo $ECHO_N "(cached) $ECHO_C" >&6
  6541 else
  6542   ac_cv_build_prog_cc_stdc=no
  6543 ac_save_CC=$CC_FOR_BUILD
  6544 cat >conftest.$ac_ext <<_ACEOF
  6545 /* confdefs.h.  */
  6546 _ACEOF
  6547 cat confdefs.h >>conftest.$ac_ext
  6548 cat >>conftest.$ac_ext <<_ACEOF
  6549 /* end confdefs.h.  */
  6550 #include <stdarg.h>
  6551 #include <stdio.h>
  6552 #include <sys/types.h>
  6553 #include <sys/stat.h>
  6554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6555 struct buf { int x; };
  6556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6557 static char *e (p, i)
  6558      char **p;
  6559      int i;
  6561   return p[i];
  6563 static char *f (char * (*g) (char **, int), char **p, ...)
  6565   char *s;
  6566   va_list v;
  6567   va_start (v,p);
  6568   s = g (p, va_arg (v,int));
  6569   va_end (v);
  6570   return s;
  6573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6574    function prototypes and stuff, but not '\xHH' hex character constants.
  6575    These don't provoke an error unfortunately, instead are silently treated
  6576    as 'x'.  The following induces an error, until -std is added to get
  6577    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6578    array size at least.  It's necessary to write '\x00'==0 to get something
  6579    that's true only with -std.  */
  6580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6582 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6583    inside strings and character constants.  */
  6584 #define FOO(x) 'x'
  6585 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6587 int test (int i, double x);
  6588 struct s1 {int (*f) (int a);};
  6589 struct s2 {int (*f) (double a);};
  6590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6591 int argc;
  6592 char **argv;
  6593 int
  6594 main ()
  6596 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6598   return 0;
  6600 _ACEOF
  6601 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6602 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6603 do
  6604   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6605   rm -f conftest.$ac_build_objext
  6606 if { (ac_try="$ac_build_compile"
  6607 case "(($ac_try" in
  6608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6609   *) ac_try_echo=$ac_try;;
  6610 esac
  6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6612   (eval "$ac_build_compile") 2>conftest.er1
  6613   ac_status=$?
  6614   grep -v '^ *+' conftest.er1 >conftest.err
  6615   rm -f conftest.er1
  6616   cat conftest.err >&5
  6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6618   (exit $ac_status); } && {
  6619 	 test -z "$ac_c_werror_flag" ||
  6620 	 test ! -s conftest.err
  6621        } && test -s conftest.$ac_build_objext; then
  6622   ac_cv_build_prog_cc_stdc=$ac_arg
  6623 else
  6624   echo "$as_me: failed program was:" >&5
  6625 sed 's/^/| /' conftest.$ac_ext >&5
  6628 fi
  6630 rm -f core conftest.err conftest.$ac_build_objext
  6631   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6632 done
  6633 rm -f conftest.$ac_ext
  6634 CC_FOR_BUILD=$ac_save_CC
  6636 fi
  6637 # AC_CACHE_VAL
  6638 case "x$ac_cv_build_prog_cc_stdc" in
  6639   x)
  6640     { echo "$as_me:$LINENO: result: none needed" >&5
  6641 echo "${ECHO_T}none needed" >&6; } ;;
  6642   xno)
  6643     { echo "$as_me:$LINENO: result: unsupported" >&5
  6644 echo "${ECHO_T}unsupported" >&6; } ;;
  6645   *)
  6646     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6647     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6648 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6649 esac
  6650 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6651   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6652 else
  6653   ac_cv_build_prog_cc_stdc=no
  6654 fi
  6657 fi
  6659  ;;
  6660 esac
  6661   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
  6662 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
  6663   if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6664   echo $ECHO_N "(cached) $ECHO_C" >&6
  6665 fi
  6667   case $ac_cv_build_prog_cc_stdc in
  6668   no) { echo "$as_me:$LINENO: result: unsupported" >&5
  6669 echo "${ECHO_T}unsupported" >&6; } ;;
  6670   '') { echo "$as_me:$LINENO: result: none needed" >&5
  6671 echo "${ECHO_T}none needed" >&6; } ;;
  6672   *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6673 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6674 esac
  6677 ac_ext=c
  6678 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6679 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6680 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6681 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6682 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6683 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  6684 # On Suns, sometimes $CPP names a directory.
  6685 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
  6686   CPP_FOR_BUILD=
  6687 fi
  6688 if test -z "$CPP_FOR_BUILD"; then
  6689   if test "${ac_cv_build_prog_CPP+set}" = set; then
  6690   echo $ECHO_N "(cached) $ECHO_C" >&6
  6691 else
  6692       # Double quotes because CPP needs to be expanded
  6693     for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
  6694     do
  6695       ac_preproc_ok=false
  6696 for ac_c_preproc_warn_flag in '' yes
  6697 do
  6698   # Use a header file that comes with gcc, so configuring glibc
  6699   # with a fresh cross-compiler works.
  6700   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6701   # <limits.h> exists even on freestanding compilers.
  6702   # On the NeXT, cc -E runs the code through the compiler's parser,
  6703   # not just through cpp. "Syntax error" is here to catch this case.
  6704   cat >conftest.$ac_ext <<_ACEOF
  6705 /* confdefs.h.  */
  6706 _ACEOF
  6707 cat confdefs.h >>conftest.$ac_ext
  6708 cat >>conftest.$ac_ext <<_ACEOF
  6709 /* end confdefs.h.  */
  6710 #ifdef __STDC__
  6711 # include <limits.h>
  6712 #else
  6713 # include <assert.h>
  6714 #endif
  6715 		     Syntax error
  6716 _ACEOF
  6717 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6718 case "(($ac_try" in
  6719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6720   *) ac_try_echo=$ac_try;;
  6721 esac
  6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6723   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6724   ac_status=$?
  6725   grep -v '^ *+' conftest.er1 >conftest.err
  6726   rm -f conftest.er1
  6727   cat conftest.err >&5
  6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6729   (exit $ac_status); } >/dev/null && {
  6730 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6731 	 test ! -s conftest.err
  6732        }; then
  6734 else
  6735   echo "$as_me: failed program was:" >&5
  6736 sed 's/^/| /' conftest.$ac_ext >&5
  6738   # Broken: fails on valid input.
  6739 continue
  6740 fi
  6742 rm -f conftest.err conftest.$ac_ext
  6744   # OK, works on sane cases.  Now check whether nonexistent headers
  6745   # can be detected and how.
  6746   cat >conftest.$ac_ext <<_ACEOF
  6747 /* confdefs.h.  */
  6748 _ACEOF
  6749 cat confdefs.h >>conftest.$ac_ext
  6750 cat >>conftest.$ac_ext <<_ACEOF
  6751 /* end confdefs.h.  */
  6752 #include <ac_nonexistent.h>
  6753 _ACEOF
  6754 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6755 case "(($ac_try" in
  6756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6757   *) ac_try_echo=$ac_try;;
  6758 esac
  6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6760   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6761   ac_status=$?
  6762   grep -v '^ *+' conftest.er1 >conftest.err
  6763   rm -f conftest.er1
  6764   cat conftest.err >&5
  6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6766   (exit $ac_status); } >/dev/null && {
  6767 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6768 	 test ! -s conftest.err
  6769        }; then
  6770   # Broken: success on invalid input.
  6771 continue
  6772 else
  6773   echo "$as_me: failed program was:" >&5
  6774 sed 's/^/| /' conftest.$ac_ext >&5
  6776   # Passes both tests.
  6777 ac_preproc_ok=:
  6778 break
  6779 fi
  6781 rm -f conftest.err conftest.$ac_ext
  6783 done
  6784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6785 rm -f conftest.err conftest.$ac_ext
  6786 if $ac_preproc_ok; then
  6787   break
  6788 fi
  6790     done
  6791     ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  6793 fi
  6794   CPP_FOR_BUILD=$ac_cv_build_prog_CPP
  6795 else
  6796   ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  6797 fi
  6798 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
  6799 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
  6800 ac_preproc_ok=false
  6801 for ac_c_preproc_warn_flag in '' yes
  6802 do
  6803   # Use a header file that comes with gcc, so configuring glibc
  6804   # with a fresh cross-compiler works.
  6805   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6806   # <limits.h> exists even on freestanding compilers.
  6807   # On the NeXT, cc -E runs the code through the compiler's parser,
  6808   # not just through cpp. "Syntax error" is here to catch this case.
  6809   cat >conftest.$ac_ext <<_ACEOF
  6810 /* confdefs.h.  */
  6811 _ACEOF
  6812 cat confdefs.h >>conftest.$ac_ext
  6813 cat >>conftest.$ac_ext <<_ACEOF
  6814 /* end confdefs.h.  */
  6815 #ifdef __STDC__
  6816 # include <limits.h>
  6817 #else
  6818 # include <assert.h>
  6819 #endif
  6820 		     Syntax error
  6821 _ACEOF
  6822 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6823 case "(($ac_try" in
  6824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6825   *) ac_try_echo=$ac_try;;
  6826 esac
  6827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6828   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6829   ac_status=$?
  6830   grep -v '^ *+' conftest.er1 >conftest.err
  6831   rm -f conftest.er1
  6832   cat conftest.err >&5
  6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6834   (exit $ac_status); } >/dev/null && {
  6835 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6836 	 test ! -s conftest.err
  6837        }; then
  6839 else
  6840   echo "$as_me: failed program was:" >&5
  6841 sed 's/^/| /' conftest.$ac_ext >&5
  6843   # Broken: fails on valid input.
  6844 continue
  6845 fi
  6847 rm -f conftest.err conftest.$ac_ext
  6849   # OK, works on sane cases.  Now check whether nonexistent headers
  6850   # can be detected and how.
  6851   cat >conftest.$ac_ext <<_ACEOF
  6852 /* confdefs.h.  */
  6853 _ACEOF
  6854 cat confdefs.h >>conftest.$ac_ext
  6855 cat >>conftest.$ac_ext <<_ACEOF
  6856 /* end confdefs.h.  */
  6857 #include <ac_nonexistent.h>
  6858 _ACEOF
  6859 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6860 case "(($ac_try" in
  6861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6862   *) ac_try_echo=$ac_try;;
  6863 esac
  6864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6865   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6866   ac_status=$?
  6867   grep -v '^ *+' conftest.er1 >conftest.err
  6868   rm -f conftest.er1
  6869   cat conftest.err >&5
  6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6871   (exit $ac_status); } >/dev/null && {
  6872 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6873 	 test ! -s conftest.err
  6874        }; then
  6875   # Broken: success on invalid input.
  6876 continue
  6877 else
  6878   echo "$as_me: failed program was:" >&5
  6879 sed 's/^/| /' conftest.$ac_ext >&5
  6881   # Passes both tests.
  6882 ac_preproc_ok=:
  6883 break
  6884 fi
  6886 rm -f conftest.err conftest.$ac_ext
  6888 done
  6889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6890 rm -f conftest.err conftest.$ac_ext
  6891 if $ac_preproc_ok; then
  6893 else
  6894   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  6895 See \`config.log' for more details." >&5
  6896 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  6897 See \`config.log' for more details." >&2;}
  6898    { (exit 1); exit 1; }; }
  6899 fi
  6901 ac_ext=c
  6902 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6903 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6904 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6905 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6910 BUILD_EXEEXT=$ac_build_exeext
  6911 BUILD_OBJEXT=$ac_build_objext
  6913 ac_ext=m
  6914 ac_cpp='$OBJCPP $CPPFLAGS'
  6915 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6916 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6917 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  6918 if test -n "$ac_tool_prefix"; then
  6919   for ac_prog in gcc objcc objc cc CC
  6920   do
  6921     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6925 if test "${ac_cv_prog_OBJC+set}" = set; then
  6926   echo $ECHO_N "(cached) $ECHO_C" >&6
  6927 else
  6928   if test -n "$OBJC"; then
  6929   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  6930 else
  6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6932 for as_dir in $PATH
  6933 do
  6934   IFS=$as_save_IFS
  6935   test -z "$as_dir" && as_dir=.
  6936   for ac_exec_ext in '' $ac_executable_extensions; do
  6937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6938     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  6939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6940     break 2
  6941   fi
  6942 done
  6943 done
  6944 IFS=$as_save_IFS
  6946 fi
  6947 fi
  6948 OBJC=$ac_cv_prog_OBJC
  6949 if test -n "$OBJC"; then
  6950   { echo "$as_me:$LINENO: result: $OBJC" >&5
  6951 echo "${ECHO_T}$OBJC" >&6; }
  6952 else
  6953   { echo "$as_me:$LINENO: result: no" >&5
  6954 echo "${ECHO_T}no" >&6; }
  6955 fi
  6958     test -n "$OBJC" && break
  6959   done
  6960 fi
  6961 if test -z "$OBJC"; then
  6962   ac_ct_OBJC=$OBJC
  6963   for ac_prog in gcc objcc objc cc CC
  6964 do
  6965   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6966 set dummy $ac_prog; ac_word=$2
  6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6969 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  6970   echo $ECHO_N "(cached) $ECHO_C" >&6
  6971 else
  6972   if test -n "$ac_ct_OBJC"; then
  6973   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  6974 else
  6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6976 for as_dir in $PATH
  6977 do
  6978   IFS=$as_save_IFS
  6979   test -z "$as_dir" && as_dir=.
  6980   for ac_exec_ext in '' $ac_executable_extensions; do
  6981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6982     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  6983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6984     break 2
  6985   fi
  6986 done
  6987 done
  6988 IFS=$as_save_IFS
  6990 fi
  6991 fi
  6992 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  6993 if test -n "$ac_ct_OBJC"; then
  6994   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  6995 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  6996 else
  6997   { echo "$as_me:$LINENO: result: no" >&5
  6998 echo "${ECHO_T}no" >&6; }
  6999 fi
  7002   test -n "$ac_ct_OBJC" && break
  7003 done
  7005   if test "x$ac_ct_OBJC" = x; then
  7006     OBJC="gcc"
  7007   else
  7008     case $cross_compiling:$ac_tool_warned in
  7009 yes:)
  7010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7011 whose name does not start with the host triplet.  If you think this
  7012 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7014 whose name does not start with the host triplet.  If you think this
  7015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7016 ac_tool_warned=yes ;;
  7017 esac
  7018     OBJC=$ac_ct_OBJC
  7019   fi
  7020 fi
  7022 # Provide some information about the compiler.
  7023 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  7024 ac_compiler=`set X $ac_compile; echo $2`
  7025 { (ac_try="$ac_compiler --version >&5"
  7026 case "(($ac_try" in
  7027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7028   *) ac_try_echo=$ac_try;;
  7029 esac
  7030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7031   (eval "$ac_compiler --version >&5") 2>&5
  7032   ac_status=$?
  7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7034   (exit $ac_status); }
  7035 { (ac_try="$ac_compiler -v >&5"
  7036 case "(($ac_try" in
  7037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7038   *) ac_try_echo=$ac_try;;
  7039 esac
  7040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7041   (eval "$ac_compiler -v >&5") 2>&5
  7042   ac_status=$?
  7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7044   (exit $ac_status); }
  7045 { (ac_try="$ac_compiler -V >&5"
  7046 case "(($ac_try" in
  7047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7048   *) ac_try_echo=$ac_try;;
  7049 esac
  7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7051   (eval "$ac_compiler -V >&5") 2>&5
  7052   ac_status=$?
  7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7054   (exit $ac_status); }
  7056 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  7057 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  7058 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  7059   echo $ECHO_N "(cached) $ECHO_C" >&6
  7060 else
  7061   cat >conftest.$ac_ext <<_ACEOF
  7062 /* confdefs.h.  */
  7063 _ACEOF
  7064 cat confdefs.h >>conftest.$ac_ext
  7065 cat >>conftest.$ac_ext <<_ACEOF
  7066 /* end confdefs.h.  */
  7068 int
  7069 main ()
  7071 #ifndef __GNUC__
  7072        choke me
  7073 #endif
  7076   return 0;
  7078 _ACEOF
  7079 rm -f conftest.$ac_objext
  7080 if { (ac_try="$ac_compile"
  7081 case "(($ac_try" in
  7082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7083   *) ac_try_echo=$ac_try;;
  7084 esac
  7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7086   (eval "$ac_compile") 2>conftest.er1
  7087   ac_status=$?
  7088   grep -v '^ *+' conftest.er1 >conftest.err
  7089   rm -f conftest.er1
  7090   cat conftest.err >&5
  7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7092   (exit $ac_status); } && {
  7093 	 test -z "$ac_objc_werror_flag" ||
  7094 	 test ! -s conftest.err
  7095        } && test -s conftest.$ac_objext; then
  7096   ac_compiler_gnu=yes
  7097 else
  7098   echo "$as_me: failed program was:" >&5
  7099 sed 's/^/| /' conftest.$ac_ext >&5
  7101 	ac_compiler_gnu=no
  7102 fi
  7104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7105 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  7107 fi
  7108 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  7109 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  7110 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  7111 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  7112 ac_save_OBJCFLAGS=$OBJCFLAGS
  7113 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  7114 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  7115 if test "${ac_cv_prog_objc_g+set}" = set; then
  7116   echo $ECHO_N "(cached) $ECHO_C" >&6
  7117 else
  7118   ac_save_objc_werror_flag=$ac_objc_werror_flag
  7119    ac_objc_werror_flag=yes
  7120    ac_cv_prog_objc_g=no
  7121    OBJCFLAGS="-g"
  7122    cat >conftest.$ac_ext <<_ACEOF
  7123 /* confdefs.h.  */
  7124 _ACEOF
  7125 cat confdefs.h >>conftest.$ac_ext
  7126 cat >>conftest.$ac_ext <<_ACEOF
  7127 /* end confdefs.h.  */
  7129 int
  7130 main ()
  7134   return 0;
  7136 _ACEOF
  7137 rm -f conftest.$ac_objext
  7138 if { (ac_try="$ac_compile"
  7139 case "(($ac_try" in
  7140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7141   *) ac_try_echo=$ac_try;;
  7142 esac
  7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7144   (eval "$ac_compile") 2>conftest.er1
  7145   ac_status=$?
  7146   grep -v '^ *+' conftest.er1 >conftest.err
  7147   rm -f conftest.er1
  7148   cat conftest.err >&5
  7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7150   (exit $ac_status); } && {
  7151 	 test -z "$ac_objc_werror_flag" ||
  7152 	 test ! -s conftest.err
  7153        } && test -s conftest.$ac_objext; then
  7154   ac_cv_prog_objc_g=yes
  7155 else
  7156   echo "$as_me: failed program was:" >&5
  7157 sed 's/^/| /' conftest.$ac_ext >&5
  7159 	OBJCFLAGS=""
  7160       cat >conftest.$ac_ext <<_ACEOF
  7161 /* confdefs.h.  */
  7162 _ACEOF
  7163 cat confdefs.h >>conftest.$ac_ext
  7164 cat >>conftest.$ac_ext <<_ACEOF
  7165 /* end confdefs.h.  */
  7167 int
  7168 main ()
  7172   return 0;
  7174 _ACEOF
  7175 rm -f conftest.$ac_objext
  7176 if { (ac_try="$ac_compile"
  7177 case "(($ac_try" in
  7178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7179   *) ac_try_echo=$ac_try;;
  7180 esac
  7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7182   (eval "$ac_compile") 2>conftest.er1
  7183   ac_status=$?
  7184   grep -v '^ *+' conftest.er1 >conftest.err
  7185   rm -f conftest.er1
  7186   cat conftest.err >&5
  7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7188   (exit $ac_status); } && {
  7189 	 test -z "$ac_objc_werror_flag" ||
  7190 	 test ! -s conftest.err
  7191        } && test -s conftest.$ac_objext; then
  7193 else
  7194   echo "$as_me: failed program was:" >&5
  7195 sed 's/^/| /' conftest.$ac_ext >&5
  7197 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  7198 	 OBJCFLAGS="-g"
  7199 	 cat >conftest.$ac_ext <<_ACEOF
  7200 /* confdefs.h.  */
  7201 _ACEOF
  7202 cat confdefs.h >>conftest.$ac_ext
  7203 cat >>conftest.$ac_ext <<_ACEOF
  7204 /* end confdefs.h.  */
  7206 int
  7207 main ()
  7211   return 0;
  7213 _ACEOF
  7214 rm -f conftest.$ac_objext
  7215 if { (ac_try="$ac_compile"
  7216 case "(($ac_try" in
  7217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7218   *) ac_try_echo=$ac_try;;
  7219 esac
  7220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7221   (eval "$ac_compile") 2>conftest.er1
  7222   ac_status=$?
  7223   grep -v '^ *+' conftest.er1 >conftest.err
  7224   rm -f conftest.er1
  7225   cat conftest.err >&5
  7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7227   (exit $ac_status); } && {
  7228 	 test -z "$ac_objc_werror_flag" ||
  7229 	 test ! -s conftest.err
  7230        } && test -s conftest.$ac_objext; then
  7231   ac_cv_prog_objc_g=yes
  7232 else
  7233   echo "$as_me: failed program was:" >&5
  7234 sed 's/^/| /' conftest.$ac_ext >&5
  7237 fi
  7239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7240 fi
  7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7243 fi
  7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7246    ac_objc_werror_flag=$ac_save_objc_werror_flag
  7247 fi
  7248 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  7249 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  7250 if test "$ac_test_OBJCFLAGS" = set; then
  7251   OBJCFLAGS=$ac_save_OBJCFLAGS
  7252 elif test $ac_cv_prog_objc_g = yes; then
  7253   if test "$GOBJC" = yes; then
  7254     OBJCFLAGS="-g -O2"
  7255   else
  7256     OBJCFLAGS="-g"
  7257   fi
  7258 else
  7259   if test "$GOBJC" = yes; then
  7260     OBJCFLAGS="-O2"
  7261   else
  7262     OBJCFLAGS=
  7263   fi
  7264 fi
  7265 ac_ext=c
  7266 ac_cpp='$CPP $CPPFLAGS'
  7267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7271 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  7272 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  7273 if test "${ac_cv_path_SED+set}" = set; then
  7274   echo $ECHO_N "(cached) $ECHO_C" >&6
  7275 else
  7276             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7277      for ac_i in 1 2 3 4 5 6 7; do
  7278        ac_script="$ac_script$as_nl$ac_script"
  7279      done
  7280      echo "$ac_script" | sed 99q >conftest.sed
  7281      $as_unset ac_script || ac_script=
  7282      # Extract the first word of "sed gsed" to use in msg output
  7283 if test -z "$SED"; then
  7284 set dummy sed gsed; ac_prog_name=$2
  7285 if test "${ac_cv_path_SED+set}" = set; then
  7286   echo $ECHO_N "(cached) $ECHO_C" >&6
  7287 else
  7288   ac_path_SED_found=false
  7289 # Loop through the user's path and test for each of PROGNAME-LIST
  7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7291 for as_dir in $PATH
  7292 do
  7293   IFS=$as_save_IFS
  7294   test -z "$as_dir" && as_dir=.
  7295   for ac_prog in sed gsed; do
  7296   for ac_exec_ext in '' $ac_executable_extensions; do
  7297     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  7298     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  7299     # Check for GNU ac_path_SED and select it if it is found.
  7300   # Check for GNU $ac_path_SED
  7301 case `"$ac_path_SED" --version 2>&1` in
  7302 *GNU*)
  7303   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7304 *)
  7305   ac_count=0
  7306   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7307   while :
  7308   do
  7309     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7310     mv "conftest.tmp" "conftest.in"
  7311     cp "conftest.in" "conftest.nl"
  7312     echo '' >> "conftest.nl"
  7313     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7314     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7315     ac_count=`expr $ac_count + 1`
  7316     if test $ac_count -gt ${ac_path_SED_max-0}; then
  7317       # Best one so far, save it but keep looking for a better one
  7318       ac_cv_path_SED="$ac_path_SED"
  7319       ac_path_SED_max=$ac_count
  7320     fi
  7321     # 10*(2^10) chars as input seems more than enough
  7322     test $ac_count -gt 10 && break
  7323   done
  7324   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7325 esac
  7328     $ac_path_SED_found && break 3
  7329   done
  7330 done
  7332 done
  7333 IFS=$as_save_IFS
  7336 fi
  7338 SED="$ac_cv_path_SED"
  7339 if test -z "$SED"; then
  7340   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  7341 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  7342    { (exit 1); exit 1; }; }
  7343 fi
  7345 else
  7346   ac_cv_path_SED=$SED
  7347 fi
  7349 fi
  7350 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  7351 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  7352  SED="$ac_cv_path_SED"
  7353   rm -f conftest.sed
  7355 # By default we simply use the C compiler to build assembly code.
  7357 test "${CCAS+set}" = set || CCAS=$CC
  7358 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  7362 if test -n "$ac_tool_prefix"; then
  7363   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7364 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7367 if test "${ac_cv_prog_RANLIB+set}" = set; then
  7368   echo $ECHO_N "(cached) $ECHO_C" >&6
  7369 else
  7370   if test -n "$RANLIB"; then
  7371   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7372 else
  7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7374 for as_dir in $PATH
  7375 do
  7376   IFS=$as_save_IFS
  7377   test -z "$as_dir" && as_dir=.
  7378   for ac_exec_ext in '' $ac_executable_extensions; do
  7379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7380     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7382     break 2
  7383   fi
  7384 done
  7385 done
  7386 IFS=$as_save_IFS
  7388 fi
  7389 fi
  7390 RANLIB=$ac_cv_prog_RANLIB
  7391 if test -n "$RANLIB"; then
  7392   { echo "$as_me:$LINENO: result: $RANLIB" >&5
  7393 echo "${ECHO_T}$RANLIB" >&6; }
  7394 else
  7395   { echo "$as_me:$LINENO: result: no" >&5
  7396 echo "${ECHO_T}no" >&6; }
  7397 fi
  7400 fi
  7401 if test -z "$ac_cv_prog_RANLIB"; then
  7402   ac_ct_RANLIB=$RANLIB
  7403   # Extract the first word of "ranlib", so it can be a program name with args.
  7404 set dummy ranlib; ac_word=$2
  7405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7407 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  7408   echo $ECHO_N "(cached) $ECHO_C" >&6
  7409 else
  7410   if test -n "$ac_ct_RANLIB"; then
  7411   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7412 else
  7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7414 for as_dir in $PATH
  7415 do
  7416   IFS=$as_save_IFS
  7417   test -z "$as_dir" && as_dir=.
  7418   for ac_exec_ext in '' $ac_executable_extensions; do
  7419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7420     ac_cv_prog_ac_ct_RANLIB="ranlib"
  7421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7422     break 2
  7423   fi
  7424 done
  7425 done
  7426 IFS=$as_save_IFS
  7428 fi
  7429 fi
  7430 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7431 if test -n "$ac_ct_RANLIB"; then
  7432   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  7433 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  7434 else
  7435   { echo "$as_me:$LINENO: result: no" >&5
  7436 echo "${ECHO_T}no" >&6; }
  7437 fi
  7439   if test "x$ac_ct_RANLIB" = x; then
  7440     RANLIB=":"
  7441   else
  7442     case $cross_compiling:$ac_tool_warned in
  7443 yes:)
  7444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7445 whose name does not start with the host triplet.  If you think this
  7446 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7448 whose name does not start with the host triplet.  If you think this
  7449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7450 ac_tool_warned=yes ;;
  7451 esac
  7452     RANLIB=$ac_ct_RANLIB
  7453   fi
  7454 else
  7455   RANLIB="$ac_cv_prog_RANLIB"
  7456 fi
  7459 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  7460 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  7461 if test "${ac_cv_path_GREP+set}" = set; then
  7462   echo $ECHO_N "(cached) $ECHO_C" >&6
  7463 else
  7464   # Extract the first word of "grep ggrep" to use in msg output
  7465 if test -z "$GREP"; then
  7466 set dummy grep ggrep; ac_prog_name=$2
  7467 if test "${ac_cv_path_GREP+set}" = set; then
  7468   echo $ECHO_N "(cached) $ECHO_C" >&6
  7469 else
  7470   ac_path_GREP_found=false
  7471 # Loop through the user's path and test for each of PROGNAME-LIST
  7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7474 do
  7475   IFS=$as_save_IFS
  7476   test -z "$as_dir" && as_dir=.
  7477   for ac_prog in grep ggrep; do
  7478   for ac_exec_ext in '' $ac_executable_extensions; do
  7479     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  7480     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  7481     # Check for GNU ac_path_GREP and select it if it is found.
  7482   # Check for GNU $ac_path_GREP
  7483 case `"$ac_path_GREP" --version 2>&1` in
  7484 *GNU*)
  7485   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  7486 *)
  7487   ac_count=0
  7488   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7489   while :
  7490   do
  7491     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7492     mv "conftest.tmp" "conftest.in"
  7493     cp "conftest.in" "conftest.nl"
  7494     echo 'GREP' >> "conftest.nl"
  7495     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7496     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7497     ac_count=`expr $ac_count + 1`
  7498     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  7499       # Best one so far, save it but keep looking for a better one
  7500       ac_cv_path_GREP="$ac_path_GREP"
  7501       ac_path_GREP_max=$ac_count
  7502     fi
  7503     # 10*(2^10) chars as input seems more than enough
  7504     test $ac_count -gt 10 && break
  7505   done
  7506   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7507 esac
  7510     $ac_path_GREP_found && break 3
  7511   done
  7512 done
  7514 done
  7515 IFS=$as_save_IFS
  7518 fi
  7520 GREP="$ac_cv_path_GREP"
  7521 if test -z "$GREP"; then
  7522   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  7523 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  7524    { (exit 1); exit 1; }; }
  7525 fi
  7527 else
  7528   ac_cv_path_GREP=$GREP
  7529 fi
  7532 fi
  7533 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  7534 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  7535  GREP="$ac_cv_path_GREP"
  7538 { echo "$as_me:$LINENO: checking for egrep" >&5
  7539 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  7540 if test "${ac_cv_path_EGREP+set}" = set; then
  7541   echo $ECHO_N "(cached) $ECHO_C" >&6
  7542 else
  7543   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  7544    then ac_cv_path_EGREP="$GREP -E"
  7545    else
  7546      # Extract the first word of "egrep" to use in msg output
  7547 if test -z "$EGREP"; then
  7548 set dummy egrep; ac_prog_name=$2
  7549 if test "${ac_cv_path_EGREP+set}" = set; then
  7550   echo $ECHO_N "(cached) $ECHO_C" >&6
  7551 else
  7552   ac_path_EGREP_found=false
  7553 # Loop through the user's path and test for each of PROGNAME-LIST
  7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7555 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7556 do
  7557   IFS=$as_save_IFS
  7558   test -z "$as_dir" && as_dir=.
  7559   for ac_prog in egrep; do
  7560   for ac_exec_ext in '' $ac_executable_extensions; do
  7561     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  7562     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  7563     # Check for GNU ac_path_EGREP and select it if it is found.
  7564   # Check for GNU $ac_path_EGREP
  7565 case `"$ac_path_EGREP" --version 2>&1` in
  7566 *GNU*)
  7567   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  7568 *)
  7569   ac_count=0
  7570   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7571   while :
  7572   do
  7573     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7574     mv "conftest.tmp" "conftest.in"
  7575     cp "conftest.in" "conftest.nl"
  7576     echo 'EGREP' >> "conftest.nl"
  7577     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7578     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7579     ac_count=`expr $ac_count + 1`
  7580     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  7581       # Best one so far, save it but keep looking for a better one
  7582       ac_cv_path_EGREP="$ac_path_EGREP"
  7583       ac_path_EGREP_max=$ac_count
  7584     fi
  7585     # 10*(2^10) chars as input seems more than enough
  7586     test $ac_count -gt 10 && break
  7587   done
  7588   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7589 esac
  7592     $ac_path_EGREP_found && break 3
  7593   done
  7594 done
  7596 done
  7597 IFS=$as_save_IFS
  7600 fi
  7602 EGREP="$ac_cv_path_EGREP"
  7603 if test -z "$EGREP"; then
  7604   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  7605 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  7606    { (exit 1); exit 1; }; }
  7607 fi
  7609 else
  7610   ac_cv_path_EGREP=$EGREP
  7611 fi
  7614    fi
  7615 fi
  7616 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  7617 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  7618  EGREP="$ac_cv_path_EGREP"
  7621 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7622 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  7623 if test "${ac_cv_header_stdc+set}" = set; then
  7624   echo $ECHO_N "(cached) $ECHO_C" >&6
  7625 else
  7626   cat >conftest.$ac_ext <<_ACEOF
  7627 /* confdefs.h.  */
  7628 _ACEOF
  7629 cat confdefs.h >>conftest.$ac_ext
  7630 cat >>conftest.$ac_ext <<_ACEOF
  7631 /* end confdefs.h.  */
  7632 #include <stdlib.h>
  7633 #include <stdarg.h>
  7634 #include <string.h>
  7635 #include <float.h>
  7637 int
  7638 main ()
  7642   return 0;
  7644 _ACEOF
  7645 rm -f conftest.$ac_objext
  7646 if { (ac_try="$ac_compile"
  7647 case "(($ac_try" in
  7648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7649   *) ac_try_echo=$ac_try;;
  7650 esac
  7651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7652   (eval "$ac_compile") 2>conftest.er1
  7653   ac_status=$?
  7654   grep -v '^ *+' conftest.er1 >conftest.err
  7655   rm -f conftest.er1
  7656   cat conftest.err >&5
  7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7658   (exit $ac_status); } && {
  7659 	 test -z "$ac_c_werror_flag" ||
  7660 	 test ! -s conftest.err
  7661        } && test -s conftest.$ac_objext; then
  7662   ac_cv_header_stdc=yes
  7663 else
  7664   echo "$as_me: failed program was:" >&5
  7665 sed 's/^/| /' conftest.$ac_ext >&5
  7667 	ac_cv_header_stdc=no
  7668 fi
  7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7672 if test $ac_cv_header_stdc = yes; then
  7673   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7674   cat >conftest.$ac_ext <<_ACEOF
  7675 /* confdefs.h.  */
  7676 _ACEOF
  7677 cat confdefs.h >>conftest.$ac_ext
  7678 cat >>conftest.$ac_ext <<_ACEOF
  7679 /* end confdefs.h.  */
  7680 #include <string.h>
  7682 _ACEOF
  7683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7684   $EGREP "memchr" >/dev/null 2>&1; then
  7686 else
  7687   ac_cv_header_stdc=no
  7688 fi
  7689 rm -f conftest*
  7691 fi
  7693 if test $ac_cv_header_stdc = yes; then
  7694   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7695   cat >conftest.$ac_ext <<_ACEOF
  7696 /* confdefs.h.  */
  7697 _ACEOF
  7698 cat confdefs.h >>conftest.$ac_ext
  7699 cat >>conftest.$ac_ext <<_ACEOF
  7700 /* end confdefs.h.  */
  7701 #include <stdlib.h>
  7703 _ACEOF
  7704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7705   $EGREP "free" >/dev/null 2>&1; then
  7707 else
  7708   ac_cv_header_stdc=no
  7709 fi
  7710 rm -f conftest*
  7712 fi
  7714 if test $ac_cv_header_stdc = yes; then
  7715   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7716   if test "$cross_compiling" = yes; then
  7718 else
  7719   cat >conftest.$ac_ext <<_ACEOF
  7720 /* confdefs.h.  */
  7721 _ACEOF
  7722 cat confdefs.h >>conftest.$ac_ext
  7723 cat >>conftest.$ac_ext <<_ACEOF
  7724 /* end confdefs.h.  */
  7725 #include <ctype.h>
  7726 #include <stdlib.h>
  7727 #if ((' ' & 0x0FF) == 0x020)
  7728 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7729 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7730 #else
  7731 # define ISLOWER(c) \
  7732 		   (('a' <= (c) && (c) <= 'i') \
  7733 		     || ('j' <= (c) && (c) <= 'r') \
  7734 		     || ('s' <= (c) && (c) <= 'z'))
  7735 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7736 #endif
  7738 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7739 int
  7740 main ()
  7742   int i;
  7743   for (i = 0; i < 256; i++)
  7744     if (XOR (islower (i), ISLOWER (i))
  7745 	|| toupper (i) != TOUPPER (i))
  7746       return 2;
  7747   return 0;
  7749 _ACEOF
  7750 rm -f conftest$ac_exeext
  7751 if { (ac_try="$ac_link"
  7752 case "(($ac_try" in
  7753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7754   *) ac_try_echo=$ac_try;;
  7755 esac
  7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7757   (eval "$ac_link") 2>&5
  7758   ac_status=$?
  7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7761   { (case "(($ac_try" in
  7762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7763   *) ac_try_echo=$ac_try;;
  7764 esac
  7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7766   (eval "$ac_try") 2>&5
  7767   ac_status=$?
  7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7769   (exit $ac_status); }; }; then
  7771 else
  7772   echo "$as_me: program exited with status $ac_status" >&5
  7773 echo "$as_me: failed program was:" >&5
  7774 sed 's/^/| /' conftest.$ac_ext >&5
  7776 ( exit $ac_status )
  7777 ac_cv_header_stdc=no
  7778 fi
  7779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7780 fi
  7783 fi
  7784 fi
  7785 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7786 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  7787 if test $ac_cv_header_stdc = yes; then
  7789 cat >>confdefs.h <<\_ACEOF
  7790 #define STDC_HEADERS 1
  7791 _ACEOF
  7793 fi
  7795 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7805 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7806 		  inttypes.h stdint.h unistd.h
  7807 do
  7808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7812   echo $ECHO_N "(cached) $ECHO_C" >&6
  7813 else
  7814   cat >conftest.$ac_ext <<_ACEOF
  7815 /* confdefs.h.  */
  7816 _ACEOF
  7817 cat confdefs.h >>conftest.$ac_ext
  7818 cat >>conftest.$ac_ext <<_ACEOF
  7819 /* end confdefs.h.  */
  7820 $ac_includes_default
  7822 #include <$ac_header>
  7823 _ACEOF
  7824 rm -f conftest.$ac_objext
  7825 if { (ac_try="$ac_compile"
  7826 case "(($ac_try" in
  7827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7828   *) ac_try_echo=$ac_try;;
  7829 esac
  7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7831   (eval "$ac_compile") 2>conftest.er1
  7832   ac_status=$?
  7833   grep -v '^ *+' conftest.er1 >conftest.err
  7834   rm -f conftest.er1
  7835   cat conftest.err >&5
  7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7837   (exit $ac_status); } && {
  7838 	 test -z "$ac_c_werror_flag" ||
  7839 	 test ! -s conftest.err
  7840        } && test -s conftest.$ac_objext; then
  7841   eval "$as_ac_Header=yes"
  7842 else
  7843   echo "$as_me: failed program was:" >&5
  7844 sed 's/^/| /' conftest.$ac_ext >&5
  7846 	eval "$as_ac_Header=no"
  7847 fi
  7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7850 fi
  7851 ac_res=`eval echo '${'$as_ac_Header'}'`
  7852 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  7853 echo "${ECHO_T}$ac_res" >&6; }
  7854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7855   cat >>confdefs.h <<_ACEOF
  7856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7857 _ACEOF
  7859 fi
  7861 done
  7864 { echo "$as_me:$LINENO: checking for void *" >&5
  7865 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
  7866 if test "${ac_cv_type_void_p+set}" = set; then
  7867   echo $ECHO_N "(cached) $ECHO_C" >&6
  7868 else
  7869   cat >conftest.$ac_ext <<_ACEOF
  7870 /* confdefs.h.  */
  7871 _ACEOF
  7872 cat confdefs.h >>conftest.$ac_ext
  7873 cat >>conftest.$ac_ext <<_ACEOF
  7874 /* end confdefs.h.  */
  7875 $ac_includes_default
  7876 typedef void * ac__type_new_;
  7877 int
  7878 main ()
  7880 if ((ac__type_new_ *) 0)
  7881   return 0;
  7882 if (sizeof (ac__type_new_))
  7883   return 0;
  7885   return 0;
  7887 _ACEOF
  7888 rm -f conftest.$ac_objext
  7889 if { (ac_try="$ac_compile"
  7890 case "(($ac_try" in
  7891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7892   *) ac_try_echo=$ac_try;;
  7893 esac
  7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7895   (eval "$ac_compile") 2>conftest.er1
  7896   ac_status=$?
  7897   grep -v '^ *+' conftest.er1 >conftest.err
  7898   rm -f conftest.er1
  7899   cat conftest.err >&5
  7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7901   (exit $ac_status); } && {
  7902 	 test -z "$ac_c_werror_flag" ||
  7903 	 test ! -s conftest.err
  7904        } && test -s conftest.$ac_objext; then
  7905   ac_cv_type_void_p=yes
  7906 else
  7907   echo "$as_me: failed program was:" >&5
  7908 sed 's/^/| /' conftest.$ac_ext >&5
  7910 	ac_cv_type_void_p=no
  7911 fi
  7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7914 fi
  7915 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
  7916 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
  7918 # The cast to long int works around a bug in the HP C Compiler
  7919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7921 # This bug is HP SR number 8606223364.
  7922 { echo "$as_me:$LINENO: checking size of void *" >&5
  7923 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
  7924 if test "${ac_cv_sizeof_void_p+set}" = set; then
  7925   echo $ECHO_N "(cached) $ECHO_C" >&6
  7926 else
  7927   if test "$cross_compiling" = yes; then
  7928   # Depending upon the size, compute the lo and hi bounds.
  7929 cat >conftest.$ac_ext <<_ACEOF
  7930 /* confdefs.h.  */
  7931 _ACEOF
  7932 cat confdefs.h >>conftest.$ac_ext
  7933 cat >>conftest.$ac_ext <<_ACEOF
  7934 /* end confdefs.h.  */
  7935 $ac_includes_default
  7936    typedef void * ac__type_sizeof_;
  7937 int
  7938 main ()
  7940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  7941 test_array [0] = 0
  7944   return 0;
  7946 _ACEOF
  7947 rm -f conftest.$ac_objext
  7948 if { (ac_try="$ac_compile"
  7949 case "(($ac_try" in
  7950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7951   *) ac_try_echo=$ac_try;;
  7952 esac
  7953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7954   (eval "$ac_compile") 2>conftest.er1
  7955   ac_status=$?
  7956   grep -v '^ *+' conftest.er1 >conftest.err
  7957   rm -f conftest.er1
  7958   cat conftest.err >&5
  7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7960   (exit $ac_status); } && {
  7961 	 test -z "$ac_c_werror_flag" ||
  7962 	 test ! -s conftest.err
  7963        } && test -s conftest.$ac_objext; then
  7964   ac_lo=0 ac_mid=0
  7965   while :; do
  7966     cat >conftest.$ac_ext <<_ACEOF
  7967 /* confdefs.h.  */
  7968 _ACEOF
  7969 cat confdefs.h >>conftest.$ac_ext
  7970 cat >>conftest.$ac_ext <<_ACEOF
  7971 /* end confdefs.h.  */
  7972 $ac_includes_default
  7973    typedef void * ac__type_sizeof_;
  7974 int
  7975 main ()
  7977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7978 test_array [0] = 0
  7981   return 0;
  7983 _ACEOF
  7984 rm -f conftest.$ac_objext
  7985 if { (ac_try="$ac_compile"
  7986 case "(($ac_try" in
  7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7988   *) ac_try_echo=$ac_try;;
  7989 esac
  7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7991   (eval "$ac_compile") 2>conftest.er1
  7992   ac_status=$?
  7993   grep -v '^ *+' conftest.er1 >conftest.err
  7994   rm -f conftest.er1
  7995   cat conftest.err >&5
  7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7997   (exit $ac_status); } && {
  7998 	 test -z "$ac_c_werror_flag" ||
  7999 	 test ! -s conftest.err
  8000        } && test -s conftest.$ac_objext; then
  8001   ac_hi=$ac_mid; break
  8002 else
  8003   echo "$as_me: failed program was:" >&5
  8004 sed 's/^/| /' conftest.$ac_ext >&5
  8006 	ac_lo=`expr $ac_mid + 1`
  8007 			if test $ac_lo -le $ac_mid; then
  8008 			  ac_lo= ac_hi=
  8009 			  break
  8010 			fi
  8011 			ac_mid=`expr 2 '*' $ac_mid + 1`
  8012 fi
  8014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8015   done
  8016 else
  8017   echo "$as_me: failed program was:" >&5
  8018 sed 's/^/| /' conftest.$ac_ext >&5
  8020 	cat >conftest.$ac_ext <<_ACEOF
  8021 /* confdefs.h.  */
  8022 _ACEOF
  8023 cat confdefs.h >>conftest.$ac_ext
  8024 cat >>conftest.$ac_ext <<_ACEOF
  8025 /* end confdefs.h.  */
  8026 $ac_includes_default
  8027    typedef void * ac__type_sizeof_;
  8028 int
  8029 main ()
  8031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  8032 test_array [0] = 0
  8035   return 0;
  8037 _ACEOF
  8038 rm -f conftest.$ac_objext
  8039 if { (ac_try="$ac_compile"
  8040 case "(($ac_try" in
  8041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8042   *) ac_try_echo=$ac_try;;
  8043 esac
  8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8045   (eval "$ac_compile") 2>conftest.er1
  8046   ac_status=$?
  8047   grep -v '^ *+' conftest.er1 >conftest.err
  8048   rm -f conftest.er1
  8049   cat conftest.err >&5
  8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8051   (exit $ac_status); } && {
  8052 	 test -z "$ac_c_werror_flag" ||
  8053 	 test ! -s conftest.err
  8054        } && test -s conftest.$ac_objext; then
  8055   ac_hi=-1 ac_mid=-1
  8056   while :; do
  8057     cat >conftest.$ac_ext <<_ACEOF
  8058 /* confdefs.h.  */
  8059 _ACEOF
  8060 cat confdefs.h >>conftest.$ac_ext
  8061 cat >>conftest.$ac_ext <<_ACEOF
  8062 /* end confdefs.h.  */
  8063 $ac_includes_default
  8064    typedef void * ac__type_sizeof_;
  8065 int
  8066 main ()
  8068 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  8069 test_array [0] = 0
  8072   return 0;
  8074 _ACEOF
  8075 rm -f conftest.$ac_objext
  8076 if { (ac_try="$ac_compile"
  8077 case "(($ac_try" in
  8078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8079   *) ac_try_echo=$ac_try;;
  8080 esac
  8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8082   (eval "$ac_compile") 2>conftest.er1
  8083   ac_status=$?
  8084   grep -v '^ *+' conftest.er1 >conftest.err
  8085   rm -f conftest.er1
  8086   cat conftest.err >&5
  8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8088   (exit $ac_status); } && {
  8089 	 test -z "$ac_c_werror_flag" ||
  8090 	 test ! -s conftest.err
  8091        } && test -s conftest.$ac_objext; then
  8092   ac_lo=$ac_mid; break
  8093 else
  8094   echo "$as_me: failed program was:" >&5
  8095 sed 's/^/| /' conftest.$ac_ext >&5
  8097 	ac_hi=`expr '(' $ac_mid ')' - 1`
  8098 			if test $ac_mid -le $ac_hi; then
  8099 			  ac_lo= ac_hi=
  8100 			  break
  8101 			fi
  8102 			ac_mid=`expr 2 '*' $ac_mid`
  8103 fi
  8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8106   done
  8107 else
  8108   echo "$as_me: failed program was:" >&5
  8109 sed 's/^/| /' conftest.$ac_ext >&5
  8111 	ac_lo= ac_hi=
  8112 fi
  8114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8115 fi
  8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8118 # Binary search between lo and hi bounds.
  8119 while test "x$ac_lo" != "x$ac_hi"; do
  8120   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8121   cat >conftest.$ac_ext <<_ACEOF
  8122 /* confdefs.h.  */
  8123 _ACEOF
  8124 cat confdefs.h >>conftest.$ac_ext
  8125 cat >>conftest.$ac_ext <<_ACEOF
  8126 /* end confdefs.h.  */
  8127 $ac_includes_default
  8128    typedef void * ac__type_sizeof_;
  8129 int
  8130 main ()
  8132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8133 test_array [0] = 0
  8136   return 0;
  8138 _ACEOF
  8139 rm -f conftest.$ac_objext
  8140 if { (ac_try="$ac_compile"
  8141 case "(($ac_try" in
  8142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8143   *) ac_try_echo=$ac_try;;
  8144 esac
  8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8146   (eval "$ac_compile") 2>conftest.er1
  8147   ac_status=$?
  8148   grep -v '^ *+' conftest.er1 >conftest.err
  8149   rm -f conftest.er1
  8150   cat conftest.err >&5
  8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8152   (exit $ac_status); } && {
  8153 	 test -z "$ac_c_werror_flag" ||
  8154 	 test ! -s conftest.err
  8155        } && test -s conftest.$ac_objext; then
  8156   ac_hi=$ac_mid
  8157 else
  8158   echo "$as_me: failed program was:" >&5
  8159 sed 's/^/| /' conftest.$ac_ext >&5
  8161 	ac_lo=`expr '(' $ac_mid ')' + 1`
  8162 fi
  8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8165 done
  8166 case $ac_lo in
  8167 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  8168 '') if test "$ac_cv_type_void_p" = yes; then
  8169      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  8170 See \`config.log' for more details." >&5
  8171 echo "$as_me: error: cannot compute sizeof (void *)
  8172 See \`config.log' for more details." >&2;}
  8173    { (exit 77); exit 77; }; }
  8174    else
  8175      ac_cv_sizeof_void_p=0
  8176    fi ;;
  8177 esac
  8178 else
  8179   cat >conftest.$ac_ext <<_ACEOF
  8180 /* confdefs.h.  */
  8181 _ACEOF
  8182 cat confdefs.h >>conftest.$ac_ext
  8183 cat >>conftest.$ac_ext <<_ACEOF
  8184 /* end confdefs.h.  */
  8185 $ac_includes_default
  8186    typedef void * ac__type_sizeof_;
  8187 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8188 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8189 #include <stdio.h>
  8190 #include <stdlib.h>
  8191 int
  8192 main ()
  8195   FILE *f = fopen ("conftest.val", "w");
  8196   if (! f)
  8197     return 1;
  8198   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  8200       long int i = longval ();
  8201       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8202 	return 1;
  8203       fprintf (f, "%ld\n", i);
  8205   else
  8207       unsigned long int i = ulongval ();
  8208       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8209 	return 1;
  8210       fprintf (f, "%lu\n", i);
  8212   return ferror (f) || fclose (f) != 0;
  8215   return 0;
  8217 _ACEOF
  8218 rm -f conftest$ac_exeext
  8219 if { (ac_try="$ac_link"
  8220 case "(($ac_try" in
  8221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8222   *) ac_try_echo=$ac_try;;
  8223 esac
  8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8225   (eval "$ac_link") 2>&5
  8226   ac_status=$?
  8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8229   { (case "(($ac_try" in
  8230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8231   *) ac_try_echo=$ac_try;;
  8232 esac
  8233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8234   (eval "$ac_try") 2>&5
  8235   ac_status=$?
  8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8237   (exit $ac_status); }; }; then
  8238   ac_cv_sizeof_void_p=`cat conftest.val`
  8239 else
  8240   echo "$as_me: program exited with status $ac_status" >&5
  8241 echo "$as_me: failed program was:" >&5
  8242 sed 's/^/| /' conftest.$ac_ext >&5
  8244 ( exit $ac_status )
  8245 if test "$ac_cv_type_void_p" = yes; then
  8246      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  8247 See \`config.log' for more details." >&5
  8248 echo "$as_me: error: cannot compute sizeof (void *)
  8249 See \`config.log' for more details." >&2;}
  8250    { (exit 77); exit 77; }; }
  8251    else
  8252      ac_cv_sizeof_void_p=0
  8253    fi
  8254 fi
  8255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8256 fi
  8257 rm -f conftest.val
  8258 fi
  8259 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  8260 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
  8264 cat >>confdefs.h <<_ACEOF
  8265 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  8266 _ACEOF
  8269 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  8270 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  8271 if test "${ac_cv_header_stdc+set}" = set; then
  8272   echo $ECHO_N "(cached) $ECHO_C" >&6
  8273 else
  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 #include <stdlib.h>
  8281 #include <stdarg.h>
  8282 #include <string.h>
  8283 #include <float.h>
  8285 int
  8286 main ()
  8290   return 0;
  8292 _ACEOF
  8293 rm -f conftest.$ac_objext
  8294 if { (ac_try="$ac_compile"
  8295 case "(($ac_try" in
  8296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8297   *) ac_try_echo=$ac_try;;
  8298 esac
  8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8300   (eval "$ac_compile") 2>conftest.er1
  8301   ac_status=$?
  8302   grep -v '^ *+' conftest.er1 >conftest.err
  8303   rm -f conftest.er1
  8304   cat conftest.err >&5
  8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8306   (exit $ac_status); } && {
  8307 	 test -z "$ac_c_werror_flag" ||
  8308 	 test ! -s conftest.err
  8309        } && test -s conftest.$ac_objext; then
  8310   ac_cv_header_stdc=yes
  8311 else
  8312   echo "$as_me: failed program was:" >&5
  8313 sed 's/^/| /' conftest.$ac_ext >&5
  8315 	ac_cv_header_stdc=no
  8316 fi
  8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8320 if test $ac_cv_header_stdc = yes; then
  8321   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8322   cat >conftest.$ac_ext <<_ACEOF
  8323 /* confdefs.h.  */
  8324 _ACEOF
  8325 cat confdefs.h >>conftest.$ac_ext
  8326 cat >>conftest.$ac_ext <<_ACEOF
  8327 /* end confdefs.h.  */
  8328 #include <string.h>
  8330 _ACEOF
  8331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8332   $EGREP "memchr" >/dev/null 2>&1; then
  8334 else
  8335   ac_cv_header_stdc=no
  8336 fi
  8337 rm -f conftest*
  8339 fi
  8341 if test $ac_cv_header_stdc = yes; then
  8342   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8343   cat >conftest.$ac_ext <<_ACEOF
  8344 /* confdefs.h.  */
  8345 _ACEOF
  8346 cat confdefs.h >>conftest.$ac_ext
  8347 cat >>conftest.$ac_ext <<_ACEOF
  8348 /* end confdefs.h.  */
  8349 #include <stdlib.h>
  8351 _ACEOF
  8352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8353   $EGREP "free" >/dev/null 2>&1; then
  8355 else
  8356   ac_cv_header_stdc=no
  8357 fi
  8358 rm -f conftest*
  8360 fi
  8362 if test $ac_cv_header_stdc = yes; then
  8363   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8364   if test "$cross_compiling" = yes; then
  8366 else
  8367   cat >conftest.$ac_ext <<_ACEOF
  8368 /* confdefs.h.  */
  8369 _ACEOF
  8370 cat confdefs.h >>conftest.$ac_ext
  8371 cat >>conftest.$ac_ext <<_ACEOF
  8372 /* end confdefs.h.  */
  8373 #include <ctype.h>
  8374 #include <stdlib.h>
  8375 #if ((' ' & 0x0FF) == 0x020)
  8376 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8377 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8378 #else
  8379 # define ISLOWER(c) \
  8380 		   (('a' <= (c) && (c) <= 'i') \
  8381 		     || ('j' <= (c) && (c) <= 'r') \
  8382 		     || ('s' <= (c) && (c) <= 'z'))
  8383 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8384 #endif
  8386 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8387 int
  8388 main ()
  8390   int i;
  8391   for (i = 0; i < 256; i++)
  8392     if (XOR (islower (i), ISLOWER (i))
  8393 	|| toupper (i) != TOUPPER (i))
  8394       return 2;
  8395   return 0;
  8397 _ACEOF
  8398 rm -f conftest$ac_exeext
  8399 if { (ac_try="$ac_link"
  8400 case "(($ac_try" in
  8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8402   *) ac_try_echo=$ac_try;;
  8403 esac
  8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8405   (eval "$ac_link") 2>&5
  8406   ac_status=$?
  8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8409   { (case "(($ac_try" in
  8410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8411   *) ac_try_echo=$ac_try;;
  8412 esac
  8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8414   (eval "$ac_try") 2>&5
  8415   ac_status=$?
  8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8417   (exit $ac_status); }; }; then
  8419 else
  8420   echo "$as_me: program exited with status $ac_status" >&5
  8421 echo "$as_me: failed program was:" >&5
  8422 sed 's/^/| /' conftest.$ac_ext >&5
  8424 ( exit $ac_status )
  8425 ac_cv_header_stdc=no
  8426 fi
  8427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8428 fi
  8431 fi
  8432 fi
  8433 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8434 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  8435 if test $ac_cv_header_stdc = yes; then
  8437 cat >>confdefs.h <<\_ACEOF
  8438 #define STDC_HEADERS 1
  8439 _ACEOF
  8441 fi
  8445 depcc="$OBJC" am_compiler_list='gcc3 gcc'
  8447 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  8448 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  8449 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
  8450   echo $ECHO_N "(cached) $ECHO_C" >&6
  8451 else
  8452   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8453   # We make a subdir and do the tests there.  Otherwise we can end up
  8454   # making bogus files that we don't know about and never remove.  For
  8455   # instance it was reported that on HP-UX the gcc test will end up
  8456   # making a dummy file named `D' -- because `-MD' means `put the output
  8457   # in D'.
  8458   mkdir conftest.dir
  8459   # Copy depcomp to subdir because otherwise we won't find it if we're
  8460   # using a relative directory.
  8461   cp "$am_depcomp" conftest.dir
  8462   cd conftest.dir
  8463   # We will build objects and dependencies in a subdirectory because
  8464   # it helps to detect inapplicable dependency modes.  For instance
  8465   # both Tru64's cc and ICC support -MD to output dependencies as a
  8466   # side effect of compilation, but ICC will put the dependencies in
  8467   # the current directory while Tru64 will put them in the object
  8468   # directory.
  8469   mkdir sub
  8471   am_cv_OBJC_dependencies_compiler_type=none
  8472   if test "$am_compiler_list" = ""; then
  8473      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  8474   fi
  8475   for depmode in $am_compiler_list; do
  8476     # Setup a source with many dependencies, because some compilers
  8477     # like to wrap large dependency lists on column 80 (with \), and
  8478     # we should not choose a depcomp mode which is confused by this.
  8480     # We need to recreate these files for each test, as the compiler may
  8481     # overwrite some of them when testing with obscure command lines.
  8482     # This happens at least with the AIX C compiler.
  8483     : > sub/conftest.c
  8484     for i in 1 2 3 4 5 6; do
  8485       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8486       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8487       # Solaris 8's {/usr,}/bin/sh.
  8488       touch sub/conftst$i.h
  8489     done
  8490     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8492     case $depmode in
  8493     nosideeffect)
  8494       # after this tag, mechanisms are not by side-effect, so they'll
  8495       # only be used when explicitly requested
  8496       if test "x$enable_dependency_tracking" = xyes; then
  8497 	continue
  8498       else
  8499 	break
  8500       fi
  8501       ;;
  8502     none) break ;;
  8503     esac
  8504     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8505     # mode.  It turns out that the SunPro C++ compiler does not properly
  8506     # handle `-M -o', and we need to detect this.
  8507     if depmode=$depmode \
  8508        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  8509        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8510        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  8511          >/dev/null 2>conftest.err &&
  8512        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8513        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  8514        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8515       # icc doesn't choke on unknown options, it will just issue warnings
  8516       # or remarks (even with -Werror).  So we grep stderr for any message
  8517       # that says an option was ignored or not supported.
  8518       # When given -MP, icc 7.0 and 7.1 complain thusly:
  8519       #   icc: Command line warning: ignoring option '-M'; no argument required
  8520       # The diagnosis changed in icc 8.0:
  8521       #   icc: Command line remark: option '-MP' not supported
  8522       if (grep 'ignoring option' conftest.err ||
  8523           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8524         am_cv_OBJC_dependencies_compiler_type=$depmode
  8525         break
  8526       fi
  8527     fi
  8528   done
  8530   cd ..
  8531   rm -rf conftest.dir
  8532 else
  8533   am_cv_OBJC_dependencies_compiler_type=none
  8534 fi
  8536 fi
  8537 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
  8538 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
  8539 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
  8543 if
  8544   test "x$enable_dependency_tracking" != xno \
  8545   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  8546   am__fastdepOBJC_TRUE=
  8547   am__fastdepOBJC_FALSE='#'
  8548 else
  8549   am__fastdepOBJC_TRUE='#'
  8550   am__fastdepOBJC_FALSE=
  8551 fi
  8555 # Extract the first word of "pod2man", so it can be a program name with args.
  8556 set dummy pod2man; ac_word=$2
  8557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8559 if test "${ac_cv_path_POD2MAN+set}" = set; then
  8560   echo $ECHO_N "(cached) $ECHO_C" >&6
  8561 else
  8562   case $POD2MAN in
  8563   [\\/]* | ?:[\\/]*)
  8564   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  8565   ;;
  8566   *)
  8567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8568 for as_dir in $PATH
  8569 do
  8570   IFS=$as_save_IFS
  8571   test -z "$as_dir" && as_dir=.
  8572   for ac_exec_ext in '' $ac_executable_extensions; do
  8573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8574     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  8575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8576     break 2
  8577   fi
  8578 done
  8579 done
  8580 IFS=$as_save_IFS
  8582   ;;
  8583 esac
  8584 fi
  8585 POD2MAN=$ac_cv_path_POD2MAN
  8586 if test -n "$POD2MAN"; then
  8587   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
  8588 echo "${ECHO_T}$POD2MAN" >&6; }
  8589 else
  8590   { echo "$as_me:$LINENO: result: no" >&5
  8591 echo "${ECHO_T}no" >&6; }
  8592 fi
  8595 # Extract the first word of "pod2html", so it can be a program name with args.
  8596 set dummy pod2html; ac_word=$2
  8597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8599 if test "${ac_cv_path_POD2HTML+set}" = set; then
  8600   echo $ECHO_N "(cached) $ECHO_C" >&6
  8601 else
  8602   case $POD2HTML in
  8603   [\\/]* | ?:[\\/]*)
  8604   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  8605   ;;
  8606   *)
  8607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8608 for as_dir in $PATH
  8609 do
  8610   IFS=$as_save_IFS
  8611   test -z "$as_dir" && as_dir=.
  8612   for ac_exec_ext in '' $ac_executable_extensions; do
  8613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8614     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  8615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8616     break 2
  8617   fi
  8618 done
  8619 done
  8620 IFS=$as_save_IFS
  8622   ;;
  8623 esac
  8624 fi
  8625 POD2HTML=$ac_cv_path_POD2HTML
  8626 if test -n "$POD2HTML"; then
  8627   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
  8628 echo "${ECHO_T}$POD2HTML" >&6; }
  8629 else
  8630   { echo "$as_me:$LINENO: result: no" >&5
  8631 echo "${ECHO_T}no" >&6; }
  8632 fi
  8637 cat >>confdefs.h <<_ACEOF
  8638 #define BUILD_SED_PROG "${SED}"
  8639 _ACEOF
  8642 cat >>confdefs.h <<_ACEOF
  8643 #define BUILD_CPP_PROG "${CPP}"
  8644 _ACEOF
  8648 # Check whether --enable-strict-warn was given.
  8649 if test "${enable_strict_warn+set}" = set; then
  8650   enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
  8651       enable_strictwarn=yes
  8652     fi
  8653 fi
  8655 # Check whether --enable-translator was given.
  8656 if test "${enable_translator+set}" = set; then
  8657   enableval=$enable_translator; true
  8658 else
  8659   enable_translator=yes
  8660 fi
  8662 # Check whether --enable-optimized was given.
  8663 if test "${enable_optimized+set}" = set; then
  8664   enableval=$enable_optimized; true
  8665 else
  8666   enable_optimized=yes
  8667 fi
  8669 # Check whether --enable-shared was given.
  8670 if test "${enable_shared+set}" = set; then
  8671   enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
  8672 else
  8673   enable_shared=cond
  8674 fi
  8676 # Check whether --enable-profiled was given.
  8677 if test "${enable_profiled+set}" = set; then
  8678   enableval=$enable_profiled; if test "$enableval" == "yes"; then
  8679       enable_profiled=yes;
  8680     fi
  8681 fi
  8683 # Check whether --enable-trace was given.
  8684 if test "${enable_trace+set}" = set; then
  8685   enableval=$enable_trace; if test "$enableval" == "yes"; then
  8687 cat >>confdefs.h <<\_ACEOF
  8688 #define ENABLE_TRACE_IO 1
  8689 _ACEOF
  8691     fi
  8692 fi
  8694 # Check whether --enable-watch was given.
  8695 if test "${enable_watch+set}" = set; then
  8696   enableval=$enable_watch; if test "$enableval" == "yes"; then
  8698 cat >>confdefs.h <<\_ACEOF
  8699 #define ENABLE_WATCH 1
  8700 _ACEOF
  8702    fi
  8703 fi
  8705 # Check whether --enable-sh4stats was given.
  8706 if test "${enable_sh4stats+set}" = set; then
  8707   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  8709 cat >>confdefs.h <<\_ACEOF
  8710 #define ENABLE_SH4STATS 1
  8711 _ACEOF
  8713     fi
  8714 fi
  8717 # Check whether --with-osmesa was given.
  8718 if test "${with_osmesa+set}" = set; then
  8719   withval=$with_osmesa;
  8720 else
  8721   with_osmesa=no
  8722 fi
  8725 # Check whether --with-gtk was given.
  8726 if test "${with_gtk+set}" = set; then
  8727   withval=$with_gtk; with_gtk=yes
  8728 else
  8729   with_gtk=x11
  8730 fi
  8733 # Check whether --with-esd was given.
  8734 if test "${with_esd+set}" = set; then
  8735   withval=$with_esd;
  8736 fi
  8739 # Check whether --with-pulse was given.
  8740 if test "${with_pulse+set}" = set; then
  8741   withval=$with_pulse;
  8742 fi
  8745 # Check whether --with-sdl was given.
  8746 if test "${with_sdl+set}" = set; then
  8747   withval=$with_sdl;
  8748 fi
  8752 # Check whether --with-sysroot was given.
  8753 if test "${with_sysroot+set}" = set; then
  8754   withval=$with_sysroot;
  8755      if test -d "$with_sysroot/lib/pkgconfig"; then
  8756        LDFLAGS="$LDFLAGS -L$with_sysroot/lib"
  8757        CPPFLAGS="$CPPFLAGS -I$with_sysroot/include"
  8758        BUILD_PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
  8759        TARGET_PKG_CONFIG_LIBDIR="$with_sysroot/lib/pkgconfig"
  8760        PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR"
  8761        export PKG_CONFIG_LIBDIR;
  8762      else
  8763        { { echo "$as_me:$LINENO: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
  8764 See \`config.log' for more details." >&5
  8765 echo "$as_me: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
  8766 See \`config.log' for more details." >&2;}
  8767    { (exit 1); exit 1; }; }
  8768      fi
  8770 fi
  8776 # Check whether --with-android was given.
  8777 if test "${with_android+set}" = set; then
  8778   withval=$with_android;
  8779 fi
  8782 # Check whether --with-android-ndk was given.
  8783 if test "${with_android_ndk+set}" = set; then
  8784   withval=$with_android_ndk;
  8785 fi
  8788 # Check whether --with-android-version was given.
  8789 if test "${with_android_version+set}" = set; then
  8790   withval=$with_android_version;
  8791 else
  8792   with_android_version="android-11"
  8793 fi
  8796 # Check whether --with-android-ndk-version was given.
  8797 if test "${with_android_ndk_version+set}" = set; then
  8798   withval=$with_android_ndk_version;
  8799 else
  8800   with_ndk_version="android-9"
  8801 fi
  8804 # Check whether --with-android-abi was given.
  8805 if test "${with_android_abi+set}" = set; then
  8806   withval=$with_android_abi;
  8807 else
  8808   ANDROID_ABI="armeabi-v7a"
  8809 fi
  8812    if test "x$with_android" != "x"; then
  8813       if test "$with_android" = "yes"; then
  8814          { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
  8815 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
  8816    { (exit 1); exit 1; }; }
  8817       fi
  8818       if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
  8819          { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
  8820 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
  8821    { (exit 1); exit 1; }; }
  8822       fi
  8824       ANDROID_SDK_HOME="$with_android"
  8825       ANDROID_NDK_HOME="$with_android_ndk"
  8826       ANDROID_SDK_VERSION="$with_android_version"
  8827       ANDROID_NDK_VERSION="$with_ndk_version"
  8829       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
  8830 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
  8831 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
  8832 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  8833   echo $ECHO_N "(cached) $ECHO_C" >&6
  8834 else
  8835   test "$cross_compiling" = yes &&
  8836   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  8837 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  8838    { (exit 1); exit 1; }; }
  8839 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
  8840   eval "$as_ac_File=yes"
  8841 else
  8842   eval "$as_ac_File=no"
  8843 fi
  8844 fi
  8845 ac_res=`eval echo '${'$as_ac_File'}'`
  8846 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8847 echo "${ECHO_T}$ac_res" >&6; }
  8848 if test `eval echo '${'$as_ac_File'}'` = yes; then
  8850 else
  8851    { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
  8852 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
  8853    { (exit 1); exit 1; }; }
  8854 fi
  8856       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
  8857 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
  8858 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
  8859 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  8860   echo $ECHO_N "(cached) $ECHO_C" >&6
  8861 else
  8862   test "$cross_compiling" = yes &&
  8863   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  8864 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  8865    { (exit 1); exit 1; }; }
  8866 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
  8867   eval "$as_ac_File=yes"
  8868 else
  8869   eval "$as_ac_File=no"
  8870 fi
  8871 fi
  8872 ac_res=`eval echo '${'$as_ac_File'}'`
  8873 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8874 echo "${ECHO_T}$ac_res" >&6; }
  8875 if test `eval echo '${'$as_ac_File'}'` = yes; then
  8877 else
  8878    { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
  8879 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
  8880    { (exit 1); exit 1; }; }
  8881 fi
  8883       as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
  8884 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
  8885 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
  8886 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  8887   echo $ECHO_N "(cached) $ECHO_C" >&6
  8888 else
  8889   test "$cross_compiling" = yes &&
  8890   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  8891 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  8892    { (exit 1); exit 1; }; }
  8893 if test -r "$ANDROID_NDK_HOME/toolchains"; then
  8894   eval "$as_ac_File=yes"
  8895 else
  8896   eval "$as_ac_File=no"
  8897 fi
  8898 fi
  8899 ac_res=`eval echo '${'$as_ac_File'}'`
  8900 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8901 echo "${ECHO_T}$ac_res" >&6; }
  8902 if test `eval echo '${'$as_ac_File'}'` = yes; then
  8904 else
  8905    { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
  8906 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
  8907    { (exit 1); exit 1; }; }
  8908 fi
  8911             TARGETFLAGS="-ffunction-sections -funwind-tables -fomit-frame-pointer -DANDROID -Wa,--noexecstack"
  8913       case $ANDROID_ABI in
  8914          armeabi | armeabi-v7a)
  8915             host_alias="arm-linux-androideabi"
  8916             host_cpu="arm"
  8917             host_vendor="unknown";
  8918             host_os="linux-androideabi"
  8919             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
  8920             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
  8921             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
  8922                         TARGETFLAGS="$TARGETFLAGS -fstack-protector -finline-limit=64 -fno-strict-aliasing -Wno-psabi -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__"
  8923             if test "x$with_abi" = "armeabi"; then
  8924                 TARGETFLAGS="$TARGETFLAGS -march=armv5te -mtune=xscale -msoft-float"
  8925             else
  8926                 TARGETFLAGS="$TARGETFLAGS -march=armv7-a -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfp"
  8927             fi
  8928             ;;
  8929          x86)
  8930             host_alias="i686-android-linux"
  8931             host_cpu="i686"
  8932             host_vendor="android"
  8933             host_os="linux"
  8934             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
  8935             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
  8936             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
  8937             TARGETFLAGS="$TARGETFLAGS -finline-limit=300 -fno-rtti -funswitch-loops -fstrict-aliasing"
  8938             ;;
  8939          *)
  8940             { { echo "$as_me:$LINENO: error: Unsupported android ABI $ANDROID_ABI" >&5
  8941 echo "$as_me: error: Unsupported android ABI $ANDROID_ABI" >&2;}
  8942    { (exit 1); exit 1; }; }
  8943       	    ;;
  8944       esac
  8946       # Extract the first word of "ant ", so it can be a program name with args.
  8947 set dummy ant ; ac_word=$2
  8948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8950 if test "${ac_cv_path_ANT+set}" = set; then
  8951   echo $ECHO_N "(cached) $ECHO_C" >&6
  8952 else
  8953   case $ANT in
  8954   [\\/]* | ?:[\\/]*)
  8955   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  8956   ;;
  8957   *)
  8958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8959 for as_dir in $PATH
  8960 do
  8961   IFS=$as_save_IFS
  8962   test -z "$as_dir" && as_dir=.
  8963   for ac_exec_ext in '' $ac_executable_extensions; do
  8964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8965     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  8966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8967     break 2
  8968   fi
  8969 done
  8970 done
  8971 IFS=$as_save_IFS
  8973   ;;
  8974 esac
  8975 fi
  8976 ANT=$ac_cv_path_ANT
  8977 if test -n "$ANT"; then
  8978   { echo "$as_me:$LINENO: result: $ANT" >&5
  8979 echo "${ECHO_T}$ANT" >&6; }
  8980 else
  8981   { echo "$as_me:$LINENO: result: no" >&5
  8982 echo "${ECHO_T}no" >&6; }
  8983 fi
  8987       CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
  8988       CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
  8989       CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
  8990       LD="$ANDROID_NDK_BIN/${host_alias}-ld"
  8991       AR="$ANDROID_NDK_BIN/${host_alias}-ar"
  8992       RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
  8993       STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
  8994       OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
  8995       CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
  8996       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"
  8997       LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
  9006       ANDROID_BUILD=yes
  9007       cross_compiling=yes
  9008    fi
  9012 if test "$ANDROID_BUILD" = "yes"; then
  9013   GUI_ANDROID_TRUE=
  9014   GUI_ANDROID_FALSE='#'
  9015 else
  9016   GUI_ANDROID_TRUE='#'
  9017   GUI_ANDROID_FALSE=
  9018 fi
  9024 if test "$ANDROID_BUILD" = "yes"; then
  9025    with_gtk=no;
  9026    EXTRA_OUTPUT_FILES="src/android/build.properties"
  9027    UI_DRIVER="Android"
  9028    with_sdl=no
  9029 else
  9032 ac_ext=m
  9033 ac_cpp='$OBJCPP $CPPFLAGS'
  9034 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9035 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9036 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9037 if test -n "$ac_tool_prefix"; then
  9038   for ac_prog in gcc objcc objc cc CC
  9039   do
  9040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9044 if test "${ac_cv_prog_OBJC+set}" = set; then
  9045   echo $ECHO_N "(cached) $ECHO_C" >&6
  9046 else
  9047   if test -n "$OBJC"; then
  9048   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  9049 else
  9050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9051 for as_dir in $PATH
  9052 do
  9053   IFS=$as_save_IFS
  9054   test -z "$as_dir" && as_dir=.
  9055   for ac_exec_ext in '' $ac_executable_extensions; do
  9056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9057     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  9058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9059     break 2
  9060   fi
  9061 done
  9062 done
  9063 IFS=$as_save_IFS
  9065 fi
  9066 fi
  9067 OBJC=$ac_cv_prog_OBJC
  9068 if test -n "$OBJC"; then
  9069   { echo "$as_me:$LINENO: result: $OBJC" >&5
  9070 echo "${ECHO_T}$OBJC" >&6; }
  9071 else
  9072   { echo "$as_me:$LINENO: result: no" >&5
  9073 echo "${ECHO_T}no" >&6; }
  9074 fi
  9077     test -n "$OBJC" && break
  9078   done
  9079 fi
  9080 if test -z "$OBJC"; then
  9081   ac_ct_OBJC=$OBJC
  9082   for ac_prog in gcc objcc objc cc CC
  9083 do
  9084   # Extract the first word of "$ac_prog", so it can be a program name with args.
  9085 set dummy $ac_prog; ac_word=$2
  9086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9088 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  9089   echo $ECHO_N "(cached) $ECHO_C" >&6
  9090 else
  9091   if test -n "$ac_ct_OBJC"; then
  9092   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  9093 else
  9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9095 for as_dir in $PATH
  9096 do
  9097   IFS=$as_save_IFS
  9098   test -z "$as_dir" && as_dir=.
  9099   for ac_exec_ext in '' $ac_executable_extensions; do
  9100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9101     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  9102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9103     break 2
  9104   fi
  9105 done
  9106 done
  9107 IFS=$as_save_IFS
  9109 fi
  9110 fi
  9111 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  9112 if test -n "$ac_ct_OBJC"; then
  9113   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  9114 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  9115 else
  9116   { echo "$as_me:$LINENO: result: no" >&5
  9117 echo "${ECHO_T}no" >&6; }
  9118 fi
  9121   test -n "$ac_ct_OBJC" && break
  9122 done
  9124   if test "x$ac_ct_OBJC" = x; then
  9125     OBJC="gcc"
  9126   else
  9127     case $cross_compiling:$ac_tool_warned in
  9128 yes:)
  9129 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  9130 whose name does not start with the host triplet.  If you think this
  9131 configuration is useful to you, please write to autoconf@gnu.org." >&5
  9132 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  9133 whose name does not start with the host triplet.  If you think this
  9134 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  9135 ac_tool_warned=yes ;;
  9136 esac
  9137     OBJC=$ac_ct_OBJC
  9138   fi
  9139 fi
  9141 # Provide some information about the compiler.
  9142 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  9143 ac_compiler=`set X $ac_compile; echo $2`
  9144 { (ac_try="$ac_compiler --version >&5"
  9145 case "(($ac_try" in
  9146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9147   *) ac_try_echo=$ac_try;;
  9148 esac
  9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9150   (eval "$ac_compiler --version >&5") 2>&5
  9151   ac_status=$?
  9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9153   (exit $ac_status); }
  9154 { (ac_try="$ac_compiler -v >&5"
  9155 case "(($ac_try" in
  9156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9157   *) ac_try_echo=$ac_try;;
  9158 esac
  9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9160   (eval "$ac_compiler -v >&5") 2>&5
  9161   ac_status=$?
  9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9163   (exit $ac_status); }
  9164 { (ac_try="$ac_compiler -V >&5"
  9165 case "(($ac_try" in
  9166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9167   *) ac_try_echo=$ac_try;;
  9168 esac
  9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9170   (eval "$ac_compiler -V >&5") 2>&5
  9171   ac_status=$?
  9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9173   (exit $ac_status); }
  9175 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  9176 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  9177 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  9178   echo $ECHO_N "(cached) $ECHO_C" >&6
  9179 else
  9180   cat >conftest.$ac_ext <<_ACEOF
  9181 /* confdefs.h.  */
  9182 _ACEOF
  9183 cat confdefs.h >>conftest.$ac_ext
  9184 cat >>conftest.$ac_ext <<_ACEOF
  9185 /* end confdefs.h.  */
  9187 int
  9188 main ()
  9190 #ifndef __GNUC__
  9191        choke me
  9192 #endif
  9195   return 0;
  9197 _ACEOF
  9198 rm -f conftest.$ac_objext
  9199 if { (ac_try="$ac_compile"
  9200 case "(($ac_try" in
  9201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9202   *) ac_try_echo=$ac_try;;
  9203 esac
  9204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9205   (eval "$ac_compile") 2>conftest.er1
  9206   ac_status=$?
  9207   grep -v '^ *+' conftest.er1 >conftest.err
  9208   rm -f conftest.er1
  9209   cat conftest.err >&5
  9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9211   (exit $ac_status); } && {
  9212 	 test -z "$ac_objc_werror_flag" ||
  9213 	 test ! -s conftest.err
  9214        } && test -s conftest.$ac_objext; then
  9215   ac_compiler_gnu=yes
  9216 else
  9217   echo "$as_me: failed program was:" >&5
  9218 sed 's/^/| /' conftest.$ac_ext >&5
  9220 	ac_compiler_gnu=no
  9221 fi
  9223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9224 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  9226 fi
  9227 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  9228 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  9229 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  9230 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  9231 ac_save_OBJCFLAGS=$OBJCFLAGS
  9232 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  9233 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  9234 if test "${ac_cv_prog_objc_g+set}" = set; then
  9235   echo $ECHO_N "(cached) $ECHO_C" >&6
  9236 else
  9237   ac_save_objc_werror_flag=$ac_objc_werror_flag
  9238    ac_objc_werror_flag=yes
  9239    ac_cv_prog_objc_g=no
  9240    OBJCFLAGS="-g"
  9241    cat >conftest.$ac_ext <<_ACEOF
  9242 /* confdefs.h.  */
  9243 _ACEOF
  9244 cat confdefs.h >>conftest.$ac_ext
  9245 cat >>conftest.$ac_ext <<_ACEOF
  9246 /* end confdefs.h.  */
  9248 int
  9249 main ()
  9253   return 0;
  9255 _ACEOF
  9256 rm -f conftest.$ac_objext
  9257 if { (ac_try="$ac_compile"
  9258 case "(($ac_try" in
  9259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9260   *) ac_try_echo=$ac_try;;
  9261 esac
  9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9263   (eval "$ac_compile") 2>conftest.er1
  9264   ac_status=$?
  9265   grep -v '^ *+' conftest.er1 >conftest.err
  9266   rm -f conftest.er1
  9267   cat conftest.err >&5
  9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9269   (exit $ac_status); } && {
  9270 	 test -z "$ac_objc_werror_flag" ||
  9271 	 test ! -s conftest.err
  9272        } && test -s conftest.$ac_objext; then
  9273   ac_cv_prog_objc_g=yes
  9274 else
  9275   echo "$as_me: failed program was:" >&5
  9276 sed 's/^/| /' conftest.$ac_ext >&5
  9278 	OBJCFLAGS=""
  9279       cat >conftest.$ac_ext <<_ACEOF
  9280 /* confdefs.h.  */
  9281 _ACEOF
  9282 cat confdefs.h >>conftest.$ac_ext
  9283 cat >>conftest.$ac_ext <<_ACEOF
  9284 /* end confdefs.h.  */
  9286 int
  9287 main ()
  9291   return 0;
  9293 _ACEOF
  9294 rm -f conftest.$ac_objext
  9295 if { (ac_try="$ac_compile"
  9296 case "(($ac_try" in
  9297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9298   *) ac_try_echo=$ac_try;;
  9299 esac
  9300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9301   (eval "$ac_compile") 2>conftest.er1
  9302   ac_status=$?
  9303   grep -v '^ *+' conftest.er1 >conftest.err
  9304   rm -f conftest.er1
  9305   cat conftest.err >&5
  9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9307   (exit $ac_status); } && {
  9308 	 test -z "$ac_objc_werror_flag" ||
  9309 	 test ! -s conftest.err
  9310        } && test -s conftest.$ac_objext; then
  9312 else
  9313   echo "$as_me: failed program was:" >&5
  9314 sed 's/^/| /' conftest.$ac_ext >&5
  9316 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  9317 	 OBJCFLAGS="-g"
  9318 	 cat >conftest.$ac_ext <<_ACEOF
  9319 /* confdefs.h.  */
  9320 _ACEOF
  9321 cat confdefs.h >>conftest.$ac_ext
  9322 cat >>conftest.$ac_ext <<_ACEOF
  9323 /* end confdefs.h.  */
  9325 int
  9326 main ()
  9330   return 0;
  9332 _ACEOF
  9333 rm -f conftest.$ac_objext
  9334 if { (ac_try="$ac_compile"
  9335 case "(($ac_try" in
  9336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9337   *) ac_try_echo=$ac_try;;
  9338 esac
  9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9340   (eval "$ac_compile") 2>conftest.er1
  9341   ac_status=$?
  9342   grep -v '^ *+' conftest.er1 >conftest.err
  9343   rm -f conftest.er1
  9344   cat conftest.err >&5
  9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9346   (exit $ac_status); } && {
  9347 	 test -z "$ac_objc_werror_flag" ||
  9348 	 test ! -s conftest.err
  9349        } && test -s conftest.$ac_objext; then
  9350   ac_cv_prog_objc_g=yes
  9351 else
  9352   echo "$as_me: failed program was:" >&5
  9353 sed 's/^/| /' conftest.$ac_ext >&5
  9356 fi
  9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9359 fi
  9361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9362 fi
  9364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9365    ac_objc_werror_flag=$ac_save_objc_werror_flag
  9366 fi
  9367 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  9368 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  9369 if test "$ac_test_OBJCFLAGS" = set; then
  9370   OBJCFLAGS=$ac_save_OBJCFLAGS
  9371 elif test $ac_cv_prog_objc_g = yes; then
  9372   if test "$GOBJC" = yes; then
  9373     OBJCFLAGS="-g -O2"
  9374   else
  9375     OBJCFLAGS="-g"
  9376   fi
  9377 else
  9378   if test "$GOBJC" = yes; then
  9379     OBJCFLAGS="-O2"
  9380   else
  9381     OBJCFLAGS=
  9382   fi
  9383 fi
  9384 ac_ext=c
  9385 ac_cpp='$CPP $CPPFLAGS'
  9386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9390 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
  9391 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
  9392 ac_ext=m
  9393 ac_cpp='$OBJCPP $CPPFLAGS'
  9394 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9395 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9396 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9397 cat >conftest.$ac_ext <<_ACEOF
  9398 /* confdefs.h.  */
  9399 _ACEOF
  9400 cat confdefs.h >>conftest.$ac_ext
  9401 cat >>conftest.$ac_ext <<_ACEOF
  9402 /* end confdefs.h.  */
  9403 @interface Foo @end
  9404 int
  9405 main ()
  9409   return 0;
  9411 _ACEOF
  9412 rm -f conftest.$ac_objext
  9413 if { (ac_try="$ac_compile"
  9414 case "(($ac_try" in
  9415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9416   *) ac_try_echo=$ac_try;;
  9417 esac
  9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9419   (eval "$ac_compile") 2>conftest.er1
  9420   ac_status=$?
  9421   grep -v '^ *+' conftest.er1 >conftest.err
  9422   rm -f conftest.er1
  9423   cat conftest.err >&5
  9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9425   (exit $ac_status); } && {
  9426 	 test -z "$ac_objc_werror_flag" ||
  9427 	 test ! -s conftest.err
  9428        } && test -s conftest.$ac_objext; then
  9429   { echo "$as_me:$LINENO: result: yes" >&5
  9430 echo "${ECHO_T}yes" >&6; }
  9432    { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  9433 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
  9434 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  9435   echo $ECHO_N "(cached) $ECHO_C" >&6
  9436 else
  9437   cat >conftest.$ac_ext <<_ACEOF
  9438 /* confdefs.h.  */
  9439 _ACEOF
  9440 cat confdefs.h >>conftest.$ac_ext
  9441 cat >>conftest.$ac_ext <<_ACEOF
  9442 /* end confdefs.h.  */
  9443 $ac_includes_default
  9445 #include <Cocoa/Cocoa.h>
  9446 _ACEOF
  9447 rm -f conftest.$ac_objext
  9448 if { (ac_try="$ac_compile"
  9449 case "(($ac_try" in
  9450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9451   *) ac_try_echo=$ac_try;;
  9452 esac
  9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9454   (eval "$ac_compile") 2>conftest.er1
  9455   ac_status=$?
  9456   grep -v '^ *+' conftest.er1 >conftest.err
  9457   rm -f conftest.er1
  9458   cat conftest.err >&5
  9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9460   (exit $ac_status); } && {
  9461 	 test -z "$ac_objc_werror_flag" ||
  9462 	 test ! -s conftest.err
  9463        } && test -s conftest.$ac_objext; then
  9464   ac_cv_header_Cocoa_Cocoa_h=yes
  9465 else
  9466   echo "$as_me: failed program was:" >&5
  9467 sed 's/^/| /' conftest.$ac_ext >&5
  9469 	ac_cv_header_Cocoa_Cocoa_h=no
  9470 fi
  9472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9473 fi
  9474 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  9475 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  9476 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  9478       HAVE_COCOA='yes'
  9479       APPLE_BUILD='yes'
  9480       LIBS="$LIBS -framework AppKit -framework Carbon"
  9481       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"
  9482       LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
  9483       LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
  9485 cat >>confdefs.h <<\_ACEOF
  9486 #define HAVE_COCOA 1
  9487 _ACEOF
  9490 cat >>confdefs.h <<\_ACEOF
  9491 #define APPLE_BUILD 1
  9492 _ACEOF
  9494       UI_DRIVER="Cocoa"
  9495       if test "x$with_gtk" = "xx11"; then
  9496         with_gtk=no
  9497       fi
  9499 fi
  9504 { echo "$as_me:$LINENO: checking OBJC version" >&5
  9505 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
  9506 if test -n "$OBJC"; then
  9507   _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
  9508   if test -n "$_GOBJC_VERSION"; then
  9509     { echo "$as_me:$LINENO: result: GCC" >&5
  9510 echo "${ECHO_T}GCC" >&6; }
  9511       OBJCOPT="-O2"
  9512                      OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
  9513   else
  9514     { echo "$as_me:$LINENO: result: Unknown" >&5
  9515 echo "${ECHO_T}Unknown" >&6; }
  9516       OBJCOPT="-O2"
  9517   fi
  9518 else
  9519   { echo "$as_me:$LINENO: result: None" >&5
  9520 echo "${ECHO_T}None" >&6; }
  9522 fi
  9525 ac_ext=m
  9526 ac_cpp='$OBJCPP $CPPFLAGS'
  9527 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9528 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9529 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9531 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
  9532 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
  9533 save_OBJCFLAGS="$OBJCFLAGS"
  9534 OBJCFLAGS="-msse2 $OBJCFLAGS"
  9535 cat >conftest.$ac_ext <<_ACEOF
  9537   /* confdefs.h.  */
  9538 _ACEOF
  9539 cat confdefs.h >>conftest.$ac_ext
  9540 cat >>conftest.$ac_ext <<_ACEOF
  9541 /* end confdefs.h.  */
  9542 int main() { return 0; }
  9543 _ACEOF
  9544 rm -f conftest.$ac_objext
  9545 if { (ac_try="$ac_compile"
  9546 case "(($ac_try" in
  9547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9548   *) ac_try_echo=$ac_try;;
  9549 esac
  9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9551   (eval "$ac_compile") 2>conftest.er1
  9552   ac_status=$?
  9553   grep -v '^ *+' conftest.er1 >conftest.err
  9554   rm -f conftest.er1
  9555   cat conftest.err >&5
  9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9557   (exit $ac_status); } && {
  9558 	 test -z "$ac_objc_werror_flag" ||
  9559 	 test ! -s conftest.err
  9560        } && test -s conftest.$ac_objext; then
  9562    { echo "$as_me:$LINENO: result: yes" >&5
  9563 echo "${ECHO_T}yes" >&6; }
  9565 else
  9566   echo "$as_me: failed program was:" >&5
  9567 sed 's/^/| /' conftest.$ac_ext >&5
  9570    OBJCFLAGS="$save_OBJCFLAGS"
  9571    { echo "$as_me:$LINENO: result: no" >&5
  9572 echo "${ECHO_T}no" >&6; }
  9574 fi
  9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9577 ac_ext=m
  9578 ac_cpp='$OBJCPP $CPPFLAGS'
  9579 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9580 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9581 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9585 ac_ext=m
  9586 ac_cpp='$OBJCPP $CPPFLAGS'
  9587 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9588 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9589 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9591 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
  9592 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
  9593 save_OBJCFLAGS="$OBJCFLAGS"
  9594 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
  9595 cat >conftest.$ac_ext <<_ACEOF
  9597   /* confdefs.h.  */
  9598 _ACEOF
  9599 cat confdefs.h >>conftest.$ac_ext
  9600 cat >>conftest.$ac_ext <<_ACEOF
  9601 /* end confdefs.h.  */
  9602 int main() { return 0; }
  9603 _ACEOF
  9604 rm -f conftest.$ac_objext
  9605 if { (ac_try="$ac_compile"
  9606 case "(($ac_try" in
  9607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9608   *) ac_try_echo=$ac_try;;
  9609 esac
  9610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9611   (eval "$ac_compile") 2>conftest.er1
  9612   ac_status=$?
  9613   grep -v '^ *+' conftest.er1 >conftest.err
  9614   rm -f conftest.er1
  9615   cat conftest.err >&5
  9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9617   (exit $ac_status); } && {
  9618 	 test -z "$ac_objc_werror_flag" ||
  9619 	 test ! -s conftest.err
  9620        } && test -s conftest.$ac_objext; then
  9622    { echo "$as_me:$LINENO: result: yes" >&5
  9623 echo "${ECHO_T}yes" >&6; }
  9625 else
  9626   echo "$as_me: failed program was:" >&5
  9627 sed 's/^/| /' conftest.$ac_ext >&5
  9630    OBJCFLAGS="$save_OBJCFLAGS"
  9631    { echo "$as_me:$LINENO: result: no" >&5
  9632 echo "${ECHO_T}no" >&6; }
  9634 fi
  9636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9637 ac_ext=m
  9638 ac_cpp='$OBJCPP $CPPFLAGS'
  9639 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9640 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9641 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9645 else
  9646   echo "$as_me: failed program was:" >&5
  9647 sed 's/^/| /' conftest.$ac_ext >&5
  9649 	{ echo "$as_me:$LINENO: result: No" >&5
  9650 echo "${ECHO_T}No" >&6; }
  9652 fi
  9654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
  9655 ac_ext=c
  9656 ac_cpp='$CPP $CPPFLAGS'
  9657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9662 fi
  9666 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  9667   GUI_COCOA_TRUE=
  9668   GUI_COCOA_FALSE='#'
  9669 else
  9670   GUI_COCOA_TRUE='#'
  9671   GUI_COCOA_FALSE=
  9672 fi
  9674 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
  9676 cat >>confdefs.h <<\_ACEOF
  9677 #define OSX_BUNDLE 1
  9678 _ACEOF
  9680 fi
  9682 CFLAGS_FOR_BUILD="-O2 -std=c99"
  9683 CFLAGS="-g -fexceptions"
  9684 OBJCFLAGS="-g -fexceptions"
  9686 cat >>confdefs.h <<\_ACEOF
  9687 #define HAVE_EXCEPTIONS 1
  9688 _ACEOF
  9691 STDCFLAG="-std=c99"
  9693 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
  9694 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
  9695 { echo "$as_me:$LINENO: checking CC version" >&5
  9696 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
  9697 if test -n "$_ICC_VERSION"; then
  9698    { echo "$as_me:$LINENO: result: ICC" >&5
  9699 echo "${ECHO_T}ICC" >&6; }
  9700      CCOPT="$CFLAGS -fast"
  9701                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  9702 elif test -n "$_GCC_VERSION"; then
  9703    { echo "$as_me:$LINENO: result: GCC" >&5
  9704 echo "${ECHO_T}GCC" >&6; }
  9705      CCOPT="-O2"
  9706                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  9707 else
  9708    { echo "$as_me:$LINENO: result: Unknown" >&5
  9709 echo "${ECHO_T}Unknown" >&6; }
  9710      CCOPT="$CFLAGS -O2"
  9711 fi
  9714 ac_ext=c
  9715 ac_cpp='$CPP $CPPFLAGS'
  9716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9720 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
  9721 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
  9722 save_CFLAGS="$CFLAGS"
  9723 CFLAGS="-msse2 $CFLAGS"
  9724 cat >conftest.$ac_ext <<_ACEOF
  9726   /* confdefs.h.  */
  9727 _ACEOF
  9728 cat confdefs.h >>conftest.$ac_ext
  9729 cat >>conftest.$ac_ext <<_ACEOF
  9730 /* end confdefs.h.  */
  9731 int main() { return 0; }
  9732 _ACEOF
  9733 rm -f conftest.$ac_objext
  9734 if { (ac_try="$ac_compile"
  9735 case "(($ac_try" in
  9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9737   *) ac_try_echo=$ac_try;;
  9738 esac
  9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9740   (eval "$ac_compile") 2>conftest.er1
  9741   ac_status=$?
  9742   grep -v '^ *+' conftest.er1 >conftest.err
  9743   rm -f conftest.er1
  9744   cat conftest.err >&5
  9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9746   (exit $ac_status); } && {
  9747 	 test -z "$ac_c_werror_flag" ||
  9748 	 test ! -s conftest.err
  9749        } && test -s conftest.$ac_objext; then
  9751    { echo "$as_me:$LINENO: result: yes" >&5
  9752 echo "${ECHO_T}yes" >&6; }
  9754 else
  9755   echo "$as_me: failed program was:" >&5
  9756 sed 's/^/| /' conftest.$ac_ext >&5
  9759    CFLAGS="$save_CFLAGS"
  9760    { echo "$as_me:$LINENO: result: no" >&5
  9761 echo "${ECHO_T}no" >&6; }
  9763 fi
  9765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9766 ac_ext=c
  9767 ac_cpp='$CPP $CPPFLAGS'
  9768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9774 ac_ext=c
  9775 ac_cpp='$CPP $CPPFLAGS'
  9776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9780 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
  9781 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
  9782 save_CFLAGS="$CFLAGS"
  9783 CFLAGS="-mfpmath=sse $CFLAGS"
  9784 cat >conftest.$ac_ext <<_ACEOF
  9786   /* confdefs.h.  */
  9787 _ACEOF
  9788 cat confdefs.h >>conftest.$ac_ext
  9789 cat >>conftest.$ac_ext <<_ACEOF
  9790 /* end confdefs.h.  */
  9791 int main() { return 0; }
  9792 _ACEOF
  9793 rm -f conftest.$ac_objext
  9794 if { (ac_try="$ac_compile"
  9795 case "(($ac_try" in
  9796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9797   *) ac_try_echo=$ac_try;;
  9798 esac
  9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9800   (eval "$ac_compile") 2>conftest.er1
  9801   ac_status=$?
  9802   grep -v '^ *+' conftest.er1 >conftest.err
  9803   rm -f conftest.er1
  9804   cat conftest.err >&5
  9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9806   (exit $ac_status); } && {
  9807 	 test -z "$ac_c_werror_flag" ||
  9808 	 test ! -s conftest.err
  9809        } && test -s conftest.$ac_objext; then
  9811    { echo "$as_me:$LINENO: result: yes" >&5
  9812 echo "${ECHO_T}yes" >&6; }
  9814 else
  9815   echo "$as_me: failed program was:" >&5
  9816 sed 's/^/| /' conftest.$ac_ext >&5
  9819    CFLAGS="$save_CFLAGS"
  9820    { echo "$as_me:$LINENO: result: no" >&5
  9821 echo "${ECHO_T}no" >&6; }
  9823 fi
  9825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9826 ac_ext=c
  9827 ac_cpp='$CPP $CPPFLAGS'
  9828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9834 if test "x$enable_optimized" = "xyes"; then
  9835    CFLAGS="$CFLAGS $CCOPT"
  9836    OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
  9837    if test "x$enable_profiled" != "xyes"; then
  9838               CFLAGS="$CFLAGS -fomit-frame-pointer"
  9839        OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
  9840    fi
  9841 else
  9842    CFLAGS="$CFLAGS -g3"
  9843    OBJCFLAGS="$OBJCFLAGS -g3"
  9844 fi
  9846 if test "x$enable_profiled" = "xyes"; then
  9847    CFLAGS="$CFLAGS -pg"
  9848    LDFLAGS="$LDFLAGS -pg";
  9849    OBJCFLAGS="$OBJCFLAGS -pg";
  9850 fi
  9852 if test "x$enable_strictwarn" = "xyes"; then
  9853    CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
  9854    OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
  9855 fi
  9857 if test "x$enable_shared" != "xno"; then
  9858    if test "x$APPLE_BUILD" = "xyes"; then
  9859       SOEXT="dylib"
  9860       PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
  9861    else
  9862       SOEXT="so"
  9863       PLUGINLDFLAGS="-shared"
  9864    fi
  9865    PLUGINCFLAGS="-fPIC"
  9867    if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9868   { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  9869 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  9870 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9871   echo $ECHO_N "(cached) $ECHO_C" >&6
  9872 fi
  9873 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  9874 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  9875 else
  9876   # Is the header compilable?
  9877 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
  9878 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
  9879 cat >conftest.$ac_ext <<_ACEOF
  9880 /* confdefs.h.  */
  9881 _ACEOF
  9882 cat confdefs.h >>conftest.$ac_ext
  9883 cat >>conftest.$ac_ext <<_ACEOF
  9884 /* end confdefs.h.  */
  9885 $ac_includes_default
  9886 #include <dlfcn.h>
  9887 _ACEOF
  9888 rm -f conftest.$ac_objext
  9889 if { (ac_try="$ac_compile"
  9890 case "(($ac_try" in
  9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9892   *) ac_try_echo=$ac_try;;
  9893 esac
  9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9895   (eval "$ac_compile") 2>conftest.er1
  9896   ac_status=$?
  9897   grep -v '^ *+' conftest.er1 >conftest.err
  9898   rm -f conftest.er1
  9899   cat conftest.err >&5
  9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9901   (exit $ac_status); } && {
  9902 	 test -z "$ac_c_werror_flag" ||
  9903 	 test ! -s conftest.err
  9904        } && test -s conftest.$ac_objext; then
  9905   ac_header_compiler=yes
  9906 else
  9907   echo "$as_me: failed program was:" >&5
  9908 sed 's/^/| /' conftest.$ac_ext >&5
  9910 	ac_header_compiler=no
  9911 fi
  9913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9915 echo "${ECHO_T}$ac_header_compiler" >&6; }
  9917 # Is the header present?
  9918 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
  9919 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
  9920 cat >conftest.$ac_ext <<_ACEOF
  9921 /* confdefs.h.  */
  9922 _ACEOF
  9923 cat confdefs.h >>conftest.$ac_ext
  9924 cat >>conftest.$ac_ext <<_ACEOF
  9925 /* end confdefs.h.  */
  9926 #include <dlfcn.h>
  9927 _ACEOF
  9928 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9929 case "(($ac_try" in
  9930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9931   *) ac_try_echo=$ac_try;;
  9932 esac
  9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9935   ac_status=$?
  9936   grep -v '^ *+' conftest.er1 >conftest.err
  9937   rm -f conftest.er1
  9938   cat conftest.err >&5
  9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9940   (exit $ac_status); } >/dev/null && {
  9941 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9942 	 test ! -s conftest.err
  9943        }; then
  9944   ac_header_preproc=yes
  9945 else
  9946   echo "$as_me: failed program was:" >&5
  9947 sed 's/^/| /' conftest.$ac_ext >&5
  9949   ac_header_preproc=no
  9950 fi
  9952 rm -f conftest.err conftest.$ac_ext
  9953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9954 echo "${ECHO_T}$ac_header_preproc" >&6; }
  9956 # So?  What about this header?
  9957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9958   yes:no: )
  9959     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9960 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9961     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
  9962 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
  9963     ac_header_preproc=yes
  9964     ;;
  9965   no:yes:* )
  9966     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
  9967 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
  9968     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
  9969 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
  9970     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
  9971 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
  9972     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
  9973 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9974     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
  9975 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
  9976     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
  9977 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
  9979     ;;
  9980 esac
  9981 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  9982 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  9983 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9984   echo $ECHO_N "(cached) $ECHO_C" >&6
  9985 else
  9986   ac_cv_header_dlfcn_h=$ac_header_preproc
  9987 fi
  9988 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  9989 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  9991 fi
  9992 if test $ac_cv_header_dlfcn_h = yes; then
  9994       { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  9995 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
  9996 if test "${ac_cv_search_dlopen+set}" = set; then
  9997   echo $ECHO_N "(cached) $ECHO_C" >&6
  9998 else
  9999   ac_func_search_save_LIBS=$LIBS
 10000 cat >conftest.$ac_ext <<_ACEOF
 10001 /* confdefs.h.  */
 10002 _ACEOF
 10003 cat confdefs.h >>conftest.$ac_ext
 10004 cat >>conftest.$ac_ext <<_ACEOF
 10005 /* end confdefs.h.  */
 10007 /* Override any GCC internal prototype to avoid an error.
 10008    Use char because int might match the return type of a GCC
 10009    builtin and then its argument prototype would still apply.  */
 10010 #ifdef __cplusplus
 10011 extern "C"
 10012 #endif
 10013 char dlopen ();
 10014 int
 10015 main ()
 10017 return dlopen ();
 10019   return 0;
 10021 _ACEOF
 10022 for ac_lib in '' dl; do
 10023   if test -z "$ac_lib"; then
 10024     ac_res="none required"
 10025   else
 10026     ac_res=-l$ac_lib
 10027     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10028   fi
 10029   rm -f conftest.$ac_objext conftest$ac_exeext
 10030 if { (ac_try="$ac_link"
 10031 case "(($ac_try" in
 10032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10033   *) ac_try_echo=$ac_try;;
 10034 esac
 10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10036   (eval "$ac_link") 2>conftest.er1
 10037   ac_status=$?
 10038   grep -v '^ *+' conftest.er1 >conftest.err
 10039   rm -f conftest.er1
 10040   cat conftest.err >&5
 10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10042   (exit $ac_status); } && {
 10043 	 test -z "$ac_c_werror_flag" ||
 10044 	 test ! -s conftest.err
 10045        } && test -s conftest$ac_exeext &&
 10046        $as_test_x conftest$ac_exeext; then
 10047   ac_cv_search_dlopen=$ac_res
 10048 else
 10049   echo "$as_me: failed program was:" >&5
 10050 sed 's/^/| /' conftest.$ac_ext >&5
 10053 fi
 10055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10056       conftest$ac_exeext
 10057   if test "${ac_cv_search_dlopen+set}" = set; then
 10058   break
 10059 fi
 10060 done
 10061 if test "${ac_cv_search_dlopen+set}" = set; then
 10063 else
 10064   ac_cv_search_dlopen=no
 10065 fi
 10066 rm conftest.$ac_ext
 10067 LIBS=$ac_func_search_save_LIBS
 10068 fi
 10069 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
 10070 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
 10071 ac_res=$ac_cv_search_dlopen
 10072 if test "$ac_res" != no; then
 10073   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10074   have_dlopen=yes
 10075 fi
 10077 fi
 10080    if test "x$have_dlopen" != "xyes"; then
 10081       if test "x$enable_shared" == "xyes"; then
 10082          { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
 10083 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
 10084    { (exit 1); exit 1; }; }
 10085       else
 10086          { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
 10087 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
 10088       fi
 10089    fi
 10091    { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
 10092 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
 10093    old_LDFLAGS="$LDFLAGS"
 10094    LDFLAGS="$LDFLAGS -rdynamic"
 10095    cat >conftest.$ac_ext <<_ACEOF
 10096 /* confdefs.h.  */
 10097 _ACEOF
 10098 cat confdefs.h >>conftest.$ac_ext
 10099 cat >>conftest.$ac_ext <<_ACEOF
 10100 /* end confdefs.h.  */
 10101 int main() { return 0; }
 10102 _ACEOF
 10103 rm -f conftest.$ac_objext conftest$ac_exeext
 10104 if { (ac_try="$ac_link"
 10105 case "(($ac_try" in
 10106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10107   *) ac_try_echo=$ac_try;;
 10108 esac
 10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10110   (eval "$ac_link") 2>conftest.er1
 10111   ac_status=$?
 10112   grep -v '^ *+' conftest.er1 >conftest.err
 10113   rm -f conftest.er1
 10114   cat conftest.err >&5
 10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10116   (exit $ac_status); } && {
 10117 	 test -z "$ac_c_werror_flag" ||
 10118 	 test ! -s conftest.err
 10119        } && test -s conftest$ac_exeext &&
 10120        $as_test_x conftest$ac_exeext; then
 10122      LXDREAMLDFLAGS="-rdynamic"
 10123      { echo "$as_me:$LINENO: result: yes" >&5
 10124 echo "${ECHO_T}yes" >&6; }
 10126 else
 10127   echo "$as_me: failed program was:" >&5
 10128 sed 's/^/| /' conftest.$ac_ext >&5
 10131      LXDREAMLDFLAGS=""
 10132      { echo "$as_me:$LINENO: result: no" >&5
 10133 echo "${ECHO_T}no" >&6; }
 10134 fi
 10136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10137       conftest$ac_exeext conftest.$ac_ext
 10138    LDFLAGS="$old_LDFLAGS"
 10144 fi
 10145 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
 10147 cat >>confdefs.h <<\_ACEOF
 10148 #define BUILD_PLUGINS 1
 10149 _ACEOF
 10151 fi
 10154 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
 10155   BUILD_PLUGINS_TRUE=
 10156   BUILD_PLUGINS_FALSE='#'
 10157 else
 10158   BUILD_PLUGINS_TRUE='#'
 10159   BUILD_PLUGINS_FALSE=
 10160 fi
 10164 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
 10165 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
 10166 save_CFLAGS="$CFLAGS"
 10167 CFLAGS="-Werror $save_CFLAGS"
 10168 if test "$cross_compiling" = yes; then
 10170       { echo "$as_me:$LINENO: result: no" >&5
 10171 echo "${ECHO_T}no" >&6; }
 10173 else
 10174   cat >conftest.$ac_ext <<_ACEOF
 10176   /* confdefs.h.  */
 10177 _ACEOF
 10178 cat confdefs.h >>conftest.$ac_ext
 10179 cat >>conftest.$ac_ext <<_ACEOF
 10180 /* end confdefs.h.  */
 10182 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
 10184 int main(int argc, char *argv[])
 10186    return foo( 1, 2 ) == 3 ? 0 : 1;
 10188 _ACEOF
 10189 rm -f conftest$ac_exeext
 10190 if { (ac_try="$ac_link"
 10191 case "(($ac_try" in
 10192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10193   *) ac_try_echo=$ac_try;;
 10194 esac
 10195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10196   (eval "$ac_link") 2>&5
 10197   ac_status=$?
 10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 10200   { (case "(($ac_try" in
 10201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10202   *) ac_try_echo=$ac_try;;
 10203 esac
 10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10205   (eval "$ac_try") 2>&5
 10206   ac_status=$?
 10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10208   (exit $ac_status); }; }; then
 10210    { echo "$as_me:$LINENO: result: yes" >&5
 10211 echo "${ECHO_T}yes" >&6; }
 10214 cat >>confdefs.h <<\_ACEOF
 10215 #define HAVE_FASTCALL 1
 10216 _ACEOF
 10219 else
 10220   echo "$as_me: program exited with status $ac_status" >&5
 10221 echo "$as_me: failed program was:" >&5
 10222 sed 's/^/| /' conftest.$ac_ext >&5
 10224 ( exit $ac_status )
 10226    { echo "$as_me:$LINENO: result: no" >&5
 10227 echo "${ECHO_T}no" >&6; }
 10229 fi
 10230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 10231 fi
 10234 CFLAGS="$save_CFLAGS"
 10237 { echo "$as_me:$LINENO: checking support for force inlining" >&5
 10238 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
 10239 cat >conftest.$ac_ext <<_ACEOF
 10241   /* confdefs.h.  */
 10242 _ACEOF
 10243 cat confdefs.h >>conftest.$ac_ext
 10244 cat >>conftest.$ac_ext <<_ACEOF
 10245 /* end confdefs.h.  */
 10247 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
 10249 int main(int argc, char *argv[])
 10251    return foo( 1, 2 ) == 3 ? 0 : 1;
 10253 _ACEOF
 10254 rm -f conftest.$ac_objext
 10255 if { (ac_try="$ac_compile"
 10256 case "(($ac_try" in
 10257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10258   *) ac_try_echo=$ac_try;;
 10259 esac
 10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10261   (eval "$ac_compile") 2>conftest.er1
 10262   ac_status=$?
 10263   grep -v '^ *+' conftest.er1 >conftest.err
 10264   rm -f conftest.er1
 10265   cat conftest.err >&5
 10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10267   (exit $ac_status); } && {
 10268 	 test -z "$ac_c_werror_flag" ||
 10269 	 test ! -s conftest.err
 10270        } && test -s conftest.$ac_objext; then
 10272    FORCEINLINE="__attribute__((always_inline))"
 10273    { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
 10274 echo "${ECHO_T}$FORCEINLINE" >&6; }
 10276 else
 10277   echo "$as_me: failed program was:" >&5
 10278 sed 's/^/| /' conftest.$ac_ext >&5
 10281    FORCEINLINE=""
 10282    { echo "$as_me:$LINENO: result: no" >&5
 10283 echo "${ECHO_T}no" >&6; }
 10285 fi
 10287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10290 cat >>confdefs.h <<_ACEOF
 10291 #define FORCEINLINE $FORCEINLINE
 10292 _ACEOF
 10295 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
 10296 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
 10297 if test "$cross_compiling" = yes; then
 10299    { echo "$as_me:$LINENO: result: no" >&5
 10300 echo "${ECHO_T}no" >&6; }
 10301     { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
 10302 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
 10303 else
 10304   cat >conftest.$ac_ext <<_ACEOF
 10306   /* confdefs.h.  */
 10307 _ACEOF
 10308 cat confdefs.h >>conftest.$ac_ext
 10309 cat >>conftest.$ac_ext <<_ACEOF
 10310 /* end confdefs.h.  */
 10312 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
 10313 int __attribute__((noinline)) foo( int arg, void *exc )
 10315     if( arg < 2 ) {
 10316         *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
 10318     return 0;
 10321 int main(int argc, char *argv[])
 10323    goto *first_arg(&&start, &&except);
 10325 start:
 10326    return foo( argc, &&except ) + 1;
 10328 except:
 10329    return 0;
 10331 _ACEOF
 10332 rm -f conftest$ac_exeext
 10333 if { (ac_try="$ac_link"
 10334 case "(($ac_try" in
 10335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10336   *) ac_try_echo=$ac_try;;
 10337 esac
 10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10339   (eval "$ac_link") 2>&5
 10340   ac_status=$?
 10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 10343   { (case "(($ac_try" in
 10344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10345   *) ac_try_echo=$ac_try;;
 10346 esac
 10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10348   (eval "$ac_try") 2>&5
 10349   ac_status=$?
 10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10351   (exit $ac_status); }; }; then
 10353    { echo "$as_me:$LINENO: result: yes" >&5
 10354 echo "${ECHO_T}yes" >&6; }
 10357 cat >>confdefs.h <<\_ACEOF
 10358 #define HAVE_FRAME_ADDRESS 1
 10359 _ACEOF
 10362 else
 10363   echo "$as_me: program exited with status $ac_status" >&5
 10364 echo "$as_me: failed program was:" >&5
 10365 sed 's/^/| /' conftest.$ac_ext >&5
 10367 ( exit $ac_status )
 10369    { echo "$as_me:$LINENO: result: no" >&5
 10370 echo "${ECHO_T}no" >&6; }
 10371     { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
 10372 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
 10373 fi
 10374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 10375 fi
 10381 { echo "$as_me:$LINENO: checking for library containing listen" >&5
 10382 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
 10383 if test "${ac_cv_search_listen+set}" = set; then
 10384   echo $ECHO_N "(cached) $ECHO_C" >&6
 10385 else
 10386   ac_func_search_save_LIBS=$LIBS
 10387 cat >conftest.$ac_ext <<_ACEOF
 10388 /* confdefs.h.  */
 10389 _ACEOF
 10390 cat confdefs.h >>conftest.$ac_ext
 10391 cat >>conftest.$ac_ext <<_ACEOF
 10392 /* end confdefs.h.  */
 10394 /* Override any GCC internal prototype to avoid an error.
 10395    Use char because int might match the return type of a GCC
 10396    builtin and then its argument prototype would still apply.  */
 10397 #ifdef __cplusplus
 10398 extern "C"
 10399 #endif
 10400 char listen ();
 10401 int
 10402 main ()
 10404 return listen ();
 10406   return 0;
 10408 _ACEOF
 10409 for ac_lib in '' socket; do
 10410   if test -z "$ac_lib"; then
 10411     ac_res="none required"
 10412   else
 10413     ac_res=-l$ac_lib
 10414     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10415   fi
 10416   rm -f conftest.$ac_objext conftest$ac_exeext
 10417 if { (ac_try="$ac_link"
 10418 case "(($ac_try" in
 10419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10420   *) ac_try_echo=$ac_try;;
 10421 esac
 10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10423   (eval "$ac_link") 2>conftest.er1
 10424   ac_status=$?
 10425   grep -v '^ *+' conftest.er1 >conftest.err
 10426   rm -f conftest.er1
 10427   cat conftest.err >&5
 10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10429   (exit $ac_status); } && {
 10430 	 test -z "$ac_c_werror_flag" ||
 10431 	 test ! -s conftest.err
 10432        } && test -s conftest$ac_exeext &&
 10433        $as_test_x conftest$ac_exeext; then
 10434   ac_cv_search_listen=$ac_res
 10435 else
 10436   echo "$as_me: failed program was:" >&5
 10437 sed 's/^/| /' conftest.$ac_ext >&5
 10440 fi
 10442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10443       conftest$ac_exeext
 10444   if test "${ac_cv_search_listen+set}" = set; then
 10445   break
 10446 fi
 10447 done
 10448 if test "${ac_cv_search_listen+set}" = set; then
 10450 else
 10451   ac_cv_search_listen=no
 10452 fi
 10453 rm conftest.$ac_ext
 10454 LIBS=$ac_func_search_save_LIBS
 10455 fi
 10456 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
 10457 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
 10458 ac_res=$ac_cv_search_listen
 10459 if test "$ac_res" != no; then
 10460   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10462 fi
 10464 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
 10465 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
 10466 if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10467   echo $ECHO_N "(cached) $ECHO_C" >&6
 10468 else
 10469   ac_func_search_save_LIBS=$LIBS
 10470 cat >conftest.$ac_ext <<_ACEOF
 10471 /* confdefs.h.  */
 10472 _ACEOF
 10473 cat confdefs.h >>conftest.$ac_ext
 10474 cat >>conftest.$ac_ext <<_ACEOF
 10475 /* end confdefs.h.  */
 10477 /* Override any GCC internal prototype to avoid an error.
 10478    Use char because int might match the return type of a GCC
 10479    builtin and then its argument prototype would still apply.  */
 10480 #ifdef __cplusplus
 10481 extern "C"
 10482 #endif
 10483 char inet_ntoa ();
 10484 int
 10485 main ()
 10487 return inet_ntoa ();
 10489   return 0;
 10491 _ACEOF
 10492 for ac_lib in '' nsl; do
 10493   if test -z "$ac_lib"; then
 10494     ac_res="none required"
 10495   else
 10496     ac_res=-l$ac_lib
 10497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10498   fi
 10499   rm -f conftest.$ac_objext conftest$ac_exeext
 10500 if { (ac_try="$ac_link"
 10501 case "(($ac_try" in
 10502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10503   *) ac_try_echo=$ac_try;;
 10504 esac
 10505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10506   (eval "$ac_link") 2>conftest.er1
 10507   ac_status=$?
 10508   grep -v '^ *+' conftest.er1 >conftest.err
 10509   rm -f conftest.er1
 10510   cat conftest.err >&5
 10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10512   (exit $ac_status); } && {
 10513 	 test -z "$ac_c_werror_flag" ||
 10514 	 test ! -s conftest.err
 10515        } && test -s conftest$ac_exeext &&
 10516        $as_test_x conftest$ac_exeext; then
 10517   ac_cv_search_inet_ntoa=$ac_res
 10518 else
 10519   echo "$as_me: failed program was:" >&5
 10520 sed 's/^/| /' conftest.$ac_ext >&5
 10523 fi
 10525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10526       conftest$ac_exeext
 10527   if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10528   break
 10529 fi
 10530 done
 10531 if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10533 else
 10534   ac_cv_search_inet_ntoa=no
 10535 fi
 10536 rm conftest.$ac_ext
 10537 LIBS=$ac_func_search_save_LIBS
 10538 fi
 10539 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
 10540 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
 10541 ac_res=$ac_cv_search_inet_ntoa
 10542 if test "$ac_res" != no; then
 10543   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10545 fi
 10550 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 10551 	if test -n "$ac_tool_prefix"; then
 10552   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 10553 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 10554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 10557   echo $ECHO_N "(cached) $ECHO_C" >&6
 10558 else
 10559   case $PKG_CONFIG in
 10560   [\\/]* | ?:[\\/]*)
 10561   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 10562   ;;
 10563   *)
 10564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10565 for as_dir in $PATH
 10566 do
 10567   IFS=$as_save_IFS
 10568   test -z "$as_dir" && as_dir=.
 10569   for ac_exec_ext in '' $ac_executable_extensions; do
 10570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10571     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 10572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10573     break 2
 10574   fi
 10575 done
 10576 done
 10577 IFS=$as_save_IFS
 10579   ;;
 10580 esac
 10581 fi
 10582 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 10583 if test -n "$PKG_CONFIG"; then
 10584   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 10585 echo "${ECHO_T}$PKG_CONFIG" >&6; }
 10586 else
 10587   { echo "$as_me:$LINENO: result: no" >&5
 10588 echo "${ECHO_T}no" >&6; }
 10589 fi
 10592 fi
 10593 if test -z "$ac_cv_path_PKG_CONFIG"; then
 10594   ac_pt_PKG_CONFIG=$PKG_CONFIG
 10595   # Extract the first word of "pkg-config", so it can be a program name with args.
 10596 set dummy pkg-config; ac_word=$2
 10597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10599 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 10600   echo $ECHO_N "(cached) $ECHO_C" >&6
 10601 else
 10602   case $ac_pt_PKG_CONFIG in
 10603   [\\/]* | ?:[\\/]*)
 10604   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 10605   ;;
 10606   *)
 10607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10608 for as_dir in $PATH
 10609 do
 10610   IFS=$as_save_IFS
 10611   test -z "$as_dir" && as_dir=.
 10612   for ac_exec_ext in '' $ac_executable_extensions; do
 10613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10614     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 10615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10616     break 2
 10617   fi
 10618 done
 10619 done
 10620 IFS=$as_save_IFS
 10622   ;;
 10623 esac
 10624 fi
 10625 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 10626 if test -n "$ac_pt_PKG_CONFIG"; then
 10627   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 10628 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 10629 else
 10630   { echo "$as_me:$LINENO: result: no" >&5
 10631 echo "${ECHO_T}no" >&6; }
 10632 fi
 10634   if test "x$ac_pt_PKG_CONFIG" = x; then
 10635     PKG_CONFIG=""
 10636   else
 10637     case $cross_compiling:$ac_tool_warned in
 10638 yes:)
 10639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 10640 whose name does not start with the host triplet.  If you think this
 10641 configuration is useful to you, please write to autoconf@gnu.org." >&5
 10642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 10643 whose name does not start with the host triplet.  If you think this
 10644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 10645 ac_tool_warned=yes ;;
 10646 esac
 10647     PKG_CONFIG=$ac_pt_PKG_CONFIG
 10648   fi
 10649 else
 10650   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 10651 fi
 10653 fi
 10654 if test -n "$PKG_CONFIG"; then
 10655 	_pkg_min_version=0.9.0
 10656 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 10657 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 10658 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 10659 		{ echo "$as_me:$LINENO: result: yes" >&5
 10660 echo "${ECHO_T}yes" >&6; }
 10661 	else
 10662 		{ echo "$as_me:$LINENO: result: no" >&5
 10663 echo "${ECHO_T}no" >&6; }
 10664 		PKG_CONFIG=""
 10665 	fi
 10667 fi
 10669 pkg_failed=no
 10670 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
 10671 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
 10673 if test -n "$LIBPNG_CFLAGS"; then
 10674     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
 10675  elif test -n "$PKG_CONFIG"; then
 10676     if test -n "$PKG_CONFIG" && \
 10677     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
 10678   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
 10679   ac_status=$?
 10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10681   (exit $ac_status); }; then
 10682   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
 10683 else
 10684   pkg_failed=yes
 10685 fi
 10686  else
 10687     pkg_failed=untried
 10688 fi
 10689 if test -n "$LIBPNG_LIBS"; then
 10690     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
 10691  elif test -n "$PKG_CONFIG"; then
 10692     if test -n "$PKG_CONFIG" && \
 10693     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
 10694   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
 10695   ac_status=$?
 10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10697   (exit $ac_status); }; then
 10698   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
 10699 else
 10700   pkg_failed=yes
 10701 fi
 10702  else
 10703     pkg_failed=untried
 10704 fi
 10708 if test $pkg_failed = yes; then
 10710 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10711         _pkg_short_errors_supported=yes
 10712 else
 10713         _pkg_short_errors_supported=no
 10714 fi
 10715         if test $_pkg_short_errors_supported = yes; then
 10716 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
 10717         else
 10718 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
 10719         fi
 10720 	# Put the nasty error message in config.log where it belongs
 10721 	echo "$LIBPNG_PKG_ERRORS" >&5
 10723 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
 10725 $LIBPNG_PKG_ERRORS
 10727 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10728 installed software in a non-standard prefix.
 10730 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10731 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10732 See the pkg-config man page for more details.
 10733 " >&5
 10734 echo "$as_me: error: Package requirements (libpng ) were not met:
 10736 $LIBPNG_PKG_ERRORS
 10738 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10739 installed software in a non-standard prefix.
 10741 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10742 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10743 See the pkg-config man page for more details.
 10744 " >&2;}
 10745    { (exit 1); exit 1; }; }
 10746 elif test $pkg_failed = untried; then
 10747 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 10748 is in your PATH or set the PKG_CONFIG environment variable to the full
 10749 path to pkg-config.
 10751 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10752 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10753 See the pkg-config man page for more details.
 10755 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10756 See \`config.log' for more details." >&5
 10757 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 10758 is in your PATH or set the PKG_CONFIG environment variable to the full
 10759 path to pkg-config.
 10761 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10762 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10763 See the pkg-config man page for more details.
 10765 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10766 See \`config.log' for more details." >&2;}
 10767    { (exit 1); exit 1; }; }
 10768 else
 10769 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
 10770 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
 10771         { echo "$as_me:$LINENO: result: yes" >&5
 10772 echo "${ECHO_T}yes" >&6; }
 10774 fi
 10777 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
 10778 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
 10779 if test "${ac_cv_lib_z_uncompress+set}" = set; then
 10780   echo $ECHO_N "(cached) $ECHO_C" >&6
 10781 else
 10782   ac_check_lib_save_LIBS=$LIBS
 10783 LIBS="-lz  $LIBS"
 10784 cat >conftest.$ac_ext <<_ACEOF
 10785 /* confdefs.h.  */
 10786 _ACEOF
 10787 cat confdefs.h >>conftest.$ac_ext
 10788 cat >>conftest.$ac_ext <<_ACEOF
 10789 /* end confdefs.h.  */
 10791 /* Override any GCC internal prototype to avoid an error.
 10792    Use char because int might match the return type of a GCC
 10793    builtin and then its argument prototype would still apply.  */
 10794 #ifdef __cplusplus
 10795 extern "C"
 10796 #endif
 10797 char uncompress ();
 10798 int
 10799 main ()
 10801 return uncompress ();
 10803   return 0;
 10805 _ACEOF
 10806 rm -f conftest.$ac_objext conftest$ac_exeext
 10807 if { (ac_try="$ac_link"
 10808 case "(($ac_try" in
 10809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10810   *) ac_try_echo=$ac_try;;
 10811 esac
 10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10813   (eval "$ac_link") 2>conftest.er1
 10814   ac_status=$?
 10815   grep -v '^ *+' conftest.er1 >conftest.err
 10816   rm -f conftest.er1
 10817   cat conftest.err >&5
 10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10819   (exit $ac_status); } && {
 10820 	 test -z "$ac_c_werror_flag" ||
 10821 	 test ! -s conftest.err
 10822        } && test -s conftest$ac_exeext &&
 10823        $as_test_x conftest$ac_exeext; then
 10824   ac_cv_lib_z_uncompress=yes
 10825 else
 10826   echo "$as_me: failed program was:" >&5
 10827 sed 's/^/| /' conftest.$ac_ext >&5
 10829 	ac_cv_lib_z_uncompress=no
 10830 fi
 10832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10833       conftest$ac_exeext conftest.$ac_ext
 10834 LIBS=$ac_check_lib_save_LIBS
 10835 fi
 10836 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
 10837 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
 10838 if test $ac_cv_lib_z_uncompress = yes; then
 10839   cat >>confdefs.h <<_ACEOF
 10840 #define HAVE_LIBZ 1
 10841 _ACEOF
 10843   LIBS="-lz $LIBS"
 10845 else
 10847     echo "Zlib (libz.so) could not be found, but is required."
 10848     exit 1
 10849 fi
 10853 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
 10854 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
 10855 if test "${ac_cv_lib_m_sqrt+set}" = set; then
 10856   echo $ECHO_N "(cached) $ECHO_C" >&6
 10857 else
 10858   ac_check_lib_save_LIBS=$LIBS
 10859 LIBS="-lm  $LIBS"
 10860 cat >conftest.$ac_ext <<_ACEOF
 10861 /* confdefs.h.  */
 10862 _ACEOF
 10863 cat confdefs.h >>conftest.$ac_ext
 10864 cat >>conftest.$ac_ext <<_ACEOF
 10865 /* end confdefs.h.  */
 10867 /* Override any GCC internal prototype to avoid an error.
 10868    Use char because int might match the return type of a GCC
 10869    builtin and then its argument prototype would still apply.  */
 10870 #ifdef __cplusplus
 10871 extern "C"
 10872 #endif
 10873 char sqrt ();
 10874 int
 10875 main ()
 10877 return sqrt ();
 10879   return 0;
 10881 _ACEOF
 10882 rm -f conftest.$ac_objext conftest$ac_exeext
 10883 if { (ac_try="$ac_link"
 10884 case "(($ac_try" in
 10885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10886   *) ac_try_echo=$ac_try;;
 10887 esac
 10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10889   (eval "$ac_link") 2>conftest.er1
 10890   ac_status=$?
 10891   grep -v '^ *+' conftest.er1 >conftest.err
 10892   rm -f conftest.er1
 10893   cat conftest.err >&5
 10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10895   (exit $ac_status); } && {
 10896 	 test -z "$ac_c_werror_flag" ||
 10897 	 test ! -s conftest.err
 10898        } && test -s conftest$ac_exeext &&
 10899        $as_test_x conftest$ac_exeext; then
 10900   ac_cv_lib_m_sqrt=yes
 10901 else
 10902   echo "$as_me: failed program was:" >&5
 10903 sed 's/^/| /' conftest.$ac_ext >&5
 10905 	ac_cv_lib_m_sqrt=no
 10906 fi
 10908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10909       conftest$ac_exeext conftest.$ac_ext
 10910 LIBS=$ac_check_lib_save_LIBS
 10911 fi
 10912 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
 10913 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
 10914 if test $ac_cv_lib_m_sqrt = yes; then
 10915   cat >>confdefs.h <<_ACEOF
 10916 #define HAVE_LIBM 1
 10917 _ACEOF
 10919   LIBS="-lm $LIBS"
 10921 fi
 10924 if test "x$with_gtk" = "xno"; then
 10926 pkg_failed=no
 10927 { echo "$as_me:$LINENO: checking for GLIB" >&5
 10928 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
 10930 if test -n "$GLIB_CFLAGS"; then
 10931     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
 10932  elif test -n "$PKG_CONFIG"; then
 10933     if test -n "$PKG_CONFIG" && \
 10934     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 10935   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 10936   ac_status=$?
 10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10938   (exit $ac_status); }; then
 10939   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 10940 else
 10941   pkg_failed=yes
 10942 fi
 10943  else
 10944     pkg_failed=untried
 10945 fi
 10946 if test -n "$GLIB_LIBS"; then
 10947     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
 10948  elif test -n "$PKG_CONFIG"; then
 10949     if test -n "$PKG_CONFIG" && \
 10950     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 10951   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 10952   ac_status=$?
 10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10954   (exit $ac_status); }; then
 10955   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 10956 else
 10957   pkg_failed=yes
 10958 fi
 10959  else
 10960     pkg_failed=untried
 10961 fi
 10965 if test $pkg_failed = yes; then
 10967 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10968         _pkg_short_errors_supported=yes
 10969 else
 10970         _pkg_short_errors_supported=no
 10971 fi
 10972         if test $_pkg_short_errors_supported = yes; then
 10973 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
 10974         else
 10975 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
 10976         fi
 10977 	# Put the nasty error message in config.log where it belongs
 10978 	echo "$GLIB_PKG_ERRORS" >&5
 10980 	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 10982 $GLIB_PKG_ERRORS
 10984 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10985 installed software in a non-standard prefix.
 10987 Alternatively, you may set the environment variables GLIB_CFLAGS
 10988 and GLIB_LIBS to avoid the need to call pkg-config.
 10989 See the pkg-config man page for more details.
 10990 " >&5
 10991 echo "$as_me: error: Package requirements (glib-2.0) were not met:
 10993 $GLIB_PKG_ERRORS
 10995 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10996 installed software in a non-standard prefix.
 10998 Alternatively, you may set the environment variables GLIB_CFLAGS
 10999 and GLIB_LIBS to avoid the need to call pkg-config.
 11000 See the pkg-config man page for more details.
 11001 " >&2;}
 11002    { (exit 1); exit 1; }; }
 11003 elif test $pkg_failed = untried; then
 11004 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11005 is in your PATH or set the PKG_CONFIG environment variable to the full
 11006 path to pkg-config.
 11008 Alternatively, you may set the environment variables GLIB_CFLAGS
 11009 and GLIB_LIBS to avoid the need to call pkg-config.
 11010 See the pkg-config man page for more details.
 11012 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11013 See \`config.log' for more details." >&5
 11014 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11015 is in your PATH or set the PKG_CONFIG environment variable to the full
 11016 path to pkg-config.
 11018 Alternatively, you may set the environment variables GLIB_CFLAGS
 11019 and GLIB_LIBS to avoid the need to call pkg-config.
 11020 See the pkg-config man page for more details.
 11022 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11023 See \`config.log' for more details." >&2;}
 11024    { (exit 1); exit 1; }; }
 11025 else
 11026 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
 11027 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
 11028         { echo "$as_me:$LINENO: result: yes" >&5
 11029 echo "${ECHO_T}yes" >&6; }
 11031 fi
 11032 else
 11034 pkg_failed=no
 11035 { echo "$as_me:$LINENO: checking for GTK" >&5
 11036 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
 11038 if test -n "$GTK_CFLAGS"; then
 11039     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
 11040  elif test -n "$PKG_CONFIG"; then
 11041     if test -n "$PKG_CONFIG" && \
 11042     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 11043   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 11044   ac_status=$?
 11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11046   (exit $ac_status); }; then
 11047   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
 11048 else
 11049   pkg_failed=yes
 11050 fi
 11051  else
 11052     pkg_failed=untried
 11053 fi
 11054 if test -n "$GTK_LIBS"; then
 11055     pkg_cv_GTK_LIBS="$GTK_LIBS"
 11056  elif test -n "$PKG_CONFIG"; then
 11057     if test -n "$PKG_CONFIG" && \
 11058     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 11059   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 11060   ac_status=$?
 11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11062   (exit $ac_status); }; then
 11063   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
 11064 else
 11065   pkg_failed=yes
 11066 fi
 11067  else
 11068     pkg_failed=untried
 11069 fi
 11073 if test $pkg_failed = yes; then
 11075 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11076         _pkg_short_errors_supported=yes
 11077 else
 11078         _pkg_short_errors_supported=no
 11079 fi
 11080         if test $_pkg_short_errors_supported = yes; then
 11081 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
 11082         else
 11083 	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
 11084         fi
 11085 	# Put the nasty error message in config.log where it belongs
 11086 	echo "$GTK_PKG_ERRORS" >&5
 11088 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
 11090 $GTK_PKG_ERRORS
 11092 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11093 installed software in a non-standard prefix.
 11095 Alternatively, you may set the environment variables GTK_CFLAGS
 11096 and GTK_LIBS to avoid the need to call pkg-config.
 11097 See the pkg-config man page for more details.
 11098 " >&5
 11099 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
 11101 $GTK_PKG_ERRORS
 11103 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11104 installed software in a non-standard prefix.
 11106 Alternatively, you may set the environment variables GTK_CFLAGS
 11107 and GTK_LIBS to avoid the need to call pkg-config.
 11108 See the pkg-config man page for more details.
 11109 " >&2;}
 11110    { (exit 1); exit 1; }; }
 11111 elif test $pkg_failed = untried; then
 11112 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11113 is in your PATH or set the PKG_CONFIG environment variable to the full
 11114 path to pkg-config.
 11116 Alternatively, you may set the environment variables GTK_CFLAGS
 11117 and GTK_LIBS to avoid the need to call pkg-config.
 11118 See the pkg-config man page for more details.
 11120 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11121 See \`config.log' for more details." >&5
 11122 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11123 is in your PATH or set the PKG_CONFIG environment variable to the full
 11124 path to pkg-config.
 11126 Alternatively, you may set the environment variables GTK_CFLAGS
 11127 and GTK_LIBS to avoid the need to call pkg-config.
 11128 See the pkg-config man page for more details.
 11130 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11131 See \`config.log' for more details." >&2;}
 11132    { (exit 1); exit 1; }; }
 11133 else
 11134 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
 11135 	GTK_LIBS=$pkg_cv_GTK_LIBS
 11136         { echo "$as_me:$LINENO: result: yes" >&5
 11137 echo "${ECHO_T}yes" >&6; }
 11139        HAVE_GTK='yes'
 11141 cat >>confdefs.h <<\_ACEOF
 11142 #define HAVE_GTK 1
 11143 _ACEOF
 11145        UI_DRIVER="GTK"
 11147 fi
 11149       LIBS="$LIBS $GTK_LIBS"
 11150    { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
 11151 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
 11152 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
 11153   echo $ECHO_N "(cached) $ECHO_C" >&6
 11154 else
 11155   cat >conftest.$ac_ext <<_ACEOF
 11156 /* confdefs.h.  */
 11157 _ACEOF
 11158 cat confdefs.h >>conftest.$ac_ext
 11159 cat >>conftest.$ac_ext <<_ACEOF
 11160 /* end confdefs.h.  */
 11161 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
 11162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11163 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
 11165 /* System header to define __stub macros and hopefully few prototypes,
 11166     which can conflict with char gdk_x11_display_get_xdisplay (); below.
 11167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11168     <limits.h> exists even on freestanding compilers.  */
 11170 #ifdef __STDC__
 11171 # include <limits.h>
 11172 #else
 11173 # include <assert.h>
 11174 #endif
 11176 #undef gdk_x11_display_get_xdisplay
 11178 /* Override any GCC internal prototype to avoid an error.
 11179    Use char because int might match the return type of a GCC
 11180    builtin and then its argument prototype would still apply.  */
 11181 #ifdef __cplusplus
 11182 extern "C"
 11183 #endif
 11184 char gdk_x11_display_get_xdisplay ();
 11185 /* The GNU C library defines this for functions which it implements
 11186     to always fail with ENOSYS.  Some functions are actually named
 11187     something starting with __ and the normal name is an alias.  */
 11188 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
 11189 choke me
 11190 #endif
 11192 int
 11193 main ()
 11195 return gdk_x11_display_get_xdisplay ();
 11197   return 0;
 11199 _ACEOF
 11200 rm -f conftest.$ac_objext conftest$ac_exeext
 11201 if { (ac_try="$ac_link"
 11202 case "(($ac_try" in
 11203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11204   *) ac_try_echo=$ac_try;;
 11205 esac
 11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11207   (eval "$ac_link") 2>conftest.er1
 11208   ac_status=$?
 11209   grep -v '^ *+' conftest.er1 >conftest.err
 11210   rm -f conftest.er1
 11211   cat conftest.err >&5
 11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11213   (exit $ac_status); } && {
 11214 	 test -z "$ac_c_werror_flag" ||
 11215 	 test ! -s conftest.err
 11216        } && test -s conftest$ac_exeext &&
 11217        $as_test_x conftest$ac_exeext; then
 11218   ac_cv_func_gdk_x11_display_get_xdisplay=yes
 11219 else
 11220   echo "$as_me: failed program was:" >&5
 11221 sed 's/^/| /' conftest.$ac_ext >&5
 11223 	ac_cv_func_gdk_x11_display_get_xdisplay=no
 11224 fi
 11226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11227       conftest$ac_exeext conftest.$ac_ext
 11228 fi
 11229 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
 11230 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
 11231 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
 11233       HAVE_GTK_X11='yes'
 11235 cat >>confdefs.h <<\_ACEOF
 11236 #define HAVE_GTK_X11 1
 11237 _ACEOF
 11239 fi
 11241             GTK_LIBS="$GTK_LIBS -lX11"
 11242       LIBS="$LIBS -lX11"
 11243    { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
 11244 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
 11245 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
 11246   echo $ECHO_N "(cached) $ECHO_C" >&6
 11247 else
 11248   cat >conftest.$ac_ext <<_ACEOF
 11249 /* confdefs.h.  */
 11250 _ACEOF
 11251 cat confdefs.h >>conftest.$ac_ext
 11252 cat >>conftest.$ac_ext <<_ACEOF
 11253 /* end confdefs.h.  */
 11254 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
 11255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11256 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
 11258 /* System header to define __stub macros and hopefully few prototypes,
 11259     which can conflict with char gdk_quartz_window_get_nsview (); below.
 11260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11261     <limits.h> exists even on freestanding compilers.  */
 11263 #ifdef __STDC__
 11264 # include <limits.h>
 11265 #else
 11266 # include <assert.h>
 11267 #endif
 11269 #undef gdk_quartz_window_get_nsview
 11271 /* Override any GCC internal prototype to avoid an error.
 11272    Use char because int might match the return type of a GCC
 11273    builtin and then its argument prototype would still apply.  */
 11274 #ifdef __cplusplus
 11275 extern "C"
 11276 #endif
 11277 char gdk_quartz_window_get_nsview ();
 11278 /* The GNU C library defines this for functions which it implements
 11279     to always fail with ENOSYS.  Some functions are actually named
 11280     something starting with __ and the normal name is an alias.  */
 11281 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
 11282 choke me
 11283 #endif
 11285 int
 11286 main ()
 11288 return gdk_quartz_window_get_nsview ();
 11290   return 0;
 11292 _ACEOF
 11293 rm -f conftest.$ac_objext conftest$ac_exeext
 11294 if { (ac_try="$ac_link"
 11295 case "(($ac_try" in
 11296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11297   *) ac_try_echo=$ac_try;;
 11298 esac
 11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11300   (eval "$ac_link") 2>conftest.er1
 11301   ac_status=$?
 11302   grep -v '^ *+' conftest.er1 >conftest.err
 11303   rm -f conftest.er1
 11304   cat conftest.err >&5
 11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11306   (exit $ac_status); } && {
 11307 	 test -z "$ac_c_werror_flag" ||
 11308 	 test ! -s conftest.err
 11309        } && test -s conftest$ac_exeext &&
 11310        $as_test_x conftest$ac_exeext; then
 11311   ac_cv_func_gdk_quartz_window_get_nsview=yes
 11312 else
 11313   echo "$as_me: failed program was:" >&5
 11314 sed 's/^/| /' conftest.$ac_ext >&5
 11316 	ac_cv_func_gdk_quartz_window_get_nsview=no
 11317 fi
 11319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11320       conftest$ac_exeext conftest.$ac_ext
 11321 fi
 11322 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
 11323 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
 11324 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
 11326       HAVE_GTK_OSX='yes'
 11328 cat >>confdefs.h <<\_ACEOF
 11329 #define HAVE_GTK_OSX 1
 11330 _ACEOF
 11332 fi
 11334    if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
 11335       { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
 11336 See \`config.log' for more details." >&5
 11337 echo "$as_me: error: Unable to identify GTK platform
 11338 See \`config.log' for more details." >&2;}
 11339    { (exit 1); exit 1; }; }
 11340    fi
 11341 fi
 11344 if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
 11345    PKG_CONFIG_LIBDIR="$BUILD_PKG_CONFIG_LIBDIR";
 11346    if test "x$PKG_CONFIG_LIBDIR" = "x"; then
 11347       export -n PKG_CONFIG_LIBDIR
 11348    fi
 11349 fi
 11351 pkg_failed=no
 11352 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
 11353 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
 11355 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
 11356     pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
 11357  elif test -n "$PKG_CONFIG"; then
 11358     if test -n "$PKG_CONFIG" && \
 11359     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 11360   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 11361   ac_status=$?
 11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11363   (exit $ac_status); }; then
 11364   pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 11365 else
 11366   pkg_failed=yes
 11367 fi
 11368  else
 11369     pkg_failed=untried
 11370 fi
 11371 if test -n "$GLIB_FOR_BUILD_LIBS"; then
 11372     pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
 11373  elif test -n "$PKG_CONFIG"; then
 11374     if test -n "$PKG_CONFIG" && \
 11375     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 11376   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 11377   ac_status=$?
 11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11379   (exit $ac_status); }; then
 11380   pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 11381 else
 11382   pkg_failed=yes
 11383 fi
 11384  else
 11385     pkg_failed=untried
 11386 fi
 11390 if test $pkg_failed = yes; then
 11392 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11393         _pkg_short_errors_supported=yes
 11394 else
 11395         _pkg_short_errors_supported=no
 11396 fi
 11397         if test $_pkg_short_errors_supported = yes; then
 11398 	        GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
 11399         else
 11400 	        GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
 11401         fi
 11402 	# Put the nasty error message in config.log where it belongs
 11403 	echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
 11405 	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 11407 $GLIB_FOR_BUILD_PKG_ERRORS
 11409 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11410 installed software in a non-standard prefix.
 11412 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11413 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11414 See the pkg-config man page for more details.
 11415 " >&5
 11416 echo "$as_me: error: Package requirements (glib-2.0) were not met:
 11418 $GLIB_FOR_BUILD_PKG_ERRORS
 11420 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11421 installed software in a non-standard prefix.
 11423 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11424 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11425 See the pkg-config man page for more details.
 11426 " >&2;}
 11427    { (exit 1); exit 1; }; }
 11428 elif test $pkg_failed = untried; then
 11429 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11430 is in your PATH or set the PKG_CONFIG environment variable to the full
 11431 path to pkg-config.
 11433 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11434 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11435 See the pkg-config man page for more details.
 11437 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11438 See \`config.log' for more details." >&5
 11439 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11440 is in your PATH or set the PKG_CONFIG environment variable to the full
 11441 path to pkg-config.
 11443 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11444 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11445 See the pkg-config man page for more details.
 11447 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11448 See \`config.log' for more details." >&2;}
 11449    { (exit 1); exit 1; }; }
 11450 else
 11451 	GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
 11452 	GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
 11453         { echo "$as_me:$LINENO: result: yes" >&5
 11454 echo "${ECHO_T}yes" >&6; }
 11456 fi
 11457 if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
 11458    PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR";
 11459    export PKG_CONFIG_LIBDIR
 11460 fi
 11465 if test "$HAVE_GTK" = 'yes'; then
 11466   GUI_GTK_TRUE=
 11467   GUI_GTK_FALSE='#'
 11468 else
 11469   GUI_GTK_TRUE='#'
 11470   GUI_GTK_FALSE=
 11471 fi
 11475 pkg_failed=no
 11476 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
 11477 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
 11479 if test -n "$LIBISOFS_CFLAGS"; then
 11480     pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
 11481  elif test -n "$PKG_CONFIG"; then
 11482     if test -n "$PKG_CONFIG" && \
 11483     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
 11484   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
 11485   ac_status=$?
 11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11487   (exit $ac_status); }; then
 11488   pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
 11489 else
 11490   pkg_failed=yes
 11491 fi
 11492  else
 11493     pkg_failed=untried
 11494 fi
 11495 if test -n "$LIBISOFS_LIBS"; then
 11496     pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
 11497  elif test -n "$PKG_CONFIG"; then
 11498     if test -n "$PKG_CONFIG" && \
 11499     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
 11500   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
 11501   ac_status=$?
 11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11503   (exit $ac_status); }; then
 11504   pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
 11505 else
 11506   pkg_failed=yes
 11507 fi
 11508  else
 11509     pkg_failed=untried
 11510 fi
 11514 if test $pkg_failed = yes; then
 11516 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11517         _pkg_short_errors_supported=yes
 11518 else
 11519         _pkg_short_errors_supported=no
 11520 fi
 11521         if test $_pkg_short_errors_supported = yes; then
 11522 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
 11523         else
 11524 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
 11525         fi
 11526 	# Put the nasty error message in config.log where it belongs
 11527 	echo "$LIBISOFS_PKG_ERRORS" >&5
 11529 	{ { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
 11531 $LIBISOFS_PKG_ERRORS
 11533 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11534 installed software in a non-standard prefix.
 11536 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11537 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11538 See the pkg-config man page for more details.
 11539 " >&5
 11540 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
 11542 $LIBISOFS_PKG_ERRORS
 11544 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11545 installed software in a non-standard prefix.
 11547 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11548 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11549 See the pkg-config man page for more details.
 11550 " >&2;}
 11551    { (exit 1); exit 1; }; }
 11552 elif test $pkg_failed = untried; then
 11553 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11554 is in your PATH or set the PKG_CONFIG environment variable to the full
 11555 path to pkg-config.
 11557 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11558 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11559 See the pkg-config man page for more details.
 11561 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11562 See \`config.log' for more details." >&5
 11563 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11564 is in your PATH or set the PKG_CONFIG environment variable to the full
 11565 path to pkg-config.
 11567 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11568 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11569 See the pkg-config man page for more details.
 11571 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11572 See \`config.log' for more details." >&2;}
 11573    { (exit 1); exit 1; }; }
 11574 else
 11575 	LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
 11576 	LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
 11577         { echo "$as_me:$LINENO: result: yes" >&5
 11578 echo "${ECHO_T}yes" >&6; }
 11580 fi
 11582 if test "x$with_osmesa" != xno; then
 11586 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
 11587 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
 11588 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
 11589   echo $ECHO_N "(cached) $ECHO_C" >&6
 11590 else
 11591   ac_check_lib_save_LIBS=$LIBS
 11592 LIBS="-lOSMesa  $LIBS"
 11593 cat >conftest.$ac_ext <<_ACEOF
 11594 /* confdefs.h.  */
 11595 _ACEOF
 11596 cat confdefs.h >>conftest.$ac_ext
 11597 cat >>conftest.$ac_ext <<_ACEOF
 11598 /* end confdefs.h.  */
 11600 /* Override any GCC internal prototype to avoid an error.
 11601    Use char because int might match the return type of a GCC
 11602    builtin and then its argument prototype would still apply.  */
 11603 #ifdef __cplusplus
 11604 extern "C"
 11605 #endif
 11606 char OSMesaCreateContext ();
 11607 int
 11608 main ()
 11610 return OSMesaCreateContext ();
 11612   return 0;
 11614 _ACEOF
 11615 rm -f conftest.$ac_objext conftest$ac_exeext
 11616 if { (ac_try="$ac_link"
 11617 case "(($ac_try" in
 11618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11619   *) ac_try_echo=$ac_try;;
 11620 esac
 11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11622   (eval "$ac_link") 2>conftest.er1
 11623   ac_status=$?
 11624   grep -v '^ *+' conftest.er1 >conftest.err
 11625   rm -f conftest.er1
 11626   cat conftest.err >&5
 11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11628   (exit $ac_status); } && {
 11629 	 test -z "$ac_c_werror_flag" ||
 11630 	 test ! -s conftest.err
 11631        } && test -s conftest$ac_exeext &&
 11632        $as_test_x conftest$ac_exeext; then
 11633   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
 11634 else
 11635   echo "$as_me: failed program was:" >&5
 11636 sed 's/^/| /' conftest.$ac_ext >&5
 11638 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
 11639 fi
 11641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11642       conftest$ac_exeext conftest.$ac_ext
 11643 LIBS=$ac_check_lib_save_LIBS
 11644 fi
 11645 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
 11646 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
 11647 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
 11648   cat >>confdefs.h <<_ACEOF
 11649 #define HAVE_LIBOSMESA 1
 11650 _ACEOF
 11652   LIBS="-lOSMesa $LIBS"
 11654 else
 11655   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
 11656 See \`config.log' for more details." >&5
 11657 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
 11658 See \`config.log' for more details." >&2;}
 11659    { (exit 1); exit 1; }; }
 11660 fi
 11662   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11663   { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
 11664 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
 11665 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11666   echo $ECHO_N "(cached) $ECHO_C" >&6
 11667 fi
 11668 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
 11669 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
 11670 else
 11671   # Is the header compilable?
 11672 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
 11673 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
 11674 cat >conftest.$ac_ext <<_ACEOF
 11675 /* confdefs.h.  */
 11676 _ACEOF
 11677 cat confdefs.h >>conftest.$ac_ext
 11678 cat >>conftest.$ac_ext <<_ACEOF
 11679 /* end confdefs.h.  */
 11680 $ac_includes_default
 11681 #include <GL/osmesa.h>
 11682 _ACEOF
 11683 rm -f conftest.$ac_objext
 11684 if { (ac_try="$ac_compile"
 11685 case "(($ac_try" in
 11686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11687   *) ac_try_echo=$ac_try;;
 11688 esac
 11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11690   (eval "$ac_compile") 2>conftest.er1
 11691   ac_status=$?
 11692   grep -v '^ *+' conftest.er1 >conftest.err
 11693   rm -f conftest.er1
 11694   cat conftest.err >&5
 11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11696   (exit $ac_status); } && {
 11697 	 test -z "$ac_c_werror_flag" ||
 11698 	 test ! -s conftest.err
 11699        } && test -s conftest.$ac_objext; then
 11700   ac_header_compiler=yes
 11701 else
 11702   echo "$as_me: failed program was:" >&5
 11703 sed 's/^/| /' conftest.$ac_ext >&5
 11705 	ac_header_compiler=no
 11706 fi
 11708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11710 echo "${ECHO_T}$ac_header_compiler" >&6; }
 11712 # Is the header present?
 11713 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
 11714 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
 11715 cat >conftest.$ac_ext <<_ACEOF
 11716 /* confdefs.h.  */
 11717 _ACEOF
 11718 cat confdefs.h >>conftest.$ac_ext
 11719 cat >>conftest.$ac_ext <<_ACEOF
 11720 /* end confdefs.h.  */
 11721 #include <GL/osmesa.h>
 11722 _ACEOF
 11723 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11724 case "(($ac_try" in
 11725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11726   *) ac_try_echo=$ac_try;;
 11727 esac
 11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11730   ac_status=$?
 11731   grep -v '^ *+' conftest.er1 >conftest.err
 11732   rm -f conftest.er1
 11733   cat conftest.err >&5
 11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11735   (exit $ac_status); } >/dev/null && {
 11736 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11737 	 test ! -s conftest.err
 11738        }; then
 11739   ac_header_preproc=yes
 11740 else
 11741   echo "$as_me: failed program was:" >&5
 11742 sed 's/^/| /' conftest.$ac_ext >&5
 11744   ac_header_preproc=no
 11745 fi
 11747 rm -f conftest.err conftest.$ac_ext
 11748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11749 echo "${ECHO_T}$ac_header_preproc" >&6; }
 11751 # So?  What about this header?
 11752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11753   yes:no: )
 11754     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11755 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11756     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
 11757 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
 11758     ac_header_preproc=yes
 11759     ;;
 11760   no:yes:* )
 11761     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
 11762 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
 11763     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
 11764 echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
 11765     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
 11766 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
 11767     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
 11768 echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11769     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
 11770 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
 11771     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
 11772 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
 11774     ;;
 11775 esac
 11776 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
 11777 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
 11778 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11779   echo $ECHO_N "(cached) $ECHO_C" >&6
 11780 else
 11781   ac_cv_header_GL_osmesa_h=$ac_header_preproc
 11782 fi
 11783 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
 11784 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
 11786 fi
 11787 if test $ac_cv_header_GL_osmesa_h = yes; then
 11789 else
 11790   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
 11791 See \`config.log' for more details." >&5
 11792 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
 11793 See \`config.log' for more details." >&2;}
 11794    { (exit 1); exit 1; }; }
 11795 fi
 11798   HAVE_OSMESA='yes'
 11799   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
 11801 cat >>confdefs.h <<\_ACEOF
 11802 #define HAVE_OSMESA 1
 11803 _ACEOF
 11805 else
 11808    if test "x$APPLE_BUILD" != 'xyes'; then
 11810 pkg_failed=no
 11811 { echo "$as_me:$LINENO: checking for LIBGL" >&5
 11812 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
 11814 if test -n "$LIBGL_CFLAGS"; then
 11815     pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
 11816  elif test -n "$PKG_CONFIG"; then
 11817     if test -n "$PKG_CONFIG" && \
 11818     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl\"") >&5
 11819   ($PKG_CONFIG --exists --print-errors "gl") 2>&5
 11820   ac_status=$?
 11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11822   (exit $ac_status); }; then
 11823   pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
 11824 else
 11825   pkg_failed=yes
 11826 fi
 11827  else
 11828     pkg_failed=untried
 11829 fi
 11830 if test -n "$LIBGL_LIBS"; then
 11831     pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
 11832  elif test -n "$PKG_CONFIG"; then
 11833     if test -n "$PKG_CONFIG" && \
 11834     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl\"") >&5
 11835   ($PKG_CONFIG --exists --print-errors "gl") 2>&5
 11836   ac_status=$?
 11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11838   (exit $ac_status); }; then
 11839   pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
 11840 else
 11841   pkg_failed=yes
 11842 fi
 11843  else
 11844     pkg_failed=untried
 11845 fi
 11849 if test $pkg_failed = yes; then
 11851 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11852         _pkg_short_errors_supported=yes
 11853 else
 11854         _pkg_short_errors_supported=no
 11855 fi
 11856         if test $_pkg_short_errors_supported = yes; then
 11857 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl" 2>&1`
 11858         else
 11859 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl" 2>&1`
 11860         fi
 11861 	# Put the nasty error message in config.log where it belongs
 11862 	echo "$LIBGL_PKG_ERRORS" >&5
 11864 	{ echo "$as_me:$LINENO: result: no" >&5
 11865 echo "${ECHO_T}no" >&6; }
 11867                   { echo "$as_me:$LINENO: checking for glEnable in -lGLESv2" >&5
 11868 echo $ECHO_N "checking for glEnable in -lGLESv2... $ECHO_C" >&6; }
 11869 if test "${ac_cv_lib_GLESv2_glEnable+set}" = set; then
 11870   echo $ECHO_N "(cached) $ECHO_C" >&6
 11871 else
 11872   ac_check_lib_save_LIBS=$LIBS
 11873 LIBS="-lGLESv2  $LIBS"
 11874 cat >conftest.$ac_ext <<_ACEOF
 11875 /* confdefs.h.  */
 11876 _ACEOF
 11877 cat confdefs.h >>conftest.$ac_ext
 11878 cat >>conftest.$ac_ext <<_ACEOF
 11879 /* end confdefs.h.  */
 11881 /* Override any GCC internal prototype to avoid an error.
 11882    Use char because int might match the return type of a GCC
 11883    builtin and then its argument prototype would still apply.  */
 11884 #ifdef __cplusplus
 11885 extern "C"
 11886 #endif
 11887 char glEnable ();
 11888 int
 11889 main ()
 11891 return glEnable ();
 11893   return 0;
 11895 _ACEOF
 11896 rm -f conftest.$ac_objext conftest$ac_exeext
 11897 if { (ac_try="$ac_link"
 11898 case "(($ac_try" in
 11899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11900   *) ac_try_echo=$ac_try;;
 11901 esac
 11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11903   (eval "$ac_link") 2>conftest.er1
 11904   ac_status=$?
 11905   grep -v '^ *+' conftest.er1 >conftest.err
 11906   rm -f conftest.er1
 11907   cat conftest.err >&5
 11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11909   (exit $ac_status); } && {
 11910 	 test -z "$ac_c_werror_flag" ||
 11911 	 test ! -s conftest.err
 11912        } && test -s conftest$ac_exeext &&
 11913        $as_test_x conftest$ac_exeext; then
 11914   ac_cv_lib_GLESv2_glEnable=yes
 11915 else
 11916   echo "$as_me: failed program was:" >&5
 11917 sed 's/^/| /' conftest.$ac_ext >&5
 11919 	ac_cv_lib_GLESv2_glEnable=no
 11920 fi
 11922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11923       conftest$ac_exeext conftest.$ac_ext
 11924 LIBS=$ac_check_lib_save_LIBS
 11925 fi
 11926 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLESv2_glEnable" >&5
 11927 echo "${ECHO_T}$ac_cv_lib_GLESv2_glEnable" >&6; }
 11928 if test $ac_cv_lib_GLESv2_glEnable = yes; then
 11929   LIBS="-lGLESv2 $LIBS"; HAVE_GLES2='yes'
 11930 else
 11931    { { echo "$as_me:$LINENO: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
 11932 See \`config.log' for more details." >&5
 11933 echo "$as_me: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
 11934 See \`config.log' for more details." >&2;}
 11935    { (exit 1); exit 1; }; }
 11936 fi
 11939 elif test $pkg_failed = untried; then
 11941                   { echo "$as_me:$LINENO: checking for glEnable in -lGLESv2" >&5
 11942 echo $ECHO_N "checking for glEnable in -lGLESv2... $ECHO_C" >&6; }
 11943 if test "${ac_cv_lib_GLESv2_glEnable+set}" = set; then
 11944   echo $ECHO_N "(cached) $ECHO_C" >&6
 11945 else
 11946   ac_check_lib_save_LIBS=$LIBS
 11947 LIBS="-lGLESv2  $LIBS"
 11948 cat >conftest.$ac_ext <<_ACEOF
 11949 /* confdefs.h.  */
 11950 _ACEOF
 11951 cat confdefs.h >>conftest.$ac_ext
 11952 cat >>conftest.$ac_ext <<_ACEOF
 11953 /* end confdefs.h.  */
 11955 /* Override any GCC internal prototype to avoid an error.
 11956    Use char because int might match the return type of a GCC
 11957    builtin and then its argument prototype would still apply.  */
 11958 #ifdef __cplusplus
 11959 extern "C"
 11960 #endif
 11961 char glEnable ();
 11962 int
 11963 main ()
 11965 return glEnable ();
 11967   return 0;
 11969 _ACEOF
 11970 rm -f conftest.$ac_objext conftest$ac_exeext
 11971 if { (ac_try="$ac_link"
 11972 case "(($ac_try" in
 11973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11974   *) ac_try_echo=$ac_try;;
 11975 esac
 11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11977   (eval "$ac_link") 2>conftest.er1
 11978   ac_status=$?
 11979   grep -v '^ *+' conftest.er1 >conftest.err
 11980   rm -f conftest.er1
 11981   cat conftest.err >&5
 11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11983   (exit $ac_status); } && {
 11984 	 test -z "$ac_c_werror_flag" ||
 11985 	 test ! -s conftest.err
 11986        } && test -s conftest$ac_exeext &&
 11987        $as_test_x conftest$ac_exeext; then
 11988   ac_cv_lib_GLESv2_glEnable=yes
 11989 else
 11990   echo "$as_me: failed program was:" >&5
 11991 sed 's/^/| /' conftest.$ac_ext >&5
 11993 	ac_cv_lib_GLESv2_glEnable=no
 11994 fi
 11996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11997       conftest$ac_exeext conftest.$ac_ext
 11998 LIBS=$ac_check_lib_save_LIBS
 11999 fi
 12000 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLESv2_glEnable" >&5
 12001 echo "${ECHO_T}$ac_cv_lib_GLESv2_glEnable" >&6; }
 12002 if test $ac_cv_lib_GLESv2_glEnable = yes; then
 12003   LIBS="-lGLESv2 $LIBS"; HAVE_GLES2='yes'
 12004 else
 12005    { { echo "$as_me:$LINENO: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
 12006 See \`config.log' for more details." >&5
 12007 echo "$as_me: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
 12008 See \`config.log' for more details." >&2;}
 12009    { (exit 1); exit 1; }; }
 12010 fi
 12013 else
 12014 	LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
 12015 	LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
 12016         { echo "$as_me:$LINENO: result: yes" >&5
 12017 echo "${ECHO_T}yes" >&6; }
 12019           LIBS="$LIBS $LIBGL_LIBS";
 12020           CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
 12022 fi
 12024    else
 12025       { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
 12026 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
 12027 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
 12028   echo $ECHO_N "(cached) $ECHO_C" >&6
 12029 else
 12030   cat >conftest.$ac_ext <<_ACEOF
 12031 /* confdefs.h.  */
 12032 _ACEOF
 12033 cat confdefs.h >>conftest.$ac_ext
 12034 cat >>conftest.$ac_ext <<_ACEOF
 12035 /* end confdefs.h.  */
 12036 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
 12037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12038 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
 12040 /* System header to define __stub macros and hopefully few prototypes,
 12041     which can conflict with char NSOpenGLGetVersion (); below.
 12042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12043     <limits.h> exists even on freestanding compilers.  */
 12045 #ifdef __STDC__
 12046 # include <limits.h>
 12047 #else
 12048 # include <assert.h>
 12049 #endif
 12051 #undef NSOpenGLGetVersion
 12053 /* Override any GCC internal prototype to avoid an error.
 12054    Use char because int might match the return type of a GCC
 12055    builtin and then its argument prototype would still apply.  */
 12056 #ifdef __cplusplus
 12057 extern "C"
 12058 #endif
 12059 char NSOpenGLGetVersion ();
 12060 /* The GNU C library defines this for functions which it implements
 12061     to always fail with ENOSYS.  Some functions are actually named
 12062     something starting with __ and the normal name is an alias.  */
 12063 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
 12064 choke me
 12065 #endif
 12067 int
 12068 main ()
 12070 return NSOpenGLGetVersion ();
 12072   return 0;
 12074 _ACEOF
 12075 rm -f conftest.$ac_objext conftest$ac_exeext
 12076 if { (ac_try="$ac_link"
 12077 case "(($ac_try" in
 12078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12079   *) ac_try_echo=$ac_try;;
 12080 esac
 12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12082   (eval "$ac_link") 2>conftest.er1
 12083   ac_status=$?
 12084   grep -v '^ *+' conftest.er1 >conftest.err
 12085   rm -f conftest.er1
 12086   cat conftest.err >&5
 12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12088   (exit $ac_status); } && {
 12089 	 test -z "$ac_c_werror_flag" ||
 12090 	 test ! -s conftest.err
 12091        } && test -s conftest$ac_exeext &&
 12092        $as_test_x conftest$ac_exeext; then
 12093   ac_cv_func_NSOpenGLGetVersion=yes
 12094 else
 12095   echo "$as_me: failed program was:" >&5
 12096 sed 's/^/| /' conftest.$ac_ext >&5
 12098 	ac_cv_func_NSOpenGLGetVersion=no
 12099 fi
 12101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12102       conftest$ac_exeext conftest.$ac_ext
 12103 fi
 12104 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
 12105 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
 12106 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
 12108          HAVE_NSGL='yes'
 12109          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
 12111 cat >>confdefs.h <<\_ACEOF
 12112 #define HAVE_NSGL 1
 12113 _ACEOF
 12115 fi
 12117       if test "x$HAVE_GTK_X11" = "xyes"; then
 12118          LIBS="$LIBS -L/usr/X11/lib -lGL"
 12119       fi
 12120    fi
 12122   { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
 12123 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
 12124 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
 12125   echo $ECHO_N "(cached) $ECHO_C" >&6
 12126 else
 12127   cat >conftest.$ac_ext <<_ACEOF
 12128 /* confdefs.h.  */
 12129 _ACEOF
 12130 cat confdefs.h >>conftest.$ac_ext
 12131 cat >>conftest.$ac_ext <<_ACEOF
 12132 /* end confdefs.h.  */
 12133 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
 12134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12135 #define glXQueryVersion innocuous_glXQueryVersion
 12137 /* System header to define __stub macros and hopefully few prototypes,
 12138     which can conflict with char glXQueryVersion (); below.
 12139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12140     <limits.h> exists even on freestanding compilers.  */
 12142 #ifdef __STDC__
 12143 # include <limits.h>
 12144 #else
 12145 # include <assert.h>
 12146 #endif
 12148 #undef glXQueryVersion
 12150 /* Override any GCC internal prototype to avoid an error.
 12151    Use char because int might match the return type of a GCC
 12152    builtin and then its argument prototype would still apply.  */
 12153 #ifdef __cplusplus
 12154 extern "C"
 12155 #endif
 12156 char glXQueryVersion ();
 12157 /* The GNU C library defines this for functions which it implements
 12158     to always fail with ENOSYS.  Some functions are actually named
 12159     something starting with __ and the normal name is an alias.  */
 12160 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
 12161 choke me
 12162 #endif
 12164 int
 12165 main ()
 12167 return glXQueryVersion ();
 12169   return 0;
 12171 _ACEOF
 12172 rm -f conftest.$ac_objext conftest$ac_exeext
 12173 if { (ac_try="$ac_link"
 12174 case "(($ac_try" in
 12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12176   *) ac_try_echo=$ac_try;;
 12177 esac
 12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12179   (eval "$ac_link") 2>conftest.er1
 12180   ac_status=$?
 12181   grep -v '^ *+' conftest.er1 >conftest.err
 12182   rm -f conftest.er1
 12183   cat conftest.err >&5
 12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12185   (exit $ac_status); } && {
 12186 	 test -z "$ac_c_werror_flag" ||
 12187 	 test ! -s conftest.err
 12188        } && test -s conftest$ac_exeext &&
 12189        $as_test_x conftest$ac_exeext; then
 12190   ac_cv_func_glXQueryVersion=yes
 12191 else
 12192   echo "$as_me: failed program was:" >&5
 12193 sed 's/^/| /' conftest.$ac_ext >&5
 12195 	ac_cv_func_glXQueryVersion=no
 12196 fi
 12198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12199       conftest$ac_exeext conftest.$ac_ext
 12200 fi
 12201 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
 12202 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
 12203 if test $ac_cv_func_glXQueryVersion = yes; then
 12205      HAVE_GLX='yes'
 12206      VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
 12208 cat >>confdefs.h <<\_ACEOF
 12209 #define HAVE_GLX 1
 12210 _ACEOF
 12212 fi
 12214   { echo "$as_me:$LINENO: checking for eglGetDisplay in -lEGL" >&5
 12215 echo $ECHO_N "checking for eglGetDisplay in -lEGL... $ECHO_C" >&6; }
 12216 if test "${ac_cv_lib_EGL_eglGetDisplay+set}" = set; then
 12217   echo $ECHO_N "(cached) $ECHO_C" >&6
 12218 else
 12219   ac_check_lib_save_LIBS=$LIBS
 12220 LIBS="-lEGL  $LIBS"
 12221 cat >conftest.$ac_ext <<_ACEOF
 12222 /* confdefs.h.  */
 12223 _ACEOF
 12224 cat confdefs.h >>conftest.$ac_ext
 12225 cat >>conftest.$ac_ext <<_ACEOF
 12226 /* end confdefs.h.  */
 12228 /* Override any GCC internal prototype to avoid an error.
 12229    Use char because int might match the return type of a GCC
 12230    builtin and then its argument prototype would still apply.  */
 12231 #ifdef __cplusplus
 12232 extern "C"
 12233 #endif
 12234 char eglGetDisplay ();
 12235 int
 12236 main ()
 12238 return eglGetDisplay ();
 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_lib_EGL_eglGetDisplay=yes
 12262 else
 12263   echo "$as_me: failed program was:" >&5
 12264 sed 's/^/| /' conftest.$ac_ext >&5
 12266 	ac_cv_lib_EGL_eglGetDisplay=no
 12267 fi
 12269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12270       conftest$ac_exeext conftest.$ac_ext
 12271 LIBS=$ac_check_lib_save_LIBS
 12272 fi
 12273 { echo "$as_me:$LINENO: result: $ac_cv_lib_EGL_eglGetDisplay" >&5
 12274 echo "${ECHO_T}$ac_cv_lib_EGL_eglGetDisplay" >&6; }
 12275 if test $ac_cv_lib_EGL_eglGetDisplay = yes; then
 12277      LIBS="-lEGL $LIBS"
 12278      HAVE_EGL='yes'
 12279      VIDEO_DRIVERS="$VIDEO_DRIVERS egl"
 12280 fi
 12283 fi
 12286 if test "x$HAVE_GLES2" = "xyes"; then
 12288 cat >>confdefs.h <<\_ACEOF
 12289 #define HAVE_GLES2 1
 12290 _ACEOF
 12292 fi
 12296 if test "x$HAVE_OSMESA" = "xyes"; then
 12297   VIDEO_OSMESA_TRUE=
 12298   VIDEO_OSMESA_FALSE='#'
 12299 else
 12300   VIDEO_OSMESA_TRUE='#'
 12301   VIDEO_OSMESA_FALSE=
 12302 fi
 12306 if test "x$HAVE_GLX" = "xyes"; then
 12307   VIDEO_GLX_TRUE=
 12308   VIDEO_GLX_FALSE='#'
 12309 else
 12310   VIDEO_GLX_TRUE='#'
 12311   VIDEO_GLX_FALSE=
 12312 fi
 12316 if test "x$HAVE_NSGL" = "xyes"; then
 12317   VIDEO_NSGL_TRUE=
 12318   VIDEO_NSGL_FALSE='#'
 12319 else
 12320   VIDEO_NSGL_TRUE='#'
 12321   VIDEO_NSGL_FALSE=
 12322 fi
 12326 if test "x$HAVE_EGL" = "xyes"; then
 12327   VIDEO_EGL_TRUE=
 12328   VIDEO_EGL_FALSE='#'
 12329 else
 12330   VIDEO_EGL_TRUE='#'
 12331   VIDEO_EGL_FALSE=
 12332 fi
 12335 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
 12336 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
 12337 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
 12338   echo $ECHO_N "(cached) $ECHO_C" >&6
 12339 else
 12340   cat >conftest.$ac_ext <<_ACEOF
 12341 /* confdefs.h.  */
 12342 _ACEOF
 12343 cat confdefs.h >>conftest.$ac_ext
 12344 cat >>conftest.$ac_ext <<_ACEOF
 12345 /* end confdefs.h.  */
 12346 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
 12347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12348 #define glGenFramebuffers innocuous_glGenFramebuffers
 12350 /* System header to define __stub macros and hopefully few prototypes,
 12351     which can conflict with char glGenFramebuffers (); below.
 12352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12353     <limits.h> exists even on freestanding compilers.  */
 12355 #ifdef __STDC__
 12356 # include <limits.h>
 12357 #else
 12358 # include <assert.h>
 12359 #endif
 12361 #undef glGenFramebuffers
 12363 /* Override any GCC internal prototype to avoid an error.
 12364    Use char because int might match the return type of a GCC
 12365    builtin and then its argument prototype would still apply.  */
 12366 #ifdef __cplusplus
 12367 extern "C"
 12368 #endif
 12369 char glGenFramebuffers ();
 12370 /* The GNU C library defines this for functions which it implements
 12371     to always fail with ENOSYS.  Some functions are actually named
 12372     something starting with __ and the normal name is an alias.  */
 12373 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
 12374 choke me
 12375 #endif
 12377 int
 12378 main ()
 12380 return glGenFramebuffers ();
 12382   return 0;
 12384 _ACEOF
 12385 rm -f conftest.$ac_objext conftest$ac_exeext
 12386 if { (ac_try="$ac_link"
 12387 case "(($ac_try" in
 12388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12389   *) ac_try_echo=$ac_try;;
 12390 esac
 12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12392   (eval "$ac_link") 2>conftest.er1
 12393   ac_status=$?
 12394   grep -v '^ *+' conftest.er1 >conftest.err
 12395   rm -f conftest.er1
 12396   cat conftest.err >&5
 12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12398   (exit $ac_status); } && {
 12399 	 test -z "$ac_c_werror_flag" ||
 12400 	 test ! -s conftest.err
 12401        } && test -s conftest$ac_exeext &&
 12402        $as_test_x conftest$ac_exeext; then
 12403   ac_cv_func_glGenFramebuffers=yes
 12404 else
 12405   echo "$as_me: failed program was:" >&5
 12406 sed 's/^/| /' conftest.$ac_ext >&5
 12408 	ac_cv_func_glGenFramebuffers=no
 12409 fi
 12411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12412       conftest$ac_exeext conftest.$ac_ext
 12413 fi
 12414 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
 12415 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
 12416 if test $ac_cv_func_glGenFramebuffers = yes; then
 12418 cat >>confdefs.h <<\_ACEOF
 12419 #define HAVE_OPENGL_FBO 1
 12420 _ACEOF
 12422 fi
 12424 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
 12425 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
 12426 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
 12427   echo $ECHO_N "(cached) $ECHO_C" >&6
 12428 else
 12429   cat >conftest.$ac_ext <<_ACEOF
 12430 /* confdefs.h.  */
 12431 _ACEOF
 12432 cat confdefs.h >>conftest.$ac_ext
 12433 cat >>conftest.$ac_ext <<_ACEOF
 12434 /* end confdefs.h.  */
 12435 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
 12436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12437 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
 12439 /* System header to define __stub macros and hopefully few prototypes,
 12440     which can conflict with char glGenFramebuffersEXT (); below.
 12441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12442     <limits.h> exists even on freestanding compilers.  */
 12444 #ifdef __STDC__
 12445 # include <limits.h>
 12446 #else
 12447 # include <assert.h>
 12448 #endif
 12450 #undef glGenFramebuffersEXT
 12452 /* Override any GCC internal prototype to avoid an error.
 12453    Use char because int might match the return type of a GCC
 12454    builtin and then its argument prototype would still apply.  */
 12455 #ifdef __cplusplus
 12456 extern "C"
 12457 #endif
 12458 char glGenFramebuffersEXT ();
 12459 /* The GNU C library defines this for functions which it implements
 12460     to always fail with ENOSYS.  Some functions are actually named
 12461     something starting with __ and the normal name is an alias.  */
 12462 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
 12463 choke me
 12464 #endif
 12466 int
 12467 main ()
 12469 return glGenFramebuffersEXT ();
 12471   return 0;
 12473 _ACEOF
 12474 rm -f conftest.$ac_objext conftest$ac_exeext
 12475 if { (ac_try="$ac_link"
 12476 case "(($ac_try" in
 12477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12478   *) ac_try_echo=$ac_try;;
 12479 esac
 12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12481   (eval "$ac_link") 2>conftest.er1
 12482   ac_status=$?
 12483   grep -v '^ *+' conftest.er1 >conftest.err
 12484   rm -f conftest.er1
 12485   cat conftest.err >&5
 12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12487   (exit $ac_status); } && {
 12488 	 test -z "$ac_c_werror_flag" ||
 12489 	 test ! -s conftest.err
 12490        } && test -s conftest$ac_exeext &&
 12491        $as_test_x conftest$ac_exeext; then
 12492   ac_cv_func_glGenFramebuffersEXT=yes
 12493 else
 12494   echo "$as_me: failed program was:" >&5
 12495 sed 's/^/| /' conftest.$ac_ext >&5
 12497 	ac_cv_func_glGenFramebuffersEXT=no
 12498 fi
 12500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12501       conftest$ac_exeext conftest.$ac_ext
 12502 fi
 12503 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
 12504 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
 12505 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
 12507 cat >>confdefs.h <<\_ACEOF
 12508 #define HAVE_OPENGL_FBO_EXT 1
 12509 _ACEOF
 12511 fi
 12513 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
 12514 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
 12515 if test "${ac_cv_func_glCreateShader+set}" = set; then
 12516   echo $ECHO_N "(cached) $ECHO_C" >&6
 12517 else
 12518   cat >conftest.$ac_ext <<_ACEOF
 12519 /* confdefs.h.  */
 12520 _ACEOF
 12521 cat confdefs.h >>conftest.$ac_ext
 12522 cat >>conftest.$ac_ext <<_ACEOF
 12523 /* end confdefs.h.  */
 12524 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
 12525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12526 #define glCreateShader innocuous_glCreateShader
 12528 /* System header to define __stub macros and hopefully few prototypes,
 12529     which can conflict with char glCreateShader (); below.
 12530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12531     <limits.h> exists even on freestanding compilers.  */
 12533 #ifdef __STDC__
 12534 # include <limits.h>
 12535 #else
 12536 # include <assert.h>
 12537 #endif
 12539 #undef glCreateShader
 12541 /* Override any GCC internal prototype to avoid an error.
 12542    Use char because int might match the return type of a GCC
 12543    builtin and then its argument prototype would still apply.  */
 12544 #ifdef __cplusplus
 12545 extern "C"
 12546 #endif
 12547 char glCreateShader ();
 12548 /* The GNU C library defines this for functions which it implements
 12549     to always fail with ENOSYS.  Some functions are actually named
 12550     something starting with __ and the normal name is an alias.  */
 12551 #if defined __stub_glCreateShader || defined __stub___glCreateShader
 12552 choke me
 12553 #endif
 12555 int
 12556 main ()
 12558 return glCreateShader ();
 12560   return 0;
 12562 _ACEOF
 12563 rm -f conftest.$ac_objext conftest$ac_exeext
 12564 if { (ac_try="$ac_link"
 12565 case "(($ac_try" in
 12566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12567   *) ac_try_echo=$ac_try;;
 12568 esac
 12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12570   (eval "$ac_link") 2>conftest.er1
 12571   ac_status=$?
 12572   grep -v '^ *+' conftest.er1 >conftest.err
 12573   rm -f conftest.er1
 12574   cat conftest.err >&5
 12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12576   (exit $ac_status); } && {
 12577 	 test -z "$ac_c_werror_flag" ||
 12578 	 test ! -s conftest.err
 12579        } && test -s conftest$ac_exeext &&
 12580        $as_test_x conftest$ac_exeext; then
 12581   ac_cv_func_glCreateShader=yes
 12582 else
 12583   echo "$as_me: failed program was:" >&5
 12584 sed 's/^/| /' conftest.$ac_ext >&5
 12586 	ac_cv_func_glCreateShader=no
 12587 fi
 12589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12590       conftest$ac_exeext conftest.$ac_ext
 12591 fi
 12592 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
 12593 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
 12594 if test $ac_cv_func_glCreateShader = yes; then
 12596 cat >>confdefs.h <<\_ACEOF
 12597 #define HAVE_OPENGL_SHADER 1
 12598 _ACEOF
 12600 fi
 12602 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
 12603 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
 12604 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
 12605   echo $ECHO_N "(cached) $ECHO_C" >&6
 12606 else
 12607   cat >conftest.$ac_ext <<_ACEOF
 12608 /* confdefs.h.  */
 12609 _ACEOF
 12610 cat confdefs.h >>conftest.$ac_ext
 12611 cat >>conftest.$ac_ext <<_ACEOF
 12612 /* end confdefs.h.  */
 12613 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
 12614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12615 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
 12617 /* System header to define __stub macros and hopefully few prototypes,
 12618     which can conflict with char glCreateShaderObjectARB (); below.
 12619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12620     <limits.h> exists even on freestanding compilers.  */
 12622 #ifdef __STDC__
 12623 # include <limits.h>
 12624 #else
 12625 # include <assert.h>
 12626 #endif
 12628 #undef glCreateShaderObjectARB
 12630 /* Override any GCC internal prototype to avoid an error.
 12631    Use char because int might match the return type of a GCC
 12632    builtin and then its argument prototype would still apply.  */
 12633 #ifdef __cplusplus
 12634 extern "C"
 12635 #endif
 12636 char glCreateShaderObjectARB ();
 12637 /* The GNU C library defines this for functions which it implements
 12638     to always fail with ENOSYS.  Some functions are actually named
 12639     something starting with __ and the normal name is an alias.  */
 12640 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
 12641 choke me
 12642 #endif
 12644 int
 12645 main ()
 12647 return glCreateShaderObjectARB ();
 12649   return 0;
 12651 _ACEOF
 12652 rm -f conftest.$ac_objext conftest$ac_exeext
 12653 if { (ac_try="$ac_link"
 12654 case "(($ac_try" in
 12655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12656   *) ac_try_echo=$ac_try;;
 12657 esac
 12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12659   (eval "$ac_link") 2>conftest.er1
 12660   ac_status=$?
 12661   grep -v '^ *+' conftest.er1 >conftest.err
 12662   rm -f conftest.er1
 12663   cat conftest.err >&5
 12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12665   (exit $ac_status); } && {
 12666 	 test -z "$ac_c_werror_flag" ||
 12667 	 test ! -s conftest.err
 12668        } && test -s conftest$ac_exeext &&
 12669        $as_test_x conftest$ac_exeext; then
 12670   ac_cv_func_glCreateShaderObjectARB=yes
 12671 else
 12672   echo "$as_me: failed program was:" >&5
 12673 sed 's/^/| /' conftest.$ac_ext >&5
 12675 	ac_cv_func_glCreateShaderObjectARB=no
 12676 fi
 12678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12679       conftest$ac_exeext conftest.$ac_ext
 12680 fi
 12681 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
 12682 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
 12683 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
 12685 cat >>confdefs.h <<\_ACEOF
 12686 #define HAVE_OPENGL_SHADER_ARB 1
 12687 _ACEOF
 12689 fi
 12691 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
 12692 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
 12693 if test "${ac_cv_func_glClampColorARB+set}" = set; then
 12694   echo $ECHO_N "(cached) $ECHO_C" >&6
 12695 else
 12696   cat >conftest.$ac_ext <<_ACEOF
 12697 /* confdefs.h.  */
 12698 _ACEOF
 12699 cat confdefs.h >>conftest.$ac_ext
 12700 cat >>conftest.$ac_ext <<_ACEOF
 12701 /* end confdefs.h.  */
 12702 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
 12703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12704 #define glClampColorARB innocuous_glClampColorARB
 12706 /* System header to define __stub macros and hopefully few prototypes,
 12707     which can conflict with char glClampColorARB (); below.
 12708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12709     <limits.h> exists even on freestanding compilers.  */
 12711 #ifdef __STDC__
 12712 # include <limits.h>
 12713 #else
 12714 # include <assert.h>
 12715 #endif
 12717 #undef glClampColorARB
 12719 /* Override any GCC internal prototype to avoid an error.
 12720    Use char because int might match the return type of a GCC
 12721    builtin and then its argument prototype would still apply.  */
 12722 #ifdef __cplusplus
 12723 extern "C"
 12724 #endif
 12725 char glClampColorARB ();
 12726 /* The GNU C library defines this for functions which it implements
 12727     to always fail with ENOSYS.  Some functions are actually named
 12728     something starting with __ and the normal name is an alias.  */
 12729 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
 12730 choke me
 12731 #endif
 12733 int
 12734 main ()
 12736 return glClampColorARB ();
 12738   return 0;
 12740 _ACEOF
 12741 rm -f conftest.$ac_objext conftest$ac_exeext
 12742 if { (ac_try="$ac_link"
 12743 case "(($ac_try" in
 12744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12745   *) ac_try_echo=$ac_try;;
 12746 esac
 12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12748   (eval "$ac_link") 2>conftest.er1
 12749   ac_status=$?
 12750   grep -v '^ *+' conftest.er1 >conftest.err
 12751   rm -f conftest.er1
 12752   cat conftest.err >&5
 12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12754   (exit $ac_status); } && {
 12755 	 test -z "$ac_c_werror_flag" ||
 12756 	 test ! -s conftest.err
 12757        } && test -s conftest$ac_exeext &&
 12758        $as_test_x conftest$ac_exeext; then
 12759   ac_cv_func_glClampColorARB=yes
 12760 else
 12761   echo "$as_me: failed program was:" >&5
 12762 sed 's/^/| /' conftest.$ac_ext >&5
 12764 	ac_cv_func_glClampColorARB=no
 12765 fi
 12767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12768       conftest$ac_exeext conftest.$ac_ext
 12769 fi
 12770 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
 12771 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
 12772 if test $ac_cv_func_glClampColorARB = yes; then
 12774 cat >>confdefs.h <<\_ACEOF
 12775 #define HAVE_OPENGL_CLAMP_COLOR 1
 12776 _ACEOF
 12778 fi
 12780 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
 12781 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
 12782 if test "${ac_cv_func_glClearDepthf+set}" = set; then
 12783   echo $ECHO_N "(cached) $ECHO_C" >&6
 12784 else
 12785   cat >conftest.$ac_ext <<_ACEOF
 12786 /* confdefs.h.  */
 12787 _ACEOF
 12788 cat confdefs.h >>conftest.$ac_ext
 12789 cat >>conftest.$ac_ext <<_ACEOF
 12790 /* end confdefs.h.  */
 12791 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
 12792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12793 #define glClearDepthf innocuous_glClearDepthf
 12795 /* System header to define __stub macros and hopefully few prototypes,
 12796     which can conflict with char glClearDepthf (); below.
 12797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12798     <limits.h> exists even on freestanding compilers.  */
 12800 #ifdef __STDC__
 12801 # include <limits.h>
 12802 #else
 12803 # include <assert.h>
 12804 #endif
 12806 #undef glClearDepthf
 12808 /* Override any GCC internal prototype to avoid an error.
 12809    Use char because int might match the return type of a GCC
 12810    builtin and then its argument prototype would still apply.  */
 12811 #ifdef __cplusplus
 12812 extern "C"
 12813 #endif
 12814 char glClearDepthf ();
 12815 /* The GNU C library defines this for functions which it implements
 12816     to always fail with ENOSYS.  Some functions are actually named
 12817     something starting with __ and the normal name is an alias.  */
 12818 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
 12819 choke me
 12820 #endif
 12822 int
 12823 main ()
 12825 return glClearDepthf ();
 12827   return 0;
 12829 _ACEOF
 12830 rm -f conftest.$ac_objext conftest$ac_exeext
 12831 if { (ac_try="$ac_link"
 12832 case "(($ac_try" in
 12833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12834   *) ac_try_echo=$ac_try;;
 12835 esac
 12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12837   (eval "$ac_link") 2>conftest.er1
 12838   ac_status=$?
 12839   grep -v '^ *+' conftest.er1 >conftest.err
 12840   rm -f conftest.er1
 12841   cat conftest.err >&5
 12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12843   (exit $ac_status); } && {
 12844 	 test -z "$ac_c_werror_flag" ||
 12845 	 test ! -s conftest.err
 12846        } && test -s conftest$ac_exeext &&
 12847        $as_test_x conftest$ac_exeext; then
 12848   ac_cv_func_glClearDepthf=yes
 12849 else
 12850   echo "$as_me: failed program was:" >&5
 12851 sed 's/^/| /' conftest.$ac_ext >&5
 12853 	ac_cv_func_glClearDepthf=no
 12854 fi
 12856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12857       conftest$ac_exeext conftest.$ac_ext
 12858 fi
 12859 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
 12860 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
 12861 if test $ac_cv_func_glClearDepthf = yes; then
 12863 cat >>confdefs.h <<\_ACEOF
 12864 #define HAVE_OPENGL_CLEAR_DEPTHF 1
 12865 _ACEOF
 12867 fi
 12869 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
 12870 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
 12871 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
 12872   echo $ECHO_N "(cached) $ECHO_C" >&6
 12873 else
 12874   cat >conftest.$ac_ext <<_ACEOF
 12875 /* confdefs.h.  */
 12876 _ACEOF
 12877 cat confdefs.h >>conftest.$ac_ext
 12878 cat >>conftest.$ac_ext <<_ACEOF
 12879 /* end confdefs.h.  */
 12880 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
 12881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12882 #define glAreTexturesResident innocuous_glAreTexturesResident
 12884 /* System header to define __stub macros and hopefully few prototypes,
 12885     which can conflict with char glAreTexturesResident (); below.
 12886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12887     <limits.h> exists even on freestanding compilers.  */
 12889 #ifdef __STDC__
 12890 # include <limits.h>
 12891 #else
 12892 # include <assert.h>
 12893 #endif
 12895 #undef glAreTexturesResident
 12897 /* Override any GCC internal prototype to avoid an error.
 12898    Use char because int might match the return type of a GCC
 12899    builtin and then its argument prototype would still apply.  */
 12900 #ifdef __cplusplus
 12901 extern "C"
 12902 #endif
 12903 char glAreTexturesResident ();
 12904 /* The GNU C library defines this for functions which it implements
 12905     to always fail with ENOSYS.  Some functions are actually named
 12906     something starting with __ and the normal name is an alias.  */
 12907 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
 12908 choke me
 12909 #endif
 12911 int
 12912 main ()
 12914 return glAreTexturesResident ();
 12916   return 0;
 12918 _ACEOF
 12919 rm -f conftest.$ac_objext conftest$ac_exeext
 12920 if { (ac_try="$ac_link"
 12921 case "(($ac_try" in
 12922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12923   *) ac_try_echo=$ac_try;;
 12924 esac
 12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12926   (eval "$ac_link") 2>conftest.er1
 12927   ac_status=$?
 12928   grep -v '^ *+' conftest.er1 >conftest.err
 12929   rm -f conftest.er1
 12930   cat conftest.err >&5
 12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12932   (exit $ac_status); } && {
 12933 	 test -z "$ac_c_werror_flag" ||
 12934 	 test ! -s conftest.err
 12935        } && test -s conftest$ac_exeext &&
 12936        $as_test_x conftest$ac_exeext; then
 12937   ac_cv_func_glAreTexturesResident=yes
 12938 else
 12939   echo "$as_me: failed program was:" >&5
 12940 sed 's/^/| /' conftest.$ac_ext >&5
 12942 	ac_cv_func_glAreTexturesResident=no
 12943 fi
 12945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12946       conftest$ac_exeext conftest.$ac_ext
 12947 fi
 12948 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
 12949 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
 12950 if test $ac_cv_func_glAreTexturesResident = yes; then
 12952 cat >>confdefs.h <<\_ACEOF
 12953 #define HAVE_OPENGL_TEX_RESIDENT 1
 12954 _ACEOF
 12956 fi
 12958 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
 12959 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
 12960 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
 12961   echo $ECHO_N "(cached) $ECHO_C" >&6
 12962 else
 12963   cat >conftest.$ac_ext <<_ACEOF
 12964 /* confdefs.h.  */
 12965 _ACEOF
 12966 cat confdefs.h >>conftest.$ac_ext
 12967 cat >>conftest.$ac_ext <<_ACEOF
 12968 /* end confdefs.h.  */
 12969 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
 12970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12971 #define glDrawBuffer innocuous_glDrawBuffer
 12973 /* System header to define __stub macros and hopefully few prototypes,
 12974     which can conflict with char glDrawBuffer (); below.
 12975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12976     <limits.h> exists even on freestanding compilers.  */
 12978 #ifdef __STDC__
 12979 # include <limits.h>
 12980 #else
 12981 # include <assert.h>
 12982 #endif
 12984 #undef glDrawBuffer
 12986 /* Override any GCC internal prototype to avoid an error.
 12987    Use char because int might match the return type of a GCC
 12988    builtin and then its argument prototype would still apply.  */
 12989 #ifdef __cplusplus
 12990 extern "C"
 12991 #endif
 12992 char glDrawBuffer ();
 12993 /* The GNU C library defines this for functions which it implements
 12994     to always fail with ENOSYS.  Some functions are actually named
 12995     something starting with __ and the normal name is an alias.  */
 12996 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
 12997 choke me
 12998 #endif
 13000 int
 13001 main ()
 13003 return glDrawBuffer ();
 13005   return 0;
 13007 _ACEOF
 13008 rm -f conftest.$ac_objext conftest$ac_exeext
 13009 if { (ac_try="$ac_link"
 13010 case "(($ac_try" in
 13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13012   *) ac_try_echo=$ac_try;;
 13013 esac
 13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13015   (eval "$ac_link") 2>conftest.er1
 13016   ac_status=$?
 13017   grep -v '^ *+' conftest.er1 >conftest.err
 13018   rm -f conftest.er1
 13019   cat conftest.err >&5
 13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13021   (exit $ac_status); } && {
 13022 	 test -z "$ac_c_werror_flag" ||
 13023 	 test ! -s conftest.err
 13024        } && test -s conftest$ac_exeext &&
 13025        $as_test_x conftest$ac_exeext; then
 13026   ac_cv_func_glDrawBuffer=yes
 13027 else
 13028   echo "$as_me: failed program was:" >&5
 13029 sed 's/^/| /' conftest.$ac_ext >&5
 13031 	ac_cv_func_glDrawBuffer=no
 13032 fi
 13034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13035       conftest$ac_exeext conftest.$ac_ext
 13036 fi
 13037 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
 13038 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
 13039 if test $ac_cv_func_glDrawBuffer = yes; then
 13041 cat >>confdefs.h <<\_ACEOF
 13042 #define HAVE_OPENGL_DRAW_BUFFER 1
 13043 _ACEOF
 13045 fi
 13047 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
 13048 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
 13049 if test "${ac_cv_func_glTexEnvi+set}" = set; then
 13050   echo $ECHO_N "(cached) $ECHO_C" >&6
 13051 else
 13052   cat >conftest.$ac_ext <<_ACEOF
 13053 /* confdefs.h.  */
 13054 _ACEOF
 13055 cat confdefs.h >>conftest.$ac_ext
 13056 cat >>conftest.$ac_ext <<_ACEOF
 13057 /* end confdefs.h.  */
 13058 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
 13059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 13060 #define glTexEnvi innocuous_glTexEnvi
 13062 /* System header to define __stub macros and hopefully few prototypes,
 13063     which can conflict with char glTexEnvi (); below.
 13064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 13065     <limits.h> exists even on freestanding compilers.  */
 13067 #ifdef __STDC__
 13068 # include <limits.h>
 13069 #else
 13070 # include <assert.h>
 13071 #endif
 13073 #undef glTexEnvi
 13075 /* Override any GCC internal prototype to avoid an error.
 13076    Use char because int might match the return type of a GCC
 13077    builtin and then its argument prototype would still apply.  */
 13078 #ifdef __cplusplus
 13079 extern "C"
 13080 #endif
 13081 char glTexEnvi ();
 13082 /* The GNU C library defines this for functions which it implements
 13083     to always fail with ENOSYS.  Some functions are actually named
 13084     something starting with __ and the normal name is an alias.  */
 13085 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
 13086 choke me
 13087 #endif
 13089 int
 13090 main ()
 13092 return glTexEnvi ();
 13094   return 0;
 13096 _ACEOF
 13097 rm -f conftest.$ac_objext conftest$ac_exeext
 13098 if { (ac_try="$ac_link"
 13099 case "(($ac_try" in
 13100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13101   *) ac_try_echo=$ac_try;;
 13102 esac
 13103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13104   (eval "$ac_link") 2>conftest.er1
 13105   ac_status=$?
 13106   grep -v '^ *+' conftest.er1 >conftest.err
 13107   rm -f conftest.er1
 13108   cat conftest.err >&5
 13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13110   (exit $ac_status); } && {
 13111 	 test -z "$ac_c_werror_flag" ||
 13112 	 test ! -s conftest.err
 13113        } && test -s conftest$ac_exeext &&
 13114        $as_test_x conftest$ac_exeext; then
 13115   ac_cv_func_glTexEnvi=yes
 13116 else
 13117   echo "$as_me: failed program was:" >&5
 13118 sed 's/^/| /' conftest.$ac_ext >&5
 13120 	ac_cv_func_glTexEnvi=no
 13121 fi
 13123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13124       conftest$ac_exeext conftest.$ac_ext
 13125 fi
 13126 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
 13127 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
 13128 if test $ac_cv_func_glTexEnvi = yes; then
 13130 cat >>confdefs.h <<\_ACEOF
 13131 #define HAVE_OPENGL_FIXEDFUNC 1
 13132 _ACEOF
 13134 fi
 13137 if test "x$enable_translator" != "xno"; then
 13138     case $host_cpu in
 13139         i386|i486|i586|i686|x86_64)
 13140 	    SH4_TRANSLATOR="x86"
 13142 cat >>confdefs.h <<_ACEOF
 13143 #define SH4_TRANSLATOR TARGET_X86
 13144 _ACEOF
 13145 ;;
 13146     esac
 13147 fi
 13150 if test "$SH4_TRANSLATOR" = "x86"; then
 13151   BUILD_SH4X86_TRUE=
 13152   BUILD_SH4X86_FALSE='#'
 13153 else
 13154   BUILD_SH4X86_TRUE='#'
 13155   BUILD_SH4X86_FALSE=
 13156 fi
 13159 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 13160   { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 13161 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 13162 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 13163   echo $ECHO_N "(cached) $ECHO_C" >&6
 13164 fi
 13165 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 13166 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 13167 else
 13168   # Is the header compilable?
 13169 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 13170 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
 13171 cat >conftest.$ac_ext <<_ACEOF
 13172 /* confdefs.h.  */
 13173 _ACEOF
 13174 cat confdefs.h >>conftest.$ac_ext
 13175 cat >>conftest.$ac_ext <<_ACEOF
 13176 /* end confdefs.h.  */
 13177 $ac_includes_default
 13178 #include <CoreAudio/CoreAudio.h>
 13179 _ACEOF
 13180 rm -f conftest.$ac_objext
 13181 if { (ac_try="$ac_compile"
 13182 case "(($ac_try" in
 13183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13184   *) ac_try_echo=$ac_try;;
 13185 esac
 13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13187   (eval "$ac_compile") 2>conftest.er1
 13188   ac_status=$?
 13189   grep -v '^ *+' conftest.er1 >conftest.err
 13190   rm -f conftest.er1
 13191   cat conftest.err >&5
 13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13193   (exit $ac_status); } && {
 13194 	 test -z "$ac_c_werror_flag" ||
 13195 	 test ! -s conftest.err
 13196        } && test -s conftest.$ac_objext; then
 13197   ac_header_compiler=yes
 13198 else
 13199   echo "$as_me: failed program was:" >&5
 13200 sed 's/^/| /' conftest.$ac_ext >&5
 13202 	ac_header_compiler=no
 13203 fi
 13205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13207 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13209 # Is the header present?
 13210 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 13211 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
 13212 cat >conftest.$ac_ext <<_ACEOF
 13213 /* confdefs.h.  */
 13214 _ACEOF
 13215 cat confdefs.h >>conftest.$ac_ext
 13216 cat >>conftest.$ac_ext <<_ACEOF
 13217 /* end confdefs.h.  */
 13218 #include <CoreAudio/CoreAudio.h>
 13219 _ACEOF
 13220 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13221 case "(($ac_try" in
 13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13223   *) ac_try_echo=$ac_try;;
 13224 esac
 13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13227   ac_status=$?
 13228   grep -v '^ *+' conftest.er1 >conftest.err
 13229   rm -f conftest.er1
 13230   cat conftest.err >&5
 13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13232   (exit $ac_status); } >/dev/null && {
 13233 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13234 	 test ! -s conftest.err
 13235        }; then
 13236   ac_header_preproc=yes
 13237 else
 13238   echo "$as_me: failed program was:" >&5
 13239 sed 's/^/| /' conftest.$ac_ext >&5
 13241   ac_header_preproc=no
 13242 fi
 13244 rm -f conftest.err conftest.$ac_ext
 13245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13246 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13248 # So?  What about this header?
 13249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13250   yes:no: )
 13251     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13252 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13253     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 13254 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 13255     ac_header_preproc=yes
 13256     ;;
 13257   no:yes:* )
 13258     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 13259 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 13260     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 13261 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 13262     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 13263 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 13264     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 13265 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13266     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 13267 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 13268     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 13269 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 13271     ;;
 13272 esac
 13273 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 13274 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 13275 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 13276   echo $ECHO_N "(cached) $ECHO_C" >&6
 13277 else
 13278   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 13279 fi
 13280 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 13281 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 13283 fi
 13284 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
 13286      HAVE_CORE_AUDIO=yes
 13287      LIBS="$LIBS -framework CoreAudio"
 13288      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
 13290 cat >>confdefs.h <<\_ACEOF
 13291 #define HAVE_CORE_AUDIO 1
 13292 _ACEOF
 13294 else
 13295   true
 13296 fi
 13301 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
 13302   AUDIO_OSX_TRUE=
 13303   AUDIO_OSX_FALSE='#'
 13304 else
 13305   AUDIO_OSX_TRUE='#'
 13306   AUDIO_OSX_FALSE=
 13307 fi
 13310 if test "x$with_sdl" != "xno"; then
 13312 pkg_failed=no
 13313 { echo "$as_me:$LINENO: checking for SDL" >&5
 13314 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
 13316 if test -n "$SDL_CFLAGS"; then
 13317     pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
 13318  elif test -n "$PKG_CONFIG"; then
 13319     if test -n "$PKG_CONFIG" && \
 13320     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 13321   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 13322   ac_status=$?
 13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13324   (exit $ac_status); }; then
 13325   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
 13326 else
 13327   pkg_failed=yes
 13328 fi
 13329  else
 13330     pkg_failed=untried
 13331 fi
 13332 if test -n "$SDL_LIBS"; then
 13333     pkg_cv_SDL_LIBS="$SDL_LIBS"
 13334  elif test -n "$PKG_CONFIG"; then
 13335     if test -n "$PKG_CONFIG" && \
 13336     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 13337   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 13338   ac_status=$?
 13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13340   (exit $ac_status); }; then
 13341   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
 13342 else
 13343   pkg_failed=yes
 13344 fi
 13345  else
 13346     pkg_failed=untried
 13347 fi
 13351 if test $pkg_failed = yes; then
 13353 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13354         _pkg_short_errors_supported=yes
 13355 else
 13356         _pkg_short_errors_supported=no
 13357 fi
 13358         if test $_pkg_short_errors_supported = yes; then
 13359 	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
 13360         else
 13361 	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
 13362         fi
 13363 	# Put the nasty error message in config.log where it belongs
 13364 	echo "$SDL_PKG_ERRORS" >&5
 13366 	{ echo "$as_me:$LINENO: result: no" >&5
 13367 echo "${ECHO_T}no" >&6; }
 13369       if test "x$with_sdl" = "xyes"; then
 13370          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 13371 See \`config.log' for more details." >&5
 13372 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 13373 See \`config.log' for more details." >&2;}
 13374    { (exit 1); exit 1; }; }
 13375       fi
 13377 elif test $pkg_failed = untried; then
 13379       if test "x$with_sdl" = "xyes"; then
 13380          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 13381 See \`config.log' for more details." >&5
 13382 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 13383 See \`config.log' for more details." >&2;}
 13384    { (exit 1); exit 1; }; }
 13385       fi
 13387 else
 13388 	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
 13389 	SDL_LIBS=$pkg_cv_SDL_LIBS
 13390         { echo "$as_me:$LINENO: result: yes" >&5
 13391 echo "${ECHO_T}yes" >&6; }
 13393        HAVE_SDL='yes'
 13394        AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
 13396 cat >>confdefs.h <<\_ACEOF
 13397 #define HAVE_SDL 1
 13398 _ACEOF
 13401 fi
 13402 fi
 13405 if test "$HAVE_SDL" = 'yes' ; then
 13406   AUDIO_SDL_TRUE=
 13407   AUDIO_SDL_FALSE='#'
 13408 else
 13409   AUDIO_SDL_TRUE='#'
 13410   AUDIO_SDL_FALSE=
 13411 fi
 13414 if test "x$with_pulse" != "xno"; then
 13416 pkg_failed=no
 13417 { echo "$as_me:$LINENO: checking for PULSE" >&5
 13418 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
 13420 if test -n "$PULSE_CFLAGS"; then
 13421     pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
 13422  elif test -n "$PKG_CONFIG"; then
 13423     if test -n "$PKG_CONFIG" && \
 13424     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 13425   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 13426   ac_status=$?
 13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13428   (exit $ac_status); }; then
 13429   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
 13430 else
 13431   pkg_failed=yes
 13432 fi
 13433  else
 13434     pkg_failed=untried
 13435 fi
 13436 if test -n "$PULSE_LIBS"; then
 13437     pkg_cv_PULSE_LIBS="$PULSE_LIBS"
 13438  elif test -n "$PKG_CONFIG"; then
 13439     if test -n "$PKG_CONFIG" && \
 13440     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 13441   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 13442   ac_status=$?
 13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13444   (exit $ac_status); }; then
 13445   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
 13446 else
 13447   pkg_failed=yes
 13448 fi
 13449  else
 13450     pkg_failed=untried
 13451 fi
 13455 if test $pkg_failed = yes; then
 13457 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13458         _pkg_short_errors_supported=yes
 13459 else
 13460         _pkg_short_errors_supported=no
 13461 fi
 13462         if test $_pkg_short_errors_supported = yes; then
 13463 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
 13464         else
 13465 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
 13466         fi
 13467 	# Put the nasty error message in config.log where it belongs
 13468 	echo "$PULSE_PKG_ERRORS" >&5
 13470 	{ echo "$as_me:$LINENO: result: no" >&5
 13471 echo "${ECHO_T}no" >&6; }
 13473        if test "x$with_pulse" = "xyes"; then
 13474           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 13475 See \`config.log' for more details." >&5
 13476 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 13477 See \`config.log' for more details." >&2;}
 13478    { (exit 1); exit 1; }; }
 13479        fi
 13481 elif test $pkg_failed = untried; then
 13483        if test "x$with_pulse" = "xyes"; then
 13484           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 13485 See \`config.log' for more details." >&5
 13486 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 13487 See \`config.log' for more details." >&2;}
 13488    { (exit 1); exit 1; }; }
 13489        fi
 13491 else
 13492 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
 13493 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
 13494         { echo "$as_me:$LINENO: result: yes" >&5
 13495 echo "${ECHO_T}yes" >&6; }
 13497        HAVE_PULSE='yes'
 13498        AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
 13500 cat >>confdefs.h <<\_ACEOF
 13501 #define HAVE_PULSE 1
 13502 _ACEOF
 13505 fi
 13506 fi
 13509 if test "$HAVE_PULSE" = 'yes' ; then
 13510   AUDIO_PULSE_TRUE=
 13511   AUDIO_PULSE_FALSE='#'
 13512 else
 13513   AUDIO_PULSE_TRUE='#'
 13514   AUDIO_PULSE_FALSE=
 13515 fi
 13518 if test "x$with_esd" != "xno"; then
 13520 pkg_failed=no
 13521 { echo "$as_me:$LINENO: checking for ESOUND" >&5
 13522 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
 13524 if test -n "$ESOUND_CFLAGS"; then
 13525     pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
 13526  elif test -n "$PKG_CONFIG"; then
 13527     if test -n "$PKG_CONFIG" && \
 13528     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 13529   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 13530   ac_status=$?
 13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13532   (exit $ac_status); }; then
 13533   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
 13534 else
 13535   pkg_failed=yes
 13536 fi
 13537  else
 13538     pkg_failed=untried
 13539 fi
 13540 if test -n "$ESOUND_LIBS"; then
 13541     pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
 13542  elif test -n "$PKG_CONFIG"; then
 13543     if test -n "$PKG_CONFIG" && \
 13544     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 13545   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 13546   ac_status=$?
 13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13548   (exit $ac_status); }; then
 13549   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
 13550 else
 13551   pkg_failed=yes
 13552 fi
 13553  else
 13554     pkg_failed=untried
 13555 fi
 13559 if test $pkg_failed = yes; then
 13561 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13562         _pkg_short_errors_supported=yes
 13563 else
 13564         _pkg_short_errors_supported=no
 13565 fi
 13566         if test $_pkg_short_errors_supported = yes; then
 13567 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
 13568         else
 13569 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
 13570         fi
 13571 	# Put the nasty error message in config.log where it belongs
 13572 	echo "$ESOUND_PKG_ERRORS" >&5
 13574 	{ echo "$as_me:$LINENO: result: no" >&5
 13575 echo "${ECHO_T}no" >&6; }
 13577        if test "x$with_esd" = "xyes"; then
 13578           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 13579 See \`config.log' for more details." >&5
 13580 echo "$as_me: error: ESounD audio package could not be found (but was required)
 13581 See \`config.log' for more details." >&2;}
 13582    { (exit 1); exit 1; }; }
 13583        fi
 13585 elif test $pkg_failed = untried; then
 13587        if test "x$with_esd" = "xyes"; then
 13588           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 13589 See \`config.log' for more details." >&5
 13590 echo "$as_me: error: ESounD audio package could not be found (but was required)
 13591 See \`config.log' for more details." >&2;}
 13592    { (exit 1); exit 1; }; }
 13593        fi
 13595 else
 13596 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
 13597 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
 13598         { echo "$as_me:$LINENO: result: yes" >&5
 13599 echo "${ECHO_T}yes" >&6; }
 13601        HAVE_ESOUND='yes'
 13602        AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
 13604 cat >>confdefs.h <<\_ACEOF
 13605 #define HAVE_ESOUND 1
 13606 _ACEOF
 13609 fi
 13610 fi
 13613 if test "$HAVE_ESOUND" = 'yes' ; then
 13614   AUDIO_ESOUND_TRUE=
 13615   AUDIO_ESOUND_FALSE='#'
 13616 else
 13617   AUDIO_ESOUND_TRUE='#'
 13618   AUDIO_ESOUND_FALSE=
 13619 fi
 13623 pkg_failed=no
 13624 { echo "$as_me:$LINENO: checking for ALSA" >&5
 13625 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
 13627 if test -n "$ALSA_CFLAGS"; then
 13628     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 13629  elif test -n "$PKG_CONFIG"; then
 13630     if test -n "$PKG_CONFIG" && \
 13631     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 13632   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 13633   ac_status=$?
 13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13635   (exit $ac_status); }; then
 13636   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
 13637 else
 13638   pkg_failed=yes
 13639 fi
 13640  else
 13641     pkg_failed=untried
 13642 fi
 13643 if test -n "$ALSA_LIBS"; then
 13644     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 13645  elif test -n "$PKG_CONFIG"; then
 13646     if test -n "$PKG_CONFIG" && \
 13647     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 13648   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 13649   ac_status=$?
 13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13651   (exit $ac_status); }; then
 13652   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
 13653 else
 13654   pkg_failed=yes
 13655 fi
 13656  else
 13657     pkg_failed=untried
 13658 fi
 13662 if test $pkg_failed = yes; then
 13664 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13665         _pkg_short_errors_supported=yes
 13666 else
 13667         _pkg_short_errors_supported=no
 13668 fi
 13669         if test $_pkg_short_errors_supported = yes; then
 13670 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
 13671         else
 13672 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
 13673         fi
 13674 	# Put the nasty error message in config.log where it belongs
 13675 	echo "$ALSA_PKG_ERRORS" >&5
 13677 	{ echo "$as_me:$LINENO: result: no" >&5
 13678 echo "${ECHO_T}no" >&6; }
 13679                 true
 13680 elif test $pkg_failed = untried; then
 13681 	true
 13682 else
 13683 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
 13684 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
 13685         { echo "$as_me:$LINENO: result: yes" >&5
 13686 echo "${ECHO_T}yes" >&6; }
 13688      HAVE_ALSA='yes'
 13689      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
 13691 cat >>confdefs.h <<\_ACEOF
 13692 #define HAVE_ALSA 1
 13693 _ACEOF
 13695 fi
 13698 if test "$HAVE_ALSA" = 'yes' ; then
 13699   AUDIO_ALSA_TRUE=
 13700   AUDIO_ALSA_FALSE='#'
 13701 else
 13702   AUDIO_ALSA_TRUE='#'
 13703   AUDIO_ALSA_FALSE=
 13704 fi
 13708 if test "$ANDROID_BUILD" != "yes"; then
 13709   if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13710   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 13711 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 13712 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13713   echo $ECHO_N "(cached) $ECHO_C" >&6
 13714 fi
 13715 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 13716 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 13717 else
 13718   # Is the header compilable?
 13719 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
 13720 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
 13721 cat >conftest.$ac_ext <<_ACEOF
 13722 /* confdefs.h.  */
 13723 _ACEOF
 13724 cat confdefs.h >>conftest.$ac_ext
 13725 cat >>conftest.$ac_ext <<_ACEOF
 13726 /* end confdefs.h.  */
 13727 $ac_includes_default
 13728 #include <linux/cdrom.h>
 13729 _ACEOF
 13730 rm -f conftest.$ac_objext
 13731 if { (ac_try="$ac_compile"
 13732 case "(($ac_try" in
 13733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13734   *) ac_try_echo=$ac_try;;
 13735 esac
 13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13737   (eval "$ac_compile") 2>conftest.er1
 13738   ac_status=$?
 13739   grep -v '^ *+' conftest.er1 >conftest.err
 13740   rm -f conftest.er1
 13741   cat conftest.err >&5
 13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13743   (exit $ac_status); } && {
 13744 	 test -z "$ac_c_werror_flag" ||
 13745 	 test ! -s conftest.err
 13746        } && test -s conftest.$ac_objext; then
 13747   ac_header_compiler=yes
 13748 else
 13749   echo "$as_me: failed program was:" >&5
 13750 sed 's/^/| /' conftest.$ac_ext >&5
 13752 	ac_header_compiler=no
 13753 fi
 13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13757 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13759 # Is the header present?
 13760 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
 13761 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
 13762 cat >conftest.$ac_ext <<_ACEOF
 13763 /* confdefs.h.  */
 13764 _ACEOF
 13765 cat confdefs.h >>conftest.$ac_ext
 13766 cat >>conftest.$ac_ext <<_ACEOF
 13767 /* end confdefs.h.  */
 13768 #include <linux/cdrom.h>
 13769 _ACEOF
 13770 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13771 case "(($ac_try" in
 13772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13773   *) ac_try_echo=$ac_try;;
 13774 esac
 13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13777   ac_status=$?
 13778   grep -v '^ *+' conftest.er1 >conftest.err
 13779   rm -f conftest.er1
 13780   cat conftest.err >&5
 13781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13782   (exit $ac_status); } >/dev/null && {
 13783 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13784 	 test ! -s conftest.err
 13785        }; then
 13786   ac_header_preproc=yes
 13787 else
 13788   echo "$as_me: failed program was:" >&5
 13789 sed 's/^/| /' conftest.$ac_ext >&5
 13791   ac_header_preproc=no
 13792 fi
 13794 rm -f conftest.err conftest.$ac_ext
 13795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13796 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13798 # So?  What about this header?
 13799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13800   yes:no: )
 13801     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13802 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13803     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
 13804 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
 13805     ac_header_preproc=yes
 13806     ;;
 13807   no:yes:* )
 13808     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
 13809 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
 13810     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
 13811 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
 13812     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
 13813 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
 13814     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
 13815 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13816     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
 13817 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
 13818     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
 13819 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
 13821     ;;
 13822 esac
 13823 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 13824 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 13825 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13826   echo $ECHO_N "(cached) $ECHO_C" >&6
 13827 else
 13828   ac_cv_header_linux_cdrom_h=$ac_header_preproc
 13829 fi
 13830 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 13831 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 13833 fi
 13834 if test $ac_cv_header_linux_cdrom_h = yes; then
 13836      CDROM_DRIVER=linux
 13837           { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
 13838 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
 13839      old_CFLAGS="$CFLAGS"
 13840      CFLAGS="$CFLAGS $STDCFLAG"
 13841      cat >conftest.$ac_ext <<_ACEOF
 13842 /* confdefs.h.  */
 13843 _ACEOF
 13844 cat confdefs.h >>conftest.$ac_ext
 13845 cat >>conftest.$ac_ext <<_ACEOF
 13846 /* end confdefs.h.  */
 13847 #include <linux/cdrom.h>
 13848 int
 13849 main ()
 13853   return 0;
 13855 _ACEOF
 13856 rm -f conftest.$ac_objext
 13857 if { (ac_try="$ac_compile"
 13858 case "(($ac_try" in
 13859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13860   *) ac_try_echo=$ac_try;;
 13861 esac
 13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13863   (eval "$ac_compile") 2>conftest.er1
 13864   ac_status=$?
 13865   grep -v '^ *+' conftest.er1 >conftest.err
 13866   rm -f conftest.er1
 13867   cat conftest.err >&5
 13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13869   (exit $ac_status); } && {
 13870 	 test -z "$ac_c_werror_flag" ||
 13871 	 test ! -s conftest.err
 13872        } && test -s conftest.$ac_objext; then
 13873   { echo "$as_me:$LINENO: result: Yes" >&5
 13874 echo "${ECHO_T}Yes" >&6; }
 13875 else
 13876   echo "$as_me: failed program was:" >&5
 13877 sed 's/^/| /' conftest.$ac_ext >&5
 13880         { echo "$as_me:$LINENO: result: No" >&5
 13881 echo "${ECHO_T}No" >&6; }
 13882         STDCFLAG="-std=gnu99"
 13883 fi
 13885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13886      CFLAGS="$old_CFLAGS"
 13888 else
 13889   true
 13890 fi
 13893   if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13894   { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 13895 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 13896 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13897   echo $ECHO_N "(cached) $ECHO_C" >&6
 13898 fi
 13899 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 13900 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 13901 else
 13902   # Is the header compilable?
 13903 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
 13904 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
 13905 cat >conftest.$ac_ext <<_ACEOF
 13906 /* confdefs.h.  */
 13907 _ACEOF
 13908 cat confdefs.h >>conftest.$ac_ext
 13909 cat >>conftest.$ac_ext <<_ACEOF
 13910 /* end confdefs.h.  */
 13911 $ac_includes_default
 13912 #include <IOKit/IOKitLib.h>
 13913 _ACEOF
 13914 rm -f conftest.$ac_objext
 13915 if { (ac_try="$ac_compile"
 13916 case "(($ac_try" in
 13917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13918   *) ac_try_echo=$ac_try;;
 13919 esac
 13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13921   (eval "$ac_compile") 2>conftest.er1
 13922   ac_status=$?
 13923   grep -v '^ *+' conftest.er1 >conftest.err
 13924   rm -f conftest.er1
 13925   cat conftest.err >&5
 13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13927   (exit $ac_status); } && {
 13928 	 test -z "$ac_c_werror_flag" ||
 13929 	 test ! -s conftest.err
 13930        } && test -s conftest.$ac_objext; then
 13931   ac_header_compiler=yes
 13932 else
 13933   echo "$as_me: failed program was:" >&5
 13934 sed 's/^/| /' conftest.$ac_ext >&5
 13936 	ac_header_compiler=no
 13937 fi
 13939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13941 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13943 # Is the header present?
 13944 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
 13945 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
 13946 cat >conftest.$ac_ext <<_ACEOF
 13947 /* confdefs.h.  */
 13948 _ACEOF
 13949 cat confdefs.h >>conftest.$ac_ext
 13950 cat >>conftest.$ac_ext <<_ACEOF
 13951 /* end confdefs.h.  */
 13952 #include <IOKit/IOKitLib.h>
 13953 _ACEOF
 13954 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13955 case "(($ac_try" in
 13956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13957   *) ac_try_echo=$ac_try;;
 13958 esac
 13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13961   ac_status=$?
 13962   grep -v '^ *+' conftest.er1 >conftest.err
 13963   rm -f conftest.er1
 13964   cat conftest.err >&5
 13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13966   (exit $ac_status); } >/dev/null && {
 13967 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13968 	 test ! -s conftest.err
 13969        }; then
 13970   ac_header_preproc=yes
 13971 else
 13972   echo "$as_me: failed program was:" >&5
 13973 sed 's/^/| /' conftest.$ac_ext >&5
 13975   ac_header_preproc=no
 13976 fi
 13978 rm -f conftest.err conftest.$ac_ext
 13979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13980 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13982 # So?  What about this header?
 13983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13984   yes:no: )
 13985     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13986 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13987     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
 13988 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
 13989     ac_header_preproc=yes
 13990     ;;
 13991   no:yes:* )
 13992     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
 13993 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
 13994     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&5
 13995 echo "$as_me: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&2;}
 13996     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
 13997 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
 13998     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&5
 13999 echo "$as_me: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14000     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
 14001 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
 14002     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
 14003 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
 14005     ;;
 14006 esac
 14007 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 14008 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 14009 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 14010   echo $ECHO_N "(cached) $ECHO_C" >&6
 14011 else
 14012   ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
 14013 fi
 14014 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 14015 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 14017 fi
 14018 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
 14020        CDROM_DRIVER=osx
 14021        LIBS="$LIBS -framework IOKit"
 14022 else
 14023   true
 14024 fi
 14027 fi
 14030 if test "x$CDROM_DRIVER" = "xlinux"; then
 14031   CDROM_LINUX_TRUE=
 14032   CDROM_LINUX_FALSE='#'
 14033 else
 14034   CDROM_LINUX_TRUE='#'
 14035   CDROM_LINUX_FALSE=
 14036 fi
 14040 if test "x$CDROM_DRIVER" = "xosx"; then
 14041   CDROM_OSX_TRUE=
 14042   CDROM_OSX_FALSE='#'
 14043 else
 14044   CDROM_OSX_TRUE='#'
 14045   CDROM_OSX_FALSE=
 14046 fi
 14050 if test "x$CDROM_DRIVER" = "x"; then
 14051   CDROM_NONE_TRUE=
 14052   CDROM_NONE_FALSE='#'
 14053 else
 14054   CDROM_NONE_TRUE='#'
 14055   CDROM_NONE_FALSE=
 14056 fi
 14058 if test "x$CDROM_DRIVER" = "xlinux"; then
 14060 cat >>confdefs.h <<\_ACEOF
 14061 #define HAVE_LINUX_CDROM 1
 14062 _ACEOF
 14064 fi
 14066 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 14067   { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 14068 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 14069 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 14070   echo $ECHO_N "(cached) $ECHO_C" >&6
 14071 fi
 14072 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 14073 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 14074 else
 14075   # Is the header compilable?
 14076 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
 14077 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
 14078 cat >conftest.$ac_ext <<_ACEOF
 14079 /* confdefs.h.  */
 14080 _ACEOF
 14081 cat confdefs.h >>conftest.$ac_ext
 14082 cat >>conftest.$ac_ext <<_ACEOF
 14083 /* end confdefs.h.  */
 14084 $ac_includes_default
 14085 #include <linux/joystick.h>
 14086 _ACEOF
 14087 rm -f conftest.$ac_objext
 14088 if { (ac_try="$ac_compile"
 14089 case "(($ac_try" in
 14090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14091   *) ac_try_echo=$ac_try;;
 14092 esac
 14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14094   (eval "$ac_compile") 2>conftest.er1
 14095   ac_status=$?
 14096   grep -v '^ *+' conftest.er1 >conftest.err
 14097   rm -f conftest.er1
 14098   cat conftest.err >&5
 14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14100   (exit $ac_status); } && {
 14101 	 test -z "$ac_c_werror_flag" ||
 14102 	 test ! -s conftest.err
 14103        } && test -s conftest.$ac_objext; then
 14104   ac_header_compiler=yes
 14105 else
 14106   echo "$as_me: failed program was:" >&5
 14107 sed 's/^/| /' conftest.$ac_ext >&5
 14109 	ac_header_compiler=no
 14110 fi
 14112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14114 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14116 # Is the header present?
 14117 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
 14118 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
 14119 cat >conftest.$ac_ext <<_ACEOF
 14120 /* confdefs.h.  */
 14121 _ACEOF
 14122 cat confdefs.h >>conftest.$ac_ext
 14123 cat >>conftest.$ac_ext <<_ACEOF
 14124 /* end confdefs.h.  */
 14125 #include <linux/joystick.h>
 14126 _ACEOF
 14127 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14128 case "(($ac_try" in
 14129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14130   *) ac_try_echo=$ac_try;;
 14131 esac
 14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14134   ac_status=$?
 14135   grep -v '^ *+' conftest.er1 >conftest.err
 14136   rm -f conftest.er1
 14137   cat conftest.err >&5
 14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14139   (exit $ac_status); } >/dev/null && {
 14140 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14141 	 test ! -s conftest.err
 14142        }; then
 14143   ac_header_preproc=yes
 14144 else
 14145   echo "$as_me: failed program was:" >&5
 14146 sed 's/^/| /' conftest.$ac_ext >&5
 14148   ac_header_preproc=no
 14149 fi
 14151 rm -f conftest.err conftest.$ac_ext
 14152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14153 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14155 # So?  What about this header?
 14156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14157   yes:no: )
 14158     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
 14159 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14160     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
 14161 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
 14162     ac_header_preproc=yes
 14163     ;;
 14164   no:yes:* )
 14165     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
 14166 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
 14167     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
 14168 echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
 14169     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
 14170 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
 14171     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
 14172 echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14173     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
 14174 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
 14175     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
 14176 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
 14178     ;;
 14179 esac
 14180 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 14181 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 14182 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 14183   echo $ECHO_N "(cached) $ECHO_C" >&6
 14184 else
 14185   ac_cv_header_linux_joystick_h=$ac_header_preproc
 14186 fi
 14187 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 14188 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 14190 fi
 14191 if test $ac_cv_header_linux_joystick_h = yes; then
 14193     HAVE_LINUX_JOYSTICK_H=yes
 14195 cat >>confdefs.h <<\_ACEOF
 14196 #define HAVE_LINUX_JOYSTICK 1
 14197 _ACEOF
 14199     INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
 14200 else
 14201    echo "Linux Joystick support not found, building without it."
 14202 fi
 14207 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
 14208   JOY_LINUX_TRUE=
 14209   JOY_LINUX_FALSE='#'
 14210 else
 14211   JOY_LINUX_TRUE='#'
 14212   JOY_LINUX_FALSE=
 14213 fi
 14216 if test "x$with_lirc" != "xno"; then
 14217     if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 14218   { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 14219 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 14220 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 14221   echo $ECHO_N "(cached) $ECHO_C" >&6
 14222 fi
 14223 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 14224 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 14225 else
 14226   # Is the header compilable?
 14227 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
 14228 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
 14229 cat >conftest.$ac_ext <<_ACEOF
 14230 /* confdefs.h.  */
 14231 _ACEOF
 14232 cat confdefs.h >>conftest.$ac_ext
 14233 cat >>conftest.$ac_ext <<_ACEOF
 14234 /* end confdefs.h.  */
 14235 $ac_includes_default
 14236 #include <lirc/lirc_client.h>
 14237 _ACEOF
 14238 rm -f conftest.$ac_objext
 14239 if { (ac_try="$ac_compile"
 14240 case "(($ac_try" in
 14241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14242   *) ac_try_echo=$ac_try;;
 14243 esac
 14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14245   (eval "$ac_compile") 2>conftest.er1
 14246   ac_status=$?
 14247   grep -v '^ *+' conftest.er1 >conftest.err
 14248   rm -f conftest.er1
 14249   cat conftest.err >&5
 14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14251   (exit $ac_status); } && {
 14252 	 test -z "$ac_c_werror_flag" ||
 14253 	 test ! -s conftest.err
 14254        } && test -s conftest.$ac_objext; then
 14255   ac_header_compiler=yes
 14256 else
 14257   echo "$as_me: failed program was:" >&5
 14258 sed 's/^/| /' conftest.$ac_ext >&5
 14260 	ac_header_compiler=no
 14261 fi
 14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14265 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14267 # Is the header present?
 14268 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
 14269 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
 14270 cat >conftest.$ac_ext <<_ACEOF
 14271 /* confdefs.h.  */
 14272 _ACEOF
 14273 cat confdefs.h >>conftest.$ac_ext
 14274 cat >>conftest.$ac_ext <<_ACEOF
 14275 /* end confdefs.h.  */
 14276 #include <lirc/lirc_client.h>
 14277 _ACEOF
 14278 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14279 case "(($ac_try" in
 14280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14281   *) ac_try_echo=$ac_try;;
 14282 esac
 14283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14285   ac_status=$?
 14286   grep -v '^ *+' conftest.er1 >conftest.err
 14287   rm -f conftest.er1
 14288   cat conftest.err >&5
 14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14290   (exit $ac_status); } >/dev/null && {
 14291 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14292 	 test ! -s conftest.err
 14293        }; then
 14294   ac_header_preproc=yes
 14295 else
 14296   echo "$as_me: failed program was:" >&5
 14297 sed 's/^/| /' conftest.$ac_ext >&5
 14299   ac_header_preproc=no
 14300 fi
 14302 rm -f conftest.err conftest.$ac_ext
 14303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14304 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14306 # So?  What about this header?
 14307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14308   yes:no: )
 14309     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
 14310 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14311     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
 14312 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
 14313     ac_header_preproc=yes
 14314     ;;
 14315   no:yes:* )
 14316     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
 14317 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
 14318     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&5
 14319 echo "$as_me: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&2;}
 14320     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
 14321 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
 14322     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&5
 14323 echo "$as_me: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14324     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
 14325 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
 14326     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
 14327 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
 14329     ;;
 14330 esac
 14331 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 14332 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 14333 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 14334   echo $ECHO_N "(cached) $ECHO_C" >&6
 14335 else
 14336   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
 14337 fi
 14338 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 14339 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 14341 fi
 14342 if test $ac_cv_header_lirc_lirc_client_h = yes; then
 14344         HAVE_LIRC_CLIENT_H=yes
 14346 cat >>confdefs.h <<\_ACEOF
 14347 #define HAVE_LIRC 1
 14348 _ACEOF
 14350         INPUT_DRIVERS="$INPUT_DRIVERS lirc"
 14352 else
 14353    echo "LIRC support not found, building without it."
 14354 fi
 14357 fi
 14360 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
 14361   INPUT_LIRC_TRUE=
 14362   INPUT_LIRC_FALSE='#'
 14363 else
 14364   INPUT_LIRC_TRUE='#'
 14365   INPUT_LIRC_FALSE=
 14366 fi
 14369 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
 14370 set dummy sh-elf-gcc; ac_word=$2
 14371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14373 if test "${ac_cv_path_SHCC+set}" = set; then
 14374   echo $ECHO_N "(cached) $ECHO_C" >&6
 14375 else
 14376   case $SHCC in
 14377   [\\/]* | ?:[\\/]*)
 14378   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
 14379   ;;
 14380   *)
 14381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14382 for as_dir in $PATH
 14383 do
 14384   IFS=$as_save_IFS
 14385   test -z "$as_dir" && as_dir=.
 14386   for ac_exec_ext in '' $ac_executable_extensions; do
 14387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14388     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
 14389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14390     break 2
 14391   fi
 14392 done
 14393 done
 14394 IFS=$as_save_IFS
 14396   ;;
 14397 esac
 14398 fi
 14399 SHCC=$ac_cv_path_SHCC
 14400 if test -n "$SHCC"; then
 14401   { echo "$as_me:$LINENO: result: $SHCC" >&5
 14402 echo "${ECHO_T}$SHCC" >&6; }
 14403 else
 14404   { echo "$as_me:$LINENO: result: no" >&5
 14405 echo "${ECHO_T}no" >&6; }
 14406 fi
 14409 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
 14410 set dummy sh-elf-ld; ac_word=$2
 14411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14413 if test "${ac_cv_path_SHLD+set}" = set; then
 14414   echo $ECHO_N "(cached) $ECHO_C" >&6
 14415 else
 14416   case $SHLD in
 14417   [\\/]* | ?:[\\/]*)
 14418   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
 14419   ;;
 14420   *)
 14421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14422 for as_dir in $PATH
 14423 do
 14424   IFS=$as_save_IFS
 14425   test -z "$as_dir" && as_dir=.
 14426   for ac_exec_ext in '' $ac_executable_extensions; do
 14427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14428     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
 14429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14430     break 2
 14431   fi
 14432 done
 14433 done
 14434 IFS=$as_save_IFS
 14436   ;;
 14437 esac
 14438 fi
 14439 SHLD=$ac_cv_path_SHLD
 14440 if test -n "$SHLD"; then
 14441   { echo "$as_me:$LINENO: result: $SHLD" >&5
 14442 echo "${ECHO_T}$SHLD" >&6; }
 14443 else
 14444   { echo "$as_me:$LINENO: result: no" >&5
 14445 echo "${ECHO_T}no" >&6; }
 14446 fi
 14449 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
 14450 set dummy sh-elf-objcopy; ac_word=$2
 14451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14453 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
 14454   echo $ECHO_N "(cached) $ECHO_C" >&6
 14455 else
 14456   case $SHOBJCOPY in
 14457   [\\/]* | ?:[\\/]*)
 14458   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
 14459   ;;
 14460   *)
 14461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14462 for as_dir in $PATH
 14463 do
 14464   IFS=$as_save_IFS
 14465   test -z "$as_dir" && as_dir=.
 14466   for ac_exec_ext in '' $ac_executable_extensions; do
 14467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14468     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 14469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14470     break 2
 14471   fi
 14472 done
 14473 done
 14474 IFS=$as_save_IFS
 14476   ;;
 14477 esac
 14478 fi
 14479 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
 14480 if test -n "$SHOBJCOPY"; then
 14481   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
 14482 echo "${ECHO_T}$SHOBJCOPY" >&6; }
 14483 else
 14484   { echo "$as_me:$LINENO: result: no" >&5
 14485 echo "${ECHO_T}no" >&6; }
 14486 fi
 14489 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
 14490 set dummy arm-elf-gcc; ac_word=$2
 14491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14493 if test "${ac_cv_path_ARMCC+set}" = set; then
 14494   echo $ECHO_N "(cached) $ECHO_C" >&6
 14495 else
 14496   case $ARMCC in
 14497   [\\/]* | ?:[\\/]*)
 14498   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
 14499   ;;
 14500   *)
 14501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14502 for as_dir in $PATH
 14503 do
 14504   IFS=$as_save_IFS
 14505   test -z "$as_dir" && as_dir=.
 14506   for ac_exec_ext in '' $ac_executable_extensions; do
 14507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14508     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
 14509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14510     break 2
 14511   fi
 14512 done
 14513 done
 14514 IFS=$as_save_IFS
 14516   ;;
 14517 esac
 14518 fi
 14519 ARMCC=$ac_cv_path_ARMCC
 14520 if test -n "$ARMCC"; then
 14521   { echo "$as_me:$LINENO: result: $ARMCC" >&5
 14522 echo "${ECHO_T}$ARMCC" >&6; }
 14523 else
 14524   { echo "$as_me:$LINENO: result: no" >&5
 14525 echo "${ECHO_T}no" >&6; }
 14526 fi
 14529 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
 14530 set dummy arm-elf-ld; ac_word=$2
 14531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14533 if test "${ac_cv_path_ARMLD+set}" = set; then
 14534   echo $ECHO_N "(cached) $ECHO_C" >&6
 14535 else
 14536   case $ARMLD in
 14537   [\\/]* | ?:[\\/]*)
 14538   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
 14539   ;;
 14540   *)
 14541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14542 for as_dir in $PATH
 14543 do
 14544   IFS=$as_save_IFS
 14545   test -z "$as_dir" && as_dir=.
 14546   for ac_exec_ext in '' $ac_executable_extensions; do
 14547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14548     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
 14549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14550     break 2
 14551   fi
 14552 done
 14553 done
 14554 IFS=$as_save_IFS
 14556   ;;
 14557 esac
 14558 fi
 14559 ARMLD=$ac_cv_path_ARMLD
 14560 if test -n "$ARMLD"; then
 14561   { echo "$as_me:$LINENO: result: $ARMLD" >&5
 14562 echo "${ECHO_T}$ARMLD" >&6; }
 14563 else
 14564   { echo "$as_me:$LINENO: result: no" >&5
 14565 echo "${ECHO_T}no" >&6; }
 14566 fi
 14569 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
 14570 set dummy arm-elf-objcopy; ac_word=$2
 14571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14573 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
 14574   echo $ECHO_N "(cached) $ECHO_C" >&6
 14575 else
 14576   case $ARMOBJCOPY in
 14577   [\\/]* | ?:[\\/]*)
 14578   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
 14579   ;;
 14580   *)
 14581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14582 for as_dir in $PATH
 14583 do
 14584   IFS=$as_save_IFS
 14585   test -z "$as_dir" && as_dir=.
 14586   for ac_exec_ext in '' $ac_executable_extensions; do
 14587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14588     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 14589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14590     break 2
 14591   fi
 14592 done
 14593 done
 14594 IFS=$as_save_IFS
 14596   ;;
 14597 esac
 14598 fi
 14599 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
 14600 if test -n "$ARMOBJCOPY"; then
 14601   { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
 14602 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
 14603 else
 14604   { echo "$as_me:$LINENO: result: no" >&5
 14605 echo "${ECHO_T}no" >&6; }
 14606 fi
 14610 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
 14611   BUILD_SH="no"
 14612   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
 14613 else
 14614   BUILD_SH="yes"
 14615 fi
 14616 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
 14617   BUILD_ARM="no"
 14618   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
 14619 else
 14620   BUILD_ARM="yes"
 14621 fi
 14624 if test "$BUILD_SH" = "yes"; then
 14625   BUILD_SYSTEST_TRUE=
 14626   BUILD_SYSTEST_FALSE='#'
 14627 else
 14628   BUILD_SYSTEST_TRUE='#'
 14629   BUILD_SYSTEST_FALSE=
 14630 fi
 14634 if test "$BUILD_ARM" = "yes"; then
 14635   BUILD_ARMTEST_TRUE=
 14636   BUILD_ARMTEST_FALSE='#'
 14637 else
 14638   BUILD_ARMTEST_TRUE='#'
 14639   BUILD_ARMTEST_FALSE=
 14640 fi
 14643 CFLAGS="$CFLAGS $STDCFLAG"
 14645 GETTEXT_PACKAGE=lxdream
 14646 LXDREAM_LIBS="$LIBS"
 14647 LIBS=""
 14651 cat >>confdefs.h <<_ACEOF
 14652 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 14653 _ACEOF
 14656 ALL_LINGUAS="de es it nl pt_BR"
 14659 for ac_header in locale.h
 14660 do
 14661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 14662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14663   { echo "$as_me:$LINENO: checking for $ac_header" >&5
 14664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 14665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14666   echo $ECHO_N "(cached) $ECHO_C" >&6
 14667 fi
 14668 ac_res=`eval echo '${'$as_ac_Header'}'`
 14669 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14670 echo "${ECHO_T}$ac_res" >&6; }
 14671 else
 14672   # Is the header compilable?
 14673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
 14674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 14675 cat >conftest.$ac_ext <<_ACEOF
 14676 /* confdefs.h.  */
 14677 _ACEOF
 14678 cat confdefs.h >>conftest.$ac_ext
 14679 cat >>conftest.$ac_ext <<_ACEOF
 14680 /* end confdefs.h.  */
 14681 $ac_includes_default
 14682 #include <$ac_header>
 14683 _ACEOF
 14684 rm -f conftest.$ac_objext
 14685 if { (ac_try="$ac_compile"
 14686 case "(($ac_try" in
 14687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14688   *) ac_try_echo=$ac_try;;
 14689 esac
 14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14691   (eval "$ac_compile") 2>conftest.er1
 14692   ac_status=$?
 14693   grep -v '^ *+' conftest.er1 >conftest.err
 14694   rm -f conftest.er1
 14695   cat conftest.err >&5
 14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14697   (exit $ac_status); } && {
 14698 	 test -z "$ac_c_werror_flag" ||
 14699 	 test ! -s conftest.err
 14700        } && test -s conftest.$ac_objext; then
 14701   ac_header_compiler=yes
 14702 else
 14703   echo "$as_me: failed program was:" >&5
 14704 sed 's/^/| /' conftest.$ac_ext >&5
 14706 	ac_header_compiler=no
 14707 fi
 14709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14711 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14713 # Is the header present?
 14714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
 14715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 14716 cat >conftest.$ac_ext <<_ACEOF
 14717 /* confdefs.h.  */
 14718 _ACEOF
 14719 cat confdefs.h >>conftest.$ac_ext
 14720 cat >>conftest.$ac_ext <<_ACEOF
 14721 /* end confdefs.h.  */
 14722 #include <$ac_header>
 14723 _ACEOF
 14724 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14725 case "(($ac_try" in
 14726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14727   *) ac_try_echo=$ac_try;;
 14728 esac
 14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14731   ac_status=$?
 14732   grep -v '^ *+' conftest.er1 >conftest.err
 14733   rm -f conftest.er1
 14734   cat conftest.err >&5
 14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14736   (exit $ac_status); } >/dev/null && {
 14737 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14738 	 test ! -s conftest.err
 14739        }; then
 14740   ac_header_preproc=yes
 14741 else
 14742   echo "$as_me: failed program was:" >&5
 14743 sed 's/^/| /' conftest.$ac_ext >&5
 14745   ac_header_preproc=no
 14746 fi
 14748 rm -f conftest.err conftest.$ac_ext
 14749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14750 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14752 # So?  What about this header?
 14753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14754   yes:no: )
 14755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 14756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 14758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 14759     ac_header_preproc=yes
 14760     ;;
 14761   no:yes:* )
 14762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 14763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 14764     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 14765 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 14766     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 14767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 14768     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 14769 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 14770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 14771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 14772     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 14773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 14775     ;;
 14776 esac
 14777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
 14778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 14779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14780   echo $ECHO_N "(cached) $ECHO_C" >&6
 14781 else
 14782   eval "$as_ac_Header=\$ac_header_preproc"
 14783 fi
 14784 ac_res=`eval echo '${'$as_ac_Header'}'`
 14785 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14786 echo "${ECHO_T}$ac_res" >&6; }
 14788 fi
 14789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
 14790   cat >>confdefs.h <<_ACEOF
 14791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 14792 _ACEOF
 14794 fi
 14796 done
 14798     if test $ac_cv_header_locale_h = yes; then
 14799     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 14800 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 14801 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 14802   echo $ECHO_N "(cached) $ECHO_C" >&6
 14803 else
 14804   cat >conftest.$ac_ext <<_ACEOF
 14805 /* confdefs.h.  */
 14806 _ACEOF
 14807 cat confdefs.h >>conftest.$ac_ext
 14808 cat >>conftest.$ac_ext <<_ACEOF
 14809 /* end confdefs.h.  */
 14810 #include <locale.h>
 14811 int
 14812 main ()
 14814 return LC_MESSAGES
 14816   return 0;
 14818 _ACEOF
 14819 rm -f conftest.$ac_objext conftest$ac_exeext
 14820 if { (ac_try="$ac_link"
 14821 case "(($ac_try" in
 14822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14823   *) ac_try_echo=$ac_try;;
 14824 esac
 14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14826   (eval "$ac_link") 2>conftest.er1
 14827   ac_status=$?
 14828   grep -v '^ *+' conftest.er1 >conftest.err
 14829   rm -f conftest.er1
 14830   cat conftest.err >&5
 14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14832   (exit $ac_status); } && {
 14833 	 test -z "$ac_c_werror_flag" ||
 14834 	 test ! -s conftest.err
 14835        } && test -s conftest$ac_exeext &&
 14836        $as_test_x conftest$ac_exeext; then
 14837   am_cv_val_LC_MESSAGES=yes
 14838 else
 14839   echo "$as_me: failed program was:" >&5
 14840 sed 's/^/| /' conftest.$ac_ext >&5
 14842 	am_cv_val_LC_MESSAGES=no
 14843 fi
 14845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14846       conftest$ac_exeext conftest.$ac_ext
 14847 fi
 14848 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 14849 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
 14850     if test $am_cv_val_LC_MESSAGES = yes; then
 14852 cat >>confdefs.h <<\_ACEOF
 14853 #define HAVE_LC_MESSAGES 1
 14854 _ACEOF
 14856     fi
 14857   fi
 14858      USE_NLS=yes
 14861     gt_cv_have_gettext=no
 14863     CATOBJEXT=NONE
 14864     XGETTEXT=:
 14865     INTLLIBS=
 14867     if test "${ac_cv_header_libintl_h+set}" = set; then
 14868   { echo "$as_me:$LINENO: checking for libintl.h" >&5
 14869 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 14870 if test "${ac_cv_header_libintl_h+set}" = set; then
 14871   echo $ECHO_N "(cached) $ECHO_C" >&6
 14872 fi
 14873 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 14874 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 14875 else
 14876   # Is the header compilable?
 14877 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
 14878 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
 14879 cat >conftest.$ac_ext <<_ACEOF
 14880 /* confdefs.h.  */
 14881 _ACEOF
 14882 cat confdefs.h >>conftest.$ac_ext
 14883 cat >>conftest.$ac_ext <<_ACEOF
 14884 /* end confdefs.h.  */
 14885 $ac_includes_default
 14886 #include <libintl.h>
 14887 _ACEOF
 14888 rm -f conftest.$ac_objext
 14889 if { (ac_try="$ac_compile"
 14890 case "(($ac_try" in
 14891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14892   *) ac_try_echo=$ac_try;;
 14893 esac
 14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14895   (eval "$ac_compile") 2>conftest.er1
 14896   ac_status=$?
 14897   grep -v '^ *+' conftest.er1 >conftest.err
 14898   rm -f conftest.er1
 14899   cat conftest.err >&5
 14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14901   (exit $ac_status); } && {
 14902 	 test -z "$ac_c_werror_flag" ||
 14903 	 test ! -s conftest.err
 14904        } && test -s conftest.$ac_objext; then
 14905   ac_header_compiler=yes
 14906 else
 14907   echo "$as_me: failed program was:" >&5
 14908 sed 's/^/| /' conftest.$ac_ext >&5
 14910 	ac_header_compiler=no
 14911 fi
 14913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14915 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14917 # Is the header present?
 14918 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
 14919 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
 14920 cat >conftest.$ac_ext <<_ACEOF
 14921 /* confdefs.h.  */
 14922 _ACEOF
 14923 cat confdefs.h >>conftest.$ac_ext
 14924 cat >>conftest.$ac_ext <<_ACEOF
 14925 /* end confdefs.h.  */
 14926 #include <libintl.h>
 14927 _ACEOF
 14928 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14929 case "(($ac_try" in
 14930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14931   *) ac_try_echo=$ac_try;;
 14932 esac
 14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14935   ac_status=$?
 14936   grep -v '^ *+' conftest.er1 >conftest.err
 14937   rm -f conftest.er1
 14938   cat conftest.err >&5
 14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14940   (exit $ac_status); } >/dev/null && {
 14941 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14942 	 test ! -s conftest.err
 14943        }; then
 14944   ac_header_preproc=yes
 14945 else
 14946   echo "$as_me: failed program was:" >&5
 14947 sed 's/^/| /' conftest.$ac_ext >&5
 14949   ac_header_preproc=no
 14950 fi
 14952 rm -f conftest.err conftest.$ac_ext
 14953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14954 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14956 # So?  What about this header?
 14957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14958   yes:no: )
 14959     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 14960 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14961     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 14962 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 14963     ac_header_preproc=yes
 14964     ;;
 14965   no:yes:* )
 14966     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 14967 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 14968     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 14969 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 14970     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 14971 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 14972     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 14973 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14974     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 14975 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 14976     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 14977 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 14979     ;;
 14980 esac
 14981 { echo "$as_me:$LINENO: checking for libintl.h" >&5
 14982 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 14983 if test "${ac_cv_header_libintl_h+set}" = set; then
 14984   echo $ECHO_N "(cached) $ECHO_C" >&6
 14985 else
 14986   ac_cv_header_libintl_h=$ac_header_preproc
 14987 fi
 14988 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 14989 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 14991 fi
 14992 if test $ac_cv_header_libintl_h = yes; then
 14993   gt_cv_func_dgettext_libintl="no"
 14994       libintl_extra_libs=""
 14997       # First check in libc
 14999       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 15000 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
 15001 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 15002   echo $ECHO_N "(cached) $ECHO_C" >&6
 15003 else
 15004   cat >conftest.$ac_ext <<_ACEOF
 15005 /* confdefs.h.  */
 15006 _ACEOF
 15007 cat confdefs.h >>conftest.$ac_ext
 15008 cat >>conftest.$ac_ext <<_ACEOF
 15009 /* end confdefs.h.  */
 15011 #include <libintl.h>
 15013 int
 15014 main ()
 15016 return !ngettext ("","", 1)
 15018   return 0;
 15020 _ACEOF
 15021 rm -f conftest.$ac_objext conftest$ac_exeext
 15022 if { (ac_try="$ac_link"
 15023 case "(($ac_try" in
 15024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15025   *) ac_try_echo=$ac_try;;
 15026 esac
 15027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15028   (eval "$ac_link") 2>conftest.er1
 15029   ac_status=$?
 15030   grep -v '^ *+' conftest.er1 >conftest.err
 15031   rm -f conftest.er1
 15032   cat conftest.err >&5
 15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15034   (exit $ac_status); } && {
 15035 	 test -z "$ac_c_werror_flag" ||
 15036 	 test ! -s conftest.err
 15037        } && test -s conftest$ac_exeext &&
 15038        $as_test_x conftest$ac_exeext; then
 15039   gt_cv_func_ngettext_libc=yes
 15040 else
 15041   echo "$as_me: failed program was:" >&5
 15042 sed 's/^/| /' conftest.$ac_ext >&5
 15044 	gt_cv_func_ngettext_libc=no
 15045 fi
 15047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15048       conftest$ac_exeext conftest.$ac_ext
 15050 fi
 15051 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 15052 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
 15054       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 15055 	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 15056 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
 15057 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 15058   echo $ECHO_N "(cached) $ECHO_C" >&6
 15059 else
 15060   cat >conftest.$ac_ext <<_ACEOF
 15061 /* confdefs.h.  */
 15062 _ACEOF
 15063 cat confdefs.h >>conftest.$ac_ext
 15064 cat >>conftest.$ac_ext <<_ACEOF
 15065 /* end confdefs.h.  */
 15067 #include <libintl.h>
 15069 int
 15070 main ()
 15072 return !dgettext ("","")
 15074   return 0;
 15076 _ACEOF
 15077 rm -f conftest.$ac_objext conftest$ac_exeext
 15078 if { (ac_try="$ac_link"
 15079 case "(($ac_try" in
 15080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15081   *) ac_try_echo=$ac_try;;
 15082 esac
 15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15084   (eval "$ac_link") 2>conftest.er1
 15085   ac_status=$?
 15086   grep -v '^ *+' conftest.er1 >conftest.err
 15087   rm -f conftest.er1
 15088   cat conftest.err >&5
 15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15090   (exit $ac_status); } && {
 15091 	 test -z "$ac_c_werror_flag" ||
 15092 	 test ! -s conftest.err
 15093        } && test -s conftest$ac_exeext &&
 15094        $as_test_x conftest$ac_exeext; then
 15095   gt_cv_func_dgettext_libc=yes
 15096 else
 15097   echo "$as_me: failed program was:" >&5
 15098 sed 's/^/| /' conftest.$ac_ext >&5
 15100 	gt_cv_func_dgettext_libc=no
 15101 fi
 15103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15104       conftest$ac_exeext conftest.$ac_ext
 15106 fi
 15107 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 15108 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
 15109       fi
 15111       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 15113 for ac_func in bind_textdomain_codeset
 15114 do
 15115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15119   echo $ECHO_N "(cached) $ECHO_C" >&6
 15120 else
 15121   cat >conftest.$ac_ext <<_ACEOF
 15122 /* confdefs.h.  */
 15123 _ACEOF
 15124 cat confdefs.h >>conftest.$ac_ext
 15125 cat >>conftest.$ac_ext <<_ACEOF
 15126 /* end confdefs.h.  */
 15127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15129 #define $ac_func innocuous_$ac_func
 15131 /* System header to define __stub macros and hopefully few prototypes,
 15132     which can conflict with char $ac_func (); below.
 15133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15134     <limits.h> exists even on freestanding compilers.  */
 15136 #ifdef __STDC__
 15137 # include <limits.h>
 15138 #else
 15139 # include <assert.h>
 15140 #endif
 15142 #undef $ac_func
 15144 /* Override any GCC internal prototype to avoid an error.
 15145    Use char because int might match the return type of a GCC
 15146    builtin and then its argument prototype would still apply.  */
 15147 #ifdef __cplusplus
 15148 extern "C"
 15149 #endif
 15150 char $ac_func ();
 15151 /* The GNU C library defines this for functions which it implements
 15152     to always fail with ENOSYS.  Some functions are actually named
 15153     something starting with __ and the normal name is an alias.  */
 15154 #if defined __stub_$ac_func || defined __stub___$ac_func
 15155 choke me
 15156 #endif
 15158 int
 15159 main ()
 15161 return $ac_func ();
 15163   return 0;
 15165 _ACEOF
 15166 rm -f conftest.$ac_objext conftest$ac_exeext
 15167 if { (ac_try="$ac_link"
 15168 case "(($ac_try" in
 15169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15170   *) ac_try_echo=$ac_try;;
 15171 esac
 15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15173   (eval "$ac_link") 2>conftest.er1
 15174   ac_status=$?
 15175   grep -v '^ *+' conftest.er1 >conftest.err
 15176   rm -f conftest.er1
 15177   cat conftest.err >&5
 15178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15179   (exit $ac_status); } && {
 15180 	 test -z "$ac_c_werror_flag" ||
 15181 	 test ! -s conftest.err
 15182        } && test -s conftest$ac_exeext &&
 15183        $as_test_x conftest$ac_exeext; then
 15184   eval "$as_ac_var=yes"
 15185 else
 15186   echo "$as_me: failed program was:" >&5
 15187 sed 's/^/| /' conftest.$ac_ext >&5
 15189 	eval "$as_ac_var=no"
 15190 fi
 15192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15193       conftest$ac_exeext conftest.$ac_ext
 15194 fi
 15195 ac_res=`eval echo '${'$as_ac_var'}'`
 15196 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15197 echo "${ECHO_T}$ac_res" >&6; }
 15198 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15199   cat >>confdefs.h <<_ACEOF
 15200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15201 _ACEOF
 15203 fi
 15204 done
 15206       fi
 15209       # If we don't have everything we want, check in libintl
 15211       if test "$gt_cv_func_dgettext_libc" != "yes" \
 15212 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 15213          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 15215         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 15216 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
 15217 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 15218   echo $ECHO_N "(cached) $ECHO_C" >&6
 15219 else
 15220   ac_check_lib_save_LIBS=$LIBS
 15221 LIBS="-lintl  $LIBS"
 15222 cat >conftest.$ac_ext <<_ACEOF
 15223 /* confdefs.h.  */
 15224 _ACEOF
 15225 cat confdefs.h >>conftest.$ac_ext
 15226 cat >>conftest.$ac_ext <<_ACEOF
 15227 /* end confdefs.h.  */
 15229 /* Override any GCC internal prototype to avoid an error.
 15230    Use char because int might match the return type of a GCC
 15231    builtin and then its argument prototype would still apply.  */
 15232 #ifdef __cplusplus
 15233 extern "C"
 15234 #endif
 15235 char bindtextdomain ();
 15236 int
 15237 main ()
 15239 return bindtextdomain ();
 15241   return 0;
 15243 _ACEOF
 15244 rm -f conftest.$ac_objext conftest$ac_exeext
 15245 if { (ac_try="$ac_link"
 15246 case "(($ac_try" in
 15247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15248   *) ac_try_echo=$ac_try;;
 15249 esac
 15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15251   (eval "$ac_link") 2>conftest.er1
 15252   ac_status=$?
 15253   grep -v '^ *+' conftest.er1 >conftest.err
 15254   rm -f conftest.er1
 15255   cat conftest.err >&5
 15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15257   (exit $ac_status); } && {
 15258 	 test -z "$ac_c_werror_flag" ||
 15259 	 test ! -s conftest.err
 15260        } && test -s conftest$ac_exeext &&
 15261        $as_test_x conftest$ac_exeext; then
 15262   ac_cv_lib_intl_bindtextdomain=yes
 15263 else
 15264   echo "$as_me: failed program was:" >&5
 15265 sed 's/^/| /' conftest.$ac_ext >&5
 15267 	ac_cv_lib_intl_bindtextdomain=no
 15268 fi
 15270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15271       conftest$ac_exeext conftest.$ac_ext
 15272 LIBS=$ac_check_lib_save_LIBS
 15273 fi
 15274 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 15275 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
 15276 if test $ac_cv_lib_intl_bindtextdomain = yes; then
 15277   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 15278 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 15279 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 15280   echo $ECHO_N "(cached) $ECHO_C" >&6
 15281 else
 15282   ac_check_lib_save_LIBS=$LIBS
 15283 LIBS="-lintl  $LIBS"
 15284 cat >conftest.$ac_ext <<_ACEOF
 15285 /* confdefs.h.  */
 15286 _ACEOF
 15287 cat confdefs.h >>conftest.$ac_ext
 15288 cat >>conftest.$ac_ext <<_ACEOF
 15289 /* end confdefs.h.  */
 15291 /* Override any GCC internal prototype to avoid an error.
 15292    Use char because int might match the return type of a GCC
 15293    builtin and then its argument prototype would still apply.  */
 15294 #ifdef __cplusplus
 15295 extern "C"
 15296 #endif
 15297 char ngettext ();
 15298 int
 15299 main ()
 15301 return ngettext ();
 15303   return 0;
 15305 _ACEOF
 15306 rm -f conftest.$ac_objext conftest$ac_exeext
 15307 if { (ac_try="$ac_link"
 15308 case "(($ac_try" in
 15309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15310   *) ac_try_echo=$ac_try;;
 15311 esac
 15312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15313   (eval "$ac_link") 2>conftest.er1
 15314   ac_status=$?
 15315   grep -v '^ *+' conftest.er1 >conftest.err
 15316   rm -f conftest.er1
 15317   cat conftest.err >&5
 15318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15319   (exit $ac_status); } && {
 15320 	 test -z "$ac_c_werror_flag" ||
 15321 	 test ! -s conftest.err
 15322        } && test -s conftest$ac_exeext &&
 15323        $as_test_x conftest$ac_exeext; then
 15324   ac_cv_lib_intl_ngettext=yes
 15325 else
 15326   echo "$as_me: failed program was:" >&5
 15327 sed 's/^/| /' conftest.$ac_ext >&5
 15329 	ac_cv_lib_intl_ngettext=no
 15330 fi
 15332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15333       conftest$ac_exeext conftest.$ac_ext
 15334 LIBS=$ac_check_lib_save_LIBS
 15335 fi
 15336 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 15337 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 15338 if test $ac_cv_lib_intl_ngettext = yes; then
 15339   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 15340 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
 15341 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 15342   echo $ECHO_N "(cached) $ECHO_C" >&6
 15343 else
 15344   ac_check_lib_save_LIBS=$LIBS
 15345 LIBS="-lintl  $LIBS"
 15346 cat >conftest.$ac_ext <<_ACEOF
 15347 /* confdefs.h.  */
 15348 _ACEOF
 15349 cat confdefs.h >>conftest.$ac_ext
 15350 cat >>conftest.$ac_ext <<_ACEOF
 15351 /* end confdefs.h.  */
 15353 /* Override any GCC internal prototype to avoid an error.
 15354    Use char because int might match the return type of a GCC
 15355    builtin and then its argument prototype would still apply.  */
 15356 #ifdef __cplusplus
 15357 extern "C"
 15358 #endif
 15359 char dgettext ();
 15360 int
 15361 main ()
 15363 return dgettext ();
 15365   return 0;
 15367 _ACEOF
 15368 rm -f conftest.$ac_objext conftest$ac_exeext
 15369 if { (ac_try="$ac_link"
 15370 case "(($ac_try" in
 15371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15372   *) ac_try_echo=$ac_try;;
 15373 esac
 15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15375   (eval "$ac_link") 2>conftest.er1
 15376   ac_status=$?
 15377   grep -v '^ *+' conftest.er1 >conftest.err
 15378   rm -f conftest.er1
 15379   cat conftest.err >&5
 15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15381   (exit $ac_status); } && {
 15382 	 test -z "$ac_c_werror_flag" ||
 15383 	 test ! -s conftest.err
 15384        } && test -s conftest$ac_exeext &&
 15385        $as_test_x conftest$ac_exeext; then
 15386   ac_cv_lib_intl_dgettext=yes
 15387 else
 15388   echo "$as_me: failed program was:" >&5
 15389 sed 's/^/| /' conftest.$ac_ext >&5
 15391 	ac_cv_lib_intl_dgettext=no
 15392 fi
 15394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15395       conftest$ac_exeext conftest.$ac_ext
 15396 LIBS=$ac_check_lib_save_LIBS
 15397 fi
 15398 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 15399 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
 15400 if test $ac_cv_lib_intl_dgettext = yes; then
 15401   gt_cv_func_dgettext_libintl=yes
 15402 fi
 15404 fi
 15406 fi
 15409 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 15410 	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 15411 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
 15412 	  { echo "$as_me:$LINENO: result: " >&5
 15413 echo "${ECHO_T}" >&6; }
 15414   	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 15415 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 15416 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 15417   echo $ECHO_N "(cached) $ECHO_C" >&6
 15418 else
 15419   ac_check_lib_save_LIBS=$LIBS
 15420 LIBS="-lintl -liconv $LIBS"
 15421 cat >conftest.$ac_ext <<_ACEOF
 15422 /* confdefs.h.  */
 15423 _ACEOF
 15424 cat confdefs.h >>conftest.$ac_ext
 15425 cat >>conftest.$ac_ext <<_ACEOF
 15426 /* end confdefs.h.  */
 15428 /* Override any GCC internal prototype to avoid an error.
 15429    Use char because int might match the return type of a GCC
 15430    builtin and then its argument prototype would still apply.  */
 15431 #ifdef __cplusplus
 15432 extern "C"
 15433 #endif
 15434 char ngettext ();
 15435 int
 15436 main ()
 15438 return ngettext ();
 15440   return 0;
 15442 _ACEOF
 15443 rm -f conftest.$ac_objext conftest$ac_exeext
 15444 if { (ac_try="$ac_link"
 15445 case "(($ac_try" in
 15446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15447   *) ac_try_echo=$ac_try;;
 15448 esac
 15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15450   (eval "$ac_link") 2>conftest.er1
 15451   ac_status=$?
 15452   grep -v '^ *+' conftest.er1 >conftest.err
 15453   rm -f conftest.er1
 15454   cat conftest.err >&5
 15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15456   (exit $ac_status); } && {
 15457 	 test -z "$ac_c_werror_flag" ||
 15458 	 test ! -s conftest.err
 15459        } && test -s conftest$ac_exeext &&
 15460        $as_test_x conftest$ac_exeext; then
 15461   ac_cv_lib_intl_ngettext=yes
 15462 else
 15463   echo "$as_me: failed program was:" >&5
 15464 sed 's/^/| /' conftest.$ac_ext >&5
 15466 	ac_cv_lib_intl_ngettext=no
 15467 fi
 15469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15470       conftest$ac_exeext conftest.$ac_ext
 15471 LIBS=$ac_check_lib_save_LIBS
 15472 fi
 15473 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 15474 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 15475 if test $ac_cv_lib_intl_ngettext = yes; then
 15476   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 15477 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
 15478 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 15479   echo $ECHO_N "(cached) $ECHO_C" >&6
 15480 else
 15481   ac_check_lib_save_LIBS=$LIBS
 15482 LIBS="-lintl -liconv $LIBS"
 15483 cat >conftest.$ac_ext <<_ACEOF
 15484 /* confdefs.h.  */
 15485 _ACEOF
 15486 cat confdefs.h >>conftest.$ac_ext
 15487 cat >>conftest.$ac_ext <<_ACEOF
 15488 /* end confdefs.h.  */
 15490 /* Override any GCC internal prototype to avoid an error.
 15491    Use char because int might match the return type of a GCC
 15492    builtin and then its argument prototype would still apply.  */
 15493 #ifdef __cplusplus
 15494 extern "C"
 15495 #endif
 15496 char dcgettext ();
 15497 int
 15498 main ()
 15500 return dcgettext ();
 15502   return 0;
 15504 _ACEOF
 15505 rm -f conftest.$ac_objext conftest$ac_exeext
 15506 if { (ac_try="$ac_link"
 15507 case "(($ac_try" in
 15508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15509   *) ac_try_echo=$ac_try;;
 15510 esac
 15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15512   (eval "$ac_link") 2>conftest.er1
 15513   ac_status=$?
 15514   grep -v '^ *+' conftest.er1 >conftest.err
 15515   rm -f conftest.er1
 15516   cat conftest.err >&5
 15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15518   (exit $ac_status); } && {
 15519 	 test -z "$ac_c_werror_flag" ||
 15520 	 test ! -s conftest.err
 15521        } && test -s conftest$ac_exeext &&
 15522        $as_test_x conftest$ac_exeext; then
 15523   ac_cv_lib_intl_dcgettext=yes
 15524 else
 15525   echo "$as_me: failed program was:" >&5
 15526 sed 's/^/| /' conftest.$ac_ext >&5
 15528 	ac_cv_lib_intl_dcgettext=no
 15529 fi
 15531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15532       conftest$ac_exeext conftest.$ac_ext
 15533 LIBS=$ac_check_lib_save_LIBS
 15534 fi
 15535 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 15536 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
 15537 if test $ac_cv_lib_intl_dcgettext = yes; then
 15538   gt_cv_func_dgettext_libintl=yes
 15539 			libintl_extra_libs=-liconv
 15540 else
 15542 fi
 15544 else
 15546 fi
 15548         fi
 15551         # If we found libintl, then check in it for bind_textdomain_codeset();
 15552         # we'll prefer libc if neither have bind_textdomain_codeset(),
 15553         # and both have dgettext and ngettext
 15555         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 15556           glib_save_LIBS="$LIBS"
 15557           LIBS="$LIBS -lintl $libintl_extra_libs"
 15558           unset ac_cv_func_bind_textdomain_codeset
 15560 for ac_func in bind_textdomain_codeset
 15561 do
 15562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15566   echo $ECHO_N "(cached) $ECHO_C" >&6
 15567 else
 15568   cat >conftest.$ac_ext <<_ACEOF
 15569 /* confdefs.h.  */
 15570 _ACEOF
 15571 cat confdefs.h >>conftest.$ac_ext
 15572 cat >>conftest.$ac_ext <<_ACEOF
 15573 /* end confdefs.h.  */
 15574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15576 #define $ac_func innocuous_$ac_func
 15578 /* System header to define __stub macros and hopefully few prototypes,
 15579     which can conflict with char $ac_func (); below.
 15580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15581     <limits.h> exists even on freestanding compilers.  */
 15583 #ifdef __STDC__
 15584 # include <limits.h>
 15585 #else
 15586 # include <assert.h>
 15587 #endif
 15589 #undef $ac_func
 15591 /* Override any GCC internal prototype to avoid an error.
 15592    Use char because int might match the return type of a GCC
 15593    builtin and then its argument prototype would still apply.  */
 15594 #ifdef __cplusplus
 15595 extern "C"
 15596 #endif
 15597 char $ac_func ();
 15598 /* The GNU C library defines this for functions which it implements
 15599     to always fail with ENOSYS.  Some functions are actually named
 15600     something starting with __ and the normal name is an alias.  */
 15601 #if defined __stub_$ac_func || defined __stub___$ac_func
 15602 choke me
 15603 #endif
 15605 int
 15606 main ()
 15608 return $ac_func ();
 15610   return 0;
 15612 _ACEOF
 15613 rm -f conftest.$ac_objext conftest$ac_exeext
 15614 if { (ac_try="$ac_link"
 15615 case "(($ac_try" in
 15616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15617   *) ac_try_echo=$ac_try;;
 15618 esac
 15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15620   (eval "$ac_link") 2>conftest.er1
 15621   ac_status=$?
 15622   grep -v '^ *+' conftest.er1 >conftest.err
 15623   rm -f conftest.er1
 15624   cat conftest.err >&5
 15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15626   (exit $ac_status); } && {
 15627 	 test -z "$ac_c_werror_flag" ||
 15628 	 test ! -s conftest.err
 15629        } && test -s conftest$ac_exeext &&
 15630        $as_test_x conftest$ac_exeext; then
 15631   eval "$as_ac_var=yes"
 15632 else
 15633   echo "$as_me: failed program was:" >&5
 15634 sed 's/^/| /' conftest.$ac_ext >&5
 15636 	eval "$as_ac_var=no"
 15637 fi
 15639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15640       conftest$ac_exeext conftest.$ac_ext
 15641 fi
 15642 ac_res=`eval echo '${'$as_ac_var'}'`
 15643 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15644 echo "${ECHO_T}$ac_res" >&6; }
 15645 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15646   cat >>confdefs.h <<_ACEOF
 15647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15648 _ACEOF
 15650 fi
 15651 done
 15653           LIBS="$glib_save_LIBS"
 15655           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 15656             gt_cv_func_dgettext_libc=no
 15657           else
 15658             if test "$gt_cv_func_dgettext_libc" = "yes" \
 15659 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 15660               gt_cv_func_dgettext_libintl=no
 15661             fi
 15662           fi
 15663         fi
 15664       fi
 15666       if test "$gt_cv_func_dgettext_libc" = "yes" \
 15667 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 15668         gt_cv_have_gettext=yes
 15669       fi
 15671       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 15672         INTLLIBS="-lintl $libintl_extra_libs"
 15673       fi
 15675       if test "$gt_cv_have_gettext" = "yes"; then
 15677 cat >>confdefs.h <<\_ACEOF
 15678 #define HAVE_GETTEXT 1
 15679 _ACEOF
 15681 	# Extract the first word of "msgfmt", so it can be a program name with args.
 15682 set dummy msgfmt; ac_word=$2
 15683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15685 if test "${ac_cv_path_MSGFMT+set}" = set; then
 15686   echo $ECHO_N "(cached) $ECHO_C" >&6
 15687 else
 15688   case "$MSGFMT" in
 15689   /*)
 15690   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 15691   ;;
 15692   *)
 15693   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 15694   for ac_dir in $PATH; do
 15695     test -z "$ac_dir" && ac_dir=.
 15696     if test -f $ac_dir/$ac_word; then
 15697       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 15698 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 15699 	break
 15700       fi
 15701     fi
 15702   done
 15703   IFS="$ac_save_ifs"
 15704   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 15705   ;;
 15706 esac
 15707 fi
 15708 MSGFMT="$ac_cv_path_MSGFMT"
 15709 if test "$MSGFMT" != "no"; then
 15710   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 15711 echo "${ECHO_T}$MSGFMT" >&6; }
 15712 else
 15713   { echo "$as_me:$LINENO: result: no" >&5
 15714 echo "${ECHO_T}no" >&6; }
 15715 fi
 15716 	if test "$MSGFMT" != "no"; then
 15717           glib_save_LIBS="$LIBS"
 15718           LIBS="$LIBS $INTLLIBS"
 15720 for ac_func in dcgettext
 15721 do
 15722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15726   echo $ECHO_N "(cached) $ECHO_C" >&6
 15727 else
 15728   cat >conftest.$ac_ext <<_ACEOF
 15729 /* confdefs.h.  */
 15730 _ACEOF
 15731 cat confdefs.h >>conftest.$ac_ext
 15732 cat >>conftest.$ac_ext <<_ACEOF
 15733 /* end confdefs.h.  */
 15734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15736 #define $ac_func innocuous_$ac_func
 15738 /* System header to define __stub macros and hopefully few prototypes,
 15739     which can conflict with char $ac_func (); below.
 15740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15741     <limits.h> exists even on freestanding compilers.  */
 15743 #ifdef __STDC__
 15744 # include <limits.h>
 15745 #else
 15746 # include <assert.h>
 15747 #endif
 15749 #undef $ac_func
 15751 /* Override any GCC internal prototype to avoid an error.
 15752    Use char because int might match the return type of a GCC
 15753    builtin and then its argument prototype would still apply.  */
 15754 #ifdef __cplusplus
 15755 extern "C"
 15756 #endif
 15757 char $ac_func ();
 15758 /* The GNU C library defines this for functions which it implements
 15759     to always fail with ENOSYS.  Some functions are actually named
 15760     something starting with __ and the normal name is an alias.  */
 15761 #if defined __stub_$ac_func || defined __stub___$ac_func
 15762 choke me
 15763 #endif
 15765 int
 15766 main ()
 15768 return $ac_func ();
 15770   return 0;
 15772 _ACEOF
 15773 rm -f conftest.$ac_objext conftest$ac_exeext
 15774 if { (ac_try="$ac_link"
 15775 case "(($ac_try" in
 15776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15777   *) ac_try_echo=$ac_try;;
 15778 esac
 15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15780   (eval "$ac_link") 2>conftest.er1
 15781   ac_status=$?
 15782   grep -v '^ *+' conftest.er1 >conftest.err
 15783   rm -f conftest.er1
 15784   cat conftest.err >&5
 15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15786   (exit $ac_status); } && {
 15787 	 test -z "$ac_c_werror_flag" ||
 15788 	 test ! -s conftest.err
 15789        } && test -s conftest$ac_exeext &&
 15790        $as_test_x conftest$ac_exeext; then
 15791   eval "$as_ac_var=yes"
 15792 else
 15793   echo "$as_me: failed program was:" >&5
 15794 sed 's/^/| /' conftest.$ac_ext >&5
 15796 	eval "$as_ac_var=no"
 15797 fi
 15799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15800       conftest$ac_exeext conftest.$ac_ext
 15801 fi
 15802 ac_res=`eval echo '${'$as_ac_var'}'`
 15803 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15804 echo "${ECHO_T}$ac_res" >&6; }
 15805 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15806   cat >>confdefs.h <<_ACEOF
 15807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15808 _ACEOF
 15810 fi
 15811 done
 15813 	  MSGFMT_OPTS=
 15814 	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 15815 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
 15816 	  cat >conftest.foo <<_ACEOF
 15818 msgid ""
 15819 msgstr ""
 15820 "Content-Type: text/plain; charset=UTF-8\n"
 15821 "Project-Id-Version: test 1.0\n"
 15822 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 15823 "Last-Translator: test <foo@bar.xx>\n"
 15824 "Language-Team: C <LL@li.org>\n"
 15825 "MIME-Version: 1.0\n"
 15826 "Content-Transfer-Encoding: 8bit\n"
 15828 _ACEOF
 15829 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
 15830   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 15831   ac_status=$?
 15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15833   (exit $ac_status); }; then
 15834   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
 15835 echo "${ECHO_T}yes" >&6; }
 15836 else { echo "$as_me:$LINENO: result: no" >&5
 15837 echo "${ECHO_T}no" >&6; }
 15838 echo "$as_me: failed input was:" >&5
 15839 sed 's/^/| /' conftest.foo >&5
 15840 fi
 15842 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 15843 set dummy gmsgfmt; ac_word=$2
 15844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15846 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 15847   echo $ECHO_N "(cached) $ECHO_C" >&6
 15848 else
 15849   case $GMSGFMT in
 15850   [\\/]* | ?:[\\/]*)
 15851   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 15852   ;;
 15853   *)
 15854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 15855 for as_dir in $PATH
 15856 do
 15857   IFS=$as_save_IFS
 15858   test -z "$as_dir" && as_dir=.
 15859   for ac_exec_ext in '' $ac_executable_extensions; do
 15860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 15861     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 15862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 15863     break 2
 15864   fi
 15865 done
 15866 done
 15867 IFS=$as_save_IFS
 15869   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 15870   ;;
 15871 esac
 15872 fi
 15873 GMSGFMT=$ac_cv_path_GMSGFMT
 15874 if test -n "$GMSGFMT"; then
 15875   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 15876 echo "${ECHO_T}$GMSGFMT" >&6; }
 15877 else
 15878   { echo "$as_me:$LINENO: result: no" >&5
 15879 echo "${ECHO_T}no" >&6; }
 15880 fi
 15883 	  # Extract the first word of "xgettext", so it can be a program name with args.
 15884 set dummy xgettext; ac_word=$2
 15885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15887 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 15888   echo $ECHO_N "(cached) $ECHO_C" >&6
 15889 else
 15890   case "$XGETTEXT" in
 15891   /*)
 15892   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 15893   ;;
 15894   *)
 15895   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 15896   for ac_dir in $PATH; do
 15897     test -z "$ac_dir" && ac_dir=.
 15898     if test -f $ac_dir/$ac_word; then
 15899       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 15900 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 15901 	break
 15902       fi
 15903     fi
 15904   done
 15905   IFS="$ac_save_ifs"
 15906   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 15907   ;;
 15908 esac
 15909 fi
 15910 XGETTEXT="$ac_cv_path_XGETTEXT"
 15911 if test "$XGETTEXT" != ":"; then
 15912   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 15913 echo "${ECHO_T}$XGETTEXT" >&6; }
 15914 else
 15915   { echo "$as_me:$LINENO: result: no" >&5
 15916 echo "${ECHO_T}no" >&6; }
 15917 fi
 15919 	  cat >conftest.$ac_ext <<_ACEOF
 15920 /* confdefs.h.  */
 15921 _ACEOF
 15922 cat confdefs.h >>conftest.$ac_ext
 15923 cat >>conftest.$ac_ext <<_ACEOF
 15924 /* end confdefs.h.  */
 15926 int
 15927 main ()
 15929 extern int _nl_msg_cat_cntr;
 15930 			 return _nl_msg_cat_cntr
 15932   return 0;
 15934 _ACEOF
 15935 rm -f conftest.$ac_objext conftest$ac_exeext
 15936 if { (ac_try="$ac_link"
 15937 case "(($ac_try" in
 15938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15939   *) ac_try_echo=$ac_try;;
 15940 esac
 15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15942   (eval "$ac_link") 2>conftest.er1
 15943   ac_status=$?
 15944   grep -v '^ *+' conftest.er1 >conftest.err
 15945   rm -f conftest.er1
 15946   cat conftest.err >&5
 15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15948   (exit $ac_status); } && {
 15949 	 test -z "$ac_c_werror_flag" ||
 15950 	 test ! -s conftest.err
 15951        } && test -s conftest$ac_exeext &&
 15952        $as_test_x conftest$ac_exeext; then
 15953   CATOBJEXT=.gmo
 15954              DATADIRNAME=share
 15955 else
 15956   echo "$as_me: failed program was:" >&5
 15957 sed 's/^/| /' conftest.$ac_ext >&5
 15959 	case $host in
 15960 	    *-*-solaris*)
 15961 	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 15962 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 15963 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 15964   echo $ECHO_N "(cached) $ECHO_C" >&6
 15965 else
 15966   cat >conftest.$ac_ext <<_ACEOF
 15967 /* confdefs.h.  */
 15968 _ACEOF
 15969 cat confdefs.h >>conftest.$ac_ext
 15970 cat >>conftest.$ac_ext <<_ACEOF
 15971 /* end confdefs.h.  */
 15972 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 15973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15974 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 15976 /* System header to define __stub macros and hopefully few prototypes,
 15977     which can conflict with char bind_textdomain_codeset (); below.
 15978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15979     <limits.h> exists even on freestanding compilers.  */
 15981 #ifdef __STDC__
 15982 # include <limits.h>
 15983 #else
 15984 # include <assert.h>
 15985 #endif
 15987 #undef bind_textdomain_codeset
 15989 /* Override any GCC internal prototype to avoid an error.
 15990    Use char because int might match the return type of a GCC
 15991    builtin and then its argument prototype would still apply.  */
 15992 #ifdef __cplusplus
 15993 extern "C"
 15994 #endif
 15995 char bind_textdomain_codeset ();
 15996 /* The GNU C library defines this for functions which it implements
 15997     to always fail with ENOSYS.  Some functions are actually named
 15998     something starting with __ and the normal name is an alias.  */
 15999 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 16000 choke me
 16001 #endif
 16003 int
 16004 main ()
 16006 return bind_textdomain_codeset ();
 16008   return 0;
 16010 _ACEOF
 16011 rm -f conftest.$ac_objext conftest$ac_exeext
 16012 if { (ac_try="$ac_link"
 16013 case "(($ac_try" in
 16014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 16015   *) ac_try_echo=$ac_try;;
 16016 esac
 16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 16018   (eval "$ac_link") 2>conftest.er1
 16019   ac_status=$?
 16020   grep -v '^ *+' conftest.er1 >conftest.err
 16021   rm -f conftest.er1
 16022   cat conftest.err >&5
 16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16024   (exit $ac_status); } && {
 16025 	 test -z "$ac_c_werror_flag" ||
 16026 	 test ! -s conftest.err
 16027        } && test -s conftest$ac_exeext &&
 16028        $as_test_x conftest$ac_exeext; then
 16029   ac_cv_func_bind_textdomain_codeset=yes
 16030 else
 16031   echo "$as_me: failed program was:" >&5
 16032 sed 's/^/| /' conftest.$ac_ext >&5
 16034 	ac_cv_func_bind_textdomain_codeset=no
 16035 fi
 16037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 16038       conftest$ac_exeext conftest.$ac_ext
 16039 fi
 16040 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 16041 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 16042 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 16043   CATOBJEXT=.gmo
 16044                DATADIRNAME=share
 16045 else
 16046   CATOBJEXT=.mo
 16047                DATADIRNAME=lib
 16048 fi
 16050 	    ;;
 16051 	    *)
 16052 	    CATOBJEXT=.mo
 16053             DATADIRNAME=lib
 16054 	    ;;
 16055 	    esac
 16056 fi
 16058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 16059       conftest$ac_exeext conftest.$ac_ext
 16060           LIBS="$glib_save_LIBS"
 16061 	  INSTOBJEXT=.mo
 16062 	else
 16063 	  gt_cv_have_gettext=no
 16064 	fi
 16065       fi
 16067 fi
 16071     if test "$gt_cv_have_gettext" = "yes" ; then
 16073 cat >>confdefs.h <<\_ACEOF
 16074 #define ENABLE_NLS 1
 16075 _ACEOF
 16077     fi
 16079         if test "$XGETTEXT" != ":"; then
 16080                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 16081         : ;
 16082       else
 16083         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 16084 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 16085         XGETTEXT=":"
 16086       fi
 16087     fi
 16089     # We need to process the po/ directory.
 16090     POSUB=po
 16092     ac_config_commands="$ac_config_commands default-1"
 16095                 for lang in $ALL_LINGUAS; do
 16096       GMOFILES="$GMOFILES $lang.gmo"
 16097       POFILES="$POFILES $lang.po"
 16098     done
 16112    if test "$gt_cv_have_gettext" = "yes"; then
 16113      if test "x$ALL_LINGUAS" = "x"; then
 16114        LINGUAS=
 16115      else
 16116        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 16117 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
 16118        NEW_LINGUAS=
 16119        for presentlang in $ALL_LINGUAS; do
 16120          useit=no
 16121          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 16122            desiredlanguages="$LINGUAS"
 16123          else
 16124            desiredlanguages="$ALL_LINGUAS"
 16125          fi
 16126          for desiredlang in $desiredlanguages; do
 16127  	   # Use the presentlang catalog if desiredlang is
 16128            #   a. equal to presentlang, or
 16129            #   b. a variant of presentlang (because in this case,
 16130            #      presentlang can be used as a fallback for messages
 16131            #      which are not translated in the desiredlang catalog).
 16132            case "$desiredlang" in
 16133              "$presentlang"*) useit=yes;;
 16134            esac
 16135          done
 16136          if test $useit = yes; then
 16137            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 16138          fi
 16139        done
 16140        LINGUAS=$NEW_LINGUAS
 16141        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
 16142 echo "${ECHO_T}$LINGUAS" >&6; }
 16143      fi
 16145           if test -n "$LINGUAS"; then
 16146        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 16147      fi
 16148    fi
 16150             MKINSTALLDIRS=
 16151    if test -n "$ac_aux_dir"; then
 16152      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 16153    fi
 16154    if test -z "$MKINSTALLDIRS"; then
 16155      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 16156    fi
 16159          test -d po || mkdir po
 16160    if test "x$srcdir" != "x."; then
 16161      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 16162        posrcprefix="$srcdir/"
 16163      else
 16164        posrcprefix="../$srcdir/"
 16165      fi
 16166    else
 16167      posrcprefix="../"
 16168    fi
 16169    rm -f po/POTFILES
 16170    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 16171 	< $srcdir/po/POTFILES.in > po/POTFILES
 16174 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
 16176 cat >confcache <<\_ACEOF
 16177 # This file is a shell script that caches the results of configure
 16178 # tests run on this system so they can be shared between configure
 16179 # scripts and configure runs, see configure's option --config-cache.
 16180 # It is not useful on other systems.  If it contains results you don't
 16181 # want to keep, you may remove or edit it.
 16183 # config.status only pays attention to the cache file if you give it
 16184 # the --recheck option to rerun configure.
 16186 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 16187 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 16188 # following values.
 16190 _ACEOF
 16192 # The following way of writing the cache mishandles newlines in values,
 16193 # but we know of no workaround that is simple, portable, and efficient.
 16194 # So, we kill variables containing newlines.
 16195 # Ultrix sh set writes to stderr and can't be redirected directly,
 16196 # and sets the high bit in the cache file unless we assign to the vars.
 16198   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 16199     eval ac_val=\$$ac_var
 16200     case $ac_val in #(
 16201     *${as_nl}*)
 16202       case $ac_var in #(
 16203       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 16204 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 16205       esac
 16206       case $ac_var in #(
 16207       _ | IFS | as_nl) ;; #(
 16208       *) $as_unset $ac_var ;;
 16209       esac ;;
 16210     esac
 16211   done
 16213   (set) 2>&1 |
 16214     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 16215     *${as_nl}ac_space=\ *)
 16216       # `set' does not quote correctly, so add quotes (double-quote
 16217       # substitution turns \\\\ into \\, and sed turns \\ into \).
 16218       sed -n \
 16219 	"s/'/'\\\\''/g;
 16220 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 16221       ;; #(
 16222     *)
 16223       # `set' quotes correctly as required by POSIX, so do not add quotes.
 16224       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 16225       ;;
 16226     esac |
 16227     sort
 16228 ) |
 16229   sed '
 16230      /^ac_cv_env_/b end
 16231      t clear
 16232      :clear
 16233      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 16234      t end
 16235      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 16236      :end' >>confcache
 16237 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 16238   if test -w "$cache_file"; then
 16239     test "x$cache_file" != "x/dev/null" &&
 16240       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 16241 echo "$as_me: updating cache $cache_file" >&6;}
 16242     cat confcache >$cache_file
 16243   else
 16244     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 16245 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 16246   fi
 16247 fi
 16248 rm -f confcache
 16250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 16251 # Let make expand exec_prefix.
 16252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 16254 DEFS=-DHAVE_CONFIG_H
 16256 ac_libobjs=
 16257 ac_ltlibobjs=
 16258 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 16259   # 1. Remove the extension, and $U if already installed.
 16260   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 16261   ac_i=`echo "$ac_i" | sed "$ac_script"`
 16262   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 16263   #    will be set to the directory where LIBOBJS objects are built.
 16264   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 16265   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 16266 done
 16267 LIBOBJS=$ac_libobjs
 16269 LTLIBOBJS=$ac_ltlibobjs
 16272 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 16273   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 16274 Usually this means the macro was only invoked conditionally." >&5
 16275 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 16276 Usually this means the macro was only invoked conditionally." >&2;}
 16277    { (exit 1); exit 1; }; }
 16278 fi
 16279 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 16280   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 16281 Usually this means the macro was only invoked conditionally." >&5
 16282 echo "$as_me: error: conditional \"AMDEP\" was never defined.
 16283 Usually this means the macro was only invoked conditionally." >&2;}
 16284    { (exit 1); exit 1; }; }
 16285 fi
 16286 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 16287   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 16288 Usually this means the macro was only invoked conditionally." >&5
 16289 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 16290 Usually this means the macro was only invoked conditionally." >&2;}
 16291    { (exit 1); exit 1; }; }
 16292 fi
 16293 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 16294   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 16295 Usually this means the macro was only invoked conditionally." >&5
 16296 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 16297 Usually this means the macro was only invoked conditionally." >&2;}
 16298    { (exit 1); exit 1; }; }
 16299 fi
 16300 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 16301   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 16302 Usually this means the macro was only invoked conditionally." >&5
 16303 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 16304 Usually this means the macro was only invoked conditionally." >&2;}
 16305    { (exit 1); exit 1; }; }
 16306 fi
 16307 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
 16308   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
 16309 Usually this means the macro was only invoked conditionally." >&5
 16310 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
 16311 Usually this means the macro was only invoked conditionally." >&2;}
 16312    { (exit 1); exit 1; }; }
 16313 fi
 16314 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
 16315   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
 16316 Usually this means the macro was only invoked conditionally." >&5
 16317 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
 16318 Usually this means the macro was only invoked conditionally." >&2;}
 16319    { (exit 1); exit 1; }; }
 16320 fi
 16321 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
 16322   { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
 16323 Usually this means the macro was only invoked conditionally." >&5
 16324 echo "$as_me: error: conditional \"GUI_ANDROID\" was never defined.
 16325 Usually this means the macro was only invoked conditionally." >&2;}
 16326    { (exit 1); exit 1; }; }
 16327 fi
 16328 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 16329   { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 16330 Usually this means the macro was only invoked conditionally." >&5
 16331 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 16332 Usually this means the macro was only invoked conditionally." >&2;}
 16333    { (exit 1); exit 1; }; }
 16334 fi
 16335 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
 16336   { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
 16337 Usually this means the macro was only invoked conditionally." >&5
 16338 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
 16339 Usually this means the macro was only invoked conditionally." >&2;}
 16340    { (exit 1); exit 1; }; }
 16341 fi
 16342 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 16343   { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 16344 Usually this means the macro was only invoked conditionally." >&5
 16345 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 16346 Usually this means the macro was only invoked conditionally." >&2;}
 16347    { (exit 1); exit 1; }; }
 16348 fi
 16349 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 16350   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 16351 Usually this means the macro was only invoked conditionally." >&5
 16352 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 16353 Usually this means the macro was only invoked conditionally." >&2;}
 16354    { (exit 1); exit 1; }; }
 16355 fi
 16356 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 16357   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 16358 Usually this means the macro was only invoked conditionally." >&5
 16359 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 16360 Usually this means the macro was only invoked conditionally." >&2;}
 16361    { (exit 1); exit 1; }; }
 16362 fi
 16363 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 16364   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 16365 Usually this means the macro was only invoked conditionally." >&5
 16366 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 16367 Usually this means the macro was only invoked conditionally." >&2;}
 16368    { (exit 1); exit 1; }; }
 16369 fi
 16370 if test -z "${VIDEO_EGL_TRUE}" && test -z "${VIDEO_EGL_FALSE}"; then
 16371   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_EGL\" was never defined.
 16372 Usually this means the macro was only invoked conditionally." >&5
 16373 echo "$as_me: error: conditional \"VIDEO_EGL\" was never defined.
 16374 Usually this means the macro was only invoked conditionally." >&2;}
 16375    { (exit 1); exit 1; }; }
 16376 fi
 16377 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 16378   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 16379 Usually this means the macro was only invoked conditionally." >&5
 16380 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 16381 Usually this means the macro was only invoked conditionally." >&2;}
 16382    { (exit 1); exit 1; }; }
 16383 fi
 16384 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 16385   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 16386 Usually this means the macro was only invoked conditionally." >&5
 16387 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
 16388 Usually this means the macro was only invoked conditionally." >&2;}
 16389    { (exit 1); exit 1; }; }
 16390 fi
 16391 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
 16392   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
 16393 Usually this means the macro was only invoked conditionally." >&5
 16394 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
 16395 Usually this means the macro was only invoked conditionally." >&2;}
 16396    { (exit 1); exit 1; }; }
 16397 fi
 16398 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 16399   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 16400 Usually this means the macro was only invoked conditionally." >&5
 16401 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 16402 Usually this means the macro was only invoked conditionally." >&2;}
 16403    { (exit 1); exit 1; }; }
 16404 fi
 16405 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 16406   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 16407 Usually this means the macro was only invoked conditionally." >&5
 16408 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 16409 Usually this means the macro was only invoked conditionally." >&2;}
 16410    { (exit 1); exit 1; }; }
 16411 fi
 16412 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 16413   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 16414 Usually this means the macro was only invoked conditionally." >&5
 16415 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 16416 Usually this means the macro was only invoked conditionally." >&2;}
 16417    { (exit 1); exit 1; }; }
 16418 fi
 16419 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 16420   { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 16421 Usually this means the macro was only invoked conditionally." >&5
 16422 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 16423 Usually this means the macro was only invoked conditionally." >&2;}
 16424    { (exit 1); exit 1; }; }
 16425 fi
 16426 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
 16427   { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
 16428 Usually this means the macro was only invoked conditionally." >&5
 16429 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
 16430 Usually this means the macro was only invoked conditionally." >&2;}
 16431    { (exit 1); exit 1; }; }
 16432 fi
 16433 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
 16434   { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
 16435 Usually this means the macro was only invoked conditionally." >&5
 16436 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
 16437 Usually this means the macro was only invoked conditionally." >&2;}
 16438    { (exit 1); exit 1; }; }
 16439 fi
 16440 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 16441   { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 16442 Usually this means the macro was only invoked conditionally." >&5
 16443 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 16444 Usually this means the macro was only invoked conditionally." >&2;}
 16445    { (exit 1); exit 1; }; }
 16446 fi
 16447 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
 16448   { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
 16449 Usually this means the macro was only invoked conditionally." >&5
 16450 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
 16451 Usually this means the macro was only invoked conditionally." >&2;}
 16452    { (exit 1); exit 1; }; }
 16453 fi
 16454 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 16455   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 16456 Usually this means the macro was only invoked conditionally." >&5
 16457 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 16458 Usually this means the macro was only invoked conditionally." >&2;}
 16459    { (exit 1); exit 1; }; }
 16460 fi
 16461 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 16462   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 16463 Usually this means the macro was only invoked conditionally." >&5
 16464 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 16465 Usually this means the macro was only invoked conditionally." >&2;}
 16466    { (exit 1); exit 1; }; }
 16467 fi
 16469 : ${CONFIG_STATUS=./config.status}
 16470 ac_clean_files_save=$ac_clean_files
 16471 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 16472 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 16473 echo "$as_me: creating $CONFIG_STATUS" >&6;}
 16474 cat >$CONFIG_STATUS <<_ACEOF
 16475 #! $SHELL
 16476 # Generated by $as_me.
 16477 # Run this file to recreate the current configuration.
 16478 # Compiler output produced by configure, useful for debugging
 16479 # configure, is in config.log if it exists.
 16481 debug=false
 16482 ac_cs_recheck=false
 16483 ac_cs_silent=false
 16484 SHELL=\${CONFIG_SHELL-$SHELL}
 16485 _ACEOF
 16487 cat >>$CONFIG_STATUS <<\_ACEOF
 16488 ## --------------------- ##
 16489 ## M4sh Initialization.  ##
 16490 ## --------------------- ##
 16492 # Be more Bourne compatible
 16493 DUALCASE=1; export DUALCASE # for MKS sh
 16494 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 16495   emulate sh
 16496   NULLCMD=:
 16497   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 16498   # is contrary to our usage.  Disable this feature.
 16499   alias -g '${1+"$@"}'='"$@"'
 16500   setopt NO_GLOB_SUBST
 16501 else
 16502   case `(set -o) 2>/dev/null` in
 16503   *posix*) set -o posix ;;
 16504 esac
 16506 fi
 16511 # PATH needs CR
 16512 # Avoid depending upon Character Ranges.
 16513 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 16514 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 16515 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 16516 as_cr_digits='0123456789'
 16517 as_cr_alnum=$as_cr_Letters$as_cr_digits
 16519 # The user is always right.
 16520 if test "${PATH_SEPARATOR+set}" != set; then
 16521   echo "#! /bin/sh" >conf$$.sh
 16522   echo  "exit 0"   >>conf$$.sh
 16523   chmod +x conf$$.sh
 16524   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 16525     PATH_SEPARATOR=';'
 16526   else
 16527     PATH_SEPARATOR=:
 16528   fi
 16529   rm -f conf$$.sh
 16530 fi
 16532 # Support unset when possible.
 16533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 16534   as_unset=unset
 16535 else
 16536   as_unset=false
 16537 fi
 16540 # IFS
 16541 # We need space, tab and new line, in precisely that order.  Quoting is
 16542 # there to prevent editors from complaining about space-tab.
 16543 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 16544 # splitting by setting IFS to empty value.)
 16545 as_nl='
 16547 IFS=" ""	$as_nl"
 16549 # Find who we are.  Look in the path if we contain no directory separator.
 16550 case $0 in
 16551   *[\\/]* ) as_myself=$0 ;;
 16552   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16553 for as_dir in $PATH
 16554 do
 16555   IFS=$as_save_IFS
 16556   test -z "$as_dir" && as_dir=.
 16557   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 16558 done
 16559 IFS=$as_save_IFS
 16561      ;;
 16562 esac
 16563 # We did not find ourselves, most probably we were run as `sh COMMAND'
 16564 # in which case we are not to be found in the path.
 16565 if test "x$as_myself" = x; then
 16566   as_myself=$0
 16567 fi
 16568 if test ! -f "$as_myself"; then
 16569   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 16570   { (exit 1); exit 1; }
 16571 fi
 16573 # Work around bugs in pre-3.0 UWIN ksh.
 16574 for as_var in ENV MAIL MAILPATH
 16575 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 16576 done
 16577 PS1='$ '
 16578 PS2='> '
 16579 PS4='+ '
 16581 # NLS nuisances.
 16582 for as_var in \
 16583   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 16584   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 16585   LC_TELEPHONE LC_TIME
 16586 do
 16587   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 16588     eval $as_var=C; export $as_var
 16589   else
 16590     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 16591   fi
 16592 done
 16594 # Required to use basename.
 16595 if expr a : '\(a\)' >/dev/null 2>&1 &&
 16596    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 16597   as_expr=expr
 16598 else
 16599   as_expr=false
 16600 fi
 16602 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 16603   as_basename=basename
 16604 else
 16605   as_basename=false
 16606 fi
 16609 # Name of the executable.
 16610 as_me=`$as_basename -- "$0" ||
 16611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 16612 	 X"$0" : 'X\(//\)$' \| \
 16613 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 16614 echo X/"$0" |
 16615     sed '/^.*\/\([^/][^/]*\)\/*$/{
 16616 	    s//\1/
 16619 	  /^X\/\(\/\/\)$/{
 16620 	    s//\1/
 16623 	  /^X\/\(\/\).*/{
 16624 	    s//\1/
 16627 	  s/.*/./; q'`
 16629 # CDPATH.
 16630 $as_unset CDPATH
 16634   as_lineno_1=$LINENO
 16635   as_lineno_2=$LINENO
 16636   test "x$as_lineno_1" != "x$as_lineno_2" &&
 16637   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 16639   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 16640   # uniformly replaced by the line number.  The first 'sed' inserts a
 16641   # line-number line after each line using $LINENO; the second 'sed'
 16642   # does the real work.  The second script uses 'N' to pair each
 16643   # line-number line with the line containing $LINENO, and appends
 16644   # trailing '-' during substitution so that $LINENO is not a special
 16645   # case at line end.
 16646   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 16647   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 16648   # E. McMahon (1931-1989) for sed's syntax.  :-)
 16649   sed -n '
 16651     /[$]LINENO/=
 16652   ' <$as_myself |
 16653     sed '
 16654       s/[$]LINENO.*/&-/
 16655       t lineno
 16657       :lineno
 16659       :loop
 16660       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 16661       t loop
 16662       s/-\n.*//
 16663     ' >$as_me.lineno &&
 16664   chmod +x "$as_me.lineno" ||
 16665     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 16666    { (exit 1); exit 1; }; }
 16668   # Don't try to exec as it changes $[0], causing all sort of problems
 16669   # (the dirname of $[0] is not the place where we might find the
 16670   # original and so on.  Autoconf is especially sensitive to this).
 16671   . "./$as_me.lineno"
 16672   # Exit status is that of the last command.
 16673   exit
 16677 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 16678   as_dirname=dirname
 16679 else
 16680   as_dirname=false
 16681 fi
 16683 ECHO_C= ECHO_N= ECHO_T=
 16684 case `echo -n x` in
 16685 -n*)
 16686   case `echo 'x\c'` in
 16687   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 16688   *)   ECHO_C='\c';;
 16689   esac;;
 16690 *)
 16691   ECHO_N='-n';;
 16692 esac
 16694 if expr a : '\(a\)' >/dev/null 2>&1 &&
 16695    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 16696   as_expr=expr
 16697 else
 16698   as_expr=false
 16699 fi
 16701 rm -f conf$$ conf$$.exe conf$$.file
 16702 if test -d conf$$.dir; then
 16703   rm -f conf$$.dir/conf$$.file
 16704 else
 16705   rm -f conf$$.dir
 16706   mkdir conf$$.dir
 16707 fi
 16708 echo >conf$$.file
 16709 if ln -s conf$$.file conf$$ 2>/dev/null; then
 16710   as_ln_s='ln -s'
 16711   # ... but there are two gotchas:
 16712   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 16713   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 16714   # In both cases, we have to default to `cp -p'.
 16715   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 16716     as_ln_s='cp -p'
 16717 elif ln conf$$.file conf$$ 2>/dev/null; then
 16718   as_ln_s=ln
 16719 else
 16720   as_ln_s='cp -p'
 16721 fi
 16722 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 16723 rmdir conf$$.dir 2>/dev/null
 16725 if mkdir -p . 2>/dev/null; then
 16726   as_mkdir_p=:
 16727 else
 16728   test -d ./-p && rmdir ./-p
 16729   as_mkdir_p=false
 16730 fi
 16732 if test -x / >/dev/null 2>&1; then
 16733   as_test_x='test -x'
 16734 else
 16735   if ls -dL / >/dev/null 2>&1; then
 16736     as_ls_L_option=L
 16737   else
 16738     as_ls_L_option=
 16739   fi
 16740   as_test_x='
 16741     eval sh -c '\''
 16742       if test -d "$1"; then
 16743         test -d "$1/.";
 16744       else
 16745 	case $1 in
 16746         -*)set "./$1";;
 16747 	esac;
 16748 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 16749 	???[sx]*):;;*)false;;esac;fi
 16750     '\'' sh
 16752 fi
 16753 as_executable_p=$as_test_x
 16755 # Sed expression to map a string onto a valid CPP name.
 16756 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 16758 # Sed expression to map a string onto a valid variable name.
 16759 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 16762 exec 6>&1
 16764 # Save the log message, to keep $[0] and so on meaningful, and to
 16765 # report actual input values of CONFIG_FILES etc. instead of their
 16766 # values after options handling.
 16767 ac_log="
 16768 This file was extended by $as_me, which was
 16769 generated by GNU Autoconf 2.61.  Invocation command line was
 16771   CONFIG_FILES    = $CONFIG_FILES
 16772   CONFIG_HEADERS  = $CONFIG_HEADERS
 16773   CONFIG_LINKS    = $CONFIG_LINKS
 16774   CONFIG_COMMANDS = $CONFIG_COMMANDS
 16775   $ $0 $@
 16777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 16780 _ACEOF
 16782 cat >>$CONFIG_STATUS <<_ACEOF
 16783 # Files that config.status was made for.
 16784 config_files="$ac_config_files"
 16785 config_headers="$ac_config_headers"
 16786 config_commands="$ac_config_commands"
 16788 _ACEOF
 16790 cat >>$CONFIG_STATUS <<\_ACEOF
 16791 ac_cs_usage="\
 16792 \`$as_me' instantiates files from templates according to the
 16793 current configuration.
 16795 Usage: $0 [OPTIONS] [FILE]...
 16797   -h, --help       print this help, then exit
 16798   -V, --version    print version number and configuration settings, then exit
 16799   -q, --quiet      do not print progress messages
 16800   -d, --debug      don't remove temporary files
 16801       --recheck    update $as_me by reconfiguring in the same conditions
 16802   --file=FILE[:TEMPLATE]
 16803 		   instantiate the configuration file FILE
 16804   --header=FILE[:TEMPLATE]
 16805 		   instantiate the configuration header FILE
 16807 Configuration files:
 16808 $config_files
 16810 Configuration headers:
 16811 $config_headers
 16813 Configuration commands:
 16814 $config_commands
 16816 Report bugs to <bug-autoconf@gnu.org>."
 16818 _ACEOF
 16819 cat >>$CONFIG_STATUS <<_ACEOF
 16820 ac_cs_version="\\
 16821 config.status
 16822 configured by $0, generated by GNU Autoconf 2.61,
 16823   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 16825 Copyright (C) 2006 Free Software Foundation, Inc.
 16826 This config.status script is free software; the Free Software Foundation
 16827 gives unlimited permission to copy, distribute and modify it."
 16829 ac_pwd='$ac_pwd'
 16830 srcdir='$srcdir'
 16831 INSTALL='$INSTALL'
 16832 _ACEOF
 16834 cat >>$CONFIG_STATUS <<\_ACEOF
 16835 # If no file are specified by the user, then we need to provide default
 16836 # value.  By we need to know if files were specified by the user.
 16837 ac_need_defaults=:
 16838 while test $# != 0
 16839 do
 16840   case $1 in
 16841   --*=*)
 16842     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 16843     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 16844     ac_shift=:
 16845     ;;
 16846   *)
 16847     ac_option=$1
 16848     ac_optarg=$2
 16849     ac_shift=shift
 16850     ;;
 16851   esac
 16853   case $ac_option in
 16854   # Handling of the options.
 16855   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 16856     ac_cs_recheck=: ;;
 16857   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 16858     echo "$ac_cs_version"; exit ;;
 16859   --debug | --debu | --deb | --de | --d | -d )
 16860     debug=: ;;
 16861   --file | --fil | --fi | --f )
 16862     $ac_shift
 16863     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 16864     ac_need_defaults=false;;
 16865   --header | --heade | --head | --hea )
 16866     $ac_shift
 16867     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 16868     ac_need_defaults=false;;
 16869   --he | --h)
 16870     # Conflict between --help and --header
 16871     { echo "$as_me: error: ambiguous option: $1
 16872 Try \`$0 --help' for more information." >&2
 16873    { (exit 1); exit 1; }; };;
 16874   --help | --hel | -h )
 16875     echo "$ac_cs_usage"; exit ;;
 16876   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 16877   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 16878     ac_cs_silent=: ;;
 16880   # This is an error.
 16881   -*) { echo "$as_me: error: unrecognized option: $1
 16882 Try \`$0 --help' for more information." >&2
 16883    { (exit 1); exit 1; }; } ;;
 16885   *) ac_config_targets="$ac_config_targets $1"
 16886      ac_need_defaults=false ;;
 16888   esac
 16889   shift
 16890 done
 16892 ac_configure_extra_args=
 16894 if $ac_cs_silent; then
 16895   exec 6>/dev/null
 16896   ac_configure_extra_args="$ac_configure_extra_args --silent"
 16897 fi
 16899 _ACEOF
 16900 cat >>$CONFIG_STATUS <<_ACEOF
 16901 if \$ac_cs_recheck; then
 16902   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 16903   CONFIG_SHELL=$SHELL
 16904   export CONFIG_SHELL
 16905   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 16906 fi
 16908 _ACEOF
 16909 cat >>$CONFIG_STATUS <<\_ACEOF
 16910 exec 5>>config.log
 16912   echo
 16913   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 16914 ## Running $as_me. ##
 16915 _ASBOX
 16916   echo "$ac_log"
 16917 } >&5
 16919 _ACEOF
 16920 cat >>$CONFIG_STATUS <<_ACEOF
 16922 # INIT-COMMANDS
 16924 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 16927 _ACEOF
 16929 cat >>$CONFIG_STATUS <<\_ACEOF
 16931 # Handling of arguments.
 16932 for ac_config_target in $ac_config_targets
 16933 do
 16934   case $ac_config_target in
 16935     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 16936     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 16937     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 16938     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 16939     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 16940     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
 16941     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 16942     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 16943     "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
 16945   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 16946 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 16947    { (exit 1); exit 1; }; };;
 16948   esac
 16949 done
 16952 # If the user did not use the arguments to specify the items to instantiate,
 16953 # then the envvar interface is used.  Set only those that are not.
 16954 # We use the long form for the default assignment because of an extremely
 16955 # bizarre bug on SunOS 4.1.3.
 16956 if $ac_need_defaults; then
 16957   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 16958   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 16959   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 16960 fi
 16962 # Have a temporary directory for convenience.  Make it in the build tree
 16963 # simply because there is no reason against having it here, and in addition,
 16964 # creating and moving files from /tmp can sometimes cause problems.
 16965 # Hook for its removal unless debugging.
 16966 # Note that there is a small window in which the directory will not be cleaned:
 16967 # after its creation but before its name has been assigned to `$tmp'.
 16968 $debug ||
 16970   tmp=
 16971   trap 'exit_status=$?
 16972   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 16973 ' 0
 16974   trap '{ (exit 1); exit 1; }' 1 2 13 15
 16976 # Create a (secure) tmp directory for tmp files.
 16979   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 16980   test -n "$tmp" && test -d "$tmp"
 16981 }  ||
 16983   tmp=./conf$$-$RANDOM
 16984   (umask 077 && mkdir "$tmp")
 16985 } ||
 16987    echo "$me: cannot create a temporary directory in ." >&2
 16988    { (exit 1); exit 1; }
 16992 # Set up the sed scripts for CONFIG_FILES section.
 16995 # No need to generate the scripts if there are no CONFIG_FILES.
 16996 # This happens for instance when ./config.status config.h
 16997 if test -n "$CONFIG_FILES"; then
 16999 _ACEOF
 17003 ac_delim='%!_!# '
 17004 for ac_last_try in false false false false false :; do
 17005   cat >conf$$subs.sed <<_ACEOF
 17006 SHELL!$SHELL$ac_delim
 17007 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 17008 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 17009 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 17010 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 17011 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 17012 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 17013 exec_prefix!$exec_prefix$ac_delim
 17014 prefix!$prefix$ac_delim
 17015 program_transform_name!$program_transform_name$ac_delim
 17016 bindir!$bindir$ac_delim
 17017 sbindir!$sbindir$ac_delim
 17018 libexecdir!$libexecdir$ac_delim
 17019 datarootdir!$datarootdir$ac_delim
 17020 datadir!$datadir$ac_delim
 17021 sysconfdir!$sysconfdir$ac_delim
 17022 sharedstatedir!$sharedstatedir$ac_delim
 17023 localstatedir!$localstatedir$ac_delim
 17024 includedir!$includedir$ac_delim
 17025 oldincludedir!$oldincludedir$ac_delim
 17026 docdir!$docdir$ac_delim
 17027 infodir!$infodir$ac_delim
 17028 htmldir!$htmldir$ac_delim
 17029 dvidir!$dvidir$ac_delim
 17030 pdfdir!$pdfdir$ac_delim
 17031 psdir!$psdir$ac_delim
 17032 libdir!$libdir$ac_delim
 17033 localedir!$localedir$ac_delim
 17034 mandir!$mandir$ac_delim
 17035 DEFS!$DEFS$ac_delim
 17036 ECHO_C!$ECHO_C$ac_delim
 17037 ECHO_N!$ECHO_N$ac_delim
 17038 ECHO_T!$ECHO_T$ac_delim
 17039 LIBS!$LIBS$ac_delim
 17040 build_alias!$build_alias$ac_delim
 17041 host_alias!$host_alias$ac_delim
 17042 target_alias!$target_alias$ac_delim
 17043 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 17044 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 17045 INSTALL_DATA!$INSTALL_DATA$ac_delim
 17046 CYGPATH_W!$CYGPATH_W$ac_delim
 17047 PACKAGE!$PACKAGE$ac_delim
 17048 VERSION!$VERSION$ac_delim
 17049 ACLOCAL!$ACLOCAL$ac_delim
 17050 AUTOCONF!$AUTOCONF$ac_delim
 17051 AUTOMAKE!$AUTOMAKE$ac_delim
 17052 AUTOHEADER!$AUTOHEADER$ac_delim
 17053 MAKEINFO!$MAKEINFO$ac_delim
 17054 install_sh!$install_sh$ac_delim
 17055 STRIP!$STRIP$ac_delim
 17056 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 17057 mkdir_p!$mkdir_p$ac_delim
 17058 AWK!$AWK$ac_delim
 17059 SET_MAKE!$SET_MAKE$ac_delim
 17060 am__leading_dot!$am__leading_dot$ac_delim
 17061 AMTAR!$AMTAR$ac_delim
 17062 am__tar!$am__tar$ac_delim
 17063 am__untar!$am__untar$ac_delim
 17064 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 17065 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 17066 MAINT!$MAINT$ac_delim
 17067 build!$build$ac_delim
 17068 build_cpu!$build_cpu$ac_delim
 17069 build_vendor!$build_vendor$ac_delim
 17070 build_os!$build_os$ac_delim
 17071 host!$host$ac_delim
 17072 host_cpu!$host_cpu$ac_delim
 17073 host_vendor!$host_vendor$ac_delim
 17074 host_os!$host_os$ac_delim
 17075 CC!$CC$ac_delim
 17076 CFLAGS!$CFLAGS$ac_delim
 17077 LDFLAGS!$LDFLAGS$ac_delim
 17078 CPPFLAGS!$CPPFLAGS$ac_delim
 17079 ac_ct_CC!$ac_ct_CC$ac_delim
 17080 EXEEXT!$EXEEXT$ac_delim
 17081 OBJEXT!$OBJEXT$ac_delim
 17082 DEPDIR!$DEPDIR$ac_delim
 17083 am__include!$am__include$ac_delim
 17084 am__quote!$am__quote$ac_delim
 17085 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 17086 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 17087 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 17088 CCDEPMODE!$CCDEPMODE$ac_delim
 17089 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 17090 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 17091 CPP!$CPP$ac_delim
 17092 CC!$CC$ac_delim
 17093 CFLAGS!$CFLAGS$ac_delim
 17094 CPPFLAGS!$CPPFLAGS$ac_delim
 17095 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
 17096 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
 17097 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
 17098 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
 17099 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
 17100 CPP!$CPP$ac_delim
 17101 CPPFLAGS!$CPPFLAGS$ac_delim
 17102 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
 17103 _ACEOF
 17105   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 17106     break
 17107   elif $ac_last_try; then
 17108     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 17109 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 17110    { (exit 1); exit 1; }; }
 17111   else
 17112     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 17113   fi
 17114 done
 17116 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 17117 if test -n "$ac_eof"; then
 17118   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 17119   ac_eof=`expr $ac_eof + 1`
 17120 fi
 17122 cat >>$CONFIG_STATUS <<_ACEOF
 17123 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 17124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 17125 _ACEOF
 17126 sed '
 17127 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 17128 s/^/s,@/; s/!/@,|#_!!_#|/
 17129 :n
 17130 t n
 17131 s/'"$ac_delim"'$/,g/; t
 17132 s/$/\\/; p
 17133 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 17134 ' >>$CONFIG_STATUS <conf$$subs.sed
 17135 rm -f conf$$subs.sed
 17136 cat >>$CONFIG_STATUS <<_ACEOF
 17137 CEOF$ac_eof
 17138 _ACEOF
 17141 ac_delim='%!_!# '
 17142 for ac_last_try in false false false false false :; do
 17143   cat >conf$$subs.sed <<_ACEOF
 17144 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
 17145 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
 17146 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
 17147 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
 17148 OBJC!$OBJC$ac_delim
 17149 OBJCFLAGS!$OBJCFLAGS$ac_delim
 17150 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
 17151 SED!$SED$ac_delim
 17152 CCAS!$CCAS$ac_delim
 17153 CCASFLAGS!$CCASFLAGS$ac_delim
 17154 RANLIB!$RANLIB$ac_delim
 17155 GREP!$GREP$ac_delim
 17156 EGREP!$EGREP$ac_delim
 17157 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
 17158 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
 17159 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
 17160 POD2MAN!$POD2MAN$ac_delim
 17161 POD2HTML!$POD2HTML$ac_delim
 17162 ANT!$ANT$ac_delim
 17163 ANDROID_ABI!$ANDROID_ABI$ac_delim
 17164 ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
 17165 ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
 17166 ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
 17167 ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
 17168 ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
 17169 GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
 17170 GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
 17171 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
 17172 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
 17173 SOEXT!$SOEXT$ac_delim
 17174 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
 17175 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
 17176 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
 17177 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
 17178 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
 17179 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
 17180 PKG_CONFIG!$PKG_CONFIG$ac_delim
 17181 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
 17182 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
 17183 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
 17184 GLIB_LIBS!$GLIB_LIBS$ac_delim
 17185 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
 17186 GTK_LIBS!$GTK_LIBS$ac_delim
 17187 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
 17188 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
 17189 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
 17190 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
 17191 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
 17192 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
 17193 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
 17194 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
 17195 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
 17196 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
 17197 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
 17198 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
 17199 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
 17200 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
 17201 VIDEO_EGL_TRUE!$VIDEO_EGL_TRUE$ac_delim
 17202 VIDEO_EGL_FALSE!$VIDEO_EGL_FALSE$ac_delim
 17203 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
 17204 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
 17205 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
 17206 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
 17207 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
 17208 SDL_LIBS!$SDL_LIBS$ac_delim
 17209 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
 17210 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
 17211 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
 17212 PULSE_LIBS!$PULSE_LIBS$ac_delim
 17213 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
 17214 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
 17215 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
 17216 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
 17217 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
 17218 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
 17219 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
 17220 ALSA_LIBS!$ALSA_LIBS$ac_delim
 17221 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
 17222 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
 17223 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
 17224 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
 17225 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
 17226 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
 17227 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
 17228 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
 17229 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
 17230 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
 17231 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
 17232 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
 17233 SHCC!$SHCC$ac_delim
 17234 SHLD!$SHLD$ac_delim
 17235 SHOBJCOPY!$SHOBJCOPY$ac_delim
 17236 ARMCC!$ARMCC$ac_delim
 17237 ARMLD!$ARMLD$ac_delim
 17238 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
 17239 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
 17240 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
 17241 _ACEOF
 17243   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 17244     break
 17245   elif $ac_last_try; then
 17246     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 17247 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 17248    { (exit 1); exit 1; }; }
 17249   else
 17250     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 17251   fi
 17252 done
 17254 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 17255 if test -n "$ac_eof"; then
 17256   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 17257   ac_eof=`expr $ac_eof + 1`
 17258 fi
 17260 cat >>$CONFIG_STATUS <<_ACEOF
 17261 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 17262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 17263 _ACEOF
 17264 sed '
 17265 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 17266 s/^/s,@/; s/!/@,|#_!!_#|/
 17267 :n
 17268 t n
 17269 s/'"$ac_delim"'$/,g/; t
 17270 s/$/\\/; p
 17271 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 17272 ' >>$CONFIG_STATUS <conf$$subs.sed
 17273 rm -f conf$$subs.sed
 17274 cat >>$CONFIG_STATUS <<_ACEOF
 17275 CEOF$ac_eof
 17276 _ACEOF
 17279 ac_delim='%!_!# '
 17280 for ac_last_try in false false false false false :; do
 17281   cat >conf$$subs.sed <<_ACEOF
 17282 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
 17283 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
 17284 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
 17285 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 17286 USE_NLS!$USE_NLS$ac_delim
 17287 MSGFMT!$MSGFMT$ac_delim
 17288 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
 17289 GMSGFMT!$GMSGFMT$ac_delim
 17290 XGETTEXT!$XGETTEXT$ac_delim
 17291 CATALOGS!$CATALOGS$ac_delim
 17292 CATOBJEXT!$CATOBJEXT$ac_delim
 17293 DATADIRNAME!$DATADIRNAME$ac_delim
 17294 GMOFILES!$GMOFILES$ac_delim
 17295 INSTOBJEXT!$INSTOBJEXT$ac_delim
 17296 INTLLIBS!$INTLLIBS$ac_delim
 17297 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
 17298 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
 17299 POFILES!$POFILES$ac_delim
 17300 POSUB!$POSUB$ac_delim
 17301 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 17302 LIBOBJS!$LIBOBJS$ac_delim
 17303 LTLIBOBJS!$LTLIBOBJS$ac_delim
 17304 _ACEOF
 17306   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
 17307     break
 17308   elif $ac_last_try; then
 17309     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 17310 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 17311    { (exit 1); exit 1; }; }
 17312   else
 17313     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 17314   fi
 17315 done
 17317 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 17318 if test -n "$ac_eof"; then
 17319   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 17320   ac_eof=`expr $ac_eof + 1`
 17321 fi
 17323 cat >>$CONFIG_STATUS <<_ACEOF
 17324 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
 17325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 17326 _ACEOF
 17327 sed '
 17328 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 17329 s/^/s,@/; s/!/@,|#_!!_#|/
 17330 :n
 17331 t n
 17332 s/'"$ac_delim"'$/,g/; t
 17333 s/$/\\/; p
 17334 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 17335 ' >>$CONFIG_STATUS <conf$$subs.sed
 17336 rm -f conf$$subs.sed
 17337 cat >>$CONFIG_STATUS <<_ACEOF
 17338 :end
 17339 s/|#_!!_#|//g
 17340 CEOF$ac_eof
 17341 _ACEOF
 17344 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 17345 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 17346 # trailing colons and then remove the whole line if VPATH becomes empty
 17347 # (actually we leave an empty line to preserve line numbers).
 17348 if test "x$srcdir" = x.; then
 17349   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 17350 s/:*\$(srcdir):*/:/
 17351 s/:*\${srcdir}:*/:/
 17352 s/:*@srcdir@:*/:/
 17353 s/^\([^=]*=[	 ]*\):*/\1/
 17354 s/:*$//
 17355 s/^[^=]*=[	 ]*$//
 17356 }'
 17357 fi
 17359 cat >>$CONFIG_STATUS <<\_ACEOF
 17360 fi # test -n "$CONFIG_FILES"
 17363 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 17364 do
 17365   case $ac_tag in
 17366   :[FHLC]) ac_mode=$ac_tag; continue;;
 17367   esac
 17368   case $ac_mode$ac_tag in
 17369   :[FHL]*:*);;
 17370   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 17371 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 17372    { (exit 1); exit 1; }; };;
 17373   :[FH]-) ac_tag=-:-;;
 17374   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 17375   esac
 17376   ac_save_IFS=$IFS
 17377   IFS=:
 17378   set x $ac_tag
 17379   IFS=$ac_save_IFS
 17380   shift
 17381   ac_file=$1
 17382   shift
 17384   case $ac_mode in
 17385   :L) ac_source=$1;;
 17386   :[FH])
 17387     ac_file_inputs=
 17388     for ac_f
 17389     do
 17390       case $ac_f in
 17391       -) ac_f="$tmp/stdin";;
 17392       *) # Look for the file first in the build tree, then in the source tree
 17393 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 17394 	 # because $ac_f cannot contain `:'.
 17395 	 test -f "$ac_f" ||
 17396 	   case $ac_f in
 17397 	   [\\/$]*) false;;
 17398 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 17399 	   esac ||
 17400 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 17401 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 17402    { (exit 1); exit 1; }; };;
 17403       esac
 17404       ac_file_inputs="$ac_file_inputs $ac_f"
 17405     done
 17407     # Let's still pretend it is `configure' which instantiates (i.e., don't
 17408     # use $as_me), people would be surprised to read:
 17409     #    /* config.h.  Generated by config.status.  */
 17410     configure_input="Generated from "`IFS=:
 17411 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 17412     if test x"$ac_file" != x-; then
 17413       configure_input="$ac_file.  $configure_input"
 17414       { echo "$as_me:$LINENO: creating $ac_file" >&5
 17415 echo "$as_me: creating $ac_file" >&6;}
 17416     fi
 17418     case $ac_tag in
 17419     *:-:* | *:-) cat >"$tmp/stdin";;
 17420     esac
 17421     ;;
 17422   esac
 17424   ac_dir=`$as_dirname -- "$ac_file" ||
 17425 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17426 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 17427 	 X"$ac_file" : 'X\(//\)$' \| \
 17428 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 17429 echo X"$ac_file" |
 17430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17431 	    s//\1/
 17434 	  /^X\(\/\/\)[^/].*/{
 17435 	    s//\1/
 17438 	  /^X\(\/\/\)$/{
 17439 	    s//\1/
 17442 	  /^X\(\/\).*/{
 17443 	    s//\1/
 17446 	  s/.*/./; q'`
 17447   { as_dir="$ac_dir"
 17448   case $as_dir in #(
 17449   -*) as_dir=./$as_dir;;
 17450   esac
 17451   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17452     as_dirs=
 17453     while :; do
 17454       case $as_dir in #(
 17455       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17456       *) as_qdir=$as_dir;;
 17457       esac
 17458       as_dirs="'$as_qdir' $as_dirs"
 17459       as_dir=`$as_dirname -- "$as_dir" ||
 17460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17461 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17462 	 X"$as_dir" : 'X\(//\)$' \| \
 17463 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17464 echo X"$as_dir" |
 17465     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17466 	    s//\1/
 17469 	  /^X\(\/\/\)[^/].*/{
 17470 	    s//\1/
 17473 	  /^X\(\/\/\)$/{
 17474 	    s//\1/
 17477 	  /^X\(\/\).*/{
 17478 	    s//\1/
 17481 	  s/.*/./; q'`
 17482       test -d "$as_dir" && break
 17483     done
 17484     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17485   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17486 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17487    { (exit 1); exit 1; }; }; }
 17488   ac_builddir=.
 17490 case "$ac_dir" in
 17491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 17492 *)
 17493   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 17494   # A ".." for each directory in $ac_dir_suffix.
 17495   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 17496   case $ac_top_builddir_sub in
 17497   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 17498   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 17499   esac ;;
 17500 esac
 17501 ac_abs_top_builddir=$ac_pwd
 17502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 17503 # for backward compatibility:
 17504 ac_top_builddir=$ac_top_build_prefix
 17506 case $srcdir in
 17507   .)  # We are building in place.
 17508     ac_srcdir=.
 17509     ac_top_srcdir=$ac_top_builddir_sub
 17510     ac_abs_top_srcdir=$ac_pwd ;;
 17511   [\\/]* | ?:[\\/]* )  # Absolute name.
 17512     ac_srcdir=$srcdir$ac_dir_suffix;
 17513     ac_top_srcdir=$srcdir
 17514     ac_abs_top_srcdir=$srcdir ;;
 17515   *) # Relative name.
 17516     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 17517     ac_top_srcdir=$ac_top_build_prefix$srcdir
 17518     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 17519 esac
 17520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 17523   case $ac_mode in
 17524   :F)
 17526   # CONFIG_FILE
 17529   case $INSTALL in
 17530   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 17531   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 17532   esac
 17533 _ACEOF
 17535 cat >>$CONFIG_STATUS <<\_ACEOF
 17536 # If the template does not know about datarootdir, expand it.
 17537 # FIXME: This hack should be removed a few years after 2.60.
 17538 ac_datarootdir_hack=; ac_datarootdir_seen=
 17540 case `sed -n '/datarootdir/ {
 17544 /@datadir@/p
 17545 /@docdir@/p
 17546 /@infodir@/p
 17547 /@localedir@/p
 17548 /@mandir@/p
 17549 ' $ac_file_inputs` in
 17550 *datarootdir*) ac_datarootdir_seen=yes;;
 17551 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 17552   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 17553 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 17554 _ACEOF
 17555 cat >>$CONFIG_STATUS <<_ACEOF
 17556   ac_datarootdir_hack='
 17557   s&@datadir@&$datadir&g
 17558   s&@docdir@&$docdir&g
 17559   s&@infodir@&$infodir&g
 17560   s&@localedir@&$localedir&g
 17561   s&@mandir@&$mandir&g
 17562     s&\\\${datarootdir}&$datarootdir&g' ;;
 17563 esac
 17564 _ACEOF
 17566 # Neutralize VPATH when `$srcdir' = `.'.
 17567 # Shell code in configure.ac might set extrasub.
 17568 # FIXME: do we really want to maintain this feature?
 17569 cat >>$CONFIG_STATUS <<_ACEOF
 17570   sed "$ac_vpsub
 17571 $extrasub
 17572 _ACEOF
 17573 cat >>$CONFIG_STATUS <<\_ACEOF
 17574 :t
 17575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 17576 s&@configure_input@&$configure_input&;t t
 17577 s&@top_builddir@&$ac_top_builddir_sub&;t t
 17578 s&@srcdir@&$ac_srcdir&;t t
 17579 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 17580 s&@top_srcdir@&$ac_top_srcdir&;t t
 17581 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 17582 s&@builddir@&$ac_builddir&;t t
 17583 s&@abs_builddir@&$ac_abs_builddir&;t t
 17584 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 17585 s&@INSTALL@&$ac_INSTALL&;t t
 17586 $ac_datarootdir_hack
 17587 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
 17589 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 17590   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 17591   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 17592   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 17593 which seems to be undefined.  Please make sure it is defined." >&5
 17594 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 17595 which seems to be undefined.  Please make sure it is defined." >&2;}
 17597   rm -f "$tmp/stdin"
 17598   case $ac_file in
 17599   -) cat "$tmp/out"; rm -f "$tmp/out";;
 17600   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 17601   esac
 17602  ;;
 17603   :H)
 17605   # CONFIG_HEADER
 17607 _ACEOF
 17609 # Transform confdefs.h into a sed script `conftest.defines', that
 17610 # substitutes the proper values into config.h.in to produce config.h.
 17611 rm -f conftest.defines conftest.tail
 17612 # First, append a space to every undef/define line, to ease matching.
 17613 echo 's/$/ /' >conftest.defines
 17614 # Then, protect against being on the right side of a sed subst, or in
 17615 # an unquoted here document, in config.status.  If some macros were
 17616 # called several times there might be several #defines for the same
 17617 # symbol, which is useless.  But do not sort them, since the last
 17618 # AC_DEFINE must be honored.
 17619 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 17620 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 17621 # NAME is the cpp macro being defined, VALUE is the value it is being given.
 17622 # PARAMS is the parameter list in the macro definition--in most cases, it's
 17623 # just an empty string.
 17624 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
 17625 ac_dB='\\)[	 (].*,\\1define\\2'
 17626 ac_dC=' '
 17627 ac_dD=' ,'
 17629 uniq confdefs.h |
 17630   sed -n '
 17631 	t rset
 17632 	:rset
 17633 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
 17634 	t ok
 17636 	:ok
 17637 	s/[\\&,]/\\&/g
 17638 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 17639 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 17640   ' >>conftest.defines
 17642 # Remove the space that was appended to ease matching.
 17643 # Then replace #undef with comments.  This is necessary, for
 17644 # example, in the case of _POSIX_SOURCE, which is predefined and required
 17645 # on some systems where configure will not decide to define it.
 17646 # (The regexp can be short, since the line contains either #define or #undef.)
 17647 echo 's/ $//
 17648 s,^[	 #]*u.*,/* & */,' >>conftest.defines
 17650 # Break up conftest.defines:
 17651 ac_max_sed_lines=50
 17653 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 17654 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 17655 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 17656 # et cetera.
 17657 ac_in='$ac_file_inputs'
 17658 ac_out='"$tmp/out1"'
 17659 ac_nxt='"$tmp/out2"'
 17661 while :
 17662 do
 17663   # Write a here document:
 17664     cat >>$CONFIG_STATUS <<_ACEOF
 17665     # First, check the format of the line:
 17666     cat >"\$tmp/defines.sed" <<\\CEOF
 17667 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
 17668 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
 17670 :def
 17671 _ACEOF
 17672   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 17673   echo 'CEOF
 17674     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 17675   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 17676   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 17677   grep . conftest.tail >/dev/null || break
 17678   rm -f conftest.defines
 17679   mv conftest.tail conftest.defines
 17680 done
 17681 rm -f conftest.defines conftest.tail
 17683 echo "ac_result=$ac_in" >>$CONFIG_STATUS
 17684 cat >>$CONFIG_STATUS <<\_ACEOF
 17685   if test x"$ac_file" != x-; then
 17686     echo "/* $configure_input  */" >"$tmp/config.h"
 17687     cat "$ac_result" >>"$tmp/config.h"
 17688     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 17689       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 17690 echo "$as_me: $ac_file is unchanged" >&6;}
 17691     else
 17692       rm -f $ac_file
 17693       mv "$tmp/config.h" $ac_file
 17694     fi
 17695   else
 17696     echo "/* $configure_input  */"
 17697     cat "$ac_result"
 17698   fi
 17699   rm -f "$tmp/out12"
 17700 # Compute $ac_file's index in $config_headers.
 17701 _am_stamp_count=1
 17702 for _am_header in $config_headers :; do
 17703   case $_am_header in
 17704     $ac_file | $ac_file:* )
 17705       break ;;
 17706     * )
 17707       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 17708   esac
 17709 done
 17710 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 17711 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17712 	 X$ac_file : 'X\(//\)[^/]' \| \
 17713 	 X$ac_file : 'X\(//\)$' \| \
 17714 	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 17715 echo X$ac_file |
 17716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17717 	    s//\1/
 17720 	  /^X\(\/\/\)[^/].*/{
 17721 	    s//\1/
 17724 	  /^X\(\/\/\)$/{
 17725 	    s//\1/
 17728 	  /^X\(\/\).*/{
 17729 	    s//\1/
 17732 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 17733  ;;
 17735   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 17736 echo "$as_me: executing $ac_file commands" >&6;}
 17737  ;;
 17738   esac
 17741   case $ac_file$ac_mode in
 17742     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 17743   # Strip MF so we end up with the name of the file.
 17744   mf=`echo "$mf" | sed -e 's/:.*$//'`
 17745   # Check whether this is an Automake generated Makefile or not.
 17746   # We used to match only the files named `Makefile.in', but
 17747   # some people rename them; so instead we look at the file content.
 17748   # Grep'ing the first line is not enough: some people post-process
 17749   # each Makefile.in and add a new line on top of each file to say so.
 17750   # So let's grep whole file.
 17751   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 17752     dirpart=`$as_dirname -- "$mf" ||
 17753 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17754 	 X"$mf" : 'X\(//\)[^/]' \| \
 17755 	 X"$mf" : 'X\(//\)$' \| \
 17756 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 17757 echo X"$mf" |
 17758     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17759 	    s//\1/
 17762 	  /^X\(\/\/\)[^/].*/{
 17763 	    s//\1/
 17766 	  /^X\(\/\/\)$/{
 17767 	    s//\1/
 17770 	  /^X\(\/\).*/{
 17771 	    s//\1/
 17774 	  s/.*/./; q'`
 17775   else
 17776     continue
 17777   fi
 17778   # Extract the definition of DEPDIR, am__include, and am__quote
 17779   # from the Makefile without running `make'.
 17780   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 17781   test -z "$DEPDIR" && continue
 17782   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 17783   test -z "am__include" && continue
 17784   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 17785   # When using ansi2knr, U may be empty or an underscore; expand it
 17786   U=`sed -n 's/^U = //p' < "$mf"`
 17787   # Find all dependency output files, they are included files with
 17788   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 17789   # simplest approach to changing $(DEPDIR) to its actual value in the
 17790   # expansion.
 17791   for file in `sed -n "
 17792     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 17793        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 17794     # Make sure the directory exists.
 17795     test -f "$dirpart/$file" && continue
 17796     fdir=`$as_dirname -- "$file" ||
 17797 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17798 	 X"$file" : 'X\(//\)[^/]' \| \
 17799 	 X"$file" : 'X\(//\)$' \| \
 17800 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 17801 echo X"$file" |
 17802     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17803 	    s//\1/
 17806 	  /^X\(\/\/\)[^/].*/{
 17807 	    s//\1/
 17810 	  /^X\(\/\/\)$/{
 17811 	    s//\1/
 17814 	  /^X\(\/\).*/{
 17815 	    s//\1/
 17818 	  s/.*/./; q'`
 17819     { as_dir=$dirpart/$fdir
 17820   case $as_dir in #(
 17821   -*) as_dir=./$as_dir;;
 17822   esac
 17823   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17824     as_dirs=
 17825     while :; do
 17826       case $as_dir in #(
 17827       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17828       *) as_qdir=$as_dir;;
 17829       esac
 17830       as_dirs="'$as_qdir' $as_dirs"
 17831       as_dir=`$as_dirname -- "$as_dir" ||
 17832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17833 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17834 	 X"$as_dir" : 'X\(//\)$' \| \
 17835 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17836 echo X"$as_dir" |
 17837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17838 	    s//\1/
 17841 	  /^X\(\/\/\)[^/].*/{
 17842 	    s//\1/
 17845 	  /^X\(\/\/\)$/{
 17846 	    s//\1/
 17849 	  /^X\(\/\).*/{
 17850 	    s//\1/
 17853 	  s/.*/./; q'`
 17854       test -d "$as_dir" && break
 17855     done
 17856     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17857   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17858 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17859    { (exit 1); exit 1; }; }; }
 17860     # echo "creating $dirpart/$file"
 17861     echo '# dummy' > "$dirpart/$file"
 17862   done
 17863 done
 17864  ;;
 17865     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 17866         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 17867       esac ;;
 17869   esac
 17870 done # for ac_tag
 17873 { (exit 0); exit 0; }
 17874 _ACEOF
 17875 chmod +x $CONFIG_STATUS
 17876 ac_clean_files=$ac_clean_files_save
 17879 # configure is writing to config.log, and then calls config.status.
 17880 # config.status does its own redirection, appending to config.log.
 17881 # Unfortunately, on DOS this fails, as config.log is still kept open
 17882 # by configure, so config.status won't be able to write to it; its
 17883 # output is simply discarded.  So we exec the FD to /dev/null,
 17884 # effectively closing config.log, so it can be properly (re)opened and
 17885 # appended to by config.status.  When coming back to configure, we
 17886 # need to make the FD available again.
 17887 if test "$no_create" != yes; then
 17888   ac_cs_success=:
 17889   ac_config_status_args=
 17890   test "$silent" = yes &&
 17891     ac_config_status_args="$ac_config_status_args --quiet"
 17892   exec 5>/dev/null
 17893   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 17894   exec 5>>config.log
 17895   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 17896   # would make configure fail if this is the last instruction.
 17897   $ac_cs_success || { (exit 1); exit 1; }
 17898 fi
 17900 { as_dir=test/sh4
 17901   case $as_dir in #(
 17902   -*) as_dir=./$as_dir;;
 17903   esac
 17904   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17905     as_dirs=
 17906     while :; do
 17907       case $as_dir in #(
 17908       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17909       *) as_qdir=$as_dir;;
 17910       esac
 17911       as_dirs="'$as_qdir' $as_dirs"
 17912       as_dir=`$as_dirname -- "$as_dir" ||
 17913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17914 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17915 	 X"$as_dir" : 'X\(//\)$' \| \
 17916 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17917 echo X"$as_dir" |
 17918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17919 	    s//\1/
 17922 	  /^X\(\/\/\)[^/].*/{
 17923 	    s//\1/
 17926 	  /^X\(\/\/\)$/{
 17927 	    s//\1/
 17930 	  /^X\(\/\).*/{
 17931 	    s//\1/
 17934 	  s/.*/./; q'`
 17935       test -d "$as_dir" && break
 17936     done
 17937     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17938   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17940    { (exit 1); exit 1; }; }; }
 17943 echo
 17944 echo "Configuration complete"
 17945 echo
 17947 if test "x$UI_DRIVER" = x; then
 17948   echo "  User interface: none"
 17949 else
 17950   echo "  User interface: $UI_DRIVER"
 17951 fi
 17953 if test "x$SH4_TRANSLATOR" = "x"; then
 17954   echo "  SH4 translator: none (emulation core only)"
 17955 else
 17956   echo "  SH4 translator: $SH4_TRANSLATOR"
 17957 fi
 17959 if test "x$VIDEO_DRIVERS" = "x"; then
 17960    echo "  Video drivers: none (no supported GL found)"
 17961 else
 17962    echo "  Video drivers: $VIDEO_DRIVERS"
 17963 fi
 17965 if test "x$AUDIO_DRIVERS" = "x"; then
 17966    echo "  Audio drivers: none (no supported output devices found)"
 17967 else
 17968    echo "  Audio drivers: $AUDIO_DRIVERS"
 17969 fi
 17971 if test "x$INPUT_DRIVERS" = "x"; then
 17972    echo "  Input drivers: none (no supported input devices found)"
 17973 else
 17974    echo "  Input drivers: $INPUT_DRIVERS"
 17975 fi
 17977 if test "x$CDROM_DRIVER" = "x"; then
 17978    echo "  CD-ROM driver: none (no supported cd-rom devices found)"
 17979 else
 17980    echo "  CD-ROM driver:  $CDROM_DRIVER"
 17981 fi
.