Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 657:c4143facbfcb
prev656:031d23fa6d0b
next658:f5926310bfbe
author nkeynes
date Wed Apr 16 10:12:12 2008 +0000 (12 years ago)
permissions -rwxr-xr-x
last change Add support for the pulseaudio sound system
view annotate diff log raw
     1 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.61.
     4 #
     5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     7 # This configure script is free software; the Free Software Foundation
     8 # gives unlimited permission to copy, distribute and modify it.
     9 ## --------------------- ##
    10 ## M4sh Initialization.  ##
    11 ## --------------------- ##
    13 # Be more Bourne compatible
    14 DUALCASE=1; export DUALCASE # for MKS sh
    15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    16   emulate sh
    17   NULLCMD=:
    18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    19   # is contrary to our usage.  Disable this feature.
    20   alias -g '${1+"$@"}'='"$@"'
    21   setopt NO_GLOB_SUBST
    22 else
    23   case `(set -o) 2>/dev/null` in
    24   *posix*) set -o posix ;;
    25 esac
    27 fi
    32 # PATH needs CR
    33 # Avoid depending upon Character Ranges.
    34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    37 as_cr_digits='0123456789'
    38 as_cr_alnum=$as_cr_Letters$as_cr_digits
    40 # The user is always right.
    41 if test "${PATH_SEPARATOR+set}" != set; then
    42   echo "#! /bin/sh" >conf$$.sh
    43   echo  "exit 0"   >>conf$$.sh
    44   chmod +x conf$$.sh
    45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    46     PATH_SEPARATOR=';'
    47   else
    48     PATH_SEPARATOR=:
    49   fi
    50   rm -f conf$$.sh
    51 fi
    53 # Support unset when possible.
    54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    55   as_unset=unset
    56 else
    57   as_unset=false
    58 fi
    61 # IFS
    62 # We need space, tab and new line, in precisely that order.  Quoting is
    63 # there to prevent editors from complaining about space-tab.
    64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    65 # splitting by setting IFS to empty value.)
    66 as_nl='
    67 '
    68 IFS=" ""	$as_nl"
    70 # Find who we are.  Look in the path if we contain no directory separator.
    71 case $0 in
    72   *[\\/]* ) as_myself=$0 ;;
    73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    74 for as_dir in $PATH
    75 do
    76   IFS=$as_save_IFS
    77   test -z "$as_dir" && as_dir=.
    78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    79 done
    80 IFS=$as_save_IFS
    82      ;;
    83 esac
    84 # We did not find ourselves, most probably we were run as `sh COMMAND'
    85 # in which case we are not to be found in the path.
    86 if test "x$as_myself" = x; then
    87   as_myself=$0
    88 fi
    89 if test ! -f "$as_myself"; then
    90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    91   { (exit 1); exit 1; }
    92 fi
    94 # Work around bugs in pre-3.0 UWIN ksh.
    95 for as_var in ENV MAIL MAILPATH
    96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    97 done
    98 PS1='$ '
    99 PS2='> '
   100 PS4='+ '
   102 # NLS nuisances.
   103 for as_var in \
   104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   106   LC_TELEPHONE LC_TIME
   107 do
   108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   109     eval $as_var=C; export $as_var
   110   else
   111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   112   fi
   113 done
   115 # Required to use basename.
   116 if expr a : '\(a\)' >/dev/null 2>&1 &&
   117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   118   as_expr=expr
   119 else
   120   as_expr=false
   121 fi
   123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   124   as_basename=basename
   125 else
   126   as_basename=false
   127 fi
   130 # Name of the executable.
   131 as_me=`$as_basename -- "$0" ||
   132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   133 	 X"$0" : 'X\(//\)$' \| \
   134 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   135 echo X/"$0" |
   136     sed '/^.*\/\([^/][^/]*\)\/*$/{
   137 	    s//\1/
   138 	    q
   139 	  }
   140 	  /^X\/\(\/\/\)$/{
   141 	    s//\1/
   142 	    q
   143 	  }
   144 	  /^X\/\(\/\).*/{
   145 	    s//\1/
   146 	    q
   147 	  }
   148 	  s/.*/./; q'`
   150 # CDPATH.
   151 $as_unset CDPATH
   154 if test "x$CONFIG_SHELL" = x; then
   155   if (eval ":") 2>/dev/null; then
   156   as_have_required=yes
   157 else
   158   as_have_required=no
   159 fi
   161   if test $as_have_required = yes && 	 (eval ":
   162 (as_func_return () {
   163   (exit \$1)
   164 }
   165 as_func_success () {
   166   as_func_return 0
   167 }
   168 as_func_failure () {
   169   as_func_return 1
   170 }
   171 as_func_ret_success () {
   172   return 0
   173 }
   174 as_func_ret_failure () {
   175   return 1
   176 }
   178 exitcode=0
   179 if as_func_success; then
   180   :
   181 else
   182   exitcode=1
   183   echo as_func_success failed.
   184 fi
   186 if as_func_failure; then
   187   exitcode=1
   188   echo as_func_failure succeeded.
   189 fi
   191 if as_func_ret_success; then
   192   :
   193 else
   194   exitcode=1
   195   echo as_func_ret_success failed.
   196 fi
   198 if as_func_ret_failure; then
   199   exitcode=1
   200   echo as_func_ret_failure succeeded.
   201 fi
   203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   204   :
   205 else
   206   exitcode=1
   207   echo positional parameters were not saved.
   208 fi
   210 test \$exitcode = 0) || { (exit 1); exit 1; }
   212 (
   213   as_lineno_1=\$LINENO
   214   as_lineno_2=\$LINENO
   215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
   216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
   217 ") 2> /dev/null; then
   218   :
   219 else
   220   as_candidate_shells=
   221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   223 do
   224   IFS=$as_save_IFS
   225   test -z "$as_dir" && as_dir=.
   226   case $as_dir in
   227 	 /*)
   228 	   for as_base in sh bash ksh sh5; do
   229 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
   230 	   done;;
   231        esac
   232 done
   233 IFS=$as_save_IFS
   236       for as_shell in $as_candidate_shells $SHELL; do
   237 	 # Try only shells that exist, to save several forks.
   238 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   239 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
   240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   241   emulate sh
   242   NULLCMD=:
   243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   244   # is contrary to our usage.  Disable this feature.
   245   alias -g '${1+"$@"}'='"$@"'
   246   setopt NO_GLOB_SUBST
   247 else
   248   case `(set -o) 2>/dev/null` in
   249   *posix*) set -o posix ;;
   250 esac
   252 fi
   255 :
   256 _ASEOF
   257 }; then
   258   CONFIG_SHELL=$as_shell
   259 	       as_have_required=yes
   260 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
   261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   262   emulate sh
   263   NULLCMD=:
   264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   265   # is contrary to our usage.  Disable this feature.
   266   alias -g '${1+"$@"}'='"$@"'
   267   setopt NO_GLOB_SUBST
   268 else
   269   case `(set -o) 2>/dev/null` in
   270   *posix*) set -o posix ;;
   271 esac
   273 fi
   276 :
   277 (as_func_return () {
   278   (exit $1)
   279 }
   280 as_func_success () {
   281   as_func_return 0
   282 }
   283 as_func_failure () {
   284   as_func_return 1
   285 }
   286 as_func_ret_success () {
   287   return 0
   288 }
   289 as_func_ret_failure () {
   290   return 1
   291 }
   293 exitcode=0
   294 if as_func_success; then
   295   :
   296 else
   297   exitcode=1
   298   echo as_func_success failed.
   299 fi
   301 if as_func_failure; then
   302   exitcode=1
   303   echo as_func_failure succeeded.
   304 fi
   306 if as_func_ret_success; then
   307   :
   308 else
   309   exitcode=1
   310   echo as_func_ret_success failed.
   311 fi
   313 if as_func_ret_failure; then
   314   exitcode=1
   315   echo as_func_ret_failure succeeded.
   316 fi
   318 if ( set x; as_func_ret_success y && test x = "$1" ); then
   319   :
   320 else
   321   exitcode=1
   322   echo positional parameters were not saved.
   323 fi
   325 test $exitcode = 0) || { (exit 1); exit 1; }
   327 (
   328   as_lineno_1=$LINENO
   329   as_lineno_2=$LINENO
   330   test "x$as_lineno_1" != "x$as_lineno_2" &&
   331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
   333 _ASEOF
   334 }; then
   335   break
   336 fi
   338 fi
   340       done
   342       if test "x$CONFIG_SHELL" != x; then
   343   for as_var in BASH_ENV ENV
   344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   345         done
   346         export CONFIG_SHELL
   347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   348 fi
   351     if test $as_have_required = no; then
   352   echo This script requires a shell more modern than all the
   353       echo shells that I found on your system.  Please install a
   354       echo modern shell, or manually run the script under such a
   355       echo shell if you do have one.
   356       { (exit 1); exit 1; }
   357 fi
   360 fi
   362 fi
   366 (eval "as_func_return () {
   367   (exit \$1)
   368 }
   369 as_func_success () {
   370   as_func_return 0
   371 }
   372 as_func_failure () {
   373   as_func_return 1
   374 }
   375 as_func_ret_success () {
   376   return 0
   377 }
   378 as_func_ret_failure () {
   379   return 1
   380 }
   382 exitcode=0
   383 if as_func_success; then
   384   :
   385 else
   386   exitcode=1
   387   echo as_func_success failed.
   388 fi
   390 if as_func_failure; then
   391   exitcode=1
   392   echo as_func_failure succeeded.
   393 fi
   395 if as_func_ret_success; then
   396   :
   397 else
   398   exitcode=1
   399   echo as_func_ret_success failed.
   400 fi
   402 if as_func_ret_failure; then
   403   exitcode=1
   404   echo as_func_ret_failure succeeded.
   405 fi
   407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   408   :
   409 else
   410   exitcode=1
   411   echo positional parameters were not saved.
   412 fi
   414 test \$exitcode = 0") || {
   415   echo No shell found that supports shell functions.
   416   echo Please tell autoconf@gnu.org about your system,
   417   echo including any error possibly output before this
   418   echo message
   419 }
   423   as_lineno_1=$LINENO
   424   as_lineno_2=$LINENO
   425   test "x$as_lineno_1" != "x$as_lineno_2" &&
   426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   429   # uniformly replaced by the line number.  The first 'sed' inserts a
   430   # line-number line after each line using $LINENO; the second 'sed'
   431   # does the real work.  The second script uses 'N' to pair each
   432   # line-number line with the line containing $LINENO, and appends
   433   # trailing '-' during substitution so that $LINENO is not a special
   434   # case at line end.
   435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   437   # E. McMahon (1931-1989) for sed's syntax.  :-)
   438   sed -n '
   439     p
   440     /[$]LINENO/=
   441   ' <$as_myself |
   442     sed '
   443       s/[$]LINENO.*/&-/
   444       t lineno
   445       b
   446       :lineno
   447       N
   448       :loop
   449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   450       t loop
   451       s/-\n.*//
   452     ' >$as_me.lineno &&
   453   chmod +x "$as_me.lineno" ||
   454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   455    { (exit 1); exit 1; }; }
   457   # Don't try to exec as it changes $[0], causing all sort of problems
   458   # (the dirname of $[0] is not the place where we might find the
   459   # original and so on.  Autoconf is especially sensitive to this).
   460   . "./$as_me.lineno"
   461   # Exit status is that of the last command.
   462   exit
   463 }
   466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   467   as_dirname=dirname
   468 else
   469   as_dirname=false
   470 fi
   472 ECHO_C= ECHO_N= ECHO_T=
   473 case `echo -n x` in
   474 -n*)
   475   case `echo 'x\c'` in
   476   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   477   *)   ECHO_C='\c';;
   478   esac;;
   479 *)
   480   ECHO_N='-n';;
   481 esac
   483 if expr a : '\(a\)' >/dev/null 2>&1 &&
   484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   485   as_expr=expr
   486 else
   487   as_expr=false
   488 fi
   490 rm -f conf$$ conf$$.exe conf$$.file
   491 if test -d conf$$.dir; then
   492   rm -f conf$$.dir/conf$$.file
   493 else
   494   rm -f conf$$.dir
   495   mkdir conf$$.dir
   496 fi
   497 echo >conf$$.file
   498 if ln -s conf$$.file conf$$ 2>/dev/null; then
   499   as_ln_s='ln -s'
   500   # ... but there are two gotchas:
   501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   503   # In both cases, we have to default to `cp -p'.
   504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   505     as_ln_s='cp -p'
   506 elif ln conf$$.file conf$$ 2>/dev/null; then
   507   as_ln_s=ln
   508 else
   509   as_ln_s='cp -p'
   510 fi
   511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   512 rmdir conf$$.dir 2>/dev/null
   514 if mkdir -p . 2>/dev/null; then
   515   as_mkdir_p=:
   516 else
   517   test -d ./-p && rmdir ./-p
   518   as_mkdir_p=false
   519 fi
   521 if test -x / >/dev/null 2>&1; then
   522   as_test_x='test -x'
   523 else
   524   if ls -dL / >/dev/null 2>&1; then
   525     as_ls_L_option=L
   526   else
   527     as_ls_L_option=
   528   fi
   529   as_test_x='
   530     eval sh -c '\''
   531       if test -d "$1"; then
   532         test -d "$1/.";
   533       else
   534 	case $1 in
   535         -*)set "./$1";;
   536 	esac;
   537 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   538 	???[sx]*):;;*)false;;esac;fi
   539     '\'' sh
   540   '
   541 fi
   542 as_executable_p=$as_test_x
   544 # Sed expression to map a string onto a valid CPP name.
   545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   547 # Sed expression to map a string onto a valid variable name.
   548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   552 exec 7<&0 </dev/null 6>&1
   554 # Name of the host.
   555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   556 # so uname gets run too.
   557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   559 #
   560 # Initializations.
   561 #
   562 ac_default_prefix=/usr/local
   563 ac_clean_files=
   564 ac_config_libobj_dir=.
   565 LIBOBJS=
   566 cross_compiling=no
   567 subdirs=
   568 MFLAGS=
   569 MAKEFLAGS=
   570 SHELL=${CONFIG_SHELL-/bin/sh}
   572 # Identity of this package.
   573 PACKAGE_NAME=
   574 PACKAGE_TARNAME=
   575 PACKAGE_VERSION=
   576 PACKAGE_STRING=
   577 PACKAGE_BUGREPORT=
   579 ac_unique_file="configure.in"
   580 # Factoring default headers for most tests.
   581 ac_includes_default="\
   582 #include <stdio.h>
   583 #ifdef HAVE_SYS_TYPES_H
   584 # include <sys/types.h>
   585 #endif
   586 #ifdef HAVE_SYS_STAT_H
   587 # include <sys/stat.h>
   588 #endif
   589 #ifdef STDC_HEADERS
   590 # include <stdlib.h>
   591 # include <stddef.h>
   592 #else
   593 # ifdef HAVE_STDLIB_H
   594 #  include <stdlib.h>
   595 # endif
   596 #endif
   597 #ifdef HAVE_STRING_H
   598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   599 #  include <memory.h>
   600 # endif
   601 # include <string.h>
   602 #endif
   603 #ifdef HAVE_STRINGS_H
   604 # include <strings.h>
   605 #endif
   606 #ifdef HAVE_INTTYPES_H
   607 # include <inttypes.h>
   608 #endif
   609 #ifdef HAVE_STDINT_H
   610 # include <stdint.h>
   611 #endif
   612 #ifdef HAVE_UNISTD_H
   613 # include <unistd.h>
   614 #endif"
   616 ac_subst_vars='SHELL
   617 PATH_SEPARATOR
   618 PACKAGE_NAME
   619 PACKAGE_TARNAME
   620 PACKAGE_VERSION
   621 PACKAGE_STRING
   622 PACKAGE_BUGREPORT
   623 exec_prefix
   624 prefix
   625 program_transform_name
   626 bindir
   627 sbindir
   628 libexecdir
   629 datarootdir
   630 datadir
   631 sysconfdir
   632 sharedstatedir
   633 localstatedir
   634 includedir
   635 oldincludedir
   636 docdir
   637 infodir
   638 htmldir
   639 dvidir
   640 pdfdir
   641 psdir
   642 libdir
   643 localedir
   644 mandir
   645 DEFS
   646 ECHO_C
   647 ECHO_N
   648 ECHO_T
   649 LIBS
   650 build_alias
   651 host_alias
   652 target_alias
   653 INSTALL_PROGRAM
   654 INSTALL_SCRIPT
   655 INSTALL_DATA
   656 CYGPATH_W
   657 PACKAGE
   658 VERSION
   659 ACLOCAL
   660 AUTOCONF
   661 AUTOMAKE
   662 AUTOHEADER
   663 MAKEINFO
   664 AMTAR
   665 install_sh
   666 STRIP
   667 INSTALL_STRIP_PROGRAM
   668 AWK
   669 SET_MAKE
   670 am__leading_dot
   671 MAINTAINER_MODE_TRUE
   672 MAINTAINER_MODE_FALSE
   673 MAINT
   674 CC
   675 CFLAGS
   676 LDFLAGS
   677 CPPFLAGS
   678 ac_ct_CC
   679 EXEEXT
   680 OBJEXT
   681 DEPDIR
   682 am__include
   683 am__quote
   684 AMDEP_TRUE
   685 AMDEP_FALSE
   686 AMDEPBACKSLASH
   687 CCDEPMODE
   688 am__fastdepCC_TRUE
   689 am__fastdepCC_FALSE
   690 CCAS
   691 CCASFLAGS
   692 CPP
   693 GREP
   694 EGREP
   695 build
   696 build_cpu
   697 build_vendor
   698 build_os
   699 host
   700 host_cpu
   701 host_vendor
   702 host_os
   703 OSMESA_DRIVER_TRUE
   704 OSMESA_DRIVER_FALSE
   705 PKG_CONFIG
   706 LIBPNG_CFLAGS
   707 LIBPNG_LIBS
   708 GTK_CFLAGS
   709 GTK_LIBS
   710 GUI_CARBON_TRUE
   711 GUI_CARBON_FALSE
   712 GUI_GTK_TRUE
   713 GUI_GTK_FALSE
   714 BUILD_SH4X86_TRUE
   715 BUILD_SH4X86_FALSE
   716 BUILD_X86_64_TRUE
   717 BUILD_X86_64_FALSE
   718 PULSE_CFLAGS
   719 PULSE_LIBS
   720 AUDIO_PULSE_TRUE
   721 AUDIO_PULSE_FALSE
   722 ESOUND_CFLAGS
   723 ESOUND_LIBS
   724 AUDIO_ESOUND_TRUE
   725 AUDIO_ESOUND_FALSE
   726 ALSA_CFLAGS
   727 ALSA_LIBS
   728 AUDIO_ALSA_TRUE
   729 AUDIO_ALSA_FALSE
   730 CDROM_LINUX_TRUE
   731 CDROM_LINUX_FALSE
   732 JOY_LINUX_TRUE
   733 JOY_LINUX_FALSE
   734 SHCC
   735 SHLD
   736 SHOBJCOPY
   737 ARMCC
   738 ARMLD
   739 ARMOBJCOPY
   740 BUILD_SYSTEST_TRUE
   741 BUILD_SYSTEST_FALSE
   742 BUILD_ARMTEST_TRUE
   743 BUILD_ARMTEST_FALSE
   744 GETTEXT_PACKAGE
   745 USE_NLS
   746 MSGFMT
   747 MSGFMT_OPTS
   748 GMSGFMT
   749 XGETTEXT
   750 CATALOGS
   751 CATOBJEXT
   752 DATADIRNAME
   753 GMOFILES
   754 INSTOBJEXT
   755 INTLLIBS
   756 PO_IN_DATADIR_TRUE
   757 PO_IN_DATADIR_FALSE
   758 POFILES
   759 POSUB
   760 MKINSTALLDIRS
   761 LIBOBJS
   762 LTLIBOBJS'
   763 ac_subst_files=''
   764       ac_precious_vars='build_alias
   765 host_alias
   766 target_alias
   767 CC
   768 CFLAGS
   769 LDFLAGS
   770 LIBS
   771 CPPFLAGS
   772 CPP
   773 PKG_CONFIG
   774 LIBPNG_CFLAGS
   775 LIBPNG_LIBS
   776 GTK_CFLAGS
   777 GTK_LIBS
   778 PULSE_CFLAGS
   779 PULSE_LIBS
   780 ESOUND_CFLAGS
   781 ESOUND_LIBS
   782 ALSA_CFLAGS
   783 ALSA_LIBS'
   786 # Initialize some variables set by options.
   787 ac_init_help=
   788 ac_init_version=false
   789 # The variables have the same names as the options, with
   790 # dashes changed to underlines.
   791 cache_file=/dev/null
   792 exec_prefix=NONE
   793 no_create=
   794 no_recursion=
   795 prefix=NONE
   796 program_prefix=NONE
   797 program_suffix=NONE
   798 program_transform_name=s,x,x,
   799 silent=
   800 site=
   801 srcdir=
   802 verbose=
   803 x_includes=NONE
   804 x_libraries=NONE
   806 # Installation directory options.
   807 # These are left unexpanded so users can "make install exec_prefix=/foo"
   808 # and all the variables that are supposed to be based on exec_prefix
   809 # by default will actually change.
   810 # Use braces instead of parens because sh, perl, etc. also accept them.
   811 # (The list follows the same order as the GNU Coding Standards.)
   812 bindir='${exec_prefix}/bin'
   813 sbindir='${exec_prefix}/sbin'
   814 libexecdir='${exec_prefix}/libexec'
   815 datarootdir='${prefix}/share'
   816 datadir='${datarootdir}'
   817 sysconfdir='${prefix}/etc'
   818 sharedstatedir='${prefix}/com'
   819 localstatedir='${prefix}/var'
   820 includedir='${prefix}/include'
   821 oldincludedir='/usr/include'
   822 docdir='${datarootdir}/doc/${PACKAGE}'
   823 infodir='${datarootdir}/info'
   824 htmldir='${docdir}'
   825 dvidir='${docdir}'
   826 pdfdir='${docdir}'
   827 psdir='${docdir}'
   828 libdir='${exec_prefix}/lib'
   829 localedir='${datarootdir}/locale'
   830 mandir='${datarootdir}/man'
   832 ac_prev=
   833 ac_dashdash=
   834 for ac_option
   835 do
   836   # If the previous option needs an argument, assign it.
   837   if test -n "$ac_prev"; then
   838     eval $ac_prev=\$ac_option
   839     ac_prev=
   840     continue
   841   fi
   843   case $ac_option in
   844   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   845   *)	ac_optarg=yes ;;
   846   esac
   848   # Accept the important Cygnus configure options, so we can diagnose typos.
   850   case $ac_dashdash$ac_option in
   851   --)
   852     ac_dashdash=yes ;;
   854   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   855     ac_prev=bindir ;;
   856   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   857     bindir=$ac_optarg ;;
   859   -build | --build | --buil | --bui | --bu)
   860     ac_prev=build_alias ;;
   861   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   862     build_alias=$ac_optarg ;;
   864   -cache-file | --cache-file | --cache-fil | --cache-fi \
   865   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   866     ac_prev=cache_file ;;
   867   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   868   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   869     cache_file=$ac_optarg ;;
   871   --config-cache | -C)
   872     cache_file=config.cache ;;
   874   -datadir | --datadir | --datadi | --datad)
   875     ac_prev=datadir ;;
   876   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   877     datadir=$ac_optarg ;;
   879   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   880   | --dataroo | --dataro | --datar)
   881     ac_prev=datarootdir ;;
   882   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   883   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   884     datarootdir=$ac_optarg ;;
   886   -disable-* | --disable-*)
   887     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   888     # Reject names that are not valid shell variable names.
   889     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   890       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   891    { (exit 1); exit 1; }; }
   892     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   893     eval enable_$ac_feature=no ;;
   895   -docdir | --docdir | --docdi | --doc | --do)
   896     ac_prev=docdir ;;
   897   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   898     docdir=$ac_optarg ;;
   900   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   901     ac_prev=dvidir ;;
   902   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   903     dvidir=$ac_optarg ;;
   905   -enable-* | --enable-*)
   906     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   907     # Reject names that are not valid shell variable names.
   908     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   909       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   910    { (exit 1); exit 1; }; }
   911     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   912     eval enable_$ac_feature=\$ac_optarg ;;
   914   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   915   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   916   | --exec | --exe | --ex)
   917     ac_prev=exec_prefix ;;
   918   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   919   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   920   | --exec=* | --exe=* | --ex=*)
   921     exec_prefix=$ac_optarg ;;
   923   -gas | --gas | --ga | --g)
   924     # Obsolete; use --with-gas.
   925     with_gas=yes ;;
   927   -help | --help | --hel | --he | -h)
   928     ac_init_help=long ;;
   929   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   930     ac_init_help=recursive ;;
   931   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   932     ac_init_help=short ;;
   934   -host | --host | --hos | --ho)
   935     ac_prev=host_alias ;;
   936   -host=* | --host=* | --hos=* | --ho=*)
   937     host_alias=$ac_optarg ;;
   939   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   940     ac_prev=htmldir ;;
   941   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   942   | --ht=*)
   943     htmldir=$ac_optarg ;;
   945   -includedir | --includedir | --includedi | --included | --include \
   946   | --includ | --inclu | --incl | --inc)
   947     ac_prev=includedir ;;
   948   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   949   | --includ=* | --inclu=* | --incl=* | --inc=*)
   950     includedir=$ac_optarg ;;
   952   -infodir | --infodir | --infodi | --infod | --info | --inf)
   953     ac_prev=infodir ;;
   954   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   955     infodir=$ac_optarg ;;
   957   -libdir | --libdir | --libdi | --libd)
   958     ac_prev=libdir ;;
   959   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   960     libdir=$ac_optarg ;;
   962   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   963   | --libexe | --libex | --libe)
   964     ac_prev=libexecdir ;;
   965   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   966   | --libexe=* | --libex=* | --libe=*)
   967     libexecdir=$ac_optarg ;;
   969   -localedir | --localedir | --localedi | --localed | --locale)
   970     ac_prev=localedir ;;
   971   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   972     localedir=$ac_optarg ;;
   974   -localstatedir | --localstatedir | --localstatedi | --localstated \
   975   | --localstate | --localstat | --localsta | --localst | --locals)
   976     ac_prev=localstatedir ;;
   977   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   978   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   979     localstatedir=$ac_optarg ;;
   981   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   982     ac_prev=mandir ;;
   983   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   984     mandir=$ac_optarg ;;
   986   -nfp | --nfp | --nf)
   987     # Obsolete; use --without-fp.
   988     with_fp=no ;;
   990   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   991   | --no-cr | --no-c | -n)
   992     no_create=yes ;;
   994   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   995   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   996     no_recursion=yes ;;
   998   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   999   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1000   | --oldin | --oldi | --old | --ol | --o)
  1001     ac_prev=oldincludedir ;;
  1002   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1003   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1004   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1005     oldincludedir=$ac_optarg ;;
  1007   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1008     ac_prev=prefix ;;
  1009   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1010     prefix=$ac_optarg ;;
  1012   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1013   | --program-pre | --program-pr | --program-p)
  1014     ac_prev=program_prefix ;;
  1015   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1016   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1017     program_prefix=$ac_optarg ;;
  1019   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1020   | --program-suf | --program-su | --program-s)
  1021     ac_prev=program_suffix ;;
  1022   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1023   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1024     program_suffix=$ac_optarg ;;
  1026   -program-transform-name | --program-transform-name \
  1027   | --program-transform-nam | --program-transform-na \
  1028   | --program-transform-n | --program-transform- \
  1029   | --program-transform | --program-transfor \
  1030   | --program-transfo | --program-transf \
  1031   | --program-trans | --program-tran \
  1032   | --progr-tra | --program-tr | --program-t)
  1033     ac_prev=program_transform_name ;;
  1034   -program-transform-name=* | --program-transform-name=* \
  1035   | --program-transform-nam=* | --program-transform-na=* \
  1036   | --program-transform-n=* | --program-transform-=* \
  1037   | --program-transform=* | --program-transfor=* \
  1038   | --program-transfo=* | --program-transf=* \
  1039   | --program-trans=* | --program-tran=* \
  1040   | --progr-tra=* | --program-tr=* | --program-t=*)
  1041     program_transform_name=$ac_optarg ;;
  1043   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1044     ac_prev=pdfdir ;;
  1045   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1046     pdfdir=$ac_optarg ;;
  1048   -psdir | --psdir | --psdi | --psd | --ps)
  1049     ac_prev=psdir ;;
  1050   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1051     psdir=$ac_optarg ;;
  1053   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1054   | -silent | --silent | --silen | --sile | --sil)
  1055     silent=yes ;;
  1057   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1058     ac_prev=sbindir ;;
  1059   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1060   | --sbi=* | --sb=*)
  1061     sbindir=$ac_optarg ;;
  1063   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1064   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1065   | --sharedst | --shareds | --shared | --share | --shar \
  1066   | --sha | --sh)
  1067     ac_prev=sharedstatedir ;;
  1068   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1069   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1070   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1071   | --sha=* | --sh=*)
  1072     sharedstatedir=$ac_optarg ;;
  1074   -site | --site | --sit)
  1075     ac_prev=site ;;
  1076   -site=* | --site=* | --sit=*)
  1077     site=$ac_optarg ;;
  1079   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1080     ac_prev=srcdir ;;
  1081   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1082     srcdir=$ac_optarg ;;
  1084   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1085   | --syscon | --sysco | --sysc | --sys | --sy)
  1086     ac_prev=sysconfdir ;;
  1087   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1088   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1089     sysconfdir=$ac_optarg ;;
  1091   -target | --target | --targe | --targ | --tar | --ta | --t)
  1092     ac_prev=target_alias ;;
  1093   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1094     target_alias=$ac_optarg ;;
  1096   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1097     verbose=yes ;;
  1099   -version | --version | --versio | --versi | --vers | -V)
  1100     ac_init_version=: ;;
  1102   -with-* | --with-*)
  1103     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1104     # Reject names that are not valid shell variable names.
  1105     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1106       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1107    { (exit 1); exit 1; }; }
  1108     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1109     eval with_$ac_package=\$ac_optarg ;;
  1111   -without-* | --without-*)
  1112     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1113     # Reject names that are not valid shell variable names.
  1114     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1115       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1116    { (exit 1); exit 1; }; }
  1117     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1118     eval with_$ac_package=no ;;
  1120   --x)
  1121     # Obsolete; use --with-x.
  1122     with_x=yes ;;
  1124   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1125   | --x-incl | --x-inc | --x-in | --x-i)
  1126     ac_prev=x_includes ;;
  1127   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1128   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1129     x_includes=$ac_optarg ;;
  1131   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1132   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1133     ac_prev=x_libraries ;;
  1134   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1135   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1136     x_libraries=$ac_optarg ;;
  1138   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1139 Try \`$0 --help' for more information." >&2
  1140    { (exit 1); exit 1; }; }
  1141     ;;
  1143   *=*)
  1144     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1145     # Reject names that are not valid shell variable names.
  1146     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1147       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1148    { (exit 1); exit 1; }; }
  1149     eval $ac_envvar=\$ac_optarg
  1150     export $ac_envvar ;;
  1152   *)
  1153     # FIXME: should be removed in autoconf 3.0.
  1154     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1155     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1156       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1157     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1158     ;;
  1160   esac
  1161 done
  1163 if test -n "$ac_prev"; then
  1164   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1165   { echo "$as_me: error: missing argument to $ac_option" >&2
  1166    { (exit 1); exit 1; }; }
  1167 fi
  1169 # Be sure to have absolute directory names.
  1170 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1171 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1172 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1173 		libdir localedir mandir
  1174 do
  1175   eval ac_val=\$$ac_var
  1176   case $ac_val in
  1177     [\\/$]* | ?:[\\/]* )  continue;;
  1178     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1179   esac
  1180   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1181    { (exit 1); exit 1; }; }
  1182 done
  1184 # There might be people who depend on the old broken behavior: `$host'
  1185 # used to hold the argument of --host etc.
  1186 # FIXME: To remove some day.
  1187 build=$build_alias
  1188 host=$host_alias
  1189 target=$target_alias
  1191 # FIXME: To remove some day.
  1192 if test "x$host_alias" != x; then
  1193   if test "x$build_alias" = x; then
  1194     cross_compiling=maybe
  1195     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1196     If a cross compiler is detected then cross compile mode will be used." >&2
  1197   elif test "x$build_alias" != "x$host_alias"; then
  1198     cross_compiling=yes
  1199   fi
  1200 fi
  1202 ac_tool_prefix=
  1203 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1205 test "$silent" = yes && exec 6>/dev/null
  1208 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1209 ac_ls_di=`ls -di .` &&
  1210 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1211   { echo "$as_me: error: Working directory cannot be determined" >&2
  1212    { (exit 1); exit 1; }; }
  1213 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1214   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1215    { (exit 1); exit 1; }; }
  1218 # Find the source files, if location was not specified.
  1219 if test -z "$srcdir"; then
  1220   ac_srcdir_defaulted=yes
  1221   # Try the directory containing this script, then the parent directory.
  1222   ac_confdir=`$as_dirname -- "$0" ||
  1223 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1224 	 X"$0" : 'X\(//\)[^/]' \| \
  1225 	 X"$0" : 'X\(//\)$' \| \
  1226 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1227 echo X"$0" |
  1228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1229 	    s//\1/
  1232 	  /^X\(\/\/\)[^/].*/{
  1233 	    s//\1/
  1236 	  /^X\(\/\/\)$/{
  1237 	    s//\1/
  1240 	  /^X\(\/\).*/{
  1241 	    s//\1/
  1244 	  s/.*/./; q'`
  1245   srcdir=$ac_confdir
  1246   if test ! -r "$srcdir/$ac_unique_file"; then
  1247     srcdir=..
  1248   fi
  1249 else
  1250   ac_srcdir_defaulted=no
  1251 fi
  1252 if test ! -r "$srcdir/$ac_unique_file"; then
  1253   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1254   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1255    { (exit 1); exit 1; }; }
  1256 fi
  1257 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1258 ac_abs_confdir=`(
  1259 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1260    { (exit 1); exit 1; }; }
  1261 	pwd)`
  1262 # When building in place, set srcdir=.
  1263 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1264   srcdir=.
  1265 fi
  1266 # Remove unnecessary trailing slashes from srcdir.
  1267 # Double slashes in file names in object file debugging info
  1268 # mess up M-x gdb in Emacs.
  1269 case $srcdir in
  1270 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1271 esac
  1272 for ac_var in $ac_precious_vars; do
  1273   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1274   eval ac_env_${ac_var}_value=\$${ac_var}
  1275   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1276   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1277 done
  1280 # Report the --help message.
  1282 if test "$ac_init_help" = "long"; then
  1283   # Omit some internal or obsolete options to make the list less imposing.
  1284   # This message is too long to be a string in the A/UX 3.1 sh.
  1285   cat <<_ACEOF
  1286 \`configure' configures this package to adapt to many kinds of systems.
  1288 Usage: $0 [OPTION]... [VAR=VALUE]...
  1290 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1291 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1293 Defaults for the options are specified in brackets.
  1295 Configuration:
  1296   -h, --help              display this help and exit
  1297       --help=short        display options specific to this package
  1298       --help=recursive    display the short help of all the included packages
  1299   -V, --version           display version information and exit
  1300   -q, --quiet, --silent   do not print \`checking...' messages
  1301       --cache-file=FILE   cache test results in FILE [disabled]
  1302   -C, --config-cache      alias for \`--cache-file=config.cache'
  1303   -n, --no-create         do not create output files
  1304       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1306 Installation directories:
  1307   --prefix=PREFIX         install architecture-independent files in PREFIX
  1308 			  [$ac_default_prefix]
  1309   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1310 			  [PREFIX]
  1312 By default, \`make install' will install all the files in
  1313 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1314 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1315 for instance \`--prefix=\$HOME'.
  1317 For better control, use the options below.
  1319 Fine tuning of the installation directories:
  1320   --bindir=DIR           user executables [EPREFIX/bin]
  1321   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1322   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1323   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1324   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1325   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1326   --libdir=DIR           object code libraries [EPREFIX/lib]
  1327   --includedir=DIR       C header files [PREFIX/include]
  1328   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1329   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1330   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1331   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1332   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1333   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1334   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1335   --htmldir=DIR          html documentation [DOCDIR]
  1336   --dvidir=DIR           dvi documentation [DOCDIR]
  1337   --pdfdir=DIR           pdf documentation [DOCDIR]
  1338   --psdir=DIR            ps documentation [DOCDIR]
  1339 _ACEOF
  1341   cat <<\_ACEOF
  1343 Program names:
  1344   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1345   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1346   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1348 System types:
  1349   --build=BUILD     configure for building on BUILD [guessed]
  1350   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1351 _ACEOF
  1352 fi
  1354 if test -n "$ac_init_help"; then
  1356   cat <<\_ACEOF
  1358 Optional Features:
  1359   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1360   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1361   --enable-maintainer-mode enable make rules and dependencies not useful
  1362                           (and sometimes confusing) to the casual installer
  1363   --disable-dependency-tracking Speeds up one-time builds
  1364   --enable-dependency-tracking  Do not reject slow dependency extractors
  1365   --enable-trace          Enable generation of IO traces (warning: hurts
  1366                           performance)
  1367   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1368                           performance)
  1370 Optional Packages:
  1371   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1372   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1373   --with-osmesa           Build with the osmesa GL library (software
  1374                           rendering)
  1376 Some influential environment variables:
  1377   CC          C compiler command
  1378   CFLAGS      C compiler flags
  1379   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1380               nonstandard directory <lib dir>
  1381   LIBS        libraries to pass to the linker, e.g. -l<library>
  1382   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1383               you have headers in a nonstandard directory <include dir>
  1384   CPP         C preprocessor
  1385   PKG_CONFIG  path to pkg-config utility
  1386   LIBPNG_CFLAGS
  1387               C compiler flags for LIBPNG, overriding pkg-config
  1388   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1389   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1390   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1391   PULSE_CFLAGS
  1392               C compiler flags for PULSE, overriding pkg-config
  1393   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1394   ESOUND_CFLAGS
  1395               C compiler flags for ESOUND, overriding pkg-config
  1396   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1397   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1398   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1400 Use these variables to override the choices made by `configure' or to help
  1401 it to find libraries and programs with nonstandard names/locations.
  1403 _ACEOF
  1404 ac_status=$?
  1405 fi
  1407 if test "$ac_init_help" = "recursive"; then
  1408   # If there are subdirs, report their specific --help.
  1409   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1410     test -d "$ac_dir" || continue
  1411     ac_builddir=.
  1413 case "$ac_dir" in
  1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1415 *)
  1416   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1417   # A ".." for each directory in $ac_dir_suffix.
  1418   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1419   case $ac_top_builddir_sub in
  1420   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1421   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1422   esac ;;
  1423 esac
  1424 ac_abs_top_builddir=$ac_pwd
  1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1426 # for backward compatibility:
  1427 ac_top_builddir=$ac_top_build_prefix
  1429 case $srcdir in
  1430   .)  # We are building in place.
  1431     ac_srcdir=.
  1432     ac_top_srcdir=$ac_top_builddir_sub
  1433     ac_abs_top_srcdir=$ac_pwd ;;
  1434   [\\/]* | ?:[\\/]* )  # Absolute name.
  1435     ac_srcdir=$srcdir$ac_dir_suffix;
  1436     ac_top_srcdir=$srcdir
  1437     ac_abs_top_srcdir=$srcdir ;;
  1438   *) # Relative name.
  1439     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1440     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1441     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1442 esac
  1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1445     cd "$ac_dir" || { ac_status=$?; continue; }
  1446     # Check for guested configure.
  1447     if test -f "$ac_srcdir/configure.gnu"; then
  1448       echo &&
  1449       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1450     elif test -f "$ac_srcdir/configure"; then
  1451       echo &&
  1452       $SHELL "$ac_srcdir/configure" --help=recursive
  1453     else
  1454       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1455     fi || ac_status=$?
  1456     cd "$ac_pwd" || { ac_status=$?; break; }
  1457   done
  1458 fi
  1460 test -n "$ac_init_help" && exit $ac_status
  1461 if $ac_init_version; then
  1462   cat <<\_ACEOF
  1463 configure
  1464 generated by GNU Autoconf 2.61
  1466 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1467 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1468 This configure script is free software; the Free Software Foundation
  1469 gives unlimited permission to copy, distribute and modify it.
  1470 _ACEOF
  1471   exit
  1472 fi
  1473 cat >config.log <<_ACEOF
  1474 This file contains any messages produced by compilers while
  1475 running configure, to aid debugging if configure makes a mistake.
  1477 It was created by $as_me, which was
  1478 generated by GNU Autoconf 2.61.  Invocation command line was
  1480   $ $0 $@
  1482 _ACEOF
  1483 exec 5>>config.log
  1485 cat <<_ASUNAME
  1486 ## --------- ##
  1487 ## Platform. ##
  1488 ## --------- ##
  1490 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1491 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1492 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1493 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1494 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1496 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1497 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1499 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1500 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1501 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1502 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1503 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1504 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1505 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1507 _ASUNAME
  1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1510 for as_dir in $PATH
  1511 do
  1512   IFS=$as_save_IFS
  1513   test -z "$as_dir" && as_dir=.
  1514   echo "PATH: $as_dir"
  1515 done
  1516 IFS=$as_save_IFS
  1518 } >&5
  1520 cat >&5 <<_ACEOF
  1523 ## ----------- ##
  1524 ## Core tests. ##
  1525 ## ----------- ##
  1527 _ACEOF
  1530 # Keep a trace of the command line.
  1531 # Strip out --no-create and --no-recursion so they do not pile up.
  1532 # Strip out --silent because we don't want to record it for future runs.
  1533 # Also quote any args containing shell meta-characters.
  1534 # Make two passes to allow for proper duplicate-argument suppression.
  1535 ac_configure_args=
  1536 ac_configure_args0=
  1537 ac_configure_args1=
  1538 ac_must_keep_next=false
  1539 for ac_pass in 1 2
  1540 do
  1541   for ac_arg
  1542   do
  1543     case $ac_arg in
  1544     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1545     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1546     | -silent | --silent | --silen | --sile | --sil)
  1547       continue ;;
  1548     *\'*)
  1549       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1550     esac
  1551     case $ac_pass in
  1552     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1553     2)
  1554       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1555       if test $ac_must_keep_next = true; then
  1556 	ac_must_keep_next=false # Got value, back to normal.
  1557       else
  1558 	case $ac_arg in
  1559 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1560 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1561 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1562 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1563 	    case "$ac_configure_args0 " in
  1564 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1565 	    esac
  1566 	    ;;
  1567 	  -* ) ac_must_keep_next=true ;;
  1568 	esac
  1569       fi
  1570       ac_configure_args="$ac_configure_args '$ac_arg'"
  1571       ;;
  1572     esac
  1573   done
  1574 done
  1575 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1576 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1578 # When interrupted or exit'd, cleanup temporary files, and complete
  1579 # config.log.  We remove comments because anyway the quotes in there
  1580 # would cause problems or look ugly.
  1581 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1582 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1583 trap 'exit_status=$?
  1584   # Save into config.log some information that might help in debugging.
  1586     echo
  1588     cat <<\_ASBOX
  1589 ## ---------------- ##
  1590 ## Cache variables. ##
  1591 ## ---------------- ##
  1592 _ASBOX
  1593     echo
  1594     # The following way of writing the cache mishandles newlines in values,
  1596   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1597     eval ac_val=\$$ac_var
  1598     case $ac_val in #(
  1599     *${as_nl}*)
  1600       case $ac_var in #(
  1601       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1602 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1603       esac
  1604       case $ac_var in #(
  1605       _ | IFS | as_nl) ;; #(
  1606       *) $as_unset $ac_var ;;
  1607       esac ;;
  1608     esac
  1609   done
  1610   (set) 2>&1 |
  1611     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1612     *${as_nl}ac_space=\ *)
  1613       sed -n \
  1614 	"s/'\''/'\''\\\\'\'''\''/g;
  1615 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1616       ;; #(
  1617     *)
  1618       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1619       ;;
  1620     esac |
  1621     sort
  1623     echo
  1625     cat <<\_ASBOX
  1626 ## ----------------- ##
  1627 ## Output variables. ##
  1628 ## ----------------- ##
  1629 _ASBOX
  1630     echo
  1631     for ac_var in $ac_subst_vars
  1632     do
  1633       eval ac_val=\$$ac_var
  1634       case $ac_val in
  1635       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1636       esac
  1637       echo "$ac_var='\''$ac_val'\''"
  1638     done | sort
  1639     echo
  1641     if test -n "$ac_subst_files"; then
  1642       cat <<\_ASBOX
  1643 ## ------------------- ##
  1644 ## File substitutions. ##
  1645 ## ------------------- ##
  1646 _ASBOX
  1647       echo
  1648       for ac_var in $ac_subst_files
  1649       do
  1650 	eval ac_val=\$$ac_var
  1651 	case $ac_val in
  1652 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1653 	esac
  1654 	echo "$ac_var='\''$ac_val'\''"
  1655       done | sort
  1656       echo
  1657     fi
  1659     if test -s confdefs.h; then
  1660       cat <<\_ASBOX
  1661 ## ----------- ##
  1662 ## confdefs.h. ##
  1663 ## ----------- ##
  1664 _ASBOX
  1665       echo
  1666       cat confdefs.h
  1667       echo
  1668     fi
  1669     test "$ac_signal" != 0 &&
  1670       echo "$as_me: caught signal $ac_signal"
  1671     echo "$as_me: exit $exit_status"
  1672   } >&5
  1673   rm -f core *.core core.conftest.* &&
  1674     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1675     exit $exit_status
  1676 ' 0
  1677 for ac_signal in 1 2 13 15; do
  1678   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1679 done
  1680 ac_signal=0
  1682 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1683 rm -f -r conftest* confdefs.h
  1685 # Predefined preprocessor variables.
  1687 cat >>confdefs.h <<_ACEOF
  1688 #define PACKAGE_NAME "$PACKAGE_NAME"
  1689 _ACEOF
  1692 cat >>confdefs.h <<_ACEOF
  1693 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1694 _ACEOF
  1697 cat >>confdefs.h <<_ACEOF
  1698 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1699 _ACEOF
  1702 cat >>confdefs.h <<_ACEOF
  1703 #define PACKAGE_STRING "$PACKAGE_STRING"
  1704 _ACEOF
  1707 cat >>confdefs.h <<_ACEOF
  1708 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1709 _ACEOF
  1712 # Let the site file select an alternate cache file if it wants to.
  1713 # Prefer explicitly selected file to automatically selected ones.
  1714 if test -n "$CONFIG_SITE"; then
  1715   set x "$CONFIG_SITE"
  1716 elif test "x$prefix" != xNONE; then
  1717   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1718 else
  1719   set x "$ac_default_prefix/share/config.site" \
  1720 	"$ac_default_prefix/etc/config.site"
  1721 fi
  1722 shift
  1723 for ac_site_file
  1724 do
  1725   if test -r "$ac_site_file"; then
  1726     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1727 echo "$as_me: loading site script $ac_site_file" >&6;}
  1728     sed 's/^/| /' "$ac_site_file" >&5
  1729     . "$ac_site_file"
  1730   fi
  1731 done
  1733 if test -r "$cache_file"; then
  1734   # Some versions of bash will fail to source /dev/null (special
  1735   # files actually), so we avoid doing that.
  1736   if test -f "$cache_file"; then
  1737     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1738 echo "$as_me: loading cache $cache_file" >&6;}
  1739     case $cache_file in
  1740       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1741       *)                      . "./$cache_file";;
  1742     esac
  1743   fi
  1744 else
  1745   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1746 echo "$as_me: creating cache $cache_file" >&6;}
  1747   >$cache_file
  1748 fi
  1750 # Check that the precious variables saved in the cache have kept the same
  1751 # value.
  1752 ac_cache_corrupted=false
  1753 for ac_var in $ac_precious_vars; do
  1754   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1755   eval ac_new_set=\$ac_env_${ac_var}_set
  1756   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1757   eval ac_new_val=\$ac_env_${ac_var}_value
  1758   case $ac_old_set,$ac_new_set in
  1759     set,)
  1760       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1761 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1762       ac_cache_corrupted=: ;;
  1763     ,set)
  1764       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1765 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1766       ac_cache_corrupted=: ;;
  1767     ,);;
  1768     *)
  1769       if test "x$ac_old_val" != "x$ac_new_val"; then
  1770 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1771 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1772 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1773 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1774 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1775 echo "$as_me:   current value: $ac_new_val" >&2;}
  1776 	ac_cache_corrupted=:
  1777       fi;;
  1778   esac
  1779   # Pass precious variables to config.status.
  1780   if test "$ac_new_set" = set; then
  1781     case $ac_new_val in
  1782     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1783     *) ac_arg=$ac_var=$ac_new_val ;;
  1784     esac
  1785     case " $ac_configure_args " in
  1786       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1787       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1788     esac
  1789   fi
  1790 done
  1791 if $ac_cache_corrupted; then
  1792   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1793 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1794   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1795 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1796    { (exit 1); exit 1; }; }
  1797 fi
  1815 ac_ext=c
  1816 ac_cpp='$CPP $CPPFLAGS'
  1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1822 am__api_version="1.7"
  1823 ac_aux_dir=
  1824 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1825   if test -f "$ac_dir/install-sh"; then
  1826     ac_aux_dir=$ac_dir
  1827     ac_install_sh="$ac_aux_dir/install-sh -c"
  1828     break
  1829   elif test -f "$ac_dir/install.sh"; then
  1830     ac_aux_dir=$ac_dir
  1831     ac_install_sh="$ac_aux_dir/install.sh -c"
  1832     break
  1833   elif test -f "$ac_dir/shtool"; then
  1834     ac_aux_dir=$ac_dir
  1835     ac_install_sh="$ac_aux_dir/shtool install -c"
  1836     break
  1837   fi
  1838 done
  1839 if test -z "$ac_aux_dir"; then
  1840   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1841 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1842    { (exit 1); exit 1; }; }
  1843 fi
  1845 # These three variables are undocumented and unsupported,
  1846 # and are intended to be withdrawn in a future Autoconf release.
  1847 # They can cause serious problems if a builder's source tree is in a directory
  1848 # whose full name contains unusual characters.
  1849 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1850 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1851 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1854 # Find a good install program.  We prefer a C program (faster),
  1855 # so one script is as good as another.  But avoid the broken or
  1856 # incompatible versions:
  1857 # SysV /etc/install, /usr/sbin/install
  1858 # SunOS /usr/etc/install
  1859 # IRIX /sbin/install
  1860 # AIX /bin/install
  1861 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1862 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1863 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1864 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1865 # OS/2's system install, which has a completely different semantic
  1866 # ./install, which can be erroneously created by make from ./install.sh.
  1867 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1868 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1869 if test -z "$INSTALL"; then
  1870 if test "${ac_cv_path_install+set}" = set; then
  1871   echo $ECHO_N "(cached) $ECHO_C" >&6
  1872 else
  1873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1874 for as_dir in $PATH
  1875 do
  1876   IFS=$as_save_IFS
  1877   test -z "$as_dir" && as_dir=.
  1878   # Account for people who put trailing slashes in PATH elements.
  1879 case $as_dir/ in
  1880   ./ | .// | /cC/* | \
  1881   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1882   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1883   /usr/ucb/* ) ;;
  1884   *)
  1885     # OSF1 and SCO ODT 3.0 have their own names for install.
  1886     # Don't use installbsd from OSF since it installs stuff as root
  1887     # by default.
  1888     for ac_prog in ginstall scoinst install; do
  1889       for ac_exec_ext in '' $ac_executable_extensions; do
  1890 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1891 	  if test $ac_prog = install &&
  1892 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1893 	    # AIX install.  It has an incompatible calling convention.
  1895 	  elif test $ac_prog = install &&
  1896 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1897 	    # program-specific install script used by HP pwplus--don't use.
  1899 	  else
  1900 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1901 	    break 3
  1902 	  fi
  1903 	fi
  1904       done
  1905     done
  1906     ;;
  1907 esac
  1908 done
  1909 IFS=$as_save_IFS
  1912 fi
  1913   if test "${ac_cv_path_install+set}" = set; then
  1914     INSTALL=$ac_cv_path_install
  1915   else
  1916     # As a last resort, use the slow shell script.  Don't cache a
  1917     # value for INSTALL within a source directory, because that will
  1918     # break other packages using the cache if that directory is
  1919     # removed, or if the value is a relative name.
  1920     INSTALL=$ac_install_sh
  1921   fi
  1922 fi
  1923 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1924 echo "${ECHO_T}$INSTALL" >&6; }
  1926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1927 # It thinks the first close brace ends the variable substitution.
  1928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1932 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1934 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1935 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1936 # Just in case
  1937 sleep 1
  1938 echo timestamp > conftest.file
  1939 # Do `set' in a subshell so we don't clobber the current shell's
  1940 # arguments.  Must try -L first in case configure is actually a
  1941 # symlink; some systems play weird games with the mod time of symlinks
  1942 # (eg FreeBSD returns the mod time of the symlink's containing
  1943 # directory).
  1944 if (
  1945    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1946    if test "$*" = "X"; then
  1947       # -L didn't work.
  1948       set X `ls -t $srcdir/configure conftest.file`
  1949    fi
  1950    rm -f conftest.file
  1951    if test "$*" != "X $srcdir/configure conftest.file" \
  1952       && test "$*" != "X conftest.file $srcdir/configure"; then
  1954       # If neither matched, then we have a broken ls.  This can happen
  1955       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1956       # broken ls alias from the environment.  This has actually
  1957       # happened.  Such a system could not be considered "sane".
  1958       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1959 alias in your environment" >&5
  1960 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1961 alias in your environment" >&2;}
  1962    { (exit 1); exit 1; }; }
  1963    fi
  1965    test "$2" = conftest.file
  1967 then
  1968    # Ok.
  1970 else
  1971    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1972 Check your system clock" >&5
  1973 echo "$as_me: error: newly created file is older than distributed files!
  1974 Check your system clock" >&2;}
  1975    { (exit 1); exit 1; }; }
  1976 fi
  1977 { echo "$as_me:$LINENO: result: yes" >&5
  1978 echo "${ECHO_T}yes" >&6; }
  1979 test "$program_prefix" != NONE &&
  1980   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1981 # Use a double $ so make ignores it.
  1982 test "$program_suffix" != NONE &&
  1983   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1984 # Double any \ or $.  echo might interpret backslashes.
  1985 # By default was `s,x,x', remove it if useless.
  1986 cat <<\_ACEOF >conftest.sed
  1987 s/[\\$]/&&/g;s/;s,x,x,$//
  1988 _ACEOF
  1989 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1990 rm -f conftest.sed
  1993 # expand $ac_aux_dir to an absolute path
  1994 am_aux_dir=`cd $ac_aux_dir && pwd`
  1996 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1997 # Use eval to expand $SHELL
  1998 if eval "$MISSING --run true"; then
  1999   am_missing_run="$MISSING --run "
  2000 else
  2001   am_missing_run=
  2002   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2003 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2004 fi
  2006 for ac_prog in gawk mawk nawk awk
  2007 do
  2008   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2009 set dummy $ac_prog; ac_word=$2
  2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2012 if test "${ac_cv_prog_AWK+set}" = set; then
  2013   echo $ECHO_N "(cached) $ECHO_C" >&6
  2014 else
  2015   if test -n "$AWK"; then
  2016   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2017 else
  2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2019 for as_dir in $PATH
  2020 do
  2021   IFS=$as_save_IFS
  2022   test -z "$as_dir" && as_dir=.
  2023   for ac_exec_ext in '' $ac_executable_extensions; do
  2024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2025     ac_cv_prog_AWK="$ac_prog"
  2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2027     break 2
  2028   fi
  2029 done
  2030 done
  2031 IFS=$as_save_IFS
  2033 fi
  2034 fi
  2035 AWK=$ac_cv_prog_AWK
  2036 if test -n "$AWK"; then
  2037   { echo "$as_me:$LINENO: result: $AWK" >&5
  2038 echo "${ECHO_T}$AWK" >&6; }
  2039 else
  2040   { echo "$as_me:$LINENO: result: no" >&5
  2041 echo "${ECHO_T}no" >&6; }
  2042 fi
  2045   test -n "$AWK" && break
  2046 done
  2048 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2049 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2050 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2051 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2052   echo $ECHO_N "(cached) $ECHO_C" >&6
  2053 else
  2054   cat >conftest.make <<\_ACEOF
  2055 SHELL = /bin/sh
  2056 all:
  2057 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2058 _ACEOF
  2059 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2060 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2061   *@@@%%%=?*=@@@%%%*)
  2062     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2063   *)
  2064     eval ac_cv_prog_make_${ac_make}_set=no;;
  2065 esac
  2066 rm -f conftest.make
  2067 fi
  2068 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2069   { echo "$as_me:$LINENO: result: yes" >&5
  2070 echo "${ECHO_T}yes" >&6; }
  2071   SET_MAKE=
  2072 else
  2073   { echo "$as_me:$LINENO: result: no" >&5
  2074 echo "${ECHO_T}no" >&6; }
  2075   SET_MAKE="MAKE=${MAKE-make}"
  2076 fi
  2078 rm -rf .tst 2>/dev/null
  2079 mkdir .tst 2>/dev/null
  2080 if test -d .tst; then
  2081   am__leading_dot=.
  2082 else
  2083   am__leading_dot=_
  2084 fi
  2085 rmdir .tst 2>/dev/null
  2087  # test to see if srcdir already configured
  2088 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2089    test -f $srcdir/config.status; then
  2090   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2091 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2092    { (exit 1); exit 1; }; }
  2093 fi
  2095 # test whether we have cygpath
  2096 if test -z "$CYGPATH_W"; then
  2097   if (cygpath --version) >/dev/null 2>/dev/null; then
  2098     CYGPATH_W='cygpath -w'
  2099   else
  2100     CYGPATH_W=echo
  2101   fi
  2102 fi
  2105 # Define the identity of the package.
  2106  PACKAGE=lxdream
  2107  VERSION=0.8.1
  2110 cat >>confdefs.h <<_ACEOF
  2111 #define PACKAGE "$PACKAGE"
  2112 _ACEOF
  2115 cat >>confdefs.h <<_ACEOF
  2116 #define VERSION "$VERSION"
  2117 _ACEOF
  2119 # Some tools Automake needs.
  2121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2136 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2138 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2140 # Installed binaries are usually stripped using `strip' when the user
  2141 # run `make install-strip'.  However `strip' might not be the right
  2142 # tool to use in cross-compilation environments, therefore Automake
  2143 # will honor the `STRIP' environment variable to overrule this program.
  2144 if test "$cross_compiling" != no; then
  2145   if test -n "$ac_tool_prefix"; then
  2146   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2147 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2150 if test "${ac_cv_prog_STRIP+set}" = set; then
  2151   echo $ECHO_N "(cached) $ECHO_C" >&6
  2152 else
  2153   if test -n "$STRIP"; then
  2154   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2155 else
  2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2157 for as_dir in $PATH
  2158 do
  2159   IFS=$as_save_IFS
  2160   test -z "$as_dir" && as_dir=.
  2161   for ac_exec_ext in '' $ac_executable_extensions; do
  2162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2163     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2165     break 2
  2166   fi
  2167 done
  2168 done
  2169 IFS=$as_save_IFS
  2171 fi
  2172 fi
  2173 STRIP=$ac_cv_prog_STRIP
  2174 if test -n "$STRIP"; then
  2175   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2176 echo "${ECHO_T}$STRIP" >&6; }
  2177 else
  2178   { echo "$as_me:$LINENO: result: no" >&5
  2179 echo "${ECHO_T}no" >&6; }
  2180 fi
  2183 fi
  2184 if test -z "$ac_cv_prog_STRIP"; then
  2185   ac_ct_STRIP=$STRIP
  2186   # Extract the first word of "strip", so it can be a program name with args.
  2187 set dummy strip; ac_word=$2
  2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2190 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2191   echo $ECHO_N "(cached) $ECHO_C" >&6
  2192 else
  2193   if test -n "$ac_ct_STRIP"; then
  2194   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2195 else
  2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2197 for as_dir in $PATH
  2198 do
  2199   IFS=$as_save_IFS
  2200   test -z "$as_dir" && as_dir=.
  2201   for ac_exec_ext in '' $ac_executable_extensions; do
  2202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2203     ac_cv_prog_ac_ct_STRIP="strip"
  2204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2205     break 2
  2206   fi
  2207 done
  2208 done
  2209 IFS=$as_save_IFS
  2211 fi
  2212 fi
  2213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2214 if test -n "$ac_ct_STRIP"; then
  2215   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2216 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2217 else
  2218   { echo "$as_me:$LINENO: result: no" >&5
  2219 echo "${ECHO_T}no" >&6; }
  2220 fi
  2222   if test "x$ac_ct_STRIP" = x; then
  2223     STRIP=":"
  2224   else
  2225     case $cross_compiling:$ac_tool_warned in
  2226 yes:)
  2227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2228 whose name does not start with the host triplet.  If you think this
  2229 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2231 whose name does not start with the host triplet.  If you think this
  2232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2233 ac_tool_warned=yes ;;
  2234 esac
  2235     STRIP=$ac_ct_STRIP
  2236   fi
  2237 else
  2238   STRIP="$ac_cv_prog_STRIP"
  2239 fi
  2241 fi
  2242 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2244 # We need awk for the "check" target.  The system "awk" is bad on
  2245 # some platforms.
  2249 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2250 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2251     # Check whether --enable-maintainer-mode was given.
  2252 if test "${enable_maintainer_mode+set}" = set; then
  2253   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2254 else
  2255   USE_MAINTAINER_MODE=no
  2256 fi
  2258   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2259 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2262 if test $USE_MAINTAINER_MODE = yes; then
  2263   MAINTAINER_MODE_TRUE=
  2264   MAINTAINER_MODE_FALSE='#'
  2265 else
  2266   MAINTAINER_MODE_TRUE='#'
  2267   MAINTAINER_MODE_FALSE=
  2268 fi
  2270   MAINT=$MAINTAINER_MODE_TRUE
  2273 ac_config_headers="$ac_config_headers config.h"
  2276 DEPDIR="${am__leading_dot}deps"
  2278 ac_config_commands="$ac_config_commands depfiles"
  2281 am_make=${MAKE-make}
  2282 cat > confinc << 'END'
  2283 am__doit:
  2284 	@echo done
  2285 .PHONY: am__doit
  2286 END
  2287 # If we don't find an include directive, just comment out the code.
  2288 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2289 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2290 am__include="#"
  2291 am__quote=
  2292 _am_result=none
  2293 # First try GNU make style include.
  2294 echo "include confinc" > confmf
  2295 # We grep out `Entering directory' and `Leaving directory'
  2296 # messages which can occur if `w' ends up in MAKEFLAGS.
  2297 # In particular we don't look at `^make:' because GNU make might
  2298 # be invoked under some other name (usually "gmake"), in which
  2299 # case it prints its new name instead of `make'.
  2300 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2301    am__include=include
  2302    am__quote=
  2303    _am_result=GNU
  2304 fi
  2305 # Now try BSD make style include.
  2306 if test "$am__include" = "#"; then
  2307    echo '.include "confinc"' > confmf
  2308    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2309       am__include=.include
  2310       am__quote="\""
  2311       _am_result=BSD
  2312    fi
  2313 fi
  2316 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2317 echo "${ECHO_T}$_am_result" >&6; }
  2318 rm -f confinc confmf
  2320 # Check whether --enable-dependency-tracking was given.
  2321 if test "${enable_dependency_tracking+set}" = set; then
  2322   enableval=$enable_dependency_tracking;
  2323 fi
  2325 if test "x$enable_dependency_tracking" != xno; then
  2326   am_depcomp="$ac_aux_dir/depcomp"
  2327   AMDEPBACKSLASH='\'
  2328 fi
  2331 if test "x$enable_dependency_tracking" != xno; then
  2332   AMDEP_TRUE=
  2333   AMDEP_FALSE='#'
  2334 else
  2335   AMDEP_TRUE='#'
  2336   AMDEP_FALSE=
  2337 fi
  2341 ac_ext=c
  2342 ac_cpp='$CPP $CPPFLAGS'
  2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2346 if test -n "$ac_tool_prefix"; then
  2347   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2348 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2351 if test "${ac_cv_prog_CC+set}" = set; then
  2352   echo $ECHO_N "(cached) $ECHO_C" >&6
  2353 else
  2354   if test -n "$CC"; then
  2355   ac_cv_prog_CC="$CC" # Let the user override the test.
  2356 else
  2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2358 for as_dir in $PATH
  2359 do
  2360   IFS=$as_save_IFS
  2361   test -z "$as_dir" && as_dir=.
  2362   for ac_exec_ext in '' $ac_executable_extensions; do
  2363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2364     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2366     break 2
  2367   fi
  2368 done
  2369 done
  2370 IFS=$as_save_IFS
  2372 fi
  2373 fi
  2374 CC=$ac_cv_prog_CC
  2375 if test -n "$CC"; then
  2376   { echo "$as_me:$LINENO: result: $CC" >&5
  2377 echo "${ECHO_T}$CC" >&6; }
  2378 else
  2379   { echo "$as_me:$LINENO: result: no" >&5
  2380 echo "${ECHO_T}no" >&6; }
  2381 fi
  2384 fi
  2385 if test -z "$ac_cv_prog_CC"; then
  2386   ac_ct_CC=$CC
  2387   # Extract the first word of "gcc", so it can be a program name with args.
  2388 set dummy gcc; ac_word=$2
  2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2392   echo $ECHO_N "(cached) $ECHO_C" >&6
  2393 else
  2394   if test -n "$ac_ct_CC"; then
  2395   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2396 else
  2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2398 for as_dir in $PATH
  2399 do
  2400   IFS=$as_save_IFS
  2401   test -z "$as_dir" && as_dir=.
  2402   for ac_exec_ext in '' $ac_executable_extensions; do
  2403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2404     ac_cv_prog_ac_ct_CC="gcc"
  2405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2406     break 2
  2407   fi
  2408 done
  2409 done
  2410 IFS=$as_save_IFS
  2412 fi
  2413 fi
  2414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2415 if test -n "$ac_ct_CC"; then
  2416   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2417 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2418 else
  2419   { echo "$as_me:$LINENO: result: no" >&5
  2420 echo "${ECHO_T}no" >&6; }
  2421 fi
  2423   if test "x$ac_ct_CC" = x; then
  2424     CC=""
  2425   else
  2426     case $cross_compiling:$ac_tool_warned in
  2427 yes:)
  2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2429 whose name does not start with the host triplet.  If you think this
  2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2432 whose name does not start with the host triplet.  If you think this
  2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2434 ac_tool_warned=yes ;;
  2435 esac
  2436     CC=$ac_ct_CC
  2437   fi
  2438 else
  2439   CC="$ac_cv_prog_CC"
  2440 fi
  2442 if test -z "$CC"; then
  2443           if test -n "$ac_tool_prefix"; then
  2444     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2445 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2448 if test "${ac_cv_prog_CC+set}" = set; then
  2449   echo $ECHO_N "(cached) $ECHO_C" >&6
  2450 else
  2451   if test -n "$CC"; then
  2452   ac_cv_prog_CC="$CC" # Let the user override the test.
  2453 else
  2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2455 for as_dir in $PATH
  2456 do
  2457   IFS=$as_save_IFS
  2458   test -z "$as_dir" && as_dir=.
  2459   for ac_exec_ext in '' $ac_executable_extensions; do
  2460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2461     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2463     break 2
  2464   fi
  2465 done
  2466 done
  2467 IFS=$as_save_IFS
  2469 fi
  2470 fi
  2471 CC=$ac_cv_prog_CC
  2472 if test -n "$CC"; then
  2473   { echo "$as_me:$LINENO: result: $CC" >&5
  2474 echo "${ECHO_T}$CC" >&6; }
  2475 else
  2476   { echo "$as_me:$LINENO: result: no" >&5
  2477 echo "${ECHO_T}no" >&6; }
  2478 fi
  2481   fi
  2482 fi
  2483 if test -z "$CC"; then
  2484   # Extract the first word of "cc", so it can be a program name with args.
  2485 set dummy cc; ac_word=$2
  2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2488 if test "${ac_cv_prog_CC+set}" = set; then
  2489   echo $ECHO_N "(cached) $ECHO_C" >&6
  2490 else
  2491   if test -n "$CC"; then
  2492   ac_cv_prog_CC="$CC" # Let the user override the test.
  2493 else
  2494   ac_prog_rejected=no
  2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2496 for as_dir in $PATH
  2497 do
  2498   IFS=$as_save_IFS
  2499   test -z "$as_dir" && as_dir=.
  2500   for ac_exec_ext in '' $ac_executable_extensions; do
  2501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2502     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2503        ac_prog_rejected=yes
  2504        continue
  2505      fi
  2506     ac_cv_prog_CC="cc"
  2507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2508     break 2
  2509   fi
  2510 done
  2511 done
  2512 IFS=$as_save_IFS
  2514 if test $ac_prog_rejected = yes; then
  2515   # We found a bogon in the path, so make sure we never use it.
  2516   set dummy $ac_cv_prog_CC
  2517   shift
  2518   if test $# != 0; then
  2519     # We chose a different compiler from the bogus one.
  2520     # However, it has the same basename, so the bogon will be chosen
  2521     # first if we set CC to just the basename; use the full file name.
  2522     shift
  2523     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2524   fi
  2525 fi
  2526 fi
  2527 fi
  2528 CC=$ac_cv_prog_CC
  2529 if test -n "$CC"; then
  2530   { echo "$as_me:$LINENO: result: $CC" >&5
  2531 echo "${ECHO_T}$CC" >&6; }
  2532 else
  2533   { echo "$as_me:$LINENO: result: no" >&5
  2534 echo "${ECHO_T}no" >&6; }
  2535 fi
  2538 fi
  2539 if test -z "$CC"; then
  2540   if test -n "$ac_tool_prefix"; then
  2541   for ac_prog in cl.exe
  2542   do
  2543     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2547 if test "${ac_cv_prog_CC+set}" = set; then
  2548   echo $ECHO_N "(cached) $ECHO_C" >&6
  2549 else
  2550   if test -n "$CC"; then
  2551   ac_cv_prog_CC="$CC" # Let the user override the test.
  2552 else
  2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2554 for as_dir in $PATH
  2555 do
  2556   IFS=$as_save_IFS
  2557   test -z "$as_dir" && as_dir=.
  2558   for ac_exec_ext in '' $ac_executable_extensions; do
  2559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2560     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2562     break 2
  2563   fi
  2564 done
  2565 done
  2566 IFS=$as_save_IFS
  2568 fi
  2569 fi
  2570 CC=$ac_cv_prog_CC
  2571 if test -n "$CC"; then
  2572   { echo "$as_me:$LINENO: result: $CC" >&5
  2573 echo "${ECHO_T}$CC" >&6; }
  2574 else
  2575   { echo "$as_me:$LINENO: result: no" >&5
  2576 echo "${ECHO_T}no" >&6; }
  2577 fi
  2580     test -n "$CC" && break
  2581   done
  2582 fi
  2583 if test -z "$CC"; then
  2584   ac_ct_CC=$CC
  2585   for ac_prog in cl.exe
  2586 do
  2587   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2588 set dummy $ac_prog; ac_word=$2
  2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2592   echo $ECHO_N "(cached) $ECHO_C" >&6
  2593 else
  2594   if test -n "$ac_ct_CC"; then
  2595   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2596 else
  2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2598 for as_dir in $PATH
  2599 do
  2600   IFS=$as_save_IFS
  2601   test -z "$as_dir" && as_dir=.
  2602   for ac_exec_ext in '' $ac_executable_extensions; do
  2603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2604     ac_cv_prog_ac_ct_CC="$ac_prog"
  2605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2606     break 2
  2607   fi
  2608 done
  2609 done
  2610 IFS=$as_save_IFS
  2612 fi
  2613 fi
  2614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2615 if test -n "$ac_ct_CC"; then
  2616   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2617 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2618 else
  2619   { echo "$as_me:$LINENO: result: no" >&5
  2620 echo "${ECHO_T}no" >&6; }
  2621 fi
  2624   test -n "$ac_ct_CC" && break
  2625 done
  2627   if test "x$ac_ct_CC" = x; then
  2628     CC=""
  2629   else
  2630     case $cross_compiling:$ac_tool_warned in
  2631 yes:)
  2632 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2633 whose name does not start with the host triplet.  If you think this
  2634 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2635 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2636 whose name does not start with the host triplet.  If you think this
  2637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2638 ac_tool_warned=yes ;;
  2639 esac
  2640     CC=$ac_ct_CC
  2641   fi
  2642 fi
  2644 fi
  2647 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2648 See \`config.log' for more details." >&5
  2649 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2650 See \`config.log' for more details." >&2;}
  2651    { (exit 1); exit 1; }; }
  2653 # Provide some information about the compiler.
  2654 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2655 ac_compiler=`set X $ac_compile; echo $2`
  2656 { (ac_try="$ac_compiler --version >&5"
  2657 case "(($ac_try" in
  2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2659   *) ac_try_echo=$ac_try;;
  2660 esac
  2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2662   (eval "$ac_compiler --version >&5") 2>&5
  2663   ac_status=$?
  2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2665   (exit $ac_status); }
  2666 { (ac_try="$ac_compiler -v >&5"
  2667 case "(($ac_try" in
  2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2669   *) ac_try_echo=$ac_try;;
  2670 esac
  2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2672   (eval "$ac_compiler -v >&5") 2>&5
  2673   ac_status=$?
  2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2675   (exit $ac_status); }
  2676 { (ac_try="$ac_compiler -V >&5"
  2677 case "(($ac_try" in
  2678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2679   *) ac_try_echo=$ac_try;;
  2680 esac
  2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2682   (eval "$ac_compiler -V >&5") 2>&5
  2683   ac_status=$?
  2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2685   (exit $ac_status); }
  2687 cat >conftest.$ac_ext <<_ACEOF
  2688 /* confdefs.h.  */
  2689 _ACEOF
  2690 cat confdefs.h >>conftest.$ac_ext
  2691 cat >>conftest.$ac_ext <<_ACEOF
  2692 /* end confdefs.h.  */
  2694 int
  2695 main ()
  2699   return 0;
  2701 _ACEOF
  2702 ac_clean_files_save=$ac_clean_files
  2703 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2704 # Try to create an executable without -o first, disregard a.out.
  2705 # It will help us diagnose broken compilers, and finding out an intuition
  2706 # of exeext.
  2707 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2708 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2709 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2711 # List of possible output files, starting from the most likely.
  2712 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2713 # only as a last resort.  b.out is created by i960 compilers.
  2714 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2716 # The IRIX 6 linker writes into existing files which may not be
  2717 # executable, retaining their permissions.  Remove them first so a
  2718 # subsequent execution test works.
  2719 ac_rmfiles=
  2720 for ac_file in $ac_files
  2721 do
  2722   case $ac_file in
  2723     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2724     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2725   esac
  2726 done
  2727 rm -f $ac_rmfiles
  2729 if { (ac_try="$ac_link_default"
  2730 case "(($ac_try" in
  2731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2732   *) ac_try_echo=$ac_try;;
  2733 esac
  2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2735   (eval "$ac_link_default") 2>&5
  2736   ac_status=$?
  2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2738   (exit $ac_status); }; then
  2739   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2740 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2741 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2742 # so that the user can short-circuit this test for compilers unknown to
  2743 # Autoconf.
  2744 for ac_file in $ac_files ''
  2745 do
  2746   test -f "$ac_file" || continue
  2747   case $ac_file in
  2748     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2749 	;;
  2750     [ab].out )
  2751 	# We found the default executable, but exeext='' is most
  2752 	# certainly right.
  2753 	break;;
  2754     *.* )
  2755         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2756 	then :; else
  2757 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2758 	fi
  2759 	# We set ac_cv_exeext here because the later test for it is not
  2760 	# safe: cross compilers may not add the suffix if given an `-o'
  2761 	# argument, so we may need to know it at that point already.
  2762 	# Even if this section looks crufty: it has the advantage of
  2763 	# actually working.
  2764 	break;;
  2765     * )
  2766 	break;;
  2767   esac
  2768 done
  2769 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2771 else
  2772   ac_file=''
  2773 fi
  2775 { echo "$as_me:$LINENO: result: $ac_file" >&5
  2776 echo "${ECHO_T}$ac_file" >&6; }
  2777 if test -z "$ac_file"; then
  2778   echo "$as_me: failed program was:" >&5
  2779 sed 's/^/| /' conftest.$ac_ext >&5
  2781 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2782 See \`config.log' for more details." >&5
  2783 echo "$as_me: error: C compiler cannot create executables
  2784 See \`config.log' for more details." >&2;}
  2785    { (exit 77); exit 77; }; }
  2786 fi
  2788 ac_exeext=$ac_cv_exeext
  2790 # Check that the compiler produces executables we can run.  If not, either
  2791 # the compiler is broken, or we cross compile.
  2792 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2793 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2794 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2795 # If not cross compiling, check that we can run a simple program.
  2796 if test "$cross_compiling" != yes; then
  2797   if { ac_try='./$ac_file'
  2798   { (case "(($ac_try" in
  2799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2800   *) ac_try_echo=$ac_try;;
  2801 esac
  2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2803   (eval "$ac_try") 2>&5
  2804   ac_status=$?
  2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2806   (exit $ac_status); }; }; then
  2807     cross_compiling=no
  2808   else
  2809     if test "$cross_compiling" = maybe; then
  2810 	cross_compiling=yes
  2811     else
  2812 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2813 If you meant to cross compile, use \`--host'.
  2814 See \`config.log' for more details." >&5
  2815 echo "$as_me: error: cannot run C compiled programs.
  2816 If you meant to cross compile, use \`--host'.
  2817 See \`config.log' for more details." >&2;}
  2818    { (exit 1); exit 1; }; }
  2819     fi
  2820   fi
  2821 fi
  2822 { echo "$as_me:$LINENO: result: yes" >&5
  2823 echo "${ECHO_T}yes" >&6; }
  2825 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2826 ac_clean_files=$ac_clean_files_save
  2827 # Check that the compiler produces executables we can run.  If not, either
  2828 # the compiler is broken, or we cross compile.
  2829 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2830 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2831 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2832 echo "${ECHO_T}$cross_compiling" >&6; }
  2834 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2835 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2836 if { (ac_try="$ac_link"
  2837 case "(($ac_try" in
  2838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2839   *) ac_try_echo=$ac_try;;
  2840 esac
  2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2842   (eval "$ac_link") 2>&5
  2843   ac_status=$?
  2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2845   (exit $ac_status); }; then
  2846   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2847 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2848 # work properly (i.e., refer to `conftest.exe'), while it won't with
  2849 # `rm'.
  2850 for ac_file in conftest.exe conftest conftest.*; do
  2851   test -f "$ac_file" || continue
  2852   case $ac_file in
  2853     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2854     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2855 	  break;;
  2856     * ) break;;
  2857   esac
  2858 done
  2859 else
  2860   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2861 See \`config.log' for more details." >&5
  2862 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2863 See \`config.log' for more details." >&2;}
  2864    { (exit 1); exit 1; }; }
  2865 fi
  2867 rm -f conftest$ac_cv_exeext
  2868 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2869 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2871 rm -f conftest.$ac_ext
  2872 EXEEXT=$ac_cv_exeext
  2873 ac_exeext=$EXEEXT
  2874 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2875 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2876 if test "${ac_cv_objext+set}" = set; then
  2877   echo $ECHO_N "(cached) $ECHO_C" >&6
  2878 else
  2879   cat >conftest.$ac_ext <<_ACEOF
  2880 /* confdefs.h.  */
  2881 _ACEOF
  2882 cat confdefs.h >>conftest.$ac_ext
  2883 cat >>conftest.$ac_ext <<_ACEOF
  2884 /* end confdefs.h.  */
  2886 int
  2887 main ()
  2891   return 0;
  2893 _ACEOF
  2894 rm -f conftest.o conftest.obj
  2895 if { (ac_try="$ac_compile"
  2896 case "(($ac_try" in
  2897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2898   *) ac_try_echo=$ac_try;;
  2899 esac
  2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2901   (eval "$ac_compile") 2>&5
  2902   ac_status=$?
  2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2904   (exit $ac_status); }; then
  2905   for ac_file in conftest.o conftest.obj conftest.*; do
  2906   test -f "$ac_file" || continue;
  2907   case $ac_file in
  2908     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2909     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2910        break;;
  2911   esac
  2912 done
  2913 else
  2914   echo "$as_me: failed program was:" >&5
  2915 sed 's/^/| /' conftest.$ac_ext >&5
  2917 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2918 See \`config.log' for more details." >&5
  2919 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2920 See \`config.log' for more details." >&2;}
  2921    { (exit 1); exit 1; }; }
  2922 fi
  2924 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2925 fi
  2926 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2927 echo "${ECHO_T}$ac_cv_objext" >&6; }
  2928 OBJEXT=$ac_cv_objext
  2929 ac_objext=$OBJEXT
  2930 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2931 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2932 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2933   echo $ECHO_N "(cached) $ECHO_C" >&6
  2934 else
  2935   cat >conftest.$ac_ext <<_ACEOF
  2936 /* confdefs.h.  */
  2937 _ACEOF
  2938 cat confdefs.h >>conftest.$ac_ext
  2939 cat >>conftest.$ac_ext <<_ACEOF
  2940 /* end confdefs.h.  */
  2942 int
  2943 main ()
  2945 #ifndef __GNUC__
  2946        choke me
  2947 #endif
  2950   return 0;
  2952 _ACEOF
  2953 rm -f conftest.$ac_objext
  2954 if { (ac_try="$ac_compile"
  2955 case "(($ac_try" in
  2956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2957   *) ac_try_echo=$ac_try;;
  2958 esac
  2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2960   (eval "$ac_compile") 2>conftest.er1
  2961   ac_status=$?
  2962   grep -v '^ *+' conftest.er1 >conftest.err
  2963   rm -f conftest.er1
  2964   cat conftest.err >&5
  2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2966   (exit $ac_status); } && {
  2967 	 test -z "$ac_c_werror_flag" ||
  2968 	 test ! -s conftest.err
  2969        } && test -s conftest.$ac_objext; then
  2970   ac_compiler_gnu=yes
  2971 else
  2972   echo "$as_me: failed program was:" >&5
  2973 sed 's/^/| /' conftest.$ac_ext >&5
  2975 	ac_compiler_gnu=no
  2976 fi
  2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2981 fi
  2982 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2983 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2984 GCC=`test $ac_compiler_gnu = yes && echo yes`
  2985 ac_test_CFLAGS=${CFLAGS+set}
  2986 ac_save_CFLAGS=$CFLAGS
  2987 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2988 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2989 if test "${ac_cv_prog_cc_g+set}" = set; then
  2990   echo $ECHO_N "(cached) $ECHO_C" >&6
  2991 else
  2992   ac_save_c_werror_flag=$ac_c_werror_flag
  2993    ac_c_werror_flag=yes
  2994    ac_cv_prog_cc_g=no
  2995    CFLAGS="-g"
  2996    cat >conftest.$ac_ext <<_ACEOF
  2997 /* confdefs.h.  */
  2998 _ACEOF
  2999 cat confdefs.h >>conftest.$ac_ext
  3000 cat >>conftest.$ac_ext <<_ACEOF
  3001 /* end confdefs.h.  */
  3003 int
  3004 main ()
  3008   return 0;
  3010 _ACEOF
  3011 rm -f conftest.$ac_objext
  3012 if { (ac_try="$ac_compile"
  3013 case "(($ac_try" in
  3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3015   *) ac_try_echo=$ac_try;;
  3016 esac
  3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3018   (eval "$ac_compile") 2>conftest.er1
  3019   ac_status=$?
  3020   grep -v '^ *+' conftest.er1 >conftest.err
  3021   rm -f conftest.er1
  3022   cat conftest.err >&5
  3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3024   (exit $ac_status); } && {
  3025 	 test -z "$ac_c_werror_flag" ||
  3026 	 test ! -s conftest.err
  3027        } && test -s conftest.$ac_objext; then
  3028   ac_cv_prog_cc_g=yes
  3029 else
  3030   echo "$as_me: failed program was:" >&5
  3031 sed 's/^/| /' conftest.$ac_ext >&5
  3033 	CFLAGS=""
  3034       cat >conftest.$ac_ext <<_ACEOF
  3035 /* confdefs.h.  */
  3036 _ACEOF
  3037 cat confdefs.h >>conftest.$ac_ext
  3038 cat >>conftest.$ac_ext <<_ACEOF
  3039 /* end confdefs.h.  */
  3041 int
  3042 main ()
  3046   return 0;
  3048 _ACEOF
  3049 rm -f conftest.$ac_objext
  3050 if { (ac_try="$ac_compile"
  3051 case "(($ac_try" in
  3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3053   *) ac_try_echo=$ac_try;;
  3054 esac
  3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3056   (eval "$ac_compile") 2>conftest.er1
  3057   ac_status=$?
  3058   grep -v '^ *+' conftest.er1 >conftest.err
  3059   rm -f conftest.er1
  3060   cat conftest.err >&5
  3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3062   (exit $ac_status); } && {
  3063 	 test -z "$ac_c_werror_flag" ||
  3064 	 test ! -s conftest.err
  3065        } && test -s conftest.$ac_objext; then
  3067 else
  3068   echo "$as_me: failed program was:" >&5
  3069 sed 's/^/| /' conftest.$ac_ext >&5
  3071 	ac_c_werror_flag=$ac_save_c_werror_flag
  3072 	 CFLAGS="-g"
  3073 	 cat >conftest.$ac_ext <<_ACEOF
  3074 /* confdefs.h.  */
  3075 _ACEOF
  3076 cat confdefs.h >>conftest.$ac_ext
  3077 cat >>conftest.$ac_ext <<_ACEOF
  3078 /* end confdefs.h.  */
  3080 int
  3081 main ()
  3085   return 0;
  3087 _ACEOF
  3088 rm -f conftest.$ac_objext
  3089 if { (ac_try="$ac_compile"
  3090 case "(($ac_try" in
  3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3092   *) ac_try_echo=$ac_try;;
  3093 esac
  3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3095   (eval "$ac_compile") 2>conftest.er1
  3096   ac_status=$?
  3097   grep -v '^ *+' conftest.er1 >conftest.err
  3098   rm -f conftest.er1
  3099   cat conftest.err >&5
  3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3101   (exit $ac_status); } && {
  3102 	 test -z "$ac_c_werror_flag" ||
  3103 	 test ! -s conftest.err
  3104        } && test -s conftest.$ac_objext; then
  3105   ac_cv_prog_cc_g=yes
  3106 else
  3107   echo "$as_me: failed program was:" >&5
  3108 sed 's/^/| /' conftest.$ac_ext >&5
  3111 fi
  3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3114 fi
  3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3117 fi
  3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3120    ac_c_werror_flag=$ac_save_c_werror_flag
  3121 fi
  3122 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3123 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3124 if test "$ac_test_CFLAGS" = set; then
  3125   CFLAGS=$ac_save_CFLAGS
  3126 elif test $ac_cv_prog_cc_g = yes; then
  3127   if test "$GCC" = yes; then
  3128     CFLAGS="-g -O2"
  3129   else
  3130     CFLAGS="-g"
  3131   fi
  3132 else
  3133   if test "$GCC" = yes; then
  3134     CFLAGS="-O2"
  3135   else
  3136     CFLAGS=
  3137   fi
  3138 fi
  3139 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3140 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3141 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3142   echo $ECHO_N "(cached) $ECHO_C" >&6
  3143 else
  3144   ac_cv_prog_cc_c89=no
  3145 ac_save_CC=$CC
  3146 cat >conftest.$ac_ext <<_ACEOF
  3147 /* confdefs.h.  */
  3148 _ACEOF
  3149 cat confdefs.h >>conftest.$ac_ext
  3150 cat >>conftest.$ac_ext <<_ACEOF
  3151 /* end confdefs.h.  */
  3152 #include <stdarg.h>
  3153 #include <stdio.h>
  3154 #include <sys/types.h>
  3155 #include <sys/stat.h>
  3156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3157 struct buf { int x; };
  3158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3159 static char *e (p, i)
  3160      char **p;
  3161      int i;
  3163   return p[i];
  3165 static char *f (char * (*g) (char **, int), char **p, ...)
  3167   char *s;
  3168   va_list v;
  3169   va_start (v,p);
  3170   s = g (p, va_arg (v,int));
  3171   va_end (v);
  3172   return s;
  3175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3176    function prototypes and stuff, but not '\xHH' hex character constants.
  3177    These don't provoke an error unfortunately, instead are silently treated
  3178    as 'x'.  The following induces an error, until -std is added to get
  3179    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3180    array size at least.  It's necessary to write '\x00'==0 to get something
  3181    that's true only with -std.  */
  3182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3185    inside strings and character constants.  */
  3186 #define FOO(x) 'x'
  3187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3189 int test (int i, double x);
  3190 struct s1 {int (*f) (int a);};
  3191 struct s2 {int (*f) (double a);};
  3192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3193 int argc;
  3194 char **argv;
  3195 int
  3196 main ()
  3198 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3200   return 0;
  3202 _ACEOF
  3203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3204 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3205 do
  3206   CC="$ac_save_CC $ac_arg"
  3207   rm -f conftest.$ac_objext
  3208 if { (ac_try="$ac_compile"
  3209 case "(($ac_try" in
  3210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3211   *) ac_try_echo=$ac_try;;
  3212 esac
  3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3214   (eval "$ac_compile") 2>conftest.er1
  3215   ac_status=$?
  3216   grep -v '^ *+' conftest.er1 >conftest.err
  3217   rm -f conftest.er1
  3218   cat conftest.err >&5
  3219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3220   (exit $ac_status); } && {
  3221 	 test -z "$ac_c_werror_flag" ||
  3222 	 test ! -s conftest.err
  3223        } && test -s conftest.$ac_objext; then
  3224   ac_cv_prog_cc_c89=$ac_arg
  3225 else
  3226   echo "$as_me: failed program was:" >&5
  3227 sed 's/^/| /' conftest.$ac_ext >&5
  3230 fi
  3232 rm -f core conftest.err conftest.$ac_objext
  3233   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3234 done
  3235 rm -f conftest.$ac_ext
  3236 CC=$ac_save_CC
  3238 fi
  3239 # AC_CACHE_VAL
  3240 case "x$ac_cv_prog_cc_c89" in
  3241   x)
  3242     { echo "$as_me:$LINENO: result: none needed" >&5
  3243 echo "${ECHO_T}none needed" >&6; } ;;
  3244   xno)
  3245     { echo "$as_me:$LINENO: result: unsupported" >&5
  3246 echo "${ECHO_T}unsupported" >&6; } ;;
  3247   *)
  3248     CC="$CC $ac_cv_prog_cc_c89"
  3249     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3250 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3251 esac
  3254 ac_ext=c
  3255 ac_cpp='$CPP $CPPFLAGS'
  3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3260 depcc="$CC"   am_compiler_list=
  3262 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3263 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3264 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3265   echo $ECHO_N "(cached) $ECHO_C" >&6
  3266 else
  3267   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3268   # We make a subdir and do the tests there.  Otherwise we can end up
  3269   # making bogus files that we don't know about and never remove.  For
  3270   # instance it was reported that on HP-UX the gcc test will end up
  3271   # making a dummy file named `D' -- because `-MD' means `put the output
  3272   # in D'.
  3273   mkdir conftest.dir
  3274   # Copy depcomp to subdir because otherwise we won't find it if we're
  3275   # using a relative directory.
  3276   cp "$am_depcomp" conftest.dir
  3277   cd conftest.dir
  3278   # We will build objects and dependencies in a subdirectory because
  3279   # it helps to detect inapplicable dependency modes.  For instance
  3280   # both Tru64's cc and ICC support -MD to output dependencies as a
  3281   # side effect of compilation, but ICC will put the dependencies in
  3282   # the current directory while Tru64 will put them in the object
  3283   # directory.
  3284   mkdir sub
  3286   am_cv_CC_dependencies_compiler_type=none
  3287   if test "$am_compiler_list" = ""; then
  3288      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3289   fi
  3290   for depmode in $am_compiler_list; do
  3291     # Setup a source with many dependencies, because some compilers
  3292     # like to wrap large dependency lists on column 80 (with \), and
  3293     # we should not choose a depcomp mode which is confused by this.
  3295     # We need to recreate these files for each test, as the compiler may
  3296     # overwrite some of them when testing with obscure command lines.
  3297     # This happens at least with the AIX C compiler.
  3298     : > sub/conftest.c
  3299     for i in 1 2 3 4 5 6; do
  3300       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3301       : > sub/conftst$i.h
  3302     done
  3303     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3305     case $depmode in
  3306     nosideeffect)
  3307       # after this tag, mechanisms are not by side-effect, so they'll
  3308       # only be used when explicitly requested
  3309       if test "x$enable_dependency_tracking" = xyes; then
  3310 	continue
  3311       else
  3312 	break
  3313       fi
  3314       ;;
  3315     none) break ;;
  3316     esac
  3317     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3318     # mode.  It turns out that the SunPro C++ compiler does not properly
  3319     # handle `-M -o', and we need to detect this.
  3320     if depmode=$depmode \
  3321        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3322        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3323        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3324          >/dev/null 2>conftest.err &&
  3325        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3326        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3327        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3328       # icc doesn't choke on unknown options, it will just issue warnings
  3329       # (even with -Werror).  So we grep stderr for any message
  3330       # that says an option was ignored.
  3331       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  3332         am_cv_CC_dependencies_compiler_type=$depmode
  3333         break
  3334       fi
  3335     fi
  3336   done
  3338   cd ..
  3339   rm -rf conftest.dir
  3340 else
  3341   am_cv_CC_dependencies_compiler_type=none
  3342 fi
  3344 fi
  3345 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3346 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3347 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3351 if
  3352   test "x$enable_dependency_tracking" != xno \
  3353   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3354   am__fastdepCC_TRUE=
  3355   am__fastdepCC_FALSE='#'
  3356 else
  3357   am__fastdepCC_TRUE='#'
  3358   am__fastdepCC_FALSE=
  3359 fi
  3363 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3364 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  3365 if test "${ac_cv_search_strerror+set}" = set; then
  3366   echo $ECHO_N "(cached) $ECHO_C" >&6
  3367 else
  3368   ac_func_search_save_LIBS=$LIBS
  3369 cat >conftest.$ac_ext <<_ACEOF
  3370 /* confdefs.h.  */
  3371 _ACEOF
  3372 cat confdefs.h >>conftest.$ac_ext
  3373 cat >>conftest.$ac_ext <<_ACEOF
  3374 /* end confdefs.h.  */
  3376 /* Override any GCC internal prototype to avoid an error.
  3377    Use char because int might match the return type of a GCC
  3378    builtin and then its argument prototype would still apply.  */
  3379 #ifdef __cplusplus
  3380 extern "C"
  3381 #endif
  3382 char strerror ();
  3383 int
  3384 main ()
  3386 return strerror ();
  3388   return 0;
  3390 _ACEOF
  3391 for ac_lib in '' cposix; do
  3392   if test -z "$ac_lib"; then
  3393     ac_res="none required"
  3394   else
  3395     ac_res=-l$ac_lib
  3396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  3397   fi
  3398   rm -f conftest.$ac_objext conftest$ac_exeext
  3399 if { (ac_try="$ac_link"
  3400 case "(($ac_try" in
  3401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3402   *) ac_try_echo=$ac_try;;
  3403 esac
  3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3405   (eval "$ac_link") 2>conftest.er1
  3406   ac_status=$?
  3407   grep -v '^ *+' conftest.er1 >conftest.err
  3408   rm -f conftest.er1
  3409   cat conftest.err >&5
  3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3411   (exit $ac_status); } && {
  3412 	 test -z "$ac_c_werror_flag" ||
  3413 	 test ! -s conftest.err
  3414        } && test -s conftest$ac_exeext &&
  3415        $as_test_x conftest$ac_exeext; then
  3416   ac_cv_search_strerror=$ac_res
  3417 else
  3418   echo "$as_me: failed program was:" >&5
  3419 sed 's/^/| /' conftest.$ac_ext >&5
  3422 fi
  3424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3425       conftest$ac_exeext
  3426   if test "${ac_cv_search_strerror+set}" = set; then
  3427   break
  3428 fi
  3429 done
  3430 if test "${ac_cv_search_strerror+set}" = set; then
  3432 else
  3433   ac_cv_search_strerror=no
  3434 fi
  3435 rm conftest.$ac_ext
  3436 LIBS=$ac_func_search_save_LIBS
  3437 fi
  3438 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3439 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  3440 ac_res=$ac_cv_search_strerror
  3441 if test "$ac_res" != no; then
  3442   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3444 fi
  3446 ac_ext=c
  3447 ac_cpp='$CPP $CPPFLAGS'
  3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3451 if test -n "$ac_tool_prefix"; then
  3452   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3456 if test "${ac_cv_prog_CC+set}" = set; then
  3457   echo $ECHO_N "(cached) $ECHO_C" >&6
  3458 else
  3459   if test -n "$CC"; then
  3460   ac_cv_prog_CC="$CC" # Let the user override the test.
  3461 else
  3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3463 for as_dir in $PATH
  3464 do
  3465   IFS=$as_save_IFS
  3466   test -z "$as_dir" && as_dir=.
  3467   for ac_exec_ext in '' $ac_executable_extensions; do
  3468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3469     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3471     break 2
  3472   fi
  3473 done
  3474 done
  3475 IFS=$as_save_IFS
  3477 fi
  3478 fi
  3479 CC=$ac_cv_prog_CC
  3480 if test -n "$CC"; then
  3481   { echo "$as_me:$LINENO: result: $CC" >&5
  3482 echo "${ECHO_T}$CC" >&6; }
  3483 else
  3484   { echo "$as_me:$LINENO: result: no" >&5
  3485 echo "${ECHO_T}no" >&6; }
  3486 fi
  3489 fi
  3490 if test -z "$ac_cv_prog_CC"; then
  3491   ac_ct_CC=$CC
  3492   # Extract the first word of "gcc", so it can be a program name with args.
  3493 set dummy gcc; ac_word=$2
  3494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3497   echo $ECHO_N "(cached) $ECHO_C" >&6
  3498 else
  3499   if test -n "$ac_ct_CC"; then
  3500   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3501 else
  3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3503 for as_dir in $PATH
  3504 do
  3505   IFS=$as_save_IFS
  3506   test -z "$as_dir" && as_dir=.
  3507   for ac_exec_ext in '' $ac_executable_extensions; do
  3508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3509     ac_cv_prog_ac_ct_CC="gcc"
  3510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3511     break 2
  3512   fi
  3513 done
  3514 done
  3515 IFS=$as_save_IFS
  3517 fi
  3518 fi
  3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3520 if test -n "$ac_ct_CC"; then
  3521   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3522 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3523 else
  3524   { echo "$as_me:$LINENO: result: no" >&5
  3525 echo "${ECHO_T}no" >&6; }
  3526 fi
  3528   if test "x$ac_ct_CC" = x; then
  3529     CC=""
  3530   else
  3531     case $cross_compiling:$ac_tool_warned in
  3532 yes:)
  3533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3534 whose name does not start with the host triplet.  If you think this
  3535 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3537 whose name does not start with the host triplet.  If you think this
  3538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3539 ac_tool_warned=yes ;;
  3540 esac
  3541     CC=$ac_ct_CC
  3542   fi
  3543 else
  3544   CC="$ac_cv_prog_CC"
  3545 fi
  3547 if test -z "$CC"; then
  3548           if test -n "$ac_tool_prefix"; then
  3549     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3550 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3553 if test "${ac_cv_prog_CC+set}" = set; then
  3554   echo $ECHO_N "(cached) $ECHO_C" >&6
  3555 else
  3556   if test -n "$CC"; then
  3557   ac_cv_prog_CC="$CC" # Let the user override the test.
  3558 else
  3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3560 for as_dir in $PATH
  3561 do
  3562   IFS=$as_save_IFS
  3563   test -z "$as_dir" && as_dir=.
  3564   for ac_exec_ext in '' $ac_executable_extensions; do
  3565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3566     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3568     break 2
  3569   fi
  3570 done
  3571 done
  3572 IFS=$as_save_IFS
  3574 fi
  3575 fi
  3576 CC=$ac_cv_prog_CC
  3577 if test -n "$CC"; then
  3578   { echo "$as_me:$LINENO: result: $CC" >&5
  3579 echo "${ECHO_T}$CC" >&6; }
  3580 else
  3581   { echo "$as_me:$LINENO: result: no" >&5
  3582 echo "${ECHO_T}no" >&6; }
  3583 fi
  3586   fi
  3587 fi
  3588 if test -z "$CC"; then
  3589   # Extract the first word of "cc", so it can be a program name with args.
  3590 set dummy cc; ac_word=$2
  3591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3593 if test "${ac_cv_prog_CC+set}" = set; then
  3594   echo $ECHO_N "(cached) $ECHO_C" >&6
  3595 else
  3596   if test -n "$CC"; then
  3597   ac_cv_prog_CC="$CC" # Let the user override the test.
  3598 else
  3599   ac_prog_rejected=no
  3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3601 for as_dir in $PATH
  3602 do
  3603   IFS=$as_save_IFS
  3604   test -z "$as_dir" && as_dir=.
  3605   for ac_exec_ext in '' $ac_executable_extensions; do
  3606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3607     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3608        ac_prog_rejected=yes
  3609        continue
  3610      fi
  3611     ac_cv_prog_CC="cc"
  3612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3613     break 2
  3614   fi
  3615 done
  3616 done
  3617 IFS=$as_save_IFS
  3619 if test $ac_prog_rejected = yes; then
  3620   # We found a bogon in the path, so make sure we never use it.
  3621   set dummy $ac_cv_prog_CC
  3622   shift
  3623   if test $# != 0; then
  3624     # We chose a different compiler from the bogus one.
  3625     # However, it has the same basename, so the bogon will be chosen
  3626     # first if we set CC to just the basename; use the full file name.
  3627     shift
  3628     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3629   fi
  3630 fi
  3631 fi
  3632 fi
  3633 CC=$ac_cv_prog_CC
  3634 if test -n "$CC"; then
  3635   { echo "$as_me:$LINENO: result: $CC" >&5
  3636 echo "${ECHO_T}$CC" >&6; }
  3637 else
  3638   { echo "$as_me:$LINENO: result: no" >&5
  3639 echo "${ECHO_T}no" >&6; }
  3640 fi
  3643 fi
  3644 if test -z "$CC"; then
  3645   if test -n "$ac_tool_prefix"; then
  3646   for ac_prog in cl.exe
  3647   do
  3648     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3652 if test "${ac_cv_prog_CC+set}" = set; then
  3653   echo $ECHO_N "(cached) $ECHO_C" >&6
  3654 else
  3655   if test -n "$CC"; then
  3656   ac_cv_prog_CC="$CC" # Let the user override the test.
  3657 else
  3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3659 for as_dir in $PATH
  3660 do
  3661   IFS=$as_save_IFS
  3662   test -z "$as_dir" && as_dir=.
  3663   for ac_exec_ext in '' $ac_executable_extensions; do
  3664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3665     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3667     break 2
  3668   fi
  3669 done
  3670 done
  3671 IFS=$as_save_IFS
  3673 fi
  3674 fi
  3675 CC=$ac_cv_prog_CC
  3676 if test -n "$CC"; then
  3677   { echo "$as_me:$LINENO: result: $CC" >&5
  3678 echo "${ECHO_T}$CC" >&6; }
  3679 else
  3680   { echo "$as_me:$LINENO: result: no" >&5
  3681 echo "${ECHO_T}no" >&6; }
  3682 fi
  3685     test -n "$CC" && break
  3686   done
  3687 fi
  3688 if test -z "$CC"; then
  3689   ac_ct_CC=$CC
  3690   for ac_prog in cl.exe
  3691 do
  3692   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3693 set dummy $ac_prog; ac_word=$2
  3694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3697   echo $ECHO_N "(cached) $ECHO_C" >&6
  3698 else
  3699   if test -n "$ac_ct_CC"; then
  3700   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3701 else
  3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703 for as_dir in $PATH
  3704 do
  3705   IFS=$as_save_IFS
  3706   test -z "$as_dir" && as_dir=.
  3707   for ac_exec_ext in '' $ac_executable_extensions; do
  3708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3709     ac_cv_prog_ac_ct_CC="$ac_prog"
  3710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3711     break 2
  3712   fi
  3713 done
  3714 done
  3715 IFS=$as_save_IFS
  3717 fi
  3718 fi
  3719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3720 if test -n "$ac_ct_CC"; then
  3721   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3722 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3723 else
  3724   { echo "$as_me:$LINENO: result: no" >&5
  3725 echo "${ECHO_T}no" >&6; }
  3726 fi
  3729   test -n "$ac_ct_CC" && break
  3730 done
  3732   if test "x$ac_ct_CC" = x; then
  3733     CC=""
  3734   else
  3735     case $cross_compiling:$ac_tool_warned in
  3736 yes:)
  3737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3738 whose name does not start with the host triplet.  If you think this
  3739 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3741 whose name does not start with the host triplet.  If you think this
  3742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3743 ac_tool_warned=yes ;;
  3744 esac
  3745     CC=$ac_ct_CC
  3746   fi
  3747 fi
  3749 fi
  3752 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3753 See \`config.log' for more details." >&5
  3754 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3755 See \`config.log' for more details." >&2;}
  3756    { (exit 1); exit 1; }; }
  3758 # Provide some information about the compiler.
  3759 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3760 ac_compiler=`set X $ac_compile; echo $2`
  3761 { (ac_try="$ac_compiler --version >&5"
  3762 case "(($ac_try" in
  3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3764   *) ac_try_echo=$ac_try;;
  3765 esac
  3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3767   (eval "$ac_compiler --version >&5") 2>&5
  3768   ac_status=$?
  3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3770   (exit $ac_status); }
  3771 { (ac_try="$ac_compiler -v >&5"
  3772 case "(($ac_try" in
  3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3774   *) ac_try_echo=$ac_try;;
  3775 esac
  3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3777   (eval "$ac_compiler -v >&5") 2>&5
  3778   ac_status=$?
  3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3780   (exit $ac_status); }
  3781 { (ac_try="$ac_compiler -V >&5"
  3782 case "(($ac_try" in
  3783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3784   *) ac_try_echo=$ac_try;;
  3785 esac
  3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3787   (eval "$ac_compiler -V >&5") 2>&5
  3788   ac_status=$?
  3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3790   (exit $ac_status); }
  3792 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3793 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3794 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3795   echo $ECHO_N "(cached) $ECHO_C" >&6
  3796 else
  3797   cat >conftest.$ac_ext <<_ACEOF
  3798 /* confdefs.h.  */
  3799 _ACEOF
  3800 cat confdefs.h >>conftest.$ac_ext
  3801 cat >>conftest.$ac_ext <<_ACEOF
  3802 /* end confdefs.h.  */
  3804 int
  3805 main ()
  3807 #ifndef __GNUC__
  3808        choke me
  3809 #endif
  3812   return 0;
  3814 _ACEOF
  3815 rm -f conftest.$ac_objext
  3816 if { (ac_try="$ac_compile"
  3817 case "(($ac_try" in
  3818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3819   *) ac_try_echo=$ac_try;;
  3820 esac
  3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3822   (eval "$ac_compile") 2>conftest.er1
  3823   ac_status=$?
  3824   grep -v '^ *+' conftest.er1 >conftest.err
  3825   rm -f conftest.er1
  3826   cat conftest.err >&5
  3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3828   (exit $ac_status); } && {
  3829 	 test -z "$ac_c_werror_flag" ||
  3830 	 test ! -s conftest.err
  3831        } && test -s conftest.$ac_objext; then
  3832   ac_compiler_gnu=yes
  3833 else
  3834   echo "$as_me: failed program was:" >&5
  3835 sed 's/^/| /' conftest.$ac_ext >&5
  3837 	ac_compiler_gnu=no
  3838 fi
  3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3841 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3843 fi
  3844 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3845 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3846 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3847 ac_test_CFLAGS=${CFLAGS+set}
  3848 ac_save_CFLAGS=$CFLAGS
  3849 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3850 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3851 if test "${ac_cv_prog_cc_g+set}" = set; then
  3852   echo $ECHO_N "(cached) $ECHO_C" >&6
  3853 else
  3854   ac_save_c_werror_flag=$ac_c_werror_flag
  3855    ac_c_werror_flag=yes
  3856    ac_cv_prog_cc_g=no
  3857    CFLAGS="-g"
  3858    cat >conftest.$ac_ext <<_ACEOF
  3859 /* confdefs.h.  */
  3860 _ACEOF
  3861 cat confdefs.h >>conftest.$ac_ext
  3862 cat >>conftest.$ac_ext <<_ACEOF
  3863 /* end confdefs.h.  */
  3865 int
  3866 main ()
  3870   return 0;
  3872 _ACEOF
  3873 rm -f conftest.$ac_objext
  3874 if { (ac_try="$ac_compile"
  3875 case "(($ac_try" in
  3876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3877   *) ac_try_echo=$ac_try;;
  3878 esac
  3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3880   (eval "$ac_compile") 2>conftest.er1
  3881   ac_status=$?
  3882   grep -v '^ *+' conftest.er1 >conftest.err
  3883   rm -f conftest.er1
  3884   cat conftest.err >&5
  3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3886   (exit $ac_status); } && {
  3887 	 test -z "$ac_c_werror_flag" ||
  3888 	 test ! -s conftest.err
  3889        } && test -s conftest.$ac_objext; then
  3890   ac_cv_prog_cc_g=yes
  3891 else
  3892   echo "$as_me: failed program was:" >&5
  3893 sed 's/^/| /' conftest.$ac_ext >&5
  3895 	CFLAGS=""
  3896       cat >conftest.$ac_ext <<_ACEOF
  3897 /* confdefs.h.  */
  3898 _ACEOF
  3899 cat confdefs.h >>conftest.$ac_ext
  3900 cat >>conftest.$ac_ext <<_ACEOF
  3901 /* end confdefs.h.  */
  3903 int
  3904 main ()
  3908   return 0;
  3910 _ACEOF
  3911 rm -f conftest.$ac_objext
  3912 if { (ac_try="$ac_compile"
  3913 case "(($ac_try" in
  3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3915   *) ac_try_echo=$ac_try;;
  3916 esac
  3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3918   (eval "$ac_compile") 2>conftest.er1
  3919   ac_status=$?
  3920   grep -v '^ *+' conftest.er1 >conftest.err
  3921   rm -f conftest.er1
  3922   cat conftest.err >&5
  3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3924   (exit $ac_status); } && {
  3925 	 test -z "$ac_c_werror_flag" ||
  3926 	 test ! -s conftest.err
  3927        } && test -s conftest.$ac_objext; then
  3929 else
  3930   echo "$as_me: failed program was:" >&5
  3931 sed 's/^/| /' conftest.$ac_ext >&5
  3933 	ac_c_werror_flag=$ac_save_c_werror_flag
  3934 	 CFLAGS="-g"
  3935 	 cat >conftest.$ac_ext <<_ACEOF
  3936 /* confdefs.h.  */
  3937 _ACEOF
  3938 cat confdefs.h >>conftest.$ac_ext
  3939 cat >>conftest.$ac_ext <<_ACEOF
  3940 /* end confdefs.h.  */
  3942 int
  3943 main ()
  3947   return 0;
  3949 _ACEOF
  3950 rm -f conftest.$ac_objext
  3951 if { (ac_try="$ac_compile"
  3952 case "(($ac_try" in
  3953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3954   *) ac_try_echo=$ac_try;;
  3955 esac
  3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3957   (eval "$ac_compile") 2>conftest.er1
  3958   ac_status=$?
  3959   grep -v '^ *+' conftest.er1 >conftest.err
  3960   rm -f conftest.er1
  3961   cat conftest.err >&5
  3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3963   (exit $ac_status); } && {
  3964 	 test -z "$ac_c_werror_flag" ||
  3965 	 test ! -s conftest.err
  3966        } && test -s conftest.$ac_objext; then
  3967   ac_cv_prog_cc_g=yes
  3968 else
  3969   echo "$as_me: failed program was:" >&5
  3970 sed 's/^/| /' conftest.$ac_ext >&5
  3973 fi
  3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3976 fi
  3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3979 fi
  3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3982    ac_c_werror_flag=$ac_save_c_werror_flag
  3983 fi
  3984 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3985 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3986 if test "$ac_test_CFLAGS" = set; then
  3987   CFLAGS=$ac_save_CFLAGS
  3988 elif test $ac_cv_prog_cc_g = yes; then
  3989   if test "$GCC" = yes; then
  3990     CFLAGS="-g -O2"
  3991   else
  3992     CFLAGS="-g"
  3993   fi
  3994 else
  3995   if test "$GCC" = yes; then
  3996     CFLAGS="-O2"
  3997   else
  3998     CFLAGS=
  3999   fi
  4000 fi
  4001 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4002 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4003 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4004   echo $ECHO_N "(cached) $ECHO_C" >&6
  4005 else
  4006   ac_cv_prog_cc_c89=no
  4007 ac_save_CC=$CC
  4008 cat >conftest.$ac_ext <<_ACEOF
  4009 /* confdefs.h.  */
  4010 _ACEOF
  4011 cat confdefs.h >>conftest.$ac_ext
  4012 cat >>conftest.$ac_ext <<_ACEOF
  4013 /* end confdefs.h.  */
  4014 #include <stdarg.h>
  4015 #include <stdio.h>
  4016 #include <sys/types.h>
  4017 #include <sys/stat.h>
  4018 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4019 struct buf { int x; };
  4020 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4021 static char *e (p, i)
  4022      char **p;
  4023      int i;
  4025   return p[i];
  4027 static char *f (char * (*g) (char **, int), char **p, ...)
  4029   char *s;
  4030   va_list v;
  4031   va_start (v,p);
  4032   s = g (p, va_arg (v,int));
  4033   va_end (v);
  4034   return s;
  4037 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4038    function prototypes and stuff, but not '\xHH' hex character constants.
  4039    These don't provoke an error unfortunately, instead are silently treated
  4040    as 'x'.  The following induces an error, until -std is added to get
  4041    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4042    array size at least.  It's necessary to write '\x00'==0 to get something
  4043    that's true only with -std.  */
  4044 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4046 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4047    inside strings and character constants.  */
  4048 #define FOO(x) 'x'
  4049 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4051 int test (int i, double x);
  4052 struct s1 {int (*f) (int a);};
  4053 struct s2 {int (*f) (double a);};
  4054 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4055 int argc;
  4056 char **argv;
  4057 int
  4058 main ()
  4060 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4062   return 0;
  4064 _ACEOF
  4065 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4066 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4067 do
  4068   CC="$ac_save_CC $ac_arg"
  4069   rm -f conftest.$ac_objext
  4070 if { (ac_try="$ac_compile"
  4071 case "(($ac_try" in
  4072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4073   *) ac_try_echo=$ac_try;;
  4074 esac
  4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4076   (eval "$ac_compile") 2>conftest.er1
  4077   ac_status=$?
  4078   grep -v '^ *+' conftest.er1 >conftest.err
  4079   rm -f conftest.er1
  4080   cat conftest.err >&5
  4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4082   (exit $ac_status); } && {
  4083 	 test -z "$ac_c_werror_flag" ||
  4084 	 test ! -s conftest.err
  4085        } && test -s conftest.$ac_objext; then
  4086   ac_cv_prog_cc_c89=$ac_arg
  4087 else
  4088   echo "$as_me: failed program was:" >&5
  4089 sed 's/^/| /' conftest.$ac_ext >&5
  4092 fi
  4094 rm -f core conftest.err conftest.$ac_objext
  4095   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4096 done
  4097 rm -f conftest.$ac_ext
  4098 CC=$ac_save_CC
  4100 fi
  4101 # AC_CACHE_VAL
  4102 case "x$ac_cv_prog_cc_c89" in
  4103   x)
  4104     { echo "$as_me:$LINENO: result: none needed" >&5
  4105 echo "${ECHO_T}none needed" >&6; } ;;
  4106   xno)
  4107     { echo "$as_me:$LINENO: result: unsupported" >&5
  4108 echo "${ECHO_T}unsupported" >&6; } ;;
  4109   *)
  4110     CC="$CC $ac_cv_prog_cc_c89"
  4111     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4112 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4113 esac
  4116 ac_ext=c
  4117 ac_cpp='$CPP $CPPFLAGS'
  4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4122 depcc="$CC"   am_compiler_list=
  4124 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4125 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4126 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4127   echo $ECHO_N "(cached) $ECHO_C" >&6
  4128 else
  4129   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4130   # We make a subdir and do the tests there.  Otherwise we can end up
  4131   # making bogus files that we don't know about and never remove.  For
  4132   # instance it was reported that on HP-UX the gcc test will end up
  4133   # making a dummy file named `D' -- because `-MD' means `put the output
  4134   # in D'.
  4135   mkdir conftest.dir
  4136   # Copy depcomp to subdir because otherwise we won't find it if we're
  4137   # using a relative directory.
  4138   cp "$am_depcomp" conftest.dir
  4139   cd conftest.dir
  4140   # We will build objects and dependencies in a subdirectory because
  4141   # it helps to detect inapplicable dependency modes.  For instance
  4142   # both Tru64's cc and ICC support -MD to output dependencies as a
  4143   # side effect of compilation, but ICC will put the dependencies in
  4144   # the current directory while Tru64 will put them in the object
  4145   # directory.
  4146   mkdir sub
  4148   am_cv_CC_dependencies_compiler_type=none
  4149   if test "$am_compiler_list" = ""; then
  4150      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4151   fi
  4152   for depmode in $am_compiler_list; do
  4153     # Setup a source with many dependencies, because some compilers
  4154     # like to wrap large dependency lists on column 80 (with \), and
  4155     # we should not choose a depcomp mode which is confused by this.
  4157     # We need to recreate these files for each test, as the compiler may
  4158     # overwrite some of them when testing with obscure command lines.
  4159     # This happens at least with the AIX C compiler.
  4160     : > sub/conftest.c
  4161     for i in 1 2 3 4 5 6; do
  4162       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4163       : > sub/conftst$i.h
  4164     done
  4165     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4167     case $depmode in
  4168     nosideeffect)
  4169       # after this tag, mechanisms are not by side-effect, so they'll
  4170       # only be used when explicitly requested
  4171       if test "x$enable_dependency_tracking" = xyes; then
  4172 	continue
  4173       else
  4174 	break
  4175       fi
  4176       ;;
  4177     none) break ;;
  4178     esac
  4179     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4180     # mode.  It turns out that the SunPro C++ compiler does not properly
  4181     # handle `-M -o', and we need to detect this.
  4182     if depmode=$depmode \
  4183        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4184        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4185        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4186          >/dev/null 2>conftest.err &&
  4187        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4188        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4189        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4190       # icc doesn't choke on unknown options, it will just issue warnings
  4191       # (even with -Werror).  So we grep stderr for any message
  4192       # that says an option was ignored.
  4193       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  4194         am_cv_CC_dependencies_compiler_type=$depmode
  4195         break
  4196       fi
  4197     fi
  4198   done
  4200   cd ..
  4201   rm -rf conftest.dir
  4202 else
  4203   am_cv_CC_dependencies_compiler_type=none
  4204 fi
  4206 fi
  4207 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4208 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4209 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4213 if
  4214   test "x$enable_dependency_tracking" != xno \
  4215   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4216   am__fastdepCC_TRUE=
  4217   am__fastdepCC_FALSE='#'
  4218 else
  4219   am__fastdepCC_TRUE='#'
  4220   am__fastdepCC_FALSE=
  4221 fi
  4227 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  4228 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
  4229 if test "${am_cv_prog_cc_stdc+set}" = set; then
  4230   echo $ECHO_N "(cached) $ECHO_C" >&6
  4231 else
  4232   am_cv_prog_cc_stdc=no
  4233 ac_save_CC="$CC"
  4234 # Don't try gcc -ansi; that turns off useful extensions and
  4235 # breaks some systems' header files.
  4236 # AIX			-qlanglvl=ansi
  4237 # Ultrix and OSF/1	-std1
  4238 # HP-UX 10.20 and later	-Ae
  4239 # HP-UX older versions	-Aa -D_HPUX_SOURCE
  4240 # SVR4			-Xc -D__EXTENSIONS__
  4241 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4242 do
  4243   CC="$ac_save_CC $ac_arg"
  4244   cat >conftest.$ac_ext <<_ACEOF
  4245 /* confdefs.h.  */
  4246 _ACEOF
  4247 cat confdefs.h >>conftest.$ac_ext
  4248 cat >>conftest.$ac_ext <<_ACEOF
  4249 /* end confdefs.h.  */
  4250 #include <stdarg.h>
  4251 #include <stdio.h>
  4252 #include <sys/types.h>
  4253 #include <sys/stat.h>
  4254 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4255 struct buf { int x; };
  4256 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4257 static char *e (p, i)
  4258      char **p;
  4259      int i;
  4261   return p[i];
  4263 static char *f (char * (*g) (char **, int), char **p, ...)
  4265   char *s;
  4266   va_list v;
  4267   va_start (v,p);
  4268   s = g (p, va_arg (v,int));
  4269   va_end (v);
  4270   return s;
  4272 int test (int i, double x);
  4273 struct s1 {int (*f) (int a);};
  4274 struct s2 {int (*f) (double a);};
  4275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4276 int argc;
  4277 char **argv;
  4279 int
  4280 main ()
  4283 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4286   return 0;
  4288 _ACEOF
  4289 rm -f conftest.$ac_objext
  4290 if { (ac_try="$ac_compile"
  4291 case "(($ac_try" in
  4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4293   *) ac_try_echo=$ac_try;;
  4294 esac
  4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4296   (eval "$ac_compile") 2>conftest.er1
  4297   ac_status=$?
  4298   grep -v '^ *+' conftest.er1 >conftest.err
  4299   rm -f conftest.er1
  4300   cat conftest.err >&5
  4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4302   (exit $ac_status); } && {
  4303 	 test -z "$ac_c_werror_flag" ||
  4304 	 test ! -s conftest.err
  4305        } && test -s conftest.$ac_objext; then
  4306   am_cv_prog_cc_stdc="$ac_arg"; break
  4307 else
  4308   echo "$as_me: failed program was:" >&5
  4309 sed 's/^/| /' conftest.$ac_ext >&5
  4312 fi
  4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4315 done
  4316 CC="$ac_save_CC"
  4318 fi
  4320 if test -z "$am_cv_prog_cc_stdc"; then
  4321   { echo "$as_me:$LINENO: result: none needed" >&5
  4322 echo "${ECHO_T}none needed" >&6; }
  4323 else
  4324   { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  4325 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
  4326 fi
  4327 case "x$am_cv_prog_cc_stdc" in
  4328   x|xno) ;;
  4329   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  4330 esac
  4332 # By default we simply use the C compiler to build assembly code.
  4334 : ${CCAS='$(CC)'}
  4335 # Set ASFLAGS if not already set.
  4336 : ${CCASFLAGS='$(CFLAGS)'}
  4339 ac_ext=c
  4340 ac_cpp='$CPP $CPPFLAGS'
  4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4344 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4345 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4346 # On Suns, sometimes $CPP names a directory.
  4347 if test -n "$CPP" && test -d "$CPP"; then
  4348   CPP=
  4349 fi
  4350 if test -z "$CPP"; then
  4351   if test "${ac_cv_prog_CPP+set}" = set; then
  4352   echo $ECHO_N "(cached) $ECHO_C" >&6
  4353 else
  4354       # Double quotes because CPP needs to be expanded
  4355     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4356     do
  4357       ac_preproc_ok=false
  4358 for ac_c_preproc_warn_flag in '' yes
  4359 do
  4360   # Use a header file that comes with gcc, so configuring glibc
  4361   # with a fresh cross-compiler works.
  4362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4363   # <limits.h> exists even on freestanding compilers.
  4364   # On the NeXT, cc -E runs the code through the compiler's parser,
  4365   # not just through cpp. "Syntax error" is here to catch this case.
  4366   cat >conftest.$ac_ext <<_ACEOF
  4367 /* confdefs.h.  */
  4368 _ACEOF
  4369 cat confdefs.h >>conftest.$ac_ext
  4370 cat >>conftest.$ac_ext <<_ACEOF
  4371 /* end confdefs.h.  */
  4372 #ifdef __STDC__
  4373 # include <limits.h>
  4374 #else
  4375 # include <assert.h>
  4376 #endif
  4377 		     Syntax error
  4378 _ACEOF
  4379 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4380 case "(($ac_try" in
  4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4382   *) ac_try_echo=$ac_try;;
  4383 esac
  4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4386   ac_status=$?
  4387   grep -v '^ *+' conftest.er1 >conftest.err
  4388   rm -f conftest.er1
  4389   cat conftest.err >&5
  4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4391   (exit $ac_status); } >/dev/null && {
  4392 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4393 	 test ! -s conftest.err
  4394        }; then
  4396 else
  4397   echo "$as_me: failed program was:" >&5
  4398 sed 's/^/| /' conftest.$ac_ext >&5
  4400   # Broken: fails on valid input.
  4401 continue
  4402 fi
  4404 rm -f conftest.err conftest.$ac_ext
  4406   # OK, works on sane cases.  Now check whether nonexistent headers
  4407   # can be detected and how.
  4408   cat >conftest.$ac_ext <<_ACEOF
  4409 /* confdefs.h.  */
  4410 _ACEOF
  4411 cat confdefs.h >>conftest.$ac_ext
  4412 cat >>conftest.$ac_ext <<_ACEOF
  4413 /* end confdefs.h.  */
  4414 #include <ac_nonexistent.h>
  4415 _ACEOF
  4416 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4417 case "(($ac_try" in
  4418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4419   *) ac_try_echo=$ac_try;;
  4420 esac
  4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4423   ac_status=$?
  4424   grep -v '^ *+' conftest.er1 >conftest.err
  4425   rm -f conftest.er1
  4426   cat conftest.err >&5
  4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4428   (exit $ac_status); } >/dev/null && {
  4429 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4430 	 test ! -s conftest.err
  4431        }; then
  4432   # Broken: success on invalid input.
  4433 continue
  4434 else
  4435   echo "$as_me: failed program was:" >&5
  4436 sed 's/^/| /' conftest.$ac_ext >&5
  4438   # Passes both tests.
  4439 ac_preproc_ok=:
  4440 break
  4441 fi
  4443 rm -f conftest.err conftest.$ac_ext
  4445 done
  4446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4447 rm -f conftest.err conftest.$ac_ext
  4448 if $ac_preproc_ok; then
  4449   break
  4450 fi
  4452     done
  4453     ac_cv_prog_CPP=$CPP
  4455 fi
  4456   CPP=$ac_cv_prog_CPP
  4457 else
  4458   ac_cv_prog_CPP=$CPP
  4459 fi
  4460 { echo "$as_me:$LINENO: result: $CPP" >&5
  4461 echo "${ECHO_T}$CPP" >&6; }
  4462 ac_preproc_ok=false
  4463 for ac_c_preproc_warn_flag in '' yes
  4464 do
  4465   # Use a header file that comes with gcc, so configuring glibc
  4466   # with a fresh cross-compiler works.
  4467   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4468   # <limits.h> exists even on freestanding compilers.
  4469   # On the NeXT, cc -E runs the code through the compiler's parser,
  4470   # not just through cpp. "Syntax error" is here to catch this case.
  4471   cat >conftest.$ac_ext <<_ACEOF
  4472 /* confdefs.h.  */
  4473 _ACEOF
  4474 cat confdefs.h >>conftest.$ac_ext
  4475 cat >>conftest.$ac_ext <<_ACEOF
  4476 /* end confdefs.h.  */
  4477 #ifdef __STDC__
  4478 # include <limits.h>
  4479 #else
  4480 # include <assert.h>
  4481 #endif
  4482 		     Syntax error
  4483 _ACEOF
  4484 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4485 case "(($ac_try" in
  4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4487   *) ac_try_echo=$ac_try;;
  4488 esac
  4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4491   ac_status=$?
  4492   grep -v '^ *+' conftest.er1 >conftest.err
  4493   rm -f conftest.er1
  4494   cat conftest.err >&5
  4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4496   (exit $ac_status); } >/dev/null && {
  4497 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4498 	 test ! -s conftest.err
  4499        }; then
  4501 else
  4502   echo "$as_me: failed program was:" >&5
  4503 sed 's/^/| /' conftest.$ac_ext >&5
  4505   # Broken: fails on valid input.
  4506 continue
  4507 fi
  4509 rm -f conftest.err conftest.$ac_ext
  4511   # OK, works on sane cases.  Now check whether nonexistent headers
  4512   # can be detected and how.
  4513   cat >conftest.$ac_ext <<_ACEOF
  4514 /* confdefs.h.  */
  4515 _ACEOF
  4516 cat confdefs.h >>conftest.$ac_ext
  4517 cat >>conftest.$ac_ext <<_ACEOF
  4518 /* end confdefs.h.  */
  4519 #include <ac_nonexistent.h>
  4520 _ACEOF
  4521 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4522 case "(($ac_try" in
  4523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4524   *) ac_try_echo=$ac_try;;
  4525 esac
  4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4528   ac_status=$?
  4529   grep -v '^ *+' conftest.er1 >conftest.err
  4530   rm -f conftest.er1
  4531   cat conftest.err >&5
  4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4533   (exit $ac_status); } >/dev/null && {
  4534 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4535 	 test ! -s conftest.err
  4536        }; then
  4537   # Broken: success on invalid input.
  4538 continue
  4539 else
  4540   echo "$as_me: failed program was:" >&5
  4541 sed 's/^/| /' conftest.$ac_ext >&5
  4543   # Passes both tests.
  4544 ac_preproc_ok=:
  4545 break
  4546 fi
  4548 rm -f conftest.err conftest.$ac_ext
  4550 done
  4551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4552 rm -f conftest.err conftest.$ac_ext
  4553 if $ac_preproc_ok; then
  4555 else
  4556   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4557 See \`config.log' for more details." >&5
  4558 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4559 See \`config.log' for more details." >&2;}
  4560    { (exit 1); exit 1; }; }
  4561 fi
  4563 ac_ext=c
  4564 ac_cpp='$CPP $CPPFLAGS'
  4565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4570 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4571 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4572 if test "${ac_cv_path_GREP+set}" = set; then
  4573   echo $ECHO_N "(cached) $ECHO_C" >&6
  4574 else
  4575   # Extract the first word of "grep ggrep" to use in msg output
  4576 if test -z "$GREP"; then
  4577 set dummy grep ggrep; ac_prog_name=$2
  4578 if test "${ac_cv_path_GREP+set}" = set; then
  4579   echo $ECHO_N "(cached) $ECHO_C" >&6
  4580 else
  4581   ac_path_GREP_found=false
  4582 # Loop through the user's path and test for each of PROGNAME-LIST
  4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4585 do
  4586   IFS=$as_save_IFS
  4587   test -z "$as_dir" && as_dir=.
  4588   for ac_prog in grep ggrep; do
  4589   for ac_exec_ext in '' $ac_executable_extensions; do
  4590     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4591     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4592     # Check for GNU ac_path_GREP and select it if it is found.
  4593   # Check for GNU $ac_path_GREP
  4594 case `"$ac_path_GREP" --version 2>&1` in
  4595 *GNU*)
  4596   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4597 *)
  4598   ac_count=0
  4599   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4600   while :
  4601   do
  4602     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4603     mv "conftest.tmp" "conftest.in"
  4604     cp "conftest.in" "conftest.nl"
  4605     echo 'GREP' >> "conftest.nl"
  4606     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4607     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4608     ac_count=`expr $ac_count + 1`
  4609     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4610       # Best one so far, save it but keep looking for a better one
  4611       ac_cv_path_GREP="$ac_path_GREP"
  4612       ac_path_GREP_max=$ac_count
  4613     fi
  4614     # 10*(2^10) chars as input seems more than enough
  4615     test $ac_count -gt 10 && break
  4616   done
  4617   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4618 esac
  4621     $ac_path_GREP_found && break 3
  4622   done
  4623 done
  4625 done
  4626 IFS=$as_save_IFS
  4629 fi
  4631 GREP="$ac_cv_path_GREP"
  4632 if test -z "$GREP"; then
  4633   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4634 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4635    { (exit 1); exit 1; }; }
  4636 fi
  4638 else
  4639   ac_cv_path_GREP=$GREP
  4640 fi
  4643 fi
  4644 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4645 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4646  GREP="$ac_cv_path_GREP"
  4649 { echo "$as_me:$LINENO: checking for egrep" >&5
  4650 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4651 if test "${ac_cv_path_EGREP+set}" = set; then
  4652   echo $ECHO_N "(cached) $ECHO_C" >&6
  4653 else
  4654   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4655    then ac_cv_path_EGREP="$GREP -E"
  4656    else
  4657      # Extract the first word of "egrep" to use in msg output
  4658 if test -z "$EGREP"; then
  4659 set dummy egrep; ac_prog_name=$2
  4660 if test "${ac_cv_path_EGREP+set}" = set; then
  4661   echo $ECHO_N "(cached) $ECHO_C" >&6
  4662 else
  4663   ac_path_EGREP_found=false
  4664 # Loop through the user's path and test for each of PROGNAME-LIST
  4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4667 do
  4668   IFS=$as_save_IFS
  4669   test -z "$as_dir" && as_dir=.
  4670   for ac_prog in egrep; do
  4671   for ac_exec_ext in '' $ac_executable_extensions; do
  4672     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4673     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4674     # Check for GNU ac_path_EGREP and select it if it is found.
  4675   # Check for GNU $ac_path_EGREP
  4676 case `"$ac_path_EGREP" --version 2>&1` in
  4677 *GNU*)
  4678   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4679 *)
  4680   ac_count=0
  4681   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4682   while :
  4683   do
  4684     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4685     mv "conftest.tmp" "conftest.in"
  4686     cp "conftest.in" "conftest.nl"
  4687     echo 'EGREP' >> "conftest.nl"
  4688     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4689     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4690     ac_count=`expr $ac_count + 1`
  4691     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4692       # Best one so far, save it but keep looking for a better one
  4693       ac_cv_path_EGREP="$ac_path_EGREP"
  4694       ac_path_EGREP_max=$ac_count
  4695     fi
  4696     # 10*(2^10) chars as input seems more than enough
  4697     test $ac_count -gt 10 && break
  4698   done
  4699   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4700 esac
  4703     $ac_path_EGREP_found && break 3
  4704   done
  4705 done
  4707 done
  4708 IFS=$as_save_IFS
  4711 fi
  4713 EGREP="$ac_cv_path_EGREP"
  4714 if test -z "$EGREP"; then
  4715   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4717    { (exit 1); exit 1; }; }
  4718 fi
  4720 else
  4721   ac_cv_path_EGREP=$EGREP
  4722 fi
  4725    fi
  4726 fi
  4727 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4728 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4729  EGREP="$ac_cv_path_EGREP"
  4732 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4733 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4734 if test "${ac_cv_header_stdc+set}" = set; then
  4735   echo $ECHO_N "(cached) $ECHO_C" >&6
  4736 else
  4737   cat >conftest.$ac_ext <<_ACEOF
  4738 /* confdefs.h.  */
  4739 _ACEOF
  4740 cat confdefs.h >>conftest.$ac_ext
  4741 cat >>conftest.$ac_ext <<_ACEOF
  4742 /* end confdefs.h.  */
  4743 #include <stdlib.h>
  4744 #include <stdarg.h>
  4745 #include <string.h>
  4746 #include <float.h>
  4748 int
  4749 main ()
  4753   return 0;
  4755 _ACEOF
  4756 rm -f conftest.$ac_objext
  4757 if { (ac_try="$ac_compile"
  4758 case "(($ac_try" in
  4759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4760   *) ac_try_echo=$ac_try;;
  4761 esac
  4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4763   (eval "$ac_compile") 2>conftest.er1
  4764   ac_status=$?
  4765   grep -v '^ *+' conftest.er1 >conftest.err
  4766   rm -f conftest.er1
  4767   cat conftest.err >&5
  4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4769   (exit $ac_status); } && {
  4770 	 test -z "$ac_c_werror_flag" ||
  4771 	 test ! -s conftest.err
  4772        } && test -s conftest.$ac_objext; then
  4773   ac_cv_header_stdc=yes
  4774 else
  4775   echo "$as_me: failed program was:" >&5
  4776 sed 's/^/| /' conftest.$ac_ext >&5
  4778 	ac_cv_header_stdc=no
  4779 fi
  4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4783 if test $ac_cv_header_stdc = yes; then
  4784   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4785   cat >conftest.$ac_ext <<_ACEOF
  4786 /* confdefs.h.  */
  4787 _ACEOF
  4788 cat confdefs.h >>conftest.$ac_ext
  4789 cat >>conftest.$ac_ext <<_ACEOF
  4790 /* end confdefs.h.  */
  4791 #include <string.h>
  4793 _ACEOF
  4794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4795   $EGREP "memchr" >/dev/null 2>&1; then
  4797 else
  4798   ac_cv_header_stdc=no
  4799 fi
  4800 rm -f conftest*
  4802 fi
  4804 if test $ac_cv_header_stdc = yes; then
  4805   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4806   cat >conftest.$ac_ext <<_ACEOF
  4807 /* confdefs.h.  */
  4808 _ACEOF
  4809 cat confdefs.h >>conftest.$ac_ext
  4810 cat >>conftest.$ac_ext <<_ACEOF
  4811 /* end confdefs.h.  */
  4812 #include <stdlib.h>
  4814 _ACEOF
  4815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4816   $EGREP "free" >/dev/null 2>&1; then
  4818 else
  4819   ac_cv_header_stdc=no
  4820 fi
  4821 rm -f conftest*
  4823 fi
  4825 if test $ac_cv_header_stdc = yes; then
  4826   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4827   if test "$cross_compiling" = yes; then
  4829 else
  4830   cat >conftest.$ac_ext <<_ACEOF
  4831 /* confdefs.h.  */
  4832 _ACEOF
  4833 cat confdefs.h >>conftest.$ac_ext
  4834 cat >>conftest.$ac_ext <<_ACEOF
  4835 /* end confdefs.h.  */
  4836 #include <ctype.h>
  4837 #include <stdlib.h>
  4838 #if ((' ' & 0x0FF) == 0x020)
  4839 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4840 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4841 #else
  4842 # define ISLOWER(c) \
  4843 		   (('a' <= (c) && (c) <= 'i') \
  4844 		     || ('j' <= (c) && (c) <= 'r') \
  4845 		     || ('s' <= (c) && (c) <= 'z'))
  4846 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4847 #endif
  4849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4850 int
  4851 main ()
  4853   int i;
  4854   for (i = 0; i < 256; i++)
  4855     if (XOR (islower (i), ISLOWER (i))
  4856 	|| toupper (i) != TOUPPER (i))
  4857       return 2;
  4858   return 0;
  4860 _ACEOF
  4861 rm -f conftest$ac_exeext
  4862 if { (ac_try="$ac_link"
  4863 case "(($ac_try" in
  4864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4865   *) ac_try_echo=$ac_try;;
  4866 esac
  4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4868   (eval "$ac_link") 2>&5
  4869   ac_status=$?
  4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4872   { (case "(($ac_try" in
  4873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4874   *) ac_try_echo=$ac_try;;
  4875 esac
  4876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4877   (eval "$ac_try") 2>&5
  4878   ac_status=$?
  4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4880   (exit $ac_status); }; }; then
  4882 else
  4883   echo "$as_me: program exited with status $ac_status" >&5
  4884 echo "$as_me: failed program was:" >&5
  4885 sed 's/^/| /' conftest.$ac_ext >&5
  4887 ( exit $ac_status )
  4888 ac_cv_header_stdc=no
  4889 fi
  4890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4891 fi
  4894 fi
  4895 fi
  4896 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4897 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4898 if test $ac_cv_header_stdc = yes; then
  4900 cat >>confdefs.h <<\_ACEOF
  4901 #define STDC_HEADERS 1
  4902 _ACEOF
  4904 fi
  4906 # Make sure we can run config.sub.
  4907 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4908   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  4909 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  4910    { (exit 1); exit 1; }; }
  4912 { echo "$as_me:$LINENO: checking build system type" >&5
  4913 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  4914 if test "${ac_cv_build+set}" = set; then
  4915   echo $ECHO_N "(cached) $ECHO_C" >&6
  4916 else
  4917   ac_build_alias=$build_alias
  4918 test "x$ac_build_alias" = x &&
  4919   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4920 test "x$ac_build_alias" = x &&
  4921   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4922 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4923    { (exit 1); exit 1; }; }
  4924 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4925   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  4926 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  4927    { (exit 1); exit 1; }; }
  4929 fi
  4930 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4931 echo "${ECHO_T}$ac_cv_build" >&6; }
  4932 case $ac_cv_build in
  4933 *-*-*) ;;
  4934 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  4935 echo "$as_me: error: invalid value of canonical build" >&2;}
  4936    { (exit 1); exit 1; }; };;
  4937 esac
  4938 build=$ac_cv_build
  4939 ac_save_IFS=$IFS; IFS='-'
  4940 set x $ac_cv_build
  4941 shift
  4942 build_cpu=$1
  4943 build_vendor=$2
  4944 shift; shift
  4945 # Remember, the first character of IFS is used to create $*,
  4946 # except with old shells:
  4947 build_os=$*
  4948 IFS=$ac_save_IFS
  4949 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4952 { echo "$as_me:$LINENO: checking host system type" >&5
  4953 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  4954 if test "${ac_cv_host+set}" = set; then
  4955   echo $ECHO_N "(cached) $ECHO_C" >&6
  4956 else
  4957   if test "x$host_alias" = x; then
  4958   ac_cv_host=$ac_cv_build
  4959 else
  4960   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4961     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  4962 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  4963    { (exit 1); exit 1; }; }
  4964 fi
  4966 fi
  4967 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4968 echo "${ECHO_T}$ac_cv_host" >&6; }
  4969 case $ac_cv_host in
  4970 *-*-*) ;;
  4971 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  4972 echo "$as_me: error: invalid value of canonical host" >&2;}
  4973    { (exit 1); exit 1; }; };;
  4974 esac
  4975 host=$ac_cv_host
  4976 ac_save_IFS=$IFS; IFS='-'
  4977 set x $ac_cv_host
  4978 shift
  4979 host_cpu=$1
  4980 host_vendor=$2
  4981 shift; shift
  4982 # Remember, the first character of IFS is used to create $*,
  4983 # except with old shells:
  4984 host_os=$*
  4985 IFS=$ac_save_IFS
  4986 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4989 # Check whether --enable-trace was given.
  4990 if test "${enable_trace+set}" = set; then
  4991   enableval=$enable_trace; if test "$enableval" == "yes"; then
  4993 cat >>confdefs.h <<\_ACEOF
  4994 #define ENABLE_TRACE_IO 1
  4995 _ACEOF
  4997     fi
  4998 fi
  5000 # Check whether --enable-watch was given.
  5001 if test "${enable_watch+set}" = set; then
  5002   enableval=$enable_watch; if test "$enableval" == "yes"; then
  5004 cat >>confdefs.h <<\_ACEOF
  5005 #define ENABLE_WATCH 1
  5006 _ACEOF
  5008    fi
  5009 fi
  5012 # Check whether --with-osmesa was given.
  5013 if test "${with_osmesa+set}" = set; then
  5014   withval=$with_osmesa;
  5015 else
  5016   with_osmesa=no
  5017 fi
  5020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5031 		  inttypes.h stdint.h unistd.h
  5032 do
  5033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5037   echo $ECHO_N "(cached) $ECHO_C" >&6
  5038 else
  5039   cat >conftest.$ac_ext <<_ACEOF
  5040 /* confdefs.h.  */
  5041 _ACEOF
  5042 cat confdefs.h >>conftest.$ac_ext
  5043 cat >>conftest.$ac_ext <<_ACEOF
  5044 /* end confdefs.h.  */
  5045 $ac_includes_default
  5047 #include <$ac_header>
  5048 _ACEOF
  5049 rm -f conftest.$ac_objext
  5050 if { (ac_try="$ac_compile"
  5051 case "(($ac_try" in
  5052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5053   *) ac_try_echo=$ac_try;;
  5054 esac
  5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5056   (eval "$ac_compile") 2>conftest.er1
  5057   ac_status=$?
  5058   grep -v '^ *+' conftest.er1 >conftest.err
  5059   rm -f conftest.er1
  5060   cat conftest.err >&5
  5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5062   (exit $ac_status); } && {
  5063 	 test -z "$ac_c_werror_flag" ||
  5064 	 test ! -s conftest.err
  5065        } && test -s conftest.$ac_objext; then
  5066   eval "$as_ac_Header=yes"
  5067 else
  5068   echo "$as_me: failed program was:" >&5
  5069 sed 's/^/| /' conftest.$ac_ext >&5
  5071 	eval "$as_ac_Header=no"
  5072 fi
  5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5075 fi
  5076 ac_res=`eval echo '${'$as_ac_Header'}'`
  5077 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  5078 echo "${ECHO_T}$ac_res" >&6; }
  5079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5080   cat >>confdefs.h <<_ACEOF
  5081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5082 _ACEOF
  5084 fi
  5086 done
  5089 if test "x$with_osmesa" != xno; then
  5092 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  5093 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
  5094 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  5095   echo $ECHO_N "(cached) $ECHO_C" >&6
  5096 else
  5097   ac_check_lib_save_LIBS=$LIBS
  5098 LIBS="-lOSMesa  $LIBS"
  5099 cat >conftest.$ac_ext <<_ACEOF
  5100 /* confdefs.h.  */
  5101 _ACEOF
  5102 cat confdefs.h >>conftest.$ac_ext
  5103 cat >>conftest.$ac_ext <<_ACEOF
  5104 /* end confdefs.h.  */
  5106 /* Override any GCC internal prototype to avoid an error.
  5107    Use char because int might match the return type of a GCC
  5108    builtin and then its argument prototype would still apply.  */
  5109 #ifdef __cplusplus
  5110 extern "C"
  5111 #endif
  5112 char OSMesaCreateContext ();
  5113 int
  5114 main ()
  5116 return OSMesaCreateContext ();
  5118   return 0;
  5120 _ACEOF
  5121 rm -f conftest.$ac_objext conftest$ac_exeext
  5122 if { (ac_try="$ac_link"
  5123 case "(($ac_try" in
  5124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5125   *) ac_try_echo=$ac_try;;
  5126 esac
  5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5128   (eval "$ac_link") 2>conftest.er1
  5129   ac_status=$?
  5130   grep -v '^ *+' conftest.er1 >conftest.err
  5131   rm -f conftest.er1
  5132   cat conftest.err >&5
  5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5134   (exit $ac_status); } && {
  5135 	 test -z "$ac_c_werror_flag" ||
  5136 	 test ! -s conftest.err
  5137        } && test -s conftest$ac_exeext &&
  5138        $as_test_x conftest$ac_exeext; then
  5139   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  5140 else
  5141   echo "$as_me: failed program was:" >&5
  5142 sed 's/^/| /' conftest.$ac_ext >&5
  5144 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  5145 fi
  5147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5148       conftest$ac_exeext conftest.$ac_ext
  5149 LIBS=$ac_check_lib_save_LIBS
  5150 fi
  5151 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  5152 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  5153 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
  5154   cat >>confdefs.h <<_ACEOF
  5155 #define HAVE_LIBOSMESA 1
  5156 _ACEOF
  5158   LIBS="-lOSMesa $LIBS"
  5160 else
  5161   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  5162 See \`config.log' for more details." >&5
  5163 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  5164 See \`config.log' for more details." >&2;}
  5165    { (exit 1); exit 1; }; }
  5166 fi
  5168   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  5169   { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  5170 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
  5171 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  5172   echo $ECHO_N "(cached) $ECHO_C" >&6
  5173 fi
  5174 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  5175 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
  5176 else
  5177   # Is the header compilable?
  5178 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  5179 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
  5180 cat >conftest.$ac_ext <<_ACEOF
  5181 /* confdefs.h.  */
  5182 _ACEOF
  5183 cat confdefs.h >>conftest.$ac_ext
  5184 cat >>conftest.$ac_ext <<_ACEOF
  5185 /* end confdefs.h.  */
  5186 $ac_includes_default
  5187 #include <GL/osmesa.h>
  5188 _ACEOF
  5189 rm -f conftest.$ac_objext
  5190 if { (ac_try="$ac_compile"
  5191 case "(($ac_try" in
  5192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5193   *) ac_try_echo=$ac_try;;
  5194 esac
  5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5196   (eval "$ac_compile") 2>conftest.er1
  5197   ac_status=$?
  5198   grep -v '^ *+' conftest.er1 >conftest.err
  5199   rm -f conftest.er1
  5200   cat conftest.err >&5
  5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5202   (exit $ac_status); } && {
  5203 	 test -z "$ac_c_werror_flag" ||
  5204 	 test ! -s conftest.err
  5205        } && test -s conftest.$ac_objext; then
  5206   ac_header_compiler=yes
  5207 else
  5208   echo "$as_me: failed program was:" >&5
  5209 sed 's/^/| /' conftest.$ac_ext >&5
  5211 	ac_header_compiler=no
  5212 fi
  5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5216 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5218 # Is the header present?
  5219 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  5220 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
  5221 cat >conftest.$ac_ext <<_ACEOF
  5222 /* confdefs.h.  */
  5223 _ACEOF
  5224 cat confdefs.h >>conftest.$ac_ext
  5225 cat >>conftest.$ac_ext <<_ACEOF
  5226 /* end confdefs.h.  */
  5227 #include <GL/osmesa.h>
  5228 _ACEOF
  5229 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5230 case "(($ac_try" in
  5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5232   *) ac_try_echo=$ac_try;;
  5233 esac
  5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5236   ac_status=$?
  5237   grep -v '^ *+' conftest.er1 >conftest.err
  5238   rm -f conftest.er1
  5239   cat conftest.err >&5
  5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5241   (exit $ac_status); } >/dev/null && {
  5242 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5243 	 test ! -s conftest.err
  5244        }; then
  5245   ac_header_preproc=yes
  5246 else
  5247   echo "$as_me: failed program was:" >&5
  5248 sed 's/^/| /' conftest.$ac_ext >&5
  5250   ac_header_preproc=no
  5251 fi
  5253 rm -f conftest.err conftest.$ac_ext
  5254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5255 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5257 # So?  What about this header?
  5258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5259   yes:no: )
  5260     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5261 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5262     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  5263 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  5264     ac_header_preproc=yes
  5265     ;;
  5266   no:yes:* )
  5267     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  5268 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  5269     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  5270 echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  5271     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  5272 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  5273     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  5274 echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5275     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  5276 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  5277     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  5278 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  5280     ;;
  5281 esac
  5282 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  5283 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
  5284 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  5285   echo $ECHO_N "(cached) $ECHO_C" >&6
  5286 else
  5287   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  5288 fi
  5289 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  5290 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
  5292 fi
  5293 if test $ac_cv_header_GL_osmesa_h = yes; then
  5295 else
  5296   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  5297 See \`config.log' for more details." >&5
  5298 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  5299 See \`config.log' for more details." >&2;}
  5300    { (exit 1); exit 1; }; }
  5301 fi
  5305 fi
  5309 if test "x$with_osmesa" != xno; then
  5310   OSMESA_DRIVER_TRUE=
  5311   OSMESA_DRIVER_FALSE='#'
  5312 else
  5313   OSMESA_DRIVER_TRUE='#'
  5314   OSMESA_DRIVER_FALSE=
  5315 fi
  5318 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5319   { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
  5320 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
  5321 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5322   echo $ECHO_N "(cached) $ECHO_C" >&6
  5323 fi
  5324 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
  5325 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
  5326 else
  5327   # Is the header compilable?
  5328 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
  5329 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
  5330 cat >conftest.$ac_ext <<_ACEOF
  5331 /* confdefs.h.  */
  5332 _ACEOF
  5333 cat confdefs.h >>conftest.$ac_ext
  5334 cat >>conftest.$ac_ext <<_ACEOF
  5335 /* end confdefs.h.  */
  5336 $ac_includes_default
  5337 #include <Carbon/Carbon.h>
  5338 _ACEOF
  5339 rm -f conftest.$ac_objext
  5340 if { (ac_try="$ac_compile"
  5341 case "(($ac_try" in
  5342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5343   *) ac_try_echo=$ac_try;;
  5344 esac
  5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5346   (eval "$ac_compile") 2>conftest.er1
  5347   ac_status=$?
  5348   grep -v '^ *+' conftest.er1 >conftest.err
  5349   rm -f conftest.er1
  5350   cat conftest.err >&5
  5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5352   (exit $ac_status); } && {
  5353 	 test -z "$ac_c_werror_flag" ||
  5354 	 test ! -s conftest.err
  5355        } && test -s conftest.$ac_objext; then
  5356   ac_header_compiler=yes
  5357 else
  5358   echo "$as_me: failed program was:" >&5
  5359 sed 's/^/| /' conftest.$ac_ext >&5
  5361 	ac_header_compiler=no
  5362 fi
  5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5366 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5368 # Is the header present?
  5369 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
  5370 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
  5371 cat >conftest.$ac_ext <<_ACEOF
  5372 /* confdefs.h.  */
  5373 _ACEOF
  5374 cat confdefs.h >>conftest.$ac_ext
  5375 cat >>conftest.$ac_ext <<_ACEOF
  5376 /* end confdefs.h.  */
  5377 #include <Carbon/Carbon.h>
  5378 _ACEOF
  5379 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5380 case "(($ac_try" in
  5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5382   *) ac_try_echo=$ac_try;;
  5383 esac
  5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5386   ac_status=$?
  5387   grep -v '^ *+' conftest.er1 >conftest.err
  5388   rm -f conftest.er1
  5389   cat conftest.err >&5
  5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5391   (exit $ac_status); } >/dev/null && {
  5392 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5393 	 test ! -s conftest.err
  5394        }; then
  5395   ac_header_preproc=yes
  5396 else
  5397   echo "$as_me: failed program was:" >&5
  5398 sed 's/^/| /' conftest.$ac_ext >&5
  5400   ac_header_preproc=no
  5401 fi
  5403 rm -f conftest.err conftest.$ac_ext
  5404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5405 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5407 # So?  What about this header?
  5408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5409   yes:no: )
  5410     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5411 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5412     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
  5413 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
  5414     ac_header_preproc=yes
  5415     ;;
  5416   no:yes:* )
  5417     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
  5418 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
  5419     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
  5420 echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
  5421     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
  5422 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
  5423     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
  5424 echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5425     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
  5426 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
  5427     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
  5428 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
  5430     ;;
  5431 esac
  5432 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
  5433 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
  5434 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5435   echo $ECHO_N "(cached) $ECHO_C" >&6
  5436 else
  5437   ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
  5438 fi
  5439 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
  5440 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
  5442 fi
  5443 if test $ac_cv_header_Carbon_Carbon_h = yes; then
  5445    HAVE_CARBON='yes'
  5446    APPLE_BUILD='yes'
  5447    LIBS="$LIBS -framework OpenGL -framework AGL -framework Carbon -L/usr/X11R6/lib -lGL"
  5449 cat >>confdefs.h <<\_ACEOF
  5450 #define HAVE_CARBON 1
  5451 _ACEOF
  5454 cat >>confdefs.h <<\_ACEOF
  5455 #define APPLE_BUILD 1
  5456 _ACEOF
  5459 fi
  5465 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5466 	if test -n "$ac_tool_prefix"; then
  5467   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5468 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5471 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  5472   echo $ECHO_N "(cached) $ECHO_C" >&6
  5473 else
  5474   case $PKG_CONFIG in
  5475   [\\/]* | ?:[\\/]*)
  5476   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5477   ;;
  5478   *)
  5479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5480 for as_dir in $PATH
  5481 do
  5482   IFS=$as_save_IFS
  5483   test -z "$as_dir" && as_dir=.
  5484   for ac_exec_ext in '' $ac_executable_extensions; do
  5485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5486     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5488     break 2
  5489   fi
  5490 done
  5491 done
  5492 IFS=$as_save_IFS
  5494   ;;
  5495 esac
  5496 fi
  5497 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5498 if test -n "$PKG_CONFIG"; then
  5499   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  5500 echo "${ECHO_T}$PKG_CONFIG" >&6; }
  5501 else
  5502   { echo "$as_me:$LINENO: result: no" >&5
  5503 echo "${ECHO_T}no" >&6; }
  5504 fi
  5507 fi
  5508 if test -z "$ac_cv_path_PKG_CONFIG"; then
  5509   ac_pt_PKG_CONFIG=$PKG_CONFIG
  5510   # Extract the first word of "pkg-config", so it can be a program name with args.
  5511 set dummy pkg-config; ac_word=$2
  5512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5514 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  5515   echo $ECHO_N "(cached) $ECHO_C" >&6
  5516 else
  5517   case $ac_pt_PKG_CONFIG in
  5518   [\\/]* | ?:[\\/]*)
  5519   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5520   ;;
  5521   *)
  5522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5523 for as_dir in $PATH
  5524 do
  5525   IFS=$as_save_IFS
  5526   test -z "$as_dir" && as_dir=.
  5527   for ac_exec_ext in '' $ac_executable_extensions; do
  5528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5529     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5531     break 2
  5532   fi
  5533 done
  5534 done
  5535 IFS=$as_save_IFS
  5537   ;;
  5538 esac
  5539 fi
  5540 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5541 if test -n "$ac_pt_PKG_CONFIG"; then
  5542   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  5543 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  5544 else
  5545   { echo "$as_me:$LINENO: result: no" >&5
  5546 echo "${ECHO_T}no" >&6; }
  5547 fi
  5549   if test "x$ac_pt_PKG_CONFIG" = x; then
  5550     PKG_CONFIG=""
  5551   else
  5552     case $cross_compiling:$ac_tool_warned in
  5553 yes:)
  5554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5555 whose name does not start with the host triplet.  If you think this
  5556 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5558 whose name does not start with the host triplet.  If you think this
  5559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5560 ac_tool_warned=yes ;;
  5561 esac
  5562     PKG_CONFIG=$ac_pt_PKG_CONFIG
  5563   fi
  5564 else
  5565   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5566 fi
  5568 fi
  5569 if test -n "$PKG_CONFIG"; then
  5570 	_pkg_min_version=0.9.0
  5571 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  5572 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  5573 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5574 		{ echo "$as_me:$LINENO: result: yes" >&5
  5575 echo "${ECHO_T}yes" >&6; }
  5576 	else
  5577 		{ echo "$as_me:$LINENO: result: no" >&5
  5578 echo "${ECHO_T}no" >&6; }
  5579 		PKG_CONFIG=""
  5580 	fi
  5582 fi
  5584 pkg_failed=no
  5585 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
  5586 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
  5588 if test -n "$PKG_CONFIG"; then
  5589     if test -n "$LIBPNG_CFLAGS"; then
  5590         pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  5591     else
  5592         if test -n "$PKG_CONFIG" && \
  5593     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5594   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5595   ac_status=$?
  5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5597   (exit $ac_status); }; then
  5598   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  5599 else
  5600   pkg_failed=yes
  5601 fi
  5602     fi
  5603 else
  5604 	pkg_failed=untried
  5605 fi
  5606 if test -n "$PKG_CONFIG"; then
  5607     if test -n "$LIBPNG_LIBS"; then
  5608         pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  5609     else
  5610         if test -n "$PKG_CONFIG" && \
  5611     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5612   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5613   ac_status=$?
  5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5615   (exit $ac_status); }; then
  5616   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  5617 else
  5618   pkg_failed=yes
  5619 fi
  5620     fi
  5621 else
  5622 	pkg_failed=untried
  5623 fi
  5627 if test $pkg_failed = yes; then
  5629 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5630         _pkg_short_errors_supported=yes
  5631 else
  5632         _pkg_short_errors_supported=no
  5633 fi
  5634         if test $_pkg_short_errors_supported = yes; then
  5635 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
  5636         else
  5637 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
  5638         fi
  5639 	# Put the nasty error message in config.log where it belongs
  5640 	echo "$LIBPNG_PKG_ERRORS" >&5
  5642 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  5644 $LIBPNG_PKG_ERRORS
  5646 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5647 installed software in a non-standard prefix.
  5649 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5650 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5651 See the pkg-config man page for more details.
  5652 " >&5
  5653 echo "$as_me: error: Package requirements (libpng ) were not met:
  5655 $LIBPNG_PKG_ERRORS
  5657 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5658 installed software in a non-standard prefix.
  5660 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5661 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5662 See the pkg-config man page for more details.
  5663 " >&2;}
  5664    { (exit 1); exit 1; }; }
  5665 elif test $pkg_failed = untried; then
  5666 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  5667 is in your PATH or set the PKG_CONFIG environment variable to the full
  5668 path to pkg-config.
  5670 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5671 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5672 See the pkg-config man page for more details.
  5674 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5675 See \`config.log' for more details." >&5
  5676 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  5677 is in your PATH or set the PKG_CONFIG environment variable to the full
  5678 path to pkg-config.
  5680 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5681 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5682 See the pkg-config man page for more details.
  5684 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5685 See \`config.log' for more details." >&2;}
  5686    { (exit 1); exit 1; }; }
  5687 else
  5688 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  5689 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  5690         { echo "$as_me:$LINENO: result: yes" >&5
  5691 echo "${ECHO_T}yes" >&6; }
  5693 fi
  5696 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  5697 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
  5698 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  5699   echo $ECHO_N "(cached) $ECHO_C" >&6
  5700 else
  5701   ac_check_lib_save_LIBS=$LIBS
  5702 LIBS="-lz  $LIBS"
  5703 cat >conftest.$ac_ext <<_ACEOF
  5704 /* confdefs.h.  */
  5705 _ACEOF
  5706 cat confdefs.h >>conftest.$ac_ext
  5707 cat >>conftest.$ac_ext <<_ACEOF
  5708 /* end confdefs.h.  */
  5710 /* Override any GCC internal prototype to avoid an error.
  5711    Use char because int might match the return type of a GCC
  5712    builtin and then its argument prototype would still apply.  */
  5713 #ifdef __cplusplus
  5714 extern "C"
  5715 #endif
  5716 char uncompress ();
  5717 int
  5718 main ()
  5720 return uncompress ();
  5722   return 0;
  5724 _ACEOF
  5725 rm -f conftest.$ac_objext conftest$ac_exeext
  5726 if { (ac_try="$ac_link"
  5727 case "(($ac_try" in
  5728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5729   *) ac_try_echo=$ac_try;;
  5730 esac
  5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5732   (eval "$ac_link") 2>conftest.er1
  5733   ac_status=$?
  5734   grep -v '^ *+' conftest.er1 >conftest.err
  5735   rm -f conftest.er1
  5736   cat conftest.err >&5
  5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5738   (exit $ac_status); } && {
  5739 	 test -z "$ac_c_werror_flag" ||
  5740 	 test ! -s conftest.err
  5741        } && test -s conftest$ac_exeext &&
  5742        $as_test_x conftest$ac_exeext; then
  5743   ac_cv_lib_z_uncompress=yes
  5744 else
  5745   echo "$as_me: failed program was:" >&5
  5746 sed 's/^/| /' conftest.$ac_ext >&5
  5748 	ac_cv_lib_z_uncompress=no
  5749 fi
  5751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5752       conftest$ac_exeext conftest.$ac_ext
  5753 LIBS=$ac_check_lib_save_LIBS
  5754 fi
  5755 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  5756 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
  5757 if test $ac_cv_lib_z_uncompress = yes; then
  5758   cat >>confdefs.h <<_ACEOF
  5759 #define HAVE_LIBZ 1
  5760 _ACEOF
  5762   LIBS="-lz $LIBS"
  5764 else
  5766     echo "Zlib (libz.so) could not be found, but is required."
  5767     exit 1
  5768 fi
  5771 if test "$APPLE_BUILD" != 'yes'; then
  5772 if test "x$with_osmesa" == "xno"; then
  5774 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
  5775 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
  5776 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
  5777   echo $ECHO_N "(cached) $ECHO_C" >&6
  5778 else
  5779   ac_check_lib_save_LIBS=$LIBS
  5780 LIBS="-lGL  $LIBS"
  5781 cat >conftest.$ac_ext <<_ACEOF
  5782 /* confdefs.h.  */
  5783 _ACEOF
  5784 cat confdefs.h >>conftest.$ac_ext
  5785 cat >>conftest.$ac_ext <<_ACEOF
  5786 /* end confdefs.h.  */
  5788 /* Override any GCC internal prototype to avoid an error.
  5789    Use char because int might match the return type of a GCC
  5790    builtin and then its argument prototype would still apply.  */
  5791 #ifdef __cplusplus
  5792 extern "C"
  5793 #endif
  5794 char glXQueryVersion ();
  5795 int
  5796 main ()
  5798 return glXQueryVersion ();
  5800   return 0;
  5802 _ACEOF
  5803 rm -f conftest.$ac_objext conftest$ac_exeext
  5804 if { (ac_try="$ac_link"
  5805 case "(($ac_try" in
  5806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5807   *) ac_try_echo=$ac_try;;
  5808 esac
  5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5810   (eval "$ac_link") 2>conftest.er1
  5811   ac_status=$?
  5812   grep -v '^ *+' conftest.er1 >conftest.err
  5813   rm -f conftest.er1
  5814   cat conftest.err >&5
  5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5816   (exit $ac_status); } && {
  5817 	 test -z "$ac_c_werror_flag" ||
  5818 	 test ! -s conftest.err
  5819        } && test -s conftest$ac_exeext &&
  5820        $as_test_x conftest$ac_exeext; then
  5821   ac_cv_lib_GL_glXQueryVersion=yes
  5822 else
  5823   echo "$as_me: failed program was:" >&5
  5824 sed 's/^/| /' conftest.$ac_ext >&5
  5826 	ac_cv_lib_GL_glXQueryVersion=no
  5827 fi
  5829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5830       conftest$ac_exeext conftest.$ac_ext
  5831 LIBS=$ac_check_lib_save_LIBS
  5832 fi
  5833 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
  5834 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
  5835 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
  5836   cat >>confdefs.h <<_ACEOF
  5837 #define HAVE_LIBGL 1
  5838 _ACEOF
  5840   LIBS="-lGL $LIBS"
  5842 else
  5844     echo "The OpenGL library (libGL.so) could not be found, but is required."
  5845     exit 1
  5846 fi
  5848 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5849   { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5850 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5851 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5852   echo $ECHO_N "(cached) $ECHO_C" >&6
  5853 fi
  5854 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5855 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5856 else
  5857   # Is the header compilable?
  5858 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  5859 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
  5860 cat >conftest.$ac_ext <<_ACEOF
  5861 /* confdefs.h.  */
  5862 _ACEOF
  5863 cat confdefs.h >>conftest.$ac_ext
  5864 cat >>conftest.$ac_ext <<_ACEOF
  5865 /* end confdefs.h.  */
  5866 $ac_includes_default
  5867 #include <GL/gl.h>
  5868 _ACEOF
  5869 rm -f conftest.$ac_objext
  5870 if { (ac_try="$ac_compile"
  5871 case "(($ac_try" in
  5872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5873   *) ac_try_echo=$ac_try;;
  5874 esac
  5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5876   (eval "$ac_compile") 2>conftest.er1
  5877   ac_status=$?
  5878   grep -v '^ *+' conftest.er1 >conftest.err
  5879   rm -f conftest.er1
  5880   cat conftest.err >&5
  5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5882   (exit $ac_status); } && {
  5883 	 test -z "$ac_c_werror_flag" ||
  5884 	 test ! -s conftest.err
  5885        } && test -s conftest.$ac_objext; then
  5886   ac_header_compiler=yes
  5887 else
  5888   echo "$as_me: failed program was:" >&5
  5889 sed 's/^/| /' conftest.$ac_ext >&5
  5891 	ac_header_compiler=no
  5892 fi
  5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5896 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5898 # Is the header present?
  5899 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  5900 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
  5901 cat >conftest.$ac_ext <<_ACEOF
  5902 /* confdefs.h.  */
  5903 _ACEOF
  5904 cat confdefs.h >>conftest.$ac_ext
  5905 cat >>conftest.$ac_ext <<_ACEOF
  5906 /* end confdefs.h.  */
  5907 #include <GL/gl.h>
  5908 _ACEOF
  5909 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5910 case "(($ac_try" in
  5911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5912   *) ac_try_echo=$ac_try;;
  5913 esac
  5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5916   ac_status=$?
  5917   grep -v '^ *+' conftest.er1 >conftest.err
  5918   rm -f conftest.er1
  5919   cat conftest.err >&5
  5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5921   (exit $ac_status); } >/dev/null && {
  5922 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5923 	 test ! -s conftest.err
  5924        }; then
  5925   ac_header_preproc=yes
  5926 else
  5927   echo "$as_me: failed program was:" >&5
  5928 sed 's/^/| /' conftest.$ac_ext >&5
  5930   ac_header_preproc=no
  5931 fi
  5933 rm -f conftest.err conftest.$ac_ext
  5934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5935 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5937 # So?  What about this header?
  5938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5939   yes:no: )
  5940     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5941 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5942     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  5943 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  5944     ac_header_preproc=yes
  5945     ;;
  5946   no:yes:* )
  5947     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  5948 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  5949     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  5950 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  5951     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  5952 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  5953     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  5954 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5955     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  5956 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  5957     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  5958 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  5960     ;;
  5961 esac
  5962 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5963 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5964 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5965   echo $ECHO_N "(cached) $ECHO_C" >&6
  5966 else
  5967   ac_cv_header_GL_gl_h=$ac_header_preproc
  5968 fi
  5969 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5970 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5972 fi
  5973 if test $ac_cv_header_GL_gl_h = yes; then
  5975 else
  5977     echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
  5978     exit 1
  5979 fi
  5982 fi
  5983 fi
  5985 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
  5986 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
  5987 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
  5988   echo $ECHO_N "(cached) $ECHO_C" >&6
  5989 else
  5990   cat >conftest.$ac_ext <<_ACEOF
  5991 /* confdefs.h.  */
  5992 _ACEOF
  5993 cat confdefs.h >>conftest.$ac_ext
  5994 cat >>conftest.$ac_ext <<_ACEOF
  5995 /* end confdefs.h.  */
  5996 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
  5997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  5998 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
  6000 /* System header to define __stub macros and hopefully few prototypes,
  6001     which can conflict with char glGenFramebuffersEXT (); below.
  6002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6003     <limits.h> exists even on freestanding compilers.  */
  6005 #ifdef __STDC__
  6006 # include <limits.h>
  6007 #else
  6008 # include <assert.h>
  6009 #endif
  6011 #undef glGenFramebuffersEXT
  6013 /* Override any GCC internal prototype to avoid an error.
  6014    Use char because int might match the return type of a GCC
  6015    builtin and then its argument prototype would still apply.  */
  6016 #ifdef __cplusplus
  6017 extern "C"
  6018 #endif
  6019 char glGenFramebuffersEXT ();
  6020 /* The GNU C library defines this for functions which it implements
  6021     to always fail with ENOSYS.  Some functions are actually named
  6022     something starting with __ and the normal name is an alias.  */
  6023 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
  6024 choke me
  6025 #endif
  6027 int
  6028 main ()
  6030 return glGenFramebuffersEXT ();
  6032   return 0;
  6034 _ACEOF
  6035 rm -f conftest.$ac_objext conftest$ac_exeext
  6036 if { (ac_try="$ac_link"
  6037 case "(($ac_try" in
  6038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6039   *) ac_try_echo=$ac_try;;
  6040 esac
  6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6042   (eval "$ac_link") 2>conftest.er1
  6043   ac_status=$?
  6044   grep -v '^ *+' conftest.er1 >conftest.err
  6045   rm -f conftest.er1
  6046   cat conftest.err >&5
  6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6048   (exit $ac_status); } && {
  6049 	 test -z "$ac_c_werror_flag" ||
  6050 	 test ! -s conftest.err
  6051        } && test -s conftest$ac_exeext &&
  6052        $as_test_x conftest$ac_exeext; then
  6053   ac_cv_func_glGenFramebuffersEXT=yes
  6054 else
  6055   echo "$as_me: failed program was:" >&5
  6056 sed 's/^/| /' conftest.$ac_ext >&5
  6058 	ac_cv_func_glGenFramebuffersEXT=no
  6059 fi
  6061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6062       conftest$ac_exeext conftest.$ac_ext
  6063 fi
  6064 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
  6065 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
  6066 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
  6068 cat >>confdefs.h <<\_ACEOF
  6069 #define HAVE_OPENGL_FBO 1
  6070 _ACEOF
  6072 fi
  6074 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
  6075 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
  6076 if test "${ac_cv_func_glCreateShader+set}" = set; then
  6077   echo $ECHO_N "(cached) $ECHO_C" >&6
  6078 else
  6079   cat >conftest.$ac_ext <<_ACEOF
  6080 /* confdefs.h.  */
  6081 _ACEOF
  6082 cat confdefs.h >>conftest.$ac_ext
  6083 cat >>conftest.$ac_ext <<_ACEOF
  6084 /* end confdefs.h.  */
  6085 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
  6086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  6087 #define glCreateShader innocuous_glCreateShader
  6089 /* System header to define __stub macros and hopefully few prototypes,
  6090     which can conflict with char glCreateShader (); below.
  6091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6092     <limits.h> exists even on freestanding compilers.  */
  6094 #ifdef __STDC__
  6095 # include <limits.h>
  6096 #else
  6097 # include <assert.h>
  6098 #endif
  6100 #undef glCreateShader
  6102 /* Override any GCC internal prototype to avoid an error.
  6103    Use char because int might match the return type of a GCC
  6104    builtin and then its argument prototype would still apply.  */
  6105 #ifdef __cplusplus
  6106 extern "C"
  6107 #endif
  6108 char glCreateShader ();
  6109 /* The GNU C library defines this for functions which it implements
  6110     to always fail with ENOSYS.  Some functions are actually named
  6111     something starting with __ and the normal name is an alias.  */
  6112 #if defined __stub_glCreateShader || defined __stub___glCreateShader
  6113 choke me
  6114 #endif
  6116 int
  6117 main ()
  6119 return glCreateShader ();
  6121   return 0;
  6123 _ACEOF
  6124 rm -f conftest.$ac_objext conftest$ac_exeext
  6125 if { (ac_try="$ac_link"
  6126 case "(($ac_try" in
  6127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6128   *) ac_try_echo=$ac_try;;
  6129 esac
  6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6131   (eval "$ac_link") 2>conftest.er1
  6132   ac_status=$?
  6133   grep -v '^ *+' conftest.er1 >conftest.err
  6134   rm -f conftest.er1
  6135   cat conftest.err >&5
  6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6137   (exit $ac_status); } && {
  6138 	 test -z "$ac_c_werror_flag" ||
  6139 	 test ! -s conftest.err
  6140        } && test -s conftest$ac_exeext &&
  6141        $as_test_x conftest$ac_exeext; then
  6142   ac_cv_func_glCreateShader=yes
  6143 else
  6144   echo "$as_me: failed program was:" >&5
  6145 sed 's/^/| /' conftest.$ac_ext >&5
  6147 	ac_cv_func_glCreateShader=no
  6148 fi
  6150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6151       conftest$ac_exeext conftest.$ac_ext
  6152 fi
  6153 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
  6154 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
  6155 if test $ac_cv_func_glCreateShader = yes; then
  6157 cat >>confdefs.h <<\_ACEOF
  6158 #define HAVE_OPENGL_SHADER 1
  6159 _ACEOF
  6161 fi
  6163 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
  6164 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
  6165 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
  6166   echo $ECHO_N "(cached) $ECHO_C" >&6
  6167 else
  6168   cat >conftest.$ac_ext <<_ACEOF
  6169 /* confdefs.h.  */
  6170 _ACEOF
  6171 cat confdefs.h >>conftest.$ac_ext
  6172 cat >>conftest.$ac_ext <<_ACEOF
  6173 /* end confdefs.h.  */
  6174 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
  6175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  6176 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
  6178 /* System header to define __stub macros and hopefully few prototypes,
  6179     which can conflict with char glCreateShaderObjectARB (); below.
  6180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6181     <limits.h> exists even on freestanding compilers.  */
  6183 #ifdef __STDC__
  6184 # include <limits.h>
  6185 #else
  6186 # include <assert.h>
  6187 #endif
  6189 #undef glCreateShaderObjectARB
  6191 /* Override any GCC internal prototype to avoid an error.
  6192    Use char because int might match the return type of a GCC
  6193    builtin and then its argument prototype would still apply.  */
  6194 #ifdef __cplusplus
  6195 extern "C"
  6196 #endif
  6197 char glCreateShaderObjectARB ();
  6198 /* The GNU C library defines this for functions which it implements
  6199     to always fail with ENOSYS.  Some functions are actually named
  6200     something starting with __ and the normal name is an alias.  */
  6201 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
  6202 choke me
  6203 #endif
  6205 int
  6206 main ()
  6208 return glCreateShaderObjectARB ();
  6210   return 0;
  6212 _ACEOF
  6213 rm -f conftest.$ac_objext conftest$ac_exeext
  6214 if { (ac_try="$ac_link"
  6215 case "(($ac_try" in
  6216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6217   *) ac_try_echo=$ac_try;;
  6218 esac
  6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6220   (eval "$ac_link") 2>conftest.er1
  6221   ac_status=$?
  6222   grep -v '^ *+' conftest.er1 >conftest.err
  6223   rm -f conftest.er1
  6224   cat conftest.err >&5
  6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6226   (exit $ac_status); } && {
  6227 	 test -z "$ac_c_werror_flag" ||
  6228 	 test ! -s conftest.err
  6229        } && test -s conftest$ac_exeext &&
  6230        $as_test_x conftest$ac_exeext; then
  6231   ac_cv_func_glCreateShaderObjectARB=yes
  6232 else
  6233   echo "$as_me: failed program was:" >&5
  6234 sed 's/^/| /' conftest.$ac_ext >&5
  6236 	ac_cv_func_glCreateShaderObjectARB=no
  6237 fi
  6239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6240       conftest$ac_exeext conftest.$ac_ext
  6241 fi
  6242 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
  6243 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
  6244 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
  6246 cat >>confdefs.h <<\_ACEOF
  6247 #define HAVE_OPENGL_SHADER_ARB 1
  6248 _ACEOF
  6250 fi
  6254 pkg_failed=no
  6255 { echo "$as_me:$LINENO: checking for GTK" >&5
  6256 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
  6258 if test -n "$PKG_CONFIG"; then
  6259     if test -n "$GTK_CFLAGS"; then
  6260         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  6261     else
  6262         if test -n "$PKG_CONFIG" && \
  6263     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  6264   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  6265   ac_status=$?
  6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6267   (exit $ac_status); }; then
  6268   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  6269 else
  6270   pkg_failed=yes
  6271 fi
  6272     fi
  6273 else
  6274 	pkg_failed=untried
  6275 fi
  6276 if test -n "$PKG_CONFIG"; then
  6277     if test -n "$GTK_LIBS"; then
  6278         pkg_cv_GTK_LIBS="$GTK_LIBS"
  6279     else
  6280         if test -n "$PKG_CONFIG" && \
  6281     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  6282   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  6283   ac_status=$?
  6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6285   (exit $ac_status); }; then
  6286   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  6287 else
  6288   pkg_failed=yes
  6289 fi
  6290     fi
  6291 else
  6292 	pkg_failed=untried
  6293 fi
  6297 if test $pkg_failed = yes; then
  6299 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6300         _pkg_short_errors_supported=yes
  6301 else
  6302         _pkg_short_errors_supported=no
  6303 fi
  6304         if test $_pkg_short_errors_supported = yes; then
  6305 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
  6306         else
  6307 	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
  6308         fi
  6309 	# Put the nasty error message in config.log where it belongs
  6310 	echo "$GTK_PKG_ERRORS" >&5
  6312 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  6314 $GTK_PKG_ERRORS
  6316 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6317 installed software in a non-standard prefix.
  6319 Alternatively, you may set the environment variables GTK_CFLAGS
  6320 and GTK_LIBS to avoid the need to call pkg-config.
  6321 See the pkg-config man page for more details.
  6322 " >&5
  6323 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  6325 $GTK_PKG_ERRORS
  6327 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6328 installed software in a non-standard prefix.
  6330 Alternatively, you may set the environment variables GTK_CFLAGS
  6331 and GTK_LIBS to avoid the need to call pkg-config.
  6332 See the pkg-config man page for more details.
  6333 " >&2;}
  6334    { (exit 1); exit 1; }; }
  6335 elif test $pkg_failed = untried; then
  6336 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  6337 is in your PATH or set the PKG_CONFIG environment variable to the full
  6338 path to pkg-config.
  6340 Alternatively, you may set the environment variables GTK_CFLAGS
  6341 and GTK_LIBS to avoid the need to call pkg-config.
  6342 See the pkg-config man page for more details.
  6344 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  6345 See \`config.log' for more details." >&5
  6346 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  6347 is in your PATH or set the PKG_CONFIG environment variable to the full
  6348 path to pkg-config.
  6350 Alternatively, you may set the environment variables GTK_CFLAGS
  6351 and GTK_LIBS to avoid the need to call pkg-config.
  6352 See the pkg-config man page for more details.
  6354 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  6355 See \`config.log' for more details." >&2;}
  6356    { (exit 1); exit 1; }; }
  6357 else
  6358 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  6359 	GTK_LIBS=$pkg_cv_GTK_LIBS
  6360         { echo "$as_me:$LINENO: result: yes" >&5
  6361 echo "${ECHO_T}yes" >&6; }
  6363     HAVE_GTK='yes'
  6365 cat >>confdefs.h <<\_ACEOF
  6366 #define HAVE_GTK 1
  6367 _ACEOF
  6370 fi
  6374 if test "$HAVE_CARBON" = 'yes'; then
  6375   GUI_CARBON_TRUE=
  6376   GUI_CARBON_FALSE='#'
  6377 else
  6378   GUI_CARBON_TRUE='#'
  6379   GUI_CARBON_FALSE=
  6380 fi
  6384 if test "$HAVE_GTK" = 'yes'; then
  6385   GUI_GTK_TRUE=
  6386   GUI_GTK_FALSE='#'
  6387 else
  6388   GUI_GTK_TRUE='#'
  6389   GUI_GTK_FALSE=
  6390 fi
  6393 case $host_cpu in
  6394     i386|i486|i586|i686)
  6395 	SH4_TRANSLATOR="x86"
  6397 cat >>confdefs.h <<_ACEOF
  6398 #define SH4_TRANSLATOR TARGET_X86
  6399 _ACEOF
  6400 ;;
  6401     x86_64)
  6402 	SH4_TRANSLATOR="x86_64"
  6404 cat >>confdefs.h <<_ACEOF
  6405 #define SH4_TRANSLATOR TARGET_X86_64
  6406 _ACEOF
  6407 ;;
  6408     *)
  6409 	echo "Warning: No translator available for $host. Building emulation core only";;
  6410 esac
  6413 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
  6414   BUILD_SH4X86_TRUE=
  6415   BUILD_SH4X86_FALSE='#'
  6416 else
  6417   BUILD_SH4X86_TRUE='#'
  6418   BUILD_SH4X86_FALSE=
  6419 fi
  6423 if test "$SH4_TRANSLATOR" = "x86_64"; then
  6424   BUILD_X86_64_TRUE=
  6425   BUILD_X86_64_FALSE='#'
  6426 else
  6427   BUILD_X86_64_TRUE='#'
  6428   BUILD_X86_64_FALSE=
  6429 fi
  6433 pkg_failed=no
  6434 { echo "$as_me:$LINENO: checking for PULSE" >&5
  6435 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
  6437 if test -n "$PKG_CONFIG"; then
  6438     if test -n "$PULSE_CFLAGS"; then
  6439         pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
  6440     else
  6441         if test -n "$PKG_CONFIG" && \
  6442     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  6443   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  6444   ac_status=$?
  6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6446   (exit $ac_status); }; then
  6447   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
  6448 else
  6449   pkg_failed=yes
  6450 fi
  6451     fi
  6452 else
  6453 	pkg_failed=untried
  6454 fi
  6455 if test -n "$PKG_CONFIG"; then
  6456     if test -n "$PULSE_LIBS"; then
  6457         pkg_cv_PULSE_LIBS="$PULSE_LIBS"
  6458     else
  6459         if test -n "$PKG_CONFIG" && \
  6460     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  6461   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  6462   ac_status=$?
  6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6464   (exit $ac_status); }; then
  6465   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
  6466 else
  6467   pkg_failed=yes
  6468 fi
  6469     fi
  6470 else
  6471 	pkg_failed=untried
  6472 fi
  6476 if test $pkg_failed = yes; then
  6478 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6479         _pkg_short_errors_supported=yes
  6480 else
  6481         _pkg_short_errors_supported=no
  6482 fi
  6483         if test $_pkg_short_errors_supported = yes; then
  6484 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
  6485         else
  6486 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
  6487         fi
  6488 	# Put the nasty error message in config.log where it belongs
  6489 	echo "$PULSE_PKG_ERRORS" >&5
  6491 	{ echo "$as_me:$LINENO: result: no" >&5
  6492 echo "${ECHO_T}no" >&6; }
  6493                 true
  6494 elif test $pkg_failed = untried; then
  6495 	true
  6496 else
  6497 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
  6498 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
  6499         { echo "$as_me:$LINENO: result: yes" >&5
  6500 echo "${ECHO_T}yes" >&6; }
  6502      HAVE_PULSE='yes'
  6504 cat >>confdefs.h <<\_ACEOF
  6505 #define HAVE_PULSE 1
  6506 _ACEOF
  6508 fi
  6511 if test "$HAVE_PULSE" = 'yes' ; then
  6512   AUDIO_PULSE_TRUE=
  6513   AUDIO_PULSE_FALSE='#'
  6514 else
  6515   AUDIO_PULSE_TRUE='#'
  6516   AUDIO_PULSE_FALSE=
  6517 fi
  6521 pkg_failed=no
  6522 { echo "$as_me:$LINENO: checking for ESOUND" >&5
  6523 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
  6525 if test -n "$PKG_CONFIG"; then
  6526     if test -n "$ESOUND_CFLAGS"; then
  6527         pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
  6528     else
  6529         if test -n "$PKG_CONFIG" && \
  6530     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  6531   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  6532   ac_status=$?
  6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6534   (exit $ac_status); }; then
  6535   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  6536 else
  6537   pkg_failed=yes
  6538 fi
  6539     fi
  6540 else
  6541 	pkg_failed=untried
  6542 fi
  6543 if test -n "$PKG_CONFIG"; then
  6544     if test -n "$ESOUND_LIBS"; then
  6545         pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
  6546     else
  6547         if test -n "$PKG_CONFIG" && \
  6548     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  6549   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  6550   ac_status=$?
  6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6552   (exit $ac_status); }; then
  6553   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  6554 else
  6555   pkg_failed=yes
  6556 fi
  6557     fi
  6558 else
  6559 	pkg_failed=untried
  6560 fi
  6564 if test $pkg_failed = yes; then
  6566 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6567         _pkg_short_errors_supported=yes
  6568 else
  6569         _pkg_short_errors_supported=no
  6570 fi
  6571         if test $_pkg_short_errors_supported = yes; then
  6572 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
  6573         else
  6574 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
  6575         fi
  6576 	# Put the nasty error message in config.log where it belongs
  6577 	echo "$ESOUND_PKG_ERRORS" >&5
  6579 	{ echo "$as_me:$LINENO: result: no" >&5
  6580 echo "${ECHO_T}no" >&6; }
  6581                 true
  6582 elif test $pkg_failed = untried; then
  6583 	true
  6584 else
  6585 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
  6586 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
  6587         { echo "$as_me:$LINENO: result: yes" >&5
  6588 echo "${ECHO_T}yes" >&6; }
  6590      HAVE_ESOUND='yes'
  6592 cat >>confdefs.h <<\_ACEOF
  6593 #define HAVE_ESOUND 1
  6594 _ACEOF
  6596 fi
  6599 if test "$HAVE_ESOUND" = 'yes' ; then
  6600   AUDIO_ESOUND_TRUE=
  6601   AUDIO_ESOUND_FALSE='#'
  6602 else
  6603   AUDIO_ESOUND_TRUE='#'
  6604   AUDIO_ESOUND_FALSE=
  6605 fi
  6609 pkg_failed=no
  6610 { echo "$as_me:$LINENO: checking for ALSA" >&5
  6611 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
  6613 if test -n "$PKG_CONFIG"; then
  6614     if test -n "$ALSA_CFLAGS"; then
  6615         pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
  6616     else
  6617         if test -n "$PKG_CONFIG" && \
  6618     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  6619   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  6620   ac_status=$?
  6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6622   (exit $ac_status); }; then
  6623   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
  6624 else
  6625   pkg_failed=yes
  6626 fi
  6627     fi
  6628 else
  6629 	pkg_failed=untried
  6630 fi
  6631 if test -n "$PKG_CONFIG"; then
  6632     if test -n "$ALSA_LIBS"; then
  6633         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
  6634     else
  6635         if test -n "$PKG_CONFIG" && \
  6636     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  6637   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  6638   ac_status=$?
  6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6640   (exit $ac_status); }; then
  6641   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
  6642 else
  6643   pkg_failed=yes
  6644 fi
  6645     fi
  6646 else
  6647 	pkg_failed=untried
  6648 fi
  6652 if test $pkg_failed = yes; then
  6654 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6655         _pkg_short_errors_supported=yes
  6656 else
  6657         _pkg_short_errors_supported=no
  6658 fi
  6659         if test $_pkg_short_errors_supported = yes; then
  6660 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
  6661         else
  6662 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
  6663         fi
  6664 	# Put the nasty error message in config.log where it belongs
  6665 	echo "$ALSA_PKG_ERRORS" >&5
  6667 	{ echo "$as_me:$LINENO: result: no" >&5
  6668 echo "${ECHO_T}no" >&6; }
  6669                 true
  6670 elif test $pkg_failed = untried; then
  6671 	true
  6672 else
  6673 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
  6674 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
  6675         { echo "$as_me:$LINENO: result: yes" >&5
  6676 echo "${ECHO_T}yes" >&6; }
  6678      HAVE_ALSA='yes'
  6680 cat >>confdefs.h <<\_ACEOF
  6681 #define HAVE_ALSA 1
  6682 _ACEOF
  6684 fi
  6687 if test "$HAVE_ALSA" = 'yes' ; then
  6688   AUDIO_ALSA_TRUE=
  6689   AUDIO_ALSA_FALSE='#'
  6690 else
  6691   AUDIO_ALSA_TRUE='#'
  6692   AUDIO_ALSA_FALSE=
  6693 fi
  6696 if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
  6697    echo "Warning: Building without audio support"
  6698 fi
  6700 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6701   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  6702 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  6703 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6704   echo $ECHO_N "(cached) $ECHO_C" >&6
  6705 fi
  6706 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  6707 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  6708 else
  6709   # Is the header compilable?
  6710 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  6711 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
  6712 cat >conftest.$ac_ext <<_ACEOF
  6713 /* confdefs.h.  */
  6714 _ACEOF
  6715 cat confdefs.h >>conftest.$ac_ext
  6716 cat >>conftest.$ac_ext <<_ACEOF
  6717 /* end confdefs.h.  */
  6718 $ac_includes_default
  6719 #include <linux/cdrom.h>
  6720 _ACEOF
  6721 rm -f conftest.$ac_objext
  6722 if { (ac_try="$ac_compile"
  6723 case "(($ac_try" in
  6724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6725   *) ac_try_echo=$ac_try;;
  6726 esac
  6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6728   (eval "$ac_compile") 2>conftest.er1
  6729   ac_status=$?
  6730   grep -v '^ *+' conftest.er1 >conftest.err
  6731   rm -f conftest.er1
  6732   cat conftest.err >&5
  6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6734   (exit $ac_status); } && {
  6735 	 test -z "$ac_c_werror_flag" ||
  6736 	 test ! -s conftest.err
  6737        } && test -s conftest.$ac_objext; then
  6738   ac_header_compiler=yes
  6739 else
  6740   echo "$as_me: failed program was:" >&5
  6741 sed 's/^/| /' conftest.$ac_ext >&5
  6743 	ac_header_compiler=no
  6744 fi
  6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6748 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6750 # Is the header present?
  6751 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  6752 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
  6753 cat >conftest.$ac_ext <<_ACEOF
  6754 /* confdefs.h.  */
  6755 _ACEOF
  6756 cat confdefs.h >>conftest.$ac_ext
  6757 cat >>conftest.$ac_ext <<_ACEOF
  6758 /* end confdefs.h.  */
  6759 #include <linux/cdrom.h>
  6760 _ACEOF
  6761 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6762 case "(($ac_try" in
  6763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6764   *) ac_try_echo=$ac_try;;
  6765 esac
  6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5