Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1115:90292b2f2243
prev1113:174fa8e137b6
next1147:e04e4af64626
author nkeynes
date Mon Nov 08 14:12:10 2010 +1000 (13 years ago)
permissions -rwxr-xr-x
last change Add boolean config type
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 CC
   678 CFLAGS
   679 LDFLAGS
   680 CPPFLAGS
   681 ac_ct_CC
   682 EXEEXT
   683 OBJEXT
   684 DEPDIR
   685 am__include
   686 am__quote
   687 AMDEP_TRUE
   688 AMDEP_FALSE
   689 AMDEPBACKSLASH
   690 CCDEPMODE
   691 am__fastdepCC_TRUE
   692 am__fastdepCC_FALSE
   693 OBJC
   694 OBJCFLAGS
   695 ac_ct_OBJC
   696 SED
   697 CCAS
   698 CCASFLAGS
   699 CPP
   700 GREP
   701 EGREP
   702 build
   703 build_cpu
   704 build_vendor
   705 build_os
   706 host
   707 host_cpu
   708 host_vendor
   709 host_os
   710 OBJCDEPMODE
   711 am__fastdepOBJC_TRUE
   712 am__fastdepOBJC_FALSE
   713 POD2MAN
   714 POD2HTML
   715 GUI_COCOA_TRUE
   716 GUI_COCOA_FALSE
   717 SOEXT
   718 PLUGINCFLAGS
   719 PLUGINLDFLAGS
   720 LXDREAMLDFLAGS
   721 BUILD_SHARED_TRUE
   722 BUILD_SHARED_FALSE
   723 LXDREAMCPPFLAGS
   724 PKG_CONFIG
   725 LIBPNG_CFLAGS
   726 LIBPNG_LIBS
   727 GLIB_CFLAGS
   728 GLIB_LIBS
   729 GTK_CFLAGS
   730 GTK_LIBS
   731 GUI_GTK_TRUE
   732 GUI_GTK_FALSE
   733 LIBISOFS_CFLAGS
   734 LIBISOFS_LIBS
   735 LIBGL_CFLAGS
   736 LIBGL_LIBS
   737 VIDEO_OSMESA_TRUE
   738 VIDEO_OSMESA_FALSE
   739 VIDEO_GLX_TRUE
   740 VIDEO_GLX_FALSE
   741 VIDEO_NSGL_TRUE
   742 VIDEO_NSGL_FALSE
   743 BUILD_SH4X86_TRUE
   744 BUILD_SH4X86_FALSE
   745 AUDIO_OSX_TRUE
   746 AUDIO_OSX_FALSE
   747 SDL_CFLAGS
   748 SDL_LIBS
   749 AUDIO_SDL_TRUE
   750 AUDIO_SDL_FALSE
   751 PULSE_CFLAGS
   752 PULSE_LIBS
   753 AUDIO_PULSE_TRUE
   754 AUDIO_PULSE_FALSE
   755 ESOUND_CFLAGS
   756 ESOUND_LIBS
   757 AUDIO_ESOUND_TRUE
   758 AUDIO_ESOUND_FALSE
   759 ALSA_CFLAGS
   760 ALSA_LIBS
   761 AUDIO_ALSA_TRUE
   762 AUDIO_ALSA_FALSE
   763 CDROM_LINUX_TRUE
   764 CDROM_LINUX_FALSE
   765 CDROM_OSX_TRUE
   766 CDROM_OSX_FALSE
   767 CDROM_NONE_TRUE
   768 CDROM_NONE_FALSE
   769 JOY_LINUX_TRUE
   770 JOY_LINUX_FALSE
   771 INPUT_LIRC_TRUE
   772 INPUT_LIRC_FALSE
   773 SHCC
   774 SHLD
   775 SHOBJCOPY
   776 ARMCC
   777 ARMLD
   778 ARMOBJCOPY
   779 BUILD_SYSTEST_TRUE
   780 BUILD_SYSTEST_FALSE
   781 BUILD_ARMTEST_TRUE
   782 BUILD_ARMTEST_FALSE
   783 LXDREAM_LIBS
   784 GETTEXT_PACKAGE
   785 USE_NLS
   786 MSGFMT
   787 MSGFMT_OPTS
   788 GMSGFMT
   789 XGETTEXT
   790 CATALOGS
   791 CATOBJEXT
   792 DATADIRNAME
   793 GMOFILES
   794 INSTOBJEXT
   795 INTLLIBS
   796 PO_IN_DATADIR_TRUE
   797 PO_IN_DATADIR_FALSE
   798 POFILES
   799 POSUB
   800 MKINSTALLDIRS
   801 LIBOBJS
   802 LTLIBOBJS'
   803 ac_subst_files=''
   804       ac_precious_vars='build_alias
   805 host_alias
   806 target_alias
   807 CC
   808 CFLAGS
   809 LDFLAGS
   810 LIBS
   811 CPPFLAGS
   812 OBJC
   813 OBJCFLAGS
   814 CCAS
   815 CCASFLAGS
   816 CPP
   817 PKG_CONFIG
   818 LIBPNG_CFLAGS
   819 LIBPNG_LIBS
   820 GLIB_CFLAGS
   821 GLIB_LIBS
   822 GTK_CFLAGS
   823 GTK_LIBS
   824 LIBISOFS_CFLAGS
   825 LIBISOFS_LIBS
   826 LIBGL_CFLAGS
   827 LIBGL_LIBS
   828 SDL_CFLAGS
   829 SDL_LIBS
   830 PULSE_CFLAGS
   831 PULSE_LIBS
   832 ESOUND_CFLAGS
   833 ESOUND_LIBS
   834 ALSA_CFLAGS
   835 ALSA_LIBS'
   838 # Initialize some variables set by options.
   839 ac_init_help=
   840 ac_init_version=false
   841 # The variables have the same names as the options, with
   842 # dashes changed to underlines.
   843 cache_file=/dev/null
   844 exec_prefix=NONE
   845 no_create=
   846 no_recursion=
   847 prefix=NONE
   848 program_prefix=NONE
   849 program_suffix=NONE
   850 program_transform_name=s,x,x,
   851 silent=
   852 site=
   853 srcdir=
   854 verbose=
   855 x_includes=NONE
   856 x_libraries=NONE
   858 # Installation directory options.
   859 # These are left unexpanded so users can "make install exec_prefix=/foo"
   860 # and all the variables that are supposed to be based on exec_prefix
   861 # by default will actually change.
   862 # Use braces instead of parens because sh, perl, etc. also accept them.
   863 # (The list follows the same order as the GNU Coding Standards.)
   864 bindir='${exec_prefix}/bin'
   865 sbindir='${exec_prefix}/sbin'
   866 libexecdir='${exec_prefix}/libexec'
   867 datarootdir='${prefix}/share'
   868 datadir='${datarootdir}'
   869 sysconfdir='${prefix}/etc'
   870 sharedstatedir='${prefix}/com'
   871 localstatedir='${prefix}/var'
   872 includedir='${prefix}/include'
   873 oldincludedir='/usr/include'
   874 docdir='${datarootdir}/doc/${PACKAGE}'
   875 infodir='${datarootdir}/info'
   876 htmldir='${docdir}'
   877 dvidir='${docdir}'
   878 pdfdir='${docdir}'
   879 psdir='${docdir}'
   880 libdir='${exec_prefix}/lib'
   881 localedir='${datarootdir}/locale'
   882 mandir='${datarootdir}/man'
   884 ac_prev=
   885 ac_dashdash=
   886 for ac_option
   887 do
   888   # If the previous option needs an argument, assign it.
   889   if test -n "$ac_prev"; then
   890     eval $ac_prev=\$ac_option
   891     ac_prev=
   892     continue
   893   fi
   895   case $ac_option in
   896   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   897   *)	ac_optarg=yes ;;
   898   esac
   900   # Accept the important Cygnus configure options, so we can diagnose typos.
   902   case $ac_dashdash$ac_option in
   903   --)
   904     ac_dashdash=yes ;;
   906   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   907     ac_prev=bindir ;;
   908   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   909     bindir=$ac_optarg ;;
   911   -build | --build | --buil | --bui | --bu)
   912     ac_prev=build_alias ;;
   913   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   914     build_alias=$ac_optarg ;;
   916   -cache-file | --cache-file | --cache-fil | --cache-fi \
   917   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   918     ac_prev=cache_file ;;
   919   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   920   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   921     cache_file=$ac_optarg ;;
   923   --config-cache | -C)
   924     cache_file=config.cache ;;
   926   -datadir | --datadir | --datadi | --datad)
   927     ac_prev=datadir ;;
   928   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   929     datadir=$ac_optarg ;;
   931   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   932   | --dataroo | --dataro | --datar)
   933     ac_prev=datarootdir ;;
   934   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   935   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   936     datarootdir=$ac_optarg ;;
   938   -disable-* | --disable-*)
   939     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   940     # Reject names that are not valid shell variable names.
   941     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   942       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   943    { (exit 1); exit 1; }; }
   944     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   945     eval enable_$ac_feature=no ;;
   947   -docdir | --docdir | --docdi | --doc | --do)
   948     ac_prev=docdir ;;
   949   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   950     docdir=$ac_optarg ;;
   952   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   953     ac_prev=dvidir ;;
   954   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   955     dvidir=$ac_optarg ;;
   957   -enable-* | --enable-*)
   958     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   959     # Reject names that are not valid shell variable names.
   960     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   961       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   962    { (exit 1); exit 1; }; }
   963     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   964     eval enable_$ac_feature=\$ac_optarg ;;
   966   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   967   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   968   | --exec | --exe | --ex)
   969     ac_prev=exec_prefix ;;
   970   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   971   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   972   | --exec=* | --exe=* | --ex=*)
   973     exec_prefix=$ac_optarg ;;
   975   -gas | --gas | --ga | --g)
   976     # Obsolete; use --with-gas.
   977     with_gas=yes ;;
   979   -help | --help | --hel | --he | -h)
   980     ac_init_help=long ;;
   981   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   982     ac_init_help=recursive ;;
   983   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   984     ac_init_help=short ;;
   986   -host | --host | --hos | --ho)
   987     ac_prev=host_alias ;;
   988   -host=* | --host=* | --hos=* | --ho=*)
   989     host_alias=$ac_optarg ;;
   991   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   992     ac_prev=htmldir ;;
   993   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   994   | --ht=*)
   995     htmldir=$ac_optarg ;;
   997   -includedir | --includedir | --includedi | --included | --include \
   998   | --includ | --inclu | --incl | --inc)
   999     ac_prev=includedir ;;
  1000   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1001   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1002     includedir=$ac_optarg ;;
  1004   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1005     ac_prev=infodir ;;
  1006   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1007     infodir=$ac_optarg ;;
  1009   -libdir | --libdir | --libdi | --libd)
  1010     ac_prev=libdir ;;
  1011   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1012     libdir=$ac_optarg ;;
  1014   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1015   | --libexe | --libex | --libe)
  1016     ac_prev=libexecdir ;;
  1017   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1018   | --libexe=* | --libex=* | --libe=*)
  1019     libexecdir=$ac_optarg ;;
  1021   -localedir | --localedir | --localedi | --localed | --locale)
  1022     ac_prev=localedir ;;
  1023   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1024     localedir=$ac_optarg ;;
  1026   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1027   | --localstate | --localstat | --localsta | --localst | --locals)
  1028     ac_prev=localstatedir ;;
  1029   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1030   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1031     localstatedir=$ac_optarg ;;
  1033   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1034     ac_prev=mandir ;;
  1035   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1036     mandir=$ac_optarg ;;
  1038   -nfp | --nfp | --nf)
  1039     # Obsolete; use --without-fp.
  1040     with_fp=no ;;
  1042   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1043   | --no-cr | --no-c | -n)
  1044     no_create=yes ;;
  1046   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1047   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1048     no_recursion=yes ;;
  1050   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1051   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1052   | --oldin | --oldi | --old | --ol | --o)
  1053     ac_prev=oldincludedir ;;
  1054   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1055   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1056   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1057     oldincludedir=$ac_optarg ;;
  1059   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1060     ac_prev=prefix ;;
  1061   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1062     prefix=$ac_optarg ;;
  1064   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1065   | --program-pre | --program-pr | --program-p)
  1066     ac_prev=program_prefix ;;
  1067   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1068   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1069     program_prefix=$ac_optarg ;;
  1071   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1072   | --program-suf | --program-su | --program-s)
  1073     ac_prev=program_suffix ;;
  1074   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1075   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1076     program_suffix=$ac_optarg ;;
  1078   -program-transform-name | --program-transform-name \
  1079   | --program-transform-nam | --program-transform-na \
  1080   | --program-transform-n | --program-transform- \
  1081   | --program-transform | --program-transfor \
  1082   | --program-transfo | --program-transf \
  1083   | --program-trans | --program-tran \
  1084   | --progr-tra | --program-tr | --program-t)
  1085     ac_prev=program_transform_name ;;
  1086   -program-transform-name=* | --program-transform-name=* \
  1087   | --program-transform-nam=* | --program-transform-na=* \
  1088   | --program-transform-n=* | --program-transform-=* \
  1089   | --program-transform=* | --program-transfor=* \
  1090   | --program-transfo=* | --program-transf=* \
  1091   | --program-trans=* | --program-tran=* \
  1092   | --progr-tra=* | --program-tr=* | --program-t=*)
  1093     program_transform_name=$ac_optarg ;;
  1095   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1096     ac_prev=pdfdir ;;
  1097   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1098     pdfdir=$ac_optarg ;;
  1100   -psdir | --psdir | --psdi | --psd | --ps)
  1101     ac_prev=psdir ;;
  1102   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1103     psdir=$ac_optarg ;;
  1105   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1106   | -silent | --silent | --silen | --sile | --sil)
  1107     silent=yes ;;
  1109   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1110     ac_prev=sbindir ;;
  1111   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1112   | --sbi=* | --sb=*)
  1113     sbindir=$ac_optarg ;;
  1115   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1116   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1117   | --sharedst | --shareds | --shared | --share | --shar \
  1118   | --sha | --sh)
  1119     ac_prev=sharedstatedir ;;
  1120   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1121   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1122   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1123   | --sha=* | --sh=*)
  1124     sharedstatedir=$ac_optarg ;;
  1126   -site | --site | --sit)
  1127     ac_prev=site ;;
  1128   -site=* | --site=* | --sit=*)
  1129     site=$ac_optarg ;;
  1131   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1132     ac_prev=srcdir ;;
  1133   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1134     srcdir=$ac_optarg ;;
  1136   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1137   | --syscon | --sysco | --sysc | --sys | --sy)
  1138     ac_prev=sysconfdir ;;
  1139   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1140   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1141     sysconfdir=$ac_optarg ;;
  1143   -target | --target | --targe | --targ | --tar | --ta | --t)
  1144     ac_prev=target_alias ;;
  1145   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1146     target_alias=$ac_optarg ;;
  1148   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1149     verbose=yes ;;
  1151   -version | --version | --versio | --versi | --vers | -V)
  1152     ac_init_version=: ;;
  1154   -with-* | --with-*)
  1155     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1156     # Reject names that are not valid shell variable names.
  1157     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1158       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1159    { (exit 1); exit 1; }; }
  1160     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1161     eval with_$ac_package=\$ac_optarg ;;
  1163   -without-* | --without-*)
  1164     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1165     # Reject names that are not valid shell variable names.
  1166     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1167       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1168    { (exit 1); exit 1; }; }
  1169     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1170     eval with_$ac_package=no ;;
  1172   --x)
  1173     # Obsolete; use --with-x.
  1174     with_x=yes ;;
  1176   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1177   | --x-incl | --x-inc | --x-in | --x-i)
  1178     ac_prev=x_includes ;;
  1179   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1180   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1181     x_includes=$ac_optarg ;;
  1183   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1184   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1185     ac_prev=x_libraries ;;
  1186   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1187   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1188     x_libraries=$ac_optarg ;;
  1190   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1191 Try \`$0 --help' for more information." >&2
  1192    { (exit 1); exit 1; }; }
  1193     ;;
  1195   *=*)
  1196     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1197     # Reject names that are not valid shell variable names.
  1198     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1199       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1200    { (exit 1); exit 1; }; }
  1201     eval $ac_envvar=\$ac_optarg
  1202     export $ac_envvar ;;
  1204   *)
  1205     # FIXME: should be removed in autoconf 3.0.
  1206     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1207     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1208       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1209     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1210     ;;
  1212   esac
  1213 done
  1215 if test -n "$ac_prev"; then
  1216   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1217   { echo "$as_me: error: missing argument to $ac_option" >&2
  1218    { (exit 1); exit 1; }; }
  1219 fi
  1221 # Be sure to have absolute directory names.
  1222 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1223 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1224 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1225 		libdir localedir mandir
  1226 do
  1227   eval ac_val=\$$ac_var
  1228   case $ac_val in
  1229     [\\/$]* | ?:[\\/]* )  continue;;
  1230     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1231   esac
  1232   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1233    { (exit 1); exit 1; }; }
  1234 done
  1236 # There might be people who depend on the old broken behavior: `$host'
  1237 # used to hold the argument of --host etc.
  1238 # FIXME: To remove some day.
  1239 build=$build_alias
  1240 host=$host_alias
  1241 target=$target_alias
  1243 # FIXME: To remove some day.
  1244 if test "x$host_alias" != x; then
  1245   if test "x$build_alias" = x; then
  1246     cross_compiling=maybe
  1247     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1248     If a cross compiler is detected then cross compile mode will be used." >&2
  1249   elif test "x$build_alias" != "x$host_alias"; then
  1250     cross_compiling=yes
  1251   fi
  1252 fi
  1254 ac_tool_prefix=
  1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1257 test "$silent" = yes && exec 6>/dev/null
  1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1261 ac_ls_di=`ls -di .` &&
  1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1263   { echo "$as_me: error: Working directory cannot be determined" >&2
  1264    { (exit 1); exit 1; }; }
  1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1266   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1267    { (exit 1); exit 1; }; }
  1270 # Find the source files, if location was not specified.
  1271 if test -z "$srcdir"; then
  1272   ac_srcdir_defaulted=yes
  1273   # Try the directory containing this script, then the parent directory.
  1274   ac_confdir=`$as_dirname -- "$0" ||
  1275 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1276 	 X"$0" : 'X\(//\)[^/]' \| \
  1277 	 X"$0" : 'X\(//\)$' \| \
  1278 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1279 echo X"$0" |
  1280     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1281 	    s//\1/
  1284 	  /^X\(\/\/\)[^/].*/{
  1285 	    s//\1/
  1288 	  /^X\(\/\/\)$/{
  1289 	    s//\1/
  1292 	  /^X\(\/\).*/{
  1293 	    s//\1/
  1296 	  s/.*/./; q'`
  1297   srcdir=$ac_confdir
  1298   if test ! -r "$srcdir/$ac_unique_file"; then
  1299     srcdir=..
  1300   fi
  1301 else
  1302   ac_srcdir_defaulted=no
  1303 fi
  1304 if test ! -r "$srcdir/$ac_unique_file"; then
  1305   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1306   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1307    { (exit 1); exit 1; }; }
  1308 fi
  1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1310 ac_abs_confdir=`(
  1311 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1312    { (exit 1); exit 1; }; }
  1313 	pwd)`
  1314 # When building in place, set srcdir=.
  1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1316   srcdir=.
  1317 fi
  1318 # Remove unnecessary trailing slashes from srcdir.
  1319 # Double slashes in file names in object file debugging info
  1320 # mess up M-x gdb in Emacs.
  1321 case $srcdir in
  1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1323 esac
  1324 for ac_var in $ac_precious_vars; do
  1325   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1326   eval ac_env_${ac_var}_value=\$${ac_var}
  1327   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1328   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1329 done
  1332 # Report the --help message.
  1334 if test "$ac_init_help" = "long"; then
  1335   # Omit some internal or obsolete options to make the list less imposing.
  1336   # This message is too long to be a string in the A/UX 3.1 sh.
  1337   cat <<_ACEOF
  1338 \`configure' configures this package to adapt to many kinds of systems.
  1340 Usage: $0 [OPTION]... [VAR=VALUE]...
  1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1343 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1345 Defaults for the options are specified in brackets.
  1347 Configuration:
  1348   -h, --help              display this help and exit
  1349       --help=short        display options specific to this package
  1350       --help=recursive    display the short help of all the included packages
  1351   -V, --version           display version information and exit
  1352   -q, --quiet, --silent   do not print \`checking...' messages
  1353       --cache-file=FILE   cache test results in FILE [disabled]
  1354   -C, --config-cache      alias for \`--cache-file=config.cache'
  1355   -n, --no-create         do not create output files
  1356       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1358 Installation directories:
  1359   --prefix=PREFIX         install architecture-independent files in PREFIX
  1360 			  [$ac_default_prefix]
  1361   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1362 			  [PREFIX]
  1364 By default, \`make install' will install all the files in
  1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1367 for instance \`--prefix=\$HOME'.
  1369 For better control, use the options below.
  1371 Fine tuning of the installation directories:
  1372   --bindir=DIR           user executables [EPREFIX/bin]
  1373   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1374   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1375   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1376   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1377   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1378   --libdir=DIR           object code libraries [EPREFIX/lib]
  1379   --includedir=DIR       C header files [PREFIX/include]
  1380   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1381   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1382   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1383   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1384   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1385   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1386   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1387   --htmldir=DIR          html documentation [DOCDIR]
  1388   --dvidir=DIR           dvi documentation [DOCDIR]
  1389   --pdfdir=DIR           pdf documentation [DOCDIR]
  1390   --psdir=DIR            ps documentation [DOCDIR]
  1391 _ACEOF
  1393   cat <<\_ACEOF
  1395 Program names:
  1396   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1397   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1398   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1400 System types:
  1401   --build=BUILD     configure for building on BUILD [guessed]
  1402   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1403 _ACEOF
  1404 fi
  1406 if test -n "$ac_init_help"; then
  1408   cat <<\_ACEOF
  1410 Optional Features:
  1411   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1412   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1413   --enable-maintainer-mode  enable make rules and dependencies not useful
  1414 			  (and sometimes confusing) to the casual installer
  1415   --disable-dependency-tracking  speeds up one-time build
  1416   --enable-dependency-tracking   do not reject slow dependency extractors
  1417   --enable-strict-warn    Enable strict compilation warnings
  1418   --disable-translator    Disable the SH4 translator (Enabled by default)
  1419   --disable-optimized     Disable compile-time optimizations (Enabled by
  1420                           default)
  1421   --enable-shared         Build drivers as shared libraries (Enabled if
  1422                           available)
  1423   --enable-profiled       Enable profiling build
  1424   --enable-trace          Enable generation of IO traces (warning: hurts
  1425                           performance)
  1426   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1427                           performance)
  1428   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1430 Optional Packages:
  1431   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1432   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1433   --with-osmesa           Build with the osmesa GL library (software
  1434                           rendering)
  1435   --with-gtk              Build with the GTK UI. Default on X11 systems
  1436   --with-esd              Build with support for the ESounD audio system
  1437   --with-pulse            Build with support for the PulseAudio audio system
  1438   --with-sdl              Build with support for SDL audio
  1440 Some influential environment variables:
  1441   CC          C compiler command
  1442   CFLAGS      C compiler flags
  1443   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1444               nonstandard directory <lib dir>
  1445   LIBS        libraries to pass to the linker, e.g. -l<library>
  1446   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1447               you have headers in a nonstandard directory <include dir>
  1448   OBJC        Objective C compiler command
  1449   OBJCFLAGS   Objective C compiler flags
  1450   CCAS        assembler compiler command (defaults to CC)
  1451   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1452   CPP         C preprocessor
  1453   PKG_CONFIG  path to pkg-config utility
  1454   LIBPNG_CFLAGS
  1455               C compiler flags for LIBPNG, overriding pkg-config
  1456   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1457   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1458   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1459   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1460   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1461   LIBISOFS_CFLAGS
  1462               C compiler flags for LIBISOFS, overriding pkg-config
  1463   LIBISOFS_LIBS
  1464               linker flags for LIBISOFS, overriding pkg-config
  1465   LIBGL_CFLAGS
  1466               C compiler flags for LIBGL, overriding pkg-config
  1467   LIBGL_LIBS  linker flags for LIBGL, overriding pkg-config
  1468   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
  1469   SDL_LIBS    linker flags for SDL, overriding pkg-config
  1470   PULSE_CFLAGS
  1471               C compiler flags for PULSE, overriding pkg-config
  1472   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1473   ESOUND_CFLAGS
  1474               C compiler flags for ESOUND, overriding pkg-config
  1475   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1476   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1477   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1479 Use these variables to override the choices made by `configure' or to help
  1480 it to find libraries and programs with nonstandard names/locations.
  1482 _ACEOF
  1483 ac_status=$?
  1484 fi
  1486 if test "$ac_init_help" = "recursive"; then
  1487   # If there are subdirs, report their specific --help.
  1488   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1489     test -d "$ac_dir" || continue
  1490     ac_builddir=.
  1492 case "$ac_dir" in
  1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1494 *)
  1495   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1496   # A ".." for each directory in $ac_dir_suffix.
  1497   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1498   case $ac_top_builddir_sub in
  1499   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1500   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1501   esac ;;
  1502 esac
  1503 ac_abs_top_builddir=$ac_pwd
  1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1505 # for backward compatibility:
  1506 ac_top_builddir=$ac_top_build_prefix
  1508 case $srcdir in
  1509   .)  # We are building in place.
  1510     ac_srcdir=.
  1511     ac_top_srcdir=$ac_top_builddir_sub
  1512     ac_abs_top_srcdir=$ac_pwd ;;
  1513   [\\/]* | ?:[\\/]* )  # Absolute name.
  1514     ac_srcdir=$srcdir$ac_dir_suffix;
  1515     ac_top_srcdir=$srcdir
  1516     ac_abs_top_srcdir=$srcdir ;;
  1517   *) # Relative name.
  1518     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1519     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1520     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1521 esac
  1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1524     cd "$ac_dir" || { ac_status=$?; continue; }
  1525     # Check for guested configure.
  1526     if test -f "$ac_srcdir/configure.gnu"; then
  1527       echo &&
  1528       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1529     elif test -f "$ac_srcdir/configure"; then
  1530       echo &&
  1531       $SHELL "$ac_srcdir/configure" --help=recursive
  1532     else
  1533       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1534     fi || ac_status=$?
  1535     cd "$ac_pwd" || { ac_status=$?; break; }
  1536   done
  1537 fi
  1539 test -n "$ac_init_help" && exit $ac_status
  1540 if $ac_init_version; then
  1541   cat <<\_ACEOF
  1542 configure
  1543 generated by GNU Autoconf 2.61
  1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1547 This configure script is free software; the Free Software Foundation
  1548 gives unlimited permission to copy, distribute and modify it.
  1549 _ACEOF
  1550   exit
  1551 fi
  1552 cat >config.log <<_ACEOF
  1553 This file contains any messages produced by compilers while
  1554 running configure, to aid debugging if configure makes a mistake.
  1556 It was created by $as_me, which was
  1557 generated by GNU Autoconf 2.61.  Invocation command line was
  1559   $ $0 $@
  1561 _ACEOF
  1562 exec 5>>config.log
  1564 cat <<_ASUNAME
  1565 ## --------- ##
  1566 ## Platform. ##
  1567 ## --------- ##
  1569 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1570 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1571 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1572 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1573 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1575 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1576 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1578 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1579 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1580 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1581 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1582 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1583 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1584 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1586 _ASUNAME
  1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1589 for as_dir in $PATH
  1590 do
  1591   IFS=$as_save_IFS
  1592   test -z "$as_dir" && as_dir=.
  1593   echo "PATH: $as_dir"
  1594 done
  1595 IFS=$as_save_IFS
  1597 } >&5
  1599 cat >&5 <<_ACEOF
  1602 ## ----------- ##
  1603 ## Core tests. ##
  1604 ## ----------- ##
  1606 _ACEOF
  1609 # Keep a trace of the command line.
  1610 # Strip out --no-create and --no-recursion so they do not pile up.
  1611 # Strip out --silent because we don't want to record it for future runs.
  1612 # Also quote any args containing shell meta-characters.
  1613 # Make two passes to allow for proper duplicate-argument suppression.
  1614 ac_configure_args=
  1615 ac_configure_args0=
  1616 ac_configure_args1=
  1617 ac_must_keep_next=false
  1618 for ac_pass in 1 2
  1619 do
  1620   for ac_arg
  1621   do
  1622     case $ac_arg in
  1623     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1624     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1625     | -silent | --silent | --silen | --sile | --sil)
  1626       continue ;;
  1627     *\'*)
  1628       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1629     esac
  1630     case $ac_pass in
  1631     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1632     2)
  1633       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1634       if test $ac_must_keep_next = true; then
  1635 	ac_must_keep_next=false # Got value, back to normal.
  1636       else
  1637 	case $ac_arg in
  1638 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1639 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1640 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1641 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1642 	    case "$ac_configure_args0 " in
  1643 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1644 	    esac
  1645 	    ;;
  1646 	  -* ) ac_must_keep_next=true ;;
  1647 	esac
  1648       fi
  1649       ac_configure_args="$ac_configure_args '$ac_arg'"
  1650       ;;
  1651     esac
  1652   done
  1653 done
  1654 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1655 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1657 # When interrupted or exit'd, cleanup temporary files, and complete
  1658 # config.log.  We remove comments because anyway the quotes in there
  1659 # would cause problems or look ugly.
  1660 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1661 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1662 trap 'exit_status=$?
  1663   # Save into config.log some information that might help in debugging.
  1665     echo
  1667     cat <<\_ASBOX
  1668 ## ---------------- ##
  1669 ## Cache variables. ##
  1670 ## ---------------- ##
  1671 _ASBOX
  1672     echo
  1673     # The following way of writing the cache mishandles newlines in values,
  1675   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1676     eval ac_val=\$$ac_var
  1677     case $ac_val in #(
  1678     *${as_nl}*)
  1679       case $ac_var in #(
  1680       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1681 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1682       esac
  1683       case $ac_var in #(
  1684       _ | IFS | as_nl) ;; #(
  1685       *) $as_unset $ac_var ;;
  1686       esac ;;
  1687     esac
  1688   done
  1689   (set) 2>&1 |
  1690     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1691     *${as_nl}ac_space=\ *)
  1692       sed -n \
  1693 	"s/'\''/'\''\\\\'\'''\''/g;
  1694 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1695       ;; #(
  1696     *)
  1697       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1698       ;;
  1699     esac |
  1700     sort
  1702     echo
  1704     cat <<\_ASBOX
  1705 ## ----------------- ##
  1706 ## Output variables. ##
  1707 ## ----------------- ##
  1708 _ASBOX
  1709     echo
  1710     for ac_var in $ac_subst_vars
  1711     do
  1712       eval ac_val=\$$ac_var
  1713       case $ac_val in
  1714       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1715       esac
  1716       echo "$ac_var='\''$ac_val'\''"
  1717     done | sort
  1718     echo
  1720     if test -n "$ac_subst_files"; then
  1721       cat <<\_ASBOX
  1722 ## ------------------- ##
  1723 ## File substitutions. ##
  1724 ## ------------------- ##
  1725 _ASBOX
  1726       echo
  1727       for ac_var in $ac_subst_files
  1728       do
  1729 	eval ac_val=\$$ac_var
  1730 	case $ac_val in
  1731 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1732 	esac
  1733 	echo "$ac_var='\''$ac_val'\''"
  1734       done | sort
  1735       echo
  1736     fi
  1738     if test -s confdefs.h; then
  1739       cat <<\_ASBOX
  1740 ## ----------- ##
  1741 ## confdefs.h. ##
  1742 ## ----------- ##
  1743 _ASBOX
  1744       echo
  1745       cat confdefs.h
  1746       echo
  1747     fi
  1748     test "$ac_signal" != 0 &&
  1749       echo "$as_me: caught signal $ac_signal"
  1750     echo "$as_me: exit $exit_status"
  1751   } >&5
  1752   rm -f core *.core core.conftest.* &&
  1753     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1754     exit $exit_status
  1755 ' 0
  1756 for ac_signal in 1 2 13 15; do
  1757   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1758 done
  1759 ac_signal=0
  1761 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1762 rm -f -r conftest* confdefs.h
  1764 # Predefined preprocessor variables.
  1766 cat >>confdefs.h <<_ACEOF
  1767 #define PACKAGE_NAME "$PACKAGE_NAME"
  1768 _ACEOF
  1771 cat >>confdefs.h <<_ACEOF
  1772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1773 _ACEOF
  1776 cat >>confdefs.h <<_ACEOF
  1777 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1778 _ACEOF
  1781 cat >>confdefs.h <<_ACEOF
  1782 #define PACKAGE_STRING "$PACKAGE_STRING"
  1783 _ACEOF
  1786 cat >>confdefs.h <<_ACEOF
  1787 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1788 _ACEOF
  1791 # Let the site file select an alternate cache file if it wants to.
  1792 # Prefer explicitly selected file to automatically selected ones.
  1793 if test -n "$CONFIG_SITE"; then
  1794   set x "$CONFIG_SITE"
  1795 elif test "x$prefix" != xNONE; then
  1796   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1797 else
  1798   set x "$ac_default_prefix/share/config.site" \
  1799 	"$ac_default_prefix/etc/config.site"
  1800 fi
  1801 shift
  1802 for ac_site_file
  1803 do
  1804   if test -r "$ac_site_file"; then
  1805     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1806 echo "$as_me: loading site script $ac_site_file" >&6;}
  1807     sed 's/^/| /' "$ac_site_file" >&5
  1808     . "$ac_site_file"
  1809   fi
  1810 done
  1812 if test -r "$cache_file"; then
  1813   # Some versions of bash will fail to source /dev/null (special
  1814   # files actually), so we avoid doing that.
  1815   if test -f "$cache_file"; then
  1816     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1817 echo "$as_me: loading cache $cache_file" >&6;}
  1818     case $cache_file in
  1819       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1820       *)                      . "./$cache_file";;
  1821     esac
  1822   fi
  1823 else
  1824   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1825 echo "$as_me: creating cache $cache_file" >&6;}
  1826   >$cache_file
  1827 fi
  1829 # Check that the precious variables saved in the cache have kept the same
  1830 # value.
  1831 ac_cache_corrupted=false
  1832 for ac_var in $ac_precious_vars; do
  1833   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1834   eval ac_new_set=\$ac_env_${ac_var}_set
  1835   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1836   eval ac_new_val=\$ac_env_${ac_var}_value
  1837   case $ac_old_set,$ac_new_set in
  1838     set,)
  1839       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1840 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1841       ac_cache_corrupted=: ;;
  1842     ,set)
  1843       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1844 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1845       ac_cache_corrupted=: ;;
  1846     ,);;
  1847     *)
  1848       if test "x$ac_old_val" != "x$ac_new_val"; then
  1849 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1850 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1851 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1852 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1853 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1854 echo "$as_me:   current value: $ac_new_val" >&2;}
  1855 	ac_cache_corrupted=:
  1856       fi;;
  1857   esac
  1858   # Pass precious variables to config.status.
  1859   if test "$ac_new_set" = set; then
  1860     case $ac_new_val in
  1861     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1862     *) ac_arg=$ac_var=$ac_new_val ;;
  1863     esac
  1864     case " $ac_configure_args " in
  1865       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1866       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1867     esac
  1868   fi
  1869 done
  1870 if $ac_cache_corrupted; then
  1871   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1872 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1873   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1874 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1875    { (exit 1); exit 1; }; }
  1876 fi
  1894 ac_ext=c
  1895 ac_cpp='$CPP $CPPFLAGS'
  1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1901 am__api_version="1.9"
  1902 ac_aux_dir=
  1903 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1904   if test -f "$ac_dir/install-sh"; then
  1905     ac_aux_dir=$ac_dir
  1906     ac_install_sh="$ac_aux_dir/install-sh -c"
  1907     break
  1908   elif test -f "$ac_dir/install.sh"; then
  1909     ac_aux_dir=$ac_dir
  1910     ac_install_sh="$ac_aux_dir/install.sh -c"
  1911     break
  1912   elif test -f "$ac_dir/shtool"; then
  1913     ac_aux_dir=$ac_dir
  1914     ac_install_sh="$ac_aux_dir/shtool install -c"
  1915     break
  1916   fi
  1917 done
  1918 if test -z "$ac_aux_dir"; then
  1919   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1920 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1921    { (exit 1); exit 1; }; }
  1922 fi
  1924 # These three variables are undocumented and unsupported,
  1925 # and are intended to be withdrawn in a future Autoconf release.
  1926 # They can cause serious problems if a builder's source tree is in a directory
  1927 # whose full name contains unusual characters.
  1928 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1929 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1930 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1933 # Find a good install program.  We prefer a C program (faster),
  1934 # so one script is as good as another.  But avoid the broken or
  1935 # incompatible versions:
  1936 # SysV /etc/install, /usr/sbin/install
  1937 # SunOS /usr/etc/install
  1938 # IRIX /sbin/install
  1939 # AIX /bin/install
  1940 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1944 # OS/2's system install, which has a completely different semantic
  1945 # ./install, which can be erroneously created by make from ./install.sh.
  1946 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1947 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1948 if test -z "$INSTALL"; then
  1949 if test "${ac_cv_path_install+set}" = set; then
  1950   echo $ECHO_N "(cached) $ECHO_C" >&6
  1951 else
  1952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1953 for as_dir in $PATH
  1954 do
  1955   IFS=$as_save_IFS
  1956   test -z "$as_dir" && as_dir=.
  1957   # Account for people who put trailing slashes in PATH elements.
  1958 case $as_dir/ in
  1959   ./ | .// | /cC/* | \
  1960   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1961   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1962   /usr/ucb/* ) ;;
  1963   *)
  1964     # OSF1 and SCO ODT 3.0 have their own names for install.
  1965     # Don't use installbsd from OSF since it installs stuff as root
  1966     # by default.
  1967     for ac_prog in ginstall scoinst install; do
  1968       for ac_exec_ext in '' $ac_executable_extensions; do
  1969 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1970 	  if test $ac_prog = install &&
  1971 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1972 	    # AIX install.  It has an incompatible calling convention.
  1974 	  elif test $ac_prog = install &&
  1975 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1976 	    # program-specific install script used by HP pwplus--don't use.
  1978 	  else
  1979 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1980 	    break 3
  1981 	  fi
  1982 	fi
  1983       done
  1984     done
  1985     ;;
  1986 esac
  1987 done
  1988 IFS=$as_save_IFS
  1991 fi
  1992   if test "${ac_cv_path_install+set}" = set; then
  1993     INSTALL=$ac_cv_path_install
  1994   else
  1995     # As a last resort, use the slow shell script.  Don't cache a
  1996     # value for INSTALL within a source directory, because that will
  1997     # break other packages using the cache if that directory is
  1998     # removed, or if the value is a relative name.
  1999     INSTALL=$ac_install_sh
  2000   fi
  2001 fi
  2002 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2003 echo "${ECHO_T}$INSTALL" >&6; }
  2005 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2006 # It thinks the first close brace ends the variable substitution.
  2007 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2009 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2011 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2013 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2014 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2015 # Just in case
  2016 sleep 1
  2017 echo timestamp > conftest.file
  2018 # Do `set' in a subshell so we don't clobber the current shell's
  2019 # arguments.  Must try -L first in case configure is actually a
  2020 # symlink; some systems play weird games with the mod time of symlinks
  2021 # (eg FreeBSD returns the mod time of the symlink's containing
  2022 # directory).
  2023 if (
  2024    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2025    if test "$*" = "X"; then
  2026       # -L didn't work.
  2027       set X `ls -t $srcdir/configure conftest.file`
  2028    fi
  2029    rm -f conftest.file
  2030    if test "$*" != "X $srcdir/configure conftest.file" \
  2031       && test "$*" != "X conftest.file $srcdir/configure"; then
  2033       # If neither matched, then we have a broken ls.  This can happen
  2034       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2035       # broken ls alias from the environment.  This has actually
  2036       # happened.  Such a system could not be considered "sane".
  2037       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2038 alias in your environment" >&5
  2039 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2040 alias in your environment" >&2;}
  2041    { (exit 1); exit 1; }; }
  2042    fi
  2044    test "$2" = conftest.file
  2046 then
  2047    # Ok.
  2049 else
  2050    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2051 Check your system clock" >&5
  2052 echo "$as_me: error: newly created file is older than distributed files!
  2053 Check your system clock" >&2;}
  2054    { (exit 1); exit 1; }; }
  2055 fi
  2056 { echo "$as_me:$LINENO: result: yes" >&5
  2057 echo "${ECHO_T}yes" >&6; }
  2058 test "$program_prefix" != NONE &&
  2059   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2060 # Use a double $ so make ignores it.
  2061 test "$program_suffix" != NONE &&
  2062   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2063 # Double any \ or $.  echo might interpret backslashes.
  2064 # By default was `s,x,x', remove it if useless.
  2065 cat <<\_ACEOF >conftest.sed
  2066 s/[\\$]/&&/g;s/;s,x,x,$//
  2067 _ACEOF
  2068 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2069 rm -f conftest.sed
  2071 # expand $ac_aux_dir to an absolute path
  2072 am_aux_dir=`cd $ac_aux_dir && pwd`
  2074 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2075 # Use eval to expand $SHELL
  2076 if eval "$MISSING --run true"; then
  2077   am_missing_run="$MISSING --run "
  2078 else
  2079   am_missing_run=
  2080   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2081 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2082 fi
  2084 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2085   # We used to keeping the `.' as first argument, in order to
  2086   # allow $(mkdir_p) to be used without argument.  As in
  2087   #   $(mkdir_p) $(somedir)
  2088   # where $(somedir) is conditionally defined.  However this is wrong
  2089   # for two reasons:
  2090   #  1. if the package is installed by a user who cannot write `.'
  2091   #     make install will fail,
  2092   #  2. the above comment should most certainly read
  2093   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2094   #     so it does not work when $(somedir) is undefined and
  2095   #     $(DESTDIR) is not.
  2096   #  To support the latter case, we have to write
  2097   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2098   #  so the `.' trick is pointless.
  2099   mkdir_p='mkdir -p --'
  2100 else
  2101   # On NextStep and OpenStep, the `mkdir' command does not
  2102   # recognize any option.  It will interpret all options as
  2103   # directories to create, and then abort because `.' already
  2104   # exists.
  2105   for d in ./-p ./--version;
  2106   do
  2107     test -d $d && rmdir $d
  2108   done
  2109   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2110   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2111     mkdir_p='$(mkinstalldirs)'
  2112   else
  2113     mkdir_p='$(install_sh) -d'
  2114   fi
  2115 fi
  2117 for ac_prog in gawk mawk nawk awk
  2118 do
  2119   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2120 set dummy $ac_prog; ac_word=$2
  2121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2123 if test "${ac_cv_prog_AWK+set}" = set; then
  2124   echo $ECHO_N "(cached) $ECHO_C" >&6
  2125 else
  2126   if test -n "$AWK"; then
  2127   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2128 else
  2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2130 for as_dir in $PATH
  2131 do
  2132   IFS=$as_save_IFS
  2133   test -z "$as_dir" && as_dir=.
  2134   for ac_exec_ext in '' $ac_executable_extensions; do
  2135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2136     ac_cv_prog_AWK="$ac_prog"
  2137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2138     break 2
  2139   fi
  2140 done
  2141 done
  2142 IFS=$as_save_IFS
  2144 fi
  2145 fi
  2146 AWK=$ac_cv_prog_AWK
  2147 if test -n "$AWK"; then
  2148   { echo "$as_me:$LINENO: result: $AWK" >&5
  2149 echo "${ECHO_T}$AWK" >&6; }
  2150 else
  2151   { echo "$as_me:$LINENO: result: no" >&5
  2152 echo "${ECHO_T}no" >&6; }
  2153 fi
  2156   test -n "$AWK" && break
  2157 done
  2159 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2160 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2161 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2162 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2163   echo $ECHO_N "(cached) $ECHO_C" >&6
  2164 else
  2165   cat >conftest.make <<\_ACEOF
  2166 SHELL = /bin/sh
  2167 all:
  2168 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2169 _ACEOF
  2170 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2171 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2172   *@@@%%%=?*=@@@%%%*)
  2173     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2174   *)
  2175     eval ac_cv_prog_make_${ac_make}_set=no;;
  2176 esac
  2177 rm -f conftest.make
  2178 fi
  2179 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2180   { echo "$as_me:$LINENO: result: yes" >&5
  2181 echo "${ECHO_T}yes" >&6; }
  2182   SET_MAKE=
  2183 else
  2184   { echo "$as_me:$LINENO: result: no" >&5
  2185 echo "${ECHO_T}no" >&6; }
  2186   SET_MAKE="MAKE=${MAKE-make}"
  2187 fi
  2189 rm -rf .tst 2>/dev/null
  2190 mkdir .tst 2>/dev/null
  2191 if test -d .tst; then
  2192   am__leading_dot=.
  2193 else
  2194   am__leading_dot=_
  2195 fi
  2196 rmdir .tst 2>/dev/null
  2198 # test to see if srcdir already configured
  2199 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2200    test -f $srcdir/config.status; then
  2201   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2202 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2203    { (exit 1); exit 1; }; }
  2204 fi
  2206 # test whether we have cygpath
  2207 if test -z "$CYGPATH_W"; then
  2208   if (cygpath --version) >/dev/null 2>/dev/null; then
  2209     CYGPATH_W='cygpath -w'
  2210   else
  2211     CYGPATH_W=echo
  2212   fi
  2213 fi
  2216 # Define the identity of the package.
  2217  PACKAGE=lxdream
  2218  VERSION=0.9.1
  2221 cat >>confdefs.h <<_ACEOF
  2222 #define PACKAGE "$PACKAGE"
  2223 _ACEOF
  2226 cat >>confdefs.h <<_ACEOF
  2227 #define VERSION "$VERSION"
  2228 _ACEOF
  2230 # Some tools Automake needs.
  2232 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2235 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2238 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2241 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2244 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2246 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2248 # Installed binaries are usually stripped using `strip' when the user
  2249 # run `make install-strip'.  However `strip' might not be the right
  2250 # tool to use in cross-compilation environments, therefore Automake
  2251 # will honor the `STRIP' environment variable to overrule this program.
  2252 if test "$cross_compiling" != no; then
  2253   if test -n "$ac_tool_prefix"; then
  2254   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2255 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2258 if test "${ac_cv_prog_STRIP+set}" = set; then
  2259   echo $ECHO_N "(cached) $ECHO_C" >&6
  2260 else
  2261   if test -n "$STRIP"; then
  2262   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2263 else
  2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2265 for as_dir in $PATH
  2266 do
  2267   IFS=$as_save_IFS
  2268   test -z "$as_dir" && as_dir=.
  2269   for ac_exec_ext in '' $ac_executable_extensions; do
  2270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2271     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2273     break 2
  2274   fi
  2275 done
  2276 done
  2277 IFS=$as_save_IFS
  2279 fi
  2280 fi
  2281 STRIP=$ac_cv_prog_STRIP
  2282 if test -n "$STRIP"; then
  2283   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2284 echo "${ECHO_T}$STRIP" >&6; }
  2285 else
  2286   { echo "$as_me:$LINENO: result: no" >&5
  2287 echo "${ECHO_T}no" >&6; }
  2288 fi
  2291 fi
  2292 if test -z "$ac_cv_prog_STRIP"; then
  2293   ac_ct_STRIP=$STRIP
  2294   # Extract the first word of "strip", so it can be a program name with args.
  2295 set dummy strip; ac_word=$2
  2296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2298 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2299   echo $ECHO_N "(cached) $ECHO_C" >&6
  2300 else
  2301   if test -n "$ac_ct_STRIP"; then
  2302   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2303 else
  2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2305 for as_dir in $PATH
  2306 do
  2307   IFS=$as_save_IFS
  2308   test -z "$as_dir" && as_dir=.
  2309   for ac_exec_ext in '' $ac_executable_extensions; do
  2310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2311     ac_cv_prog_ac_ct_STRIP="strip"
  2312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2313     break 2
  2314   fi
  2315 done
  2316 done
  2317 IFS=$as_save_IFS
  2319 fi
  2320 fi
  2321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2322 if test -n "$ac_ct_STRIP"; then
  2323   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2324 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2325 else
  2326   { echo "$as_me:$LINENO: result: no" >&5
  2327 echo "${ECHO_T}no" >&6; }
  2328 fi
  2330   if test "x$ac_ct_STRIP" = x; then
  2331     STRIP=":"
  2332   else
  2333     case $cross_compiling:$ac_tool_warned in
  2334 yes:)
  2335 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2336 whose name does not start with the host triplet.  If you think this
  2337 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2338 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2339 whose name does not start with the host triplet.  If you think this
  2340 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2341 ac_tool_warned=yes ;;
  2342 esac
  2343     STRIP=$ac_ct_STRIP
  2344   fi
  2345 else
  2346   STRIP="$ac_cv_prog_STRIP"
  2347 fi
  2349 fi
  2350 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2352 # We need awk for the "check" target.  The system "awk" is bad on
  2353 # some platforms.
  2354 # Always define AMTAR for backward compatibility.
  2356 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2358 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2364 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2365 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2366     # Check whether --enable-maintainer-mode was given.
  2367 if test "${enable_maintainer_mode+set}" = set; then
  2368   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2369 else
  2370   USE_MAINTAINER_MODE=no
  2371 fi
  2373   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2374 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2377 if test $USE_MAINTAINER_MODE = yes; then
  2378   MAINTAINER_MODE_TRUE=
  2379   MAINTAINER_MODE_FALSE='#'
  2380 else
  2381   MAINTAINER_MODE_TRUE='#'
  2382   MAINTAINER_MODE_FALSE=
  2383 fi
  2385   MAINT=$MAINTAINER_MODE_TRUE
  2388 ac_config_headers="$ac_config_headers config.h"
  2391 DEPDIR="${am__leading_dot}deps"
  2393 ac_config_commands="$ac_config_commands depfiles"
  2396 am_make=${MAKE-make}
  2397 cat > confinc << 'END'
  2398 am__doit:
  2399 	@echo done
  2400 .PHONY: am__doit
  2401 END
  2402 # If we don't find an include directive, just comment out the code.
  2403 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2404 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2405 am__include="#"
  2406 am__quote=
  2407 _am_result=none
  2408 # First try GNU make style include.
  2409 echo "include confinc" > confmf
  2410 # We grep out `Entering directory' and `Leaving directory'
  2411 # messages which can occur if `w' ends up in MAKEFLAGS.
  2412 # In particular we don't look at `^make:' because GNU make might
  2413 # be invoked under some other name (usually "gmake"), in which
  2414 # case it prints its new name instead of `make'.
  2415 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2416    am__include=include
  2417    am__quote=
  2418    _am_result=GNU
  2419 fi
  2420 # Now try BSD make style include.
  2421 if test "$am__include" = "#"; then
  2422    echo '.include "confinc"' > confmf
  2423    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2424       am__include=.include
  2425       am__quote="\""
  2426       _am_result=BSD
  2427    fi
  2428 fi
  2431 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2432 echo "${ECHO_T}$_am_result" >&6; }
  2433 rm -f confinc confmf
  2435 # Check whether --enable-dependency-tracking was given.
  2436 if test "${enable_dependency_tracking+set}" = set; then
  2437   enableval=$enable_dependency_tracking;
  2438 fi
  2440 if test "x$enable_dependency_tracking" != xno; then
  2441   am_depcomp="$ac_aux_dir/depcomp"
  2442   AMDEPBACKSLASH='\'
  2443 fi
  2446 if test "x$enable_dependency_tracking" != xno; then
  2447   AMDEP_TRUE=
  2448   AMDEP_FALSE='#'
  2449 else
  2450   AMDEP_TRUE='#'
  2451   AMDEP_FALSE=
  2452 fi
  2456 ac_ext=c
  2457 ac_cpp='$CPP $CPPFLAGS'
  2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2461 if test -n "$ac_tool_prefix"; then
  2462   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2463 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2466 if test "${ac_cv_prog_CC+set}" = set; then
  2467   echo $ECHO_N "(cached) $ECHO_C" >&6
  2468 else
  2469   if test -n "$CC"; then
  2470   ac_cv_prog_CC="$CC" # Let the user override the test.
  2471 else
  2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2473 for as_dir in $PATH
  2474 do
  2475   IFS=$as_save_IFS
  2476   test -z "$as_dir" && as_dir=.
  2477   for ac_exec_ext in '' $ac_executable_extensions; do
  2478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2479     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2481     break 2
  2482   fi
  2483 done
  2484 done
  2485 IFS=$as_save_IFS
  2487 fi
  2488 fi
  2489 CC=$ac_cv_prog_CC
  2490 if test -n "$CC"; then
  2491   { echo "$as_me:$LINENO: result: $CC" >&5
  2492 echo "${ECHO_T}$CC" >&6; }
  2493 else
  2494   { echo "$as_me:$LINENO: result: no" >&5
  2495 echo "${ECHO_T}no" >&6; }
  2496 fi
  2499 fi
  2500 if test -z "$ac_cv_prog_CC"; then
  2501   ac_ct_CC=$CC
  2502   # Extract the first word of "gcc", so it can be a program name with args.
  2503 set dummy gcc; ac_word=$2
  2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2507   echo $ECHO_N "(cached) $ECHO_C" >&6
  2508 else
  2509   if test -n "$ac_ct_CC"; then
  2510   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2511 else
  2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2513 for as_dir in $PATH
  2514 do
  2515   IFS=$as_save_IFS
  2516   test -z "$as_dir" && as_dir=.
  2517   for ac_exec_ext in '' $ac_executable_extensions; do
  2518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2519     ac_cv_prog_ac_ct_CC="gcc"
  2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2521     break 2
  2522   fi
  2523 done
  2524 done
  2525 IFS=$as_save_IFS
  2527 fi
  2528 fi
  2529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2530 if test -n "$ac_ct_CC"; then
  2531   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2532 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2533 else
  2534   { echo "$as_me:$LINENO: result: no" >&5
  2535 echo "${ECHO_T}no" >&6; }
  2536 fi
  2538   if test "x$ac_ct_CC" = x; then
  2539     CC=""
  2540   else
  2541     case $cross_compiling:$ac_tool_warned in
  2542 yes:)
  2543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2544 whose name does not start with the host triplet.  If you think this
  2545 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2547 whose name does not start with the host triplet.  If you think this
  2548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2549 ac_tool_warned=yes ;;
  2550 esac
  2551     CC=$ac_ct_CC
  2552   fi
  2553 else
  2554   CC="$ac_cv_prog_CC"
  2555 fi
  2557 if test -z "$CC"; then
  2558           if test -n "$ac_tool_prefix"; then
  2559     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2560 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2563 if test "${ac_cv_prog_CC+set}" = set; then
  2564   echo $ECHO_N "(cached) $ECHO_C" >&6
  2565 else
  2566   if test -n "$CC"; then
  2567   ac_cv_prog_CC="$CC" # Let the user override the test.
  2568 else
  2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2570 for as_dir in $PATH
  2571 do
  2572   IFS=$as_save_IFS
  2573   test -z "$as_dir" && as_dir=.
  2574   for ac_exec_ext in '' $ac_executable_extensions; do
  2575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2576     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2578     break 2
  2579   fi
  2580 done
  2581 done
  2582 IFS=$as_save_IFS
  2584 fi
  2585 fi
  2586 CC=$ac_cv_prog_CC
  2587 if test -n "$CC"; then
  2588   { echo "$as_me:$LINENO: result: $CC" >&5
  2589 echo "${ECHO_T}$CC" >&6; }
  2590 else
  2591   { echo "$as_me:$LINENO: result: no" >&5
  2592 echo "${ECHO_T}no" >&6; }
  2593 fi
  2596   fi
  2597 fi
  2598 if test -z "$CC"; then
  2599   # Extract the first word of "cc", so it can be a program name with args.
  2600 set dummy cc; ac_word=$2
  2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2603 if test "${ac_cv_prog_CC+set}" = set; then
  2604   echo $ECHO_N "(cached) $ECHO_C" >&6
  2605 else
  2606   if test -n "$CC"; then
  2607   ac_cv_prog_CC="$CC" # Let the user override the test.
  2608 else
  2609   ac_prog_rejected=no
  2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2611 for as_dir in $PATH
  2612 do
  2613   IFS=$as_save_IFS
  2614   test -z "$as_dir" && as_dir=.
  2615   for ac_exec_ext in '' $ac_executable_extensions; do
  2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2617     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2618        ac_prog_rejected=yes
  2619        continue
  2620      fi
  2621     ac_cv_prog_CC="cc"
  2622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2623     break 2
  2624   fi
  2625 done
  2626 done
  2627 IFS=$as_save_IFS
  2629 if test $ac_prog_rejected = yes; then
  2630   # We found a bogon in the path, so make sure we never use it.
  2631   set dummy $ac_cv_prog_CC
  2632   shift
  2633   if test $# != 0; then
  2634     # We chose a different compiler from the bogus one.
  2635     # However, it has the same basename, so the bogon will be chosen
  2636     # first if we set CC to just the basename; use the full file name.
  2637     shift
  2638     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2639   fi
  2640 fi
  2641 fi
  2642 fi
  2643 CC=$ac_cv_prog_CC
  2644 if test -n "$CC"; then
  2645   { echo "$as_me:$LINENO: result: $CC" >&5
  2646 echo "${ECHO_T}$CC" >&6; }
  2647 else
  2648   { echo "$as_me:$LINENO: result: no" >&5
  2649 echo "${ECHO_T}no" >&6; }
  2650 fi
  2653 fi
  2654 if test -z "$CC"; then
  2655   if test -n "$ac_tool_prefix"; then
  2656   for ac_prog in cl.exe
  2657   do
  2658     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2662 if test "${ac_cv_prog_CC+set}" = set; then
  2663   echo $ECHO_N "(cached) $ECHO_C" >&6
  2664 else
  2665   if test -n "$CC"; then
  2666   ac_cv_prog_CC="$CC" # Let the user override the test.
  2667 else
  2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2669 for as_dir in $PATH
  2670 do
  2671   IFS=$as_save_IFS
  2672   test -z "$as_dir" && as_dir=.
  2673   for ac_exec_ext in '' $ac_executable_extensions; do
  2674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2675     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2677     break 2
  2678   fi
  2679 done
  2680 done
  2681 IFS=$as_save_IFS
  2683 fi
  2684 fi
  2685 CC=$ac_cv_prog_CC
  2686 if test -n "$CC"; then
  2687   { echo "$as_me:$LINENO: result: $CC" >&5
  2688 echo "${ECHO_T}$CC" >&6; }
  2689 else
  2690   { echo "$as_me:$LINENO: result: no" >&5
  2691 echo "${ECHO_T}no" >&6; }
  2692 fi
  2695     test -n "$CC" && break
  2696   done
  2697 fi
  2698 if test -z "$CC"; then
  2699   ac_ct_CC=$CC
  2700   for ac_prog in cl.exe
  2701 do
  2702   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2703 set dummy $ac_prog; ac_word=$2
  2704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2707   echo $ECHO_N "(cached) $ECHO_C" >&6
  2708 else
  2709   if test -n "$ac_ct_CC"; then
  2710   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2711 else
  2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2713 for as_dir in $PATH
  2714 do
  2715   IFS=$as_save_IFS
  2716   test -z "$as_dir" && as_dir=.
  2717   for ac_exec_ext in '' $ac_executable_extensions; do
  2718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2719     ac_cv_prog_ac_ct_CC="$ac_prog"
  2720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2721     break 2
  2722   fi
  2723 done
  2724 done
  2725 IFS=$as_save_IFS
  2727 fi
  2728 fi
  2729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2730 if test -n "$ac_ct_CC"; then
  2731   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2732 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2733 else
  2734   { echo "$as_me:$LINENO: result: no" >&5
  2735 echo "${ECHO_T}no" >&6; }
  2736 fi
  2739   test -n "$ac_ct_CC" && break
  2740 done
  2742   if test "x$ac_ct_CC" = x; then
  2743     CC=""
  2744   else
  2745     case $cross_compiling:$ac_tool_warned in
  2746 yes:)
  2747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2748 whose name does not start with the host triplet.  If you think this
  2749 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2751 whose name does not start with the host triplet.  If you think this
  2752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2753 ac_tool_warned=yes ;;
  2754 esac
  2755     CC=$ac_ct_CC
  2756   fi
  2757 fi
  2759 fi
  2762 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2763 See \`config.log' for more details." >&5
  2764 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2765 See \`config.log' for more details." >&2;}
  2766    { (exit 1); exit 1; }; }
  2768 # Provide some information about the compiler.
  2769 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2770 ac_compiler=`set X $ac_compile; echo $2`
  2771 { (ac_try="$ac_compiler --version >&5"
  2772 case "(($ac_try" in
  2773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2774   *) ac_try_echo=$ac_try;;
  2775 esac
  2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2777   (eval "$ac_compiler --version >&5") 2>&5
  2778   ac_status=$?
  2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2780   (exit $ac_status); }
  2781 { (ac_try="$ac_compiler -v >&5"
  2782 case "(($ac_try" in
  2783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2784   *) ac_try_echo=$ac_try;;
  2785 esac
  2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2787   (eval "$ac_compiler -v >&5") 2>&5
  2788   ac_status=$?
  2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2790   (exit $ac_status); }
  2791 { (ac_try="$ac_compiler -V >&5"
  2792 case "(($ac_try" in
  2793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2794   *) ac_try_echo=$ac_try;;
  2795 esac
  2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2797   (eval "$ac_compiler -V >&5") 2>&5
  2798   ac_status=$?
  2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2800   (exit $ac_status); }
  2802 cat >conftest.$ac_ext <<_ACEOF
  2803 /* confdefs.h.  */
  2804 _ACEOF
  2805 cat confdefs.h >>conftest.$ac_ext
  2806 cat >>conftest.$ac_ext <<_ACEOF
  2807 /* end confdefs.h.  */
  2809 int
  2810 main ()
  2814   return 0;
  2816 _ACEOF
  2817 ac_clean_files_save=$ac_clean_files
  2818 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2819 # Try to create an executable without -o first, disregard a.out.
  2820 # It will help us diagnose broken compilers, and finding out an intuition
  2821 # of exeext.
  2822 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2823 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2824 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2826 # List of possible output files, starting from the most likely.
  2827 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2828 # only as a last resort.  b.out is created by i960 compilers.
  2829 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2831 # The IRIX 6 linker writes into existing files which may not be
  2832 # executable, retaining their permissions.  Remove them first so a
  2833 # subsequent execution test works.
  2834 ac_rmfiles=
  2835 for ac_file in $ac_files
  2836 do
  2837   case $ac_file in
  2838     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2839     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2840   esac
  2841 done
  2842 rm -f $ac_rmfiles
  2844 if { (ac_try="$ac_link_default"
  2845 case "(($ac_try" in
  2846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2847   *) ac_try_echo=$ac_try;;
  2848 esac
  2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2850   (eval "$ac_link_default") 2>&5
  2851   ac_status=$?
  2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2853   (exit $ac_status); }; then
  2854   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2856 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2857 # so that the user can short-circuit this test for compilers unknown to
  2858 # Autoconf.
  2859 for ac_file in $ac_files ''
  2860 do
  2861   test -f "$ac_file" || continue
  2862   case $ac_file in
  2863     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2864 	;;
  2865     [ab].out )
  2866 	# We found the default executable, but exeext='' is most
  2867 	# certainly right.
  2868 	break;;
  2869     *.* )
  2870         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2871 	then :; else
  2872 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2873 	fi
  2874 	# We set ac_cv_exeext here because the later test for it is not
  2875 	# safe: cross compilers may not add the suffix if given an `-o'
  2876 	# argument, so we may need to know it at that point already.
  2877 	# Even if this section looks crufty: it has the advantage of
  2878 	# actually working.
  2879 	break;;
  2880     * )
  2881 	break;;
  2882   esac
  2883 done
  2884 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2886 else
  2887   ac_file=''
  2888 fi
  2890 { echo "$as_me:$LINENO: result: $ac_file" >&5
  2891 echo "${ECHO_T}$ac_file" >&6; }
  2892 if test -z "$ac_file"; then
  2893   echo "$as_me: failed program was:" >&5
  2894 sed 's/^/| /' conftest.$ac_ext >&5
  2896 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2897 See \`config.log' for more details." >&5
  2898 echo "$as_me: error: C compiler cannot create executables
  2899 See \`config.log' for more details." >&2;}
  2900    { (exit 77); exit 77; }; }
  2901 fi
  2903 ac_exeext=$ac_cv_exeext
  2905 # Check that the compiler produces executables we can run.  If not, either
  2906 # the compiler is broken, or we cross compile.
  2907 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2908 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2909 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2910 # If not cross compiling, check that we can run a simple program.
  2911 if test "$cross_compiling" != yes; then
  2912   if { ac_try='./$ac_file'
  2913   { (case "(($ac_try" in
  2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2915   *) ac_try_echo=$ac_try;;
  2916 esac
  2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2918   (eval "$ac_try") 2>&5
  2919   ac_status=$?
  2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2921   (exit $ac_status); }; }; then
  2922     cross_compiling=no
  2923   else
  2924     if test "$cross_compiling" = maybe; then
  2925 	cross_compiling=yes
  2926     else
  2927 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2928 If you meant to cross compile, use \`--host'.
  2929 See \`config.log' for more details." >&5
  2930 echo "$as_me: error: cannot run C compiled programs.
  2931 If you meant to cross compile, use \`--host'.
  2932 See \`config.log' for more details." >&2;}
  2933    { (exit 1); exit 1; }; }
  2934     fi
  2935   fi
  2936 fi
  2937 { echo "$as_me:$LINENO: result: yes" >&5
  2938 echo "${ECHO_T}yes" >&6; }
  2940 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2941 ac_clean_files=$ac_clean_files_save
  2942 # Check that the compiler produces executables we can run.  If not, either
  2943 # the compiler is broken, or we cross compile.
  2944 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2945 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2946 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2947 echo "${ECHO_T}$cross_compiling" >&6; }
  2949 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2950 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2951 if { (ac_try="$ac_link"
  2952 case "(($ac_try" in
  2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2954   *) ac_try_echo=$ac_try;;
  2955 esac
  2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2957   (eval "$ac_link") 2>&5
  2958   ac_status=$?
  2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2960   (exit $ac_status); }; then
  2961   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2962 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2963 # work properly (i.e., refer to `conftest.exe'), while it won't with
  2964 # `rm'.
  2965 for ac_file in conftest.exe conftest conftest.*; do
  2966   test -f "$ac_file" || continue
  2967   case $ac_file in
  2968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2969     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2970 	  break;;
  2971     * ) break;;
  2972   esac
  2973 done
  2974 else
  2975   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2976 See \`config.log' for more details." >&5
  2977 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2978 See \`config.log' for more details." >&2;}
  2979    { (exit 1); exit 1; }; }
  2980 fi
  2982 rm -f conftest$ac_cv_exeext
  2983 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2984 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2986 rm -f conftest.$ac_ext
  2987 EXEEXT=$ac_cv_exeext
  2988 ac_exeext=$EXEEXT
  2989 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2990 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2991 if test "${ac_cv_objext+set}" = set; then
  2992   echo $ECHO_N "(cached) $ECHO_C" >&6
  2993 else
  2994   cat >conftest.$ac_ext <<_ACEOF
  2995 /* confdefs.h.  */
  2996 _ACEOF
  2997 cat confdefs.h >>conftest.$ac_ext
  2998 cat >>conftest.$ac_ext <<_ACEOF
  2999 /* end confdefs.h.  */
  3001 int
  3002 main ()
  3006   return 0;
  3008 _ACEOF
  3009 rm -f conftest.o conftest.obj
  3010 if { (ac_try="$ac_compile"
  3011 case "(($ac_try" in
  3012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3013   *) ac_try_echo=$ac_try;;
  3014 esac
  3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3016   (eval "$ac_compile") 2>&5
  3017   ac_status=$?
  3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3019   (exit $ac_status); }; then
  3020   for ac_file in conftest.o conftest.obj conftest.*; do
  3021   test -f "$ac_file" || continue;
  3022   case $ac_file in
  3023     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3024     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3025        break;;
  3026   esac
  3027 done
  3028 else
  3029   echo "$as_me: failed program was:" >&5
  3030 sed 's/^/| /' conftest.$ac_ext >&5
  3032 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3033 See \`config.log' for more details." >&5
  3034 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3035 See \`config.log' for more details." >&2;}
  3036    { (exit 1); exit 1; }; }
  3037 fi
  3039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3040 fi
  3041 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3042 echo "${ECHO_T}$ac_cv_objext" >&6; }
  3043 OBJEXT=$ac_cv_objext
  3044 ac_objext=$OBJEXT
  3045 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3046 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3047 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3048   echo $ECHO_N "(cached) $ECHO_C" >&6
  3049 else
  3050   cat >conftest.$ac_ext <<_ACEOF
  3051 /* confdefs.h.  */
  3052 _ACEOF
  3053 cat confdefs.h >>conftest.$ac_ext
  3054 cat >>conftest.$ac_ext <<_ACEOF
  3055 /* end confdefs.h.  */
  3057 int
  3058 main ()
  3060 #ifndef __GNUC__
  3061        choke me
  3062 #endif
  3065   return 0;
  3067 _ACEOF
  3068 rm -f conftest.$ac_objext
  3069 if { (ac_try="$ac_compile"
  3070 case "(($ac_try" in
  3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3072   *) ac_try_echo=$ac_try;;
  3073 esac
  3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3075   (eval "$ac_compile") 2>conftest.er1
  3076   ac_status=$?
  3077   grep -v '^ *+' conftest.er1 >conftest.err
  3078   rm -f conftest.er1
  3079   cat conftest.err >&5
  3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3081   (exit $ac_status); } && {
  3082 	 test -z "$ac_c_werror_flag" ||
  3083 	 test ! -s conftest.err
  3084        } && test -s conftest.$ac_objext; then
  3085   ac_compiler_gnu=yes
  3086 else
  3087   echo "$as_me: failed program was:" >&5
  3088 sed 's/^/| /' conftest.$ac_ext >&5
  3090 	ac_compiler_gnu=no
  3091 fi
  3093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3096 fi
  3097 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3099 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3100 ac_test_CFLAGS=${CFLAGS+set}
  3101 ac_save_CFLAGS=$CFLAGS
  3102 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3103 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3104 if test "${ac_cv_prog_cc_g+set}" = set; then
  3105   echo $ECHO_N "(cached) $ECHO_C" >&6
  3106 else
  3107   ac_save_c_werror_flag=$ac_c_werror_flag
  3108    ac_c_werror_flag=yes
  3109    ac_cv_prog_cc_g=no
  3110    CFLAGS="-g"
  3111    cat >conftest.$ac_ext <<_ACEOF
  3112 /* confdefs.h.  */
  3113 _ACEOF
  3114 cat confdefs.h >>conftest.$ac_ext
  3115 cat >>conftest.$ac_ext <<_ACEOF
  3116 /* end confdefs.h.  */
  3118 int
  3119 main ()
  3123   return 0;
  3125 _ACEOF
  3126 rm -f conftest.$ac_objext
  3127 if { (ac_try="$ac_compile"
  3128 case "(($ac_try" in
  3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3130   *) ac_try_echo=$ac_try;;
  3131 esac
  3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3133   (eval "$ac_compile") 2>conftest.er1
  3134   ac_status=$?
  3135   grep -v '^ *+' conftest.er1 >conftest.err
  3136   rm -f conftest.er1
  3137   cat conftest.err >&5
  3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3139   (exit $ac_status); } && {
  3140 	 test -z "$ac_c_werror_flag" ||
  3141 	 test ! -s conftest.err
  3142        } && test -s conftest.$ac_objext; then
  3143   ac_cv_prog_cc_g=yes
  3144 else
  3145   echo "$as_me: failed program was:" >&5
  3146 sed 's/^/| /' conftest.$ac_ext >&5
  3148 	CFLAGS=""
  3149       cat >conftest.$ac_ext <<_ACEOF
  3150 /* confdefs.h.  */
  3151 _ACEOF
  3152 cat confdefs.h >>conftest.$ac_ext
  3153 cat >>conftest.$ac_ext <<_ACEOF
  3154 /* end confdefs.h.  */
  3156 int
  3157 main ()
  3161   return 0;
  3163 _ACEOF
  3164 rm -f conftest.$ac_objext
  3165 if { (ac_try="$ac_compile"
  3166 case "(($ac_try" in
  3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3168   *) ac_try_echo=$ac_try;;
  3169 esac
  3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3171   (eval "$ac_compile") 2>conftest.er1
  3172   ac_status=$?
  3173   grep -v '^ *+' conftest.er1 >conftest.err
  3174   rm -f conftest.er1
  3175   cat conftest.err >&5
  3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3177   (exit $ac_status); } && {
  3178 	 test -z "$ac_c_werror_flag" ||
  3179 	 test ! -s conftest.err
  3180        } && test -s conftest.$ac_objext; then
  3182 else
  3183   echo "$as_me: failed program was:" >&5
  3184 sed 's/^/| /' conftest.$ac_ext >&5
  3186 	ac_c_werror_flag=$ac_save_c_werror_flag
  3187 	 CFLAGS="-g"
  3188 	 cat >conftest.$ac_ext <<_ACEOF
  3189 /* confdefs.h.  */
  3190 _ACEOF
  3191 cat confdefs.h >>conftest.$ac_ext
  3192 cat >>conftest.$ac_ext <<_ACEOF
  3193 /* end confdefs.h.  */
  3195 int
  3196 main ()
  3200   return 0;
  3202 _ACEOF
  3203 rm -f conftest.$ac_objext
  3204 if { (ac_try="$ac_compile"
  3205 case "(($ac_try" in
  3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3207   *) ac_try_echo=$ac_try;;
  3208 esac
  3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3210   (eval "$ac_compile") 2>conftest.er1
  3211   ac_status=$?
  3212   grep -v '^ *+' conftest.er1 >conftest.err
  3213   rm -f conftest.er1
  3214   cat conftest.err >&5
  3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3216   (exit $ac_status); } && {
  3217 	 test -z "$ac_c_werror_flag" ||
  3218 	 test ! -s conftest.err
  3219        } && test -s conftest.$ac_objext; then
  3220   ac_cv_prog_cc_g=yes
  3221 else
  3222   echo "$as_me: failed program was:" >&5
  3223 sed 's/^/| /' conftest.$ac_ext >&5
  3226 fi
  3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3229 fi
  3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3232 fi
  3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3235    ac_c_werror_flag=$ac_save_c_werror_flag
  3236 fi
  3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3239 if test "$ac_test_CFLAGS" = set; then
  3240   CFLAGS=$ac_save_CFLAGS
  3241 elif test $ac_cv_prog_cc_g = yes; then
  3242   if test "$GCC" = yes; then
  3243     CFLAGS="-g -O2"
  3244   else
  3245     CFLAGS="-g"
  3246   fi
  3247 else
  3248   if test "$GCC" = yes; then
  3249     CFLAGS="-O2"
  3250   else
  3251     CFLAGS=
  3252   fi
  3253 fi
  3254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3256 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3257   echo $ECHO_N "(cached) $ECHO_C" >&6
  3258 else
  3259   ac_cv_prog_cc_c89=no
  3260 ac_save_CC=$CC
  3261 cat >conftest.$ac_ext <<_ACEOF
  3262 /* confdefs.h.  */
  3263 _ACEOF
  3264 cat confdefs.h >>conftest.$ac_ext
  3265 cat >>conftest.$ac_ext <<_ACEOF
  3266 /* end confdefs.h.  */
  3267 #include <stdarg.h>
  3268 #include <stdio.h>
  3269 #include <sys/types.h>
  3270 #include <sys/stat.h>
  3271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3272 struct buf { int x; };
  3273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3274 static char *e (p, i)
  3275      char **p;
  3276      int i;
  3278   return p[i];
  3280 static char *f (char * (*g) (char **, int), char **p, ...)
  3282   char *s;
  3283   va_list v;
  3284   va_start (v,p);
  3285   s = g (p, va_arg (v,int));
  3286   va_end (v);
  3287   return s;
  3290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3291    function prototypes and stuff, but not '\xHH' hex character constants.
  3292    These don't provoke an error unfortunately, instead are silently treated
  3293    as 'x'.  The following induces an error, until -std is added to get
  3294    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3295    array size at least.  It's necessary to write '\x00'==0 to get something
  3296    that's true only with -std.  */
  3297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3300    inside strings and character constants.  */
  3301 #define FOO(x) 'x'
  3302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3304 int test (int i, double x);
  3305 struct s1 {int (*f) (int a);};
  3306 struct s2 {int (*f) (double a);};
  3307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3308 int argc;
  3309 char **argv;
  3310 int
  3311 main ()
  3313 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3315   return 0;
  3317 _ACEOF
  3318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3319 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3320 do
  3321   CC="$ac_save_CC $ac_arg"
  3322   rm -f conftest.$ac_objext
  3323 if { (ac_try="$ac_compile"
  3324 case "(($ac_try" in
  3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3326   *) ac_try_echo=$ac_try;;
  3327 esac
  3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3329   (eval "$ac_compile") 2>conftest.er1
  3330   ac_status=$?
  3331   grep -v '^ *+' conftest.er1 >conftest.err
  3332   rm -f conftest.er1
  3333   cat conftest.err >&5
  3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3335   (exit $ac_status); } && {
  3336 	 test -z "$ac_c_werror_flag" ||
  3337 	 test ! -s conftest.err
  3338        } && test -s conftest.$ac_objext; then
  3339   ac_cv_prog_cc_c89=$ac_arg
  3340 else
  3341   echo "$as_me: failed program was:" >&5
  3342 sed 's/^/| /' conftest.$ac_ext >&5
  3345 fi
  3347 rm -f core conftest.err conftest.$ac_objext
  3348   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3349 done
  3350 rm -f conftest.$ac_ext
  3351 CC=$ac_save_CC
  3353 fi
  3354 # AC_CACHE_VAL
  3355 case "x$ac_cv_prog_cc_c89" in
  3356   x)
  3357     { echo "$as_me:$LINENO: result: none needed" >&5
  3358 echo "${ECHO_T}none needed" >&6; } ;;
  3359   xno)
  3360     { echo "$as_me:$LINENO: result: unsupported" >&5
  3361 echo "${ECHO_T}unsupported" >&6; } ;;
  3362   *)
  3363     CC="$CC $ac_cv_prog_cc_c89"
  3364     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3365 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3366 esac
  3369 ac_ext=c
  3370 ac_cpp='$CPP $CPPFLAGS'
  3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3375 depcc="$CC"   am_compiler_list=
  3377 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3378 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3379 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3380   echo $ECHO_N "(cached) $ECHO_C" >&6
  3381 else
  3382   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3383   # We make a subdir and do the tests there.  Otherwise we can end up
  3384   # making bogus files that we don't know about and never remove.  For
  3385   # instance it was reported that on HP-UX the gcc test will end up
  3386   # making a dummy file named `D' -- because `-MD' means `put the output
  3387   # in D'.
  3388   mkdir conftest.dir
  3389   # Copy depcomp to subdir because otherwise we won't find it if we're
  3390   # using a relative directory.
  3391   cp "$am_depcomp" conftest.dir
  3392   cd conftest.dir
  3393   # We will build objects and dependencies in a subdirectory because
  3394   # it helps to detect inapplicable dependency modes.  For instance
  3395   # both Tru64's cc and ICC support -MD to output dependencies as a
  3396   # side effect of compilation, but ICC will put the dependencies in
  3397   # the current directory while Tru64 will put them in the object
  3398   # directory.
  3399   mkdir sub
  3401   am_cv_CC_dependencies_compiler_type=none
  3402   if test "$am_compiler_list" = ""; then
  3403      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3404   fi
  3405   for depmode in $am_compiler_list; do
  3406     # Setup a source with many dependencies, because some compilers
  3407     # like to wrap large dependency lists on column 80 (with \), and
  3408     # we should not choose a depcomp mode which is confused by this.
  3410     # We need to recreate these files for each test, as the compiler may
  3411     # overwrite some of them when testing with obscure command lines.
  3412     # This happens at least with the AIX C compiler.
  3413     : > sub/conftest.c
  3414     for i in 1 2 3 4 5 6; do
  3415       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3416       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3417       # Solaris 8's {/usr,}/bin/sh.
  3418       touch sub/conftst$i.h
  3419     done
  3420     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3422     case $depmode in
  3423     nosideeffect)
  3424       # after this tag, mechanisms are not by side-effect, so they'll
  3425       # only be used when explicitly requested
  3426       if test "x$enable_dependency_tracking" = xyes; then
  3427 	continue
  3428       else
  3429 	break
  3430       fi
  3431       ;;
  3432     none) break ;;
  3433     esac
  3434     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3435     # mode.  It turns out that the SunPro C++ compiler does not properly
  3436     # handle `-M -o', and we need to detect this.
  3437     if depmode=$depmode \
  3438        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3439        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3440        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3441          >/dev/null 2>conftest.err &&
  3442        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3443        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3444        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3445       # icc doesn't choke on unknown options, it will just issue warnings
  3446       # or remarks (even with -Werror).  So we grep stderr for any message
  3447       # that says an option was ignored or not supported.
  3448       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3449       #   icc: Command line warning: ignoring option '-M'; no argument required
  3450       # The diagnosis changed in icc 8.0:
  3451       #   icc: Command line remark: option '-MP' not supported
  3452       if (grep 'ignoring option' conftest.err ||
  3453           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3454         am_cv_CC_dependencies_compiler_type=$depmode
  3455         break
  3456       fi
  3457     fi
  3458   done
  3460   cd ..
  3461   rm -rf conftest.dir
  3462 else
  3463   am_cv_CC_dependencies_compiler_type=none
  3464 fi
  3466 fi
  3467 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3468 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3469 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3473 if
  3474   test "x$enable_dependency_tracking" != xno \
  3475   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3476   am__fastdepCC_TRUE=
  3477   am__fastdepCC_FALSE='#'
  3478 else
  3479   am__fastdepCC_TRUE='#'
  3480   am__fastdepCC_FALSE=
  3481 fi
  3486         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3487 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  3488 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3489   echo $ECHO_N "(cached) $ECHO_C" >&6
  3490 else
  3491   ac_check_lib_save_LIBS=$LIBS
  3492 LIBS="-lcposix  $LIBS"
  3493 cat >conftest.$ac_ext <<_ACEOF
  3494 /* confdefs.h.  */
  3495 _ACEOF
  3496 cat confdefs.h >>conftest.$ac_ext
  3497 cat >>conftest.$ac_ext <<_ACEOF
  3498 /* end confdefs.h.  */
  3500 /* Override any GCC internal prototype to avoid an error.
  3501    Use char because int might match the return type of a GCC
  3502    builtin and then its argument prototype would still apply.  */
  3503 #ifdef __cplusplus
  3504 extern "C"
  3505 #endif
  3506 char strerror ();
  3507 int
  3508 main ()
  3510 return strerror ();
  3512   return 0;
  3514 _ACEOF
  3515 rm -f conftest.$ac_objext conftest$ac_exeext
  3516 if { (ac_try="$ac_link"
  3517 case "(($ac_try" in
  3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3519   *) ac_try_echo=$ac_try;;
  3520 esac
  3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3522   (eval "$ac_link") 2>conftest.er1
  3523   ac_status=$?
  3524   grep -v '^ *+' conftest.er1 >conftest.err
  3525   rm -f conftest.er1
  3526   cat conftest.err >&5
  3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3528   (exit $ac_status); } && {
  3529 	 test -z "$ac_c_werror_flag" ||
  3530 	 test ! -s conftest.err
  3531        } && test -s conftest$ac_exeext &&
  3532        $as_test_x conftest$ac_exeext; then
  3533   ac_cv_lib_cposix_strerror=yes
  3534 else
  3535   echo "$as_me: failed program was:" >&5
  3536 sed 's/^/| /' conftest.$ac_ext >&5
  3538 	ac_cv_lib_cposix_strerror=no
  3539 fi
  3541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3542       conftest$ac_exeext conftest.$ac_ext
  3543 LIBS=$ac_check_lib_save_LIBS
  3544 fi
  3545 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3546 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  3547 if test $ac_cv_lib_cposix_strerror = yes; then
  3548   LIBS="$LIBS -lcposix"
  3549 fi
  3553 ac_ext=c
  3554 ac_cpp='$CPP $CPPFLAGS'
  3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3558 if test -n "$ac_tool_prefix"; then
  3559   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3560 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3563 if test "${ac_cv_prog_CC+set}" = set; then
  3564   echo $ECHO_N "(cached) $ECHO_C" >&6
  3565 else
  3566   if test -n "$CC"; then
  3567   ac_cv_prog_CC="$CC" # Let the user override the test.
  3568 else
  3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3570 for as_dir in $PATH
  3571 do
  3572   IFS=$as_save_IFS
  3573   test -z "$as_dir" && as_dir=.
  3574   for ac_exec_ext in '' $ac_executable_extensions; do
  3575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3576     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3578     break 2
  3579   fi
  3580 done
  3581 done
  3582 IFS=$as_save_IFS
  3584 fi
  3585 fi
  3586 CC=$ac_cv_prog_CC
  3587 if test -n "$CC"; then
  3588   { echo "$as_me:$LINENO: result: $CC" >&5
  3589 echo "${ECHO_T}$CC" >&6; }
  3590 else
  3591   { echo "$as_me:$LINENO: result: no" >&5
  3592 echo "${ECHO_T}no" >&6; }
  3593 fi
  3596 fi
  3597 if test -z "$ac_cv_prog_CC"; then
  3598   ac_ct_CC=$CC
  3599   # Extract the first word of "gcc", so it can be a program name with args.
  3600 set dummy gcc; ac_word=$2
  3601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3604   echo $ECHO_N "(cached) $ECHO_C" >&6
  3605 else
  3606   if test -n "$ac_ct_CC"; then
  3607   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3608 else
  3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3610 for as_dir in $PATH
  3611 do
  3612   IFS=$as_save_IFS
  3613   test -z "$as_dir" && as_dir=.
  3614   for ac_exec_ext in '' $ac_executable_extensions; do
  3615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3616     ac_cv_prog_ac_ct_CC="gcc"
  3617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3618     break 2
  3619   fi
  3620 done
  3621 done
  3622 IFS=$as_save_IFS
  3624 fi
  3625 fi
  3626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3627 if test -n "$ac_ct_CC"; then
  3628   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3629 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3630 else
  3631   { echo "$as_me:$LINENO: result: no" >&5
  3632 echo "${ECHO_T}no" >&6; }
  3633 fi
  3635   if test "x$ac_ct_CC" = x; then
  3636     CC=""
  3637   else
  3638     case $cross_compiling:$ac_tool_warned in
  3639 yes:)
  3640 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3641 whose name does not start with the host triplet.  If you think this
  3642 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3644 whose name does not start with the host triplet.  If you think this
  3645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3646 ac_tool_warned=yes ;;
  3647 esac
  3648     CC=$ac_ct_CC
  3649   fi
  3650 else
  3651   CC="$ac_cv_prog_CC"
  3652 fi
  3654 if test -z "$CC"; then
  3655           if test -n "$ac_tool_prefix"; then
  3656     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3657 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3660 if test "${ac_cv_prog_CC+set}" = set; then
  3661   echo $ECHO_N "(cached) $ECHO_C" >&6
  3662 else
  3663   if test -n "$CC"; then
  3664   ac_cv_prog_CC="$CC" # Let the user override the test.
  3665 else
  3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3667 for as_dir in $PATH
  3668 do
  3669   IFS=$as_save_IFS
  3670   test -z "$as_dir" && as_dir=.
  3671   for ac_exec_ext in '' $ac_executable_extensions; do
  3672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3673     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3675     break 2
  3676   fi
  3677 done
  3678 done
  3679 IFS=$as_save_IFS
  3681 fi
  3682 fi
  3683 CC=$ac_cv_prog_CC
  3684 if test -n "$CC"; then
  3685   { echo "$as_me:$LINENO: result: $CC" >&5
  3686 echo "${ECHO_T}$CC" >&6; }
  3687 else
  3688   { echo "$as_me:$LINENO: result: no" >&5
  3689 echo "${ECHO_T}no" >&6; }
  3690 fi
  3693   fi
  3694 fi
  3695 if test -z "$CC"; then
  3696   # Extract the first word of "cc", so it can be a program name with args.
  3697 set dummy cc; ac_word=$2
  3698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3700 if test "${ac_cv_prog_CC+set}" = set; then
  3701   echo $ECHO_N "(cached) $ECHO_C" >&6
  3702 else
  3703   if test -n "$CC"; then
  3704   ac_cv_prog_CC="$CC" # Let the user override the test.
  3705 else
  3706   ac_prog_rejected=no
  3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3708 for as_dir in $PATH
  3709 do
  3710   IFS=$as_save_IFS
  3711   test -z "$as_dir" && as_dir=.
  3712   for ac_exec_ext in '' $ac_executable_extensions; do
  3713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3714     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3715        ac_prog_rejected=yes
  3716        continue
  3717      fi
  3718     ac_cv_prog_CC="cc"
  3719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3720     break 2
  3721   fi
  3722 done
  3723 done
  3724 IFS=$as_save_IFS
  3726 if test $ac_prog_rejected = yes; then
  3727   # We found a bogon in the path, so make sure we never use it.
  3728   set dummy $ac_cv_prog_CC
  3729   shift
  3730   if test $# != 0; then
  3731     # We chose a different compiler from the bogus one.
  3732     # However, it has the same basename, so the bogon will be chosen
  3733     # first if we set CC to just the basename; use the full file name.
  3734     shift
  3735     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3736   fi
  3737 fi
  3738 fi
  3739 fi
  3740 CC=$ac_cv_prog_CC
  3741 if test -n "$CC"; then
  3742   { echo "$as_me:$LINENO: result: $CC" >&5
  3743 echo "${ECHO_T}$CC" >&6; }
  3744 else
  3745   { echo "$as_me:$LINENO: result: no" >&5
  3746 echo "${ECHO_T}no" >&6; }
  3747 fi
  3750 fi
  3751 if test -z "$CC"; then
  3752   if test -n "$ac_tool_prefix"; then
  3753   for ac_prog in cl.exe
  3754   do
  3755     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3759 if test "${ac_cv_prog_CC+set}" = set; then
  3760   echo $ECHO_N "(cached) $ECHO_C" >&6
  3761 else
  3762   if test -n "$CC"; then
  3763   ac_cv_prog_CC="$CC" # Let the user override the test.
  3764 else
  3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3766 for as_dir in $PATH
  3767 do
  3768   IFS=$as_save_IFS
  3769   test -z "$as_dir" && as_dir=.
  3770   for ac_exec_ext in '' $ac_executable_extensions; do
  3771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3772     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3774     break 2
  3775   fi
  3776 done
  3777 done
  3778 IFS=$as_save_IFS
  3780 fi
  3781 fi
  3782 CC=$ac_cv_prog_CC
  3783 if test -n "$CC"; then
  3784   { echo "$as_me:$LINENO: result: $CC" >&5
  3785 echo "${ECHO_T}$CC" >&6; }
  3786 else
  3787   { echo "$as_me:$LINENO: result: no" >&5
  3788 echo "${ECHO_T}no" >&6; }
  3789 fi
  3792     test -n "$CC" && break
  3793   done
  3794 fi
  3795 if test -z "$CC"; then
  3796   ac_ct_CC=$CC
  3797   for ac_prog in cl.exe
  3798 do
  3799   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3800 set dummy $ac_prog; ac_word=$2
  3801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3804   echo $ECHO_N "(cached) $ECHO_C" >&6
  3805 else
  3806   if test -n "$ac_ct_CC"; then
  3807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3808 else
  3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3810 for as_dir in $PATH
  3811 do
  3812   IFS=$as_save_IFS
  3813   test -z "$as_dir" && as_dir=.
  3814   for ac_exec_ext in '' $ac_executable_extensions; do
  3815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3816     ac_cv_prog_ac_ct_CC="$ac_prog"
  3817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3818     break 2
  3819   fi
  3820 done
  3821 done
  3822 IFS=$as_save_IFS
  3824 fi
  3825 fi
  3826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3827 if test -n "$ac_ct_CC"; then
  3828   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3829 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3830 else
  3831   { echo "$as_me:$LINENO: result: no" >&5
  3832 echo "${ECHO_T}no" >&6; }
  3833 fi
  3836   test -n "$ac_ct_CC" && break
  3837 done
  3839   if test "x$ac_ct_CC" = x; then
  3840     CC=""
  3841   else
  3842     case $cross_compiling:$ac_tool_warned in
  3843 yes:)
  3844 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3845 whose name does not start with the host triplet.  If you think this
  3846 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3847 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3848 whose name does not start with the host triplet.  If you think this
  3849 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3850 ac_tool_warned=yes ;;
  3851 esac
  3852     CC=$ac_ct_CC
  3853   fi
  3854 fi
  3856 fi
  3859 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3860 See \`config.log' for more details." >&5
  3861 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3862 See \`config.log' for more details." >&2;}
  3863    { (exit 1); exit 1; }; }
  3865 # Provide some information about the compiler.
  3866 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3867 ac_compiler=`set X $ac_compile; echo $2`
  3868 { (ac_try="$ac_compiler --version >&5"
  3869 case "(($ac_try" in
  3870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3871   *) ac_try_echo=$ac_try;;
  3872 esac
  3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3874   (eval "$ac_compiler --version >&5") 2>&5
  3875   ac_status=$?
  3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3877   (exit $ac_status); }
  3878 { (ac_try="$ac_compiler -v >&5"
  3879 case "(($ac_try" in
  3880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3881   *) ac_try_echo=$ac_try;;
  3882 esac
  3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3884   (eval "$ac_compiler -v >&5") 2>&5
  3885   ac_status=$?
  3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3887   (exit $ac_status); }
  3888 { (ac_try="$ac_compiler -V >&5"
  3889 case "(($ac_try" in
  3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3891   *) ac_try_echo=$ac_try;;
  3892 esac
  3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3894   (eval "$ac_compiler -V >&5") 2>&5
  3895   ac_status=$?
  3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3897   (exit $ac_status); }
  3899 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3900 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3901 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3902   echo $ECHO_N "(cached) $ECHO_C" >&6
  3903 else
  3904   cat >conftest.$ac_ext <<_ACEOF
  3905 /* confdefs.h.  */
  3906 _ACEOF
  3907 cat confdefs.h >>conftest.$ac_ext
  3908 cat >>conftest.$ac_ext <<_ACEOF
  3909 /* end confdefs.h.  */
  3911 int
  3912 main ()
  3914 #ifndef __GNUC__
  3915        choke me
  3916 #endif
  3919   return 0;
  3921 _ACEOF
  3922 rm -f conftest.$ac_objext
  3923 if { (ac_try="$ac_compile"
  3924 case "(($ac_try" in
  3925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3926   *) ac_try_echo=$ac_try;;
  3927 esac
  3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3929   (eval "$ac_compile") 2>conftest.er1
  3930   ac_status=$?
  3931   grep -v '^ *+' conftest.er1 >conftest.err
  3932   rm -f conftest.er1
  3933   cat conftest.err >&5
  3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3935   (exit $ac_status); } && {
  3936 	 test -z "$ac_c_werror_flag" ||
  3937 	 test ! -s conftest.err
  3938        } && test -s conftest.$ac_objext; then
  3939   ac_compiler_gnu=yes
  3940 else
  3941   echo "$as_me: failed program was:" >&5
  3942 sed 's/^/| /' conftest.$ac_ext >&5
  3944 	ac_compiler_gnu=no
  3945 fi
  3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3950 fi
  3951 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3952 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3953 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3954 ac_test_CFLAGS=${CFLAGS+set}
  3955 ac_save_CFLAGS=$CFLAGS
  3956 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3957 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3958 if test "${ac_cv_prog_cc_g+set}" = set; then
  3959   echo $ECHO_N "(cached) $ECHO_C" >&6
  3960 else
  3961   ac_save_c_werror_flag=$ac_c_werror_flag
  3962    ac_c_werror_flag=yes
  3963    ac_cv_prog_cc_g=no
  3964    CFLAGS="-g"
  3965    cat >conftest.$ac_ext <<_ACEOF
  3966 /* confdefs.h.  */
  3967 _ACEOF
  3968 cat confdefs.h >>conftest.$ac_ext
  3969 cat >>conftest.$ac_ext <<_ACEOF
  3970 /* end confdefs.h.  */
  3972 int
  3973 main ()
  3977   return 0;
  3979 _ACEOF
  3980 rm -f conftest.$ac_objext
  3981 if { (ac_try="$ac_compile"
  3982 case "(($ac_try" in
  3983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3984   *) ac_try_echo=$ac_try;;
  3985 esac
  3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3987   (eval "$ac_compile") 2>conftest.er1
  3988   ac_status=$?
  3989   grep -v '^ *+' conftest.er1 >conftest.err
  3990   rm -f conftest.er1
  3991   cat conftest.err >&5
  3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3993   (exit $ac_status); } && {
  3994 	 test -z "$ac_c_werror_flag" ||
  3995 	 test ! -s conftest.err
  3996        } && test -s conftest.$ac_objext; then
  3997   ac_cv_prog_cc_g=yes
  3998 else
  3999   echo "$as_me: failed program was:" >&5
  4000 sed 's/^/| /' conftest.$ac_ext >&5
  4002 	CFLAGS=""
  4003       cat >conftest.$ac_ext <<_ACEOF
  4004 /* confdefs.h.  */
  4005 _ACEOF
  4006 cat confdefs.h >>conftest.$ac_ext
  4007 cat >>conftest.$ac_ext <<_ACEOF
  4008 /* end confdefs.h.  */
  4010 int
  4011 main ()
  4015   return 0;
  4017 _ACEOF
  4018 rm -f conftest.$ac_objext
  4019 if { (ac_try="$ac_compile"
  4020 case "(($ac_try" in
  4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4022   *) ac_try_echo=$ac_try;;
  4023 esac
  4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4025   (eval "$ac_compile") 2>conftest.er1
  4026   ac_status=$?
  4027   grep -v '^ *+' conftest.er1 >conftest.err
  4028   rm -f conftest.er1
  4029   cat conftest.err >&5
  4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031   (exit $ac_status); } && {
  4032 	 test -z "$ac_c_werror_flag" ||
  4033 	 test ! -s conftest.err
  4034        } && test -s conftest.$ac_objext; then
  4036 else
  4037   echo "$as_me: failed program was:" >&5
  4038 sed 's/^/| /' conftest.$ac_ext >&5
  4040 	ac_c_werror_flag=$ac_save_c_werror_flag
  4041 	 CFLAGS="-g"
  4042 	 cat >conftest.$ac_ext <<_ACEOF
  4043 /* confdefs.h.  */
  4044 _ACEOF
  4045 cat confdefs.h >>conftest.$ac_ext
  4046 cat >>conftest.$ac_ext <<_ACEOF
  4047 /* end confdefs.h.  */
  4049 int
  4050 main ()
  4054   return 0;
  4056 _ACEOF
  4057 rm -f conftest.$ac_objext
  4058 if { (ac_try="$ac_compile"
  4059 case "(($ac_try" in
  4060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4061   *) ac_try_echo=$ac_try;;
  4062 esac
  4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4064   (eval "$ac_compile") 2>conftest.er1
  4065   ac_status=$?
  4066   grep -v '^ *+' conftest.er1 >conftest.err
  4067   rm -f conftest.er1
  4068   cat conftest.err >&5
  4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4070   (exit $ac_status); } && {
  4071 	 test -z "$ac_c_werror_flag" ||
  4072 	 test ! -s conftest.err
  4073        } && test -s conftest.$ac_objext; then
  4074   ac_cv_prog_cc_g=yes
  4075 else
  4076   echo "$as_me: failed program was:" >&5
  4077 sed 's/^/| /' conftest.$ac_ext >&5
  4080 fi
  4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4083 fi
  4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4086 fi
  4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4089    ac_c_werror_flag=$ac_save_c_werror_flag
  4090 fi
  4091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4092 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4093 if test "$ac_test_CFLAGS" = set; then
  4094   CFLAGS=$ac_save_CFLAGS
  4095 elif test $ac_cv_prog_cc_g = yes; then
  4096   if test "$GCC" = yes; then
  4097     CFLAGS="-g -O2"
  4098   else
  4099     CFLAGS="-g"
  4100   fi
  4101 else
  4102   if test "$GCC" = yes; then
  4103     CFLAGS="-O2"
  4104   else
  4105     CFLAGS=
  4106   fi
  4107 fi
  4108 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4109 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4110 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4111   echo $ECHO_N "(cached) $ECHO_C" >&6
  4112 else
  4113   ac_cv_prog_cc_c89=no
  4114 ac_save_CC=$CC
  4115 cat >conftest.$ac_ext <<_ACEOF
  4116 /* confdefs.h.  */
  4117 _ACEOF
  4118 cat confdefs.h >>conftest.$ac_ext
  4119 cat >>conftest.$ac_ext <<_ACEOF
  4120 /* end confdefs.h.  */
  4121 #include <stdarg.h>
  4122 #include <stdio.h>
  4123 #include <sys/types.h>
  4124 #include <sys/stat.h>
  4125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4126 struct buf { int x; };
  4127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4128 static char *e (p, i)
  4129      char **p;
  4130      int i;
  4132   return p[i];
  4134 static char *f (char * (*g) (char **, int), char **p, ...)
  4136   char *s;
  4137   va_list v;
  4138   va_start (v,p);
  4139   s = g (p, va_arg (v,int));
  4140   va_end (v);
  4141   return s;
  4144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4145    function prototypes and stuff, but not '\xHH' hex character constants.
  4146    These don't provoke an error unfortunately, instead are silently treated
  4147    as 'x'.  The following induces an error, until -std is added to get
  4148    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4149    array size at least.  It's necessary to write '\x00'==0 to get something
  4150    that's true only with -std.  */
  4151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4154    inside strings and character constants.  */
  4155 #define FOO(x) 'x'
  4156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4158 int test (int i, double x);
  4159 struct s1 {int (*f) (int a);};
  4160 struct s2 {int (*f) (double a);};
  4161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4162 int argc;
  4163 char **argv;
  4164 int
  4165 main ()
  4167 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4169   return 0;
  4171 _ACEOF
  4172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4173 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4174 do
  4175   CC="$ac_save_CC $ac_arg"
  4176   rm -f conftest.$ac_objext
  4177 if { (ac_try="$ac_compile"
  4178 case "(($ac_try" in
  4179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4180   *) ac_try_echo=$ac_try;;
  4181 esac
  4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4183   (eval "$ac_compile") 2>conftest.er1
  4184   ac_status=$?
  4185   grep -v '^ *+' conftest.er1 >conftest.err
  4186   rm -f conftest.er1
  4187   cat conftest.err >&5
  4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4189   (exit $ac_status); } && {
  4190 	 test -z "$ac_c_werror_flag" ||
  4191 	 test ! -s conftest.err
  4192        } && test -s conftest.$ac_objext; then
  4193   ac_cv_prog_cc_c89=$ac_arg
  4194 else
  4195   echo "$as_me: failed program was:" >&5
  4196 sed 's/^/| /' conftest.$ac_ext >&5
  4199 fi
  4201 rm -f core conftest.err conftest.$ac_objext
  4202   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4203 done
  4204 rm -f conftest.$ac_ext
  4205 CC=$ac_save_CC
  4207 fi
  4208 # AC_CACHE_VAL
  4209 case "x$ac_cv_prog_cc_c89" in
  4210   x)
  4211     { echo "$as_me:$LINENO: result: none needed" >&5
  4212 echo "${ECHO_T}none needed" >&6; } ;;
  4213   xno)
  4214     { echo "$as_me:$LINENO: result: unsupported" >&5
  4215 echo "${ECHO_T}unsupported" >&6; } ;;
  4216   *)
  4217     CC="$CC $ac_cv_prog_cc_c89"
  4218     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4219 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4220 esac
  4223 ac_ext=c
  4224 ac_cpp='$CPP $CPPFLAGS'
  4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4229 depcc="$CC"   am_compiler_list=
  4231 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4232 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4233 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4234   echo $ECHO_N "(cached) $ECHO_C" >&6
  4235 else
  4236   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4237   # We make a subdir and do the tests there.  Otherwise we can end up
  4238   # making bogus files that we don't know about and never remove.  For
  4239   # instance it was reported that on HP-UX the gcc test will end up
  4240   # making a dummy file named `D' -- because `-MD' means `put the output
  4241   # in D'.
  4242   mkdir conftest.dir
  4243   # Copy depcomp to subdir because otherwise we won't find it if we're
  4244   # using a relative directory.
  4245   cp "$am_depcomp" conftest.dir
  4246   cd conftest.dir
  4247   # We will build objects and dependencies in a subdirectory because
  4248   # it helps to detect inapplicable dependency modes.  For instance
  4249   # both Tru64's cc and ICC support -MD to output dependencies as a
  4250   # side effect of compilation, but ICC will put the dependencies in
  4251   # the current directory while Tru64 will put them in the object
  4252   # directory.
  4253   mkdir sub
  4255   am_cv_CC_dependencies_compiler_type=none
  4256   if test "$am_compiler_list" = ""; then
  4257      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4258   fi
  4259   for depmode in $am_compiler_list; do
  4260     # Setup a source with many dependencies, because some compilers
  4261     # like to wrap large dependency lists on column 80 (with \), and
  4262     # we should not choose a depcomp mode which is confused by this.
  4264     # We need to recreate these files for each test, as the compiler may
  4265     # overwrite some of them when testing with obscure command lines.
  4266     # This happens at least with the AIX C compiler.
  4267     : > sub/conftest.c
  4268     for i in 1 2 3 4 5 6; do
  4269       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4270       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4271       # Solaris 8's {/usr,}/bin/sh.
  4272       touch sub/conftst$i.h
  4273     done
  4274     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4276     case $depmode in
  4277     nosideeffect)
  4278       # after this tag, mechanisms are not by side-effect, so they'll
  4279       # only be used when explicitly requested
  4280       if test "x$enable_dependency_tracking" = xyes; then
  4281 	continue
  4282       else
  4283 	break
  4284       fi
  4285       ;;
  4286     none) break ;;
  4287     esac
  4288     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4289     # mode.  It turns out that the SunPro C++ compiler does not properly
  4290     # handle `-M -o', and we need to detect this.
  4291     if depmode=$depmode \
  4292        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4293        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4294        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4295          >/dev/null 2>conftest.err &&
  4296        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4297        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4298        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4299       # icc doesn't choke on unknown options, it will just issue warnings
  4300       # or remarks (even with -Werror).  So we grep stderr for any message
  4301       # that says an option was ignored or not supported.
  4302       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4303       #   icc: Command line warning: ignoring option '-M'; no argument required
  4304       # The diagnosis changed in icc 8.0:
  4305       #   icc: Command line remark: option '-MP' not supported
  4306       if (grep 'ignoring option' conftest.err ||
  4307           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4308         am_cv_CC_dependencies_compiler_type=$depmode
  4309         break
  4310       fi
  4311     fi
  4312   done
  4314   cd ..
  4315   rm -rf conftest.dir
  4316 else
  4317   am_cv_CC_dependencies_compiler_type=none
  4318 fi
  4320 fi
  4321 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4322 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4323 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4327 if
  4328   test "x$enable_dependency_tracking" != xno \
  4329   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4330   am__fastdepCC_TRUE=
  4331   am__fastdepCC_FALSE='#'
  4332 else
  4333   am__fastdepCC_TRUE='#'
  4334   am__fastdepCC_FALSE=
  4335 fi
  4338 ac_ext=c
  4339 ac_cpp='$CPP $CPPFLAGS'
  4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4343 if test -n "$ac_tool_prefix"; then
  4344   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4348 if test "${ac_cv_prog_CC+set}" = set; then
  4349   echo $ECHO_N "(cached) $ECHO_C" >&6
  4350 else
  4351   if test -n "$CC"; then
  4352   ac_cv_prog_CC="$CC" # Let the user override the test.
  4353 else
  4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4355 for as_dir in $PATH
  4356 do
  4357   IFS=$as_save_IFS
  4358   test -z "$as_dir" && as_dir=.
  4359   for ac_exec_ext in '' $ac_executable_extensions; do
  4360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4361     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4363     break 2
  4364   fi
  4365 done
  4366 done
  4367 IFS=$as_save_IFS
  4369 fi
  4370 fi
  4371 CC=$ac_cv_prog_CC
  4372 if test -n "$CC"; then
  4373   { echo "$as_me:$LINENO: result: $CC" >&5
  4374 echo "${ECHO_T}$CC" >&6; }
  4375 else
  4376   { echo "$as_me:$LINENO: result: no" >&5
  4377 echo "${ECHO_T}no" >&6; }
  4378 fi
  4381 fi
  4382 if test -z "$ac_cv_prog_CC"; then
  4383   ac_ct_CC=$CC
  4384   # Extract the first word of "gcc", so it can be a program name with args.
  4385 set dummy gcc; ac_word=$2
  4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4389   echo $ECHO_N "(cached) $ECHO_C" >&6
  4390 else
  4391   if test -n "$ac_ct_CC"; then
  4392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4393 else
  4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4395 for as_dir in $PATH
  4396 do
  4397   IFS=$as_save_IFS
  4398   test -z "$as_dir" && as_dir=.
  4399   for ac_exec_ext in '' $ac_executable_extensions; do
  4400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4401     ac_cv_prog_ac_ct_CC="gcc"
  4402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4403     break 2
  4404   fi
  4405 done
  4406 done
  4407 IFS=$as_save_IFS
  4409 fi
  4410 fi
  4411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4412 if test -n "$ac_ct_CC"; then
  4413   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4414 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4415 else
  4416   { echo "$as_me:$LINENO: result: no" >&5
  4417 echo "${ECHO_T}no" >&6; }
  4418 fi
  4420   if test "x$ac_ct_CC" = x; then
  4421     CC=""
  4422   else
  4423     case $cross_compiling:$ac_tool_warned in
  4424 yes:)
  4425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4426 whose name does not start with the host triplet.  If you think this
  4427 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4429 whose name does not start with the host triplet.  If you think this
  4430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4431 ac_tool_warned=yes ;;
  4432 esac
  4433     CC=$ac_ct_CC
  4434   fi
  4435 else
  4436   CC="$ac_cv_prog_CC"
  4437 fi
  4439 if test -z "$CC"; then
  4440           if test -n "$ac_tool_prefix"; then
  4441     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4442 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4445 if test "${ac_cv_prog_CC+set}" = set; then
  4446   echo $ECHO_N "(cached) $ECHO_C" >&6
  4447 else
  4448   if test -n "$CC"; then
  4449   ac_cv_prog_CC="$CC" # Let the user override the test.
  4450 else
  4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4452 for as_dir in $PATH
  4453 do
  4454   IFS=$as_save_IFS
  4455   test -z "$as_dir" && as_dir=.
  4456   for ac_exec_ext in '' $ac_executable_extensions; do
  4457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4458     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4460     break 2
  4461   fi
  4462 done
  4463 done
  4464 IFS=$as_save_IFS
  4466 fi
  4467 fi
  4468 CC=$ac_cv_prog_CC
  4469 if test -n "$CC"; then
  4470   { echo "$as_me:$LINENO: result: $CC" >&5
  4471 echo "${ECHO_T}$CC" >&6; }
  4472 else
  4473   { echo "$as_me:$LINENO: result: no" >&5
  4474 echo "${ECHO_T}no" >&6; }
  4475 fi
  4478   fi
  4479 fi
  4480 if test -z "$CC"; then
  4481   # Extract the first word of "cc", so it can be a program name with args.
  4482 set dummy cc; ac_word=$2
  4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4485 if test "${ac_cv_prog_CC+set}" = set; then
  4486   echo $ECHO_N "(cached) $ECHO_C" >&6
  4487 else
  4488   if test -n "$CC"; then
  4489   ac_cv_prog_CC="$CC" # Let the user override the test.
  4490 else
  4491   ac_prog_rejected=no
  4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4493 for as_dir in $PATH
  4494 do
  4495   IFS=$as_save_IFS
  4496   test -z "$as_dir" && as_dir=.
  4497   for ac_exec_ext in '' $ac_executable_extensions; do
  4498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4499     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4500        ac_prog_rejected=yes
  4501        continue
  4502      fi
  4503     ac_cv_prog_CC="cc"
  4504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4505     break 2
  4506   fi
  4507 done
  4508 done
  4509 IFS=$as_save_IFS
  4511 if test $ac_prog_rejected = yes; then
  4512   # We found a bogon in the path, so make sure we never use it.
  4513   set dummy $ac_cv_prog_CC
  4514   shift
  4515   if test $# != 0; then
  4516     # We chose a different compiler from the bogus one.
  4517     # However, it has the same basename, so the bogon will be chosen
  4518     # first if we set CC to just the basename; use the full file name.
  4519     shift
  4520     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4521   fi
  4522 fi
  4523 fi
  4524 fi
  4525 CC=$ac_cv_prog_CC
  4526 if test -n "$CC"; then
  4527   { echo "$as_me:$LINENO: result: $CC" >&5
  4528 echo "${ECHO_T}$CC" >&6; }
  4529 else
  4530   { echo "$as_me:$LINENO: result: no" >&5
  4531 echo "${ECHO_T}no" >&6; }
  4532 fi
  4535 fi
  4536 if test -z "$CC"; then
  4537   if test -n "$ac_tool_prefix"; then
  4538   for ac_prog in cl.exe
  4539   do
  4540     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4544 if test "${ac_cv_prog_CC+set}" = set; then
  4545   echo $ECHO_N "(cached) $ECHO_C" >&6
  4546 else
  4547   if test -n "$CC"; then
  4548   ac_cv_prog_CC="$CC" # Let the user override the test.
  4549 else
  4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4551 for as_dir in $PATH
  4552 do
  4553   IFS=$as_save_IFS
  4554   test -z "$as_dir" && as_dir=.
  4555   for ac_exec_ext in '' $ac_executable_extensions; do
  4556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4557     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4559     break 2
  4560   fi
  4561 done
  4562 done
  4563 IFS=$as_save_IFS
  4565 fi
  4566 fi
  4567 CC=$ac_cv_prog_CC
  4568 if test -n "$CC"; then
  4569   { echo "$as_me:$LINENO: result: $CC" >&5
  4570 echo "${ECHO_T}$CC" >&6; }
  4571 else
  4572   { echo "$as_me:$LINENO: result: no" >&5
  4573 echo "${ECHO_T}no" >&6; }
  4574 fi
  4577     test -n "$CC" && break
  4578   done
  4579 fi
  4580 if test -z "$CC"; then
  4581   ac_ct_CC=$CC
  4582   for ac_prog in cl.exe
  4583 do
  4584   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4585 set dummy $ac_prog; ac_word=$2
  4586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4589   echo $ECHO_N "(cached) $ECHO_C" >&6
  4590 else
  4591   if test -n "$ac_ct_CC"; then
  4592   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4593 else
  4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4595 for as_dir in $PATH
  4596 do
  4597   IFS=$as_save_IFS
  4598   test -z "$as_dir" && as_dir=.
  4599   for ac_exec_ext in '' $ac_executable_extensions; do
  4600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4601     ac_cv_prog_ac_ct_CC="$ac_prog"
  4602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4603     break 2
  4604   fi
  4605 done
  4606 done
  4607 IFS=$as_save_IFS
  4609 fi
  4610 fi
  4611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4612 if test -n "$ac_ct_CC"; then
  4613   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4614 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4615 else
  4616   { echo "$as_me:$LINENO: result: no" >&5
  4617 echo "${ECHO_T}no" >&6; }
  4618 fi
  4621   test -n "$ac_ct_CC" && break
  4622 done
  4624   if test "x$ac_ct_CC" = x; then
  4625     CC=""
  4626   else
  4627     case $cross_compiling:$ac_tool_warned in
  4628 yes:)
  4629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4630 whose name does not start with the host triplet.  If you think this
  4631 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4633 whose name does not start with the host triplet.  If you think this
  4634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4635 ac_tool_warned=yes ;;
  4636 esac
  4637     CC=$ac_ct_CC
  4638   fi
  4639 fi
  4641 fi
  4644 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4645 See \`config.log' for more details." >&5
  4646 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4647 See \`config.log' for more details." >&2;}
  4648    { (exit 1); exit 1; }; }
  4650 # Provide some information about the compiler.
  4651 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4652 ac_compiler=`set X $ac_compile; echo $2`
  4653 { (ac_try="$ac_compiler --version >&5"
  4654 case "(($ac_try" in
  4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4656   *) ac_try_echo=$ac_try;;
  4657 esac
  4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4659   (eval "$ac_compiler --version >&5") 2>&5
  4660   ac_status=$?
  4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4662   (exit $ac_status); }
  4663 { (ac_try="$ac_compiler -v >&5"
  4664 case "(($ac_try" in
  4665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4666   *) ac_try_echo=$ac_try;;
  4667 esac
  4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4669   (eval "$ac_compiler -v >&5") 2>&5
  4670   ac_status=$?
  4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4672   (exit $ac_status); }
  4673 { (ac_try="$ac_compiler -V >&5"
  4674 case "(($ac_try" in
  4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4676   *) ac_try_echo=$ac_try;;
  4677 esac
  4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4679   (eval "$ac_compiler -V >&5") 2>&5
  4680   ac_status=$?
  4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4682   (exit $ac_status); }
  4684 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4685 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4686 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4687   echo $ECHO_N "(cached) $ECHO_C" >&6
  4688 else
  4689   cat >conftest.$ac_ext <<_ACEOF
  4690 /* confdefs.h.  */
  4691 _ACEOF
  4692 cat confdefs.h >>conftest.$ac_ext
  4693 cat >>conftest.$ac_ext <<_ACEOF
  4694 /* end confdefs.h.  */
  4696 int
  4697 main ()
  4699 #ifndef __GNUC__
  4700        choke me
  4701 #endif
  4704   return 0;
  4706 _ACEOF
  4707 rm -f conftest.$ac_objext
  4708 if { (ac_try="$ac_compile"
  4709 case "(($ac_try" in
  4710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4711   *) ac_try_echo=$ac_try;;
  4712 esac
  4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4714   (eval "$ac_compile") 2>conftest.er1
  4715   ac_status=$?
  4716   grep -v '^ *+' conftest.er1 >conftest.err
  4717   rm -f conftest.er1
  4718   cat conftest.err >&5
  4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4720   (exit $ac_status); } && {
  4721 	 test -z "$ac_c_werror_flag" ||
  4722 	 test ! -s conftest.err
  4723        } && test -s conftest.$ac_objext; then
  4724   ac_compiler_gnu=yes
  4725 else
  4726   echo "$as_me: failed program was:" >&5
  4727 sed 's/^/| /' conftest.$ac_ext >&5
  4729 	ac_compiler_gnu=no
  4730 fi
  4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4735 fi
  4736 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4737 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4738 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4739 ac_test_CFLAGS=${CFLAGS+set}
  4740 ac_save_CFLAGS=$CFLAGS
  4741 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4742 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4743 if test "${ac_cv_prog_cc_g+set}" = set; then
  4744   echo $ECHO_N "(cached) $ECHO_C" >&6
  4745 else
  4746   ac_save_c_werror_flag=$ac_c_werror_flag
  4747    ac_c_werror_flag=yes
  4748    ac_cv_prog_cc_g=no
  4749    CFLAGS="-g"
  4750    cat >conftest.$ac_ext <<_ACEOF
  4751 /* confdefs.h.  */
  4752 _ACEOF
  4753 cat confdefs.h >>conftest.$ac_ext
  4754 cat >>conftest.$ac_ext <<_ACEOF
  4755 /* end confdefs.h.  */
  4757 int
  4758 main ()
  4762   return 0;
  4764 _ACEOF
  4765 rm -f conftest.$ac_objext
  4766 if { (ac_try="$ac_compile"
  4767 case "(($ac_try" in
  4768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4769   *) ac_try_echo=$ac_try;;
  4770 esac
  4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4772   (eval "$ac_compile") 2>conftest.er1
  4773   ac_status=$?
  4774   grep -v '^ *+' conftest.er1 >conftest.err
  4775   rm -f conftest.er1
  4776   cat conftest.err >&5
  4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4778   (exit $ac_status); } && {
  4779 	 test -z "$ac_c_werror_flag" ||
  4780 	 test ! -s conftest.err
  4781        } && test -s conftest.$ac_objext; then
  4782   ac_cv_prog_cc_g=yes
  4783 else
  4784   echo "$as_me: failed program was:" >&5
  4785 sed 's/^/| /' conftest.$ac_ext >&5
  4787 	CFLAGS=""
  4788       cat >conftest.$ac_ext <<_ACEOF
  4789 /* confdefs.h.  */
  4790 _ACEOF
  4791 cat confdefs.h >>conftest.$ac_ext
  4792 cat >>conftest.$ac_ext <<_ACEOF
  4793 /* end confdefs.h.  */
  4795 int
  4796 main ()
  4800   return 0;
  4802 _ACEOF
  4803 rm -f conftest.$ac_objext
  4804 if { (ac_try="$ac_compile"
  4805 case "(($ac_try" in
  4806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4807   *) ac_try_echo=$ac_try;;
  4808 esac
  4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4810   (eval "$ac_compile") 2>conftest.er1
  4811   ac_status=$?
  4812   grep -v '^ *+' conftest.er1 >conftest.err
  4813   rm -f conftest.er1
  4814   cat conftest.err >&5
  4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4816   (exit $ac_status); } && {
  4817 	 test -z "$ac_c_werror_flag" ||
  4818 	 test ! -s conftest.err
  4819        } && test -s conftest.$ac_objext; then
  4821 else
  4822   echo "$as_me: failed program was:" >&5
  4823 sed 's/^/| /' conftest.$ac_ext >&5
  4825 	ac_c_werror_flag=$ac_save_c_werror_flag
  4826 	 CFLAGS="-g"
  4827 	 cat >conftest.$ac_ext <<_ACEOF
  4828 /* confdefs.h.  */
  4829 _ACEOF
  4830 cat confdefs.h >>conftest.$ac_ext
  4831 cat >>conftest.$ac_ext <<_ACEOF
  4832 /* end confdefs.h.  */
  4834 int
  4835 main ()
  4839   return 0;
  4841 _ACEOF
  4842 rm -f conftest.$ac_objext
  4843 if { (ac_try="$ac_compile"
  4844 case "(($ac_try" in
  4845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4846   *) ac_try_echo=$ac_try;;
  4847 esac
  4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4849   (eval "$ac_compile") 2>conftest.er1
  4850   ac_status=$?
  4851   grep -v '^ *+' conftest.er1 >conftest.err
  4852   rm -f conftest.er1
  4853   cat conftest.err >&5
  4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4855   (exit $ac_status); } && {
  4856 	 test -z "$ac_c_werror_flag" ||
  4857 	 test ! -s conftest.err
  4858        } && test -s conftest.$ac_objext; then
  4859   ac_cv_prog_cc_g=yes
  4860 else
  4861   echo "$as_me: failed program was:" >&5
  4862 sed 's/^/| /' conftest.$ac_ext >&5
  4865 fi
  4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4868 fi
  4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4871 fi
  4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4874    ac_c_werror_flag=$ac_save_c_werror_flag
  4875 fi
  4876 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4877 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4878 if test "$ac_test_CFLAGS" = set; then
  4879   CFLAGS=$ac_save_CFLAGS
  4880 elif test $ac_cv_prog_cc_g = yes; then
  4881   if test "$GCC" = yes; then
  4882     CFLAGS="-g -O2"
  4883   else
  4884     CFLAGS="-g"
  4885   fi
  4886 else
  4887   if test "$GCC" = yes; then
  4888     CFLAGS="-O2"
  4889   else
  4890     CFLAGS=
  4891   fi
  4892 fi
  4893 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4894 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4895 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4896   echo $ECHO_N "(cached) $ECHO_C" >&6
  4897 else
  4898   ac_cv_prog_cc_c89=no
  4899 ac_save_CC=$CC
  4900 cat >conftest.$ac_ext <<_ACEOF
  4901 /* confdefs.h.  */
  4902 _ACEOF
  4903 cat confdefs.h >>conftest.$ac_ext
  4904 cat >>conftest.$ac_ext <<_ACEOF
  4905 /* end confdefs.h.  */
  4906 #include <stdarg.h>
  4907 #include <stdio.h>
  4908 #include <sys/types.h>
  4909 #include <sys/stat.h>
  4910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4911 struct buf { int x; };
  4912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4913 static char *e (p, i)
  4914      char **p;
  4915      int i;
  4917   return p[i];
  4919 static char *f (char * (*g) (char **, int), char **p, ...)
  4921   char *s;
  4922   va_list v;
  4923   va_start (v,p);
  4924   s = g (p, va_arg (v,int));
  4925   va_end (v);
  4926   return s;
  4929 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4930    function prototypes and stuff, but not '\xHH' hex character constants.
  4931    These don't provoke an error unfortunately, instead are silently treated
  4932    as 'x'.  The following induces an error, until -std is added to get
  4933    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4934    array size at least.  It's necessary to write '\x00'==0 to get something
  4935    that's true only with -std.  */
  4936 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4938 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4939    inside strings and character constants.  */
  4940 #define FOO(x) 'x'
  4941 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4943 int test (int i, double x);
  4944 struct s1 {int (*f) (int a);};
  4945 struct s2 {int (*f) (double a);};
  4946 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4947 int argc;
  4948 char **argv;
  4949 int
  4950 main ()
  4952 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4954   return 0;
  4956 _ACEOF
  4957 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4958 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4959 do
  4960   CC="$ac_save_CC $ac_arg"
  4961   rm -f conftest.$ac_objext
  4962 if { (ac_try="$ac_compile"
  4963 case "(($ac_try" in
  4964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4965   *) ac_try_echo=$ac_try;;
  4966 esac
  4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4968   (eval "$ac_compile") 2>conftest.er1
  4969   ac_status=$?
  4970   grep -v '^ *+' conftest.er1 >conftest.err
  4971   rm -f conftest.er1
  4972   cat conftest.err >&5
  4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4974   (exit $ac_status); } && {
  4975 	 test -z "$ac_c_werror_flag" ||
  4976 	 test ! -s conftest.err
  4977        } && test -s conftest.$ac_objext; then
  4978   ac_cv_prog_cc_c89=$ac_arg
  4979 else
  4980   echo "$as_me: failed program was:" >&5
  4981 sed 's/^/| /' conftest.$ac_ext >&5
  4984 fi
  4986 rm -f core conftest.err conftest.$ac_objext
  4987   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4988 done
  4989 rm -f conftest.$ac_ext
  4990 CC=$ac_save_CC
  4992 fi
  4993 # AC_CACHE_VAL
  4994 case "x$ac_cv_prog_cc_c89" in
  4995   x)
  4996     { echo "$as_me:$LINENO: result: none needed" >&5
  4997 echo "${ECHO_T}none needed" >&6; } ;;
  4998   xno)
  4999     { echo "$as_me:$LINENO: result: unsupported" >&5
  5000 echo "${ECHO_T}unsupported" >&6; } ;;
  5001   *)
  5002     CC="$CC $ac_cv_prog_cc_c89"
  5003     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5004 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  5005 esac
  5008 ac_ext=c
  5009 ac_cpp='$CPP $CPPFLAGS'
  5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5014 depcc="$CC"   am_compiler_list=
  5016 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5017 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5018 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5019   echo $ECHO_N "(cached) $ECHO_C" >&6
  5020 else
  5021   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5022   # We make a subdir and do the tests there.  Otherwise we can end up
  5023   # making bogus files that we don't know about and never remove.  For
  5024   # instance it was reported that on HP-UX the gcc test will end up
  5025   # making a dummy file named `D' -- because `-MD' means `put the output
  5026   # in D'.
  5027   mkdir conftest.dir
  5028   # Copy depcomp to subdir because otherwise we won't find it if we're
  5029   # using a relative directory.
  5030   cp "$am_depcomp" conftest.dir
  5031   cd conftest.dir
  5032   # We will build objects and dependencies in a subdirectory because
  5033   # it helps to detect inapplicable dependency modes.  For instance
  5034   # both Tru64's cc and ICC support -MD to output dependencies as a
  5035   # side effect of compilation, but ICC will put the dependencies in
  5036   # the current directory while Tru64 will put them in the object
  5037   # directory.
  5038   mkdir sub
  5040   am_cv_CC_dependencies_compiler_type=none
  5041   if test "$am_compiler_list" = ""; then
  5042      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5043   fi
  5044   for depmode in $am_compiler_list; do
  5045     # Setup a source with many dependencies, because some compilers
  5046     # like to wrap large dependency lists on column 80 (with \), and
  5047     # we should not choose a depcomp mode which is confused by this.
  5049     # We need to recreate these files for each test, as the compiler may
  5050     # overwrite some of them when testing with obscure command lines.
  5051     # This happens at least with the AIX C compiler.
  5052     : > sub/conftest.c
  5053     for i in 1 2 3 4 5 6; do
  5054       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5055       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5056       # Solaris 8's {/usr,}/bin/sh.
  5057       touch sub/conftst$i.h
  5058     done
  5059     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5061     case $depmode in
  5062     nosideeffect)
  5063       # after this tag, mechanisms are not by side-effect, so they'll
  5064       # only be used when explicitly requested
  5065       if test "x$enable_dependency_tracking" = xyes; then
  5066 	continue
  5067       else
  5068 	break
  5069       fi
  5070       ;;
  5071     none) break ;;
  5072     esac
  5073     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5074     # mode.  It turns out that the SunPro C++ compiler does not properly
  5075     # handle `-M -o', and we need to detect this.
  5076     if depmode=$depmode \
  5077        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5078        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5079        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5080          >/dev/null 2>conftest.err &&
  5081        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5082        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5083        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5084       # icc doesn't choke on unknown options, it will just issue warnings
  5085       # or remarks (even with -Werror).  So we grep stderr for any message
  5086       # that says an option was ignored or not supported.
  5087       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5088       #   icc: Command line warning: ignoring option '-M'; no argument required
  5089       # The diagnosis changed in icc 8.0:
  5090       #   icc: Command line remark: option '-MP' not supported
  5091       if (grep 'ignoring option' conftest.err ||
  5092           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5093         am_cv_CC_dependencies_compiler_type=$depmode
  5094         break
  5095       fi
  5096     fi
  5097   done
  5099   cd ..
  5100   rm -rf conftest.dir
  5101 else
  5102   am_cv_CC_dependencies_compiler_type=none
  5103 fi
  5105 fi
  5106 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5107 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  5108 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5112 if
  5113   test "x$enable_dependency_tracking" != xno \
  5114   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5115   am__fastdepCC_TRUE=
  5116   am__fastdepCC_FALSE='#'
  5117 else
  5118   am__fastdepCC_TRUE='#'
  5119   am__fastdepCC_FALSE=
  5120 fi
  5124 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5126 ac_ext=m
  5127 ac_cpp='$OBJCPP $CPPFLAGS'
  5128 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5129 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5130 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  5131 if test -n "$ac_tool_prefix"; then
  5132   for ac_prog in gcc objcc objc cc CC
  5133   do
  5134     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5138 if test "${ac_cv_prog_OBJC+set}" = set; then
  5139   echo $ECHO_N "(cached) $ECHO_C" >&6
  5140 else
  5141   if test -n "$OBJC"; then
  5142   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  5143 else
  5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5145 for as_dir in $PATH
  5146 do
  5147   IFS=$as_save_IFS
  5148   test -z "$as_dir" && as_dir=.
  5149   for ac_exec_ext in '' $ac_executable_extensions; do
  5150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5151     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  5152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5153     break 2
  5154   fi
  5155 done
  5156 done
  5157 IFS=$as_save_IFS
  5159 fi
  5160 fi
  5161 OBJC=$ac_cv_prog_OBJC
  5162 if test -n "$OBJC"; then
  5163   { echo "$as_me:$LINENO: result: $OBJC" >&5
  5164 echo "${ECHO_T}$OBJC" >&6; }
  5165 else
  5166   { echo "$as_me:$LINENO: result: no" >&5
  5167 echo "${ECHO_T}no" >&6; }
  5168 fi
  5171     test -n "$OBJC" && break
  5172   done
  5173 fi
  5174 if test -z "$OBJC"; then
  5175   ac_ct_OBJC=$OBJC
  5176   for ac_prog in gcc objcc objc cc CC
  5177 do
  5178   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5179 set dummy $ac_prog; ac_word=$2
  5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5182 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  5183   echo $ECHO_N "(cached) $ECHO_C" >&6
  5184 else
  5185   if test -n "$ac_ct_OBJC"; then
  5186   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  5187 else
  5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5189 for as_dir in $PATH
  5190 do
  5191   IFS=$as_save_IFS
  5192   test -z "$as_dir" && as_dir=.
  5193   for ac_exec_ext in '' $ac_executable_extensions; do
  5194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5195     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  5196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5197     break 2
  5198   fi
  5199 done
  5200 done
  5201 IFS=$as_save_IFS
  5203 fi
  5204 fi
  5205 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  5206 if test -n "$ac_ct_OBJC"; then
  5207   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  5208 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  5209 else
  5210   { echo "$as_me:$LINENO: result: no" >&5
  5211 echo "${ECHO_T}no" >&6; }
  5212 fi
  5215   test -n "$ac_ct_OBJC" && break
  5216 done
  5218   if test "x$ac_ct_OBJC" = x; then
  5219     OBJC="gcc"
  5220   else
  5221     case $cross_compiling:$ac_tool_warned in
  5222 yes:)
  5223 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5224 whose name does not start with the host triplet.  If you think this
  5225 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5226 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5227 whose name does not start with the host triplet.  If you think this
  5228 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5229 ac_tool_warned=yes ;;
  5230 esac
  5231     OBJC=$ac_ct_OBJC
  5232   fi
  5233 fi
  5235 # Provide some information about the compiler.
  5236 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  5237 ac_compiler=`set X $ac_compile; echo $2`
  5238 { (ac_try="$ac_compiler --version >&5"
  5239 case "(($ac_try" in
  5240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5241   *) ac_try_echo=$ac_try;;
  5242 esac
  5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5244   (eval "$ac_compiler --version >&5") 2>&5
  5245   ac_status=$?
  5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5247   (exit $ac_status); }
  5248 { (ac_try="$ac_compiler -v >&5"
  5249 case "(($ac_try" in
  5250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5251   *) ac_try_echo=$ac_try;;
  5252 esac
  5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5254   (eval "$ac_compiler -v >&5") 2>&5
  5255   ac_status=$?
  5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5257   (exit $ac_status); }
  5258 { (ac_try="$ac_compiler -V >&5"
  5259 case "(($ac_try" in
  5260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5261   *) ac_try_echo=$ac_try;;
  5262 esac
  5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5264   (eval "$ac_compiler -V >&5") 2>&5
  5265   ac_status=$?
  5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5267   (exit $ac_status); }
  5269 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  5270 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  5271 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  5272   echo $ECHO_N "(cached) $ECHO_C" >&6
  5273 else
  5274   cat >conftest.$ac_ext <<_ACEOF
  5275 /* confdefs.h.  */
  5276 _ACEOF
  5277 cat confdefs.h >>conftest.$ac_ext
  5278 cat >>conftest.$ac_ext <<_ACEOF
  5279 /* end confdefs.h.  */
  5281 int
  5282 main ()
  5284 #ifndef __GNUC__
  5285        choke me
  5286 #endif
  5289   return 0;
  5291 _ACEOF
  5292 rm -f conftest.$ac_objext
  5293 if { (ac_try="$ac_compile"
  5294 case "(($ac_try" in
  5295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5296   *) ac_try_echo=$ac_try;;
  5297 esac
  5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5299   (eval "$ac_compile") 2>conftest.er1
  5300   ac_status=$?
  5301   grep -v '^ *+' conftest.er1 >conftest.err
  5302   rm -f conftest.er1
  5303   cat conftest.err >&5
  5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5305   (exit $ac_status); } && {
  5306 	 test -z "$ac_objc_werror_flag" ||
  5307 	 test ! -s conftest.err
  5308        } && test -s conftest.$ac_objext; then
  5309   ac_compiler_gnu=yes
  5310 else
  5311   echo "$as_me: failed program was:" >&5
  5312 sed 's/^/| /' conftest.$ac_ext >&5
  5314 	ac_compiler_gnu=no
  5315 fi
  5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5318 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  5320 fi
  5321 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  5322 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  5323 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  5324 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  5325 ac_save_OBJCFLAGS=$OBJCFLAGS
  5326 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  5327 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  5328 if test "${ac_cv_prog_objc_g+set}" = set; then
  5329   echo $ECHO_N "(cached) $ECHO_C" >&6
  5330 else
  5331   ac_save_objc_werror_flag=$ac_objc_werror_flag
  5332    ac_objc_werror_flag=yes
  5333    ac_cv_prog_objc_g=no
  5334    OBJCFLAGS="-g"
  5335    cat >conftest.$ac_ext <<_ACEOF
  5336 /* confdefs.h.  */
  5337 _ACEOF
  5338 cat confdefs.h >>conftest.$ac_ext
  5339 cat >>conftest.$ac_ext <<_ACEOF
  5340 /* end confdefs.h.  */
  5342 int
  5343 main ()
  5347   return 0;
  5349 _ACEOF
  5350 rm -f conftest.$ac_objext
  5351 if { (ac_try="$ac_compile"
  5352 case "(($ac_try" in
  5353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5354   *) ac_try_echo=$ac_try;;
  5355 esac
  5356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5357   (eval "$ac_compile") 2>conftest.er1
  5358   ac_status=$?
  5359   grep -v '^ *+' conftest.er1 >conftest.err
  5360   rm -f conftest.er1
  5361   cat conftest.err >&5
  5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5363   (exit $ac_status); } && {
  5364 	 test -z "$ac_objc_werror_flag" ||
  5365 	 test ! -s conftest.err
  5366        } && test -s conftest.$ac_objext; then
  5367   ac_cv_prog_objc_g=yes
  5368 else
  5369   echo "$as_me: failed program was:" >&5
  5370 sed 's/^/| /' conftest.$ac_ext >&5
  5372 	OBJCFLAGS=""
  5373       cat >conftest.$ac_ext <<_ACEOF
  5374 /* confdefs.h.  */
  5375 _ACEOF
  5376 cat confdefs.h >>conftest.$ac_ext
  5377 cat >>conftest.$ac_ext <<_ACEOF
  5378 /* end confdefs.h.  */
  5380 int
  5381 main ()
  5385   return 0;
  5387 _ACEOF
  5388 rm -f conftest.$ac_objext
  5389 if { (ac_try="$ac_compile"
  5390 case "(($ac_try" in
  5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5392   *) ac_try_echo=$ac_try;;
  5393 esac
  5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5395   (eval "$ac_compile") 2>conftest.er1
  5396   ac_status=$?
  5397   grep -v '^ *+' conftest.er1 >conftest.err
  5398   rm -f conftest.er1
  5399   cat conftest.err >&5
  5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5401   (exit $ac_status); } && {
  5402 	 test -z "$ac_objc_werror_flag" ||
  5403 	 test ! -s conftest.err
  5404        } && test -s conftest.$ac_objext; then
  5406 else
  5407   echo "$as_me: failed program was:" >&5
  5408 sed 's/^/| /' conftest.$ac_ext >&5
  5410 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  5411 	 OBJCFLAGS="-g"
  5412 	 cat >conftest.$ac_ext <<_ACEOF
  5413 /* confdefs.h.  */
  5414 _ACEOF
  5415 cat confdefs.h >>conftest.$ac_ext
  5416 cat >>conftest.$ac_ext <<_ACEOF
  5417 /* end confdefs.h.  */
  5419 int
  5420 main ()
  5424   return 0;
  5426 _ACEOF
  5427 rm -f conftest.$ac_objext
  5428 if { (ac_try="$ac_compile"
  5429 case "(($ac_try" in
  5430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5431   *) ac_try_echo=$ac_try;;
  5432 esac
  5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5434   (eval "$ac_compile") 2>conftest.er1
  5435   ac_status=$?
  5436   grep -v '^ *+' conftest.er1 >conftest.err
  5437   rm -f conftest.er1
  5438   cat conftest.err >&5
  5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5440   (exit $ac_status); } && {
  5441 	 test -z "$ac_objc_werror_flag" ||
  5442 	 test ! -s conftest.err
  5443        } && test -s conftest.$ac_objext; then
  5444   ac_cv_prog_objc_g=yes
  5445 else
  5446   echo "$as_me: failed program was:" >&5
  5447 sed 's/^/| /' conftest.$ac_ext >&5
  5450 fi
  5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5453 fi
  5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5456 fi
  5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5459    ac_objc_werror_flag=$ac_save_objc_werror_flag
  5460 fi
  5461 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  5462 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  5463 if test "$ac_test_OBJCFLAGS" = set; then
  5464   OBJCFLAGS=$ac_save_OBJCFLAGS
  5465 elif test $ac_cv_prog_objc_g = yes; then
  5466   if test "$GOBJC" = yes; then
  5467     OBJCFLAGS="-g -O2"
  5468   else
  5469     OBJCFLAGS="-g"
  5470   fi
  5471 else
  5472   if test "$GOBJC" = yes; then
  5473     OBJCFLAGS="-O2"
  5474   else
  5475     OBJCFLAGS=
  5476   fi
  5477 fi
  5478 ac_ext=c
  5479 ac_cpp='$CPP $CPPFLAGS'
  5480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5484 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  5485 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  5486 if test "${ac_cv_path_SED+set}" = set; then
  5487   echo $ECHO_N "(cached) $ECHO_C" >&6
  5488 else
  5489             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5490      for ac_i in 1 2 3 4 5 6 7; do
  5491        ac_script="$ac_script$as_nl$ac_script"
  5492      done
  5493      echo "$ac_script" | sed 99q >conftest.sed
  5494      $as_unset ac_script || ac_script=
  5495      # Extract the first word of "sed gsed" to use in msg output
  5496 if test -z "$SED"; then
  5497 set dummy sed gsed; ac_prog_name=$2
  5498 if test "${ac_cv_path_SED+set}" = set; then
  5499   echo $ECHO_N "(cached) $ECHO_C" >&6
  5500 else
  5501   ac_path_SED_found=false
  5502 # Loop through the user's path and test for each of PROGNAME-LIST
  5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5504 for as_dir in $PATH
  5505 do
  5506   IFS=$as_save_IFS
  5507   test -z "$as_dir" && as_dir=.
  5508   for ac_prog in sed gsed; do
  5509   for ac_exec_ext in '' $ac_executable_extensions; do
  5510     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5511     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5512     # Check for GNU ac_path_SED and select it if it is found.
  5513   # Check for GNU $ac_path_SED
  5514 case `"$ac_path_SED" --version 2>&1` in
  5515 *GNU*)
  5516   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5517 *)
  5518   ac_count=0
  5519   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5520   while :
  5521   do
  5522     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5523     mv "conftest.tmp" "conftest.in"
  5524     cp "conftest.in" "conftest.nl"
  5525     echo '' >> "conftest.nl"
  5526     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5527     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5528     ac_count=`expr $ac_count + 1`
  5529     if test $ac_count -gt ${ac_path_SED_max-0}; then
  5530       # Best one so far, save it but keep looking for a better one
  5531       ac_cv_path_SED="$ac_path_SED"
  5532       ac_path_SED_max=$ac_count
  5533     fi
  5534     # 10*(2^10) chars as input seems more than enough
  5535     test $ac_count -gt 10 && break
  5536   done
  5537   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5538 esac
  5541     $ac_path_SED_found && break 3
  5542   done
  5543 done
  5545 done
  5546 IFS=$as_save_IFS
  5549 fi
  5551 SED="$ac_cv_path_SED"
  5552 if test -z "$SED"; then
  5553   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  5554 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  5555    { (exit 1); exit 1; }; }
  5556 fi
  5558 else
  5559   ac_cv_path_SED=$SED
  5560 fi
  5562 fi
  5563 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  5564 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  5565  SED="$ac_cv_path_SED"
  5566   rm -f conftest.sed
  5568 # By default we simply use the C compiler to build assembly code.
  5570 test "${CCAS+set}" = set || CCAS=$CC
  5571 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5575 ac_ext=c
  5576 ac_cpp='$CPP $CPPFLAGS'
  5577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5580 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5581 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5582 # On Suns, sometimes $CPP names a directory.
  5583 if test -n "$CPP" && test -d "$CPP"; then
  5584   CPP=
  5585 fi
  5586 if test -z "$CPP"; then
  5587   if test "${ac_cv_prog_CPP+set}" = set; then
  5588   echo $ECHO_N "(cached) $ECHO_C" >&6
  5589 else
  5590       # Double quotes because CPP needs to be expanded
  5591     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5592     do
  5593       ac_preproc_ok=false
  5594 for ac_c_preproc_warn_flag in '' yes
  5595 do
  5596   # Use a header file that comes with gcc, so configuring glibc
  5597   # with a fresh cross-compiler works.
  5598   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5599   # <limits.h> exists even on freestanding compilers.
  5600   # On the NeXT, cc -E runs the code through the compiler's parser,
  5601   # not just through cpp. "Syntax error" is here to catch this case.
  5602   cat >conftest.$ac_ext <<_ACEOF
  5603 /* confdefs.h.  */
  5604 _ACEOF
  5605 cat confdefs.h >>conftest.$ac_ext
  5606 cat >>conftest.$ac_ext <<_ACEOF
  5607 /* end confdefs.h.  */
  5608 #ifdef __STDC__
  5609 # include <limits.h>
  5610 #else
  5611 # include <assert.h>
  5612 #endif
  5613 		     Syntax error
  5614 _ACEOF
  5615 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5616 case "(($ac_try" in
  5617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5618   *) ac_try_echo=$ac_try;;
  5619 esac
  5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5622   ac_status=$?
  5623   grep -v '^ *+' conftest.er1 >conftest.err
  5624   rm -f conftest.er1
  5625   cat conftest.err >&5
  5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5627   (exit $ac_status); } >/dev/null && {
  5628 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5629 	 test ! -s conftest.err
  5630        }; then
  5632 else
  5633   echo "$as_me: failed program was:" >&5
  5634 sed 's/^/| /' conftest.$ac_ext >&5
  5636   # Broken: fails on valid input.
  5637 continue
  5638 fi
  5640 rm -f conftest.err conftest.$ac_ext
  5642   # OK, works on sane cases.  Now check whether nonexistent headers
  5643   # can be detected and how.
  5644   cat >conftest.$ac_ext <<_ACEOF
  5645 /* confdefs.h.  */
  5646 _ACEOF
  5647 cat confdefs.h >>conftest.$ac_ext
  5648 cat >>conftest.$ac_ext <<_ACEOF
  5649 /* end confdefs.h.  */
  5650 #include <ac_nonexistent.h>
  5651 _ACEOF
  5652 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5653 case "(($ac_try" in
  5654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5655   *) ac_try_echo=$ac_try;;
  5656 esac
  5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5659   ac_status=$?
  5660   grep -v '^ *+' conftest.er1 >conftest.err
  5661   rm -f conftest.er1
  5662   cat conftest.err >&5
  5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5664   (exit $ac_status); } >/dev/null && {
  5665 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5666 	 test ! -s conftest.err
  5667        }; then
  5668   # Broken: success on invalid input.
  5669 continue
  5670 else
  5671   echo "$as_me: failed program was:" >&5
  5672 sed 's/^/| /' conftest.$ac_ext >&5
  5674   # Passes both tests.
  5675 ac_preproc_ok=:
  5676 break
  5677 fi
  5679 rm -f conftest.err conftest.$ac_ext
  5681 done
  5682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5683 rm -f conftest.err conftest.$ac_ext
  5684 if $ac_preproc_ok; then
  5685   break
  5686 fi
  5688     done
  5689     ac_cv_prog_CPP=$CPP
  5691 fi
  5692   CPP=$ac_cv_prog_CPP
  5693 else
  5694   ac_cv_prog_CPP=$CPP
  5695 fi
  5696 { echo "$as_me:$LINENO: result: $CPP" >&5
  5697 echo "${ECHO_T}$CPP" >&6; }
  5698 ac_preproc_ok=false
  5699 for ac_c_preproc_warn_flag in '' yes
  5700 do
  5701   # Use a header file that comes with gcc, so configuring glibc
  5702   # with a fresh cross-compiler works.
  5703   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5704   # <limits.h> exists even on freestanding compilers.
  5705   # On the NeXT, cc -E runs the code through the compiler's parser,
  5706   # not just through cpp. "Syntax error" is here to catch this case.
  5707   cat >conftest.$ac_ext <<_ACEOF
  5708 /* confdefs.h.  */
  5709 _ACEOF
  5710 cat confdefs.h >>conftest.$ac_ext
  5711 cat >>conftest.$ac_ext <<_ACEOF
  5712 /* end confdefs.h.  */
  5713 #ifdef __STDC__
  5714 # include <limits.h>
  5715 #else
  5716 # include <assert.h>
  5717 #endif
  5718 		     Syntax error
  5719 _ACEOF
  5720 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5721 case "(($ac_try" in
  5722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5723   *) ac_try_echo=$ac_try;;
  5724 esac
  5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5726   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5727   ac_status=$?
  5728   grep -v '^ *+' conftest.er1 >conftest.err
  5729   rm -f conftest.er1
  5730   cat conftest.err >&5
  5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5732   (exit $ac_status); } >/dev/null && {
  5733 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5734 	 test ! -s conftest.err
  5735        }; then
  5737 else
  5738   echo "$as_me: failed program was:" >&5
  5739 sed 's/^/| /' conftest.$ac_ext >&5
  5741   # Broken: fails on valid input.
  5742 continue
  5743 fi
  5745 rm -f conftest.err conftest.$ac_ext
  5747   # OK, works on sane cases.  Now check whether nonexistent headers
  5748   # can be detected and how.
  5749   cat >conftest.$ac_ext <<_ACEOF
  5750 /* confdefs.h.  */
  5751 _ACEOF
  5752 cat confdefs.h >>conftest.$ac_ext
  5753 cat >>conftest.$ac_ext <<_ACEOF
  5754 /* end confdefs.h.  */
  5755 #include <ac_nonexistent.h>
  5756 _ACEOF
  5757 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5758 case "(($ac_try" in
  5759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5760   *) ac_try_echo=$ac_try;;
  5761 esac
  5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5764   ac_status=$?
  5765   grep -v '^ *+' conftest.er1 >conftest.err
  5766   rm -f conftest.er1
  5767   cat conftest.err >&5
  5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5769   (exit $ac_status); } >/dev/null && {
  5770 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5771 	 test ! -s conftest.err
  5772        }; then
  5773   # Broken: success on invalid input.
  5774 continue
  5775 else
  5776   echo "$as_me: failed program was:" >&5
  5777 sed 's/^/| /' conftest.$ac_ext >&5
  5779   # Passes both tests.
  5780 ac_preproc_ok=:
  5781 break
  5782 fi
  5784 rm -f conftest.err conftest.$ac_ext
  5786 done
  5787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5788 rm -f conftest.err conftest.$ac_ext
  5789 if $ac_preproc_ok; then
  5791 else
  5792   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5793 See \`config.log' for more details." >&5
  5794 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5795 See \`config.log' for more details." >&2;}
  5796    { (exit 1); exit 1; }; }
  5797 fi
  5799 ac_ext=c
  5800 ac_cpp='$CPP $CPPFLAGS'
  5801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5806 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5807 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5808 if test "${ac_cv_path_GREP+set}" = set; then
  5809   echo $ECHO_N "(cached) $ECHO_C" >&6
  5810 else
  5811   # Extract the first word of "grep ggrep" to use in msg output
  5812 if test -z "$GREP"; then
  5813 set dummy grep ggrep; ac_prog_name=$2
  5814 if test "${ac_cv_path_GREP+set}" = set; then
  5815   echo $ECHO_N "(cached) $ECHO_C" >&6
  5816 else
  5817   ac_path_GREP_found=false
  5818 # Loop through the user's path and test for each of PROGNAME-LIST
  5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5821 do
  5822   IFS=$as_save_IFS
  5823   test -z "$as_dir" && as_dir=.
  5824   for ac_prog in grep ggrep; do
  5825   for ac_exec_ext in '' $ac_executable_extensions; do
  5826     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5827     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5828     # Check for GNU ac_path_GREP and select it if it is found.
  5829   # Check for GNU $ac_path_GREP
  5830 case `"$ac_path_GREP" --version 2>&1` in
  5831 *GNU*)
  5832   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5833 *)
  5834   ac_count=0
  5835   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5836   while :
  5837   do
  5838     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5839     mv "conftest.tmp" "conftest.in"
  5840     cp "conftest.in" "conftest.nl"
  5841     echo 'GREP' >> "conftest.nl"
  5842     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5843     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5844     ac_count=`expr $ac_count + 1`
  5845     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5846       # Best one so far, save it but keep looking for a better one
  5847       ac_cv_path_GREP="$ac_path_GREP"
  5848       ac_path_GREP_max=$ac_count
  5849     fi
  5850     # 10*(2^10) chars as input seems more than enough
  5851     test $ac_count -gt 10 && break
  5852   done
  5853   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5854 esac
  5857     $ac_path_GREP_found && break 3
  5858   done
  5859 done
  5861 done
  5862 IFS=$as_save_IFS
  5865 fi
  5867 GREP="$ac_cv_path_GREP"
  5868 if test -z "$GREP"; then
  5869   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5870 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5871    { (exit 1); exit 1; }; }
  5872 fi
  5874 else
  5875   ac_cv_path_GREP=$GREP
  5876 fi
  5879 fi
  5880 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5881 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5882  GREP="$ac_cv_path_GREP"
  5885 { echo "$as_me:$LINENO: checking for egrep" >&5
  5886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5887 if test "${ac_cv_path_EGREP+set}" = set; then
  5888   echo $ECHO_N "(cached) $ECHO_C" >&6
  5889 else
  5890   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5891    then ac_cv_path_EGREP="$GREP -E"
  5892    else
  5893      # Extract the first word of "egrep" to use in msg output
  5894 if test -z "$EGREP"; then
  5895 set dummy egrep; ac_prog_name=$2
  5896 if test "${ac_cv_path_EGREP+set}" = set; then
  5897   echo $ECHO_N "(cached) $ECHO_C" >&6
  5898 else
  5899   ac_path_EGREP_found=false
  5900 # Loop through the user's path and test for each of PROGNAME-LIST
  5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5903 do
  5904   IFS=$as_save_IFS
  5905   test -z "$as_dir" && as_dir=.
  5906   for ac_prog in egrep; do
  5907   for ac_exec_ext in '' $ac_executable_extensions; do
  5908     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5909     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5910     # Check for GNU ac_path_EGREP and select it if it is found.
  5911   # Check for GNU $ac_path_EGREP
  5912 case `"$ac_path_EGREP" --version 2>&1` in
  5913 *GNU*)
  5914   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5915 *)
  5916   ac_count=0
  5917   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5918   while :
  5919   do
  5920     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5921     mv "conftest.tmp" "conftest.in"
  5922     cp "conftest.in" "conftest.nl"
  5923     echo 'EGREP' >> "conftest.nl"
  5924     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5925     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5926     ac_count=`expr $ac_count + 1`
  5927     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5928       # Best one so far, save it but keep looking for a better one
  5929       ac_cv_path_EGREP="$ac_path_EGREP"
  5930       ac_path_EGREP_max=$ac_count
  5931     fi
  5932     # 10*(2^10) chars as input seems more than enough
  5933     test $ac_count -gt 10 && break
  5934   done
  5935   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5936 esac
  5939     $ac_path_EGREP_found && break 3
  5940   done
  5941 done
  5943 done
  5944 IFS=$as_save_IFS
  5947 fi
  5949 EGREP="$ac_cv_path_EGREP"
  5950 if test -z "$EGREP"; then
  5951   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5952 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5953    { (exit 1); exit 1; }; }
  5954 fi
  5956 else
  5957   ac_cv_path_EGREP=$EGREP
  5958 fi
  5961    fi
  5962 fi
  5963 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5964 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5965  EGREP="$ac_cv_path_EGREP"
  5968 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5970 if test "${ac_cv_header_stdc+set}" = set; then
  5971   echo $ECHO_N "(cached) $ECHO_C" >&6
  5972 else
  5973   cat >conftest.$ac_ext <<_ACEOF
  5974 /* confdefs.h.  */
  5975 _ACEOF
  5976 cat confdefs.h >>conftest.$ac_ext
  5977 cat >>conftest.$ac_ext <<_ACEOF
  5978 /* end confdefs.h.  */
  5979 #include <stdlib.h>
  5980 #include <stdarg.h>
  5981 #include <string.h>
  5982 #include <float.h>
  5984 int
  5985 main ()
  5989   return 0;
  5991 _ACEOF
  5992 rm -f conftest.$ac_objext
  5993 if { (ac_try="$ac_compile"
  5994 case "(($ac_try" in
  5995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5996   *) ac_try_echo=$ac_try;;
  5997 esac
  5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5999   (eval "$ac_compile") 2>conftest.er1
  6000   ac_status=$?
  6001   grep -v '^ *+' conftest.er1 >conftest.err
  6002   rm -f conftest.er1
  6003   cat conftest.err >&5
  6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6005   (exit $ac_status); } && {
  6006 	 test -z "$ac_c_werror_flag" ||
  6007 	 test ! -s conftest.err
  6008        } && test -s conftest.$ac_objext; then
  6009   ac_cv_header_stdc=yes
  6010 else
  6011   echo "$as_me: failed program was:" >&5
  6012 sed 's/^/| /' conftest.$ac_ext >&5
  6014 	ac_cv_header_stdc=no
  6015 fi
  6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6019 if test $ac_cv_header_stdc = yes; then
  6020   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6021   cat >conftest.$ac_ext <<_ACEOF
  6022 /* confdefs.h.  */
  6023 _ACEOF
  6024 cat confdefs.h >>conftest.$ac_ext
  6025 cat >>conftest.$ac_ext <<_ACEOF
  6026 /* end confdefs.h.  */
  6027 #include <string.h>
  6029 _ACEOF
  6030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6031   $EGREP "memchr" >/dev/null 2>&1; then
  6033 else
  6034   ac_cv_header_stdc=no
  6035 fi
  6036 rm -f conftest*
  6038 fi
  6040 if test $ac_cv_header_stdc = yes; then
  6041   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6042   cat >conftest.$ac_ext <<_ACEOF
  6043 /* confdefs.h.  */
  6044 _ACEOF
  6045 cat confdefs.h >>conftest.$ac_ext
  6046 cat >>conftest.$ac_ext <<_ACEOF
  6047 /* end confdefs.h.  */
  6048 #include <stdlib.h>
  6050 _ACEOF
  6051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6052   $EGREP "free" >/dev/null 2>&1; then
  6054 else
  6055   ac_cv_header_stdc=no
  6056 fi
  6057 rm -f conftest*
  6059 fi
  6061 if test $ac_cv_header_stdc = yes; then
  6062   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6063   if test "$cross_compiling" = yes; then
  6065 else
  6066   cat >conftest.$ac_ext <<_ACEOF
  6067 /* confdefs.h.  */
  6068 _ACEOF
  6069 cat confdefs.h >>conftest.$ac_ext
  6070 cat >>conftest.$ac_ext <<_ACEOF
  6071 /* end confdefs.h.  */
  6072 #include <ctype.h>
  6073 #include <stdlib.h>
  6074 #if ((' ' & 0x0FF) == 0x020)
  6075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6077 #else
  6078 # define ISLOWER(c) \
  6079 		   (('a' <= (c) && (c) <= 'i') \
  6080 		     || ('j' <= (c) && (c) <= 'r') \
  6081 		     || ('s' <= (c) && (c) <= 'z'))
  6082 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6083 #endif
  6085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6086 int
  6087 main ()
  6089   int i;
  6090   for (i = 0; i < 256; i++)
  6091     if (XOR (islower (i), ISLOWER (i))
  6092 	|| toupper (i) != TOUPPER (i))
  6093       return 2;
  6094   return 0;
  6096 _ACEOF
  6097 rm -f conftest$ac_exeext
  6098 if { (ac_try="$ac_link"
  6099 case "(($ac_try" in
  6100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6101   *) ac_try_echo=$ac_try;;
  6102 esac
  6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6104   (eval "$ac_link") 2>&5
  6105   ac_status=$?
  6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6108   { (case "(($ac_try" in
  6109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6110   *) ac_try_echo=$ac_try;;
  6111 esac
  6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6113   (eval "$ac_try") 2>&5
  6114   ac_status=$?
  6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6116   (exit $ac_status); }; }; then
  6118 else
  6119   echo "$as_me: program exited with status $ac_status" >&5
  6120 echo "$as_me: failed program was:" >&5
  6121 sed 's/^/| /' conftest.$ac_ext >&5
  6123 ( exit $ac_status )
  6124 ac_cv_header_stdc=no
  6125 fi
  6126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6127 fi
  6130 fi
  6131 fi
  6132 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6133 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6134 if test $ac_cv_header_stdc = yes; then
  6136 cat >>confdefs.h <<\_ACEOF
  6137 #define STDC_HEADERS 1
  6138 _ACEOF
  6140 fi
  6142 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6152 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6153 		  inttypes.h stdint.h unistd.h
  6154 do
  6155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6159   echo $ECHO_N "(cached) $ECHO_C" >&6
  6160 else
  6161   cat >conftest.$ac_ext <<_ACEOF
  6162 /* confdefs.h.  */
  6163 _ACEOF
  6164 cat confdefs.h >>conftest.$ac_ext
  6165 cat >>conftest.$ac_ext <<_ACEOF
  6166 /* end confdefs.h.  */
  6167 $ac_includes_default
  6169 #include <$ac_header>
  6170 _ACEOF
  6171 rm -f conftest.$ac_objext
  6172 if { (ac_try="$ac_compile"
  6173 case "(($ac_try" in
  6174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6175   *) ac_try_echo=$ac_try;;
  6176 esac
  6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6178   (eval "$ac_compile") 2>conftest.er1
  6179   ac_status=$?
  6180   grep -v '^ *+' conftest.er1 >conftest.err
  6181   rm -f conftest.er1
  6182   cat conftest.err >&5
  6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6184   (exit $ac_status); } && {
  6185 	 test -z "$ac_c_werror_flag" ||
  6186 	 test ! -s conftest.err
  6187        } && test -s conftest.$ac_objext; then
  6188   eval "$as_ac_Header=yes"
  6189 else
  6190   echo "$as_me: failed program was:" >&5
  6191 sed 's/^/| /' conftest.$ac_ext >&5
  6193 	eval "$as_ac_Header=no"
  6194 fi
  6196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6197 fi
  6198 ac_res=`eval echo '${'$as_ac_Header'}'`
  6199 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  6200 echo "${ECHO_T}$ac_res" >&6; }
  6201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6202   cat >>confdefs.h <<_ACEOF
  6203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6204 _ACEOF
  6206 fi
  6208 done
  6211 { echo "$as_me:$LINENO: checking for void *" >&5
  6212 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
  6213 if test "${ac_cv_type_void_p+set}" = set; then
  6214   echo $ECHO_N "(cached) $ECHO_C" >&6
  6215 else
  6216   cat >conftest.$ac_ext <<_ACEOF
  6217 /* confdefs.h.  */
  6218 _ACEOF
  6219 cat confdefs.h >>conftest.$ac_ext
  6220 cat >>conftest.$ac_ext <<_ACEOF
  6221 /* end confdefs.h.  */
  6222 $ac_includes_default
  6223 typedef void * ac__type_new_;
  6224 int
  6225 main ()
  6227 if ((ac__type_new_ *) 0)
  6228   return 0;
  6229 if (sizeof (ac__type_new_))
  6230   return 0;
  6232   return 0;
  6234 _ACEOF
  6235 rm -f conftest.$ac_objext
  6236 if { (ac_try="$ac_compile"
  6237 case "(($ac_try" in
  6238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6239   *) ac_try_echo=$ac_try;;
  6240 esac
  6241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6242   (eval "$ac_compile") 2>conftest.er1
  6243   ac_status=$?
  6244   grep -v '^ *+' conftest.er1 >conftest.err
  6245   rm -f conftest.er1
  6246   cat conftest.err >&5
  6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6248   (exit $ac_status); } && {
  6249 	 test -z "$ac_c_werror_flag" ||
  6250 	 test ! -s conftest.err
  6251        } && test -s conftest.$ac_objext; then
  6252   ac_cv_type_void_p=yes
  6253 else
  6254   echo "$as_me: failed program was:" >&5
  6255 sed 's/^/| /' conftest.$ac_ext >&5
  6257 	ac_cv_type_void_p=no
  6258 fi
  6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6261 fi
  6262 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
  6263 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
  6265 # The cast to long int works around a bug in the HP C Compiler
  6266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6268 # This bug is HP SR number 8606223364.
  6269 { echo "$as_me:$LINENO: checking size of void *" >&5
  6270 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
  6271 if test "${ac_cv_sizeof_void_p+set}" = set; then
  6272   echo $ECHO_N "(cached) $ECHO_C" >&6
  6273 else
  6274   if test "$cross_compiling" = yes; then
  6275   # Depending upon the size, compute the lo and hi bounds.
  6276 cat >conftest.$ac_ext <<_ACEOF
  6277 /* confdefs.h.  */
  6278 _ACEOF
  6279 cat confdefs.h >>conftest.$ac_ext
  6280 cat >>conftest.$ac_ext <<_ACEOF
  6281 /* end confdefs.h.  */
  6282 $ac_includes_default
  6283    typedef void * ac__type_sizeof_;
  6284 int
  6285 main ()
  6287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6288 test_array [0] = 0
  6291   return 0;
  6293 _ACEOF
  6294 rm -f conftest.$ac_objext
  6295 if { (ac_try="$ac_compile"
  6296 case "(($ac_try" in
  6297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6298   *) ac_try_echo=$ac_try;;
  6299 esac
  6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6301   (eval "$ac_compile") 2>conftest.er1
  6302   ac_status=$?
  6303   grep -v '^ *+' conftest.er1 >conftest.err
  6304   rm -f conftest.er1
  6305   cat conftest.err >&5
  6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6307   (exit $ac_status); } && {
  6308 	 test -z "$ac_c_werror_flag" ||
  6309 	 test ! -s conftest.err
  6310        } && test -s conftest.$ac_objext; then
  6311   ac_lo=0 ac_mid=0
  6312   while :; do
  6313     cat >conftest.$ac_ext <<_ACEOF
  6314 /* confdefs.h.  */
  6315 _ACEOF
  6316 cat confdefs.h >>conftest.$ac_ext
  6317 cat >>conftest.$ac_ext <<_ACEOF
  6318 /* end confdefs.h.  */
  6319 $ac_includes_default
  6320    typedef void * ac__type_sizeof_;
  6321 int
  6322 main ()
  6324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6325 test_array [0] = 0
  6328   return 0;
  6330 _ACEOF
  6331 rm -f conftest.$ac_objext
  6332 if { (ac_try="$ac_compile"
  6333 case "(($ac_try" in
  6334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6335   *) ac_try_echo=$ac_try;;
  6336 esac
  6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6338   (eval "$ac_compile") 2>conftest.er1
  6339   ac_status=$?
  6340   grep -v '^ *+' conftest.er1 >conftest.err
  6341   rm -f conftest.er1
  6342   cat conftest.err >&5
  6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6344   (exit $ac_status); } && {
  6345 	 test -z "$ac_c_werror_flag" ||
  6346 	 test ! -s conftest.err
  6347        } && test -s conftest.$ac_objext; then
  6348   ac_hi=$ac_mid; break
  6349 else
  6350   echo "$as_me: failed program was:" >&5
  6351 sed 's/^/| /' conftest.$ac_ext >&5
  6353 	ac_lo=`expr $ac_mid + 1`
  6354 			if test $ac_lo -le $ac_mid; then
  6355 			  ac_lo= ac_hi=
  6356 			  break
  6357 			fi
  6358 			ac_mid=`expr 2 '*' $ac_mid + 1`
  6359 fi
  6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6362   done
  6363 else
  6364   echo "$as_me: failed program was:" >&5
  6365 sed 's/^/| /' conftest.$ac_ext >&5
  6367 	cat >conftest.$ac_ext <<_ACEOF
  6368 /* confdefs.h.  */
  6369 _ACEOF
  6370 cat confdefs.h >>conftest.$ac_ext
  6371 cat >>conftest.$ac_ext <<_ACEOF
  6372 /* end confdefs.h.  */
  6373 $ac_includes_default
  6374    typedef void * ac__type_sizeof_;
  6375 int
  6376 main ()
  6378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6379 test_array [0] = 0
  6382   return 0;
  6384 _ACEOF
  6385 rm -f conftest.$ac_objext
  6386 if { (ac_try="$ac_compile"
  6387 case "(($ac_try" in
  6388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6389   *) ac_try_echo=$ac_try;;
  6390 esac
  6391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6392   (eval "$ac_compile") 2>conftest.er1
  6393   ac_status=$?
  6394   grep -v '^ *+' conftest.er1 >conftest.err
  6395   rm -f conftest.er1
  6396   cat conftest.err >&5
  6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6398   (exit $ac_status); } && {
  6399 	 test -z "$ac_c_werror_flag" ||
  6400 	 test ! -s conftest.err
  6401        } && test -s conftest.$ac_objext; then
  6402   ac_hi=-1 ac_mid=-1
  6403   while :; do
  6404     cat >conftest.$ac_ext <<_ACEOF
  6405 /* confdefs.h.  */
  6406 _ACEOF
  6407 cat confdefs.h >>conftest.$ac_ext
  6408 cat >>conftest.$ac_ext <<_ACEOF
  6409 /* end confdefs.h.  */
  6410 $ac_includes_default
  6411    typedef void * ac__type_sizeof_;
  6412 int
  6413 main ()
  6415 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6416 test_array [0] = 0
  6419   return 0;
  6421 _ACEOF
  6422 rm -f conftest.$ac_objext
  6423 if { (ac_try="$ac_compile"
  6424 case "(($ac_try" in
  6425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6426   *) ac_try_echo=$ac_try;;
  6427 esac
  6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6429   (eval "$ac_compile") 2>conftest.er1
  6430   ac_status=$?
  6431   grep -v '^ *+' conftest.er1 >conftest.err
  6432   rm -f conftest.er1
  6433   cat conftest.err >&5
  6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6435   (exit $ac_status); } && {
  6436 	 test -z "$ac_c_werror_flag" ||
  6437 	 test ! -s conftest.err
  6438        } && test -s conftest.$ac_objext; then
  6439   ac_lo=$ac_mid; break
  6440 else
  6441   echo "$as_me: failed program was:" >&5
  6442 sed 's/^/| /' conftest.$ac_ext >&5
  6444 	ac_hi=`expr '(' $ac_mid ')' - 1`
  6445 			if test $ac_mid -le $ac_hi; then
  6446 			  ac_lo= ac_hi=
  6447 			  break
  6448 			fi
  6449 			ac_mid=`expr 2 '*' $ac_mid`
  6450 fi
  6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6453   done
  6454 else
  6455   echo "$as_me: failed program was:" >&5
  6456 sed 's/^/| /' conftest.$ac_ext >&5
  6458 	ac_lo= ac_hi=
  6459 fi
  6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6462 fi
  6464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6465 # Binary search between lo and hi bounds.
  6466 while test "x$ac_lo" != "x$ac_hi"; do
  6467   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6468   cat >conftest.$ac_ext <<_ACEOF
  6469 /* confdefs.h.  */
  6470 _ACEOF
  6471 cat confdefs.h >>conftest.$ac_ext
  6472 cat >>conftest.$ac_ext <<_ACEOF
  6473 /* end confdefs.h.  */
  6474 $ac_includes_default
  6475    typedef void * ac__type_sizeof_;
  6476 int
  6477 main ()
  6479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6480 test_array [0] = 0
  6483   return 0;
  6485 _ACEOF
  6486 rm -f conftest.$ac_objext
  6487 if { (ac_try="$ac_compile"
  6488 case "(($ac_try" in
  6489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6490   *) ac_try_echo=$ac_try;;
  6491 esac
  6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6493   (eval "$ac_compile") 2>conftest.er1
  6494   ac_status=$?
  6495   grep -v '^ *+' conftest.er1 >conftest.err
  6496   rm -f conftest.er1
  6497   cat conftest.err >&5
  6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6499   (exit $ac_status); } && {
  6500 	 test -z "$ac_c_werror_flag" ||
  6501 	 test ! -s conftest.err
  6502        } && test -s conftest.$ac_objext; then
  6503   ac_hi=$ac_mid
  6504 else
  6505   echo "$as_me: failed program was:" >&5
  6506 sed 's/^/| /' conftest.$ac_ext >&5
  6508 	ac_lo=`expr '(' $ac_mid ')' + 1`
  6509 fi
  6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6512 done
  6513 case $ac_lo in
  6514 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  6515 '') if test "$ac_cv_type_void_p" = yes; then
  6516      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6517 See \`config.log' for more details." >&5
  6518 echo "$as_me: error: cannot compute sizeof (void *)
  6519 See \`config.log' for more details." >&2;}
  6520    { (exit 77); exit 77; }; }
  6521    else
  6522      ac_cv_sizeof_void_p=0
  6523    fi ;;
  6524 esac
  6525 else
  6526   cat >conftest.$ac_ext <<_ACEOF
  6527 /* confdefs.h.  */
  6528 _ACEOF
  6529 cat confdefs.h >>conftest.$ac_ext
  6530 cat >>conftest.$ac_ext <<_ACEOF
  6531 /* end confdefs.h.  */
  6532 $ac_includes_default
  6533    typedef void * ac__type_sizeof_;
  6534 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6535 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6536 #include <stdio.h>
  6537 #include <stdlib.h>
  6538 int
  6539 main ()
  6542   FILE *f = fopen ("conftest.val", "w");
  6543   if (! f)
  6544     return 1;
  6545   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6547       long int i = longval ();
  6548       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6549 	return 1;
  6550       fprintf (f, "%ld\n", i);
  6552   else
  6554       unsigned long int i = ulongval ();
  6555       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6556 	return 1;
  6557       fprintf (f, "%lu\n", i);
  6559   return ferror (f) || fclose (f) != 0;
  6562   return 0;
  6564 _ACEOF
  6565 rm -f conftest$ac_exeext
  6566 if { (ac_try="$ac_link"
  6567 case "(($ac_try" in
  6568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6569   *) ac_try_echo=$ac_try;;
  6570 esac
  6571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6572   (eval "$ac_link") 2>&5
  6573   ac_status=$?
  6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6576   { (case "(($ac_try" in
  6577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6578   *) ac_try_echo=$ac_try;;
  6579 esac
  6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6581   (eval "$ac_try") 2>&5
  6582   ac_status=$?
  6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6584   (exit $ac_status); }; }; then
  6585   ac_cv_sizeof_void_p=`cat conftest.val`
  6586 else
  6587   echo "$as_me: program exited with status $ac_status" >&5
  6588 echo "$as_me: failed program was:" >&5
  6589 sed 's/^/| /' conftest.$ac_ext >&5
  6591 ( exit $ac_status )
  6592 if test "$ac_cv_type_void_p" = yes; then
  6593      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6594 See \`config.log' for more details." >&5
  6595 echo "$as_me: error: cannot compute sizeof (void *)
  6596 See \`config.log' for more details." >&2;}
  6597    { (exit 77); exit 77; }; }
  6598    else
  6599      ac_cv_sizeof_void_p=0
  6600    fi
  6601 fi
  6602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6603 fi
  6604 rm -f conftest.val
  6605 fi
  6606 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  6607 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
  6611 cat >>confdefs.h <<_ACEOF
  6612 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  6613 _ACEOF
  6616 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6617 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6618 if test "${ac_cv_header_stdc+set}" = set; then
  6619   echo $ECHO_N "(cached) $ECHO_C" >&6
  6620 else
  6621   cat >conftest.$ac_ext <<_ACEOF
  6622 /* confdefs.h.  */
  6623 _ACEOF
  6624 cat confdefs.h >>conftest.$ac_ext
  6625 cat >>conftest.$ac_ext <<_ACEOF
  6626 /* end confdefs.h.  */
  6627 #include <stdlib.h>
  6628 #include <stdarg.h>
  6629 #include <string.h>
  6630 #include <float.h>
  6632 int
  6633 main ()
  6637   return 0;
  6639 _ACEOF
  6640 rm -f conftest.$ac_objext
  6641 if { (ac_try="$ac_compile"
  6642 case "(($ac_try" in
  6643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6644   *) ac_try_echo=$ac_try;;
  6645 esac
  6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6647   (eval "$ac_compile") 2>conftest.er1
  6648   ac_status=$?
  6649   grep -v '^ *+' conftest.er1 >conftest.err
  6650   rm -f conftest.er1
  6651   cat conftest.err >&5
  6652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6653   (exit $ac_status); } && {
  6654 	 test -z "$ac_c_werror_flag" ||
  6655 	 test ! -s conftest.err
  6656        } && test -s conftest.$ac_objext; then
  6657   ac_cv_header_stdc=yes
  6658 else
  6659   echo "$as_me: failed program was:" >&5
  6660 sed 's/^/| /' conftest.$ac_ext >&5
  6662 	ac_cv_header_stdc=no
  6663 fi
  6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6667 if test $ac_cv_header_stdc = yes; then
  6668   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6669   cat >conftest.$ac_ext <<_ACEOF
  6670 /* confdefs.h.  */
  6671 _ACEOF
  6672 cat confdefs.h >>conftest.$ac_ext
  6673 cat >>conftest.$ac_ext <<_ACEOF
  6674 /* end confdefs.h.  */
  6675 #include <string.h>
  6677 _ACEOF
  6678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6679   $EGREP "memchr" >/dev/null 2>&1; then
  6681 else
  6682   ac_cv_header_stdc=no
  6683 fi
  6684 rm -f conftest*
  6686 fi
  6688 if test $ac_cv_header_stdc = yes; then
  6689   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6690   cat >conftest.$ac_ext <<_ACEOF
  6691 /* confdefs.h.  */
  6692 _ACEOF
  6693 cat confdefs.h >>conftest.$ac_ext
  6694 cat >>conftest.$ac_ext <<_ACEOF
  6695 /* end confdefs.h.  */
  6696 #include <stdlib.h>
  6698 _ACEOF
  6699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6700   $EGREP "free" >/dev/null 2>&1; then
  6702 else
  6703   ac_cv_header_stdc=no
  6704 fi
  6705 rm -f conftest*
  6707 fi
  6709 if test $ac_cv_header_stdc = yes; then
  6710   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6711   if test "$cross_compiling" = yes; then
  6713 else
  6714   cat >conftest.$ac_ext <<_ACEOF
  6715 /* confdefs.h.  */
  6716 _ACEOF
  6717 cat confdefs.h >>conftest.$ac_ext
  6718 cat >>conftest.$ac_ext <<_ACEOF
  6719 /* end confdefs.h.  */
  6720 #include <ctype.h>
  6721 #include <stdlib.h>
  6722 #if ((' ' & 0x0FF) == 0x020)
  6723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6725 #else
  6726 # define ISLOWER(c) \
  6727 		   (('a' <= (c) && (c) <= 'i') \
  6728 		     || ('j' <= (c) && (c) <= 'r') \
  6729 		     || ('s' <= (c) && (c) <= 'z'))
  6730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6731 #endif
  6733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6734 int
  6735 main ()
  6737   int i;
  6738   for (i = 0; i < 256; i++)
  6739     if (XOR (islower (i), ISLOWER (i))
  6740 	|| toupper (i) != TOUPPER (i))
  6741       return 2;
  6742   return 0;
  6744 _ACEOF
  6745 rm -f conftest$ac_exeext
  6746 if { (ac_try="$ac_link"
  6747 case "(($ac_try" in
  6748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6749   *) ac_try_echo=$ac_try;;
  6750 esac
  6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6752   (eval "$ac_link") 2>&5
  6753   ac_status=$?
  6754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6756   { (case "(($ac_try" in
  6757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6758   *) ac_try_echo=$ac_try;;
  6759 esac
  6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6761   (eval "$ac_try") 2>&5
  6762   ac_status=$?
  6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6764   (exit $ac_status); }; }; then
  6766 else
  6767   echo "$as_me: program exited with status $ac_status" >&5
  6768 echo "$as_me: failed program was:" >&5
  6769 sed 's/^/| /' conftest.$ac_ext >&5
  6771 ( exit $ac_status )
  6772 ac_cv_header_stdc=no
  6773 fi
  6774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6775 fi
  6778 fi
  6779 fi
  6780 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6781 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6782 if test $ac_cv_header_stdc = yes; then
  6784 cat >>confdefs.h <<\_ACEOF
  6785 #define STDC_HEADERS 1
  6786 _ACEOF
  6788 fi
  6790 # Make sure we can run config.sub.
  6791 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6792   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6793 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6794    { (exit 1); exit 1; }; }
  6796 { echo "$as_me:$LINENO: checking build system type" >&5
  6797 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  6798 if test "${ac_cv_build+set}" = set; then
  6799   echo $ECHO_N "(cached) $ECHO_C" >&6
  6800 else
  6801   ac_build_alias=$build_alias
  6802 test "x$ac_build_alias" = x &&
  6803   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6804 test "x$ac_build_alias" = x &&
  6805   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6806 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6807    { (exit 1); exit 1; }; }
  6808 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6809   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6810 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6811    { (exit 1); exit 1; }; }
  6813 fi
  6814 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6815 echo "${ECHO_T}$ac_cv_build" >&6; }
  6816 case $ac_cv_build in
  6817 *-*-*) ;;
  6818 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6819 echo "$as_me: error: invalid value of canonical build" >&2;}
  6820    { (exit 1); exit 1; }; };;
  6821 esac
  6822 build=$ac_cv_build
  6823 ac_save_IFS=$IFS; IFS='-'
  6824 set x $ac_cv_build
  6825 shift
  6826 build_cpu=$1
  6827 build_vendor=$2
  6828 shift; shift
  6829 # Remember, the first character of IFS is used to create $*,
  6830 # except with old shells:
  6831 build_os=$*
  6832 IFS=$ac_save_IFS
  6833 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6836 { echo "$as_me:$LINENO: checking host system type" >&5
  6837 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  6838 if test "${ac_cv_host+set}" = set; then
  6839   echo $ECHO_N "(cached) $ECHO_C" >&6
  6840 else
  6841   if test "x$host_alias" = x; then
  6842   ac_cv_host=$ac_cv_build
  6843 else
  6844   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6845     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6846 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6847    { (exit 1); exit 1; }; }
  6848 fi
  6850 fi
  6851 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6852 echo "${ECHO_T}$ac_cv_host" >&6; }
  6853 case $ac_cv_host in
  6854 *-*-*) ;;
  6855 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6856 echo "$as_me: error: invalid value of canonical host" >&2;}
  6857    { (exit 1); exit 1; }; };;
  6858 esac
  6859 host=$ac_cv_host
  6860 ac_save_IFS=$IFS; IFS='-'
  6861 set x $ac_cv_host
  6862 shift
  6863 host_cpu=$1
  6864 host_vendor=$2
  6865 shift; shift
  6866 # Remember, the first character of IFS is used to create $*,
  6867 # except with old shells:
  6868 host_os=$*
  6869 IFS=$ac_save_IFS
  6870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6875 depcc="$OBJC" am_compiler_list='gcc3 gcc'
  6877 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6878 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  6879 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
  6880   echo $ECHO_N "(cached) $ECHO_C" >&6
  6881 else
  6882   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6883   # We make a subdir and do the tests there.  Otherwise we can end up
  6884   # making bogus files that we don't know about and never remove.  For
  6885   # instance it was reported that on HP-UX the gcc test will end up
  6886   # making a dummy file named `D' -- because `-MD' means `put the output
  6887   # in D'.
  6888   mkdir conftest.dir
  6889   # Copy depcomp to subdir because otherwise we won't find it if we're
  6890   # using a relative directory.
  6891   cp "$am_depcomp" conftest.dir
  6892   cd conftest.dir
  6893   # We will build objects and dependencies in a subdirectory because
  6894   # it helps to detect inapplicable dependency modes.  For instance
  6895   # both Tru64's cc and ICC support -MD to output dependencies as a
  6896   # side effect of compilation, but ICC will put the dependencies in
  6897   # the current directory while Tru64 will put them in the object
  6898   # directory.
  6899   mkdir sub
  6901   am_cv_OBJC_dependencies_compiler_type=none
  6902   if test "$am_compiler_list" = ""; then
  6903      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6904   fi
  6905   for depmode in $am_compiler_list; do
  6906     # Setup a source with many dependencies, because some compilers
  6907     # like to wrap large dependency lists on column 80 (with \), and
  6908     # we should not choose a depcomp mode which is confused by this.
  6910     # We need to recreate these files for each test, as the compiler may
  6911     # overwrite some of them when testing with obscure command lines.
  6912     # This happens at least with the AIX C compiler.
  6913     : > sub/conftest.c
  6914     for i in 1 2 3 4 5 6; do
  6915       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6916       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6917       # Solaris 8's {/usr,}/bin/sh.
  6918       touch sub/conftst$i.h
  6919     done
  6920     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6922     case $depmode in
  6923     nosideeffect)
  6924       # after this tag, mechanisms are not by side-effect, so they'll
  6925       # only be used when explicitly requested
  6926       if test "x$enable_dependency_tracking" = xyes; then
  6927 	continue
  6928       else
  6929 	break
  6930       fi
  6931       ;;
  6932     none) break ;;
  6933     esac
  6934     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6935     # mode.  It turns out that the SunPro C++ compiler does not properly
  6936     # handle `-M -o', and we need to detect this.
  6937     if depmode=$depmode \
  6938        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6939        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6940        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6941          >/dev/null 2>conftest.err &&
  6942        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6943        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6944        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6945       # icc doesn't choke on unknown options, it will just issue warnings
  6946       # or remarks (even with -Werror).  So we grep stderr for any message
  6947       # that says an option was ignored or not supported.
  6948       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6949       #   icc: Command line warning: ignoring option '-M'; no argument required
  6950       # The diagnosis changed in icc 8.0:
  6951       #   icc: Command line remark: option '-MP' not supported
  6952       if (grep 'ignoring option' conftest.err ||
  6953           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6954         am_cv_OBJC_dependencies_compiler_type=$depmode
  6955         break
  6956       fi
  6957     fi
  6958   done
  6960   cd ..
  6961   rm -rf conftest.dir
  6962 else
  6963   am_cv_OBJC_dependencies_compiler_type=none
  6964 fi
  6966 fi
  6967 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
  6968 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
  6969 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
  6973 if
  6974   test "x$enable_dependency_tracking" != xno \
  6975   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  6976   am__fastdepOBJC_TRUE=
  6977   am__fastdepOBJC_FALSE='#'
  6978 else
  6979   am__fastdepOBJC_TRUE='#'
  6980   am__fastdepOBJC_FALSE=
  6981 fi
  6985 # Extract the first word of "pod2man", so it can be a program name with args.
  6986 set dummy pod2man; ac_word=$2
  6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6989 if test "${ac_cv_path_POD2MAN+set}" = set; then
  6990   echo $ECHO_N "(cached) $ECHO_C" >&6
  6991 else
  6992   case $POD2MAN in
  6993   [\\/]* | ?:[\\/]*)
  6994   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  6995   ;;
  6996   *)
  6997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6998 for as_dir in $PATH
  6999 do
  7000   IFS=$as_save_IFS
  7001   test -z "$as_dir" && as_dir=.
  7002   for ac_exec_ext in '' $ac_executable_extensions; do
  7003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7004     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  7005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7006     break 2
  7007   fi
  7008 done
  7009 done
  7010 IFS=$as_save_IFS
  7012   ;;
  7013 esac
  7014 fi
  7015 POD2MAN=$ac_cv_path_POD2MAN
  7016 if test -n "$POD2MAN"; then
  7017   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
  7018 echo "${ECHO_T}$POD2MAN" >&6; }
  7019 else
  7020   { echo "$as_me:$LINENO: result: no" >&5
  7021 echo "${ECHO_T}no" >&6; }
  7022 fi
  7025 # Extract the first word of "pod2html", so it can be a program name with args.
  7026 set dummy pod2html; ac_word=$2
  7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7029 if test "${ac_cv_path_POD2HTML+set}" = set; then
  7030   echo $ECHO_N "(cached) $ECHO_C" >&6
  7031 else
  7032   case $POD2HTML in
  7033   [\\/]* | ?:[\\/]*)
  7034   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  7035   ;;
  7036   *)
  7037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7038 for as_dir in $PATH
  7039 do
  7040   IFS=$as_save_IFS
  7041   test -z "$as_dir" && as_dir=.
  7042   for ac_exec_ext in '' $ac_executable_extensions; do
  7043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7044     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  7045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7046     break 2
  7047   fi
  7048 done
  7049 done
  7050 IFS=$as_save_IFS
  7052   ;;
  7053 esac
  7054 fi
  7055 POD2HTML=$ac_cv_path_POD2HTML
  7056 if test -n "$POD2HTML"; then
  7057   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
  7058 echo "${ECHO_T}$POD2HTML" >&6; }
  7059 else
  7060   { echo "$as_me:$LINENO: result: no" >&5
  7061 echo "${ECHO_T}no" >&6; }
  7062 fi
  7067 # Check whether --enable-strict-warn was given.
  7068 if test "${enable_strict_warn+set}" = set; then
  7069   enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
  7070       enable_strictwarn=yes
  7071     fi
  7072 fi
  7074 # Check whether --enable-translator was given.
  7075 if test "${enable_translator+set}" = set; then
  7076   enableval=$enable_translator; true
  7077 else
  7078   enable_translator=yes
  7079 fi
  7081 # Check whether --enable-optimized was given.
  7082 if test "${enable_optimized+set}" = set; then
  7083   enableval=$enable_optimized; true
  7084 else
  7085   enable_optimized=yes
  7086 fi
  7088 # Check whether --enable-shared was given.
  7089 if test "${enable_shared+set}" = set; then
  7090   enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
  7091 else
  7092   enable_shared=cond
  7093 fi
  7095 # Check whether --enable-profiled was given.
  7096 if test "${enable_profiled+set}" = set; then
  7097   enableval=$enable_profiled; if test "$enableval" == "yes"; then
  7098       enable_profiled=yes;
  7099     fi
  7100 fi
  7102 # Check whether --enable-trace was given.
  7103 if test "${enable_trace+set}" = set; then
  7104   enableval=$enable_trace; if test "$enableval" == "yes"; then
  7106 cat >>confdefs.h <<\_ACEOF
  7107 #define ENABLE_TRACE_IO 1
  7108 _ACEOF
  7110     fi
  7111 fi
  7113 # Check whether --enable-watch was given.
  7114 if test "${enable_watch+set}" = set; then
  7115   enableval=$enable_watch; if test "$enableval" == "yes"; then
  7117 cat >>confdefs.h <<\_ACEOF
  7118 #define ENABLE_WATCH 1
  7119 _ACEOF
  7121    fi
  7122 fi
  7124 # Check whether --enable-sh4stats was given.
  7125 if test "${enable_sh4stats+set}" = set; then
  7126   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  7128 cat >>confdefs.h <<\_ACEOF
  7129 #define ENABLE_SH4STATS 1
  7130 _ACEOF
  7132     fi
  7133 fi
  7136 # Check whether --with-osmesa was given.
  7137 if test "${with_osmesa+set}" = set; then
  7138   withval=$with_osmesa;
  7139 else
  7140   with_osmesa=no
  7141 fi
  7144 # Check whether --with-gtk was given.
  7145 if test "${with_gtk+set}" = set; then
  7146   withval=$with_gtk; with_gtk=yes
  7147 else
  7148   with_gtk=x11
  7149 fi
  7152 # Check whether --with-esd was given.
  7153 if test "${with_esd+set}" = set; then
  7154   withval=$with_esd;
  7155 fi
  7158 # Check whether --with-pulse was given.
  7159 if test "${with_pulse+set}" = set; then
  7160   withval=$with_pulse;
  7161 fi
  7164 # Check whether --with-sdl was given.
  7165 if test "${with_sdl+set}" = set; then
  7166   withval=$with_sdl;
  7167 fi
  7174 ac_ext=m
  7175 ac_cpp='$OBJCPP $CPPFLAGS'
  7176 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7177 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7178 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  7179 if test -n "$ac_tool_prefix"; then
  7180   for ac_prog in gcc objcc objc cc CC
  7181   do
  7182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7186 if test "${ac_cv_prog_OBJC+set}" = set; then
  7187   echo $ECHO_N "(cached) $ECHO_C" >&6
  7188 else
  7189   if test -n "$OBJC"; then
  7190   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  7191 else
  7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7193 for as_dir in $PATH
  7194 do
  7195   IFS=$as_save_IFS
  7196   test -z "$as_dir" && as_dir=.
  7197   for ac_exec_ext in '' $ac_executable_extensions; do
  7198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7199     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  7200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7201     break 2
  7202   fi
  7203 done
  7204 done
  7205 IFS=$as_save_IFS
  7207 fi
  7208 fi
  7209 OBJC=$ac_cv_prog_OBJC
  7210 if test -n "$OBJC"; then
  7211   { echo "$as_me:$LINENO: result: $OBJC" >&5
  7212 echo "${ECHO_T}$OBJC" >&6; }
  7213 else
  7214   { echo "$as_me:$LINENO: result: no" >&5
  7215 echo "${ECHO_T}no" >&6; }
  7216 fi
  7219     test -n "$OBJC" && break
  7220   done
  7221 fi
  7222 if test -z "$OBJC"; then
  7223   ac_ct_OBJC=$OBJC
  7224   for ac_prog in gcc objcc objc cc CC
  7225 do
  7226   # Extract the first word of "$ac_prog", so it can be a program name with args.
  7227 set dummy $ac_prog; ac_word=$2
  7228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7230 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  7231   echo $ECHO_N "(cached) $ECHO_C" >&6
  7232 else
  7233   if test -n "$ac_ct_OBJC"; then
  7234   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  7235 else
  7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7237 for as_dir in $PATH
  7238 do
  7239   IFS=$as_save_IFS
  7240   test -z "$as_dir" && as_dir=.
  7241   for ac_exec_ext in '' $ac_executable_extensions; do
  7242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7243     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  7244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7245     break 2
  7246   fi
  7247 done
  7248 done
  7249 IFS=$as_save_IFS
  7251 fi
  7252 fi
  7253 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  7254 if test -n "$ac_ct_OBJC"; then
  7255   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  7256 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  7257 else
  7258   { echo "$as_me:$LINENO: result: no" >&5
  7259 echo "${ECHO_T}no" >&6; }
  7260 fi
  7263   test -n "$ac_ct_OBJC" && break
  7264 done
  7266   if test "x$ac_ct_OBJC" = x; then
  7267     OBJC="gcc"
  7268   else
  7269     case $cross_compiling:$ac_tool_warned in
  7270 yes:)
  7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7272 whose name does not start with the host triplet.  If you think this
  7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7275 whose name does not start with the host triplet.  If you think this
  7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7277 ac_tool_warned=yes ;;
  7278 esac
  7279     OBJC=$ac_ct_OBJC
  7280   fi
  7281 fi
  7283 # Provide some information about the compiler.
  7284 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  7285 ac_compiler=`set X $ac_compile; echo $2`
  7286 { (ac_try="$ac_compiler --version >&5"
  7287 case "(($ac_try" in
  7288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7289   *) ac_try_echo=$ac_try;;
  7290 esac
  7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7292   (eval "$ac_compiler --version >&5") 2>&5
  7293   ac_status=$?
  7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7295   (exit $ac_status); }
  7296 { (ac_try="$ac_compiler -v >&5"
  7297 case "(($ac_try" in
  7298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7299   *) ac_try_echo=$ac_try;;
  7300 esac
  7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7302   (eval "$ac_compiler -v >&5") 2>&5
  7303   ac_status=$?
  7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7305   (exit $ac_status); }
  7306 { (ac_try="$ac_compiler -V >&5"
  7307 case "(($ac_try" in
  7308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7309   *) ac_try_echo=$ac_try;;
  7310 esac
  7311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7312   (eval "$ac_compiler -V >&5") 2>&5
  7313   ac_status=$?
  7314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7315   (exit $ac_status); }
  7317 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  7318 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  7319 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  7320   echo $ECHO_N "(cached) $ECHO_C" >&6
  7321 else
  7322   cat >conftest.$ac_ext <<_ACEOF
  7323 /* confdefs.h.  */
  7324 _ACEOF
  7325 cat confdefs.h >>conftest.$ac_ext
  7326 cat >>conftest.$ac_ext <<_ACEOF
  7327 /* end confdefs.h.  */
  7329 int
  7330 main ()
  7332 #ifndef __GNUC__
  7333        choke me
  7334 #endif
  7337   return 0;
  7339 _ACEOF
  7340 rm -f conftest.$ac_objext
  7341 if { (ac_try="$ac_compile"
  7342 case "(($ac_try" in
  7343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7344   *) ac_try_echo=$ac_try;;
  7345 esac
  7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7347   (eval "$ac_compile") 2>conftest.er1
  7348   ac_status=$?
  7349   grep -v '^ *+' conftest.er1 >conftest.err
  7350   rm -f conftest.er1
  7351   cat conftest.err >&5
  7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353   (exit $ac_status); } && {
  7354 	 test -z "$ac_objc_werror_flag" ||
  7355 	 test ! -s conftest.err
  7356        } && test -s conftest.$ac_objext; then
  7357   ac_compiler_gnu=yes
  7358 else
  7359   echo "$as_me: failed program was:" >&5
  7360 sed 's/^/| /' conftest.$ac_ext >&5
  7362 	ac_compiler_gnu=no
  7363 fi
  7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7366 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  7368 fi
  7369 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  7370 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  7371 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  7372 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  7373 ac_save_OBJCFLAGS=$OBJCFLAGS
  7374 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  7375 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  7376 if test "${ac_cv_prog_objc_g+set}" = set; then
  7377   echo $ECHO_N "(cached) $ECHO_C" >&6
  7378 else
  7379   ac_save_objc_werror_flag=$ac_objc_werror_flag
  7380    ac_objc_werror_flag=yes
  7381    ac_cv_prog_objc_g=no
  7382    OBJCFLAGS="-g"
  7383    cat >conftest.$ac_ext <<_ACEOF
  7384 /* confdefs.h.  */
  7385 _ACEOF
  7386 cat confdefs.h >>conftest.$ac_ext
  7387 cat >>conftest.$ac_ext <<_ACEOF
  7388 /* end confdefs.h.  */
  7390 int
  7391 main ()
  7395   return 0;
  7397 _ACEOF
  7398 rm -f conftest.$ac_objext
  7399 if { (ac_try="$ac_compile"
  7400 case "(($ac_try" in
  7401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7402   *) ac_try_echo=$ac_try;;
  7403 esac
  7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7405   (eval "$ac_compile") 2>conftest.er1
  7406   ac_status=$?
  7407   grep -v '^ *+' conftest.er1 >conftest.err
  7408   rm -f conftest.er1
  7409   cat conftest.err >&5
  7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7411   (exit $ac_status); } && {
  7412 	 test -z "$ac_objc_werror_flag" ||
  7413 	 test ! -s conftest.err
  7414        } && test -s conftest.$ac_objext; then
  7415   ac_cv_prog_objc_g=yes
  7416 else
  7417   echo "$as_me: failed program was:" >&5
  7418 sed 's/^/| /' conftest.$ac_ext >&5
  7420 	OBJCFLAGS=""
  7421       cat >conftest.$ac_ext <<_ACEOF
  7422 /* confdefs.h.  */
  7423 _ACEOF
  7424 cat confdefs.h >>conftest.$ac_ext
  7425 cat >>conftest.$ac_ext <<_ACEOF
  7426 /* end confdefs.h.  */
  7428 int
  7429 main ()
  7433   return 0;
  7435 _ACEOF
  7436 rm -f conftest.$ac_objext
  7437 if { (ac_try="$ac_compile"
  7438 case "(($ac_try" in
  7439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7440   *) ac_try_echo=$ac_try;;
  7441 esac
  7442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7443   (eval "$ac_compile") 2>conftest.er1
  7444   ac_status=$?
  7445   grep -v '^ *+' conftest.er1 >conftest.err
  7446   rm -f conftest.er1
  7447   cat conftest.err >&5
  7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7449   (exit $ac_status); } && {
  7450 	 test -z "$ac_objc_werror_flag" ||
  7451 	 test ! -s conftest.err
  7452        } && test -s conftest.$ac_objext; then
  7454 else
  7455   echo "$as_me: failed program was:" >&5
  7456 sed 's/^/| /' conftest.$ac_ext >&5
  7458 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  7459 	 OBJCFLAGS="-g"
  7460 	 cat >conftest.$ac_ext <<_ACEOF
  7461 /* confdefs.h.  */
  7462 _ACEOF
  7463 cat confdefs.h >>conftest.$ac_ext
  7464 cat >>conftest.$ac_ext <<_ACEOF
  7465 /* end confdefs.h.  */
  7467 int
  7468 main ()
  7472   return 0;
  7474 _ACEOF
  7475 rm -f conftest.$ac_objext
  7476 if { (ac_try="$ac_compile"
  7477 case "(($ac_try" in
  7478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7479   *) ac_try_echo=$ac_try;;
  7480 esac
  7481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7482   (eval "$ac_compile") 2>conftest.er1
  7483   ac_status=$?
  7484   grep -v '^ *+' conftest.er1 >conftest.err
  7485   rm -f conftest.er1
  7486   cat conftest.err >&5
  7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7488   (exit $ac_status); } && {
  7489 	 test -z "$ac_objc_werror_flag" ||
  7490 	 test ! -s conftest.err
  7491        } && test -s conftest.$ac_objext; then
  7492   ac_cv_prog_objc_g=yes
  7493 else
  7494   echo "$as_me: failed program was:" >&5
  7495 sed 's/^/| /' conftest.$ac_ext >&5
  7498 fi
  7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7501 fi
  7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7504 fi
  7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7507    ac_objc_werror_flag=$ac_save_objc_werror_flag
  7508 fi
  7509 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  7510 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  7511 if test "$ac_test_OBJCFLAGS" = set; then
  7512   OBJCFLAGS=$ac_save_OBJCFLAGS
  7513 elif test $ac_cv_prog_objc_g = yes; then
  7514   if test "$GOBJC" = yes; then
  7515     OBJCFLAGS="-g -O2"
  7516   else
  7517     OBJCFLAGS="-g"
  7518   fi
  7519 else
  7520   if test "$GOBJC" = yes; then
  7521     OBJCFLAGS="-O2"
  7522   else
  7523     OBJCFLAGS=
  7524   fi
  7525 fi
  7526 ac_ext=c
  7527 ac_cpp='$CPP $CPPFLAGS'
  7528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7532 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
  7533 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
  7534 ac_ext=m
  7535 ac_cpp='$OBJCPP $CPPFLAGS'
  7536 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7537 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7538 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  7539 cat >conftest.$ac_ext <<_ACEOF
  7540 /* confdefs.h.  */
  7541 _ACEOF
  7542 cat confdefs.h >>conftest.$ac_ext
  7543 cat >>conftest.$ac_ext <<_ACEOF
  7544 /* end confdefs.h.  */
  7545 @interface Foo @end
  7546 int
  7547 main ()
  7551   return 0;
  7553 _ACEOF
  7554 rm -f conftest.$ac_objext
  7555 if { (ac_try="$ac_compile"
  7556 case "(($ac_try" in
  7557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7558   *) ac_try_echo=$ac_try;;
  7559 esac
  7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7561   (eval "$ac_compile") 2>conftest.er1
  7562   ac_status=$?
  7563   grep -v '^ *+' conftest.er1 >conftest.err
  7564   rm -f conftest.er1
  7565   cat conftest.err >&5
  7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7567   (exit $ac_status); } && {
  7568 	 test -z "$ac_objc_werror_flag" ||
  7569 	 test ! -s conftest.err
  7570        } && test -s conftest.$ac_objext; then
  7571   { echo "$as_me:$LINENO: result: yes" >&5
  7572 echo "${ECHO_T}yes" >&6; }
  7574    { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  7575 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
  7576 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  7577   echo $ECHO_N "(cached) $ECHO_C" >&6
  7578 else
  7579   cat >conftest.$ac_ext <<_ACEOF
  7580 /* confdefs.h.  */
  7581 _ACEOF
  7582 cat confdefs.h >>conftest.$ac_ext
  7583 cat >>conftest.$ac_ext <<_ACEOF
  7584 /* end confdefs.h.  */
  7585 $ac_includes_default
  7587 #include <Cocoa/Cocoa.h>
  7588 _ACEOF
  7589 rm -f conftest.$ac_objext
  7590 if { (ac_try="$ac_compile"
  7591 case "(($ac_try" in
  7592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7593   *) ac_try_echo=$ac_try;;
  7594 esac
  7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7596   (eval "$ac_compile") 2>conftest.er1
  7597   ac_status=$?
  7598   grep -v '^ *+' conftest.er1 >conftest.err
  7599   rm -f conftest.er1
  7600   cat conftest.err >&5
  7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7602   (exit $ac_status); } && {
  7603 	 test -z "$ac_objc_werror_flag" ||
  7604 	 test ! -s conftest.err
  7605        } && test -s conftest.$ac_objext; then
  7606   ac_cv_header_Cocoa_Cocoa_h=yes
  7607 else
  7608   echo "$as_me: failed program was:" >&5
  7609 sed 's/^/| /' conftest.$ac_ext >&5
  7611 	ac_cv_header_Cocoa_Cocoa_h=no
  7612 fi
  7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7615 fi
  7616 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  7617 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  7618 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  7620       HAVE_COCOA='yes'
  7621       APPLE_BUILD='yes'
  7622       LIBS="$LIBS -framework AppKit -framework Carbon"
  7623       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"
  7624       LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
  7625       LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
  7627 cat >>confdefs.h <<\_ACEOF
  7628 #define HAVE_COCOA 1
  7629 _ACEOF
  7632 cat >>confdefs.h <<\_ACEOF
  7633 #define APPLE_BUILD 1
  7634 _ACEOF
  7636       if test "x$with_gtk" = "xx11"; then
  7637         with_gtk=no
  7638       fi
  7640 fi
  7645 { echo "$as_me:$LINENO: checking OBJC version" >&5
  7646 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
  7647 if test -n "$OBJC"; then
  7648   _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
  7649   if test -n "$_GOBJC_VERSION"; then
  7650     { echo "$as_me:$LINENO: result: GCC" >&5
  7651 echo "${ECHO_T}GCC" >&6; }
  7652       OBJCOPT="-O2 -msse2 -mfpmath=sse"
  7653                      OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
  7654   else
  7655     { echo "$as_me:$LINENO: result: Unknown" >&5
  7656 echo "${ECHO_T}Unknown" >&6; }
  7657       OBJCOPT="-O2"
  7658   fi
  7659 else
  7660   { echo "$as_me:$LINENO: result: None" >&5
  7661 echo "${ECHO_T}None" >&6; }
  7663 fi
  7666 else
  7667   echo "$as_me: failed program was:" >&5
  7668 sed 's/^/| /' conftest.$ac_ext >&5
  7670 	{ echo "$as_me:$LINENO: result: No" >&5
  7671 echo "${ECHO_T}No" >&6; }
  7673 fi
  7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
  7676 ac_ext=c
  7677 ac_cpp='$CPP $CPPFLAGS'
  7678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7686 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  7687   GUI_COCOA_TRUE=
  7688   GUI_COCOA_FALSE='#'
  7689 else
  7690   GUI_COCOA_TRUE='#'
  7691   GUI_COCOA_FALSE=
  7692 fi
  7694 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
  7696 cat >>confdefs.h <<\_ACEOF
  7697 #define OSX_BUNDLE 1
  7698 _ACEOF
  7700 fi
  7702 CFLAGS="-g -fexceptions"
  7703 OBJCFLAGS="-g -fexceptions"
  7705 cat >>confdefs.h <<\_ACEOF
  7706 #define HAVE_EXCEPTIONS 1
  7707 _ACEOF
  7710 STDCFLAG="-std=c99"
  7712 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
  7713 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
  7714 { echo "$as_me:$LINENO: checking CC version" >&5
  7715 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
  7716 if test -n "$_ICC_VERSION"; then
  7717    { echo "$as_me:$LINENO: result: ICC" >&5
  7718 echo "${ECHO_T}ICC" >&6; }
  7719      CCOPT="$CFLAGS -fast"
  7720                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  7721 elif test -n "$_GCC_VERSION"; then
  7722    { echo "$as_me:$LINENO: result: GCC" >&5
  7723 echo "${ECHO_T}GCC" >&6; }
  7724      CCOPT="-O2 -msse2 -mfpmath=sse"
  7725                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  7726 else
  7727    { echo "$as_me:$LINENO: result: Unknown" >&5
  7728 echo "${ECHO_T}Unknown" >&6; }
  7729      CCOPT="$CFLAGS -O2"
  7730 fi
  7733 if test "x$enable_optimized" = "xyes"; then
  7734    CFLAGS="$CFLAGS $CCOPT"
  7735    OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
  7736    if test "x$enable_profiled" != "xyes"; then
  7737               CFLAGS="$CFLAGS -fomit-frame-pointer"
  7738        OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
  7739    fi
  7740 else
  7741    CFLAGS="$CFLAGS -g3"
  7742    OBJCFLAGS="$OBJCFLAGS -g3"
  7743 fi
  7745 if test "x$enable_profiled" = "xyes"; then
  7746    CFLAGS="$CFLAGS -pg"
  7747    LDFLAGS="$LDFLAGS -pg";
  7748    OBJCFLAGS="$OBJCFLAGS -pg";
  7749 fi
  7751 if test "x$enable_strictwarn" = "xyes"; then
  7752    CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
  7753    OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
  7754 fi
  7756 if test "x$enable_shared" != "xno"; then
  7758 cat >>confdefs.h <<\_ACEOF
  7759 #define ENABLE_SHARED 1
  7760 _ACEOF
  7762    if test "x$APPLE_BUILD" = "xyes"; then
  7763       SOEXT="dylib"
  7764       PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
  7765    else
  7766       SOEXT="so"
  7767       PLUGINLDFLAGS="-shared"
  7768    fi
  7769    PLUGINCFLAGS="-fPIC"
  7771    if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7772   { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  7773 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  7774 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7775   echo $ECHO_N "(cached) $ECHO_C" >&6
  7776 fi
  7777 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  7778 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  7779 else
  7780   # Is the header compilable?
  7781 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
  7782 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
  7783 cat >conftest.$ac_ext <<_ACEOF
  7784 /* confdefs.h.  */
  7785 _ACEOF
  7786 cat confdefs.h >>conftest.$ac_ext
  7787 cat >>conftest.$ac_ext <<_ACEOF
  7788 /* end confdefs.h.  */
  7789 $ac_includes_default
  7790 #include <dlfcn.h>
  7791 _ACEOF
  7792 rm -f conftest.$ac_objext
  7793 if { (ac_try="$ac_compile"
  7794 case "(($ac_try" in
  7795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7796   *) ac_try_echo=$ac_try;;
  7797 esac
  7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7799   (eval "$ac_compile") 2>conftest.er1
  7800   ac_status=$?
  7801   grep -v '^ *+' conftest.er1 >conftest.err
  7802   rm -f conftest.er1
  7803   cat conftest.err >&5
  7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7805   (exit $ac_status); } && {
  7806 	 test -z "$ac_c_werror_flag" ||
  7807 	 test ! -s conftest.err
  7808        } && test -s conftest.$ac_objext; then
  7809   ac_header_compiler=yes
  7810 else
  7811   echo "$as_me: failed program was:" >&5
  7812 sed 's/^/| /' conftest.$ac_ext >&5
  7814 	ac_header_compiler=no
  7815 fi
  7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7819 echo "${ECHO_T}$ac_header_compiler" >&6; }
  7821 # Is the header present?
  7822 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
  7823 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
  7824 cat >conftest.$ac_ext <<_ACEOF
  7825 /* confdefs.h.  */
  7826 _ACEOF
  7827 cat confdefs.h >>conftest.$ac_ext
  7828 cat >>conftest.$ac_ext <<_ACEOF
  7829 /* end confdefs.h.  */
  7830 #include <dlfcn.h>
  7831 _ACEOF
  7832 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7833 case "(($ac_try" in
  7834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7835   *) ac_try_echo=$ac_try;;
  7836 esac
  7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7839   ac_status=$?
  7840   grep -v '^ *+' conftest.er1 >conftest.err
  7841   rm -f conftest.er1
  7842   cat conftest.err >&5
  7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7844   (exit $ac_status); } >/dev/null && {
  7845 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7846 	 test ! -s conftest.err
  7847        }; then
  7848   ac_header_preproc=yes
  7849 else
  7850   echo "$as_me: failed program was:" >&5
  7851 sed 's/^/| /' conftest.$ac_ext >&5
  7853   ac_header_preproc=no
  7854 fi
  7856 rm -f conftest.err conftest.$ac_ext
  7857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7858 echo "${ECHO_T}$ac_header_preproc" >&6; }
  7860 # So?  What about this header?
  7861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7862   yes:no: )
  7863     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7864 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7865     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
  7866 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
  7867     ac_header_preproc=yes
  7868     ;;
  7869   no:yes:* )
  7870     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
  7871 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
  7872     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
  7873 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
  7874     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
  7875 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
  7876     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
  7877 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7878     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
  7879 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
  7880     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
  7881 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
  7883     ;;
  7884 esac
  7885 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  7886 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  7887 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7888   echo $ECHO_N "(cached) $ECHO_C" >&6
  7889 else
  7890   ac_cv_header_dlfcn_h=$ac_header_preproc
  7891 fi
  7892 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  7893 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  7895 fi
  7896 if test $ac_cv_header_dlfcn_h = yes; then
  7898       { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  7899 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
  7900 if test "${ac_cv_search_dlopen+set}" = set; then
  7901   echo $ECHO_N "(cached) $ECHO_C" >&6
  7902 else
  7903   ac_func_search_save_LIBS=$LIBS
  7904 cat >conftest.$ac_ext <<_ACEOF
  7905 /* confdefs.h.  */
  7906 _ACEOF
  7907 cat confdefs.h >>conftest.$ac_ext
  7908 cat >>conftest.$ac_ext <<_ACEOF
  7909 /* end confdefs.h.  */
  7911 /* Override any GCC internal prototype to avoid an error.
  7912    Use char because int might match the return type of a GCC
  7913    builtin and then its argument prototype would still apply.  */
  7914 #ifdef __cplusplus
  7915 extern "C"
  7916 #endif
  7917 char dlopen ();
  7918 int
  7919 main ()
  7921 return dlopen ();
  7923   return 0;
  7925 _ACEOF
  7926 for ac_lib in '' dl; do
  7927   if test -z "$ac_lib"; then
  7928     ac_res="none required"
  7929   else
  7930     ac_res=-l$ac_lib
  7931     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  7932   fi
  7933   rm -f conftest.$ac_objext conftest$ac_exeext
  7934 if { (ac_try="$ac_link"
  7935 case "(($ac_try" in
  7936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7937   *) ac_try_echo=$ac_try;;
  7938 esac
  7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7940   (eval "$ac_link") 2>conftest.er1
  7941   ac_status=$?
  7942   grep -v '^ *+' conftest.er1 >conftest.err
  7943   rm -f conftest.er1
  7944   cat conftest.err >&5
  7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7946   (exit $ac_status); } && {
  7947 	 test -z "$ac_c_werror_flag" ||
  7948 	 test ! -s conftest.err
  7949        } && test -s conftest$ac_exeext &&
  7950        $as_test_x conftest$ac_exeext; then
  7951   ac_cv_search_dlopen=$ac_res
  7952 else
  7953   echo "$as_me: failed program was:" >&5
  7954 sed 's/^/| /' conftest.$ac_ext >&5
  7957 fi
  7959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7960       conftest$ac_exeext
  7961   if test "${ac_cv_search_dlopen+set}" = set; then
  7962   break
  7963 fi
  7964 done
  7965 if test "${ac_cv_search_dlopen+set}" = set; then
  7967 else
  7968   ac_cv_search_dlopen=no
  7969 fi
  7970 rm conftest.$ac_ext
  7971 LIBS=$ac_func_search_save_LIBS
  7972 fi
  7973 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
  7974 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
  7975 ac_res=$ac_cv_search_dlopen
  7976 if test "$ac_res" != no; then
  7977   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7978   have_dlopen=yes
  7979 fi
  7981 fi
  7984    if test "x$have_dlopen" != "xyes"; then
  7985       if test "x$enable_shared" == "xyes"; then
  7986          { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
  7987 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
  7988    { (exit 1); exit 1; }; }
  7989       else
  7990          { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
  7991 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
  7992       fi
  7993    fi
  7995    { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
  7996 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
  7997    old_LDFLAGS="$LDFLAGS"
  7998    LDFLAGS="$LDFLAGS -rdynamic"
  7999    cat >conftest.$ac_ext <<_ACEOF
  8000 int main(){ return 0; }
  8001 _ACEOF
  8002 rm -f conftest.$ac_objext conftest$ac_exeext
  8003 if { (ac_try="$ac_link"
  8004 case "(($ac_try" in
  8005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8006   *) ac_try_echo=$ac_try;;
  8007 esac
  8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8009   (eval "$ac_link") 2>conftest.er1
  8010   ac_status=$?
  8011   grep -v '^ *+' conftest.er1 >conftest.err
  8012   rm -f conftest.er1
  8013   cat conftest.err >&5
  8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8015   (exit $ac_status); } && {
  8016 	 test -z "$ac_c_werror_flag" ||
  8017 	 test ! -s conftest.err
  8018        } && test -s conftest$ac_exeext &&
  8019        $as_test_x conftest$ac_exeext; then
  8021      LXDREAMLDFLAGS="-rdynamic"
  8022      { echo "$as_me:$LINENO: result: yes" >&5
  8023 echo "${ECHO_T}yes" >&6; }
  8025 else
  8026   echo "$as_me: failed program was:" >&5
  8027 sed 's/^/| /' conftest.$ac_ext >&5
  8030      LXDREAMLDFLAGS=""
  8031      { echo "$as_me:$LINENO: result: no" >&5
  8032 echo "${ECHO_T}no" >&6; }
  8033 fi
  8035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8036       conftest$ac_exeext conftest.$ac_ext
  8037    LDFLAGS="$old_LDFLAGS"
  8043 fi
  8046 if test "x$have_dlopen" = "xyes"; then
  8047   BUILD_SHARED_TRUE=
  8048   BUILD_SHARED_FALSE='#'
  8049 else
  8050   BUILD_SHARED_TRUE='#'
  8051   BUILD_SHARED_FALSE=
  8052 fi
  8056 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
  8057 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
  8058 if test "$cross_compiling" = yes; then
  8059   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  8060 See \`config.log' for more details." >&5
  8061 echo "$as_me: error: cannot run test program while cross compiling
  8062 See \`config.log' for more details." >&2;}
  8063    { (exit 1); exit 1; }; }
  8064 else
  8065   cat >conftest.$ac_ext <<_ACEOF
  8067   /* confdefs.h.  */
  8068 _ACEOF
  8069 cat confdefs.h >>conftest.$ac_ext
  8070 cat >>conftest.$ac_ext <<_ACEOF
  8071 /* end confdefs.h.  */
  8073 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
  8075 int main(int argc, char *argv[])
  8077    return foo( 1, 2 ) == 3 ? 0 : 1;
  8079 _ACEOF
  8080 rm -f conftest$ac_exeext
  8081 if { (ac_try="$ac_link"
  8082 case "(($ac_try" in
  8083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8084   *) ac_try_echo=$ac_try;;
  8085 esac
  8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8087   (eval "$ac_link") 2>&5
  8088   ac_status=$?
  8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8091   { (case "(($ac_try" in
  8092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8093   *) ac_try_echo=$ac_try;;
  8094 esac
  8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8096   (eval "$ac_try") 2>&5
  8097   ac_status=$?
  8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8099   (exit $ac_status); }; }; then
  8101    { echo "$as_me:$LINENO: result: yes" >&5
  8102 echo "${ECHO_T}yes" >&6; }
  8105 cat >>confdefs.h <<\_ACEOF
  8106 #define HAVE_FASTCALL 1
  8107 _ACEOF
  8110 else
  8111   echo "$as_me: program exited with status $ac_status" >&5
  8112 echo "$as_me: failed program was:" >&5
  8113 sed 's/^/| /' conftest.$ac_ext >&5
  8115 ( exit $ac_status )
  8117    { echo "$as_me:$LINENO: result: no" >&5
  8118 echo "${ECHO_T}no" >&6; }
  8120 fi
  8121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8122 fi
  8127 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
  8128 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
  8129 if test "$cross_compiling" = yes; then
  8130   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  8131 See \`config.log' for more details." >&5
  8132 echo "$as_me: error: cannot run test program while cross compiling
  8133 See \`config.log' for more details." >&2;}
  8134    { (exit 1); exit 1; }; }
  8135 else
  8136   cat >conftest.$ac_ext <<_ACEOF
  8138   /* confdefs.h.  */
  8139 _ACEOF
  8140 cat confdefs.h >>conftest.$ac_ext
  8141 cat >>conftest.$ac_ext <<_ACEOF
  8142 /* end confdefs.h.  */
  8144 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
  8145 int __attribute__((noinline)) foo( int arg, void *exc )
  8147     if( arg < 2 ) {
  8148         *(((void **)__builtin_frame_address(0))+1) = exc;
  8150     return 0;
  8153 int main(int argc, char *argv[])
  8155    goto *first_arg(&&start, &&except);
  8157 start:
  8158    return foo( argc, &&except ) + 1;
  8160 except:
  8161    return 0;
  8163 _ACEOF
  8164 rm -f conftest$ac_exeext
  8165 if { (ac_try="$ac_link"
  8166 case "(($ac_try" in
  8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8168   *) ac_try_echo=$ac_try;;
  8169 esac
  8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8171   (eval "$ac_link") 2>&5
  8172   ac_status=$?
  8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8175   { (case "(($ac_try" in
  8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8177   *) ac_try_echo=$ac_try;;
  8178 esac
  8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8180   (eval "$ac_try") 2>&5
  8181   ac_status=$?
  8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8183   (exit $ac_status); }; }; then
  8185    { echo "$as_me:$LINENO: result: yes" >&5
  8186 echo "${ECHO_T}yes" >&6; }
  8189 cat >>confdefs.h <<\_ACEOF
  8190 #define HAVE_FRAME_ADDRESS 1
  8191 _ACEOF
  8194 else
  8195   echo "$as_me: program exited with status $ac_status" >&5
  8196 echo "$as_me: failed program was:" >&5
  8197 sed 's/^/| /' conftest.$ac_ext >&5
  8199 ( exit $ac_status )
  8201    { echo "$as_me:$LINENO: result: no" >&5
  8202 echo "${ECHO_T}no" >&6; }
  8203     { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
  8204 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
  8205 fi
  8206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8207 fi
  8213 { echo "$as_me:$LINENO: checking for library containing listen" >&5
  8214 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
  8215 if test "${ac_cv_search_listen+set}" = set; then
  8216   echo $ECHO_N "(cached) $ECHO_C" >&6
  8217 else
  8218   ac_func_search_save_LIBS=$LIBS
  8219 cat >conftest.$ac_ext <<_ACEOF
  8220 /* confdefs.h.  */
  8221 _ACEOF
  8222 cat confdefs.h >>conftest.$ac_ext
  8223 cat >>conftest.$ac_ext <<_ACEOF
  8224 /* end confdefs.h.  */
  8226 /* Override any GCC internal prototype to avoid an error.
  8227    Use char because int might match the return type of a GCC
  8228    builtin and then its argument prototype would still apply.  */
  8229 #ifdef __cplusplus
  8230 extern "C"
  8231 #endif
  8232 char listen ();
  8233 int
  8234 main ()
  8236 return listen ();
  8238   return 0;
  8240 _ACEOF
  8241 for ac_lib in '' socket; do
  8242   if test -z "$ac_lib"; then
  8243     ac_res="none required"
  8244   else
  8245     ac_res=-l$ac_lib
  8246     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  8247   fi
  8248   rm -f conftest.$ac_objext conftest$ac_exeext
  8249 if { (ac_try="$ac_link"
  8250 case "(($ac_try" in
  8251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8252   *) ac_try_echo=$ac_try;;
  8253 esac
  8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8255   (eval "$ac_link") 2>conftest.er1
  8256   ac_status=$?
  8257   grep -v '^ *+' conftest.er1 >conftest.err
  8258   rm -f conftest.er1
  8259   cat conftest.err >&5
  8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8261   (exit $ac_status); } && {
  8262 	 test -z "$ac_c_werror_flag" ||
  8263 	 test ! -s conftest.err
  8264        } && test -s conftest$ac_exeext &&
  8265        $as_test_x conftest$ac_exeext; then
  8266   ac_cv_search_listen=$ac_res
  8267 else
  8268   echo "$as_me: failed program was:" >&5
  8269 sed 's/^/| /' conftest.$ac_ext >&5
  8272 fi
  8274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8275       conftest$ac_exeext
  8276   if test "${ac_cv_search_listen+set}" = set; then
  8277   break
  8278 fi
  8279 done
  8280 if test "${ac_cv_search_listen+set}" = set; then
  8282 else
  8283   ac_cv_search_listen=no
  8284 fi
  8285 rm conftest.$ac_ext
  8286 LIBS=$ac_func_search_save_LIBS
  8287 fi
  8288 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
  8289 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
  8290 ac_res=$ac_cv_search_listen
  8291 if test "$ac_res" != no; then
  8292   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8294 fi
  8296 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
  8297 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
  8298 if test "${ac_cv_search_inet_ntoa+set}" = set; then
  8299   echo $ECHO_N "(cached) $ECHO_C" >&6
  8300 else
  8301   ac_func_search_save_LIBS=$LIBS
  8302 cat >conftest.$ac_ext <<_ACEOF
  8303 /* confdefs.h.  */
  8304 _ACEOF
  8305 cat confdefs.h >>conftest.$ac_ext
  8306 cat >>conftest.$ac_ext <<_ACEOF
  8307 /* end confdefs.h.  */
  8309 /* Override any GCC internal prototype to avoid an error.
  8310    Use char because int might match the return type of a GCC
  8311    builtin and then its argument prototype would still apply.  */
  8312 #ifdef __cplusplus
  8313 extern "C"
  8314 #endif
  8315 char inet_ntoa ();
  8316 int
  8317 main ()
  8319 return inet_ntoa ();
  8321   return 0;
  8323 _ACEOF
  8324 for ac_lib in '' nsl; do
  8325   if test -z "$ac_lib"; then
  8326     ac_res="none required"
  8327   else
  8328     ac_res=-l$ac_lib
  8329     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  8330   fi
  8331   rm -f conftest.$ac_objext conftest$ac_exeext
  8332 if { (ac_try="$ac_link"
  8333 case "(($ac_try" in
  8334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8335   *) ac_try_echo=$ac_try;;
  8336 esac
  8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8338   (eval "$ac_link") 2>conftest.er1
  8339   ac_status=$?
  8340   grep -v '^ *+' conftest.er1 >conftest.err
  8341   rm -f conftest.er1
  8342   cat conftest.err >&5
  8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8344   (exit $ac_status); } && {
  8345 	 test -z "$ac_c_werror_flag" ||
  8346 	 test ! -s conftest.err
  8347        } && test -s conftest$ac_exeext &&
  8348        $as_test_x conftest$ac_exeext; then
  8349   ac_cv_search_inet_ntoa=$ac_res
  8350 else
  8351   echo "$as_me: failed program was:" >&5
  8352 sed 's/^/| /' conftest.$ac_ext >&5
  8355 fi
  8357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8358       conftest$ac_exeext
  8359   if test "${ac_cv_search_inet_ntoa+set}" = set; then
  8360   break
  8361 fi
  8362 done
  8363 if test "${ac_cv_search_inet_ntoa+set}" = set; then
  8365 else
  8366   ac_cv_search_inet_ntoa=no
  8367 fi
  8368 rm conftest.$ac_ext
  8369 LIBS=$ac_func_search_save_LIBS
  8370 fi
  8371 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
  8372 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
  8373 ac_res=$ac_cv_search_inet_ntoa
  8374 if test "$ac_res" != no; then
  8375   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8377 fi
  8382 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  8383 	if test -n "$ac_tool_prefix"; then
  8384   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  8385 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  8386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8388 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  8389   echo $ECHO_N "(cached) $ECHO_C" >&6
  8390 else
  8391   case $PKG_CONFIG in
  8392   [\\/]* | ?:[\\/]*)
  8393   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  8394   ;;
  8395   *)
  8396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8397 for as_dir in $PATH
  8398 do
  8399   IFS=$as_save_IFS
  8400   test -z "$as_dir" && as_dir=.
  8401   for ac_exec_ext in '' $ac_executable_extensions; do
  8402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8403     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8405     break 2
  8406   fi
  8407 done
  8408 done
  8409 IFS=$as_save_IFS
  8411   ;;
  8412 esac
  8413 fi
  8414 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  8415 if test -n "$PKG_CONFIG"; then
  8416   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  8417 echo "${ECHO_T}$PKG_CONFIG" >&6; }
  8418 else
  8419   { echo "$as_me:$LINENO: result: no" >&5
  8420 echo "${ECHO_T}no" >&6; }
  8421 fi
  8424 fi
  8425 if test -z "$ac_cv_path_PKG_CONFIG"; then
  8426   ac_pt_PKG_CONFIG=$PKG_CONFIG
  8427   # Extract the first word of "pkg-config", so it can be a program name with args.
  8428 set dummy pkg-config; ac_word=$2
  8429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8431 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  8432   echo $ECHO_N "(cached) $ECHO_C" >&6
  8433 else
  8434   case $ac_pt_PKG_CONFIG in
  8435   [\\/]* | ?:[\\/]*)
  8436   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  8437   ;;
  8438   *)
  8439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8440 for as_dir in $PATH
  8441 do
  8442   IFS=$as_save_IFS
  8443   test -z "$as_dir" && as_dir=.
  8444   for ac_exec_ext in '' $ac_executable_extensions; do
  8445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8446     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8448     break 2
  8449   fi
  8450 done
  8451 done
  8452 IFS=$as_save_IFS
  8454   ;;
  8455 esac
  8456 fi
  8457 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  8458 if test -n "$ac_pt_PKG_CONFIG"; then
  8459   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  8460 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  8461 else
  8462   { echo "$as_me:$LINENO: result: no" >&5
  8463 echo "${ECHO_T}no" >&6; }
  8464 fi
  8466   if test "x$ac_pt_PKG_CONFIG" = x; then
  8467     PKG_CONFIG=""
  8468   else
  8469     case $cross_compiling:$ac_tool_warned in
  8470 yes:)
  8471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8472 whose name does not start with the host triplet.  If you think this
  8473 configuration is useful to you, please write to autoconf@gnu.org." >&5
  8474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8475 whose name does not start with the host triplet.  If you think this
  8476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8477 ac_tool_warned=yes ;;
  8478 esac
  8479     PKG_CONFIG=$ac_pt_PKG_CONFIG
  8480   fi
  8481 else
  8482   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  8483 fi
  8485 fi
  8486 if test -n "$PKG_CONFIG"; then
  8487 	_pkg_min_version=0.9.0
  8488 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  8489 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  8490 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  8491 		{ echo "$as_me:$LINENO: result: yes" >&5
  8492 echo "${ECHO_T}yes" >&6; }
  8493 	else
  8494 		{ echo "$as_me:$LINENO: result: no" >&5
  8495 echo "${ECHO_T}no" >&6; }
  8496 		PKG_CONFIG=""
  8497 	fi
  8499 fi
  8501 pkg_failed=no
  8502 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
  8503 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
  8505 if test -n "$LIBPNG_CFLAGS"; then
  8506     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  8507  elif test -n "$PKG_CONFIG"; then
  8508     if test -n "$PKG_CONFIG" && \
  8509     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  8510   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  8511   ac_status=$?
  8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8513   (exit $ac_status); }; then
  8514   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  8515 else
  8516   pkg_failed=yes
  8517 fi
  8518  else
  8519     pkg_failed=untried
  8520 fi
  8521 if test -n "$LIBPNG_LIBS"; then
  8522     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  8523  elif test -n "$PKG_CONFIG"; then
  8524     if test -n "$PKG_CONFIG" && \
  8525     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  8526   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  8527   ac_status=$?
  8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8529   (exit $ac_status); }; then
  8530   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  8531 else
  8532   pkg_failed=yes
  8533 fi
  8534  else
  8535     pkg_failed=untried
  8536 fi
  8540 if test $pkg_failed = yes; then
  8542 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8543         _pkg_short_errors_supported=yes
  8544 else
  8545         _pkg_short_errors_supported=no
  8546 fi
  8547         if test $_pkg_short_errors_supported = yes; then
  8548 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
  8549         else
  8550 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
  8551         fi
  8552 	# Put the nasty error message in config.log where it belongs
  8553 	echo "$LIBPNG_PKG_ERRORS" >&5
  8555 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  8557 $LIBPNG_PKG_ERRORS
  8559 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8560 installed software in a non-standard prefix.
  8562 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8563 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8564 See the pkg-config man page for more details.
  8565 " >&5
  8566 echo "$as_me: error: Package requirements (libpng ) were not met:
  8568 $LIBPNG_PKG_ERRORS
  8570 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8571 installed software in a non-standard prefix.
  8573 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8574 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8575 See the pkg-config man page for more details.
  8576 " >&2;}
  8577    { (exit 1); exit 1; }; }
  8578 elif test $pkg_failed = untried; then
  8579 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  8580 is in your PATH or set the PKG_CONFIG environment variable to the full
  8581 path to pkg-config.
  8583 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8584 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8585 See the pkg-config man page for more details.
  8587 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8588 See \`config.log' for more details." >&5
  8589 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  8590 is in your PATH or set the PKG_CONFIG environment variable to the full
  8591 path to pkg-config.
  8593 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8594 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8595 See the pkg-config man page for more details.
  8597 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8598 See \`config.log' for more details." >&2;}
  8599    { (exit 1); exit 1; }; }
  8600 else
  8601 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  8602 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  8603         { echo "$as_me:$LINENO: result: yes" >&5
  8604 echo "${ECHO_T}yes" >&6; }
  8606 fi
  8609 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  8610 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
  8611 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  8612   echo $ECHO_N "(cached) $ECHO_C" >&6
  8613 else
  8614   ac_check_lib_save_LIBS=$LIBS
  8615 LIBS="-lz  $LIBS"
  8616 cat >conftest.$ac_ext <<_ACEOF
  8617 /* confdefs.h.  */
  8618 _ACEOF
  8619 cat confdefs.h >>conftest.$ac_ext
  8620 cat >>conftest.$ac_ext <<_ACEOF
  8621 /* end confdefs.h.  */
  8623 /* Override any GCC internal prototype to avoid an error.
  8624    Use char because int might match the return type of a GCC
  8625    builtin and then its argument prototype would still apply.  */
  8626 #ifdef __cplusplus
  8627 extern "C"
  8628 #endif
  8629 char uncompress ();
  8630 int
  8631 main ()
  8633 return uncompress ();
  8635   return 0;
  8637 _ACEOF
  8638 rm -f conftest.$ac_objext conftest$ac_exeext
  8639 if { (ac_try="$ac_link"
  8640 case "(($ac_try" in
  8641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8642   *) ac_try_echo=$ac_try;;
  8643 esac
  8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8645   (eval "$ac_link") 2>conftest.er1
  8646   ac_status=$?
  8647   grep -v '^ *+' conftest.er1 >conftest.err
  8648   rm -f conftest.er1
  8649   cat conftest.err >&5
  8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8651   (exit $ac_status); } && {
  8652 	 test -z "$ac_c_werror_flag" ||
  8653 	 test ! -s conftest.err
  8654        } && test -s conftest$ac_exeext &&
  8655        $as_test_x conftest$ac_exeext; then
  8656   ac_cv_lib_z_uncompress=yes
  8657 else
  8658   echo "$as_me: failed program was:" >&5
  8659 sed 's/^/| /' conftest.$ac_ext >&5
  8661 	ac_cv_lib_z_uncompress=no
  8662 fi
  8664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8665       conftest$ac_exeext conftest.$ac_ext
  8666 LIBS=$ac_check_lib_save_LIBS
  8667 fi
  8668 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  8669 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
  8670 if test $ac_cv_lib_z_uncompress = yes; then
  8671   cat >>confdefs.h <<_ACEOF
  8672 #define HAVE_LIBZ 1
  8673 _ACEOF
  8675   LIBS="-lz $LIBS"
  8677 else
  8679     echo "Zlib (libz.so) could not be found, but is required."
  8680     exit 1
  8681 fi
  8684 if test "x$with_gtk" = "xno"; then
  8686 pkg_failed=no
  8687 { echo "$as_me:$LINENO: checking for GLIB" >&5
  8688 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
  8690 if test -n "$GLIB_CFLAGS"; then
  8691     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
  8692  elif test -n "$PKG_CONFIG"; then
  8693     if test -n "$PKG_CONFIG" && \
  8694     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  8695   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  8696   ac_status=$?
  8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8698   (exit $ac_status); }; then
  8699   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
  8700 else
  8701   pkg_failed=yes
  8702 fi
  8703  else
  8704     pkg_failed=untried
  8705 fi
  8706 if test -n "$GLIB_LIBS"; then
  8707     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
  8708  elif test -n "$PKG_CONFIG"; then
  8709     if test -n "$PKG_CONFIG" && \
  8710     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  8711   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  8712   ac_status=$?
  8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8714   (exit $ac_status); }; then
  8715   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
  8716 else
  8717   pkg_failed=yes
  8718 fi
  8719  else
  8720     pkg_failed=untried
  8721 fi
  8725 if test $pkg_failed = yes; then
  8727 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8728         _pkg_short_errors_supported=yes
  8729 else
  8730         _pkg_short_errors_supported=no
  8731 fi
  8732         if test $_pkg_short_errors_supported = yes; then
  8733 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
  8734         else
  8735 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
  8736         fi
  8737 	# Put the nasty error message in config.log where it belongs
  8738 	echo "$GLIB_PKG_ERRORS" >&5
  8740 	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
  8742 $GLIB_PKG_ERRORS
  8744 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8745 installed software in a non-standard prefix.
  8747 Alternatively, you may set the environment variables GLIB_CFLAGS
  8748 and GLIB_LIBS to avoid the need to call pkg-config.
  8749 See the pkg-config man page for more details.
  8750 " >&5
  8751 echo "$as_me: error: Package requirements (glib-2.0) were not met:
  8753 $GLIB_PKG_ERRORS
  8755 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8756 installed software in a non-standard prefix.
  8758 Alternatively, you may set the environment variables GLIB_CFLAGS
  8759 and GLIB_LIBS to avoid the need to call pkg-config.
  8760 See the pkg-config man page for more details.
  8761 " >&2;}
  8762    { (exit 1); exit 1; }; }
  8763 elif test $pkg_failed = untried; then
  8764 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  8765 is in your PATH or set the PKG_CONFIG environment variable to the full
  8766 path to pkg-config.
  8768 Alternatively, you may set the environment variables GLIB_CFLAGS
  8769 and GLIB_LIBS to avoid the need to call pkg-config.
  8770 See the pkg-config man page for more details.
  8772 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8773 See \`config.log' for more details." >&5
  8774 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  8775 is in your PATH or set the PKG_CONFIG environment variable to the full
  8776 path to pkg-config.
  8778 Alternatively, you may set the environment variables GLIB_CFLAGS
  8779 and GLIB_LIBS to avoid the need to call pkg-config.
  8780 See the pkg-config man page for more details.
  8782 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8783 See \`config.log' for more details." >&2;}
  8784    { (exit 1); exit 1; }; }
  8785 else
  8786 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
  8787 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
  8788         { echo "$as_me:$LINENO: result: yes" >&5
  8789 echo "${ECHO_T}yes" >&6; }
  8791 fi
  8792 else
  8794 pkg_failed=no
  8795 { echo "$as_me:$LINENO: checking for GTK" >&5
  8796 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
  8798 if test -n "$GTK_CFLAGS"; then
  8799     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  8800  elif test -n "$PKG_CONFIG"; then
  8801     if test -n "$PKG_CONFIG" && \
  8802     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  8803   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  8804   ac_status=$?
  8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8806   (exit $ac_status); }; then
  8807   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  8808 else
  8809   pkg_failed=yes
  8810 fi
  8811  else
  8812     pkg_failed=untried
  8813 fi
  8814 if test -n "$GTK_LIBS"; then
  8815     pkg_cv_GTK_LIBS="$GTK_LIBS"
  8816  elif test -n "$PKG_CONFIG"; then
  8817     if test -n "$PKG_CONFIG" && \
  8818     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  8819   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  8820   ac_status=$?
  8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8822   (exit $ac_status); }; then
  8823   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  8824 else
  8825   pkg_failed=yes
  8826 fi
  8827  else
  8828     pkg_failed=untried
  8829 fi
  8833 if test $pkg_failed = yes; then
  8835 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8836         _pkg_short_errors_supported=yes
  8837 else
  8838         _pkg_short_errors_supported=no
  8839 fi
  8840         if test $_pkg_short_errors_supported = yes; then
  8841 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
  8842         else
  8843 	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
  8844         fi
  8845 	# Put the nasty error message in config.log where it belongs
  8846 	echo "$GTK_PKG_ERRORS" >&5
  8848 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  8850 $GTK_PKG_ERRORS
  8852 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8853 installed software in a non-standard prefix.
  8855 Alternatively, you may set the environment variables GTK_CFLAGS
  8856 and GTK_LIBS to avoid the need to call pkg-config.
  8857 See the pkg-config man page for more details.
  8858 " >&5
  8859 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  8861 $GTK_PKG_ERRORS
  8863 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8864 installed software in a non-standard prefix.
  8866 Alternatively, you may set the environment variables GTK_CFLAGS
  8867 and GTK_LIBS to avoid the need to call pkg-config.
  8868 See the pkg-config man page for more details.
  8869 " >&2;}
  8870    { (exit 1); exit 1; }; }
  8871 elif test $pkg_failed = untried; then
  8872 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  8873 is in your PATH or set the PKG_CONFIG environment variable to the full
  8874 path to pkg-config.
  8876 Alternatively, you may set the environment variables GTK_CFLAGS
  8877 and GTK_LIBS to avoid the need to call pkg-config.
  8878 See the pkg-config man page for more details.
  8880 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8881 See \`config.log' for more details." >&5
  8882 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  8883 is in your PATH or set the PKG_CONFIG environment variable to the full
  8884 path to pkg-config.
  8886 Alternatively, you may set the environment variables GTK_CFLAGS
  8887 and GTK_LIBS to avoid the need to call pkg-config.
  8888 See the pkg-config man page for more details.
  8890 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8891 See \`config.log' for more details." >&2;}
  8892    { (exit 1); exit 1; }; }
  8893 else
  8894 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  8895 	GTK_LIBS=$pkg_cv_GTK_LIBS
  8896         { echo "$as_me:$LINENO: result: yes" >&5
  8897 echo "${ECHO_T}yes" >&6; }
  8899        HAVE_GTK='yes'
  8901 cat >>confdefs.h <<\_ACEOF
  8902 #define HAVE_GTK 1
  8903 _ACEOF
  8906 fi
  8908       LIBS="$LIBS $GTK_LIBS"
  8909    { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
  8910 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
  8911 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
  8912   echo $ECHO_N "(cached) $ECHO_C" >&6
  8913 else
  8914   cat >conftest.$ac_ext <<_ACEOF
  8915 /* confdefs.h.  */
  8916 _ACEOF
  8917 cat confdefs.h >>conftest.$ac_ext
  8918 cat >>conftest.$ac_ext <<_ACEOF
  8919 /* end confdefs.h.  */
  8920 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
  8921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8922 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
  8924 /* System header to define __stub macros and hopefully few prototypes,
  8925     which can conflict with char gdk_x11_display_get_xdisplay (); below.
  8926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8927     <limits.h> exists even on freestanding compilers.  */
  8929 #ifdef __STDC__
  8930 # include <limits.h>
  8931 #else
  8932 # include <assert.h>
  8933 #endif
  8935 #undef gdk_x11_display_get_xdisplay
  8937 /* Override any GCC internal prototype to avoid an error.
  8938    Use char because int might match the return type of a GCC
  8939    builtin and then its argument prototype would still apply.  */
  8940 #ifdef __cplusplus
  8941 extern "C"
  8942 #endif
  8943 char gdk_x11_display_get_xdisplay ();
  8944 /* The GNU C library defines this for functions which it implements
  8945     to always fail with ENOSYS.  Some functions are actually named
  8946     something starting with __ and the normal name is an alias.  */
  8947 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
  8948 choke me
  8949 #endif
  8951 int
  8952 main ()
  8954 return gdk_x11_display_get_xdisplay ();
  8956   return 0;
  8958 _ACEOF
  8959 rm -f conftest.$ac_objext conftest$ac_exeext
  8960 if { (ac_try="$ac_link"
  8961 case "(($ac_try" in
  8962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8963   *) ac_try_echo=$ac_try;;
  8964 esac
  8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8966   (eval "$ac_link") 2>conftest.er1
  8967   ac_status=$?
  8968   grep -v '^ *+' conftest.er1 >conftest.err
  8969   rm -f conftest.er1
  8970   cat conftest.err >&5
  8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8972   (exit $ac_status); } && {
  8973 	 test -z "$ac_c_werror_flag" ||
  8974 	 test ! -s conftest.err
  8975        } && test -s conftest$ac_exeext &&
  8976        $as_test_x conftest$ac_exeext; then
  8977   ac_cv_func_gdk_x11_display_get_xdisplay=yes
  8978 else
  8979   echo "$as_me: failed program was:" >&5
  8980 sed 's/^/| /' conftest.$ac_ext >&5
  8982 	ac_cv_func_gdk_x11_display_get_xdisplay=no
  8983 fi
  8985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8986       conftest$ac_exeext conftest.$ac_ext
  8987 fi
  8988 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
  8989 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
  8990 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
  8992       HAVE_GTK_X11='yes'
  8994 cat >>confdefs.h <<\_ACEOF
  8995 #define HAVE_GTK_X11 1
  8996 _ACEOF
  8998 fi
  9000             GTK_LIBS="$GTK_LIBS -lX11"
  9001       LIBS="$LIBS -lX11"
  9002    { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
  9003 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
  9004 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
  9005   echo $ECHO_N "(cached) $ECHO_C" >&6
  9006 else
  9007   cat >conftest.$ac_ext <<_ACEOF
  9008 /* confdefs.h.  */
  9009 _ACEOF
  9010 cat confdefs.h >>conftest.$ac_ext
  9011 cat >>conftest.$ac_ext <<_ACEOF
  9012 /* end confdefs.h.  */
  9013 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
  9014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9015 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
  9017 /* System header to define __stub macros and hopefully few prototypes,
  9018     which can conflict with char gdk_quartz_window_get_nsview (); below.
  9019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9020     <limits.h> exists even on freestanding compilers.  */
  9022 #ifdef __STDC__
  9023 # include <limits.h>
  9024 #else
  9025 # include <assert.h>
  9026 #endif
  9028 #undef gdk_quartz_window_get_nsview
  9030 /* Override any GCC internal prototype to avoid an error.
  9031    Use char because int might match the return type of a GCC
  9032    builtin and then its argument prototype would still apply.  */
  9033 #ifdef __cplusplus
  9034 extern "C"
  9035 #endif
  9036 char gdk_quartz_window_get_nsview ();
  9037 /* The GNU C library defines this for functions which it implements
  9038     to always fail with ENOSYS.  Some functions are actually named
  9039     something starting with __ and the normal name is an alias.  */
  9040 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
  9041 choke me
  9042 #endif
  9044 int
  9045 main ()
  9047 return gdk_quartz_window_get_nsview ();
  9049   return 0;
  9051 _ACEOF
  9052 rm -f conftest.$ac_objext conftest$ac_exeext
  9053 if { (ac_try="$ac_link"
  9054 case "(($ac_try" in
  9055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9056   *) ac_try_echo=$ac_try;;
  9057 esac
  9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9059   (eval "$ac_link") 2>conftest.er1
  9060   ac_status=$?
  9061   grep -v '^ *+' conftest.er1 >conftest.err
  9062   rm -f conftest.er1
  9063   cat conftest.err >&5
  9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9065   (exit $ac_status); } && {
  9066 	 test -z "$ac_c_werror_flag" ||
  9067 	 test ! -s conftest.err
  9068        } && test -s conftest$ac_exeext &&
  9069        $as_test_x conftest$ac_exeext; then
  9070   ac_cv_func_gdk_quartz_window_get_nsview=yes
  9071 else
  9072   echo "$as_me: failed program was:" >&5
  9073 sed 's/^/| /' conftest.$ac_ext >&5
  9075 	ac_cv_func_gdk_quartz_window_get_nsview=no
  9076 fi
  9078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9079       conftest$ac_exeext conftest.$ac_ext
  9080 fi
  9081 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
  9082 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
  9083 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
  9085       HAVE_GTK_OSX='yes'
  9087 cat >>confdefs.h <<\_ACEOF
  9088 #define HAVE_GTK_OSX 1
  9089 _ACEOF
  9091 fi
  9093    if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
  9094       { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
  9095 See \`config.log' for more details." >&5
  9096 echo "$as_me: error: Unable to identify GTK platform
  9097 See \`config.log' for more details." >&2;}
  9098    { (exit 1); exit 1; }; }
  9099    fi
  9100 fi
  9104 if test "$HAVE_GTK" = 'yes'; then
  9105   GUI_GTK_TRUE=
  9106   GUI_GTK_FALSE='#'
  9107 else
  9108   GUI_GTK_TRUE='#'
  9109   GUI_GTK_FALSE=
  9110 fi
  9114 pkg_failed=no
  9115 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
  9116 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
  9118 if test -n "$LIBISOFS_CFLAGS"; then
  9119     pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
  9120  elif test -n "$PKG_CONFIG"; then
  9121     if test -n "$PKG_CONFIG" && \
  9122     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
  9123   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
  9124   ac_status=$?
  9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9126   (exit $ac_status); }; then
  9127   pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
  9128 else
  9129   pkg_failed=yes
  9130 fi
  9131  else
  9132     pkg_failed=untried
  9133 fi
  9134 if test -n "$LIBISOFS_LIBS"; then
  9135     pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
  9136  elif test -n "$PKG_CONFIG"; then
  9137     if test -n "$PKG_CONFIG" && \
  9138     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
  9139   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
  9140   ac_status=$?
  9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9142   (exit $ac_status); }; then
  9143   pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
  9144 else
  9145   pkg_failed=yes
  9146 fi
  9147  else
  9148     pkg_failed=untried
  9149 fi
  9153 if test $pkg_failed = yes; then
  9155 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9156         _pkg_short_errors_supported=yes
  9157 else
  9158         _pkg_short_errors_supported=no
  9159 fi
  9160         if test $_pkg_short_errors_supported = yes; then
  9161 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
  9162         else
  9163 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
  9164         fi
  9165 	# Put the nasty error message in config.log where it belongs
  9166 	echo "$LIBISOFS_PKG_ERRORS" >&5
  9168 	{ { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
  9170 $LIBISOFS_PKG_ERRORS
  9172 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9173 installed software in a non-standard prefix.
  9175 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
  9176 and LIBISOFS_LIBS to avoid the need to call pkg-config.
  9177 See the pkg-config man page for more details.
  9178 " >&5
  9179 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
  9181 $LIBISOFS_PKG_ERRORS
  9183 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9184 installed software in a non-standard prefix.
  9186 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
  9187 and LIBISOFS_LIBS to avoid the need to call pkg-config.
  9188 See the pkg-config man page for more details.
  9189 " >&2;}
  9190    { (exit 1); exit 1; }; }
  9191 elif test $pkg_failed = untried; then
  9192 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  9193 is in your PATH or set the PKG_CONFIG environment variable to the full
  9194 path to pkg-config.
  9196 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
  9197 and LIBISOFS_LIBS to avoid the need to call pkg-config.
  9198 See the pkg-config man page for more details.
  9200 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9201 See \`config.log' for more details." >&5
  9202 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  9203 is in your PATH or set the PKG_CONFIG environment variable to the full
  9204 path to pkg-config.
  9206 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
  9207 and LIBISOFS_LIBS to avoid the need to call pkg-config.
  9208 See the pkg-config man page for more details.
  9210 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9211 See \`config.log' for more details." >&2;}
  9212    { (exit 1); exit 1; }; }
  9213 else
  9214 	LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
  9215 	LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
  9216         { echo "$as_me:$LINENO: result: yes" >&5
  9217 echo "${ECHO_T}yes" >&6; }
  9219 fi
  9221 if test "x$with_osmesa" != xno; then
  9225 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  9226 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
  9227 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  9228   echo $ECHO_N "(cached) $ECHO_C" >&6
  9229 else
  9230   ac_check_lib_save_LIBS=$LIBS
  9231 LIBS="-lOSMesa  $LIBS"
  9232 cat >conftest.$ac_ext <<_ACEOF
  9233 /* confdefs.h.  */
  9234 _ACEOF
  9235 cat confdefs.h >>conftest.$ac_ext
  9236 cat >>conftest.$ac_ext <<_ACEOF
  9237 /* end confdefs.h.  */
  9239 /* Override any GCC internal prototype to avoid an error.
  9240    Use char because int might match the return type of a GCC
  9241    builtin and then its argument prototype would still apply.  */
  9242 #ifdef __cplusplus
  9243 extern "C"
  9244 #endif
  9245 char OSMesaCreateContext ();
  9246 int
  9247 main ()
  9249 return OSMesaCreateContext ();
  9251   return 0;
  9253 _ACEOF
  9254 rm -f conftest.$ac_objext conftest$ac_exeext
  9255 if { (ac_try="$ac_link"
  9256 case "(($ac_try" in
  9257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9258   *) ac_try_echo=$ac_try;;
  9259 esac
  9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9261   (eval "$ac_link") 2>conftest.er1
  9262   ac_status=$?
  9263   grep -v '^ *+' conftest.er1 >conftest.err
  9264   rm -f conftest.er1
  9265   cat conftest.err >&5
  9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9267   (exit $ac_status); } && {
  9268 	 test -z "$ac_c_werror_flag" ||
  9269 	 test ! -s conftest.err
  9270        } && test -s conftest$ac_exeext &&
  9271        $as_test_x conftest$ac_exeext; then
  9272   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  9273 else
  9274   echo "$as_me: failed program was:" >&5
  9275 sed 's/^/| /' conftest.$ac_ext >&5
  9277 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  9278 fi
  9280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9281       conftest$ac_exeext conftest.$ac_ext
  9282 LIBS=$ac_check_lib_save_LIBS
  9283 fi
  9284 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  9285 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  9286 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
  9287   cat >>confdefs.h <<_ACEOF
  9288 #define HAVE_LIBOSMESA 1
  9289 _ACEOF
  9291   LIBS="-lOSMesa $LIBS"
  9293 else
  9294   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  9295 See \`config.log' for more details." >&5
  9296 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  9297 See \`config.log' for more details." >&2;}
  9298    { (exit 1); exit 1; }; }
  9299 fi
  9301   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  9302   { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  9303 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
  9304 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  9305   echo $ECHO_N "(cached) $ECHO_C" >&6
  9306 fi
  9307 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  9308 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
  9309 else
  9310   # Is the header compilable?
  9311 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  9312 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
  9313 cat >conftest.$ac_ext <<_ACEOF
  9314 /* confdefs.h.  */
  9315 _ACEOF
  9316 cat confdefs.h >>conftest.$ac_ext
  9317 cat >>conftest.$ac_ext <<_ACEOF
  9318 /* end confdefs.h.  */
  9319 $ac_includes_default
  9320 #include <GL/osmesa.h>
  9321 _ACEOF
  9322 rm -f conftest.$ac_objext
  9323 if { (ac_try="$ac_compile"
  9324 case "(($ac_try" in
  9325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9326   *) ac_try_echo=$ac_try;;
  9327 esac
  9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9329   (eval "$ac_compile") 2>conftest.er1
  9330   ac_status=$?
  9331   grep -v '^ *+' conftest.er1 >conftest.err
  9332   rm -f conftest.er1
  9333   cat conftest.err >&5
  9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9335   (exit $ac_status); } && {
  9336 	 test -z "$ac_c_werror_flag" ||
  9337 	 test ! -s conftest.err
  9338        } && test -s conftest.$ac_objext; then
  9339   ac_header_compiler=yes
  9340 else
  9341   echo "$as_me: failed program was:" >&5
  9342 sed 's/^/| /' conftest.$ac_ext >&5
  9344 	ac_header_compiler=no
  9345 fi
  9347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9349 echo "${ECHO_T}$ac_header_compiler" >&6; }
  9351 # Is the header present?
  9352 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  9353 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
  9354 cat >conftest.$ac_ext <<_ACEOF
  9355 /* confdefs.h.  */
  9356 _ACEOF
  9357 cat confdefs.h >>conftest.$ac_ext
  9358 cat >>conftest.$ac_ext <<_ACEOF
  9359 /* end confdefs.h.  */
  9360 #include <GL/osmesa.h>
  9361 _ACEOF
  9362 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9363 case "(($ac_try" in
  9364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9365   *) ac_try_echo=$ac_try;;
  9366 esac
  9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9369   ac_status=$?
  9370   grep -v '^ *+' conftest.er1 >conftest.err
  9371   rm -f conftest.er1
  9372   cat conftest.err >&5
  9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9374   (exit $ac_status); } >/dev/null && {
  9375 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9376 	 test ! -s conftest.err
  9377        }; then
  9378   ac_header_preproc=yes
  9379 else
  9380   echo "$as_me: failed program was:" >&5
  9381 sed 's/^/| /' conftest.$ac_ext >&5
  9383   ac_header_preproc=no
  9384 fi
  9386 rm -f conftest.err conftest.$ac_ext
  9387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9388 echo "${ECHO_T}$ac_header_preproc" >&6; }
  9390 # So?  What about this header?
  9391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9392   yes:no: )
  9393     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9394 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9395     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  9396 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  9397     ac_header_preproc=yes
  9398     ;;
  9399   no:yes:* )
  9400     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  9401 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  9402     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  9403 echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  9404     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  9405 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  9406     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  9407 echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9408     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  9409 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  9410     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  9411 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  9413     ;;
  9414 esac
  9415 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  9416 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
  9417 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  9418   echo $ECHO_N "(cached) $ECHO_C" >&6
  9419 else
  9420   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  9421 fi
  9422 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  9423 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
  9425 fi
  9426 if test $ac_cv_header_GL_osmesa_h = yes; then
  9428 else
  9429   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  9430 See \`config.log' for more details." >&5
  9431 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  9432 See \`config.log' for more details." >&2;}
  9433    { (exit 1); exit 1; }; }
  9434 fi
  9437   HAVE_OSMESA='yes'
  9438   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
  9440 cat >>confdefs.h <<\_ACEOF
  9441 #define HAVE_OSMESA 1
  9442 _ACEOF
  9444 else
  9447    if test "x$APPLE_BUILD" != 'xyes'; then
  9449 pkg_failed=no
  9450 { echo "$as_me:$LINENO: checking for LIBGL" >&5
  9451 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
  9453 if test -n "$LIBGL_CFLAGS"; then
  9454     pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
  9455  elif test -n "$PKG_CONFIG"; then
  9456     if test -n "$PKG_CONFIG" && \
  9457     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
  9458   ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
  9459   ac_status=$?
  9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9461   (exit $ac_status); }; then
  9462   pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
  9463 else
  9464   pkg_failed=yes
  9465 fi
  9466  else
  9467     pkg_failed=untried
  9468 fi
  9469 if test -n "$LIBGL_LIBS"; then
  9470     pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
  9471  elif test -n "$PKG_CONFIG"; then
  9472     if test -n "$PKG_CONFIG" && \
  9473     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
  9474   ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
  9475   ac_status=$?
  9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9477   (exit $ac_status); }; then
  9478   pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
  9479 else
  9480   pkg_failed=yes
  9481 fi
  9482  else
  9483     pkg_failed=untried
  9484 fi
  9488 if test $pkg_failed = yes; then
  9490 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9491         _pkg_short_errors_supported=yes
  9492 else
  9493         _pkg_short_errors_supported=no
  9494 fi
  9495         if test $_pkg_short_errors_supported = yes; then
  9496 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
  9497         else
  9498 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
  9499         fi
  9500 	# Put the nasty error message in config.log where it belongs
  9501 	echo "$LIBGL_PKG_ERRORS" >&5
  9503 	{ { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
  9505 $LIBGL_PKG_ERRORS
  9507 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9508 installed software in a non-standard prefix.
  9510 Alternatively, you may set the environment variables LIBGL_CFLAGS
  9511 and LIBGL_LIBS to avoid the need to call pkg-config.
  9512 See the pkg-config man page for more details.
  9513 " >&5
  9514 echo "$as_me: error: Package requirements (gl ) were not met:
  9516 $LIBGL_PKG_ERRORS
  9518 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9519 installed software in a non-standard prefix.
  9521 Alternatively, you may set the environment variables LIBGL_CFLAGS
  9522 and LIBGL_LIBS to avoid the need to call pkg-config.
  9523 See the pkg-config man page for more details.
  9524 " >&2;}
  9525    { (exit 1); exit 1; }; }
  9526 elif test $pkg_failed = untried; then
  9527 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  9528 is in your PATH or set the PKG_CONFIG environment variable to the full
  9529 path to pkg-config.
  9531 Alternatively, you may set the environment variables LIBGL_CFLAGS
  9532 and LIBGL_LIBS to avoid the need to call pkg-config.
  9533 See the pkg-config man page for more details.
  9535 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9536 See \`config.log' for more details." >&5
  9537 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  9538 is in your PATH or set the PKG_CONFIG environment variable to the full
  9539 path to pkg-config.
  9541 Alternatively, you may set the environment variables LIBGL_CFLAGS
  9542 and LIBGL_LIBS to avoid the need to call pkg-config.
  9543 See the pkg-config man page for more details.
  9545 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9546 See \`config.log' for more details." >&2;}
  9547    { (exit 1); exit 1; }; }
  9548 else
  9549 	LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
  9550 	LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
  9551         { echo "$as_me:$LINENO: result: yes" >&5
  9552 echo "${ECHO_T}yes" >&6; }
  9554 fi
  9555                                       LIBS="$LIBS $LIBGL_LIBS";
  9556       CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
  9557    else
  9558       { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
  9559 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
  9560 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
  9561   echo $ECHO_N "(cached) $ECHO_C" >&6
  9562 else
  9563   cat >conftest.$ac_ext <<_ACEOF
  9564 /* confdefs.h.  */
  9565 _ACEOF
  9566 cat confdefs.h >>conftest.$ac_ext
  9567 cat >>conftest.$ac_ext <<_ACEOF
  9568 /* end confdefs.h.  */
  9569 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
  9570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9571 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
  9573 /* System header to define __stub macros and hopefully few prototypes,
  9574     which can conflict with char NSOpenGLGetVersion (); below.
  9575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9576     <limits.h> exists even on freestanding compilers.  */
  9578 #ifdef __STDC__
  9579 # include <limits.h>
  9580 #else
  9581 # include <assert.h>
  9582 #endif
  9584 #undef NSOpenGLGetVersion
  9586 /* Override any GCC internal prototype to avoid an error.
  9587    Use char because int might match the return type of a GCC
  9588    builtin and then its argument prototype would still apply.  */
  9589 #ifdef __cplusplus
  9590 extern "C"
  9591 #endif
  9592 char NSOpenGLGetVersion ();
  9593 /* The GNU C library defines this for functions which it implements
  9594     to always fail with ENOSYS.  Some functions are actually named
  9595     something starting with __ and the normal name is an alias.  */
  9596 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
  9597 choke me
  9598 #endif
  9600 int
  9601 main ()
  9603 return NSOpenGLGetVersion ();
  9605   return 0;
  9607 _ACEOF
  9608 rm -f conftest.$ac_objext conftest$ac_exeext
  9609 if { (ac_try="$ac_link"
  9610 case "(($ac_try" in
  9611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9612   *) ac_try_echo=$ac_try;;
  9613 esac
  9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9615   (eval "$ac_link") 2>conftest.er1
  9616   ac_status=$?
  9617   grep -v '^ *+' conftest.er1 >conftest.err
  9618   rm -f conftest.er1
  9619   cat conftest.err >&5
  9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9621   (exit $ac_status); } && {
  9622 	 test -z "$ac_c_werror_flag" ||
  9623 	 test ! -s conftest.err
  9624        } && test -s conftest$ac_exeext &&
  9625        $as_test_x conftest$ac_exeext; then
  9626   ac_cv_func_NSOpenGLGetVersion=yes
  9627 else
  9628   echo "$as_me: failed program was:" >&5
  9629 sed 's/^/| /' conftest.$ac_ext >&5
  9631 	ac_cv_func_NSOpenGLGetVersion=no
  9632 fi
  9634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9635       conftest$ac_exeext conftest.$ac_ext
  9636 fi
  9637 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
  9638 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
  9639 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
  9641          HAVE_NSGL='yes'
  9642          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
  9644 cat >>confdefs.h <<\_ACEOF
  9645 #define HAVE_NSGL 1
  9646 _ACEOF
  9648 fi
  9650    fi
  9652    if test "x$HAVE_GTK_X11" = "xyes"; then
  9653       if test "x$APPLE_BUILD" = "xyes"; then
  9654          LIBS="$LIBS -L/usr/X11/lib -lGL"
  9655       fi
  9656       { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
  9657 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
  9658 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
  9659   echo $ECHO_N "(cached) $ECHO_C" >&6
  9660 else
  9661   cat >conftest.$ac_ext <<_ACEOF
  9662 /* confdefs.h.  */
  9663 _ACEOF
  9664 cat confdefs.h >>conftest.$ac_ext
  9665 cat >>conftest.$ac_ext <<_ACEOF
  9666 /* end confdefs.h.  */
  9667 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
  9668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9669 #define glXQueryVersion innocuous_glXQueryVersion
  9671 /* System header to define __stub macros and hopefully few prototypes,
  9672     which can conflict with char glXQueryVersion (); below.
  9673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9674     <limits.h> exists even on freestanding compilers.  */
  9676 #ifdef __STDC__
  9677 # include <limits.h>
  9678 #else
  9679 # include <assert.h>
  9680 #endif
  9682 #undef glXQueryVersion
  9684 /* Override any GCC internal prototype to avoid an error.
  9685    Use char because int might match the return type of a GCC
  9686    builtin and then its argument prototype would still apply.  */
  9687 #ifdef __cplusplus
  9688 extern "C"
  9689 #endif
  9690 char glXQueryVersion ();
  9691 /* The GNU C library defines this for functions which it implements
  9692     to always fail with ENOSYS.  Some functions are actually named
  9693     something starting with __ and the normal name is an alias.  */
  9694 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
  9695 choke me
  9696 #endif
  9698 int
  9699 main ()
  9701 return glXQueryVersion ();
  9703   return 0;
  9705 _ACEOF
  9706 rm -f conftest.$ac_objext conftest$ac_exeext
  9707 if { (ac_try="$ac_link"
  9708 case "(($ac_try" in
  9709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9710   *) ac_try_echo=$ac_try;;
  9711 esac
  9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9713   (eval "$ac_link") 2>conftest.er1
  9714   ac_status=$?
  9715   grep -v '^ *+' conftest.er1 >conftest.err
  9716   rm -f conftest.er1
  9717   cat conftest.err >&5
  9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9719   (exit $ac_status); } && {
  9720 	 test -z "$ac_c_werror_flag" ||
  9721 	 test ! -s conftest.err
  9722        } && test -s conftest$ac_exeext &&
  9723        $as_test_x conftest$ac_exeext; then
  9724   ac_cv_func_glXQueryVersion=yes
  9725 else
  9726   echo "$as_me: failed program was:" >&5
  9727 sed 's/^/| /' conftest.$ac_ext >&5
  9729 	ac_cv_func_glXQueryVersion=no
  9730 fi
  9732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9733       conftest$ac_exeext conftest.$ac_ext
  9734 fi
  9735 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
  9736 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
  9737 if test $ac_cv_func_glXQueryVersion = yes; then
  9739          HAVE_GLX='yes'
  9740          VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
  9742 cat >>confdefs.h <<\_ACEOF
  9743 #define HAVE_GLX 1
  9744 _ACEOF
  9746 fi
  9748    fi
  9751 fi
  9758 if test "x$HAVE_OSMESA" = "xyes"; then
  9759   VIDEO_OSMESA_TRUE=
  9760   VIDEO_OSMESA_FALSE='#'
  9761 else
  9762   VIDEO_OSMESA_TRUE='#'
  9763   VIDEO_OSMESA_FALSE=
  9764 fi
  9768 if test "x$HAVE_GLX" = "xyes"; then
  9769   VIDEO_GLX_TRUE=
  9770   VIDEO_GLX_FALSE='#'
  9771 else
  9772   VIDEO_GLX_TRUE='#'
  9773   VIDEO_GLX_FALSE=
  9774 fi
  9778 if test "x$HAVE_NSGL" = "xyes"; then
  9779   VIDEO_NSGL_TRUE=
  9780   VIDEO_NSGL_FALSE='#'
  9781 else
  9782   VIDEO_NSGL_TRUE='#'
  9783   VIDEO_NSGL_FALSE=
  9784 fi
  9787 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
  9788 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
  9789 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
  9790   echo $ECHO_N "(cached) $ECHO_C" >&6
  9791 else
  9792   cat >conftest.$ac_ext <<_ACEOF
  9793 /* confdefs.h.  */
  9794 _ACEOF
  9795 cat confdefs.h >>conftest.$ac_ext
  9796 cat >>conftest.$ac_ext <<_ACEOF
  9797 /* end confdefs.h.  */
  9798 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
  9799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9800 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
  9802 /* System header to define __stub macros and hopefully few prototypes,
  9803     which can conflict with char glGenFramebuffersEXT (); below.
  9804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9805     <limits.h> exists even on freestanding compilers.  */
  9807 #ifdef __STDC__
  9808 # include <limits.h>
  9809 #else
  9810 # include <assert.h>
  9811 #endif
  9813 #undef glGenFramebuffersEXT
  9815 /* Override any GCC internal prototype to avoid an error.
  9816    Use char because int might match the return type of a GCC
  9817    builtin and then its argument prototype would still apply.  */
  9818 #ifdef __cplusplus
  9819 extern "C"
  9820 #endif
  9821 char glGenFramebuffersEXT ();
  9822 /* The GNU C library defines this for functions which it implements
  9823     to always fail with ENOSYS.  Some functions are actually named
  9824     something starting with __ and the normal name is an alias.  */
  9825 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
  9826 choke me
  9827 #endif
  9829 int
  9830 main ()
  9832 return glGenFramebuffersEXT ();
  9834   return 0;
  9836 _ACEOF
  9837 rm -f conftest.$ac_objext conftest$ac_exeext
  9838 if { (ac_try="$ac_link"
  9839 case "(($ac_try" in
  9840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9841   *) ac_try_echo=$ac_try;;
  9842 esac
  9843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9844   (eval "$ac_link") 2>conftest.er1
  9845   ac_status=$?
  9846   grep -v '^ *+' conftest.er1 >conftest.err
  9847   rm -f conftest.er1
  9848   cat conftest.err >&5
  9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9850   (exit $ac_status); } && {
  9851 	 test -z "$ac_c_werror_flag" ||
  9852 	 test ! -s conftest.err
  9853        } && test -s conftest$ac_exeext &&
  9854        $as_test_x conftest$ac_exeext; then
  9855   ac_cv_func_glGenFramebuffersEXT=yes
  9856 else
  9857   echo "$as_me: failed program was:" >&5
  9858 sed 's/^/| /' conftest.$ac_ext >&5
  9860 	ac_cv_func_glGenFramebuffersEXT=no
  9861 fi
  9863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9864       conftest$ac_exeext conftest.$ac_ext
  9865 fi
  9866 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
  9867 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
  9868 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
  9870 cat >>confdefs.h <<\_ACEOF
  9871 #define HAVE_OPENGL_FBO 1
  9872 _ACEOF
  9874 fi
  9876 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
  9877 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
  9878 if test "${ac_cv_func_glCreateShader+set}" = set; then
  9879   echo $ECHO_N "(cached) $ECHO_C" >&6
  9880 else
  9881   cat >conftest.$ac_ext <<_ACEOF
  9882 /* confdefs.h.  */
  9883 _ACEOF
  9884 cat confdefs.h >>conftest.$ac_ext
  9885 cat >>conftest.$ac_ext <<_ACEOF
  9886 /* end confdefs.h.  */
  9887 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
  9888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9889 #define glCreateShader innocuous_glCreateShader
  9891 /* System header to define __stub macros and hopefully few prototypes,
  9892     which can conflict with char glCreateShader (); below.
  9893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9894     <limits.h> exists even on freestanding compilers.  */
  9896 #ifdef __STDC__
  9897 # include <limits.h>
  9898 #else
  9899 # include <assert.h>
  9900 #endif
  9902 #undef glCreateShader
  9904 /* Override any GCC internal prototype to avoid an error.
  9905    Use char because int might match the return type of a GCC
  9906    builtin and then its argument prototype would still apply.  */
  9907 #ifdef __cplusplus
  9908 extern "C"
  9909 #endif
  9910 char glCreateShader ();
  9911 /* The GNU C library defines this for functions which it implements
  9912     to always fail with ENOSYS.  Some functions are actually named
  9913     something starting with __ and the normal name is an alias.  */
  9914 #if defined __stub_glCreateShader || defined __stub___glCreateShader
  9915 choke me
  9916 #endif
  9918 int
  9919 main ()
  9921 return glCreateShader ();
  9923   return 0;
  9925 _ACEOF
  9926 rm -f conftest.$ac_objext conftest$ac_exeext
  9927 if { (ac_try="$ac_link"
  9928 case "(($ac_try" in
  9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9930   *) ac_try_echo=$ac_try;;
  9931 esac
  9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9933   (eval "$ac_link") 2>conftest.er1
  9934   ac_status=$?
  9935   grep -v '^ *+' conftest.er1 >conftest.err
  9936   rm -f conftest.er1
  9937   cat conftest.err >&5
  9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9939   (exit $ac_status); } && {
  9940 	 test -z "$ac_c_werror_flag" ||
  9941 	 test ! -s conftest.err
  9942        } && test -s conftest$ac_exeext &&
  9943        $as_test_x conftest$ac_exeext; then
  9944   ac_cv_func_glCreateShader=yes
  9945 else
  9946   echo "$as_me: failed program was:" >&5
  9947 sed 's/^/| /' conftest.$ac_ext >&5
  9949 	ac_cv_func_glCreateShader=no
  9950 fi
  9952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9953       conftest$ac_exeext conftest.$ac_ext
  9954 fi
  9955 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
  9956 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
  9957 if test $ac_cv_func_glCreateShader = yes; then
  9959 cat >>confdefs.h <<\_ACEOF
  9960 #define HAVE_OPENGL_SHADER 1
  9961 _ACEOF
  9963 fi
  9965 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
  9966 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
  9967 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
  9968   echo $ECHO_N "(cached) $ECHO_C" >&6
  9969 else
  9970   cat >conftest.$ac_ext <<_ACEOF
  9971 /* confdefs.h.  */
  9972 _ACEOF
  9973 cat confdefs.h >>conftest.$ac_ext
  9974 cat >>conftest.$ac_ext <<_ACEOF
  9975 /* end confdefs.h.  */
  9976 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
  9977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9978 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
  9980 /* System header to define __stub macros and hopefully few prototypes,
  9981     which can conflict with char glCreateShaderObjectARB (); below.
  9982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9983     <limits.h> exists even on freestanding compilers.  */
  9985 #ifdef __STDC__
  9986 # include <limits.h>
  9987 #else
  9988 # include <assert.h>
  9989 #endif
  9991 #undef glCreateShaderObjectARB
  9993 /* Override any GCC internal prototype to avoid an error.
  9994    Use char because int might match the return type of a GCC
  9995    builtin and then its argument prototype would still apply.  */
  9996 #ifdef __cplusplus
  9997 extern "C"
  9998 #endif
  9999 char glCreateShaderObjectARB ();
 10000 /* The GNU C library defines this for functions which it implements
 10001     to always fail with ENOSYS.  Some functions are actually named
 10002     something starting with __ and the normal name is an alias.  */
 10003 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
 10004 choke me
 10005 #endif
 10007 int
 10008 main ()
 10010 return glCreateShaderObjectARB ();
 10012   return 0;
 10014 _ACEOF
 10015 rm -f conftest.$ac_objext conftest$ac_exeext
 10016 if { (ac_try="$ac_link"
 10017 case "(($ac_try" in
 10018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10019   *) ac_try_echo=$ac_try;;
 10020 esac
 10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10022   (eval "$ac_link") 2>conftest.er1
 10023   ac_status=$?
 10024   grep -v '^ *+' conftest.er1 >conftest.err
 10025   rm -f conftest.er1
 10026   cat conftest.err >&5
 10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10028   (exit $ac_status); } && {
 10029 	 test -z "$ac_c_werror_flag" ||
 10030 	 test ! -s conftest.err
 10031        } && test -s conftest$ac_exeext &&
 10032        $as_test_x conftest$ac_exeext; then
 10033   ac_cv_func_glCreateShaderObjectARB=yes
 10034 else
 10035   echo "$as_me: failed program was:" >&5
 10036 sed 's/^/| /' conftest.$ac_ext >&5
 10038 	ac_cv_func_glCreateShaderObjectARB=no
 10039 fi
 10041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10042       conftest$ac_exeext conftest.$ac_ext
 10043 fi
 10044 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
 10045 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
 10046 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
 10048 cat >>confdefs.h <<\_ACEOF
 10049 #define HAVE_OPENGL_SHADER_ARB 1
 10050 _ACEOF
 10052 fi
 10054 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
 10055 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
 10056 if test "${ac_cv_func_glClampColorARB+set}" = set; then
 10057   echo $ECHO_N "(cached) $ECHO_C" >&6
 10058 else
 10059   cat >conftest.$ac_ext <<_ACEOF
 10060 /* confdefs.h.  */
 10061 _ACEOF
 10062 cat confdefs.h >>conftest.$ac_ext
 10063 cat >>conftest.$ac_ext <<_ACEOF
 10064 /* end confdefs.h.  */
 10065 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
 10066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10067 #define glClampColorARB innocuous_glClampColorARB
 10069 /* System header to define __stub macros and hopefully few prototypes,
 10070     which can conflict with char glClampColorARB (); below.
 10071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10072     <limits.h> exists even on freestanding compilers.  */
 10074 #ifdef __STDC__
 10075 # include <limits.h>
 10076 #else
 10077 # include <assert.h>
 10078 #endif
 10080 #undef glClampColorARB
 10082 /* Override any GCC internal prototype to avoid an error.
 10083    Use char because int might match the return type of a GCC
 10084    builtin and then its argument prototype would still apply.  */
 10085 #ifdef __cplusplus
 10086 extern "C"
 10087 #endif
 10088 char glClampColorARB ();
 10089 /* The GNU C library defines this for functions which it implements
 10090     to always fail with ENOSYS.  Some functions are actually named
 10091     something starting with __ and the normal name is an alias.  */
 10092 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
 10093 choke me
 10094 #endif
 10096 int
 10097 main ()
 10099 return glClampColorARB ();
 10101   return 0;
 10103 _ACEOF
 10104 rm -f conftest.$ac_objext conftest$ac_exeext
 10105 if { (ac_try="$ac_link"
 10106 case "(($ac_try" in
 10107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10108   *) ac_try_echo=$ac_try;;
 10109 esac
 10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10111   (eval "$ac_link") 2>conftest.er1
 10112   ac_status=$?
 10113   grep -v '^ *+' conftest.er1 >conftest.err
 10114   rm -f conftest.er1
 10115   cat conftest.err >&5
 10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10117   (exit $ac_status); } && {
 10118 	 test -z "$ac_c_werror_flag" ||
 10119 	 test ! -s conftest.err
 10120        } && test -s conftest$ac_exeext &&
 10121        $as_test_x conftest$ac_exeext; then
 10122   ac_cv_func_glClampColorARB=yes
 10123 else
 10124   echo "$as_me: failed program was:" >&5
 10125 sed 's/^/| /' conftest.$ac_ext >&5
 10127 	ac_cv_func_glClampColorARB=no
 10128 fi
 10130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10131       conftest$ac_exeext conftest.$ac_ext
 10132 fi
 10133 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
 10134 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
 10135 if test $ac_cv_func_glClampColorARB = yes; then
 10137 cat >>confdefs.h <<\_ACEOF
 10138 #define HAVE_OPENGL_CLAMP_COLOR 1
 10139 _ACEOF
 10141 fi
 10146 if test "x$enable_translator" != "xno"; then
 10147     case $host_cpu in
 10148         i386|i486|i586|i686|x86_64)
 10149 	    SH4_TRANSLATOR="x86"
 10151 cat >>confdefs.h <<_ACEOF
 10152 #define SH4_TRANSLATOR TARGET_X86
 10153 _ACEOF
 10154 ;;
 10155     esac
 10156 fi
 10159 if test "$SH4_TRANSLATOR" = "x86"; then
 10160   BUILD_SH4X86_TRUE=
 10161   BUILD_SH4X86_FALSE='#'
 10162 else
 10163   BUILD_SH4X86_TRUE='#'
 10164   BUILD_SH4X86_FALSE=
 10165 fi
 10168 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 10169   { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 10170 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 10171 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 10172   echo $ECHO_N "(cached) $ECHO_C" >&6
 10173 fi
 10174 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 10175 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 10176 else
 10177   # Is the header compilable?
 10178 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 10179 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
 10180 cat >conftest.$ac_ext <<_ACEOF
 10181 /* confdefs.h.  */
 10182 _ACEOF
 10183 cat confdefs.h >>conftest.$ac_ext
 10184 cat >>conftest.$ac_ext <<_ACEOF
 10185 /* end confdefs.h.  */
 10186 $ac_includes_default
 10187 #include <CoreAudio/CoreAudio.h>
 10188 _ACEOF
 10189 rm -f conftest.$ac_objext
 10190 if { (ac_try="$ac_compile"
 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_compile") 2>conftest.er1
 10197   ac_status=$?
 10198   grep -v '^ *+' conftest.er1 >conftest.err
 10199   rm -f conftest.er1
 10200   cat conftest.err >&5
 10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10202   (exit $ac_status); } && {
 10203 	 test -z "$ac_c_werror_flag" ||
 10204 	 test ! -s conftest.err
 10205        } && test -s conftest.$ac_objext; then
 10206   ac_header_compiler=yes
 10207 else
 10208   echo "$as_me: failed program was:" >&5
 10209 sed 's/^/| /' conftest.$ac_ext >&5
 10211 	ac_header_compiler=no
 10212 fi
 10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10216 echo "${ECHO_T}$ac_header_compiler" >&6; }
 10218 # Is the header present?
 10219 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 10220 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
 10221 cat >conftest.$ac_ext <<_ACEOF
 10222 /* confdefs.h.  */
 10223 _ACEOF
 10224 cat confdefs.h >>conftest.$ac_ext
 10225 cat >>conftest.$ac_ext <<_ACEOF
 10226 /* end confdefs.h.  */
 10227 #include <CoreAudio/CoreAudio.h>
 10228 _ACEOF
 10229 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10230 case "(($ac_try" in
 10231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10232   *) ac_try_echo=$ac_try;;
 10233 esac
 10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10236   ac_status=$?
 10237   grep -v '^ *+' conftest.er1 >conftest.err
 10238   rm -f conftest.er1
 10239   cat conftest.err >&5
 10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10241   (exit $ac_status); } >/dev/null && {
 10242 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10243 	 test ! -s conftest.err
 10244        }; then
 10245   ac_header_preproc=yes
 10246 else
 10247   echo "$as_me: failed program was:" >&5
 10248 sed 's/^/| /' conftest.$ac_ext >&5
 10250   ac_header_preproc=no
 10251 fi
 10253 rm -f conftest.err conftest.$ac_ext
 10254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10255 echo "${ECHO_T}$ac_header_preproc" >&6; }
 10257 # So?  What about this header?
 10258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10259   yes:no: )
 10260     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 10261 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10262     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 10263 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 10264     ac_header_preproc=yes
 10265     ;;
 10266   no:yes:* )
 10267     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 10268 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 10269     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 10270 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 10271     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 10272 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 10273     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 10274 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 10275     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 10276 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 10277     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 10278 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 10280     ;;
 10281 esac
 10282 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 10283 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 10284 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 10285   echo $ECHO_N "(cached) $ECHO_C" >&6
 10286 else
 10287   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 10288 fi
 10289 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 10290 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 10292 fi
 10293 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
 10295      HAVE_CORE_AUDIO=yes
 10296      LIBS="$LIBS -framework CoreAudio"
 10297      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
 10299 cat >>confdefs.h <<\_ACEOF
 10300 #define HAVE_CORE_AUDIO 1
 10301 _ACEOF
 10303 else
 10304   true
 10305 fi
 10310 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
 10311   AUDIO_OSX_TRUE=
 10312   AUDIO_OSX_FALSE='#'
 10313 else
 10314   AUDIO_OSX_TRUE='#'
 10315   AUDIO_OSX_FALSE=
 10316 fi
 10319 if test "x$with_sdl" != "xno"; then
 10321 pkg_failed=no
 10322 { echo "$as_me:$LINENO: checking for SDL" >&5
 10323 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
 10325 if test -n "$SDL_CFLAGS"; then
 10326     pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
 10327  elif test -n "$PKG_CONFIG"; then
 10328     if test -n "$PKG_CONFIG" && \
 10329     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 10330   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 10331   ac_status=$?
 10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10333   (exit $ac_status); }; then
 10334   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
 10335 else
 10336   pkg_failed=yes
 10337 fi
 10338  else
 10339     pkg_failed=untried
 10340 fi
 10341 if test -n "$SDL_LIBS"; then
 10342     pkg_cv_SDL_LIBS="$SDL_LIBS"
 10343  elif test -n "$PKG_CONFIG"; then
 10344     if test -n "$PKG_CONFIG" && \
 10345     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 10346   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 10347   ac_status=$?
 10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10349   (exit $ac_status); }; then
 10350   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
 10351 else
 10352   pkg_failed=yes
 10353 fi
 10354  else
 10355     pkg_failed=untried
 10356 fi
 10360 if test $pkg_failed = yes; then
 10362 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10363         _pkg_short_errors_supported=yes
 10364 else
 10365         _pkg_short_errors_supported=no
 10366 fi
 10367         if test $_pkg_short_errors_supported = yes; then
 10368 	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
 10369         else
 10370 	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
 10371         fi
 10372 	# Put the nasty error message in config.log where it belongs
 10373 	echo "$SDL_PKG_ERRORS" >&5
 10375 	{ echo "$as_me:$LINENO: result: no" >&5
 10376 echo "${ECHO_T}no" >&6; }
 10378       if test "x$with_sdl" = "xyes"; then
 10379          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 10380 See \`config.log' for more details." >&5
 10381 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 10382 See \`config.log' for more details." >&2;}
 10383    { (exit 1); exit 1; }; }
 10384       fi
 10386 elif test $pkg_failed = untried; then
 10388       if test "x$with_sdl" = "xyes"; then
 10389          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 10390 See \`config.log' for more details." >&5
 10391 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 10392 See \`config.log' for more details." >&2;}
 10393    { (exit 1); exit 1; }; }
 10394       fi
 10396 else
 10397 	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
 10398 	SDL_LIBS=$pkg_cv_SDL_LIBS
 10399         { echo "$as_me:$LINENO: result: yes" >&5
 10400 echo "${ECHO_T}yes" >&6; }
 10402        HAVE_SDL='yes'
 10403        AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
 10405 cat >>confdefs.h <<\_ACEOF
 10406 #define HAVE_SDL 1
 10407 _ACEOF
 10410 fi
 10411 fi
 10414 if test "$HAVE_SDL" = 'yes' ; then
 10415   AUDIO_SDL_TRUE=
 10416   AUDIO_SDL_FALSE='#'
 10417 else
 10418   AUDIO_SDL_TRUE='#'
 10419   AUDIO_SDL_FALSE=
 10420 fi
 10423 if test "x$with_pulse" != "xno"; then
 10425 pkg_failed=no
 10426 { echo "$as_me:$LINENO: checking for PULSE" >&5
 10427 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
 10429 if test -n "$PULSE_CFLAGS"; then
 10430     pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
 10431  elif test -n "$PKG_CONFIG"; then
 10432     if test -n "$PKG_CONFIG" && \
 10433     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 10434   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 10435   ac_status=$?
 10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10437   (exit $ac_status); }; then
 10438   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
 10439 else
 10440   pkg_failed=yes
 10441 fi
 10442  else
 10443     pkg_failed=untried
 10444 fi
 10445 if test -n "$PULSE_LIBS"; then
 10446     pkg_cv_PULSE_LIBS="$PULSE_LIBS"
 10447  elif test -n "$PKG_CONFIG"; then
 10448     if test -n "$PKG_CONFIG" && \
 10449     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 10450   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 10451   ac_status=$?
 10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10453   (exit $ac_status); }; then
 10454   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
 10455 else
 10456   pkg_failed=yes
 10457 fi
 10458  else
 10459     pkg_failed=untried
 10460 fi
 10464 if test $pkg_failed = yes; then
 10466 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10467         _pkg_short_errors_supported=yes
 10468 else
 10469         _pkg_short_errors_supported=no
 10470 fi
 10471         if test $_pkg_short_errors_supported = yes; then
 10472 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
 10473         else
 10474 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
 10475         fi
 10476 	# Put the nasty error message in config.log where it belongs
 10477 	echo "$PULSE_PKG_ERRORS" >&5
 10479 	{ echo "$as_me:$LINENO: result: no" >&5
 10480 echo "${ECHO_T}no" >&6; }
 10482        if test "x$with_pulse" = "xyes"; then
 10483           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 10484 See \`config.log' for more details." >&5
 10485 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 10486 See \`config.log' for more details." >&2;}
 10487    { (exit 1); exit 1; }; }
 10488        fi
 10490 elif test $pkg_failed = untried; then
 10492        if test "x$with_pulse" = "xyes"; then
 10493           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 10494 See \`config.log' for more details." >&5
 10495 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 10496 See \`config.log' for more details." >&2;}
 10497    { (exit 1); exit 1; }; }
 10498        fi
 10500 else
 10501 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
 10502 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
 10503         { echo "$as_me:$LINENO: result: yes" >&5
 10504 echo "${ECHO_T}yes" >&6; }
 10506        HAVE_PULSE='yes'
 10507        AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
 10509 cat >>confdefs.h <<\_ACEOF
 10510 #define HAVE_PULSE 1
 10511 _ACEOF
 10514 fi
 10515 fi
 10518 if test "$HAVE_PULSE" = 'yes' ; then
 10519   AUDIO_PULSE_TRUE=
 10520   AUDIO_PULSE_FALSE='#'
 10521 else
 10522   AUDIO_PULSE_TRUE='#'
 10523   AUDIO_PULSE_FALSE=
 10524 fi
 10527 if test "x$with_esd" != "xno"; then
 10529 pkg_failed=no
 10530 { echo "$as_me:$LINENO: checking for ESOUND" >&5
 10531 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
 10533 if test -n "$ESOUND_CFLAGS"; then
 10534     pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
 10535  elif test -n "$PKG_CONFIG"; then
 10536     if test -n "$PKG_CONFIG" && \
 10537     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 10538   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 10539   ac_status=$?
 10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10541   (exit $ac_status); }; then
 10542   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
 10543 else
 10544   pkg_failed=yes
 10545 fi
 10546  else
 10547     pkg_failed=untried
 10548 fi
 10549 if test -n "$ESOUND_LIBS"; then
 10550     pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
 10551  elif test -n "$PKG_CONFIG"; then
 10552     if test -n "$PKG_CONFIG" && \
 10553     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 10554   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 10555   ac_status=$?
 10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10557   (exit $ac_status); }; then
 10558   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
 10559 else
 10560   pkg_failed=yes
 10561 fi
 10562  else
 10563     pkg_failed=untried
 10564 fi
 10568 if test $pkg_failed = yes; then
 10570 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10571         _pkg_short_errors_supported=yes
 10572 else
 10573         _pkg_short_errors_supported=no
 10574 fi
 10575         if test $_pkg_short_errors_supported = yes; then
 10576 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
 10577         else
 10578 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
 10579         fi
 10580 	# Put the nasty error message in config.log where it belongs
 10581 	echo "$ESOUND_PKG_ERRORS" >&5
 10583 	{ echo "$as_me:$LINENO: result: no" >&5
 10584 echo "${ECHO_T}no" >&6; }
 10586        if test "x$with_esd" = "xyes"; then
 10587           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 10588 See \`config.log' for more details." >&5
 10589 echo "$as_me: error: ESounD audio package could not be found (but was required)
 10590 See \`config.log' for more details." >&2;}
 10591    { (exit 1); exit 1; }; }
 10592        fi
 10594 elif test $pkg_failed = untried; then
 10596        if test "x$with_esd" = "xyes"; then
 10597           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 10598 See \`config.log' for more details." >&5
 10599 echo "$as_me: error: ESounD audio package could not be found (but was required)
 10600 See \`config.log' for more details." >&2;}
 10601    { (exit 1); exit 1; }; }
 10602        fi
 10604 else
 10605 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
 10606 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
 10607         { echo "$as_me:$LINENO: result: yes" >&5
 10608 echo "${ECHO_T}yes" >&6; }
 10610        HAVE_ESOUND='yes'
 10611        AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
 10613 cat >>confdefs.h <<\_ACEOF
 10614 #define HAVE_ESOUND 1
 10615 _ACEOF
 10618 fi
 10619 fi
 10622 if test "$HAVE_ESOUND" = 'yes' ; then
 10623   AUDIO_ESOUND_TRUE=
 10624   AUDIO_ESOUND_FALSE='#'
 10625 else
 10626   AUDIO_ESOUND_TRUE='#'
 10627   AUDIO_ESOUND_FALSE=
 10628 fi
 10632 pkg_failed=no
 10633 { echo "$as_me:$LINENO: checking for ALSA" >&5
 10634 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
 10636 if test -n "$ALSA_CFLAGS"; then
 10637     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 10638  elif test -n "$PKG_CONFIG"; then
 10639     if test -n "$PKG_CONFIG" && \
 10640     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 10641   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 10642   ac_status=$?
 10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10644   (exit $ac_status); }; then
 10645   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
 10646 else
 10647   pkg_failed=yes
 10648 fi
 10649  else
 10650     pkg_failed=untried
 10651 fi
 10652 if test -n "$ALSA_LIBS"; then
 10653     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 10654  elif test -n "$PKG_CONFIG"; then
 10655     if test -n "$PKG_CONFIG" && \
 10656     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 10657   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 10658   ac_status=$?
 10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10660   (exit $ac_status); }; then
 10661   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
 10662 else
 10663   pkg_failed=yes
 10664 fi
 10665  else
 10666     pkg_failed=untried
 10667 fi
 10671 if test $pkg_failed = yes; then
 10673 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10674         _pkg_short_errors_supported=yes
 10675 else
 10676         _pkg_short_errors_supported=no
 10677 fi
 10678         if test $_pkg_short_errors_supported = yes; then
 10679 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
 10680         else
 10681 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
 10682         fi
 10683 	# Put the nasty error message in config.log where it belongs
 10684 	echo "$ALSA_PKG_ERRORS" >&5
 10686 	{ echo "$as_me:$LINENO: result: no" >&5
 10687 echo "${ECHO_T}no" >&6; }
 10688                 true
 10689 elif test $pkg_failed = untried; then
 10690 	true
 10691 else
 10692 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
 10693 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
 10694         { echo "$as_me:$LINENO: result: yes" >&5
 10695 echo "${ECHO_T}yes" >&6; }
 10697      HAVE_ALSA='yes'
 10698      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
 10700 cat >>confdefs.h <<\_ACEOF
 10701 #define HAVE_ALSA 1
 10702 _ACEOF
 10704 fi
 10707 if test "$HAVE_ALSA" = 'yes' ; then
 10708   AUDIO_ALSA_TRUE=
 10709   AUDIO_ALSA_FALSE='#'
 10710 else
 10711   AUDIO_ALSA_TRUE='#'
 10712   AUDIO_ALSA_FALSE=
 10713 fi
 10717 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 10718   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 10719 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 10720 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 10721   echo $ECHO_N "(cached) $ECHO_C" >&6
 10722 fi
 10723 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 10724 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 10725 else
 10726   # Is the header compilable?
 10727 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
 10728 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
 10729 cat >conftest.$ac_ext <<_ACEOF
 10730 /* confdefs.h.  */
 10731 _ACEOF
 10732 cat confdefs.h >>conftest.$ac_ext
 10733 cat >>conftest.$ac_ext <<_ACEOF
 10734 /* end confdefs.h.  */
 10735 $ac_includes_default
 10736 #include <linux/cdrom.h>
 10737 _ACEOF
 10738 rm -f conftest.$ac_objext
 10739 if { (ac_try="$ac_compile"
 10740 case "(($ac_try" in
 10741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10742   *) ac_try_echo=$ac_try;;
 10743 esac
 10744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10745   (eval "$ac_compile") 2>conftest.er1
 10746   ac_status=$?
 10747   grep -v '^ *+' conftest.er1 >conftest.err
 10748   rm -f conftest.er1
 10749   cat conftest.err >&5
 10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10751   (exit $ac_status); } && {
 10752 	 test -z "$ac_c_werror_flag" ||
 10753 	 test ! -s conftest.err
 10754        } && test -s conftest.$ac_objext; then
 10755   ac_header_compiler=yes
 10756 else
 10757   echo "$as_me: failed program was:" >&5
 10758 sed 's/^/| /' conftest.$ac_ext >&5
 10760 	ac_header_compiler=no
 10761 fi
 10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10765 echo "${ECHO_T}$ac_header_compiler" >&6; }
 10767 # Is the header present?
 10768 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
 10769 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
 10770 cat >conftest.$ac_ext <<_ACEOF
 10771 /* confdefs.h.  */
 10772 _ACEOF
 10773 cat confdefs.h >>conftest.$ac_ext
 10774 cat >>conftest.$ac_ext <<_ACEOF
 10775 /* end confdefs.h.  */
 10776 #include <linux/cdrom.h>
 10777 _ACEOF
 10778 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10779 case "(($ac_try" in
 10780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10781   *) ac_try_echo=$ac_try;;
 10782 esac
 10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10785   ac_status=$?
 10786   grep -v '^ *+' conftest.er1 >conftest.err
 10787   rm -f conftest.er1
 10788   cat conftest.err >&5
 10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10790   (exit $ac_status); } >/dev/null && {
 10791 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10792 	 test ! -s conftest.err
 10793        }; then
 10794   ac_header_preproc=yes
 10795 else
 10796   echo "$as_me: failed program was:" >&5
 10797 sed 's/^/| /' conftest.$ac_ext >&5
 10799   ac_header_preproc=no
 10800 fi
 10802 rm -f conftest.err conftest.$ac_ext
 10803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10804 echo "${ECHO_T}$ac_header_preproc" >&6; }
 10806 # So?  What about this header?
 10807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10808   yes:no: )
 10809     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
 10810 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10811     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
 10812 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
 10813     ac_header_preproc=yes
 10814     ;;
 10815   no:yes:* )
 10816     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
 10817 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
 10818     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
 10819 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
 10820     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
 10821 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
 10822     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
 10823 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 10824     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
 10825 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
 10826     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
 10827 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
 10829     ;;
 10830 esac
 10831 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 10832 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 10833 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 10834   echo $ECHO_N "(cached) $ECHO_C" >&6
 10835 else
 10836   ac_cv_header_linux_cdrom_h=$ac_header_preproc
 10837 fi
 10838 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 10839 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 10841 fi
 10842 if test $ac_cv_header_linux_cdrom_h = yes; then
 10844      CDROM_DRIVER=linux
 10845           { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
 10846 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
 10847      old_CFLAGS="$CFLAGS"
 10848      CFLAGS="$CFLAGS $STDCFLAG"
 10849      cat >conftest.$ac_ext <<_ACEOF
 10850 /* confdefs.h.  */
 10851 _ACEOF
 10852 cat confdefs.h >>conftest.$ac_ext
 10853 cat >>conftest.$ac_ext <<_ACEOF
 10854 /* end confdefs.h.  */
 10855 #include <linux/cdrom.h>
 10856 int
 10857 main ()
 10861   return 0;
 10863 _ACEOF
 10864 rm -f conftest.$ac_objext
 10865 if { (ac_try="$ac_compile"
 10866 case "(($ac_try" in
 10867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10868   *) ac_try_echo=$ac_try;;
 10869 esac
 10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10871   (eval "$ac_compile") 2>conftest.er1
 10872   ac_status=$?
 10873   grep -v '^ *+' conftest.er1 >conftest.err
 10874   rm -f conftest.er1
 10875   cat conftest.err >&5
 10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10877   (exit $ac_status); } && {
 10878 	 test -z "$ac_c_werror_flag" ||
 10879 	 test ! -s conftest.err
 10880        } && test -s conftest.$ac_objext; then
 10881   { echo "$as_me:$LINENO: result: Yes" >&5
 10882 echo "${ECHO_T}Yes" >&6; }
 10883 else
 10884   echo "$as_me: failed program was:" >&5
 10885 sed 's/^/| /' conftest.$ac_ext >&5
 10888         { echo "$as_me:$LINENO: result: No" >&5
 10889 echo "${ECHO_T}No" >&6; }
 10890         STDCFLAG="-std=gnu99"
 10891 fi
 10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10894      CFLAGS="$old_CFLAGS"
 10896 else
 10897   true
 10898 fi
 10901 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 10902   { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 10903 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 10904 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 10905   echo $ECHO_N "(cached) $ECHO_C" >&6
 10906 fi
 10907 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 10908 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 10909 else
 10910   # Is the header compilable?
 10911 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
 10912 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
 10913 cat >conftest.$ac_ext <<_ACEOF
 10914 /* confdefs.h.  */
 10915 _ACEOF
 10916 cat confdefs.h >>conftest.$ac_ext
 10917 cat >>conftest.$ac_ext <<_ACEOF
 10918 /* end confdefs.h.  */
 10919 $ac_includes_default
 10920 #include <IOKit/IOKitLib.h>
 10921 _ACEOF
 10922 rm -f conftest.$ac_objext
 10923 if { (ac_try="$ac_compile"
 10924 case "(($ac_try" in
 10925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10926   *) ac_try_echo=$ac_try;;
 10927 esac
 10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10929   (eval "$ac_compile") 2>conftest.er1
 10930   ac_status=$?
 10931   grep -v '^ *+' conftest.er1 >conftest.err
 10932   rm -f conftest.er1
 10933   cat conftest.err >&5
 10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10935   (exit $ac_status); } && {
 10936 	 test -z "$ac_c_werror_flag" ||
 10937 	 test ! -s conftest.err
 10938        } && test -s conftest.$ac_objext; then
 10939   ac_header_compiler=yes
 10940 else
 10941   echo "$as_me: failed program was:" >&5
 10942 sed 's/^/| /' conftest.$ac_ext >&5
 10944 	ac_header_compiler=no
 10945 fi
 10947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10949 echo "${ECHO_T}$ac_header_compiler" >&6; }
 10951 # Is the header present?
 10952 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
 10953 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
 10954 cat >conftest.$ac_ext <<_ACEOF
 10955 /* confdefs.h.  */
 10956 _ACEOF
 10957 cat confdefs.h >>conftest.$ac_ext
 10958 cat >>conftest.$ac_ext <<_ACEOF
 10959 /* end confdefs.h.  */
 10960 #include <IOKit/IOKitLib.h>
 10961 _ACEOF
 10962 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10963 case "(($ac_try" in
 10964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10965   *) ac_try_echo=$ac_try;;
 10966 esac
 10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10969   ac_status=$?
 10970   grep -v '^ *+' conftest.er1 >conftest.err
 10971   rm -f conftest.er1
 10972   cat conftest.err >&5
 10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10974   (exit $ac_status); } >/dev/null && {
 10975 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10976 	 test ! -s conftest.err
 10977        }; then
 10978   ac_header_preproc=yes
 10979 else
 10980   echo "$as_me: failed program was:" >&5
 10981 sed 's/^/| /' conftest.$ac_ext >&5
 10983   ac_header_preproc=no
 10984 fi
 10986 rm -f conftest.err conftest.$ac_ext
 10987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10988 echo "${ECHO_T}$ac_header_preproc" >&6; }
 10990 # So?  What about this header?
 10991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10992   yes:no: )
 10993     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 10994 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10995     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
 10996 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
 10997     ac_header_preproc=yes
 10998     ;;
 10999   no:yes:* )
 11000     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
 11001 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
 11002     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&5
 11003 echo "$as_me: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&2;}
 11004     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
 11005 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
 11006     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&5
 11007 echo "$as_me: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11008     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
 11009 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
 11010     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
 11011 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
 11013     ;;
 11014 esac
 11015 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 11016 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 11017 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 11018   echo $ECHO_N "(cached) $ECHO_C" >&6
 11019 else
 11020   ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
 11021 fi
 11022 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 11023 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 11025 fi
 11026 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
 11028      CDROM_DRIVER=osx
 11029      LIBS="$LIBS -framework IOKit"
 11030 else
 11031   true
 11032 fi
 11037 if test "x$CDROM_DRIVER" = "xlinux"; then
 11038   CDROM_LINUX_TRUE=
 11039   CDROM_LINUX_FALSE='#'
 11040 else
 11041   CDROM_LINUX_TRUE='#'
 11042   CDROM_LINUX_FALSE=
 11043 fi
 11047 if test "x$CDROM_DRIVER" = "xosx"; then
 11048   CDROM_OSX_TRUE=
 11049   CDROM_OSX_FALSE='#'
 11050 else
 11051   CDROM_OSX_TRUE='#'
 11052   CDROM_OSX_FALSE=
 11053 fi
 11057 if test "x$CDROM_DRIVER" = "x"; then
 11058   CDROM_NONE_TRUE=
 11059   CDROM_NONE_FALSE='#'
 11060 else
 11061   CDROM_NONE_TRUE='#'
 11062   CDROM_NONE_FALSE=
 11063 fi
 11065 if test "x$CDROM_DRIVER" = "xlinux"; then
 11067 cat >>confdefs.h <<\_ACEOF
 11068 #define HAVE_LINUX_CDROM 1
 11069 _ACEOF
 11071 fi
 11073 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 11074   { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 11075 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 11076 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 11077   echo $ECHO_N "(cached) $ECHO_C" >&6
 11078 fi
 11079 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 11080 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 11081 else
 11082   # Is the header compilable?
 11083 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
 11084 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
 11085 cat >conftest.$ac_ext <<_ACEOF
 11086 /* confdefs.h.  */
 11087 _ACEOF
 11088 cat confdefs.h >>conftest.$ac_ext
 11089 cat >>conftest.$ac_ext <<_ACEOF
 11090 /* end confdefs.h.  */
 11091 $ac_includes_default
 11092 #include <linux/joystick.h>
 11093 _ACEOF
 11094 rm -f conftest.$ac_objext
 11095 if { (ac_try="$ac_compile"
 11096 case "(($ac_try" in
 11097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11098   *) ac_try_echo=$ac_try;;
 11099 esac
 11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11101   (eval "$ac_compile") 2>conftest.er1
 11102   ac_status=$?
 11103   grep -v '^ *+' conftest.er1 >conftest.err
 11104   rm -f conftest.er1
 11105   cat conftest.err >&5
 11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11107   (exit $ac_status); } && {
 11108 	 test -z "$ac_c_werror_flag" ||
 11109 	 test ! -s conftest.err
 11110        } && test -s conftest.$ac_objext; then
 11111   ac_header_compiler=yes
 11112 else
 11113   echo "$as_me: failed program was:" >&5
 11114 sed 's/^/| /' conftest.$ac_ext >&5
 11116 	ac_header_compiler=no
 11117 fi
 11119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11121 echo "${ECHO_T}$ac_header_compiler" >&6; }
 11123 # Is the header present?
 11124 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
 11125 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
 11126 cat >conftest.$ac_ext <<_ACEOF
 11127 /* confdefs.h.  */
 11128 _ACEOF
 11129 cat confdefs.h >>conftest.$ac_ext
 11130 cat >>conftest.$ac_ext <<_ACEOF
 11131 /* end confdefs.h.  */
 11132 #include <linux/joystick.h>
 11133 _ACEOF
 11134 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11135 case "(($ac_try" in
 11136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11137   *) ac_try_echo=$ac_try;;
 11138 esac
 11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11141   ac_status=$?
 11142   grep -v '^ *+' conftest.er1 >conftest.err
 11143   rm -f conftest.er1
 11144   cat conftest.err >&5
 11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11146   (exit $ac_status); } >/dev/null && {
 11147 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11148 	 test ! -s conftest.err
 11149        }; then
 11150   ac_header_preproc=yes
 11151 else
 11152   echo "$as_me: failed program was:" >&5
 11153 sed 's/^/| /' conftest.$ac_ext >&5
 11155   ac_header_preproc=no
 11156 fi
 11158 rm -f conftest.err conftest.$ac_ext
 11159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11160 echo "${ECHO_T}$ac_header_preproc" >&6; }
 11162 # So?  What about this header?
 11163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11164   yes:no: )
 11165     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11166 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11167     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
 11168 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
 11169     ac_header_preproc=yes
 11170     ;;
 11171   no:yes:* )
 11172     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
 11173 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
 11174     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
 11175 echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
 11176     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
 11177 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
 11178     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
 11179 echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11180     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
 11181 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
 11182     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
 11183 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
 11185     ;;
 11186 esac
 11187 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 11188 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 11189 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 11190   echo $ECHO_N "(cached) $ECHO_C" >&6
 11191 else
 11192   ac_cv_header_linux_joystick_h=$ac_header_preproc
 11193 fi
 11194 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 11195 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 11197 fi
 11198 if test $ac_cv_header_linux_joystick_h = yes; then
 11200     HAVE_LINUX_JOYSTICK_H=yes
 11202 cat >>confdefs.h <<\_ACEOF
 11203 #define HAVE_LINUX_JOYSTICK 1
 11204 _ACEOF
 11206     INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
 11207 else
 11208    echo "Linux Joystick support not found, building without it."
 11209 fi
 11214 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
 11215   JOY_LINUX_TRUE=
 11216   JOY_LINUX_FALSE='#'
 11217 else
 11218   JOY_LINUX_TRUE='#'
 11219   JOY_LINUX_FALSE=
 11220 fi
 11223 if test "x$with_lirc" != "xno"; then
 11224     if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 11225   { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 11226 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 11227 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 11228   echo $ECHO_N "(cached) $ECHO_C" >&6
 11229 fi
 11230 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 11231 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 11232 else
 11233   # Is the header compilable?
 11234 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
 11235 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
 11236 cat >conftest.$ac_ext <<_ACEOF
 11237 /* confdefs.h.  */
 11238 _ACEOF
 11239 cat confdefs.h >>conftest.$ac_ext
 11240 cat >>conftest.$ac_ext <<_ACEOF
 11241 /* end confdefs.h.  */
 11242 $ac_includes_default
 11243 #include <lirc/lirc_client.h>
 11244 _ACEOF
 11245 rm -f conftest.$ac_objext
 11246 if { (ac_try="$ac_compile"
 11247 case "(($ac_try" in
 11248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11249   *) ac_try_echo=$ac_try;;
 11250 esac
 11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11252   (eval "$ac_compile") 2>conftest.er1
 11253   ac_status=$?
 11254   grep -v '^ *+' conftest.er1 >conftest.err
 11255   rm -f conftest.er1
 11256   cat conftest.err >&5
 11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11258   (exit $ac_status); } && {
 11259 	 test -z "$ac_c_werror_flag" ||
 11260 	 test ! -s conftest.err
 11261        } && test -s conftest.$ac_objext; then
 11262   ac_header_compiler=yes
 11263 else
 11264   echo "$as_me: failed program was:" >&5
 11265 sed 's/^/| /' conftest.$ac_ext >&5
 11267 	ac_header_compiler=no
 11268 fi
 11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11272 echo "${ECHO_T}$ac_header_compiler" >&6; }
 11274 # Is the header present?
 11275 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
 11276 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
 11277 cat >conftest.$ac_ext <<_ACEOF
 11278 /* confdefs.h.  */
 11279 _ACEOF
 11280 cat confdefs.h >>conftest.$ac_ext
 11281 cat >>conftest.$ac_ext <<_ACEOF
 11282 /* end confdefs.h.  */
 11283 #include <lirc/lirc_client.h>
 11284 _ACEOF
 11285 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11286 case "(($ac_try" in
 11287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11288   *) ac_try_echo=$ac_try;;
 11289 esac
 11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11292   ac_status=$?
 11293   grep -v '^ *+' conftest.er1 >conftest.err
 11294   rm -f conftest.er1
 11295   cat conftest.err >&5
 11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11297   (exit $ac_status); } >/dev/null && {
 11298 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11299 	 test ! -s conftest.err
 11300        }; then
 11301   ac_header_preproc=yes
 11302 else
 11303   echo "$as_me: failed program was:" >&5
 11304 sed 's/^/| /' conftest.$ac_ext >&5
 11306   ac_header_preproc=no
 11307 fi
 11309 rm -f conftest.err conftest.$ac_ext
 11310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11311 echo "${ECHO_T}$ac_header_preproc" >&6; }
 11313 # So?  What about this header?
 11314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11315   yes:no: )
 11316     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11317 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11318     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
 11319 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
 11320     ac_header_preproc=yes
 11321     ;;
 11322   no:yes:* )
 11323     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
 11324 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
 11325     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&5
 11326 echo "$as_me: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&2;}
 11327     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
 11328 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
 11329     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&5
 11330 echo "$as_me: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11331     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
 11332 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
 11333     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
 11334 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
 11336     ;;
 11337 esac
 11338 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 11339 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 11340 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 11341   echo $ECHO_N "(cached) $ECHO_C" >&6
 11342 else
 11343   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
 11344 fi
 11345 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 11346 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 11348 fi
 11349 if test $ac_cv_header_lirc_lirc_client_h = yes; then
 11351         HAVE_LIRC_CLIENT_H=yes
 11353 cat >>confdefs.h <<\_ACEOF
 11354 #define HAVE_LIRC 1
 11355 _ACEOF
 11357         INPUT_DRIVERS="$INPUT_DRIVERS lirc"
 11359 else
 11360    echo "LIRC support not found, building without it."
 11361 fi
 11364 fi
 11367 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
 11368   INPUT_LIRC_TRUE=
 11369   INPUT_LIRC_FALSE='#'
 11370 else
 11371   INPUT_LIRC_TRUE='#'
 11372   INPUT_LIRC_FALSE=
 11373 fi
 11376 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
 11377 set dummy sh-elf-gcc; ac_word=$2
 11378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 11379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 11380 if test "${ac_cv_path_SHCC+set}" = set; then
 11381   echo $ECHO_N "(cached) $ECHO_C" >&6
 11382 else
 11383   case $SHCC in
 11384   [\\/]* | ?:[\\/]*)
 11385   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
 11386   ;;
 11387   *)
 11388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11389 for as_dir in $PATH
 11390 do
 11391   IFS=$as_save_IFS
 11392   test -z "$as_dir" && as_dir=.
 11393   for ac_exec_ext in '' $ac_executable_extensions; do
 11394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11395     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
 11396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11397     break 2
 11398   fi
 11399 done
 11400 done
 11401 IFS=$as_save_IFS
 11403   ;;
 11404 esac
 11405 fi
 11406 SHCC=$ac_cv_path_SHCC
 11407 if test -n "$SHCC"; then
 11408   { echo "$as_me:$LINENO: result: $SHCC" >&5
 11409 echo "${ECHO_T}$SHCC" >&6; }
 11410 else
 11411   { echo "$as_me:$LINENO: result: no" >&5
 11412 echo "${ECHO_T}no" >&6; }
 11413 fi
 11416 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
 11417 set dummy sh-elf-ld; ac_word=$2
 11418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 11419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 11420 if test "${ac_cv_path_SHLD+set}" = set; then
 11421   echo $ECHO_N "(cached) $ECHO_C" >&6
 11422 else
 11423   case $SHLD in
 11424   [\\/]* | ?:[\\/]*)
 11425   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
 11426   ;;
 11427   *)
 11428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11429 for as_dir in $PATH
 11430 do
 11431   IFS=$as_save_IFS
 11432   test -z "$as_dir" && as_dir=.
 11433   for ac_exec_ext in '' $ac_executable_extensions; do
 11434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11435     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
 11436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11437     break 2
 11438   fi
 11439 done
 11440 done
 11441 IFS=$as_save_IFS
 11443   ;;
 11444 esac
 11445 fi
 11446 SHLD=$ac_cv_path_SHLD
 11447 if test -n "$SHLD"; then
 11448   { echo "$as_me:$LINENO: result: $SHLD" >&5
 11449 echo "${ECHO_T}$SHLD" >&6; }
 11450 else
 11451   { echo "$as_me:$LINENO: result: no" >&5
 11452 echo "${ECHO_T}no" >&6; }
 11453 fi
 11456 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
 11457 set dummy sh-elf-objcopy; ac_word=$2
 11458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 11459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 11460 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
 11461   echo $ECHO_N "(cached) $ECHO_C" >&6
 11462 else
 11463   case $SHOBJCOPY in
 11464   [\\/]* | ?:[\\/]*)
 11465   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
 11466   ;;
 11467   *)
 11468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11469 for as_dir in $PATH
 11470 do
 11471   IFS=$as_save_IFS
 11472   test -z "$as_dir" && as_dir=.
 11473   for ac_exec_ext in '' $ac_executable_extensions; do
 11474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11475     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 11476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11477     break 2
 11478   fi
 11479 done
 11480 done
 11481 IFS=$as_save_IFS
 11483   ;;
 11484 esac
 11485 fi
 11486 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
 11487 if test -n "$SHOBJCOPY"; then
 11488   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
 11489 echo "${ECHO_T}$SHOBJCOPY" >&6; }
 11490 else
 11491   { echo "$as_me:$LINENO: result: no" >&5
 11492 echo "${ECHO_T}no" >&6; }
 11493 fi
 11496 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
 11497 set dummy arm-elf-gcc; ac_word=$2
 11498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 11499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 11500 if test "${ac_cv_path_ARMCC+set}" = set; then
 11501   echo $ECHO_N "(cached) $ECHO_C" >&6
 11502 else
 11503   case $ARMCC in
 11504   [\\/]* | ?:[\\/]*)
 11505   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
 11506   ;;
 11507   *)
 11508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11509 for as_dir in $PATH
 11510 do
 11511   IFS=$as_save_IFS
 11512   test -z "$as_dir" && as_dir=.
 11513   for ac_exec_ext in '' $ac_executable_extensions; do
 11514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11515     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
 11516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11517     break 2
 11518   fi
 11519 done
 11520 done
 11521 IFS=$as_save_IFS
 11523   ;;
 11524 esac
 11525 fi
 11526 ARMCC=$ac_cv_path_ARMCC
 11527 if test -n "$ARMCC"; then
 11528   { echo "$as_me:$LINENO: result: $ARMCC" >&5
 11529 echo "${ECHO_T}$ARMCC" >&6; }
 11530 else
 11531   { echo "$as_me:$LINENO: result: no" >&5
 11532 echo "${ECHO_T}no" >&6; }
 11533 fi
 11536 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
 11537 set dummy arm-elf-ld; ac_word=$2
 11538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 11539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 11540 if test "${ac_cv_path_ARMLD+set}" = set; then
 11541   echo $ECHO_N "(cached) $ECHO_C" >&6
 11542 else
 11543   case $ARMLD in
 11544   [\\/]* | ?:[\\/]*)
 11545   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
 11546   ;;
 11547   *)
 11548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11549 for as_dir in $PATH
 11550 do
 11551   IFS=$as_save_IFS
 11552   test -z "$as_dir" && as_dir=.
 11553   for ac_exec_ext in '' $ac_executable_extensions; do
 11554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11555     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
 11556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11557     break 2
 11558   fi
 11559 done
 11560 done
 11561 IFS=$as_save_IFS
 11563   ;;
 11564 esac
 11565 fi
 11566 ARMLD=$ac_cv_path_ARMLD
 11567 if test -n "$ARMLD"; then
 11568   { echo "$as_me:$LINENO: result: $ARMLD" >&5
 11569 echo "${ECHO_T}$ARMLD" >&6; }
 11570 else
 11571   { echo "$as_me:$LINENO: result: no" >&5
 11572 echo "${ECHO_T}no" >&6; }
 11573 fi
 11576 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
 11577 set dummy arm-elf-objcopy; ac_word=$2
 11578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 11579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 11580 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
 11581   echo $ECHO_N "(cached) $ECHO_C" >&6
 11582 else
 11583   case $ARMOBJCOPY in
 11584   [\\/]* | ?:[\\/]*)
 11585   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
 11586   ;;
 11587   *)
 11588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11589 for as_dir in $PATH
 11590 do
 11591   IFS=$as_save_IFS
 11592   test -z "$as_dir" && as_dir=.
 11593   for ac_exec_ext in '' $ac_executable_extensions; do
 11594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11595     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 11596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11597     break 2
 11598   fi
 11599 done
 11600 done
 11601 IFS=$as_save_IFS
 11603   ;;
 11604 esac
 11605 fi
 11606 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
 11607 if test -n "$ARMOBJCOPY"; then
 11608   { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
 11609 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
 11610 else
 11611   { echo "$as_me:$LINENO: result: no" >&5
 11612 echo "${ECHO_T}no" >&6; }
 11613 fi
 11617 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
 11618   BUILD_SH="no"
 11619   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
 11620 else
 11621   BUILD_SH="yes"
 11622 fi
 11623 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
 11624   BUILD_ARM="no"
 11625   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
 11626 else
 11627   BUILD_ARM="yes"
 11628 fi
 11631 if test "$BUILD_SH" = "yes"; then
 11632   BUILD_SYSTEST_TRUE=
 11633   BUILD_SYSTEST_FALSE='#'
 11634 else
 11635   BUILD_SYSTEST_TRUE='#'
 11636   BUILD_SYSTEST_FALSE=
 11637 fi
 11641 if test "$BUILD_ARM" = "yes"; then
 11642   BUILD_ARMTEST_TRUE=
 11643   BUILD_ARMTEST_FALSE='#'
 11644 else
 11645   BUILD_ARMTEST_TRUE='#'
 11646   BUILD_ARMTEST_FALSE=
 11647 fi
 11650 CFLAGS="$CFLAGS $STDCFLAG"
 11652 GETTEXT_PACKAGE=lxdream
 11653 LXDREAM_LIBS="$LIBS"
 11654 LIBS=""
 11658 cat >>confdefs.h <<_ACEOF
 11659 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 11660 _ACEOF
 11663 ALL_LINGUAS="de es it pt_BR"
 11666 for ac_header in locale.h
 11667 do
 11668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 11669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 11670   { echo "$as_me:$LINENO: checking for $ac_header" >&5
 11671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 11672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 11673   echo $ECHO_N "(cached) $ECHO_C" >&6
 11674 fi
 11675 ac_res=`eval echo '${'$as_ac_Header'}'`
 11676 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 11677 echo "${ECHO_T}$ac_res" >&6; }
 11678 else
 11679   # Is the header compilable?
 11680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
 11681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 11682 cat >conftest.$ac_ext <<_ACEOF
 11683 /* confdefs.h.  */
 11684 _ACEOF
 11685 cat confdefs.h >>conftest.$ac_ext
 11686 cat >>conftest.$ac_ext <<_ACEOF
 11687 /* end confdefs.h.  */
 11688 $ac_includes_default
 11689 #include <$ac_header>
 11690 _ACEOF
 11691 rm -f conftest.$ac_objext
 11692 if { (ac_try="$ac_compile"
 11693 case "(($ac_try" in
 11694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11695   *) ac_try_echo=$ac_try;;
 11696 esac
 11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11698   (eval "$ac_compile") 2>conftest.er1
 11699   ac_status=$?
 11700   grep -v '^ *+' conftest.er1 >conftest.err
 11701   rm -f conftest.er1
 11702   cat conftest.err >&5
 11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11704   (exit $ac_status); } && {
 11705 	 test -z "$ac_c_werror_flag" ||
 11706 	 test ! -s conftest.err
 11707        } && test -s conftest.$ac_objext; then
 11708   ac_header_compiler=yes
 11709 else
 11710   echo "$as_me: failed program was:" >&5
 11711 sed 's/^/| /' conftest.$ac_ext >&5
 11713 	ac_header_compiler=no
 11714 fi
 11716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11718 echo "${ECHO_T}$ac_header_compiler" >&6; }
 11720 # Is the header present?
 11721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
 11722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 11723 cat >conftest.$ac_ext <<_ACEOF
 11724 /* confdefs.h.  */
 11725 _ACEOF
 11726 cat confdefs.h >>conftest.$ac_ext
 11727 cat >>conftest.$ac_ext <<_ACEOF
 11728 /* end confdefs.h.  */
 11729 #include <$ac_header>
 11730 _ACEOF
 11731 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11732 case "(($ac_try" in
 11733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11734   *) ac_try_echo=$ac_try;;
 11735 esac
 11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11738   ac_status=$?
 11739   grep -v '^ *+' conftest.er1 >conftest.err
 11740   rm -f conftest.er1
 11741   cat conftest.err >&5
 11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11743   (exit $ac_status); } >/dev/null && {
 11744 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11745 	 test ! -s conftest.err
 11746        }; then
 11747   ac_header_preproc=yes
 11748 else
 11749   echo "$as_me: failed program was:" >&5
 11750 sed 's/^/| /' conftest.$ac_ext >&5
 11752   ac_header_preproc=no
 11753 fi
 11755 rm -f conftest.err conftest.$ac_ext
 11756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11757 echo "${ECHO_T}$ac_header_preproc" >&6; }
 11759 # So?  What about this header?
 11760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11761   yes:no: )
 11762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 11763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 11765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 11766     ac_header_preproc=yes
 11767     ;;
 11768   no:yes:* )
 11769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 11770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 11771     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 11772 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 11773     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 11774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 11775     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 11776 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 11777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 11778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 11779     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 11780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 11782     ;;
 11783 esac
 11784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
 11785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 11786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 11787   echo $ECHO_N "(cached) $ECHO_C" >&6
 11788 else
 11789   eval "$as_ac_Header=\$ac_header_preproc"
 11790 fi
 11791 ac_res=`eval echo '${'$as_ac_Header'}'`
 11792 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 11793 echo "${ECHO_T}$ac_res" >&6; }
 11795 fi
 11796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
 11797   cat >>confdefs.h <<_ACEOF
 11798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 11799 _ACEOF
 11801 fi
 11803 done
 11805     if test $ac_cv_header_locale_h = yes; then
 11806     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 11807 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 11808 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 11809   echo $ECHO_N "(cached) $ECHO_C" >&6
 11810 else
 11811   cat >conftest.$ac_ext <<_ACEOF
 11812 /* confdefs.h.  */
 11813 _ACEOF
 11814 cat confdefs.h >>conftest.$ac_ext
 11815 cat >>conftest.$ac_ext <<_ACEOF
 11816 /* end confdefs.h.  */
 11817 #include <locale.h>
 11818 int
 11819 main ()
 11821 return LC_MESSAGES
 11823   return 0;
 11825 _ACEOF
 11826 rm -f conftest.$ac_objext conftest$ac_exeext
 11827 if { (ac_try="$ac_link"
 11828 case "(($ac_try" in
 11829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11830   *) ac_try_echo=$ac_try;;
 11831 esac
 11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11833   (eval "$ac_link") 2>conftest.er1
 11834   ac_status=$?
 11835   grep -v '^ *+' conftest.er1 >conftest.err
 11836   rm -f conftest.er1
 11837   cat conftest.err >&5
 11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11839   (exit $ac_status); } && {
 11840 	 test -z "$ac_c_werror_flag" ||
 11841 	 test ! -s conftest.err
 11842        } && test -s conftest$ac_exeext &&
 11843        $as_test_x conftest$ac_exeext; then
 11844   am_cv_val_LC_MESSAGES=yes
 11845 else
 11846   echo "$as_me: failed program was:" >&5
 11847 sed 's/^/| /' conftest.$ac_ext >&5
 11849 	am_cv_val_LC_MESSAGES=no
 11850 fi
 11852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11853       conftest$ac_exeext conftest.$ac_ext
 11854 fi
 11855 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 11856 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
 11857     if test $am_cv_val_LC_MESSAGES = yes; then
 11859 cat >>confdefs.h <<\_ACEOF
 11860 #define HAVE_LC_MESSAGES 1
 11861 _ACEOF
 11863     fi
 11864   fi
 11865      USE_NLS=yes
 11868     gt_cv_have_gettext=no
 11870     CATOBJEXT=NONE
 11871     XGETTEXT=:
 11872     INTLLIBS=
 11874     if test "${ac_cv_header_libintl_h+set}" = set; then
 11875   { echo "$as_me:$LINENO: checking for libintl.h" >&5
 11876 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 11877 if test "${ac_cv_header_libintl_h+set}" = set; then
 11878   echo $ECHO_N "(cached) $ECHO_C" >&6
 11879 fi
 11880 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 11881 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 11882 else
 11883   # Is the header compilable?
 11884 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
 11885 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
 11886 cat >conftest.$ac_ext <<_ACEOF
 11887 /* confdefs.h.  */
 11888 _ACEOF
 11889 cat confdefs.h >>conftest.$ac_ext
 11890 cat >>conftest.$ac_ext <<_ACEOF
 11891 /* end confdefs.h.  */
 11892 $ac_includes_default
 11893 #include <libintl.h>
 11894 _ACEOF
 11895 rm -f conftest.$ac_objext
 11896 if { (ac_try="$ac_compile"
 11897 case "(($ac_try" in
 11898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11899   *) ac_try_echo=$ac_try;;
 11900 esac
 11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11902   (eval "$ac_compile") 2>conftest.er1
 11903   ac_status=$?
 11904   grep -v '^ *+' conftest.er1 >conftest.err
 11905   rm -f conftest.er1
 11906   cat conftest.err >&5
 11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11908   (exit $ac_status); } && {
 11909 	 test -z "$ac_c_werror_flag" ||
 11910 	 test ! -s conftest.err
 11911        } && test -s conftest.$ac_objext; then
 11912   ac_header_compiler=yes
 11913 else
 11914   echo "$as_me: failed program was:" >&5
 11915 sed 's/^/| /' conftest.$ac_ext >&5
 11917 	ac_header_compiler=no
 11918 fi
 11920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11922 echo "${ECHO_T}$ac_header_compiler" >&6; }
 11924 # Is the header present?
 11925 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
 11926 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
 11927 cat >conftest.$ac_ext <<_ACEOF
 11928 /* confdefs.h.  */
 11929 _ACEOF
 11930 cat confdefs.h >>conftest.$ac_ext
 11931 cat >>conftest.$ac_ext <<_ACEOF
 11932 /* end confdefs.h.  */
 11933 #include <libintl.h>
 11934 _ACEOF
 11935 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11936 case "(($ac_try" in
 11937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11938   *) ac_try_echo=$ac_try;;
 11939 esac
 11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11942   ac_status=$?
 11943   grep -v '^ *+' conftest.er1 >conftest.err
 11944   rm -f conftest.er1
 11945   cat conftest.err >&5
 11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11947   (exit $ac_status); } >/dev/null && {
 11948 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11949 	 test ! -s conftest.err
 11950        }; then
 11951   ac_header_preproc=yes
 11952 else
 11953   echo "$as_me: failed program was:" >&5
 11954 sed 's/^/| /' conftest.$ac_ext >&5
 11956   ac_header_preproc=no
 11957 fi
 11959 rm -f conftest.err conftest.$ac_ext
 11960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11961 echo "${ECHO_T}$ac_header_preproc" >&6; }
 11963 # So?  What about this header?
 11964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11965   yes:no: )
 11966     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11967 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11968     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 11969 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 11970     ac_header_preproc=yes
 11971     ;;
 11972   no:yes:* )
 11973     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 11974 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 11975     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 11976 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 11977     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 11978 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 11979     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 11980 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11981     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 11982 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 11983     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 11984 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 11986     ;;
 11987 esac
 11988 { echo "$as_me:$LINENO: checking for libintl.h" >&5
 11989 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 11990 if test "${ac_cv_header_libintl_h+set}" = set; then
 11991   echo $ECHO_N "(cached) $ECHO_C" >&6
 11992 else
 11993   ac_cv_header_libintl_h=$ac_header_preproc
 11994 fi
 11995 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 11996 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 11998 fi
 11999 if test $ac_cv_header_libintl_h = yes; then
 12000   gt_cv_func_dgettext_libintl="no"
 12001       libintl_extra_libs=""
 12004       # First check in libc
 12006       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 12007 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
 12008 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 12009   echo $ECHO_N "(cached) $ECHO_C" >&6
 12010 else
 12011   cat >conftest.$ac_ext <<_ACEOF
 12012 /* confdefs.h.  */
 12013 _ACEOF
 12014 cat confdefs.h >>conftest.$ac_ext
 12015 cat >>conftest.$ac_ext <<_ACEOF
 12016 /* end confdefs.h.  */
 12018 #include <libintl.h>
 12020 int
 12021 main ()
 12023 return !ngettext ("","", 1)
 12025   return 0;
 12027 _ACEOF
 12028 rm -f conftest.$ac_objext conftest$ac_exeext
 12029 if { (ac_try="$ac_link"
 12030 case "(($ac_try" in
 12031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12032   *) ac_try_echo=$ac_try;;
 12033 esac
 12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12035   (eval "$ac_link") 2>conftest.er1
 12036   ac_status=$?
 12037   grep -v '^ *+' conftest.er1 >conftest.err
 12038   rm -f conftest.er1
 12039   cat conftest.err >&5
 12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12041   (exit $ac_status); } && {
 12042 	 test -z "$ac_c_werror_flag" ||
 12043 	 test ! -s conftest.err
 12044        } && test -s conftest$ac_exeext &&
 12045        $as_test_x conftest$ac_exeext; then
 12046   gt_cv_func_ngettext_libc=yes
 12047 else
 12048   echo "$as_me: failed program was:" >&5
 12049 sed 's/^/| /' conftest.$ac_ext >&5
 12051 	gt_cv_func_ngettext_libc=no
 12052 fi
 12054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12055       conftest$ac_exeext conftest.$ac_ext
 12057 fi
 12058 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 12059 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
 12061       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 12062 	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 12063 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
 12064 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 12065   echo $ECHO_N "(cached) $ECHO_C" >&6
 12066 else
 12067   cat >conftest.$ac_ext <<_ACEOF
 12068 /* confdefs.h.  */
 12069 _ACEOF
 12070 cat confdefs.h >>conftest.$ac_ext
 12071 cat >>conftest.$ac_ext <<_ACEOF
 12072 /* end confdefs.h.  */
 12074 #include <libintl.h>
 12076 int
 12077 main ()
 12079 return !dgettext ("","")
 12081   return 0;
 12083 _ACEOF
 12084 rm -f conftest.$ac_objext conftest$ac_exeext
 12085 if { (ac_try="$ac_link"
 12086 case "(($ac_try" in
 12087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12088   *) ac_try_echo=$ac_try;;
 12089 esac
 12090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12091   (eval "$ac_link") 2>conftest.er1
 12092   ac_status=$?
 12093   grep -v '^ *+' conftest.er1 >conftest.err
 12094   rm -f conftest.er1
 12095   cat conftest.err >&5
 12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12097   (exit $ac_status); } && {
 12098 	 test -z "$ac_c_werror_flag" ||
 12099 	 test ! -s conftest.err
 12100        } && test -s conftest$ac_exeext &&
 12101        $as_test_x conftest$ac_exeext; then
 12102   gt_cv_func_dgettext_libc=yes
 12103 else
 12104   echo "$as_me: failed program was:" >&5
 12105 sed 's/^/| /' conftest.$ac_ext >&5
 12107 	gt_cv_func_dgettext_libc=no
 12108 fi
 12110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12111       conftest$ac_exeext conftest.$ac_ext
 12113 fi
 12114 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 12115 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
 12116       fi
 12118       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 12120 for ac_func in bind_textdomain_codeset
 12121 do
 12122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 12123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 12124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 12125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 12126   echo $ECHO_N "(cached) $ECHO_C" >&6
 12127 else
 12128   cat >conftest.$ac_ext <<_ACEOF
 12129 /* confdefs.h.  */
 12130 _ACEOF
 12131 cat confdefs.h >>conftest.$ac_ext
 12132 cat >>conftest.$ac_ext <<_ACEOF
 12133 /* end confdefs.h.  */
 12134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 12135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12136 #define $ac_func innocuous_$ac_func
 12138 /* System header to define __stub macros and hopefully few prototypes,
 12139     which can conflict with char $ac_func (); below.
 12140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12141     <limits.h> exists even on freestanding compilers.  */
 12143 #ifdef __STDC__
 12144 # include <limits.h>
 12145 #else
 12146 # include <assert.h>
 12147 #endif
 12149 #undef $ac_func
 12151 /* Override any GCC internal prototype to avoid an error.
 12152    Use char because int might match the return type of a GCC
 12153    builtin and then its argument prototype would still apply.  */
 12154 #ifdef __cplusplus
 12155 extern "C"
 12156 #endif
 12157 char $ac_func ();
 12158 /* The GNU C library defines this for functions which it implements
 12159     to always fail with ENOSYS.  Some functions are actually named
 12160     something starting with __ and the normal name is an alias.  */
 12161 #if defined __stub_$ac_func || defined __stub___$ac_func
 12162 choke me
 12163 #endif
 12165 int
 12166 main ()
 12168 return $ac_func ();
 12170   return 0;
 12172 _ACEOF
 12173 rm -f conftest.$ac_objext conftest$ac_exeext
 12174 if { (ac_try="$ac_link"
 12175 case "(($ac_try" in
 12176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12177   *) ac_try_echo=$ac_try;;
 12178 esac
 12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12180   (eval "$ac_link") 2>conftest.er1
 12181   ac_status=$?
 12182   grep -v '^ *+' conftest.er1 >conftest.err
 12183   rm -f conftest.er1
 12184   cat conftest.err >&5
 12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12186   (exit $ac_status); } && {
 12187 	 test -z "$ac_c_werror_flag" ||
 12188 	 test ! -s conftest.err
 12189        } && test -s conftest$ac_exeext &&
 12190        $as_test_x conftest$ac_exeext; then
 12191   eval "$as_ac_var=yes"
 12192 else
 12193   echo "$as_me: failed program was:" >&5
 12194 sed 's/^/| /' conftest.$ac_ext >&5
 12196 	eval "$as_ac_var=no"
 12197 fi
 12199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12200       conftest$ac_exeext conftest.$ac_ext
 12201 fi
 12202 ac_res=`eval echo '${'$as_ac_var'}'`
 12203 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 12204 echo "${ECHO_T}$ac_res" >&6; }
 12205 if test `eval echo '${'$as_ac_var'}'` = yes; then
 12206   cat >>confdefs.h <<_ACEOF
 12207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 12208 _ACEOF
 12210 fi
 12211 done
 12213       fi
 12216       # If we don't have everything we want, check in libintl
 12218       if test "$gt_cv_func_dgettext_libc" != "yes" \
 12219 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 12220          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 12222         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 12223 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
 12224 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 12225   echo $ECHO_N "(cached) $ECHO_C" >&6
 12226 else
 12227   ac_check_lib_save_LIBS=$LIBS
 12228 LIBS="-lintl  $LIBS"
 12229 cat >conftest.$ac_ext <<_ACEOF
 12230 /* confdefs.h.  */
 12231 _ACEOF
 12232 cat confdefs.h >>conftest.$ac_ext
 12233 cat >>conftest.$ac_ext <<_ACEOF
 12234 /* end confdefs.h.  */
 12236 /* Override any GCC internal prototype to avoid an error.
 12237    Use char because int might match the return type of a GCC
 12238    builtin and then its argument prototype would still apply.  */
 12239 #ifdef __cplusplus
 12240 extern "C"
 12241 #endif
 12242 char bindtextdomain ();
 12243 int
 12244 main ()
 12246 return bindtextdomain ();
 12248   return 0;
 12250 _ACEOF
 12251 rm -f conftest.$ac_objext conftest$ac_exeext
 12252 if { (ac_try="$ac_link"
 12253 case "(($ac_try" in
 12254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12255   *) ac_try_echo=$ac_try;;
 12256 esac
 12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12258   (eval "$ac_link") 2>conftest.er1
 12259   ac_status=$?
 12260   grep -v '^ *+' conftest.er1 >conftest.err
 12261   rm -f conftest.er1
 12262   cat conftest.err >&5
 12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12264   (exit $ac_status); } && {
 12265 	 test -z "$ac_c_werror_flag" ||
 12266 	 test ! -s conftest.err
 12267        } && test -s conftest$ac_exeext &&
 12268        $as_test_x conftest$ac_exeext; then
 12269   ac_cv_lib_intl_bindtextdomain=yes
 12270 else
 12271   echo "$as_me: failed program was:" >&5
 12272 sed 's/^/| /' conftest.$ac_ext >&5
 12274 	ac_cv_lib_intl_bindtextdomain=no
 12275 fi
 12277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12278       conftest$ac_exeext conftest.$ac_ext
 12279 LIBS=$ac_check_lib_save_LIBS
 12280 fi
 12281 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 12282 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
 12283 if test $ac_cv_lib_intl_bindtextdomain = yes; then
 12284   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 12285 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 12286 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 12287   echo $ECHO_N "(cached) $ECHO_C" >&6
 12288 else
 12289   ac_check_lib_save_LIBS=$LIBS
 12290 LIBS="-lintl  $LIBS"
 12291 cat >conftest.$ac_ext <<_ACEOF
 12292 /* confdefs.h.  */
 12293 _ACEOF
 12294 cat confdefs.h >>conftest.$ac_ext
 12295 cat >>conftest.$ac_ext <<_ACEOF
 12296 /* end confdefs.h.  */
 12298 /* Override any GCC internal prototype to avoid an error.
 12299    Use char because int might match the return type of a GCC
 12300    builtin and then its argument prototype would still apply.  */
 12301 #ifdef __cplusplus
 12302 extern "C"
 12303 #endif
 12304 char ngettext ();
 12305 int
 12306 main ()
 12308 return ngettext ();
 12310   return 0;
 12312 _ACEOF
 12313 rm -f conftest.$ac_objext conftest$ac_exeext
 12314 if { (ac_try="$ac_link"
 12315 case "(($ac_try" in
 12316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12317   *) ac_try_echo=$ac_try;;
 12318 esac
 12319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12320   (eval "$ac_link") 2>conftest.er1
 12321   ac_status=$?
 12322   grep -v '^ *+' conftest.er1 >conftest.err
 12323   rm -f conftest.er1
 12324   cat conftest.err >&5
 12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12326   (exit $ac_status); } && {
 12327 	 test -z "$ac_c_werror_flag" ||
 12328 	 test ! -s conftest.err
 12329        } && test -s conftest$ac_exeext &&
 12330        $as_test_x conftest$ac_exeext; then
 12331   ac_cv_lib_intl_ngettext=yes
 12332 else
 12333   echo "$as_me: failed program was:" >&5
 12334 sed 's/^/| /' conftest.$ac_ext >&5
 12336 	ac_cv_lib_intl_ngettext=no
 12337 fi
 12339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12340       conftest$ac_exeext conftest.$ac_ext
 12341 LIBS=$ac_check_lib_save_LIBS
 12342 fi
 12343 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 12344 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 12345 if test $ac_cv_lib_intl_ngettext = yes; then
 12346   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 12347 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
 12348 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 12349   echo $ECHO_N "(cached) $ECHO_C" >&6
 12350 else
 12351   ac_check_lib_save_LIBS=$LIBS
 12352 LIBS="-lintl  $LIBS"
 12353 cat >conftest.$ac_ext <<_ACEOF
 12354 /* confdefs.h.  */
 12355 _ACEOF
 12356 cat confdefs.h >>conftest.$ac_ext
 12357 cat >>conftest.$ac_ext <<_ACEOF
 12358 /* end confdefs.h.  */
 12360 /* Override any GCC internal prototype to avoid an error.
 12361    Use char because int might match the return type of a GCC
 12362    builtin and then its argument prototype would still apply.  */
 12363 #ifdef __cplusplus
 12364 extern "C"
 12365 #endif
 12366 char dgettext ();
 12367 int
 12368 main ()
 12370 return dgettext ();
 12372   return 0;
 12374 _ACEOF
 12375 rm -f conftest.$ac_objext conftest$ac_exeext
 12376 if { (ac_try="$ac_link"
 12377 case "(($ac_try" in
 12378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12379   *) ac_try_echo=$ac_try;;
 12380 esac
 12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12382   (eval "$ac_link") 2>conftest.er1
 12383   ac_status=$?
 12384   grep -v '^ *+' conftest.er1 >conftest.err
 12385   rm -f conftest.er1
 12386   cat conftest.err >&5
 12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12388   (exit $ac_status); } && {
 12389 	 test -z "$ac_c_werror_flag" ||
 12390 	 test ! -s conftest.err
 12391        } && test -s conftest$ac_exeext &&
 12392        $as_test_x conftest$ac_exeext; then
 12393   ac_cv_lib_intl_dgettext=yes
 12394 else
 12395   echo "$as_me: failed program was:" >&5
 12396 sed 's/^/| /' conftest.$ac_ext >&5
 12398 	ac_cv_lib_intl_dgettext=no
 12399 fi
 12401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12402       conftest$ac_exeext conftest.$ac_ext
 12403 LIBS=$ac_check_lib_save_LIBS
 12404 fi
 12405 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 12406 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
 12407 if test $ac_cv_lib_intl_dgettext = yes; then
 12408   gt_cv_func_dgettext_libintl=yes
 12409 fi
 12411 fi
 12413 fi
 12416 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 12417 	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 12418 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
 12419 	  { echo "$as_me:$LINENO: result: " >&5
 12420 echo "${ECHO_T}" >&6; }
 12421   	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 12422 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 12423 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 12424   echo $ECHO_N "(cached) $ECHO_C" >&6
 12425 else
 12426   ac_check_lib_save_LIBS=$LIBS
 12427 LIBS="-lintl -liconv $LIBS"
 12428 cat >conftest.$ac_ext <<_ACEOF
 12429 /* confdefs.h.  */
 12430 _ACEOF
 12431 cat confdefs.h >>conftest.$ac_ext
 12432 cat >>conftest.$ac_ext <<_ACEOF
 12433 /* end confdefs.h.  */
 12435 /* Override any GCC internal prototype to avoid an error.
 12436    Use char because int might match the return type of a GCC
 12437    builtin and then its argument prototype would still apply.  */
 12438 #ifdef __cplusplus
 12439 extern "C"
 12440 #endif
 12441 char ngettext ();
 12442 int
 12443 main ()
 12445 return ngettext ();
 12447   return 0;
 12449 _ACEOF
 12450 rm -f conftest.$ac_objext conftest$ac_exeext
 12451 if { (ac_try="$ac_link"
 12452 case "(($ac_try" in
 12453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12454   *) ac_try_echo=$ac_try;;
 12455 esac
 12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12457   (eval "$ac_link") 2>conftest.er1
 12458   ac_status=$?
 12459   grep -v '^ *+' conftest.er1 >conftest.err
 12460   rm -f conftest.er1
 12461   cat conftest.err >&5
 12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12463   (exit $ac_status); } && {
 12464 	 test -z "$ac_c_werror_flag" ||
 12465 	 test ! -s conftest.err
 12466        } && test -s conftest$ac_exeext &&
 12467        $as_test_x conftest$ac_exeext; then
 12468   ac_cv_lib_intl_ngettext=yes
 12469 else
 12470   echo "$as_me: failed program was:" >&5
 12471 sed 's/^/| /' conftest.$ac_ext >&5
 12473 	ac_cv_lib_intl_ngettext=no
 12474 fi
 12476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12477       conftest$ac_exeext conftest.$ac_ext
 12478 LIBS=$ac_check_lib_save_LIBS
 12479 fi
 12480 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 12481 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 12482 if test $ac_cv_lib_intl_ngettext = yes; then
 12483   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 12484 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
 12485 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 12486   echo $ECHO_N "(cached) $ECHO_C" >&6
 12487 else
 12488   ac_check_lib_save_LIBS=$LIBS
 12489 LIBS="-lintl -liconv $LIBS"
 12490 cat >conftest.$ac_ext <<_ACEOF
 12491 /* confdefs.h.  */
 12492 _ACEOF
 12493 cat confdefs.h >>conftest.$ac_ext
 12494 cat >>conftest.$ac_ext <<_ACEOF
 12495 /* end confdefs.h.  */
 12497 /* Override any GCC internal prototype to avoid an error.
 12498    Use char because int might match the return type of a GCC
 12499    builtin and then its argument prototype would still apply.  */
 12500 #ifdef __cplusplus
 12501 extern "C"
 12502 #endif
 12503 char dcgettext ();
 12504 int
 12505 main ()
 12507 return dcgettext ();
 12509   return 0;
 12511 _ACEOF
 12512 rm -f conftest.$ac_objext conftest$ac_exeext
 12513 if { (ac_try="$ac_link"
 12514 case "(($ac_try" in
 12515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12516   *) ac_try_echo=$ac_try;;
 12517 esac
 12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12519   (eval "$ac_link") 2>conftest.er1
 12520   ac_status=$?
 12521   grep -v '^ *+' conftest.er1 >conftest.err
 12522   rm -f conftest.er1
 12523   cat conftest.err >&5
 12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12525   (exit $ac_status); } && {
 12526 	 test -z "$ac_c_werror_flag" ||
 12527 	 test ! -s conftest.err
 12528        } && test -s conftest$ac_exeext &&
 12529        $as_test_x conftest$ac_exeext; then
 12530   ac_cv_lib_intl_dcgettext=yes
 12531 else
 12532   echo "$as_me: failed program was:" >&5
 12533 sed 's/^/| /' conftest.$ac_ext >&5
 12535 	ac_cv_lib_intl_dcgettext=no
 12536 fi
 12538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12539       conftest$ac_exeext conftest.$ac_ext
 12540 LIBS=$ac_check_lib_save_LIBS
 12541 fi
 12542 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 12543 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
 12544 if test $ac_cv_lib_intl_dcgettext = yes; then
 12545   gt_cv_func_dgettext_libintl=yes
 12546 			libintl_extra_libs=-liconv
 12547 else
 12549 fi
 12551 else
 12553 fi
 12555         fi
 12558         # If we found libintl, then check in it for bind_textdomain_codeset();
 12559         # we'll prefer libc if neither have bind_textdomain_codeset(),
 12560         # and both have dgettext and ngettext
 12562         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 12563           glib_save_LIBS="$LIBS"
 12564           LIBS="$LIBS -lintl $libintl_extra_libs"
 12565           unset ac_cv_func_bind_textdomain_codeset
 12567 for ac_func in bind_textdomain_codeset
 12568 do
 12569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 12570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 12571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 12572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 12573   echo $ECHO_N "(cached) $ECHO_C" >&6
 12574 else
 12575   cat >conftest.$ac_ext <<_ACEOF
 12576 /* confdefs.h.  */
 12577 _ACEOF
 12578 cat confdefs.h >>conftest.$ac_ext
 12579 cat >>conftest.$ac_ext <<_ACEOF
 12580 /* end confdefs.h.  */
 12581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 12582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12583 #define $ac_func innocuous_$ac_func
 12585 /* System header to define __stub macros and hopefully few prototypes,
 12586     which can conflict with char $ac_func (); below.
 12587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12588     <limits.h> exists even on freestanding compilers.  */
 12590 #ifdef __STDC__
 12591 # include <limits.h>
 12592 #else
 12593 # include <assert.h>
 12594 #endif
 12596 #undef $ac_func
 12598 /* Override any GCC internal prototype to avoid an error.
 12599    Use char because int might match the return type of a GCC
 12600    builtin and then its argument prototype would still apply.  */
 12601 #ifdef __cplusplus
 12602 extern "C"
 12603 #endif
 12604 char $ac_func ();
 12605 /* The GNU C library defines this for functions which it implements
 12606     to always fail with ENOSYS.  Some functions are actually named
 12607     something starting with __ and the normal name is an alias.  */
 12608 #if defined __stub_$ac_func || defined __stub___$ac_func
 12609 choke me
 12610 #endif
 12612 int
 12613 main ()
 12615 return $ac_func ();
 12617   return 0;
 12619 _ACEOF
 12620 rm -f conftest.$ac_objext conftest$ac_exeext
 12621 if { (ac_try="$ac_link"
 12622 case "(($ac_try" in
 12623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12624   *) ac_try_echo=$ac_try;;
 12625 esac
 12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12627   (eval "$ac_link") 2>conftest.er1
 12628   ac_status=$?
 12629   grep -v '^ *+' conftest.er1 >conftest.err
 12630   rm -f conftest.er1
 12631   cat conftest.err >&5
 12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12633   (exit $ac_status); } && {
 12634 	 test -z "$ac_c_werror_flag" ||
 12635 	 test ! -s conftest.err
 12636        } && test -s conftest$ac_exeext &&
 12637        $as_test_x conftest$ac_exeext; then
 12638   eval "$as_ac_var=yes"
 12639 else
 12640   echo "$as_me: failed program was:" >&5
 12641 sed 's/^/| /' conftest.$ac_ext >&5
 12643 	eval "$as_ac_var=no"
 12644 fi
 12646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12647       conftest$ac_exeext conftest.$ac_ext
 12648 fi
 12649 ac_res=`eval echo '${'$as_ac_var'}'`
 12650 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 12651 echo "${ECHO_T}$ac_res" >&6; }
 12652 if test `eval echo '${'$as_ac_var'}'` = yes; then
 12653   cat >>confdefs.h <<_ACEOF
 12654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 12655 _ACEOF
 12657 fi
 12658 done
 12660           LIBS="$glib_save_LIBS"
 12662           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 12663             gt_cv_func_dgettext_libc=no
 12664           else
 12665             if test "$gt_cv_func_dgettext_libc" = "yes" \
 12666 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 12667               gt_cv_func_dgettext_libintl=no
 12668             fi
 12669           fi
 12670         fi
 12671       fi
 12673       if test "$gt_cv_func_dgettext_libc" = "yes" \
 12674 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 12675         gt_cv_have_gettext=yes
 12676       fi
 12678       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 12679         INTLLIBS="-lintl $libintl_extra_libs"
 12680       fi
 12682       if test "$gt_cv_have_gettext" = "yes"; then
 12684 cat >>confdefs.h <<\_ACEOF
 12685 #define HAVE_GETTEXT 1
 12686 _ACEOF
 12688 	# Extract the first word of "msgfmt", so it can be a program name with args.
 12689 set dummy msgfmt; ac_word=$2
 12690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 12691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 12692 if test "${ac_cv_path_MSGFMT+set}" = set; then
 12693   echo $ECHO_N "(cached) $ECHO_C" >&6
 12694 else
 12695   case "$MSGFMT" in
 12696   /*)
 12697   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 12698   ;;
 12699   *)
 12700   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 12701   for ac_dir in $PATH; do
 12702     test -z "$ac_dir" && ac_dir=.
 12703     if test -f $ac_dir/$ac_word; then
 12704       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 12705 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 12706 	break
 12707       fi
 12708     fi
 12709   done
 12710   IFS="$ac_save_ifs"
 12711   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 12712   ;;
 12713 esac
 12714 fi
 12715 MSGFMT="$ac_cv_path_MSGFMT"
 12716 if test "$MSGFMT" != "no"; then
 12717   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 12718 echo "${ECHO_T}$MSGFMT" >&6; }
 12719 else
 12720   { echo "$as_me:$LINENO: result: no" >&5
 12721 echo "${ECHO_T}no" >&6; }
 12722 fi
 12723 	if test "$MSGFMT" != "no"; then
 12724           glib_save_LIBS="$LIBS"
 12725           LIBS="$LIBS $INTLLIBS"
 12727 for ac_func in dcgettext
 12728 do
 12729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 12730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 12731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 12732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 12733   echo $ECHO_N "(cached) $ECHO_C" >&6
 12734 else
 12735   cat >conftest.$ac_ext <<_ACEOF
 12736 /* confdefs.h.  */
 12737 _ACEOF
 12738 cat confdefs.h >>conftest.$ac_ext
 12739 cat >>conftest.$ac_ext <<_ACEOF
 12740 /* end confdefs.h.  */
 12741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 12742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12743 #define $ac_func innocuous_$ac_func
 12745 /* System header to define __stub macros and hopefully few prototypes,
 12746     which can conflict with char $ac_func (); below.
 12747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12748     <limits.h> exists even on freestanding compilers.  */
 12750 #ifdef __STDC__
 12751 # include <limits.h>
 12752 #else
 12753 # include <assert.h>
 12754 #endif
 12756 #undef $ac_func
 12758 /* Override any GCC internal prototype to avoid an error.
 12759    Use char because int might match the return type of a GCC
 12760    builtin and then its argument prototype would still apply.  */
 12761 #ifdef __cplusplus
 12762 extern "C"
 12763 #endif
 12764 char $ac_func ();
 12765 /* The GNU C library defines this for functions which it implements
 12766     to always fail with ENOSYS.  Some functions are actually named
 12767     something starting with __ and the normal name is an alias.  */
 12768 #if defined __stub_$ac_func || defined __stub___$ac_func
 12769 choke me
 12770 #endif
 12772 int
 12773 main ()
 12775 return $ac_func ();
 12777   return 0;
 12779 _ACEOF
 12780 rm -f conftest.$ac_objext conftest$ac_exeext
 12781 if { (ac_try="$ac_link"
 12782 case "(($ac_try" in
 12783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12784   *) ac_try_echo=$ac_try;;
 12785 esac
 12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12787   (eval "$ac_link") 2>conftest.er1
 12788   ac_status=$?
 12789   grep -v '^ *+' conftest.er1 >conftest.err
 12790   rm -f conftest.er1
 12791   cat conftest.err >&5
 12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12793   (exit $ac_status); } && {
 12794 	 test -z "$ac_c_werror_flag" ||
 12795 	 test ! -s conftest.err
 12796        } && test -s conftest$ac_exeext &&
 12797        $as_test_x conftest$ac_exeext; then
 12798   eval "$as_ac_var=yes"
 12799 else
 12800   echo "$as_me: failed program was:" >&5
 12801 sed 's/^/| /' conftest.$ac_ext >&5
 12803 	eval "$as_ac_var=no"
 12804 fi
 12806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12807       conftest$ac_exeext conftest.$ac_ext
 12808 fi
 12809 ac_res=`eval echo '${'$as_ac_var'}'`
 12810 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 12811 echo "${ECHO_T}$ac_res" >&6; }
 12812 if test `eval echo '${'$as_ac_var'}'` = yes; then
 12813   cat >>confdefs.h <<_ACEOF
 12814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 12815 _ACEOF
 12817 fi
 12818 done
 12820 	  MSGFMT_OPTS=
 12821 	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 12822 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
 12823 	  cat >conftest.foo <<_ACEOF
 12825 msgid ""
 12826 msgstr ""
 12827 "Content-Type: text/plain; charset=UTF-8\n"
 12828 "Project-Id-Version: test 1.0\n"
 12829 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 12830 "Last-Translator: test <foo@bar.xx>\n"
 12831 "Language-Team: C <LL@li.org>\n"
 12832 "MIME-Version: 1.0\n"
 12833 "Content-Transfer-Encoding: 8bit\n"
 12835 _ACEOF
 12836 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
 12837   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 12838   ac_status=$?
 12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12840   (exit $ac_status); }; then
 12841   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
 12842 echo "${ECHO_T}yes" >&6; }
 12843 else { echo "$as_me:$LINENO: result: no" >&5
 12844 echo "${ECHO_T}no" >&6; }
 12845 echo "$as_me: failed input was:" >&5
 12846 sed 's/^/| /' conftest.foo >&5
 12847 fi
 12849 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 12850 set dummy gmsgfmt; ac_word=$2
 12851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 12852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 12853 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 12854   echo $ECHO_N "(cached) $ECHO_C" >&6
 12855 else
 12856   case $GMSGFMT in
 12857   [\\/]* | ?:[\\/]*)
 12858   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 12859   ;;
 12860   *)
 12861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12862 for as_dir in $PATH
 12863 do
 12864   IFS=$as_save_IFS
 12865   test -z "$as_dir" && as_dir=.
 12866   for ac_exec_ext in '' $ac_executable_extensions; do
 12867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 12868     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 12869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 12870     break 2
 12871   fi
 12872 done
 12873 done
 12874 IFS=$as_save_IFS
 12876   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 12877   ;;
 12878 esac
 12879 fi
 12880 GMSGFMT=$ac_cv_path_GMSGFMT
 12881 if test -n "$GMSGFMT"; then
 12882   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 12883 echo "${ECHO_T}$GMSGFMT" >&6; }
 12884 else
 12885   { echo "$as_me:$LINENO: result: no" >&5
 12886 echo "${ECHO_T}no" >&6; }
 12887 fi
 12890 	  # Extract the first word of "xgettext", so it can be a program name with args.
 12891 set dummy xgettext; ac_word=$2
 12892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 12893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 12894 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 12895   echo $ECHO_N "(cached) $ECHO_C" >&6
 12896 else
 12897   case "$XGETTEXT" in
 12898   /*)
 12899   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 12900   ;;
 12901   *)
 12902   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 12903   for ac_dir in $PATH; do
 12904     test -z "$ac_dir" && ac_dir=.
 12905     if test -f $ac_dir/$ac_word; then
 12906       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 12907 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 12908 	break
 12909       fi
 12910     fi
 12911   done
 12912   IFS="$ac_save_ifs"
 12913   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 12914   ;;
 12915 esac
 12916 fi
 12917 XGETTEXT="$ac_cv_path_XGETTEXT"
 12918 if test "$XGETTEXT" != ":"; then
 12919   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 12920 echo "${ECHO_T}$XGETTEXT" >&6; }
 12921 else
 12922   { echo "$as_me:$LINENO: result: no" >&5
 12923 echo "${ECHO_T}no" >&6; }
 12924 fi
 12926 	  cat >conftest.$ac_ext <<_ACEOF
 12927 /* confdefs.h.  */
 12928 _ACEOF
 12929 cat confdefs.h >>conftest.$ac_ext
 12930 cat >>conftest.$ac_ext <<_ACEOF
 12931 /* end confdefs.h.  */
 12933 int
 12934 main ()
 12936 extern int _nl_msg_cat_cntr;
 12937 			 return _nl_msg_cat_cntr
 12939   return 0;
 12941 _ACEOF
 12942 rm -f conftest.$ac_objext conftest$ac_exeext
 12943 if { (ac_try="$ac_link"
 12944 case "(($ac_try" in
 12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12946   *) ac_try_echo=$ac_try;;
 12947 esac
 12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12949   (eval "$ac_link") 2>conftest.er1
 12950   ac_status=$?
 12951   grep -v '^ *+' conftest.er1 >conftest.err
 12952   rm -f conftest.er1
 12953   cat conftest.err >&5
 12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12955   (exit $ac_status); } && {
 12956 	 test -z "$ac_c_werror_flag" ||
 12957 	 test ! -s conftest.err
 12958        } && test -s conftest$ac_exeext &&
 12959        $as_test_x conftest$ac_exeext; then
 12960   CATOBJEXT=.gmo
 12961              DATADIRNAME=share
 12962 else
 12963   echo "$as_me: failed program was:" >&5
 12964 sed 's/^/| /' conftest.$ac_ext >&5
 12966 	case $host in
 12967 	    *-*-solaris*)
 12968 	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 12969 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 12970 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 12971   echo $ECHO_N "(cached) $ECHO_C" >&6
 12972 else
 12973   cat >conftest.$ac_ext <<_ACEOF
 12974 /* confdefs.h.  */
 12975 _ACEOF
 12976 cat confdefs.h >>conftest.$ac_ext
 12977 cat >>conftest.$ac_ext <<_ACEOF
 12978 /* end confdefs.h.  */
 12979 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 12980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12981 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 12983 /* System header to define __stub macros and hopefully few prototypes,
 12984     which can conflict with char bind_textdomain_codeset (); below.
 12985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12986     <limits.h> exists even on freestanding compilers.  */
 12988 #ifdef __STDC__
 12989 # include <limits.h>
 12990 #else
 12991 # include <assert.h>
 12992 #endif
 12994 #undef bind_textdomain_codeset
 12996 /* Override any GCC internal prototype to avoid an error.
 12997    Use char because int might match the return type of a GCC
 12998    builtin and then its argument prototype would still apply.  */
 12999 #ifdef __cplusplus
 13000 extern "C"
 13001 #endif
 13002 char bind_textdomain_codeset ();
 13003 /* The GNU C library defines this for functions which it implements
 13004     to always fail with ENOSYS.  Some functions are actually named
 13005     something starting with __ and the normal name is an alias.  */
 13006 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 13007 choke me
 13008 #endif
 13010 int
 13011 main ()
 13013 return bind_textdomain_codeset ();
 13015   return 0;
 13017 _ACEOF
 13018 rm -f conftest.$ac_objext conftest$ac_exeext
 13019 if { (ac_try="$ac_link"
 13020 case "(($ac_try" in
 13021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13022   *) ac_try_echo=$ac_try;;
 13023 esac
 13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13025   (eval "$ac_link") 2>conftest.er1
 13026   ac_status=$?
 13027   grep -v '^ *+' conftest.er1 >conftest.err
 13028   rm -f conftest.er1
 13029   cat conftest.err >&5
 13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13031   (exit $ac_status); } && {
 13032 	 test -z "$ac_c_werror_flag" ||
 13033 	 test ! -s conftest.err
 13034        } && test -s conftest$ac_exeext &&
 13035        $as_test_x conftest$ac_exeext; then
 13036   ac_cv_func_bind_textdomain_codeset=yes
 13037 else
 13038   echo "$as_me: failed program was:" >&5
 13039 sed 's/^/| /' conftest.$ac_ext >&5
 13041 	ac_cv_func_bind_textdomain_codeset=no
 13042 fi
 13044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13045       conftest$ac_exeext conftest.$ac_ext
 13046 fi
 13047 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 13048 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 13049 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 13050   CATOBJEXT=.gmo
 13051                DATADIRNAME=share
 13052 else
 13053   CATOBJEXT=.mo
 13054                DATADIRNAME=lib
 13055 fi
 13057 	    ;;
 13058 	    *)
 13059 	    CATOBJEXT=.mo
 13060             DATADIRNAME=lib
 13061 	    ;;
 13062 	    esac
 13063 fi
 13065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13066       conftest$ac_exeext conftest.$ac_ext
 13067           LIBS="$glib_save_LIBS"
 13068 	  INSTOBJEXT=.mo
 13069 	else
 13070 	  gt_cv_have_gettext=no
 13071 	fi
 13072       fi
 13074 fi
 13078     if test "$gt_cv_have_gettext" = "yes" ; then
 13080 cat >>confdefs.h <<\_ACEOF
 13081 #define ENABLE_NLS 1
 13082 _ACEOF
 13084     fi
 13086         if test "$XGETTEXT" != ":"; then
 13087                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 13088         : ;
 13089       else
 13090         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 13091 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 13092         XGETTEXT=":"
 13093       fi
 13094     fi
 13096     # We need to process the po/ directory.
 13097     POSUB=po
 13099     ac_config_commands="$ac_config_commands default-1"
 13102                 for lang in $ALL_LINGUAS; do
 13103       GMOFILES="$GMOFILES $lang.gmo"
 13104       POFILES="$POFILES $lang.po"
 13105     done
 13119    if test "$gt_cv_have_gettext" = "yes"; then
 13120      if test "x$ALL_LINGUAS" = "x"; then
 13121        LINGUAS=
 13122      else
 13123        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 13124 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
 13125        NEW_LINGUAS=
 13126        for presentlang in $ALL_LINGUAS; do
 13127          useit=no
 13128          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 13129            desiredlanguages="$LINGUAS"
 13130          else
 13131            desiredlanguages="$ALL_LINGUAS"
 13132          fi
 13133          for desiredlang in $desiredlanguages; do
 13134  	   # Use the presentlang catalog if desiredlang is
 13135            #   a. equal to presentlang, or
 13136            #   b. a variant of presentlang (because in this case,
 13137            #      presentlang can be used as a fallback for messages
 13138            #      which are not translated in the desiredlang catalog).
 13139            case "$desiredlang" in
 13140              "$presentlang"*) useit=yes;;
 13141            esac
 13142          done
 13143          if test $useit = yes; then
 13144            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 13145          fi
 13146        done
 13147        LINGUAS=$NEW_LINGUAS
 13148        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
 13149 echo "${ECHO_T}$LINGUAS" >&6; }
 13150      fi
 13152           if test -n "$LINGUAS"; then
 13153        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 13154      fi
 13155    fi
 13157             MKINSTALLDIRS=
 13158    if test -n "$ac_aux_dir"; then
 13159      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 13160    fi
 13161    if test -z "$MKINSTALLDIRS"; then
 13162      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 13163    fi
 13166          test -d po || mkdir po
 13167    if test "x$srcdir" != "x."; then
 13168      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 13169        posrcprefix="$srcdir/"
 13170      else
 13171        posrcprefix="../$srcdir/"
 13172      fi
 13173    else
 13174      posrcprefix="../"
 13175    fi
 13176    rm -f po/POTFILES
 13177    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 13178 	< $srcdir/po/POTFILES.in > po/POTFILES
 13181 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
 13183 cat >confcache <<\_ACEOF
 13184 # This file is a shell script that caches the results of configure
 13185 # tests run on this system so they can be shared between configure
 13186 # scripts and configure runs, see configure's option --config-cache.
 13187 # It is not useful on other systems.  If it contains results you don't
 13188 # want to keep, you may remove or edit it.
 13190 # config.status only pays attention to the cache file if you give it
 13191 # the --recheck option to rerun configure.
 13193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 13194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 13195 # following values.
 13197 _ACEOF
 13199 # The following way of writing the cache mishandles newlines in values,
 13200 # but we know of no workaround that is simple, portable, and efficient.
 13201 # So, we kill variables containing newlines.
 13202 # Ultrix sh set writes to stderr and can't be redirected directly,
 13203 # and sets the high bit in the cache file unless we assign to the vars.
 13205   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 13206     eval ac_val=\$$ac_var
 13207     case $ac_val in #(
 13208     *${as_nl}*)
 13209       case $ac_var in #(
 13210       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 13211 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 13212       esac
 13213       case $ac_var in #(
 13214       _ | IFS | as_nl) ;; #(
 13215       *) $as_unset $ac_var ;;
 13216       esac ;;
 13217     esac
 13218   done
 13220   (set) 2>&1 |
 13221     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 13222     *${as_nl}ac_space=\ *)
 13223       # `set' does not quote correctly, so add quotes (double-quote
 13224       # substitution turns \\\\ into \\, and sed turns \\ into \).
 13225       sed -n \
 13226 	"s/'/'\\\\''/g;
 13227 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 13228       ;; #(
 13229     *)
 13230       # `set' quotes correctly as required by POSIX, so do not add quotes.
 13231       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 13232       ;;
 13233     esac |
 13234     sort
 13235 ) |
 13236   sed '
 13237      /^ac_cv_env_/b end
 13238      t clear
 13239      :clear
 13240      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 13241      t end
 13242      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 13243      :end' >>confcache
 13244 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 13245   if test -w "$cache_file"; then
 13246     test "x$cache_file" != "x/dev/null" &&
 13247       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 13248 echo "$as_me: updating cache $cache_file" >&6;}
 13249     cat confcache >$cache_file
 13250   else
 13251     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 13252 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 13253   fi
 13254 fi
 13255 rm -f confcache
 13257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 13258 # Let make expand exec_prefix.
 13259 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 13261 DEFS=-DHAVE_CONFIG_H
 13263 ac_libobjs=
 13264 ac_ltlibobjs=
 13265 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 13266   # 1. Remove the extension, and $U if already installed.
 13267   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 13268   ac_i=`echo "$ac_i" | sed "$ac_script"`
 13269   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 13270   #    will be set to the directory where LIBOBJS objects are built.
 13271   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 13272   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 13273 done
 13274 LIBOBJS=$ac_libobjs
 13276 LTLIBOBJS=$ac_ltlibobjs
 13279 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 13280   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 13281 Usually this means the macro was only invoked conditionally." >&5
 13282 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 13283 Usually this means the macro was only invoked conditionally." >&2;}
 13284    { (exit 1); exit 1; }; }
 13285 fi
 13286 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 13287   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 13288 Usually this means the macro was only invoked conditionally." >&5
 13289 echo "$as_me: error: conditional \"AMDEP\" was never defined.
 13290 Usually this means the macro was only invoked conditionally." >&2;}
 13291    { (exit 1); exit 1; }; }
 13292 fi
 13293 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 13294   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 13295 Usually this means the macro was only invoked conditionally." >&5
 13296 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 13297 Usually this means the macro was only invoked conditionally." >&2;}
 13298    { (exit 1); exit 1; }; }
 13299 fi
 13300 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 13301   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 13302 Usually this means the macro was only invoked conditionally." >&5
 13303 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 13304 Usually this means the macro was only invoked conditionally." >&2;}
 13305    { (exit 1); exit 1; }; }
 13306 fi
 13307 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 13308   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 13309 Usually this means the macro was only invoked conditionally." >&5
 13310 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 13311 Usually this means the macro was only invoked conditionally." >&2;}
 13312    { (exit 1); exit 1; }; }
 13313 fi
 13314 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
 13315   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
 13316 Usually this means the macro was only invoked conditionally." >&5
 13317 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
 13318 Usually this means the macro was only invoked conditionally." >&2;}
 13319    { (exit 1); exit 1; }; }
 13320 fi
 13321 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 13322   { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 13323 Usually this means the macro was only invoked conditionally." >&5
 13324 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 13325 Usually this means the macro was only invoked conditionally." >&2;}
 13326    { (exit 1); exit 1; }; }
 13327 fi
 13328 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
 13329   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
 13330 Usually this means the macro was only invoked conditionally." >&5
 13331 echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
 13332 Usually this means the macro was only invoked conditionally." >&2;}
 13333    { (exit 1); exit 1; }; }
 13334 fi
 13335 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 13336   { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 13337 Usually this means the macro was only invoked conditionally." >&5
 13338 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 13339 Usually this means the macro was only invoked conditionally." >&2;}
 13340    { (exit 1); exit 1; }; }
 13341 fi
 13342 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 13343   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 13344 Usually this means the macro was only invoked conditionally." >&5
 13345 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 13346 Usually this means the macro was only invoked conditionally." >&2;}
 13347    { (exit 1); exit 1; }; }
 13348 fi
 13349 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 13350   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 13351 Usually this means the macro was only invoked conditionally." >&5
 13352 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 13353 Usually this means the macro was only invoked conditionally." >&2;}
 13354    { (exit 1); exit 1; }; }
 13355 fi
 13356 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 13357   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 13358 Usually this means the macro was only invoked conditionally." >&5
 13359 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 13360 Usually this means the macro was only invoked conditionally." >&2;}
 13361    { (exit 1); exit 1; }; }
 13362 fi
 13363 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 13364   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 13365 Usually this means the macro was only invoked conditionally." >&5
 13366 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 13367 Usually this means the macro was only invoked conditionally." >&2;}
 13368    { (exit 1); exit 1; }; }
 13369 fi
 13370 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 13371   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 13372 Usually this means the macro was only invoked conditionally." >&5
 13373 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
 13374 Usually this means the macro was only invoked conditionally." >&2;}
 13375    { (exit 1); exit 1; }; }
 13376 fi
 13377 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
 13378   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
 13379 Usually this means the macro was only invoked conditionally." >&5
 13380 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
 13381 Usually this means the macro was only invoked conditionally." >&2;}
 13382    { (exit 1); exit 1; }; }
 13383 fi
 13384 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 13385   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 13386 Usually this means the macro was only invoked conditionally." >&5
 13387 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 13388 Usually this means the macro was only invoked conditionally." >&2;}
 13389    { (exit 1); exit 1; }; }
 13390 fi
 13391 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 13392   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 13393 Usually this means the macro was only invoked conditionally." >&5
 13394 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 13395 Usually this means the macro was only invoked conditionally." >&2;}
 13396    { (exit 1); exit 1; }; }
 13397 fi
 13398 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 13399   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 13400 Usually this means the macro was only invoked conditionally." >&5
 13401 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 13402 Usually this means the macro was only invoked conditionally." >&2;}
 13403    { (exit 1); exit 1; }; }
 13404 fi
 13405 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 13406   { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 13407 Usually this means the macro was only invoked conditionally." >&5
 13408 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 13409 Usually this means the macro was only invoked conditionally." >&2;}
 13410    { (exit 1); exit 1; }; }
 13411 fi
 13412 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
 13413   { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
 13414 Usually this means the macro was only invoked conditionally." >&5
 13415 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
 13416 Usually this means the macro was only invoked conditionally." >&2;}
 13417    { (exit 1); exit 1; }; }
 13418 fi
 13419 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
 13420   { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
 13421 Usually this means the macro was only invoked conditionally." >&5
 13422 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
 13423 Usually this means the macro was only invoked conditionally." >&2;}
 13424    { (exit 1); exit 1; }; }
 13425 fi
 13426 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 13427   { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 13428 Usually this means the macro was only invoked conditionally." >&5
 13429 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 13430 Usually this means the macro was only invoked conditionally." >&2;}
 13431    { (exit 1); exit 1; }; }
 13432 fi
 13433 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
 13434   { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
 13435 Usually this means the macro was only invoked conditionally." >&5
 13436 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
 13437 Usually this means the macro was only invoked conditionally." >&2;}
 13438    { (exit 1); exit 1; }; }
 13439 fi
 13440 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 13441   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 13442 Usually this means the macro was only invoked conditionally." >&5
 13443 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 13444 Usually this means the macro was only invoked conditionally." >&2;}
 13445    { (exit 1); exit 1; }; }
 13446 fi
 13447 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 13448   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 13449 Usually this means the macro was only invoked conditionally." >&5
 13450 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 13451 Usually this means the macro was only invoked conditionally." >&2;}
 13452    { (exit 1); exit 1; }; }
 13453 fi
 13455 : ${CONFIG_STATUS=./config.status}
 13456 ac_clean_files_save=$ac_clean_files
 13457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 13458 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 13459 echo "$as_me: creating $CONFIG_STATUS" >&6;}
 13460 cat >$CONFIG_STATUS <<_ACEOF
 13461 #! $SHELL
 13462 # Generated by $as_me.
 13463 # Run this file to recreate the current configuration.
 13464 # Compiler output produced by configure, useful for debugging
 13465 # configure, is in config.log if it exists.
 13467 debug=false
 13468 ac_cs_recheck=false
 13469 ac_cs_silent=false
 13470 SHELL=\${CONFIG_SHELL-$SHELL}
 13471 _ACEOF
 13473 cat >>$CONFIG_STATUS <<\_ACEOF
 13474 ## --------------------- ##
 13475 ## M4sh Initialization.  ##
 13476 ## --------------------- ##
 13478 # Be more Bourne compatible
 13479 DUALCASE=1; export DUALCASE # for MKS sh
 13480 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 13481   emulate sh
 13482   NULLCMD=:
 13483   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 13484   # is contrary to our usage.  Disable this feature.
 13485   alias -g '${1+"$@"}'='"$@"'
 13486   setopt NO_GLOB_SUBST
 13487 else
 13488   case `(set -o) 2>/dev/null` in
 13489   *posix*) set -o posix ;;
 13490 esac
 13492 fi
 13497 # PATH needs CR
 13498 # Avoid depending upon Character Ranges.
 13499 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 13500 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 13501 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 13502 as_cr_digits='0123456789'
 13503 as_cr_alnum=$as_cr_Letters$as_cr_digits
 13505 # The user is always right.
 13506 if test "${PATH_SEPARATOR+set}" != set; then
 13507   echo "#! /bin/sh" >conf$$.sh
 13508   echo  "exit 0"   >>conf$$.sh
 13509   chmod +x conf$$.sh
 13510   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 13511     PATH_SEPARATOR=';'
 13512   else
 13513     PATH_SEPARATOR=:
 13514   fi
 13515   rm -f conf$$.sh
 13516 fi
 13518 # Support unset when possible.
 13519 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 13520   as_unset=unset
 13521 else
 13522   as_unset=false
 13523 fi
 13526 # IFS
 13527 # We need space, tab and new line, in precisely that order.  Quoting is
 13528 # there to prevent editors from complaining about space-tab.
 13529 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 13530 # splitting by setting IFS to empty value.)
 13531 as_nl='
 13533 IFS=" ""	$as_nl"
 13535 # Find who we are.  Look in the path if we contain no directory separator.
 13536 case $0 in
 13537   *[\\/]* ) as_myself=$0 ;;
 13538   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13539 for as_dir in $PATH
 13540 do
 13541   IFS=$as_save_IFS
 13542   test -z "$as_dir" && as_dir=.
 13543   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 13544 done
 13545 IFS=$as_save_IFS
 13547      ;;
 13548 esac
 13549 # We did not find ourselves, most probably we were run as `sh COMMAND'
 13550 # in which case we are not to be found in the path.
 13551 if test "x$as_myself" = x; then
 13552   as_myself=$0
 13553 fi
 13554 if test ! -f "$as_myself"; then
 13555   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 13556   { (exit 1); exit 1; }
 13557 fi
 13559 # Work around bugs in pre-3.0 UWIN ksh.
 13560 for as_var in ENV MAIL MAILPATH
 13561 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 13562 done
 13563 PS1='$ '
 13564 PS2='> '
 13565 PS4='+ '
 13567 # NLS nuisances.
 13568 for as_var in \
 13569   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 13570   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 13571   LC_TELEPHONE LC_TIME
 13572 do
 13573   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 13574     eval $as_var=C; export $as_var
 13575   else
 13576     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 13577   fi
 13578 done
 13580 # Required to use basename.
 13581 if expr a : '\(a\)' >/dev/null 2>&1 &&
 13582    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 13583   as_expr=expr
 13584 else
 13585   as_expr=false
 13586 fi
 13588 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 13589   as_basename=basename
 13590 else
 13591   as_basename=false
 13592 fi
 13595 # Name of the executable.
 13596 as_me=`$as_basename -- "$0" ||
 13597 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 13598 	 X"$0" : 'X\(//\)$' \| \
 13599 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 13600 echo X/"$0" |
 13601     sed '/^.*\/\([^/][^/]*\)\/*$/{
 13602 	    s//\1/
 13605 	  /^X\/\(\/\/\)$/{
 13606 	    s//\1/
 13609 	  /^X\/\(\/\).*/{
 13610 	    s//\1/
 13613 	  s/.*/./; q'`
 13615 # CDPATH.
 13616 $as_unset CDPATH
 13620   as_lineno_1=$LINENO
 13621   as_lineno_2=$LINENO
 13622   test "x$as_lineno_1" != "x$as_lineno_2" &&
 13623   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 13625   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 13626   # uniformly replaced by the line number.  The first 'sed' inserts a
 13627   # line-number line after each line using $LINENO; the second 'sed'
 13628   # does the real work.  The second script uses 'N' to pair each
 13629   # line-number line with the line containing $LINENO, and appends
 13630   # trailing '-' during substitution so that $LINENO is not a special
 13631   # case at line end.
 13632   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 13633   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 13634   # E. McMahon (1931-1989) for sed's syntax.  :-)
 13635   sed -n '
 13637     /[$]LINENO/=
 13638   ' <$as_myself |
 13639     sed '
 13640       s/[$]LINENO.*/&-/
 13641       t lineno
 13643       :lineno
 13645       :loop
 13646       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 13647       t loop
 13648       s/-\n.*//
 13649     ' >$as_me.lineno &&
 13650   chmod +x "$as_me.lineno" ||
 13651     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 13652    { (exit 1); exit 1; }; }
 13654   # Don't try to exec as it changes $[0], causing all sort of problems
 13655   # (the dirname of $[0] is not the place where we might find the
 13656   # original and so on.  Autoconf is especially sensitive to this).
 13657   . "./$as_me.lineno"
 13658   # Exit status is that of the last command.
 13659   exit
 13663 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 13664   as_dirname=dirname
 13665 else
 13666   as_dirname=false
 13667 fi
 13669 ECHO_C= ECHO_N= ECHO_T=
 13670 case `echo -n x` in
 13671 -n*)
 13672   case `echo 'x\c'` in
 13673   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 13674   *)   ECHO_C='\c';;
 13675   esac;;
 13676 *)
 13677   ECHO_N='-n';;
 13678 esac
 13680 if expr a : '\(a\)' >/dev/null 2>&1 &&
 13681    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 13682   as_expr=expr
 13683 else
 13684   as_expr=false
 13685 fi
 13687 rm -f conf$$ conf$$.exe conf$$.file
 13688 if test -d conf$$.dir; then
 13689   rm -f conf$$.dir/conf$$.file
 13690 else
 13691   rm -f conf$$.dir
 13692   mkdir conf$$.dir
 13693 fi
 13694 echo >conf$$.file
 13695 if ln -s conf$$.file conf$$ 2>/dev/null; then
 13696   as_ln_s='ln -s'
 13697   # ... but there are two gotchas:
 13698   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 13699   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 13700   # In both cases, we have to default to `cp -p'.
 13701   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 13702     as_ln_s='cp -p'
 13703 elif ln conf$$.file conf$$ 2>/dev/null; then
 13704   as_ln_s=ln
 13705 else
 13706   as_ln_s='cp -p'
 13707 fi
 13708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 13709 rmdir conf$$.dir 2>/dev/null
 13711 if mkdir -p . 2>/dev/null; then
 13712   as_mkdir_p=:
 13713 else
 13714   test -d ./-p && rmdir ./-p
 13715   as_mkdir_p=false
 13716 fi
 13718 if test -x / >/dev/null 2>&1; then
 13719   as_test_x='test -x'
 13720 else
 13721   if ls -dL / >/dev/null 2>&1; then
 13722     as_ls_L_option=L
 13723   else
 13724     as_ls_L_option=
 13725   fi
 13726   as_test_x='
 13727     eval sh -c '\''
 13728       if test -d "$1"; then
 13729         test -d "$1/.";
 13730       else
 13731 	case $1 in
 13732         -*)set "./$1";;
 13733 	esac;
 13734 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 13735 	???[sx]*):;;*)false;;esac;fi
 13736     '\'' sh
 13738 fi
 13739 as_executable_p=$as_test_x
 13741 # Sed expression to map a string onto a valid CPP name.
 13742 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 13744 # Sed expression to map a string onto a valid variable name.
 13745 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 13748 exec 6>&1
 13750 # Save the log message, to keep $[0] and so on meaningful, and to
 13751 # report actual input values of CONFIG_FILES etc. instead of their
 13752 # values after options handling.
 13753 ac_log="
 13754 This file was extended by $as_me, which was
 13755 generated by GNU Autoconf 2.61.  Invocation command line was
 13757   CONFIG_FILES    = $CONFIG_FILES
 13758   CONFIG_HEADERS  = $CONFIG_HEADERS
 13759   CONFIG_LINKS    = $CONFIG_LINKS
 13760   CONFIG_COMMANDS = $CONFIG_COMMANDS
 13761   $ $0 $@
 13763 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 13766 _ACEOF
 13768 cat >>$CONFIG_STATUS <<_ACEOF
 13769 # Files that config.status was made for.
 13770 config_files="$ac_config_files"
 13771 config_headers="$ac_config_headers"
 13772 config_commands="$ac_config_commands"
 13774 _ACEOF
 13776 cat >>$CONFIG_STATUS <<\_ACEOF
 13777 ac_cs_usage="\
 13778 \`$as_me' instantiates files from templates according to the
 13779 current configuration.
 13781 Usage: $0 [OPTIONS] [FILE]...
 13783   -h, --help       print this help, then exit
 13784   -V, --version    print version number and configuration settings, then exit
 13785   -q, --quiet      do not print progress messages
 13786   -d, --debug      don't remove temporary files
 13787       --recheck    update $as_me by reconfiguring in the same conditions
 13788   --file=FILE[:TEMPLATE]
 13789 		   instantiate the configuration file FILE
 13790   --header=FILE[:TEMPLATE]
 13791 		   instantiate the configuration header FILE
 13793 Configuration files:
 13794 $config_files
 13796 Configuration headers:
 13797 $config_headers
 13799 Configuration commands:
 13800 $config_commands
 13802 Report bugs to <bug-autoconf@gnu.org>."
 13804 _ACEOF
 13805 cat >>$CONFIG_STATUS <<_ACEOF
 13806 ac_cs_version="\\
 13807 config.status
 13808 configured by $0, generated by GNU Autoconf 2.61,
 13809   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 13811 Copyright (C) 2006 Free Software Foundation, Inc.
 13812 This config.status script is free software; the Free Software Foundation
 13813 gives unlimited permission to copy, distribute and modify it."
 13815 ac_pwd='$ac_pwd'
 13816 srcdir='$srcdir'
 13817 INSTALL='$INSTALL'
 13818 _ACEOF
 13820 cat >>$CONFIG_STATUS <<\_ACEOF
 13821 # If no file are specified by the user, then we need to provide default
 13822 # value.  By we need to know if files were specified by the user.
 13823 ac_need_defaults=:
 13824 while test $# != 0
 13825 do
 13826   case $1 in
 13827   --*=*)
 13828     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 13829     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 13830     ac_shift=:
 13831     ;;
 13832   *)
 13833     ac_option=$1
 13834     ac_optarg=$2
 13835     ac_shift=shift
 13836     ;;
 13837   esac
 13839   case $ac_option in
 13840   # Handling of the options.
 13841   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 13842     ac_cs_recheck=: ;;
 13843   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 13844     echo "$ac_cs_version"; exit ;;
 13845   --debug | --debu | --deb | --de | --d | -d )
 13846     debug=: ;;
 13847   --file | --fil | --fi | --f )
 13848     $ac_shift
 13849     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 13850     ac_need_defaults=false;;
 13851   --header | --heade | --head | --hea )
 13852     $ac_shift
 13853     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 13854     ac_need_defaults=false;;
 13855   --he | --h)
 13856     # Conflict between --help and --header
 13857     { echo "$as_me: error: ambiguous option: $1
 13858 Try \`$0 --help' for more information." >&2
 13859    { (exit 1); exit 1; }; };;
 13860   --help | --hel | -h )
 13861     echo "$ac_cs_usage"; exit ;;
 13862   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 13863   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 13864     ac_cs_silent=: ;;
 13866   # This is an error.
 13867   -*) { echo "$as_me: error: unrecognized option: $1
 13868 Try \`$0 --help' for more information." >&2
 13869    { (exit 1); exit 1; }; } ;;
 13871   *) ac_config_targets="$ac_config_targets $1"
 13872      ac_need_defaults=false ;;
 13874   esac
 13875   shift
 13876 done
 13878 ac_configure_extra_args=
 13880 if $ac_cs_silent; then
 13881   exec 6>/dev/null
 13882   ac_configure_extra_args="$ac_configure_extra_args --silent"
 13883 fi
 13885 _ACEOF
 13886 cat >>$CONFIG_STATUS <<_ACEOF
 13887 if \$ac_cs_recheck; then
 13888   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 13889   CONFIG_SHELL=$SHELL
 13890   export CONFIG_SHELL
 13891   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 13892 fi
 13894 _ACEOF
 13895 cat >>$CONFIG_STATUS <<\_ACEOF
 13896 exec 5>>config.log
 13898   echo
 13899   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 13900 ## Running $as_me. ##
 13901 _ASBOX
 13902   echo "$ac_log"
 13903 } >&5
 13905 _ACEOF
 13906 cat >>$CONFIG_STATUS <<_ACEOF
 13908 # INIT-COMMANDS
 13910 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 13913 _ACEOF
 13915 cat >>$CONFIG_STATUS <<\_ACEOF
 13917 # Handling of arguments.
 13918 for ac_config_target in $ac_config_targets
 13919 do
 13920   case $ac_config_target in
 13921     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 13922     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 13923     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 13924     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 13925     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 13926     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 13927     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 13928     "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
 13930   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 13931 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 13932    { (exit 1); exit 1; }; };;
 13933   esac
 13934 done
 13937 # If the user did not use the arguments to specify the items to instantiate,
 13938 # then the envvar interface is used.  Set only those that are not.
 13939 # We use the long form for the default assignment because of an extremely
 13940 # bizarre bug on SunOS 4.1.3.
 13941 if $ac_need_defaults; then
 13942   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 13943   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 13944   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 13945 fi
 13947 # Have a temporary directory for convenience.  Make it in the build tree
 13948 # simply because there is no reason against having it here, and in addition,
 13949 # creating and moving files from /tmp can sometimes cause problems.
 13950 # Hook for its removal unless debugging.
 13951 # Note that there is a small window in which the directory will not be cleaned:
 13952 # after its creation but before its name has been assigned to `$tmp'.
 13953 $debug ||
 13955   tmp=
 13956   trap 'exit_status=$?
 13957   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 13958 ' 0
 13959   trap '{ (exit 1); exit 1; }' 1 2 13 15
 13961 # Create a (secure) tmp directory for tmp files.
 13964   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 13965   test -n "$tmp" && test -d "$tmp"
 13966 }  ||
 13968   tmp=./conf$$-$RANDOM
 13969   (umask 077 && mkdir "$tmp")
 13970 } ||
 13972    echo "$me: cannot create a temporary directory in ." >&2
 13973    { (exit 1); exit 1; }
 13977 # Set up the sed scripts for CONFIG_FILES section.
 13980 # No need to generate the scripts if there are no CONFIG_FILES.
 13981 # This happens for instance when ./config.status config.h
 13982 if test -n "$CONFIG_FILES"; then
 13984 _ACEOF
 13988 ac_delim='%!_!# '
 13989 for ac_last_try in false false false false false :; do
 13990   cat >conf$$subs.sed <<_ACEOF
 13991 SHELL!$SHELL$ac_delim
 13992 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 13993 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 13994 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 13995 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 13996 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 13997 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 13998 exec_prefix!$exec_prefix$ac_delim
 13999 prefix!$prefix$ac_delim
 14000 program_transform_name!$program_transform_name$ac_delim
 14001 bindir!$bindir$ac_delim
 14002 sbindir!$sbindir$ac_delim
 14003 libexecdir!$libexecdir$ac_delim
 14004 datarootdir!$datarootdir$ac_delim
 14005 datadir!$datadir$ac_delim
 14006 sysconfdir!$sysconfdir$ac_delim
 14007 sharedstatedir!$sharedstatedir$ac_delim
 14008 localstatedir!$localstatedir$ac_delim
 14009 includedir!$includedir$ac_delim
 14010 oldincludedir!$oldincludedir$ac_delim
 14011 docdir!$docdir$ac_delim
 14012 infodir!$infodir$ac_delim
 14013 htmldir!$htmldir$ac_delim
 14014 dvidir!$dvidir$ac_delim
 14015 pdfdir!$pdfdir$ac_delim
 14016 psdir!$psdir$ac_delim
 14017 libdir!$libdir$ac_delim
 14018 localedir!$localedir$ac_delim
 14019 mandir!$mandir$ac_delim
 14020 DEFS!$DEFS$ac_delim
 14021 ECHO_C!$ECHO_C$ac_delim
 14022 ECHO_N!$ECHO_N$ac_delim
 14023 ECHO_T!$ECHO_T$ac_delim
 14024 LIBS!$LIBS$ac_delim
 14025 build_alias!$build_alias$ac_delim
 14026 host_alias!$host_alias$ac_delim
 14027 target_alias!$target_alias$ac_delim
 14028 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 14029 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 14030 INSTALL_DATA!$INSTALL_DATA$ac_delim
 14031 CYGPATH_W!$CYGPATH_W$ac_delim
 14032 PACKAGE!$PACKAGE$ac_delim
 14033 VERSION!$VERSION$ac_delim
 14034 ACLOCAL!$ACLOCAL$ac_delim
 14035 AUTOCONF!$AUTOCONF$ac_delim
 14036 AUTOMAKE!$AUTOMAKE$ac_delim
 14037 AUTOHEADER!$AUTOHEADER$ac_delim
 14038 MAKEINFO!$MAKEINFO$ac_delim
 14039 install_sh!$install_sh$ac_delim
 14040 STRIP!$STRIP$ac_delim
 14041 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 14042 mkdir_p!$mkdir_p$ac_delim
 14043 AWK!$AWK$ac_delim
 14044 SET_MAKE!$SET_MAKE$ac_delim
 14045 am__leading_dot!$am__leading_dot$ac_delim
 14046 AMTAR!$AMTAR$ac_delim
 14047 am__tar!$am__tar$ac_delim
 14048 am__untar!$am__untar$ac_delim
 14049 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 14050 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 14051 MAINT!$MAINT$ac_delim
 14052 CC!$CC$ac_delim
 14053 CFLAGS!$CFLAGS$ac_delim
 14054 LDFLAGS!$LDFLAGS$ac_delim
 14055 CPPFLAGS!$CPPFLAGS$ac_delim
 14056 ac_ct_CC!$ac_ct_CC$ac_delim
 14057 EXEEXT!$EXEEXT$ac_delim
 14058 OBJEXT!$OBJEXT$ac_delim
 14059 DEPDIR!$DEPDIR$ac_delim
 14060 am__include!$am__include$ac_delim
 14061 am__quote!$am__quote$ac_delim
 14062 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 14063 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 14064 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 14065 CCDEPMODE!$CCDEPMODE$ac_delim
 14066 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 14067 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 14068 OBJC!$OBJC$ac_delim
 14069 OBJCFLAGS!$OBJCFLAGS$ac_delim
 14070 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
 14071 SED!$SED$ac_delim
 14072 CCAS!$CCAS$ac_delim
 14073 CCASFLAGS!$CCASFLAGS$ac_delim
 14074 CPP!$CPP$ac_delim
 14075 GREP!$GREP$ac_delim
 14076 EGREP!$EGREP$ac_delim
 14077 build!$build$ac_delim
 14078 build_cpu!$build_cpu$ac_delim
 14079 build_vendor!$build_vendor$ac_delim
 14080 build_os!$build_os$ac_delim
 14081 host!$host$ac_delim
 14082 host_cpu!$host_cpu$ac_delim
 14083 host_vendor!$host_vendor$ac_delim
 14084 host_os!$host_os$ac_delim
 14085 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
 14086 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
 14087 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
 14088 _ACEOF
 14090   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 14091     break
 14092   elif $ac_last_try; then
 14093     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 14094 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 14095    { (exit 1); exit 1; }; }
 14096   else
 14097     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 14098   fi
 14099 done
 14101 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 14102 if test -n "$ac_eof"; then
 14103   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 14104   ac_eof=`expr $ac_eof + 1`
 14105 fi
 14107 cat >>$CONFIG_STATUS <<_ACEOF
 14108 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 14109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 14110 _ACEOF
 14111 sed '
 14112 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 14113 s/^/s,@/; s/!/@,|#_!!_#|/
 14114 :n
 14115 t n
 14116 s/'"$ac_delim"'$/,g/; t
 14117 s/$/\\/; p
 14118 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 14119 ' >>$CONFIG_STATUS <conf$$subs.sed
 14120 rm -f conf$$subs.sed
 14121 cat >>$CONFIG_STATUS <<_ACEOF
 14122 CEOF$ac_eof
 14123 _ACEOF
 14126 ac_delim='%!_!# '
 14127 for ac_last_try in false false false false false :; do
 14128   cat >conf$$subs.sed <<_ACEOF
 14129 POD2MAN!$POD2MAN$ac_delim
 14130 POD2HTML!$POD2HTML$ac_delim
 14131 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
 14132 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
 14133 SOEXT!$SOEXT$ac_delim
 14134 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
 14135 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
 14136 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
 14137 BUILD_SHARED_TRUE!$BUILD_SHARED_TRUE$ac_delim
 14138 BUILD_SHARED_FALSE!$BUILD_SHARED_FALSE$ac_delim
 14139 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
 14140 PKG_CONFIG!$PKG_CONFIG$ac_delim
 14141 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
 14142 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
 14143 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
 14144 GLIB_LIBS!$GLIB_LIBS$ac_delim
 14145 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
 14146 GTK_LIBS!$GTK_LIBS$ac_delim
 14147 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
 14148 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
 14149 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
 14150 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
 14151 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
 14152 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
 14153 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
 14154 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
 14155 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
 14156 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
 14157 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
 14158 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
 14159 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
 14160 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
 14161 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
 14162 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
 14163 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
 14164 SDL_LIBS!$SDL_LIBS$ac_delim
 14165 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
 14166 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
 14167 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
 14168 PULSE_LIBS!$PULSE_LIBS$ac_delim
 14169 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
 14170 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
 14171 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
 14172 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
 14173 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
 14174 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
 14175 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
 14176 ALSA_LIBS!$ALSA_LIBS$ac_delim
 14177 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
 14178 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
 14179 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
 14180 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
 14181 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
 14182 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
 14183 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
 14184 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
 14185 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
 14186 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
 14187 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
 14188 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
 14189 SHCC!$SHCC$ac_delim
 14190 SHLD!$SHLD$ac_delim
 14191 SHOBJCOPY!$SHOBJCOPY$ac_delim
 14192 ARMCC!$ARMCC$ac_delim
 14193 ARMLD!$ARMLD$ac_delim
 14194 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
 14195 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
 14196 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
 14197 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
 14198 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
 14199 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
 14200 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 14201 USE_NLS!$USE_NLS$ac_delim
 14202 MSGFMT!$MSGFMT$ac_delim
 14203 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
 14204 GMSGFMT!$GMSGFMT$ac_delim
 14205 XGETTEXT!$XGETTEXT$ac_delim
 14206 CATALOGS!$CATALOGS$ac_delim
 14207 CATOBJEXT!$CATOBJEXT$ac_delim
 14208 DATADIRNAME!$DATADIRNAME$ac_delim
 14209 GMOFILES!$GMOFILES$ac_delim
 14210 INSTOBJEXT!$INSTOBJEXT$ac_delim
 14211 INTLLIBS!$INTLLIBS$ac_delim
 14212 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
 14213 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
 14214 POFILES!$POFILES$ac_delim
 14215 POSUB!$POSUB$ac_delim
 14216 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 14217 LIBOBJS!$LIBOBJS$ac_delim
 14218 LTLIBOBJS!$LTLIBOBJS$ac_delim
 14219 _ACEOF
 14221   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
 14222     break
 14223   elif $ac_last_try; then
 14224     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 14225 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 14226    { (exit 1); exit 1; }; }
 14227   else
 14228     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 14229   fi
 14230 done
 14232 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 14233 if test -n "$ac_eof"; then
 14234   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 14235   ac_eof=`expr $ac_eof + 1`
 14236 fi
 14238 cat >>$CONFIG_STATUS <<_ACEOF
 14239 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 14240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 14241 _ACEOF
 14242 sed '
 14243 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 14244 s/^/s,@/; s/!/@,|#_!!_#|/
 14245 :n
 14246 t n
 14247 s/'"$ac_delim"'$/,g/; t
 14248 s/$/\\/; p
 14249 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 14250 ' >>$CONFIG_STATUS <conf$$subs.sed
 14251 rm -f conf$$subs.sed
 14252 cat >>$CONFIG_STATUS <<_ACEOF
 14253 :end
 14254 s/|#_!!_#|//g
 14255 CEOF$ac_eof
 14256 _ACEOF
 14259 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 14260 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 14261 # trailing colons and then remove the whole line if VPATH becomes empty
 14262 # (actually we leave an empty line to preserve line numbers).
 14263 if test "x$srcdir" = x.; then
 14264   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 14265 s/:*\$(srcdir):*/:/
 14266 s/:*\${srcdir}:*/:/
 14267 s/:*@srcdir@:*/:/
 14268 s/^\([^=]*=[	 ]*\):*/\1/
 14269 s/:*$//
 14270 s/^[^=]*=[	 ]*$//
 14271 }'
 14272 fi
 14274 cat >>$CONFIG_STATUS <<\_ACEOF
 14275 fi # test -n "$CONFIG_FILES"
 14278 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 14279 do
 14280   case $ac_tag in
 14281   :[FHLC]) ac_mode=$ac_tag; continue;;
 14282   esac
 14283   case $ac_mode$ac_tag in
 14284   :[FHL]*:*);;
 14285   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 14286 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 14287    { (exit 1); exit 1; }; };;
 14288   :[FH]-) ac_tag=-:-;;
 14289   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 14290   esac
 14291   ac_save_IFS=$IFS
 14292   IFS=:
 14293   set x $ac_tag
 14294   IFS=$ac_save_IFS
 14295   shift
 14296   ac_file=$1
 14297   shift
 14299   case $ac_mode in
 14300   :L) ac_source=$1;;
 14301   :[FH])
 14302     ac_file_inputs=
 14303     for ac_f
 14304     do
 14305       case $ac_f in
 14306       -) ac_f="$tmp/stdin";;
 14307       *) # Look for the file first in the build tree, then in the source tree
 14308 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 14309 	 # because $ac_f cannot contain `:'.
 14310 	 test -f "$ac_f" ||
 14311 	   case $ac_f in
 14312 	   [\\/$]*) false;;
 14313 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 14314 	   esac ||
 14315 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 14316 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 14317    { (exit 1); exit 1; }; };;
 14318       esac
 14319       ac_file_inputs="$ac_file_inputs $ac_f"
 14320     done
 14322     # Let's still pretend it is `configure' which instantiates (i.e., don't
 14323     # use $as_me), people would be surprised to read:
 14324     #    /* config.h.  Generated by config.status.  */
 14325     configure_input="Generated from "`IFS=:
 14326 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 14327     if test x"$ac_file" != x-; then
 14328       configure_input="$ac_file.  $configure_input"
 14329       { echo "$as_me:$LINENO: creating $ac_file" >&5
 14330 echo "$as_me: creating $ac_file" >&6;}
 14331     fi
 14333     case $ac_tag in
 14334     *:-:* | *:-) cat >"$tmp/stdin";;
 14335     esac
 14336     ;;
 14337   esac
 14339   ac_dir=`$as_dirname -- "$ac_file" ||
 14340 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14341 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 14342 	 X"$ac_file" : 'X\(//\)$' \| \
 14343 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 14344 echo X"$ac_file" |
 14345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14346 	    s//\1/
 14349 	  /^X\(\/\/\)[^/].*/{
 14350 	    s//\1/
 14353 	  /^X\(\/\/\)$/{
 14354 	    s//\1/
 14357 	  /^X\(\/\).*/{
 14358 	    s//\1/
 14361 	  s/.*/./; q'`
 14362   { as_dir="$ac_dir"
 14363   case $as_dir in #(
 14364   -*) as_dir=./$as_dir;;
 14365   esac
 14366   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 14367     as_dirs=
 14368     while :; do
 14369       case $as_dir in #(
 14370       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 14371       *) as_qdir=$as_dir;;
 14372       esac
 14373       as_dirs="'$as_qdir' $as_dirs"
 14374       as_dir=`$as_dirname -- "$as_dir" ||
 14375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14376 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 14377 	 X"$as_dir" : 'X\(//\)$' \| \
 14378 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 14379 echo X"$as_dir" |
 14380     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14381 	    s//\1/
 14384 	  /^X\(\/\/\)[^/].*/{
 14385 	    s//\1/
 14388 	  /^X\(\/\/\)$/{
 14389 	    s//\1/
 14392 	  /^X\(\/\).*/{
 14393 	    s//\1/
 14396 	  s/.*/./; q'`
 14397       test -d "$as_dir" && break
 14398     done
 14399     test -z "$as_dirs" || eval "mkdir $as_dirs"
 14400   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 14401 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 14402    { (exit 1); exit 1; }; }; }
 14403   ac_builddir=.
 14405 case "$ac_dir" in
 14406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 14407 *)
 14408   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 14409   # A ".." for each directory in $ac_dir_suffix.
 14410   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 14411   case $ac_top_builddir_sub in
 14412   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 14413   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 14414   esac ;;
 14415 esac
 14416 ac_abs_top_builddir=$ac_pwd
 14417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 14418 # for backward compatibility:
 14419 ac_top_builddir=$ac_top_build_prefix
 14421 case $srcdir in
 14422   .)  # We are building in place.
 14423     ac_srcdir=.
 14424     ac_top_srcdir=$ac_top_builddir_sub
 14425     ac_abs_top_srcdir=$ac_pwd ;;
 14426   [\\/]* | ?:[\\/]* )  # Absolute name.
 14427     ac_srcdir=$srcdir$ac_dir_suffix;
 14428     ac_top_srcdir=$srcdir
 14429     ac_abs_top_srcdir=$srcdir ;;
 14430   *) # Relative name.
 14431     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 14432     ac_top_srcdir=$ac_top_build_prefix$srcdir
 14433     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 14434 esac
 14435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 14438   case $ac_mode in
 14439   :F)
 14441   # CONFIG_FILE
 14444   case $INSTALL in
 14445   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 14446   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 14447   esac
 14448 _ACEOF
 14450 cat >>$CONFIG_STATUS <<\_ACEOF
 14451 # If the template does not know about datarootdir, expand it.
 14452 # FIXME: This hack should be removed a few years after 2.60.
 14453 ac_datarootdir_hack=; ac_datarootdir_seen=
 14455 case `sed -n '/datarootdir/ {
 14459 /@datadir@/p
 14460 /@docdir@/p
 14461 /@infodir@/p
 14462 /@localedir@/p
 14463 /@mandir@/p
 14464 ' $ac_file_inputs` in
 14465 *datarootdir*) ac_datarootdir_seen=yes;;
 14466 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 14467   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 14468 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 14469 _ACEOF
 14470 cat >>$CONFIG_STATUS <<_ACEOF
 14471   ac_datarootdir_hack='
 14472   s&@datadir@&$datadir&g
 14473   s&@docdir@&$docdir&g
 14474   s&@infodir@&$infodir&g
 14475   s&@localedir@&$localedir&g
 14476   s&@mandir@&$mandir&g
 14477     s&\\\${datarootdir}&$datarootdir&g' ;;
 14478 esac
 14479 _ACEOF
 14481 # Neutralize VPATH when `$srcdir' = `.'.
 14482 # Shell code in configure.ac might set extrasub.
 14483 # FIXME: do we really want to maintain this feature?
 14484 cat >>$CONFIG_STATUS <<_ACEOF
 14485   sed "$ac_vpsub
 14486 $extrasub
 14487 _ACEOF
 14488 cat >>$CONFIG_STATUS <<\_ACEOF
 14489 :t
 14490 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 14491 s&@configure_input@&$configure_input&;t t
 14492 s&@top_builddir@&$ac_top_builddir_sub&;t t
 14493 s&@srcdir@&$ac_srcdir&;t t
 14494 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 14495 s&@top_srcdir@&$ac_top_srcdir&;t t
 14496 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 14497 s&@builddir@&$ac_builddir&;t t
 14498 s&@abs_builddir@&$ac_abs_builddir&;t t
 14499 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 14500 s&@INSTALL@&$ac_INSTALL&;t t
 14501 $ac_datarootdir_hack
 14502 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 14504 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 14505   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 14506   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 14507   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 14508 which seems to be undefined.  Please make sure it is defined." >&5
 14509 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 14510 which seems to be undefined.  Please make sure it is defined." >&2;}
 14512   rm -f "$tmp/stdin"
 14513   case $ac_file in
 14514   -) cat "$tmp/out"; rm -f "$tmp/out";;
 14515   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 14516   esac
 14517  ;;
 14518   :H)
 14520   # CONFIG_HEADER
 14522 _ACEOF
 14524 # Transform confdefs.h into a sed script `conftest.defines', that
 14525 # substitutes the proper values into config.h.in to produce config.h.
 14526 rm -f conftest.defines conftest.tail
 14527 # First, append a space to every undef/define line, to ease matching.
 14528 echo 's/$/ /' >conftest.defines
 14529 # Then, protect against being on the right side of a sed subst, or in
 14530 # an unquoted here document, in config.status.  If some macros were
 14531 # called several times there might be several #defines for the same
 14532 # symbol, which is useless.  But do not sort them, since the last
 14533 # AC_DEFINE must be honored.
 14534 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 14535 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 14536 # NAME is the cpp macro being defined, VALUE is the value it is being given.
 14537 # PARAMS is the parameter list in the macro definition--in most cases, it's
 14538 # just an empty string.
 14539 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
 14540 ac_dB='\\)[	 (].*,\\1define\\2'
 14541 ac_dC=' '
 14542 ac_dD=' ,'
 14544 uniq confdefs.h |
 14545   sed -n '
 14546 	t rset
 14547 	:rset
 14548 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
 14549 	t ok
 14551 	:ok
 14552 	s/[\\&,]/\\&/g
 14553 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 14554 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 14555   ' >>conftest.defines
 14557 # Remove the space that was appended to ease matching.
 14558 # Then replace #undef with comments.  This is necessary, for
 14559 # example, in the case of _POSIX_SOURCE, which is predefined and required
 14560 # on some systems where configure will not decide to define it.
 14561 # (The regexp can be short, since the line contains either #define or #undef.)
 14562 echo 's/ $//
 14563 s,^[	 #]*u.*,/* & */,' >>conftest.defines
 14565 # Break up conftest.defines:
 14566 ac_max_sed_lines=50
 14568 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 14569 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 14570 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 14571 # et cetera.
 14572 ac_in='$ac_file_inputs'
 14573 ac_out='"$tmp/out1"'
 14574 ac_nxt='"$tmp/out2"'
 14576 while :
 14577 do
 14578   # Write a here document:
 14579     cat >>$CONFIG_STATUS <<_ACEOF
 14580     # First, check the format of the line:
 14581     cat >"\$tmp/defines.sed" <<\\CEOF
 14582 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
 14583 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
 14585 :def
 14586 _ACEOF
 14587   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 14588   echo 'CEOF
 14589     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 14590   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 14591   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 14592   grep . conftest.tail >/dev/null || break
 14593   rm -f conftest.defines
 14594   mv conftest.tail conftest.defines
 14595 done
 14596 rm -f conftest.defines conftest.tail
 14598 echo "ac_result=$ac_in" >>$CONFIG_STATUS
 14599 cat >>$CONFIG_STATUS <<\_ACEOF
 14600   if test x"$ac_file" != x-; then
 14601     echo "/* $configure_input  */" >"$tmp/config.h"
 14602     cat "$ac_result" >>"$tmp/config.h"
 14603     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 14604       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 14605 echo "$as_me: $ac_file is unchanged" >&6;}
 14606     else
 14607       rm -f $ac_file
 14608       mv "$tmp/config.h" $ac_file
 14609     fi
 14610   else
 14611     echo "/* $configure_input  */"
 14612     cat "$ac_result"
 14613   fi
 14614   rm -f "$tmp/out12"
 14615 # Compute $ac_file's index in $config_headers.
 14616 _am_stamp_count=1
 14617 for _am_header in $config_headers :; do
 14618   case $_am_header in
 14619     $ac_file | $ac_file:* )
 14620       break ;;
 14621     * )
 14622       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 14623   esac
 14624 done
 14625 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 14626 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14627 	 X$ac_file : 'X\(//\)[^/]' \| \
 14628 	 X$ac_file : 'X\(//\)$' \| \
 14629 	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 14630 echo X$ac_file |
 14631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14632 	    s//\1/
 14635 	  /^X\(\/\/\)[^/].*/{
 14636 	    s//\1/
 14639 	  /^X\(\/\/\)$/{
 14640 	    s//\1/
 14643 	  /^X\(\/\).*/{
 14644 	    s//\1/
 14647 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 14648  ;;
 14650   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 14651 echo "$as_me: executing $ac_file commands" >&6;}
 14652  ;;
 14653   esac
 14656   case $ac_file$ac_mode in
 14657     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 14658   # Strip MF so we end up with the name of the file.
 14659   mf=`echo "$mf" | sed -e 's/:.*$//'`
 14660   # Check whether this is an Automake generated Makefile or not.
 14661   # We used to match only the files named `Makefile.in', but
 14662   # some people rename them; so instead we look at the file content.
 14663   # Grep'ing the first line is not enough: some people post-process
 14664   # each Makefile.in and add a new line on top of each file to say so.
 14665   # So let's grep whole file.
 14666   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 14667     dirpart=`$as_dirname -- "$mf" ||
 14668 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14669 	 X"$mf" : 'X\(//\)[^/]' \| \
 14670 	 X"$mf" : 'X\(//\)$' \| \
 14671 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 14672 echo X"$mf" |
 14673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14674 	    s//\1/
 14677 	  /^X\(\/\/\)[^/].*/{
 14678 	    s//\1/
 14681 	  /^X\(\/\/\)$/{
 14682 	    s//\1/
 14685 	  /^X\(\/\).*/{
 14686 	    s//\1/
 14689 	  s/.*/./; q'`
 14690   else
 14691     continue
 14692   fi
 14693   # Extract the definition of DEPDIR, am__include, and am__quote
 14694   # from the Makefile without running `make'.
 14695   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 14696   test -z "$DEPDIR" && continue
 14697   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 14698   test -z "am__include" && continue
 14699   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 14700   # When using ansi2knr, U may be empty or an underscore; expand it
 14701   U=`sed -n 's/^U = //p' < "$mf"`
 14702   # Find all dependency output files, they are included files with
 14703   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 14704   # simplest approach to changing $(DEPDIR) to its actual value in the
 14705   # expansion.
 14706   for file in `sed -n "
 14707     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 14708        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 14709     # Make sure the directory exists.
 14710     test -f "$dirpart/$file" && continue
 14711     fdir=`$as_dirname -- "$file" ||
 14712 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14713 	 X"$file" : 'X\(//\)[^/]' \| \
 14714 	 X"$file" : 'X\(//\)$' \| \
 14715 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 14716 echo X"$file" |
 14717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14718 	    s//\1/
 14721 	  /^X\(\/\/\)[^/].*/{
 14722 	    s//\1/
 14725 	  /^X\(\/\/\)$/{
 14726 	    s//\1/
 14729 	  /^X\(\/\).*/{
 14730 	    s//\1/
 14733 	  s/.*/./; q'`
 14734     { as_dir=$dirpart/$fdir
 14735   case $as_dir in #(
 14736   -*) as_dir=./$as_dir;;
 14737   esac
 14738   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 14739     as_dirs=
 14740     while :; do
 14741       case $as_dir in #(
 14742       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 14743       *) as_qdir=$as_dir;;
 14744       esac
 14745       as_dirs="'$as_qdir' $as_dirs"
 14746       as_dir=`$as_dirname -- "$as_dir" ||
 14747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14748 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 14749 	 X"$as_dir" : 'X\(//\)$' \| \
 14750 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 14751 echo X"$as_dir" |
 14752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14753 	    s//\1/
 14756 	  /^X\(\/\/\)[^/].*/{
 14757 	    s//\1/
 14760 	  /^X\(\/\/\)$/{
 14761 	    s//\1/
 14764 	  /^X\(\/\).*/{
 14765 	    s//\1/
 14768 	  s/.*/./; q'`
 14769       test -d "$as_dir" && break
 14770     done
 14771     test -z "$as_dirs" || eval "mkdir $as_dirs"
 14772   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 14773 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 14774    { (exit 1); exit 1; }; }; }
 14775     # echo "creating $dirpart/$file"
 14776     echo '# dummy' > "$dirpart/$file"
 14777   done
 14778 done
 14779  ;;
 14780     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 14781         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 14782       esac ;;
 14784   esac
 14785 done # for ac_tag
 14788 { (exit 0); exit 0; }
 14789 _ACEOF
 14790 chmod +x $CONFIG_STATUS
 14791 ac_clean_files=$ac_clean_files_save
 14794 # configure is writing to config.log, and then calls config.status.
 14795 # config.status does its own redirection, appending to config.log.
 14796 # Unfortunately, on DOS this fails, as config.log is still kept open
 14797 # by configure, so config.status won't be able to write to it; its
 14798 # output is simply discarded.  So we exec the FD to /dev/null,
 14799 # effectively closing config.log, so it can be properly (re)opened and
 14800 # appended to by config.status.  When coming back to configure, we
 14801 # need to make the FD available again.
 14802 if test "$no_create" != yes; then
 14803   ac_cs_success=:
 14804   ac_config_status_args=
 14805   test "$silent" = yes &&
 14806     ac_config_status_args="$ac_config_status_args --quiet"
 14807   exec 5>/dev/null
 14808   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 14809   exec 5>>config.log
 14810   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 14811   # would make configure fail if this is the last instruction.
 14812   $ac_cs_success || { (exit 1); exit 1; }
 14813 fi
 14815 { as_dir=test/sh4
 14816   case $as_dir in #(
 14817   -*) as_dir=./$as_dir;;
 14818   esac
 14819   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 14820     as_dirs=
 14821     while :; do
 14822       case $as_dir in #(
 14823       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 14824       *) as_qdir=$as_dir;;
 14825       esac
 14826       as_dirs="'$as_qdir' $as_dirs"
 14827       as_dir=`$as_dirname -- "$as_dir" ||
 14828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14829 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 14830 	 X"$as_dir" : 'X\(//\)$' \| \
 14831 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 14832 echo X"$as_dir" |
 14833     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14834 	    s//\1/
 14837 	  /^X\(\/\/\)[^/].*/{
 14838 	    s//\1/
 14841 	  /^X\(\/\/\)$/{
 14842 	    s//\1/
 14845 	  /^X\(\/\).*/{
 14846 	    s//\1/
 14849 	  s/.*/./; q'`
 14850       test -d "$as_dir" && break
 14851     done
 14852     test -z "$as_dirs" || eval "mkdir $as_dirs"
 14853   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 14854 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 14855    { (exit 1); exit 1; }; }; }
 14858 echo
 14859 echo "Configuration complete"
 14860 echo
 14862 if test "x$HAVE_GTK" = x; then
 14863   if test "x$HAVE_COCOA" = x; then
 14864      echo "  User interface: none"
 14865   else
 14866      echo "  User interface: Cocoa"
 14867   fi
 14868 else
 14869   echo "  User interface: GTK"
 14870 fi
 14872 if test "x$SH4_TRANSLATOR" = "x"; then
 14873   echo "  SH4 translator: None (emulation core only)"
 14874 else
 14875   echo "  SH4 translator: $SH4_TRANSLATOR"
 14876 fi
 14878 if test "x$VIDEO_DRIVERS" = "x"; then
 14879    echo "  Video drivers: none (no supported GL found)"
 14880 else
 14881    echo "  Video drivers: $VIDEO_DRIVERS"
 14882 fi
 14884 if test "x$AUDIO_DRIVERS" = "x"; then
 14885    echo "  Audio drivers: none (no supported output devices found)"
 14886 else
 14887    echo "  Audio drivers: $AUDIO_DRIVERS"
 14888 fi
 14890 if test "x$INPUT_DRIVERS" = "x"; then
 14891    echo "  Input drivers: none (no supported input devices found)"
 14892 else
 14893    echo "  Input drivers: $INPUT_DRIVERS"
 14894 fi
 14896 if test "x$CDROM_DRIVER" = "x"; then
 14897    echo "  CD-ROM driver: none (no supported cd-rom devices found)"
 14898 else
 14899    echo "  CD-ROM driver:  $CDROM_DRIVER"
 14900 fi
.