Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 653:3202ff01d48e
prev643:653b0a70f173
next656:031d23fa6d0b
author nkeynes
date Fri Mar 28 12:32:25 2008 +0000 (11 years ago)
permissions -rwxr-xr-x
last change Merge lxdream-render branch (643:670) to trunk
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 ESOUND_CFLAGS
   719 ESOUND_LIBS
   720 AUDIO_ESOUND_TRUE
   721 AUDIO_ESOUND_FALSE
   722 ALSA_CFLAGS
   723 ALSA_LIBS
   724 AUDIO_ALSA_TRUE
   725 AUDIO_ALSA_FALSE
   726 CDROM_LINUX_TRUE
   727 CDROM_LINUX_FALSE
   728 JOY_LINUX_TRUE
   729 JOY_LINUX_FALSE
   730 SHCC
   731 SHLD
   732 SHOBJCOPY
   733 ARMCC
   734 ARMLD
   735 ARMOBJCOPY
   736 BUILD_SYSTEST_TRUE
   737 BUILD_SYSTEST_FALSE
   738 BUILD_ARMTEST_TRUE
   739 BUILD_ARMTEST_FALSE
   740 GETTEXT_PACKAGE
   741 USE_NLS
   742 MSGFMT
   743 MSGFMT_OPTS
   744 GMSGFMT
   745 XGETTEXT
   746 CATALOGS
   747 CATOBJEXT
   748 DATADIRNAME
   749 GMOFILES
   750 INSTOBJEXT
   751 INTLLIBS
   752 PO_IN_DATADIR_TRUE
   753 PO_IN_DATADIR_FALSE
   754 POFILES
   755 POSUB
   756 MKINSTALLDIRS
   757 LIBOBJS
   758 LTLIBOBJS'
   759 ac_subst_files=''
   760       ac_precious_vars='build_alias
   761 host_alias
   762 target_alias
   763 CC
   764 CFLAGS
   765 LDFLAGS
   766 LIBS
   767 CPPFLAGS
   768 CPP
   769 PKG_CONFIG
   770 LIBPNG_CFLAGS
   771 LIBPNG_LIBS
   772 GTK_CFLAGS
   773 GTK_LIBS
   774 ESOUND_CFLAGS
   775 ESOUND_LIBS
   776 ALSA_CFLAGS
   777 ALSA_LIBS'
   780 # Initialize some variables set by options.
   781 ac_init_help=
   782 ac_init_version=false
   783 # The variables have the same names as the options, with
   784 # dashes changed to underlines.
   785 cache_file=/dev/null
   786 exec_prefix=NONE
   787 no_create=
   788 no_recursion=
   789 prefix=NONE
   790 program_prefix=NONE
   791 program_suffix=NONE
   792 program_transform_name=s,x,x,
   793 silent=
   794 site=
   795 srcdir=
   796 verbose=
   797 x_includes=NONE
   798 x_libraries=NONE
   800 # Installation directory options.
   801 # These are left unexpanded so users can "make install exec_prefix=/foo"
   802 # and all the variables that are supposed to be based on exec_prefix
   803 # by default will actually change.
   804 # Use braces instead of parens because sh, perl, etc. also accept them.
   805 # (The list follows the same order as the GNU Coding Standards.)
   806 bindir='${exec_prefix}/bin'
   807 sbindir='${exec_prefix}/sbin'
   808 libexecdir='${exec_prefix}/libexec'
   809 datarootdir='${prefix}/share'
   810 datadir='${datarootdir}'
   811 sysconfdir='${prefix}/etc'
   812 sharedstatedir='${prefix}/com'
   813 localstatedir='${prefix}/var'
   814 includedir='${prefix}/include'
   815 oldincludedir='/usr/include'
   816 docdir='${datarootdir}/doc/${PACKAGE}'
   817 infodir='${datarootdir}/info'
   818 htmldir='${docdir}'
   819 dvidir='${docdir}'
   820 pdfdir='${docdir}'
   821 psdir='${docdir}'
   822 libdir='${exec_prefix}/lib'
   823 localedir='${datarootdir}/locale'
   824 mandir='${datarootdir}/man'
   826 ac_prev=
   827 ac_dashdash=
   828 for ac_option
   829 do
   830   # If the previous option needs an argument, assign it.
   831   if test -n "$ac_prev"; then
   832     eval $ac_prev=\$ac_option
   833     ac_prev=
   834     continue
   835   fi
   837   case $ac_option in
   838   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   839   *)	ac_optarg=yes ;;
   840   esac
   842   # Accept the important Cygnus configure options, so we can diagnose typos.
   844   case $ac_dashdash$ac_option in
   845   --)
   846     ac_dashdash=yes ;;
   848   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   849     ac_prev=bindir ;;
   850   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   851     bindir=$ac_optarg ;;
   853   -build | --build | --buil | --bui | --bu)
   854     ac_prev=build_alias ;;
   855   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   856     build_alias=$ac_optarg ;;
   858   -cache-file | --cache-file | --cache-fil | --cache-fi \
   859   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   860     ac_prev=cache_file ;;
   861   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   862   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   863     cache_file=$ac_optarg ;;
   865   --config-cache | -C)
   866     cache_file=config.cache ;;
   868   -datadir | --datadir | --datadi | --datad)
   869     ac_prev=datadir ;;
   870   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   871     datadir=$ac_optarg ;;
   873   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   874   | --dataroo | --dataro | --datar)
   875     ac_prev=datarootdir ;;
   876   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   877   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   878     datarootdir=$ac_optarg ;;
   880   -disable-* | --disable-*)
   881     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   882     # Reject names that are not valid shell variable names.
   883     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   884       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   885    { (exit 1); exit 1; }; }
   886     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   887     eval enable_$ac_feature=no ;;
   889   -docdir | --docdir | --docdi | --doc | --do)
   890     ac_prev=docdir ;;
   891   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   892     docdir=$ac_optarg ;;
   894   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   895     ac_prev=dvidir ;;
   896   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   897     dvidir=$ac_optarg ;;
   899   -enable-* | --enable-*)
   900     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   901     # Reject names that are not valid shell variable names.
   902     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   903       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   904    { (exit 1); exit 1; }; }
   905     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   906     eval enable_$ac_feature=\$ac_optarg ;;
   908   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   909   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   910   | --exec | --exe | --ex)
   911     ac_prev=exec_prefix ;;
   912   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   913   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   914   | --exec=* | --exe=* | --ex=*)
   915     exec_prefix=$ac_optarg ;;
   917   -gas | --gas | --ga | --g)
   918     # Obsolete; use --with-gas.
   919     with_gas=yes ;;
   921   -help | --help | --hel | --he | -h)
   922     ac_init_help=long ;;
   923   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   924     ac_init_help=recursive ;;
   925   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   926     ac_init_help=short ;;
   928   -host | --host | --hos | --ho)
   929     ac_prev=host_alias ;;
   930   -host=* | --host=* | --hos=* | --ho=*)
   931     host_alias=$ac_optarg ;;
   933   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   934     ac_prev=htmldir ;;
   935   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   936   | --ht=*)
   937     htmldir=$ac_optarg ;;
   939   -includedir | --includedir | --includedi | --included | --include \
   940   | --includ | --inclu | --incl | --inc)
   941     ac_prev=includedir ;;
   942   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   943   | --includ=* | --inclu=* | --incl=* | --inc=*)
   944     includedir=$ac_optarg ;;
   946   -infodir | --infodir | --infodi | --infod | --info | --inf)
   947     ac_prev=infodir ;;
   948   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   949     infodir=$ac_optarg ;;
   951   -libdir | --libdir | --libdi | --libd)
   952     ac_prev=libdir ;;
   953   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   954     libdir=$ac_optarg ;;
   956   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   957   | --libexe | --libex | --libe)
   958     ac_prev=libexecdir ;;
   959   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   960   | --libexe=* | --libex=* | --libe=*)
   961     libexecdir=$ac_optarg ;;
   963   -localedir | --localedir | --localedi | --localed | --locale)
   964     ac_prev=localedir ;;
   965   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   966     localedir=$ac_optarg ;;
   968   -localstatedir | --localstatedir | --localstatedi | --localstated \
   969   | --localstate | --localstat | --localsta | --localst | --locals)
   970     ac_prev=localstatedir ;;
   971   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   972   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   973     localstatedir=$ac_optarg ;;
   975   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   976     ac_prev=mandir ;;
   977   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   978     mandir=$ac_optarg ;;
   980   -nfp | --nfp | --nf)
   981     # Obsolete; use --without-fp.
   982     with_fp=no ;;
   984   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   985   | --no-cr | --no-c | -n)
   986     no_create=yes ;;
   988   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   989   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   990     no_recursion=yes ;;
   992   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   993   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   994   | --oldin | --oldi | --old | --ol | --o)
   995     ac_prev=oldincludedir ;;
   996   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   997   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   998   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   999     oldincludedir=$ac_optarg ;;
  1001   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1002     ac_prev=prefix ;;
  1003   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1004     prefix=$ac_optarg ;;
  1006   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1007   | --program-pre | --program-pr | --program-p)
  1008     ac_prev=program_prefix ;;
  1009   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1010   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1011     program_prefix=$ac_optarg ;;
  1013   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1014   | --program-suf | --program-su | --program-s)
  1015     ac_prev=program_suffix ;;
  1016   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1017   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1018     program_suffix=$ac_optarg ;;
  1020   -program-transform-name | --program-transform-name \
  1021   | --program-transform-nam | --program-transform-na \
  1022   | --program-transform-n | --program-transform- \
  1023   | --program-transform | --program-transfor \
  1024   | --program-transfo | --program-transf \
  1025   | --program-trans | --program-tran \
  1026   | --progr-tra | --program-tr | --program-t)
  1027     ac_prev=program_transform_name ;;
  1028   -program-transform-name=* | --program-transform-name=* \
  1029   | --program-transform-nam=* | --program-transform-na=* \
  1030   | --program-transform-n=* | --program-transform-=* \
  1031   | --program-transform=* | --program-transfor=* \
  1032   | --program-transfo=* | --program-transf=* \
  1033   | --program-trans=* | --program-tran=* \
  1034   | --progr-tra=* | --program-tr=* | --program-t=*)
  1035     program_transform_name=$ac_optarg ;;
  1037   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1038     ac_prev=pdfdir ;;
  1039   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1040     pdfdir=$ac_optarg ;;
  1042   -psdir | --psdir | --psdi | --psd | --ps)
  1043     ac_prev=psdir ;;
  1044   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1045     psdir=$ac_optarg ;;
  1047   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1048   | -silent | --silent | --silen | --sile | --sil)
  1049     silent=yes ;;
  1051   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1052     ac_prev=sbindir ;;
  1053   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1054   | --sbi=* | --sb=*)
  1055     sbindir=$ac_optarg ;;
  1057   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1058   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1059   | --sharedst | --shareds | --shared | --share | --shar \
  1060   | --sha | --sh)
  1061     ac_prev=sharedstatedir ;;
  1062   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1063   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1064   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1065   | --sha=* | --sh=*)
  1066     sharedstatedir=$ac_optarg ;;
  1068   -site | --site | --sit)
  1069     ac_prev=site ;;
  1070   -site=* | --site=* | --sit=*)
  1071     site=$ac_optarg ;;
  1073   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1074     ac_prev=srcdir ;;
  1075   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1076     srcdir=$ac_optarg ;;
  1078   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1079   | --syscon | --sysco | --sysc | --sys | --sy)
  1080     ac_prev=sysconfdir ;;
  1081   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1082   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1083     sysconfdir=$ac_optarg ;;
  1085   -target | --target | --targe | --targ | --tar | --ta | --t)
  1086     ac_prev=target_alias ;;
  1087   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1088     target_alias=$ac_optarg ;;
  1090   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1091     verbose=yes ;;
  1093   -version | --version | --versio | --versi | --vers | -V)
  1094     ac_init_version=: ;;
  1096   -with-* | --with-*)
  1097     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1098     # Reject names that are not valid shell variable names.
  1099     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1100       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1101    { (exit 1); exit 1; }; }
  1102     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1103     eval with_$ac_package=\$ac_optarg ;;
  1105   -without-* | --without-*)
  1106     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1107     # Reject names that are not valid shell variable names.
  1108     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1109       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1110    { (exit 1); exit 1; }; }
  1111     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1112     eval with_$ac_package=no ;;
  1114   --x)
  1115     # Obsolete; use --with-x.
  1116     with_x=yes ;;
  1118   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1119   | --x-incl | --x-inc | --x-in | --x-i)
  1120     ac_prev=x_includes ;;
  1121   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1122   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1123     x_includes=$ac_optarg ;;
  1125   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1126   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1127     ac_prev=x_libraries ;;
  1128   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1129   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1130     x_libraries=$ac_optarg ;;
  1132   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1133 Try \`$0 --help' for more information." >&2
  1134    { (exit 1); exit 1; }; }
  1135     ;;
  1137   *=*)
  1138     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1139     # Reject names that are not valid shell variable names.
  1140     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1141       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1142    { (exit 1); exit 1; }; }
  1143     eval $ac_envvar=\$ac_optarg
  1144     export $ac_envvar ;;
  1146   *)
  1147     # FIXME: should be removed in autoconf 3.0.
  1148     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1149     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1150       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1151     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1152     ;;
  1154   esac
  1155 done
  1157 if test -n "$ac_prev"; then
  1158   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1159   { echo "$as_me: error: missing argument to $ac_option" >&2
  1160    { (exit 1); exit 1; }; }
  1161 fi
  1163 # Be sure to have absolute directory names.
  1164 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1165 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1166 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1167 		libdir localedir mandir
  1168 do
  1169   eval ac_val=\$$ac_var
  1170   case $ac_val in
  1171     [\\/$]* | ?:[\\/]* )  continue;;
  1172     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1173   esac
  1174   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1175    { (exit 1); exit 1; }; }
  1176 done
  1178 # There might be people who depend on the old broken behavior: `$host'
  1179 # used to hold the argument of --host etc.
  1180 # FIXME: To remove some day.
  1181 build=$build_alias
  1182 host=$host_alias
  1183 target=$target_alias
  1185 # FIXME: To remove some day.
  1186 if test "x$host_alias" != x; then
  1187   if test "x$build_alias" = x; then
  1188     cross_compiling=maybe
  1189     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1190     If a cross compiler is detected then cross compile mode will be used." >&2
  1191   elif test "x$build_alias" != "x$host_alias"; then
  1192     cross_compiling=yes
  1193   fi
  1194 fi
  1196 ac_tool_prefix=
  1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1199 test "$silent" = yes && exec 6>/dev/null
  1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1203 ac_ls_di=`ls -di .` &&
  1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1205   { echo "$as_me: error: Working directory cannot be determined" >&2
  1206    { (exit 1); exit 1; }; }
  1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1208   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1209    { (exit 1); exit 1; }; }
  1212 # Find the source files, if location was not specified.
  1213 if test -z "$srcdir"; then
  1214   ac_srcdir_defaulted=yes
  1215   # Try the directory containing this script, then the parent directory.
  1216   ac_confdir=`$as_dirname -- "$0" ||
  1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1218 	 X"$0" : 'X\(//\)[^/]' \| \
  1219 	 X"$0" : 'X\(//\)$' \| \
  1220 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1221 echo X"$0" |
  1222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1223 	    s//\1/
  1226 	  /^X\(\/\/\)[^/].*/{
  1227 	    s//\1/
  1230 	  /^X\(\/\/\)$/{
  1231 	    s//\1/
  1234 	  /^X\(\/\).*/{
  1235 	    s//\1/
  1238 	  s/.*/./; q'`
  1239   srcdir=$ac_confdir
  1240   if test ! -r "$srcdir/$ac_unique_file"; then
  1241     srcdir=..
  1242   fi
  1243 else
  1244   ac_srcdir_defaulted=no
  1245 fi
  1246 if test ! -r "$srcdir/$ac_unique_file"; then
  1247   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1248   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1249    { (exit 1); exit 1; }; }
  1250 fi
  1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1252 ac_abs_confdir=`(
  1253 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1254    { (exit 1); exit 1; }; }
  1255 	pwd)`
  1256 # When building in place, set srcdir=.
  1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1258   srcdir=.
  1259 fi
  1260 # Remove unnecessary trailing slashes from srcdir.
  1261 # Double slashes in file names in object file debugging info
  1262 # mess up M-x gdb in Emacs.
  1263 case $srcdir in
  1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1265 esac
  1266 for ac_var in $ac_precious_vars; do
  1267   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1268   eval ac_env_${ac_var}_value=\$${ac_var}
  1269   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1270   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1271 done
  1274 # Report the --help message.
  1276 if test "$ac_init_help" = "long"; then
  1277   # Omit some internal or obsolete options to make the list less imposing.
  1278   # This message is too long to be a string in the A/UX 3.1 sh.
  1279   cat <<_ACEOF
  1280 \`configure' configures this package to adapt to many kinds of systems.
  1282 Usage: $0 [OPTION]... [VAR=VALUE]...
  1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1285 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1287 Defaults for the options are specified in brackets.
  1289 Configuration:
  1290   -h, --help              display this help and exit
  1291       --help=short        display options specific to this package
  1292       --help=recursive    display the short help of all the included packages
  1293   -V, --version           display version information and exit
  1294   -q, --quiet, --silent   do not print \`checking...' messages
  1295       --cache-file=FILE   cache test results in FILE [disabled]
  1296   -C, --config-cache      alias for \`--cache-file=config.cache'
  1297   -n, --no-create         do not create output files
  1298       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1300 Installation directories:
  1301   --prefix=PREFIX         install architecture-independent files in PREFIX
  1302 			  [$ac_default_prefix]
  1303   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1304 			  [PREFIX]
  1306 By default, \`make install' will install all the files in
  1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1309 for instance \`--prefix=\$HOME'.
  1311 For better control, use the options below.
  1313 Fine tuning of the installation directories:
  1314   --bindir=DIR           user executables [EPREFIX/bin]
  1315   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1316   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1317   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1318   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1319   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1320   --libdir=DIR           object code libraries [EPREFIX/lib]
  1321   --includedir=DIR       C header files [PREFIX/include]
  1322   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1323   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1324   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1325   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1326   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1327   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1328   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1329   --htmldir=DIR          html documentation [DOCDIR]
  1330   --dvidir=DIR           dvi documentation [DOCDIR]
  1331   --pdfdir=DIR           pdf documentation [DOCDIR]
  1332   --psdir=DIR            ps documentation [DOCDIR]
  1333 _ACEOF
  1335   cat <<\_ACEOF
  1337 Program names:
  1338   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1339   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1340   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1342 System types:
  1343   --build=BUILD     configure for building on BUILD [guessed]
  1344   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1345 _ACEOF
  1346 fi
  1348 if test -n "$ac_init_help"; then
  1350   cat <<\_ACEOF
  1352 Optional Features:
  1353   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1354   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1355   --enable-maintainer-mode enable make rules and dependencies not useful
  1356                           (and sometimes confusing) to the casual installer
  1357   --disable-dependency-tracking Speeds up one-time builds
  1358   --enable-dependency-tracking  Do not reject slow dependency extractors
  1359   --enable-trace          Enable generation of IO traces (warning: hurts
  1360                           performance)
  1361   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1362                           performance)
  1364 Optional Packages:
  1365   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1366   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1367   --with-osmesa           Build with the osmesa GL library (software
  1368                           rendering)
  1370 Some influential environment variables:
  1371   CC          C compiler command
  1372   CFLAGS      C compiler flags
  1373   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1374               nonstandard directory <lib dir>
  1375   LIBS        libraries to pass to the linker, e.g. -l<library>
  1376   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1377               you have headers in a nonstandard directory <include dir>
  1378   CPP         C preprocessor
  1379   PKG_CONFIG  path to pkg-config utility
  1380   LIBPNG_CFLAGS
  1381               C compiler flags for LIBPNG, overriding pkg-config
  1382   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1383   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1384   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1385   ESOUND_CFLAGS
  1386               C compiler flags for ESOUND, overriding pkg-config
  1387   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1388   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1389   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1391 Use these variables to override the choices made by `configure' or to help
  1392 it to find libraries and programs with nonstandard names/locations.
  1394 _ACEOF
  1395 ac_status=$?
  1396 fi
  1398 if test "$ac_init_help" = "recursive"; then
  1399   # If there are subdirs, report their specific --help.
  1400   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1401     test -d "$ac_dir" || continue
  1402     ac_builddir=.
  1404 case "$ac_dir" in
  1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1406 *)
  1407   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1408   # A ".." for each directory in $ac_dir_suffix.
  1409   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1410   case $ac_top_builddir_sub in
  1411   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1412   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1413   esac ;;
  1414 esac
  1415 ac_abs_top_builddir=$ac_pwd
  1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1417 # for backward compatibility:
  1418 ac_top_builddir=$ac_top_build_prefix
  1420 case $srcdir in
  1421   .)  # We are building in place.
  1422     ac_srcdir=.
  1423     ac_top_srcdir=$ac_top_builddir_sub
  1424     ac_abs_top_srcdir=$ac_pwd ;;
  1425   [\\/]* | ?:[\\/]* )  # Absolute name.
  1426     ac_srcdir=$srcdir$ac_dir_suffix;
  1427     ac_top_srcdir=$srcdir
  1428     ac_abs_top_srcdir=$srcdir ;;
  1429   *) # Relative name.
  1430     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1431     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1432     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1433 esac
  1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1436     cd "$ac_dir" || { ac_status=$?; continue; }
  1437     # Check for guested configure.
  1438     if test -f "$ac_srcdir/configure.gnu"; then
  1439       echo &&
  1440       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1441     elif test -f "$ac_srcdir/configure"; then
  1442       echo &&
  1443       $SHELL "$ac_srcdir/configure" --help=recursive
  1444     else
  1445       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1446     fi || ac_status=$?
  1447     cd "$ac_pwd" || { ac_status=$?; break; }
  1448   done
  1449 fi
  1451 test -n "$ac_init_help" && exit $ac_status
  1452 if $ac_init_version; then
  1453   cat <<\_ACEOF
  1454 configure
  1455 generated by GNU Autoconf 2.61
  1457 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1458 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1459 This configure script is free software; the Free Software Foundation
  1460 gives unlimited permission to copy, distribute and modify it.
  1461 _ACEOF
  1462   exit
  1463 fi
  1464 cat >config.log <<_ACEOF
  1465 This file contains any messages produced by compilers while
  1466 running configure, to aid debugging if configure makes a mistake.
  1468 It was created by $as_me, which was
  1469 generated by GNU Autoconf 2.61.  Invocation command line was
  1471   $ $0 $@
  1473 _ACEOF
  1474 exec 5>>config.log
  1476 cat <<_ASUNAME
  1477 ## --------- ##
  1478 ## Platform. ##
  1479 ## --------- ##
  1481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1488 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1490 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1491 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1493 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1494 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1495 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1496 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1498 _ASUNAME
  1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1501 for as_dir in $PATH
  1502 do
  1503   IFS=$as_save_IFS
  1504   test -z "$as_dir" && as_dir=.
  1505   echo "PATH: $as_dir"
  1506 done
  1507 IFS=$as_save_IFS
  1509 } >&5
  1511 cat >&5 <<_ACEOF
  1514 ## ----------- ##
  1515 ## Core tests. ##
  1516 ## ----------- ##
  1518 _ACEOF
  1521 # Keep a trace of the command line.
  1522 # Strip out --no-create and --no-recursion so they do not pile up.
  1523 # Strip out --silent because we don't want to record it for future runs.
  1524 # Also quote any args containing shell meta-characters.
  1525 # Make two passes to allow for proper duplicate-argument suppression.
  1526 ac_configure_args=
  1527 ac_configure_args0=
  1528 ac_configure_args1=
  1529 ac_must_keep_next=false
  1530 for ac_pass in 1 2
  1531 do
  1532   for ac_arg
  1533   do
  1534     case $ac_arg in
  1535     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1536     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1537     | -silent | --silent | --silen | --sile | --sil)
  1538       continue ;;
  1539     *\'*)
  1540       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1541     esac
  1542     case $ac_pass in
  1543     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1544     2)
  1545       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1546       if test $ac_must_keep_next = true; then
  1547 	ac_must_keep_next=false # Got value, back to normal.
  1548       else
  1549 	case $ac_arg in
  1550 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1551 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1552 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1553 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1554 	    case "$ac_configure_args0 " in
  1555 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1556 	    esac
  1557 	    ;;
  1558 	  -* ) ac_must_keep_next=true ;;
  1559 	esac
  1560       fi
  1561       ac_configure_args="$ac_configure_args '$ac_arg'"
  1562       ;;
  1563     esac
  1564   done
  1565 done
  1566 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1567 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1569 # When interrupted or exit'd, cleanup temporary files, and complete
  1570 # config.log.  We remove comments because anyway the quotes in there
  1571 # would cause problems or look ugly.
  1572 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1574 trap 'exit_status=$?
  1575   # Save into config.log some information that might help in debugging.
  1577     echo
  1579     cat <<\_ASBOX
  1580 ## ---------------- ##
  1581 ## Cache variables. ##
  1582 ## ---------------- ##
  1583 _ASBOX
  1584     echo
  1585     # The following way of writing the cache mishandles newlines in values,
  1587   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1588     eval ac_val=\$$ac_var
  1589     case $ac_val in #(
  1590     *${as_nl}*)
  1591       case $ac_var in #(
  1592       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1594       esac
  1595       case $ac_var in #(
  1596       _ | IFS | as_nl) ;; #(
  1597       *) $as_unset $ac_var ;;
  1598       esac ;;
  1599     esac
  1600   done
  1601   (set) 2>&1 |
  1602     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1603     *${as_nl}ac_space=\ *)
  1604       sed -n \
  1605 	"s/'\''/'\''\\\\'\'''\''/g;
  1606 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1607       ;; #(
  1608     *)
  1609       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1610       ;;
  1611     esac |
  1612     sort
  1614     echo
  1616     cat <<\_ASBOX
  1617 ## ----------------- ##
  1618 ## Output variables. ##
  1619 ## ----------------- ##
  1620 _ASBOX
  1621     echo
  1622     for ac_var in $ac_subst_vars
  1623     do
  1624       eval ac_val=\$$ac_var
  1625       case $ac_val in
  1626       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1627       esac
  1628       echo "$ac_var='\''$ac_val'\''"
  1629     done | sort
  1630     echo
  1632     if test -n "$ac_subst_files"; then
  1633       cat <<\_ASBOX
  1634 ## ------------------- ##
  1635 ## File substitutions. ##
  1636 ## ------------------- ##
  1637 _ASBOX
  1638       echo
  1639       for ac_var in $ac_subst_files
  1640       do
  1641 	eval ac_val=\$$ac_var
  1642 	case $ac_val in
  1643 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1644 	esac
  1645 	echo "$ac_var='\''$ac_val'\''"
  1646       done | sort
  1647       echo
  1648     fi
  1650     if test -s confdefs.h; then
  1651       cat <<\_ASBOX
  1652 ## ----------- ##
  1653 ## confdefs.h. ##
  1654 ## ----------- ##
  1655 _ASBOX
  1656       echo
  1657       cat confdefs.h
  1658       echo
  1659     fi
  1660     test "$ac_signal" != 0 &&
  1661       echo "$as_me: caught signal $ac_signal"
  1662     echo "$as_me: exit $exit_status"
  1663   } >&5
  1664   rm -f core *.core core.conftest.* &&
  1665     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1666     exit $exit_status
  1667 ' 0
  1668 for ac_signal in 1 2 13 15; do
  1669   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1670 done
  1671 ac_signal=0
  1673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1674 rm -f -r conftest* confdefs.h
  1676 # Predefined preprocessor variables.
  1678 cat >>confdefs.h <<_ACEOF
  1679 #define PACKAGE_NAME "$PACKAGE_NAME"
  1680 _ACEOF
  1683 cat >>confdefs.h <<_ACEOF
  1684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1685 _ACEOF
  1688 cat >>confdefs.h <<_ACEOF
  1689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1690 _ACEOF
  1693 cat >>confdefs.h <<_ACEOF
  1694 #define PACKAGE_STRING "$PACKAGE_STRING"
  1695 _ACEOF
  1698 cat >>confdefs.h <<_ACEOF
  1699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1700 _ACEOF
  1703 # Let the site file select an alternate cache file if it wants to.
  1704 # Prefer explicitly selected file to automatically selected ones.
  1705 if test -n "$CONFIG_SITE"; then
  1706   set x "$CONFIG_SITE"
  1707 elif test "x$prefix" != xNONE; then
  1708   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1709 else
  1710   set x "$ac_default_prefix/share/config.site" \
  1711 	"$ac_default_prefix/etc/config.site"
  1712 fi
  1713 shift
  1714 for ac_site_file
  1715 do
  1716   if test -r "$ac_site_file"; then
  1717     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1718 echo "$as_me: loading site script $ac_site_file" >&6;}
  1719     sed 's/^/| /' "$ac_site_file" >&5
  1720     . "$ac_site_file"
  1721   fi
  1722 done
  1724 if test -r "$cache_file"; then
  1725   # Some versions of bash will fail to source /dev/null (special
  1726   # files actually), so we avoid doing that.
  1727   if test -f "$cache_file"; then
  1728     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1729 echo "$as_me: loading cache $cache_file" >&6;}
  1730     case $cache_file in
  1731       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1732       *)                      . "./$cache_file";;
  1733     esac
  1734   fi
  1735 else
  1736   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1737 echo "$as_me: creating cache $cache_file" >&6;}
  1738   >$cache_file
  1739 fi
  1741 # Check that the precious variables saved in the cache have kept the same
  1742 # value.
  1743 ac_cache_corrupted=false
  1744 for ac_var in $ac_precious_vars; do
  1745   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1746   eval ac_new_set=\$ac_env_${ac_var}_set
  1747   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1748   eval ac_new_val=\$ac_env_${ac_var}_value
  1749   case $ac_old_set,$ac_new_set in
  1750     set,)
  1751       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1752 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1753       ac_cache_corrupted=: ;;
  1754     ,set)
  1755       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1756 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1757       ac_cache_corrupted=: ;;
  1758     ,);;
  1759     *)
  1760       if test "x$ac_old_val" != "x$ac_new_val"; then
  1761 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1762 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1763 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1764 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1765 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1766 echo "$as_me:   current value: $ac_new_val" >&2;}
  1767 	ac_cache_corrupted=:
  1768       fi;;
  1769   esac
  1770   # Pass precious variables to config.status.
  1771   if test "$ac_new_set" = set; then
  1772     case $ac_new_val in
  1773     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1774     *) ac_arg=$ac_var=$ac_new_val ;;
  1775     esac
  1776     case " $ac_configure_args " in
  1777       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1778       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1779     esac
  1780   fi
  1781 done
  1782 if $ac_cache_corrupted; then
  1783   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1784 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1785   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1786 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1787    { (exit 1); exit 1; }; }
  1788 fi
  1806 ac_ext=c
  1807 ac_cpp='$CPP $CPPFLAGS'
  1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1813 am__api_version="1.7"
  1814 ac_aux_dir=
  1815 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1816   if test -f "$ac_dir/install-sh"; then
  1817     ac_aux_dir=$ac_dir
  1818     ac_install_sh="$ac_aux_dir/install-sh -c"
  1819     break
  1820   elif test -f "$ac_dir/install.sh"; then
  1821     ac_aux_dir=$ac_dir
  1822     ac_install_sh="$ac_aux_dir/install.sh -c"
  1823     break
  1824   elif test -f "$ac_dir/shtool"; then
  1825     ac_aux_dir=$ac_dir
  1826     ac_install_sh="$ac_aux_dir/shtool install -c"
  1827     break
  1828   fi
  1829 done
  1830 if test -z "$ac_aux_dir"; then
  1831   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1832 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1833    { (exit 1); exit 1; }; }
  1834 fi
  1836 # These three variables are undocumented and unsupported,
  1837 # and are intended to be withdrawn in a future Autoconf release.
  1838 # They can cause serious problems if a builder's source tree is in a directory
  1839 # whose full name contains unusual characters.
  1840 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1841 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1842 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1845 # Find a good install program.  We prefer a C program (faster),
  1846 # so one script is as good as another.  But avoid the broken or
  1847 # incompatible versions:
  1848 # SysV /etc/install, /usr/sbin/install
  1849 # SunOS /usr/etc/install
  1850 # IRIX /sbin/install
  1851 # AIX /bin/install
  1852 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1856 # OS/2's system install, which has a completely different semantic
  1857 # ./install, which can be erroneously created by make from ./install.sh.
  1858 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1859 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1860 if test -z "$INSTALL"; then
  1861 if test "${ac_cv_path_install+set}" = set; then
  1862   echo $ECHO_N "(cached) $ECHO_C" >&6
  1863 else
  1864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1865 for as_dir in $PATH
  1866 do
  1867   IFS=$as_save_IFS
  1868   test -z "$as_dir" && as_dir=.
  1869   # Account for people who put trailing slashes in PATH elements.
  1870 case $as_dir/ in
  1871   ./ | .// | /cC/* | \
  1872   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1873   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1874   /usr/ucb/* ) ;;
  1875   *)
  1876     # OSF1 and SCO ODT 3.0 have their own names for install.
  1877     # Don't use installbsd from OSF since it installs stuff as root
  1878     # by default.
  1879     for ac_prog in ginstall scoinst install; do
  1880       for ac_exec_ext in '' $ac_executable_extensions; do
  1881 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1882 	  if test $ac_prog = install &&
  1883 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1884 	    # AIX install.  It has an incompatible calling convention.
  1886 	  elif test $ac_prog = install &&
  1887 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1888 	    # program-specific install script used by HP pwplus--don't use.
  1890 	  else
  1891 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1892 	    break 3
  1893 	  fi
  1894 	fi
  1895       done
  1896     done
  1897     ;;
  1898 esac
  1899 done
  1900 IFS=$as_save_IFS
  1903 fi
  1904   if test "${ac_cv_path_install+set}" = set; then
  1905     INSTALL=$ac_cv_path_install
  1906   else
  1907     # As a last resort, use the slow shell script.  Don't cache a
  1908     # value for INSTALL within a source directory, because that will
  1909     # break other packages using the cache if that directory is
  1910     # removed, or if the value is a relative name.
  1911     INSTALL=$ac_install_sh
  1912   fi
  1913 fi
  1914 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1915 echo "${ECHO_T}$INSTALL" >&6; }
  1917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1918 # It thinks the first close brace ends the variable substitution.
  1919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1925 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1926 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1927 # Just in case
  1928 sleep 1
  1929 echo timestamp > conftest.file
  1930 # Do `set' in a subshell so we don't clobber the current shell's
  1931 # arguments.  Must try -L first in case configure is actually a
  1932 # symlink; some systems play weird games with the mod time of symlinks
  1933 # (eg FreeBSD returns the mod time of the symlink's containing
  1934 # directory).
  1935 if (
  1936    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1937    if test "$*" = "X"; then
  1938       # -L didn't work.
  1939       set X `ls -t $srcdir/configure conftest.file`
  1940    fi
  1941    rm -f conftest.file
  1942    if test "$*" != "X $srcdir/configure conftest.file" \
  1943       && test "$*" != "X conftest.file $srcdir/configure"; then
  1945       # If neither matched, then we have a broken ls.  This can happen
  1946       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1947       # broken ls alias from the environment.  This has actually
  1948       # happened.  Such a system could not be considered "sane".
  1949       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1950 alias in your environment" >&5
  1951 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1952 alias in your environment" >&2;}
  1953    { (exit 1); exit 1; }; }
  1954    fi
  1956    test "$2" = conftest.file
  1958 then
  1959    # Ok.
  1961 else
  1962    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1963 Check your system clock" >&5
  1964 echo "$as_me: error: newly created file is older than distributed files!
  1965 Check your system clock" >&2;}
  1966    { (exit 1); exit 1; }; }
  1967 fi
  1968 { echo "$as_me:$LINENO: result: yes" >&5
  1969 echo "${ECHO_T}yes" >&6; }
  1970 test "$program_prefix" != NONE &&
  1971   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1972 # Use a double $ so make ignores it.
  1973 test "$program_suffix" != NONE &&
  1974   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1975 # Double any \ or $.  echo might interpret backslashes.
  1976 # By default was `s,x,x', remove it if useless.
  1977 cat <<\_ACEOF >conftest.sed
  1978 s/[\\$]/&&/g;s/;s,x,x,$//
  1979 _ACEOF
  1980 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1981 rm -f conftest.sed
  1984 # expand $ac_aux_dir to an absolute path
  1985 am_aux_dir=`cd $ac_aux_dir && pwd`
  1987 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1988 # Use eval to expand $SHELL
  1989 if eval "$MISSING --run true"; then
  1990   am_missing_run="$MISSING --run "
  1991 else
  1992   am_missing_run=
  1993   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1994 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1995 fi
  1997 for ac_prog in gawk mawk nawk awk
  1998 do
  1999   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2000 set dummy $ac_prog; ac_word=$2
  2001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2003 if test "${ac_cv_prog_AWK+set}" = set; then
  2004   echo $ECHO_N "(cached) $ECHO_C" >&6
  2005 else
  2006   if test -n "$AWK"; then
  2007   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2008 else
  2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2010 for as_dir in $PATH
  2011 do
  2012   IFS=$as_save_IFS
  2013   test -z "$as_dir" && as_dir=.
  2014   for ac_exec_ext in '' $ac_executable_extensions; do
  2015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2016     ac_cv_prog_AWK="$ac_prog"
  2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2018     break 2
  2019   fi
  2020 done
  2021 done
  2022 IFS=$as_save_IFS
  2024 fi
  2025 fi
  2026 AWK=$ac_cv_prog_AWK
  2027 if test -n "$AWK"; then
  2028   { echo "$as_me:$LINENO: result: $AWK" >&5
  2029 echo "${ECHO_T}$AWK" >&6; }
  2030 else
  2031   { echo "$as_me:$LINENO: result: no" >&5
  2032 echo "${ECHO_T}no" >&6; }
  2033 fi
  2036   test -n "$AWK" && break
  2037 done
  2039 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2040 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2041 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2042 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2043   echo $ECHO_N "(cached) $ECHO_C" >&6
  2044 else
  2045   cat >conftest.make <<\_ACEOF
  2046 SHELL = /bin/sh
  2047 all:
  2048 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2049 _ACEOF
  2050 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2051 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2052   *@@@%%%=?*=@@@%%%*)
  2053     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2054   *)
  2055     eval ac_cv_prog_make_${ac_make}_set=no;;
  2056 esac
  2057 rm -f conftest.make
  2058 fi
  2059 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2060   { echo "$as_me:$LINENO: result: yes" >&5
  2061 echo "${ECHO_T}yes" >&6; }
  2062   SET_MAKE=
  2063 else
  2064   { echo "$as_me:$LINENO: result: no" >&5
  2065 echo "${ECHO_T}no" >&6; }
  2066   SET_MAKE="MAKE=${MAKE-make}"
  2067 fi
  2069 rm -rf .tst 2>/dev/null
  2070 mkdir .tst 2>/dev/null
  2071 if test -d .tst; then
  2072   am__leading_dot=.
  2073 else
  2074   am__leading_dot=_
  2075 fi
  2076 rmdir .tst 2>/dev/null
  2078  # test to see if srcdir already configured
  2079 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2080    test -f $srcdir/config.status; then
  2081   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2082 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2083    { (exit 1); exit 1; }; }
  2084 fi
  2086 # test whether we have cygpath
  2087 if test -z "$CYGPATH_W"; then
  2088   if (cygpath --version) >/dev/null 2>/dev/null; then
  2089     CYGPATH_W='cygpath -w'
  2090   else
  2091     CYGPATH_W=echo
  2092   fi
  2093 fi
  2096 # Define the identity of the package.
  2097  PACKAGE=lxdream
  2098  VERSION=0.8.1
  2101 cat >>confdefs.h <<_ACEOF
  2102 #define PACKAGE "$PACKAGE"
  2103 _ACEOF
  2106 cat >>confdefs.h <<_ACEOF
  2107 #define VERSION "$VERSION"
  2108 _ACEOF
  2110 # Some tools Automake needs.
  2112 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2115 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2118 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2121 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2124 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2127 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2129 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2131 # Installed binaries are usually stripped using `strip' when the user
  2132 # run `make install-strip'.  However `strip' might not be the right
  2133 # tool to use in cross-compilation environments, therefore Automake
  2134 # will honor the `STRIP' environment variable to overrule this program.
  2135 if test "$cross_compiling" != no; then
  2136   if test -n "$ac_tool_prefix"; then
  2137   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2138 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2141 if test "${ac_cv_prog_STRIP+set}" = set; then
  2142   echo $ECHO_N "(cached) $ECHO_C" >&6
  2143 else
  2144   if test -n "$STRIP"; then
  2145   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2146 else
  2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2148 for as_dir in $PATH
  2149 do
  2150   IFS=$as_save_IFS
  2151   test -z "$as_dir" && as_dir=.
  2152   for ac_exec_ext in '' $ac_executable_extensions; do
  2153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2154     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2156     break 2
  2157   fi
  2158 done
  2159 done
  2160 IFS=$as_save_IFS
  2162 fi
  2163 fi
  2164 STRIP=$ac_cv_prog_STRIP
  2165 if test -n "$STRIP"; then
  2166   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2167 echo "${ECHO_T}$STRIP" >&6; }
  2168 else
  2169   { echo "$as_me:$LINENO: result: no" >&5
  2170 echo "${ECHO_T}no" >&6; }
  2171 fi
  2174 fi
  2175 if test -z "$ac_cv_prog_STRIP"; then
  2176   ac_ct_STRIP=$STRIP
  2177   # Extract the first word of "strip", so it can be a program name with args.
  2178 set dummy strip; ac_word=$2
  2179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2181 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2182   echo $ECHO_N "(cached) $ECHO_C" >&6
  2183 else
  2184   if test -n "$ac_ct_STRIP"; then
  2185   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2186 else
  2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2188 for as_dir in $PATH
  2189 do
  2190   IFS=$as_save_IFS
  2191   test -z "$as_dir" && as_dir=.
  2192   for ac_exec_ext in '' $ac_executable_extensions; do
  2193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2194     ac_cv_prog_ac_ct_STRIP="strip"
  2195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2196     break 2
  2197   fi
  2198 done
  2199 done
  2200 IFS=$as_save_IFS
  2202 fi
  2203 fi
  2204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2205 if test -n "$ac_ct_STRIP"; then
  2206   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2207 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2208 else
  2209   { echo "$as_me:$LINENO: result: no" >&5
  2210 echo "${ECHO_T}no" >&6; }
  2211 fi
  2213   if test "x$ac_ct_STRIP" = x; then
  2214     STRIP=":"
  2215   else
  2216     case $cross_compiling:$ac_tool_warned in
  2217 yes:)
  2218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2219 whose name does not start with the host triplet.  If you think this
  2220 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2222 whose name does not start with the host triplet.  If you think this
  2223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2224 ac_tool_warned=yes ;;
  2225 esac
  2226     STRIP=$ac_ct_STRIP
  2227   fi
  2228 else
  2229   STRIP="$ac_cv_prog_STRIP"
  2230 fi
  2232 fi
  2233 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2235 # We need awk for the "check" target.  The system "awk" is bad on
  2236 # some platforms.
  2240 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2241 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2242     # Check whether --enable-maintainer-mode was given.
  2243 if test "${enable_maintainer_mode+set}" = set; then
  2244   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2245 else
  2246   USE_MAINTAINER_MODE=no
  2247 fi
  2249   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2250 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2253 if test $USE_MAINTAINER_MODE = yes; then
  2254   MAINTAINER_MODE_TRUE=
  2255   MAINTAINER_MODE_FALSE='#'
  2256 else
  2257   MAINTAINER_MODE_TRUE='#'
  2258   MAINTAINER_MODE_FALSE=
  2259 fi
  2261   MAINT=$MAINTAINER_MODE_TRUE
  2264 ac_config_headers="$ac_config_headers config.h"
  2267 DEPDIR="${am__leading_dot}deps"
  2269 ac_config_commands="$ac_config_commands depfiles"
  2272 am_make=${MAKE-make}
  2273 cat > confinc << 'END'
  2274 am__doit:
  2275 	@echo done
  2276 .PHONY: am__doit
  2277 END
  2278 # If we don't find an include directive, just comment out the code.
  2279 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2280 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2281 am__include="#"
  2282 am__quote=
  2283 _am_result=none
  2284 # First try GNU make style include.
  2285 echo "include confinc" > confmf
  2286 # We grep out `Entering directory' and `Leaving directory'
  2287 # messages which can occur if `w' ends up in MAKEFLAGS.
  2288 # In particular we don't look at `^make:' because GNU make might
  2289 # be invoked under some other name (usually "gmake"), in which
  2290 # case it prints its new name instead of `make'.
  2291 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2292    am__include=include
  2293    am__quote=
  2294    _am_result=GNU
  2295 fi
  2296 # Now try BSD make style include.
  2297 if test "$am__include" = "#"; then
  2298    echo '.include "confinc"' > confmf
  2299    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2300       am__include=.include
  2301       am__quote="\""
  2302       _am_result=BSD
  2303    fi
  2304 fi
  2307 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2308 echo "${ECHO_T}$_am_result" >&6; }
  2309 rm -f confinc confmf
  2311 # Check whether --enable-dependency-tracking was given.
  2312 if test "${enable_dependency_tracking+set}" = set; then
  2313   enableval=$enable_dependency_tracking;
  2314 fi
  2316 if test "x$enable_dependency_tracking" != xno; then
  2317   am_depcomp="$ac_aux_dir/depcomp"
  2318   AMDEPBACKSLASH='\'
  2319 fi
  2322 if test "x$enable_dependency_tracking" != xno; then
  2323   AMDEP_TRUE=
  2324   AMDEP_FALSE='#'
  2325 else
  2326   AMDEP_TRUE='#'
  2327   AMDEP_FALSE=
  2328 fi
  2332 ac_ext=c
  2333 ac_cpp='$CPP $CPPFLAGS'
  2334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2337 if test -n "$ac_tool_prefix"; then
  2338   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2339 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2342 if test "${ac_cv_prog_CC+set}" = set; then
  2343   echo $ECHO_N "(cached) $ECHO_C" >&6
  2344 else
  2345   if test -n "$CC"; then
  2346   ac_cv_prog_CC="$CC" # Let the user override the test.
  2347 else
  2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2349 for as_dir in $PATH
  2350 do
  2351   IFS=$as_save_IFS
  2352   test -z "$as_dir" && as_dir=.
  2353   for ac_exec_ext in '' $ac_executable_extensions; do
  2354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2355     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2357     break 2
  2358   fi
  2359 done
  2360 done
  2361 IFS=$as_save_IFS
  2363 fi
  2364 fi
  2365 CC=$ac_cv_prog_CC
  2366 if test -n "$CC"; then
  2367   { echo "$as_me:$LINENO: result: $CC" >&5
  2368 echo "${ECHO_T}$CC" >&6; }
  2369 else
  2370   { echo "$as_me:$LINENO: result: no" >&5
  2371 echo "${ECHO_T}no" >&6; }
  2372 fi
  2375 fi
  2376 if test -z "$ac_cv_prog_CC"; then
  2377   ac_ct_CC=$CC
  2378   # Extract the first word of "gcc", so it can be a program name with args.
  2379 set dummy gcc; ac_word=$2
  2380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2383   echo $ECHO_N "(cached) $ECHO_C" >&6
  2384 else
  2385   if test -n "$ac_ct_CC"; then
  2386   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2387 else
  2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2389 for as_dir in $PATH
  2390 do
  2391   IFS=$as_save_IFS
  2392   test -z "$as_dir" && as_dir=.
  2393   for ac_exec_ext in '' $ac_executable_extensions; do
  2394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2395     ac_cv_prog_ac_ct_CC="gcc"
  2396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2397     break 2
  2398   fi
  2399 done
  2400 done
  2401 IFS=$as_save_IFS
  2403 fi
  2404 fi
  2405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2406 if test -n "$ac_ct_CC"; then
  2407   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2408 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2409 else
  2410   { echo "$as_me:$LINENO: result: no" >&5
  2411 echo "${ECHO_T}no" >&6; }
  2412 fi
  2414   if test "x$ac_ct_CC" = x; then
  2415     CC=""
  2416   else
  2417     case $cross_compiling:$ac_tool_warned in
  2418 yes:)
  2419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2420 whose name does not start with the host triplet.  If you think this
  2421 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2423 whose name does not start with the host triplet.  If you think this
  2424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2425 ac_tool_warned=yes ;;
  2426 esac
  2427     CC=$ac_ct_CC
  2428   fi
  2429 else
  2430   CC="$ac_cv_prog_CC"
  2431 fi
  2433 if test -z "$CC"; then
  2434           if test -n "$ac_tool_prefix"; then
  2435     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2436 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2439 if test "${ac_cv_prog_CC+set}" = set; then
  2440   echo $ECHO_N "(cached) $ECHO_C" >&6
  2441 else
  2442   if test -n "$CC"; then
  2443   ac_cv_prog_CC="$CC" # Let the user override the test.
  2444 else
  2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2446 for as_dir in $PATH
  2447 do
  2448   IFS=$as_save_IFS
  2449   test -z "$as_dir" && as_dir=.
  2450   for ac_exec_ext in '' $ac_executable_extensions; do
  2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2452     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2454     break 2
  2455   fi
  2456 done
  2457 done
  2458 IFS=$as_save_IFS
  2460 fi
  2461 fi
  2462 CC=$ac_cv_prog_CC
  2463 if test -n "$CC"; then
  2464   { echo "$as_me:$LINENO: result: $CC" >&5
  2465 echo "${ECHO_T}$CC" >&6; }
  2466 else
  2467   { echo "$as_me:$LINENO: result: no" >&5
  2468 echo "${ECHO_T}no" >&6; }
  2469 fi
  2472   fi
  2473 fi
  2474 if test -z "$CC"; then
  2475   # Extract the first word of "cc", so it can be a program name with args.
  2476 set dummy cc; ac_word=$2
  2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2479 if test "${ac_cv_prog_CC+set}" = set; then
  2480   echo $ECHO_N "(cached) $ECHO_C" >&6
  2481 else
  2482   if test -n "$CC"; then
  2483   ac_cv_prog_CC="$CC" # Let the user override the test.
  2484 else
  2485   ac_prog_rejected=no
  2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2487 for as_dir in $PATH
  2488 do
  2489   IFS=$as_save_IFS
  2490   test -z "$as_dir" && as_dir=.
  2491   for ac_exec_ext in '' $ac_executable_extensions; do
  2492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2493     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2494        ac_prog_rejected=yes
  2495        continue
  2496      fi
  2497     ac_cv_prog_CC="cc"
  2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2499     break 2
  2500   fi
  2501 done
  2502 done
  2503 IFS=$as_save_IFS
  2505 if test $ac_prog_rejected = yes; then
  2506   # We found a bogon in the path, so make sure we never use it.
  2507   set dummy $ac_cv_prog_CC
  2508   shift
  2509   if test $# != 0; then
  2510     # We chose a different compiler from the bogus one.
  2511     # However, it has the same basename, so the bogon will be chosen
  2512     # first if we set CC to just the basename; use the full file name.
  2513     shift
  2514     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2515   fi
  2516 fi
  2517 fi
  2518 fi
  2519 CC=$ac_cv_prog_CC
  2520 if test -n "$CC"; then
  2521   { echo "$as_me:$LINENO: result: $CC" >&5
  2522 echo "${ECHO_T}$CC" >&6; }
  2523 else
  2524   { echo "$as_me:$LINENO: result: no" >&5
  2525 echo "${ECHO_T}no" >&6; }
  2526 fi
  2529 fi
  2530 if test -z "$CC"; then
  2531   if test -n "$ac_tool_prefix"; then
  2532   for ac_prog in cl.exe
  2533   do
  2534     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2538 if test "${ac_cv_prog_CC+set}" = set; then
  2539   echo $ECHO_N "(cached) $ECHO_C" >&6
  2540 else
  2541   if test -n "$CC"; then
  2542   ac_cv_prog_CC="$CC" # Let the user override the test.
  2543 else
  2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2545 for as_dir in $PATH
  2546 do
  2547   IFS=$as_save_IFS
  2548   test -z "$as_dir" && as_dir=.
  2549   for ac_exec_ext in '' $ac_executable_extensions; do
  2550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2551     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2553     break 2
  2554   fi
  2555 done
  2556 done
  2557 IFS=$as_save_IFS
  2559 fi
  2560 fi
  2561 CC=$ac_cv_prog_CC
  2562 if test -n "$CC"; then
  2563   { echo "$as_me:$LINENO: result: $CC" >&5
  2564 echo "${ECHO_T}$CC" >&6; }
  2565 else
  2566   { echo "$as_me:$LINENO: result: no" >&5
  2567 echo "${ECHO_T}no" >&6; }
  2568 fi
  2571     test -n "$CC" && break
  2572   done
  2573 fi
  2574 if test -z "$CC"; then
  2575   ac_ct_CC=$CC
  2576   for ac_prog in cl.exe
  2577 do
  2578   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2579 set dummy $ac_prog; ac_word=$2
  2580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2583   echo $ECHO_N "(cached) $ECHO_C" >&6
  2584 else
  2585   if test -n "$ac_ct_CC"; then
  2586   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2587 else
  2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2589 for as_dir in $PATH
  2590 do
  2591   IFS=$as_save_IFS
  2592   test -z "$as_dir" && as_dir=.
  2593   for ac_exec_ext in '' $ac_executable_extensions; do
  2594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2595     ac_cv_prog_ac_ct_CC="$ac_prog"
  2596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2597     break 2
  2598   fi
  2599 done
  2600 done
  2601 IFS=$as_save_IFS
  2603 fi
  2604 fi
  2605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2606 if test -n "$ac_ct_CC"; then
  2607   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2608 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2609 else
  2610   { echo "$as_me:$LINENO: result: no" >&5
  2611 echo "${ECHO_T}no" >&6; }
  2612 fi
  2615   test -n "$ac_ct_CC" && break
  2616 done
  2618   if test "x$ac_ct_CC" = x; then
  2619     CC=""
  2620   else
  2621     case $cross_compiling:$ac_tool_warned in
  2622 yes:)
  2623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2624 whose name does not start with the host triplet.  If you think this
  2625 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2627 whose name does not start with the host triplet.  If you think this
  2628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2629 ac_tool_warned=yes ;;
  2630 esac
  2631     CC=$ac_ct_CC
  2632   fi
  2633 fi
  2635 fi
  2638 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2639 See \`config.log' for more details." >&5
  2640 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2641 See \`config.log' for more details." >&2;}
  2642    { (exit 1); exit 1; }; }
  2644 # Provide some information about the compiler.
  2645 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2646 ac_compiler=`set X $ac_compile; echo $2`
  2647 { (ac_try="$ac_compiler --version >&5"
  2648 case "(($ac_try" in
  2649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2650   *) ac_try_echo=$ac_try;;
  2651 esac
  2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2653   (eval "$ac_compiler --version >&5") 2>&5
  2654   ac_status=$?
  2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2656   (exit $ac_status); }
  2657 { (ac_try="$ac_compiler -v >&5"
  2658 case "(($ac_try" in
  2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2660   *) ac_try_echo=$ac_try;;
  2661 esac
  2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2663   (eval "$ac_compiler -v >&5") 2>&5
  2664   ac_status=$?
  2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2666   (exit $ac_status); }
  2667 { (ac_try="$ac_compiler -V >&5"
  2668 case "(($ac_try" in
  2669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2670   *) ac_try_echo=$ac_try;;
  2671 esac
  2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2673   (eval "$ac_compiler -V >&5") 2>&5
  2674   ac_status=$?
  2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2676   (exit $ac_status); }
  2678 cat >conftest.$ac_ext <<_ACEOF
  2679 /* confdefs.h.  */
  2680 _ACEOF
  2681 cat confdefs.h >>conftest.$ac_ext
  2682 cat >>conftest.$ac_ext <<_ACEOF
  2683 /* end confdefs.h.  */
  2685 int
  2686 main ()
  2690   return 0;
  2692 _ACEOF
  2693 ac_clean_files_save=$ac_clean_files
  2694 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2695 # Try to create an executable without -o first, disregard a.out.
  2696 # It will help us diagnose broken compilers, and finding out an intuition
  2697 # of exeext.
  2698 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2699 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2700 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2702 # List of possible output files, starting from the most likely.
  2703 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2704 # only as a last resort.  b.out is created by i960 compilers.
  2705 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2707 # The IRIX 6 linker writes into existing files which may not be
  2708 # executable, retaining their permissions.  Remove them first so a
  2709 # subsequent execution test works.
  2710 ac_rmfiles=
  2711 for ac_file in $ac_files
  2712 do
  2713   case $ac_file in
  2714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2715     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2716   esac
  2717 done
  2718 rm -f $ac_rmfiles
  2720 if { (ac_try="$ac_link_default"
  2721 case "(($ac_try" in
  2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2723   *) ac_try_echo=$ac_try;;
  2724 esac
  2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2726   (eval "$ac_link_default") 2>&5
  2727   ac_status=$?
  2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2729   (exit $ac_status); }; then
  2730   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2731 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2732 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2733 # so that the user can short-circuit this test for compilers unknown to
  2734 # Autoconf.
  2735 for ac_file in $ac_files ''
  2736 do
  2737   test -f "$ac_file" || continue
  2738   case $ac_file in
  2739     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2740 	;;
  2741     [ab].out )
  2742 	# We found the default executable, but exeext='' is most
  2743 	# certainly right.
  2744 	break;;
  2745     *.* )
  2746         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2747 	then :; else
  2748 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2749 	fi
  2750 	# We set ac_cv_exeext here because the later test for it is not
  2751 	# safe: cross compilers may not add the suffix if given an `-o'
  2752 	# argument, so we may need to know it at that point already.
  2753 	# Even if this section looks crufty: it has the advantage of
  2754 	# actually working.
  2755 	break;;
  2756     * )
  2757 	break;;
  2758   esac
  2759 done
  2760 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2762 else
  2763   ac_file=''
  2764 fi
  2766 { echo "$as_me:$LINENO: result: $ac_file" >&5
  2767 echo "${ECHO_T}$ac_file" >&6; }
  2768 if test -z "$ac_file"; then
  2769   echo "$as_me: failed program was:" >&5
  2770 sed 's/^/| /' conftest.$ac_ext >&5
  2772 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2773 See \`config.log' for more details." >&5
  2774 echo "$as_me: error: C compiler cannot create executables
  2775 See \`config.log' for more details." >&2;}
  2776    { (exit 77); exit 77; }; }
  2777 fi
  2779 ac_exeext=$ac_cv_exeext
  2781 # Check that the compiler produces executables we can run.  If not, either
  2782 # the compiler is broken, or we cross compile.
  2783 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2784 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2785 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2786 # If not cross compiling, check that we can run a simple program.
  2787 if test "$cross_compiling" != yes; then
  2788   if { ac_try='./$ac_file'
  2789   { (case "(($ac_try" in
  2790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2791   *) ac_try_echo=$ac_try;;
  2792 esac
  2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2794   (eval "$ac_try") 2>&5
  2795   ac_status=$?
  2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2797   (exit $ac_status); }; }; then
  2798     cross_compiling=no
  2799   else
  2800     if test "$cross_compiling" = maybe; then
  2801 	cross_compiling=yes
  2802     else
  2803 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2804 If you meant to cross compile, use \`--host'.
  2805 See \`config.log' for more details." >&5
  2806 echo "$as_me: error: cannot run C compiled programs.
  2807 If you meant to cross compile, use \`--host'.
  2808 See \`config.log' for more details." >&2;}
  2809    { (exit 1); exit 1; }; }
  2810     fi
  2811   fi
  2812 fi
  2813 { echo "$as_me:$LINENO: result: yes" >&5
  2814 echo "${ECHO_T}yes" >&6; }
  2816 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2817 ac_clean_files=$ac_clean_files_save
  2818 # Check that the compiler produces executables we can run.  If not, either
  2819 # the compiler is broken, or we cross compile.
  2820 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2821 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2822 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2823 echo "${ECHO_T}$cross_compiling" >&6; }
  2825 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2826 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2827 if { (ac_try="$ac_link"
  2828 case "(($ac_try" in
  2829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2830   *) ac_try_echo=$ac_try;;
  2831 esac
  2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2833   (eval "$ac_link") 2>&5
  2834   ac_status=$?
  2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2836   (exit $ac_status); }; then
  2837   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2838 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2839 # work properly (i.e., refer to `conftest.exe'), while it won't with
  2840 # `rm'.
  2841 for ac_file in conftest.exe conftest conftest.*; do
  2842   test -f "$ac_file" || continue
  2843   case $ac_file in
  2844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2845     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2846 	  break;;
  2847     * ) break;;
  2848   esac
  2849 done
  2850 else
  2851   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2852 See \`config.log' for more details." >&5
  2853 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2854 See \`config.log' for more details." >&2;}
  2855    { (exit 1); exit 1; }; }
  2856 fi
  2858 rm -f conftest$ac_cv_exeext
  2859 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2860 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2862 rm -f conftest.$ac_ext
  2863 EXEEXT=$ac_cv_exeext
  2864 ac_exeext=$EXEEXT
  2865 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2866 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2867 if test "${ac_cv_objext+set}" = set; then
  2868   echo $ECHO_N "(cached) $ECHO_C" >&6
  2869 else
  2870   cat >conftest.$ac_ext <<_ACEOF
  2871 /* confdefs.h.  */
  2872 _ACEOF
  2873 cat confdefs.h >>conftest.$ac_ext
  2874 cat >>conftest.$ac_ext <<_ACEOF
  2875 /* end confdefs.h.  */
  2877 int
  2878 main ()
  2882   return 0;
  2884 _ACEOF
  2885 rm -f conftest.o conftest.obj
  2886 if { (ac_try="$ac_compile"
  2887 case "(($ac_try" in
  2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2889   *) ac_try_echo=$ac_try;;
  2890 esac
  2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2892   (eval "$ac_compile") 2>&5
  2893   ac_status=$?
  2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2895   (exit $ac_status); }; then
  2896   for ac_file in conftest.o conftest.obj conftest.*; do
  2897   test -f "$ac_file" || continue;
  2898   case $ac_file in
  2899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2900     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2901        break;;
  2902   esac
  2903 done
  2904 else
  2905   echo "$as_me: failed program was:" >&5
  2906 sed 's/^/| /' conftest.$ac_ext >&5
  2908 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2909 See \`config.log' for more details." >&5
  2910 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2911 See \`config.log' for more details." >&2;}
  2912    { (exit 1); exit 1; }; }
  2913 fi
  2915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2916 fi
  2917 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2918 echo "${ECHO_T}$ac_cv_objext" >&6; }
  2919 OBJEXT=$ac_cv_objext
  2920 ac_objext=$OBJEXT
  2921 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2922 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2923 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2924   echo $ECHO_N "(cached) $ECHO_C" >&6
  2925 else
  2926   cat >conftest.$ac_ext <<_ACEOF
  2927 /* confdefs.h.  */
  2928 _ACEOF
  2929 cat confdefs.h >>conftest.$ac_ext
  2930 cat >>conftest.$ac_ext <<_ACEOF
  2931 /* end confdefs.h.  */
  2933 int
  2934 main ()
  2936 #ifndef __GNUC__
  2937        choke me
  2938 #endif
  2941   return 0;
  2943 _ACEOF
  2944 rm -f conftest.$ac_objext
  2945 if { (ac_try="$ac_compile"
  2946 case "(($ac_try" in
  2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2948   *) ac_try_echo=$ac_try;;
  2949 esac
  2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2951   (eval "$ac_compile") 2>conftest.er1
  2952   ac_status=$?
  2953   grep -v '^ *+' conftest.er1 >conftest.err
  2954   rm -f conftest.er1
  2955   cat conftest.err >&5
  2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2957   (exit $ac_status); } && {
  2958 	 test -z "$ac_c_werror_flag" ||
  2959 	 test ! -s conftest.err
  2960        } && test -s conftest.$ac_objext; then
  2961   ac_compiler_gnu=yes
  2962 else
  2963   echo "$as_me: failed program was:" >&5
  2964 sed 's/^/| /' conftest.$ac_ext >&5
  2966 	ac_compiler_gnu=no
  2967 fi
  2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2970 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2972 fi
  2973 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2974 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2975 GCC=`test $ac_compiler_gnu = yes && echo yes`
  2976 ac_test_CFLAGS=${CFLAGS+set}
  2977 ac_save_CFLAGS=$CFLAGS
  2978 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2979 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2980 if test "${ac_cv_prog_cc_g+set}" = set; then
  2981   echo $ECHO_N "(cached) $ECHO_C" >&6
  2982 else
  2983   ac_save_c_werror_flag=$ac_c_werror_flag
  2984    ac_c_werror_flag=yes
  2985    ac_cv_prog_cc_g=no
  2986    CFLAGS="-g"
  2987    cat >conftest.$ac_ext <<_ACEOF
  2988 /* confdefs.h.  */
  2989 _ACEOF
  2990 cat confdefs.h >>conftest.$ac_ext
  2991 cat >>conftest.$ac_ext <<_ACEOF
  2992 /* end confdefs.h.  */
  2994 int
  2995 main ()
  2999   return 0;
  3001 _ACEOF
  3002 rm -f conftest.$ac_objext
  3003 if { (ac_try="$ac_compile"
  3004 case "(($ac_try" in
  3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3006   *) ac_try_echo=$ac_try;;
  3007 esac
  3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3009   (eval "$ac_compile") 2>conftest.er1
  3010   ac_status=$?
  3011   grep -v '^ *+' conftest.er1 >conftest.err
  3012   rm -f conftest.er1
  3013   cat conftest.err >&5
  3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3015   (exit $ac_status); } && {
  3016 	 test -z "$ac_c_werror_flag" ||
  3017 	 test ! -s conftest.err
  3018        } && test -s conftest.$ac_objext; then
  3019   ac_cv_prog_cc_g=yes
  3020 else
  3021   echo "$as_me: failed program was:" >&5
  3022 sed 's/^/| /' conftest.$ac_ext >&5
  3024 	CFLAGS=""
  3025       cat >conftest.$ac_ext <<_ACEOF
  3026 /* confdefs.h.  */
  3027 _ACEOF
  3028 cat confdefs.h >>conftest.$ac_ext
  3029 cat >>conftest.$ac_ext <<_ACEOF
  3030 /* end confdefs.h.  */
  3032 int
  3033 main ()
  3037   return 0;
  3039 _ACEOF
  3040 rm -f conftest.$ac_objext
  3041 if { (ac_try="$ac_compile"
  3042 case "(($ac_try" in
  3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3044   *) ac_try_echo=$ac_try;;
  3045 esac
  3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3047   (eval "$ac_compile") 2>conftest.er1
  3048   ac_status=$?
  3049   grep -v '^ *+' conftest.er1 >conftest.err
  3050   rm -f conftest.er1
  3051   cat conftest.err >&5
  3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3053   (exit $ac_status); } && {
  3054 	 test -z "$ac_c_werror_flag" ||
  3055 	 test ! -s conftest.err
  3056        } && test -s conftest.$ac_objext; then
  3058 else
  3059   echo "$as_me: failed program was:" >&5
  3060 sed 's/^/| /' conftest.$ac_ext >&5
  3062 	ac_c_werror_flag=$ac_save_c_werror_flag
  3063 	 CFLAGS="-g"
  3064 	 cat >conftest.$ac_ext <<_ACEOF
  3065 /* confdefs.h.  */
  3066 _ACEOF
  3067 cat confdefs.h >>conftest.$ac_ext
  3068 cat >>conftest.$ac_ext <<_ACEOF
  3069 /* end confdefs.h.  */
  3071 int
  3072 main ()
  3076   return 0;
  3078 _ACEOF
  3079 rm -f conftest.$ac_objext
  3080 if { (ac_try="$ac_compile"
  3081 case "(($ac_try" in
  3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3083   *) ac_try_echo=$ac_try;;
  3084 esac
  3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3086   (eval "$ac_compile") 2>conftest.er1
  3087   ac_status=$?
  3088   grep -v '^ *+' conftest.er1 >conftest.err
  3089   rm -f conftest.er1
  3090   cat conftest.err >&5
  3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3092   (exit $ac_status); } && {
  3093 	 test -z "$ac_c_werror_flag" ||
  3094 	 test ! -s conftest.err
  3095        } && test -s conftest.$ac_objext; then
  3096   ac_cv_prog_cc_g=yes
  3097 else
  3098   echo "$as_me: failed program was:" >&5
  3099 sed 's/^/| /' conftest.$ac_ext >&5
  3102 fi
  3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3105 fi
  3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3108 fi
  3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3111    ac_c_werror_flag=$ac_save_c_werror_flag
  3112 fi
  3113 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3114 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3115 if test "$ac_test_CFLAGS" = set; then
  3116   CFLAGS=$ac_save_CFLAGS
  3117 elif test $ac_cv_prog_cc_g = yes; then
  3118   if test "$GCC" = yes; then
  3119     CFLAGS="-g -O2"
  3120   else
  3121     CFLAGS="-g"
  3122   fi
  3123 else
  3124   if test "$GCC" = yes; then
  3125     CFLAGS="-O2"
  3126   else
  3127     CFLAGS=
  3128   fi
  3129 fi
  3130 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3131 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3132 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3133   echo $ECHO_N "(cached) $ECHO_C" >&6
  3134 else
  3135   ac_cv_prog_cc_c89=no
  3136 ac_save_CC=$CC
  3137 cat >conftest.$ac_ext <<_ACEOF
  3138 /* confdefs.h.  */
  3139 _ACEOF
  3140 cat confdefs.h >>conftest.$ac_ext
  3141 cat >>conftest.$ac_ext <<_ACEOF
  3142 /* end confdefs.h.  */
  3143 #include <stdarg.h>
  3144 #include <stdio.h>
  3145 #include <sys/types.h>
  3146 #include <sys/stat.h>
  3147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3148 struct buf { int x; };
  3149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3150 static char *e (p, i)
  3151      char **p;
  3152      int i;
  3154   return p[i];
  3156 static char *f (char * (*g) (char **, int), char **p, ...)
  3158   char *s;
  3159   va_list v;
  3160   va_start (v,p);
  3161   s = g (p, va_arg (v,int));
  3162   va_end (v);
  3163   return s;
  3166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3167    function prototypes and stuff, but not '\xHH' hex character constants.
  3168    These don't provoke an error unfortunately, instead are silently treated
  3169    as 'x'.  The following induces an error, until -std is added to get
  3170    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3171    array size at least.  It's necessary to write '\x00'==0 to get something
  3172    that's true only with -std.  */
  3173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3176    inside strings and character constants.  */
  3177 #define FOO(x) 'x'
  3178 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3180 int test (int i, double x);
  3181 struct s1 {int (*f) (int a);};
  3182 struct s2 {int (*f) (double a);};
  3183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3184 int argc;
  3185 char **argv;
  3186 int
  3187 main ()
  3189 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3191   return 0;
  3193 _ACEOF
  3194 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3195 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3196 do
  3197   CC="$ac_save_CC $ac_arg"
  3198   rm -f conftest.$ac_objext
  3199 if { (ac_try="$ac_compile"
  3200 case "(($ac_try" in
  3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3202   *) ac_try_echo=$ac_try;;
  3203 esac
  3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3205   (eval "$ac_compile") 2>conftest.er1
  3206   ac_status=$?
  3207   grep -v '^ *+' conftest.er1 >conftest.err
  3208   rm -f conftest.er1
  3209   cat conftest.err >&5
  3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3211   (exit $ac_status); } && {
  3212 	 test -z "$ac_c_werror_flag" ||
  3213 	 test ! -s conftest.err
  3214        } && test -s conftest.$ac_objext; then
  3215   ac_cv_prog_cc_c89=$ac_arg
  3216 else
  3217   echo "$as_me: failed program was:" >&5
  3218 sed 's/^/| /' conftest.$ac_ext >&5
  3221 fi
  3223 rm -f core conftest.err conftest.$ac_objext
  3224   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3225 done
  3226 rm -f conftest.$ac_ext
  3227 CC=$ac_save_CC
  3229 fi
  3230 # AC_CACHE_VAL
  3231 case "x$ac_cv_prog_cc_c89" in
  3232   x)
  3233     { echo "$as_me:$LINENO: result: none needed" >&5
  3234 echo "${ECHO_T}none needed" >&6; } ;;
  3235   xno)
  3236     { echo "$as_me:$LINENO: result: unsupported" >&5
  3237 echo "${ECHO_T}unsupported" >&6; } ;;
  3238   *)
  3239     CC="$CC $ac_cv_prog_cc_c89"
  3240     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3241 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3242 esac
  3245 ac_ext=c
  3246 ac_cpp='$CPP $CPPFLAGS'
  3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3251 depcc="$CC"   am_compiler_list=
  3253 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3254 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3255 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3256   echo $ECHO_N "(cached) $ECHO_C" >&6
  3257 else
  3258   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3259   # We make a subdir and do the tests there.  Otherwise we can end up
  3260   # making bogus files that we don't know about and never remove.  For
  3261   # instance it was reported that on HP-UX the gcc test will end up
  3262   # making a dummy file named `D' -- because `-MD' means `put the output
  3263   # in D'.
  3264   mkdir conftest.dir
  3265   # Copy depcomp to subdir because otherwise we won't find it if we're
  3266   # using a relative directory.
  3267   cp "$am_depcomp" conftest.dir
  3268   cd conftest.dir
  3269   # We will build objects and dependencies in a subdirectory because
  3270   # it helps to detect inapplicable dependency modes.  For instance
  3271   # both Tru64's cc and ICC support -MD to output dependencies as a
  3272   # side effect of compilation, but ICC will put the dependencies in
  3273   # the current directory while Tru64 will put them in the object
  3274   # directory.
  3275   mkdir sub
  3277   am_cv_CC_dependencies_compiler_type=none
  3278   if test "$am_compiler_list" = ""; then
  3279      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3280   fi
  3281   for depmode in $am_compiler_list; do
  3282     # Setup a source with many dependencies, because some compilers
  3283     # like to wrap large dependency lists on column 80 (with \), and
  3284     # we should not choose a depcomp mode which is confused by this.
  3286     # We need to recreate these files for each test, as the compiler may
  3287     # overwrite some of them when testing with obscure command lines.
  3288     # This happens at least with the AIX C compiler.
  3289     : > sub/conftest.c
  3290     for i in 1 2 3 4 5 6; do
  3291       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3292       : > sub/conftst$i.h
  3293     done
  3294     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3296     case $depmode in
  3297     nosideeffect)
  3298       # after this tag, mechanisms are not by side-effect, so they'll
  3299       # only be used when explicitly requested
  3300       if test "x$enable_dependency_tracking" = xyes; then
  3301 	continue
  3302       else
  3303 	break
  3304       fi
  3305       ;;
  3306     none) break ;;
  3307     esac
  3308     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3309     # mode.  It turns out that the SunPro C++ compiler does not properly
  3310     # handle `-M -o', and we need to detect this.
  3311     if depmode=$depmode \
  3312        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3313        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3314        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3315          >/dev/null 2>conftest.err &&
  3316        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3317        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3318        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3319       # icc doesn't choke on unknown options, it will just issue warnings
  3320       # (even with -Werror).  So we grep stderr for any message
  3321       # that says an option was ignored.
  3322       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  3323         am_cv_CC_dependencies_compiler_type=$depmode
  3324         break
  3325       fi
  3326     fi
  3327   done
  3329   cd ..
  3330   rm -rf conftest.dir
  3331 else
  3332   am_cv_CC_dependencies_compiler_type=none
  3333 fi
  3335 fi
  3336 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3337 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3338 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3342 if
  3343   test "x$enable_dependency_tracking" != xno \
  3344   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3345   am__fastdepCC_TRUE=
  3346   am__fastdepCC_FALSE='#'
  3347 else
  3348   am__fastdepCC_TRUE='#'
  3349   am__fastdepCC_FALSE=
  3350 fi
  3354 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3355 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  3356 if test "${ac_cv_search_strerror+set}" = set; then
  3357   echo $ECHO_N "(cached) $ECHO_C" >&6
  3358 else
  3359   ac_func_search_save_LIBS=$LIBS
  3360 cat >conftest.$ac_ext <<_ACEOF
  3361 /* confdefs.h.  */
  3362 _ACEOF
  3363 cat confdefs.h >>conftest.$ac_ext
  3364 cat >>conftest.$ac_ext <<_ACEOF
  3365 /* end confdefs.h.  */
  3367 /* Override any GCC internal prototype to avoid an error.
  3368    Use char because int might match the return type of a GCC
  3369    builtin and then its argument prototype would still apply.  */
  3370 #ifdef __cplusplus
  3371 extern "C"
  3372 #endif
  3373 char strerror ();
  3374 int
  3375 main ()
  3377 return strerror ();
  3379   return 0;
  3381 _ACEOF
  3382 for ac_lib in '' cposix; do
  3383   if test -z "$ac_lib"; then
  3384     ac_res="none required"
  3385   else
  3386     ac_res=-l$ac_lib
  3387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  3388   fi
  3389   rm -f conftest.$ac_objext conftest$ac_exeext
  3390 if { (ac_try="$ac_link"
  3391 case "(($ac_try" in
  3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3393   *) ac_try_echo=$ac_try;;
  3394 esac
  3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3396   (eval "$ac_link") 2>conftest.er1
  3397   ac_status=$?
  3398   grep -v '^ *+' conftest.er1 >conftest.err
  3399   rm -f conftest.er1
  3400   cat conftest.err >&5
  3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3402   (exit $ac_status); } && {
  3403 	 test -z "$ac_c_werror_flag" ||
  3404 	 test ! -s conftest.err
  3405        } && test -s conftest$ac_exeext &&
  3406        $as_test_x conftest$ac_exeext; then
  3407   ac_cv_search_strerror=$ac_res
  3408 else
  3409   echo "$as_me: failed program was:" >&5
  3410 sed 's/^/| /' conftest.$ac_ext >&5
  3413 fi
  3415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3416       conftest$ac_exeext
  3417   if test "${ac_cv_search_strerror+set}" = set; then
  3418   break
  3419 fi
  3420 done
  3421 if test "${ac_cv_search_strerror+set}" = set; then
  3423 else
  3424   ac_cv_search_strerror=no
  3425 fi
  3426 rm conftest.$ac_ext
  3427 LIBS=$ac_func_search_save_LIBS
  3428 fi
  3429 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3430 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  3431 ac_res=$ac_cv_search_strerror
  3432 if test "$ac_res" != no; then
  3433   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3435 fi
  3437 ac_ext=c
  3438 ac_cpp='$CPP $CPPFLAGS'
  3439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3442 if test -n "$ac_tool_prefix"; then
  3443   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3444 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3447 if test "${ac_cv_prog_CC+set}" = set; then
  3448   echo $ECHO_N "(cached) $ECHO_C" >&6
  3449 else
  3450   if test -n "$CC"; then
  3451   ac_cv_prog_CC="$CC" # Let the user override the test.
  3452 else
  3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3454 for as_dir in $PATH
  3455 do
  3456   IFS=$as_save_IFS
  3457   test -z "$as_dir" && as_dir=.
  3458   for ac_exec_ext in '' $ac_executable_extensions; do
  3459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3460     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3462     break 2
  3463   fi
  3464 done
  3465 done
  3466 IFS=$as_save_IFS
  3468 fi
  3469 fi
  3470 CC=$ac_cv_prog_CC
  3471 if test -n "$CC"; then
  3472   { echo "$as_me:$LINENO: result: $CC" >&5
  3473 echo "${ECHO_T}$CC" >&6; }
  3474 else
  3475   { echo "$as_me:$LINENO: result: no" >&5
  3476 echo "${ECHO_T}no" >&6; }
  3477 fi
  3480 fi
  3481 if test -z "$ac_cv_prog_CC"; then
  3482   ac_ct_CC=$CC
  3483   # Extract the first word of "gcc", so it can be a program name with args.
  3484 set dummy gcc; ac_word=$2
  3485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3488   echo $ECHO_N "(cached) $ECHO_C" >&6
  3489 else
  3490   if test -n "$ac_ct_CC"; then
  3491   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3492 else
  3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3494 for as_dir in $PATH
  3495 do
  3496   IFS=$as_save_IFS
  3497   test -z "$as_dir" && as_dir=.
  3498   for ac_exec_ext in '' $ac_executable_extensions; do
  3499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3500     ac_cv_prog_ac_ct_CC="gcc"
  3501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3502     break 2
  3503   fi
  3504 done
  3505 done
  3506 IFS=$as_save_IFS
  3508 fi
  3509 fi
  3510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3511 if test -n "$ac_ct_CC"; then
  3512   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3513 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3514 else
  3515   { echo "$as_me:$LINENO: result: no" >&5
  3516 echo "${ECHO_T}no" >&6; }
  3517 fi
  3519   if test "x$ac_ct_CC" = x; then
  3520     CC=""
  3521   else
  3522     case $cross_compiling:$ac_tool_warned in
  3523 yes:)
  3524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3525 whose name does not start with the host triplet.  If you think this
  3526 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3528 whose name does not start with the host triplet.  If you think this
  3529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3530 ac_tool_warned=yes ;;
  3531 esac
  3532     CC=$ac_ct_CC
  3533   fi
  3534 else
  3535   CC="$ac_cv_prog_CC"
  3536 fi
  3538 if test -z "$CC"; then
  3539           if test -n "$ac_tool_prefix"; then
  3540     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3541 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3544 if test "${ac_cv_prog_CC+set}" = set; then
  3545   echo $ECHO_N "(cached) $ECHO_C" >&6
  3546 else
  3547   if test -n "$CC"; then
  3548   ac_cv_prog_CC="$CC" # Let the user override the test.
  3549 else
  3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3551 for as_dir in $PATH
  3552 do
  3553   IFS=$as_save_IFS
  3554   test -z "$as_dir" && as_dir=.
  3555   for ac_exec_ext in '' $ac_executable_extensions; do
  3556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3557     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3559     break 2
  3560   fi
  3561 done
  3562 done
  3563 IFS=$as_save_IFS
  3565 fi
  3566 fi
  3567 CC=$ac_cv_prog_CC
  3568 if test -n "$CC"; then
  3569   { echo "$as_me:$LINENO: result: $CC" >&5
  3570 echo "${ECHO_T}$CC" >&6; }
  3571 else
  3572   { echo "$as_me:$LINENO: result: no" >&5
  3573 echo "${ECHO_T}no" >&6; }
  3574 fi
  3577   fi
  3578 fi
  3579 if test -z "$CC"; then
  3580   # Extract the first word of "cc", so it can be a program name with args.
  3581 set dummy cc; ac_word=$2
  3582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3584 if test "${ac_cv_prog_CC+set}" = set; then
  3585   echo $ECHO_N "(cached) $ECHO_C" >&6
  3586 else
  3587   if test -n "$CC"; then
  3588   ac_cv_prog_CC="$CC" # Let the user override the test.
  3589 else
  3590   ac_prog_rejected=no
  3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3592 for as_dir in $PATH
  3593 do
  3594   IFS=$as_save_IFS
  3595   test -z "$as_dir" && as_dir=.
  3596   for ac_exec_ext in '' $ac_executable_extensions; do
  3597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3598     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3599        ac_prog_rejected=yes
  3600        continue
  3601      fi
  3602     ac_cv_prog_CC="cc"
  3603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3604     break 2
  3605   fi
  3606 done
  3607 done
  3608 IFS=$as_save_IFS
  3610 if test $ac_prog_rejected = yes; then
  3611   # We found a bogon in the path, so make sure we never use it.
  3612   set dummy $ac_cv_prog_CC
  3613   shift
  3614   if test $# != 0; then
  3615     # We chose a different compiler from the bogus one.
  3616     # However, it has the same basename, so the bogon will be chosen
  3617     # first if we set CC to just the basename; use the full file name.
  3618     shift
  3619     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3620   fi
  3621 fi
  3622 fi
  3623 fi
  3624 CC=$ac_cv_prog_CC
  3625 if test -n "$CC"; then
  3626   { echo "$as_me:$LINENO: result: $CC" >&5
  3627 echo "${ECHO_T}$CC" >&6; }
  3628 else
  3629   { echo "$as_me:$LINENO: result: no" >&5
  3630 echo "${ECHO_T}no" >&6; }
  3631 fi
  3634 fi
  3635 if test -z "$CC"; then
  3636   if test -n "$ac_tool_prefix"; then
  3637   for ac_prog in cl.exe
  3638   do
  3639     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3643 if test "${ac_cv_prog_CC+set}" = set; then
  3644   echo $ECHO_N "(cached) $ECHO_C" >&6
  3645 else
  3646   if test -n "$CC"; then
  3647   ac_cv_prog_CC="$CC" # Let the user override the test.
  3648 else
  3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3650 for as_dir in $PATH
  3651 do
  3652   IFS=$as_save_IFS
  3653   test -z "$as_dir" && as_dir=.
  3654   for ac_exec_ext in '' $ac_executable_extensions; do
  3655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3656     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3658     break 2
  3659   fi
  3660 done
  3661 done
  3662 IFS=$as_save_IFS
  3664 fi
  3665 fi
  3666 CC=$ac_cv_prog_CC
  3667 if test -n "$CC"; then
  3668   { echo "$as_me:$LINENO: result: $CC" >&5
  3669 echo "${ECHO_T}$CC" >&6; }
  3670 else
  3671   { echo "$as_me:$LINENO: result: no" >&5
  3672 echo "${ECHO_T}no" >&6; }
  3673 fi
  3676     test -n "$CC" && break
  3677   done
  3678 fi
  3679 if test -z "$CC"; then
  3680   ac_ct_CC=$CC
  3681   for ac_prog in cl.exe
  3682 do
  3683   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3684 set dummy $ac_prog; ac_word=$2
  3685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3688   echo $ECHO_N "(cached) $ECHO_C" >&6
  3689 else
  3690   if test -n "$ac_ct_CC"; then
  3691   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3692 else
  3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3694 for as_dir in $PATH
  3695 do
  3696   IFS=$as_save_IFS
  3697   test -z "$as_dir" && as_dir=.
  3698   for ac_exec_ext in '' $ac_executable_extensions; do
  3699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3700     ac_cv_prog_ac_ct_CC="$ac_prog"
  3701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3702     break 2
  3703   fi
  3704 done
  3705 done
  3706 IFS=$as_save_IFS
  3708 fi
  3709 fi
  3710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3711 if test -n "$ac_ct_CC"; then
  3712   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3713 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3714 else
  3715   { echo "$as_me:$LINENO: result: no" >&5
  3716 echo "${ECHO_T}no" >&6; }
  3717 fi
  3720   test -n "$ac_ct_CC" && break
  3721 done
  3723   if test "x$ac_ct_CC" = x; then
  3724     CC=""
  3725   else
  3726     case $cross_compiling:$ac_tool_warned in
  3727 yes:)
  3728 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3729 whose name does not start with the host triplet.  If you think this
  3730 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3731 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3732 whose name does not start with the host triplet.  If you think this
  3733 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3734 ac_tool_warned=yes ;;
  3735 esac
  3736     CC=$ac_ct_CC
  3737   fi
  3738 fi
  3740 fi
  3743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3744 See \`config.log' for more details." >&5
  3745 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3746 See \`config.log' for more details." >&2;}
  3747    { (exit 1); exit 1; }; }
  3749 # Provide some information about the compiler.
  3750 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3751 ac_compiler=`set X $ac_compile; echo $2`
  3752 { (ac_try="$ac_compiler --version >&5"
  3753 case "(($ac_try" in
  3754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3755   *) ac_try_echo=$ac_try;;
  3756 esac
  3757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3758   (eval "$ac_compiler --version >&5") 2>&5
  3759   ac_status=$?
  3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3761   (exit $ac_status); }
  3762 { (ac_try="$ac_compiler -v >&5"
  3763 case "(($ac_try" in
  3764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3765   *) ac_try_echo=$ac_try;;
  3766 esac
  3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3768   (eval "$ac_compiler -v >&5") 2>&5
  3769   ac_status=$?
  3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3771   (exit $ac_status); }
  3772 { (ac_try="$ac_compiler -V >&5"
  3773 case "(($ac_try" in
  3774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3775   *) ac_try_echo=$ac_try;;
  3776 esac
  3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3778   (eval "$ac_compiler -V >&5") 2>&5
  3779   ac_status=$?
  3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3781   (exit $ac_status); }
  3783 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3784 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3785 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3786   echo $ECHO_N "(cached) $ECHO_C" >&6
  3787 else
  3788   cat >conftest.$ac_ext <<_ACEOF
  3789 /* confdefs.h.  */
  3790 _ACEOF
  3791 cat confdefs.h >>conftest.$ac_ext
  3792 cat >>conftest.$ac_ext <<_ACEOF
  3793 /* end confdefs.h.  */
  3795 int
  3796 main ()
  3798 #ifndef __GNUC__
  3799        choke me
  3800 #endif
  3803   return 0;
  3805 _ACEOF
  3806 rm -f conftest.$ac_objext
  3807 if { (ac_try="$ac_compile"
  3808 case "(($ac_try" in
  3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3810   *) ac_try_echo=$ac_try;;
  3811 esac
  3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3813   (eval "$ac_compile") 2>conftest.er1
  3814   ac_status=$?
  3815   grep -v '^ *+' conftest.er1 >conftest.err
  3816   rm -f conftest.er1
  3817   cat conftest.err >&5
  3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3819   (exit $ac_status); } && {
  3820 	 test -z "$ac_c_werror_flag" ||
  3821 	 test ! -s conftest.err
  3822        } && test -s conftest.$ac_objext; then
  3823   ac_compiler_gnu=yes
  3824 else
  3825   echo "$as_me: failed program was:" >&5
  3826 sed 's/^/| /' conftest.$ac_ext >&5
  3828 	ac_compiler_gnu=no
  3829 fi
  3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3832 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3834 fi
  3835 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3836 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3837 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3838 ac_test_CFLAGS=${CFLAGS+set}
  3839 ac_save_CFLAGS=$CFLAGS
  3840 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3841 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3842 if test "${ac_cv_prog_cc_g+set}" = set; then
  3843   echo $ECHO_N "(cached) $ECHO_C" >&6
  3844 else
  3845   ac_save_c_werror_flag=$ac_c_werror_flag
  3846    ac_c_werror_flag=yes
  3847    ac_cv_prog_cc_g=no
  3848    CFLAGS="-g"
  3849    cat >conftest.$ac_ext <<_ACEOF
  3850 /* confdefs.h.  */
  3851 _ACEOF
  3852 cat confdefs.h >>conftest.$ac_ext
  3853 cat >>conftest.$ac_ext <<_ACEOF
  3854 /* end confdefs.h.  */
  3856 int
  3857 main ()
  3861   return 0;
  3863 _ACEOF
  3864 rm -f conftest.$ac_objext
  3865 if { (ac_try="$ac_compile"
  3866 case "(($ac_try" in
  3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3868   *) ac_try_echo=$ac_try;;
  3869 esac
  3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3871   (eval "$ac_compile") 2>conftest.er1
  3872   ac_status=$?
  3873   grep -v '^ *+' conftest.er1 >conftest.err
  3874   rm -f conftest.er1
  3875   cat conftest.err >&5
  3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3877   (exit $ac_status); } && {
  3878 	 test -z "$ac_c_werror_flag" ||
  3879 	 test ! -s conftest.err
  3880        } && test -s conftest.$ac_objext; then
  3881   ac_cv_prog_cc_g=yes
  3882 else
  3883   echo "$as_me: failed program was:" >&5
  3884 sed 's/^/| /' conftest.$ac_ext >&5
  3886 	CFLAGS=""
  3887       cat >conftest.$ac_ext <<_ACEOF
  3888 /* confdefs.h.  */
  3889 _ACEOF
  3890 cat confdefs.h >>conftest.$ac_ext
  3891 cat >>conftest.$ac_ext <<_ACEOF
  3892 /* end confdefs.h.  */
  3894 int
  3895 main ()
  3899   return 0;
  3901 _ACEOF
  3902 rm -f conftest.$ac_objext
  3903 if { (ac_try="$ac_compile"
  3904 case "(($ac_try" in
  3905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3906   *) ac_try_echo=$ac_try;;
  3907 esac
  3908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3909   (eval "$ac_compile") 2>conftest.er1
  3910   ac_status=$?
  3911   grep -v '^ *+' conftest.er1 >conftest.err
  3912   rm -f conftest.er1
  3913   cat conftest.err >&5
  3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3915   (exit $ac_status); } && {
  3916 	 test -z "$ac_c_werror_flag" ||
  3917 	 test ! -s conftest.err
  3918        } && test -s conftest.$ac_objext; then
  3920 else
  3921   echo "$as_me: failed program was:" >&5
  3922 sed 's/^/| /' conftest.$ac_ext >&5
  3924 	ac_c_werror_flag=$ac_save_c_werror_flag
  3925 	 CFLAGS="-g"
  3926 	 cat >conftest.$ac_ext <<_ACEOF
  3927 /* confdefs.h.  */
  3928 _ACEOF
  3929 cat confdefs.h >>conftest.$ac_ext
  3930 cat >>conftest.$ac_ext <<_ACEOF
  3931 /* end confdefs.h.  */
  3933 int
  3934 main ()
  3938   return 0;
  3940 _ACEOF
  3941 rm -f conftest.$ac_objext
  3942 if { (ac_try="$ac_compile"
  3943 case "(($ac_try" in
  3944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3945   *) ac_try_echo=$ac_try;;
  3946 esac
  3947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3948   (eval "$ac_compile") 2>conftest.er1
  3949   ac_status=$?
  3950   grep -v '^ *+' conftest.er1 >conftest.err
  3951   rm -f conftest.er1
  3952   cat conftest.err >&5
  3953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3954   (exit $ac_status); } && {
  3955 	 test -z "$ac_c_werror_flag" ||
  3956 	 test ! -s conftest.err
  3957        } && test -s conftest.$ac_objext; then
  3958   ac_cv_prog_cc_g=yes
  3959 else
  3960   echo "$as_me: failed program was:" >&5
  3961 sed 's/^/| /' conftest.$ac_ext >&5
  3964 fi
  3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3967 fi
  3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3970 fi
  3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3973    ac_c_werror_flag=$ac_save_c_werror_flag
  3974 fi
  3975 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3976 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3977 if test "$ac_test_CFLAGS" = set; then
  3978   CFLAGS=$ac_save_CFLAGS
  3979 elif test $ac_cv_prog_cc_g = yes; then
  3980   if test "$GCC" = yes; then
  3981     CFLAGS="-g -O2"
  3982   else
  3983     CFLAGS="-g"
  3984   fi
  3985 else
  3986   if test "$GCC" = yes; then
  3987     CFLAGS="-O2"
  3988   else
  3989     CFLAGS=
  3990   fi
  3991 fi
  3992 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3993 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3994 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3995   echo $ECHO_N "(cached) $ECHO_C" >&6
  3996 else
  3997   ac_cv_prog_cc_c89=no
  3998 ac_save_CC=$CC
  3999 cat >conftest.$ac_ext <<_ACEOF
  4000 /* confdefs.h.  */
  4001 _ACEOF
  4002 cat confdefs.h >>conftest.$ac_ext
  4003 cat >>conftest.$ac_ext <<_ACEOF
  4004 /* end confdefs.h.  */
  4005 #include <stdarg.h>
  4006 #include <stdio.h>
  4007 #include <sys/types.h>
  4008 #include <sys/stat.h>
  4009 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4010 struct buf { int x; };
  4011 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4012 static char *e (p, i)
  4013      char **p;
  4014      int i;
  4016   return p[i];
  4018 static char *f (char * (*g) (char **, int), char **p, ...)
  4020   char *s;
  4021   va_list v;
  4022   va_start (v,p);
  4023   s = g (p, va_arg (v,int));
  4024   va_end (v);
  4025   return s;
  4028 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4029    function prototypes and stuff, but not '\xHH' hex character constants.
  4030    These don't provoke an error unfortunately, instead are silently treated
  4031    as 'x'.  The following induces an error, until -std is added to get
  4032    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4033    array size at least.  It's necessary to write '\x00'==0 to get something
  4034    that's true only with -std.  */
  4035 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4037 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4038    inside strings and character constants.  */
  4039 #define FOO(x) 'x'
  4040 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4042 int test (int i, double x);
  4043 struct s1 {int (*f) (int a);};
  4044 struct s2 {int (*f) (double a);};
  4045 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4046 int argc;
  4047 char **argv;
  4048 int
  4049 main ()
  4051 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4053   return 0;
  4055 _ACEOF
  4056 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4057 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4058 do
  4059   CC="$ac_save_CC $ac_arg"
  4060   rm -f conftest.$ac_objext
  4061 if { (ac_try="$ac_compile"
  4062 case "(($ac_try" in
  4063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4064   *) ac_try_echo=$ac_try;;
  4065 esac
  4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4067   (eval "$ac_compile") 2>conftest.er1
  4068   ac_status=$?
  4069   grep -v '^ *+' conftest.er1 >conftest.err
  4070   rm -f conftest.er1
  4071   cat conftest.err >&5
  4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4073   (exit $ac_status); } && {
  4074 	 test -z "$ac_c_werror_flag" ||
  4075 	 test ! -s conftest.err
  4076        } && test -s conftest.$ac_objext; then
  4077   ac_cv_prog_cc_c89=$ac_arg
  4078 else
  4079   echo "$as_me: failed program was:" >&5
  4080 sed 's/^/| /' conftest.$ac_ext >&5
  4083 fi
  4085 rm -f core conftest.err conftest.$ac_objext
  4086   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4087 done
  4088 rm -f conftest.$ac_ext
  4089 CC=$ac_save_CC
  4091 fi
  4092 # AC_CACHE_VAL
  4093 case "x$ac_cv_prog_cc_c89" in
  4094   x)
  4095     { echo "$as_me:$LINENO: result: none needed" >&5
  4096 echo "${ECHO_T}none needed" >&6; } ;;
  4097   xno)
  4098     { echo "$as_me:$LINENO: result: unsupported" >&5
  4099 echo "${ECHO_T}unsupported" >&6; } ;;
  4100   *)
  4101     CC="$CC $ac_cv_prog_cc_c89"
  4102     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4103 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4104 esac
  4107 ac_ext=c
  4108 ac_cpp='$CPP $CPPFLAGS'
  4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4113 depcc="$CC"   am_compiler_list=
  4115 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4116 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4117 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4118   echo $ECHO_N "(cached) $ECHO_C" >&6
  4119 else
  4120   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4121   # We make a subdir and do the tests there.  Otherwise we can end up
  4122   # making bogus files that we don't know about and never remove.  For
  4123   # instance it was reported that on HP-UX the gcc test will end up
  4124   # making a dummy file named `D' -- because `-MD' means `put the output
  4125   # in D'.
  4126   mkdir conftest.dir
  4127   # Copy depcomp to subdir because otherwise we won't find it if we're
  4128   # using a relative directory.
  4129   cp "$am_depcomp" conftest.dir
  4130   cd conftest.dir
  4131   # We will build objects and dependencies in a subdirectory because
  4132   # it helps to detect inapplicable dependency modes.  For instance
  4133   # both Tru64's cc and ICC support -MD to output dependencies as a
  4134   # side effect of compilation, but ICC will put the dependencies in
  4135   # the current directory while Tru64 will put them in the object
  4136   # directory.
  4137   mkdir sub
  4139   am_cv_CC_dependencies_compiler_type=none
  4140   if test "$am_compiler_list" = ""; then
  4141      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4142   fi
  4143   for depmode in $am_compiler_list; do
  4144     # Setup a source with many dependencies, because some compilers
  4145     # like to wrap large dependency lists on column 80 (with \), and
  4146     # we should not choose a depcomp mode which is confused by this.
  4148     # We need to recreate these files for each test, as the compiler may
  4149     # overwrite some of them when testing with obscure command lines.
  4150     # This happens at least with the AIX C compiler.
  4151     : > sub/conftest.c
  4152     for i in 1 2 3 4 5 6; do
  4153       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4154       : > sub/conftst$i.h
  4155     done
  4156     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4158     case $depmode in
  4159     nosideeffect)
  4160       # after this tag, mechanisms are not by side-effect, so they'll
  4161       # only be used when explicitly requested
  4162       if test "x$enable_dependency_tracking" = xyes; then
  4163 	continue
  4164       else
  4165 	break
  4166       fi
  4167       ;;
  4168     none) break ;;
  4169     esac
  4170     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4171     # mode.  It turns out that the SunPro C++ compiler does not properly
  4172     # handle `-M -o', and we need to detect this.
  4173     if depmode=$depmode \
  4174        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4175        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4176        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4177          >/dev/null 2>conftest.err &&
  4178        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4179        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4180        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4181       # icc doesn't choke on unknown options, it will just issue warnings
  4182       # (even with -Werror).  So we grep stderr for any message
  4183       # that says an option was ignored.
  4184       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  4185         am_cv_CC_dependencies_compiler_type=$depmode
  4186         break
  4187       fi
  4188     fi
  4189   done
  4191   cd ..
  4192   rm -rf conftest.dir
  4193 else
  4194   am_cv_CC_dependencies_compiler_type=none
  4195 fi
  4197 fi
  4198 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4199 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4200 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4204 if
  4205   test "x$enable_dependency_tracking" != xno \
  4206   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4207   am__fastdepCC_TRUE=
  4208   am__fastdepCC_FALSE='#'
  4209 else
  4210   am__fastdepCC_TRUE='#'
  4211   am__fastdepCC_FALSE=
  4212 fi
  4218 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  4219 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
  4220 if test "${am_cv_prog_cc_stdc+set}" = set; then
  4221   echo $ECHO_N "(cached) $ECHO_C" >&6
  4222 else
  4223   am_cv_prog_cc_stdc=no
  4224 ac_save_CC="$CC"
  4225 # Don't try gcc -ansi; that turns off useful extensions and
  4226 # breaks some systems' header files.
  4227 # AIX			-qlanglvl=ansi
  4228 # Ultrix and OSF/1	-std1
  4229 # HP-UX 10.20 and later	-Ae
  4230 # HP-UX older versions	-Aa -D_HPUX_SOURCE
  4231 # SVR4			-Xc -D__EXTENSIONS__
  4232 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4233 do
  4234   CC="$ac_save_CC $ac_arg"
  4235   cat >conftest.$ac_ext <<_ACEOF
  4236 /* confdefs.h.  */
  4237 _ACEOF
  4238 cat confdefs.h >>conftest.$ac_ext
  4239 cat >>conftest.$ac_ext <<_ACEOF
  4240 /* end confdefs.h.  */
  4241 #include <stdarg.h>
  4242 #include <stdio.h>
  4243 #include <sys/types.h>
  4244 #include <sys/stat.h>
  4245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4246 struct buf { int x; };
  4247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4248 static char *e (p, i)
  4249      char **p;
  4250      int i;
  4252   return p[i];
  4254 static char *f (char * (*g) (char **, int), char **p, ...)
  4256   char *s;
  4257   va_list v;
  4258   va_start (v,p);
  4259   s = g (p, va_arg (v,int));
  4260   va_end (v);
  4261   return s;
  4263 int test (int i, double x);
  4264 struct s1 {int (*f) (int a);};
  4265 struct s2 {int (*f) (double a);};
  4266 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4267 int argc;
  4268 char **argv;
  4270 int
  4271 main ()
  4274 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4277   return 0;
  4279 _ACEOF
  4280 rm -f conftest.$ac_objext
  4281 if { (ac_try="$ac_compile"
  4282 case "(($ac_try" in
  4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4284   *) ac_try_echo=$ac_try;;
  4285 esac
  4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4287   (eval "$ac_compile") 2>conftest.er1
  4288   ac_status=$?
  4289   grep -v '^ *+' conftest.er1 >conftest.err
  4290   rm -f conftest.er1
  4291   cat conftest.err >&5
  4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4293   (exit $ac_status); } && {
  4294 	 test -z "$ac_c_werror_flag" ||
  4295 	 test ! -s conftest.err
  4296        } && test -s conftest.$ac_objext; then
  4297   am_cv_prog_cc_stdc="$ac_arg"; break
  4298 else
  4299   echo "$as_me: failed program was:" >&5
  4300 sed 's/^/| /' conftest.$ac_ext >&5
  4303 fi
  4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4306 done
  4307 CC="$ac_save_CC"
  4309 fi
  4311 if test -z "$am_cv_prog_cc_stdc"; then
  4312   { echo "$as_me:$LINENO: result: none needed" >&5
  4313 echo "${ECHO_T}none needed" >&6; }
  4314 else
  4315   { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  4316 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
  4317 fi
  4318 case "x$am_cv_prog_cc_stdc" in
  4319   x|xno) ;;
  4320   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  4321 esac
  4323 # By default we simply use the C compiler to build assembly code.
  4325 : ${CCAS='$(CC)'}
  4326 # Set ASFLAGS if not already set.
  4327 : ${CCASFLAGS='$(CFLAGS)'}
  4330 ac_ext=c
  4331 ac_cpp='$CPP $CPPFLAGS'
  4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4335 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4336 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4337 # On Suns, sometimes $CPP names a directory.
  4338 if test -n "$CPP" && test -d "$CPP"; then
  4339   CPP=
  4340 fi
  4341 if test -z "$CPP"; then
  4342   if test "${ac_cv_prog_CPP+set}" = set; then
  4343   echo $ECHO_N "(cached) $ECHO_C" >&6
  4344 else
  4345       # Double quotes because CPP needs to be expanded
  4346     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4347     do
  4348       ac_preproc_ok=false
  4349 for ac_c_preproc_warn_flag in '' yes
  4350 do
  4351   # Use a header file that comes with gcc, so configuring glibc
  4352   # with a fresh cross-compiler works.
  4353   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4354   # <limits.h> exists even on freestanding compilers.
  4355   # On the NeXT, cc -E runs the code through the compiler's parser,
  4356   # not just through cpp. "Syntax error" is here to catch this case.
  4357   cat >conftest.$ac_ext <<_ACEOF
  4358 /* confdefs.h.  */
  4359 _ACEOF
  4360 cat confdefs.h >>conftest.$ac_ext
  4361 cat >>conftest.$ac_ext <<_ACEOF
  4362 /* end confdefs.h.  */
  4363 #ifdef __STDC__
  4364 # include <limits.h>
  4365 #else
  4366 # include <assert.h>
  4367 #endif
  4368 		     Syntax error
  4369 _ACEOF
  4370 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4371 case "(($ac_try" in
  4372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4373   *) ac_try_echo=$ac_try;;
  4374 esac
  4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4377   ac_status=$?
  4378   grep -v '^ *+' conftest.er1 >conftest.err
  4379   rm -f conftest.er1
  4380   cat conftest.err >&5
  4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4382   (exit $ac_status); } >/dev/null && {
  4383 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4384 	 test ! -s conftest.err
  4385        }; then
  4387 else
  4388   echo "$as_me: failed program was:" >&5
  4389 sed 's/^/| /' conftest.$ac_ext >&5
  4391   # Broken: fails on valid input.
  4392 continue
  4393 fi
  4395 rm -f conftest.err conftest.$ac_ext
  4397   # OK, works on sane cases.  Now check whether nonexistent headers
  4398   # can be detected and how.
  4399   cat >conftest.$ac_ext <<_ACEOF
  4400 /* confdefs.h.  */
  4401 _ACEOF
  4402 cat confdefs.h >>conftest.$ac_ext
  4403 cat >>conftest.$ac_ext <<_ACEOF
  4404 /* end confdefs.h.  */
  4405 #include <ac_nonexistent.h>
  4406 _ACEOF
  4407 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4408 case "(($ac_try" in
  4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4410   *) ac_try_echo=$ac_try;;
  4411 esac
  4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4414   ac_status=$?
  4415   grep -v '^ *+' conftest.er1 >conftest.err
  4416   rm -f conftest.er1
  4417   cat conftest.err >&5
  4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4419   (exit $ac_status); } >/dev/null && {
  4420 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4421 	 test ! -s conftest.err
  4422        }; then
  4423   # Broken: success on invalid input.
  4424 continue
  4425 else
  4426   echo "$as_me: failed program was:" >&5
  4427 sed 's/^/| /' conftest.$ac_ext >&5
  4429   # Passes both tests.
  4430 ac_preproc_ok=:
  4431 break
  4432 fi
  4434 rm -f conftest.err conftest.$ac_ext
  4436 done
  4437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4438 rm -f conftest.err conftest.$ac_ext
  4439 if $ac_preproc_ok; then
  4440   break
  4441 fi
  4443     done
  4444     ac_cv_prog_CPP=$CPP
  4446 fi
  4447   CPP=$ac_cv_prog_CPP
  4448 else
  4449   ac_cv_prog_CPP=$CPP
  4450 fi
  4451 { echo "$as_me:$LINENO: result: $CPP" >&5
  4452 echo "${ECHO_T}$CPP" >&6; }
  4453 ac_preproc_ok=false
  4454 for ac_c_preproc_warn_flag in '' yes
  4455 do
  4456   # Use a header file that comes with gcc, so configuring glibc
  4457   # with a fresh cross-compiler works.
  4458   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4459   # <limits.h> exists even on freestanding compilers.
  4460   # On the NeXT, cc -E runs the code through the compiler's parser,
  4461   # not just through cpp. "Syntax error" is here to catch this case.
  4462   cat >conftest.$ac_ext <<_ACEOF
  4463 /* confdefs.h.  */
  4464 _ACEOF
  4465 cat confdefs.h >>conftest.$ac_ext
  4466 cat >>conftest.$ac_ext <<_ACEOF
  4467 /* end confdefs.h.  */
  4468 #ifdef __STDC__
  4469 # include <limits.h>
  4470 #else
  4471 # include <assert.h>
  4472 #endif
  4473 		     Syntax error
  4474 _ACEOF
  4475 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4476 case "(($ac_try" in
  4477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4478   *) ac_try_echo=$ac_try;;
  4479 esac
  4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4482   ac_status=$?
  4483   grep -v '^ *+' conftest.er1 >conftest.err
  4484   rm -f conftest.er1
  4485   cat conftest.err >&5
  4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4487   (exit $ac_status); } >/dev/null && {
  4488 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4489 	 test ! -s conftest.err
  4490        }; then
  4492 else
  4493   echo "$as_me: failed program was:" >&5
  4494 sed 's/^/| /' conftest.$ac_ext >&5
  4496   # Broken: fails on valid input.
  4497 continue
  4498 fi
  4500 rm -f conftest.err conftest.$ac_ext
  4502   # OK, works on sane cases.  Now check whether nonexistent headers
  4503   # can be detected and how.
  4504   cat >conftest.$ac_ext <<_ACEOF
  4505 /* confdefs.h.  */
  4506 _ACEOF
  4507 cat confdefs.h >>conftest.$ac_ext
  4508 cat >>conftest.$ac_ext <<_ACEOF
  4509 /* end confdefs.h.  */
  4510 #include <ac_nonexistent.h>
  4511 _ACEOF
  4512 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4513 case "(($ac_try" in
  4514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4515   *) ac_try_echo=$ac_try;;
  4516 esac
  4517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4518   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4519   ac_status=$?
  4520   grep -v '^ *+' conftest.er1 >conftest.err
  4521   rm -f conftest.er1
  4522   cat conftest.err >&5
  4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4524   (exit $ac_status); } >/dev/null && {
  4525 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4526 	 test ! -s conftest.err
  4527        }; then
  4528   # Broken: success on invalid input.
  4529 continue
  4530 else
  4531   echo "$as_me: failed program was:" >&5
  4532 sed 's/^/| /' conftest.$ac_ext >&5
  4534   # Passes both tests.
  4535 ac_preproc_ok=:
  4536 break
  4537 fi
  4539 rm -f conftest.err conftest.$ac_ext
  4541 done
  4542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4543 rm -f conftest.err conftest.$ac_ext
  4544 if $ac_preproc_ok; then
  4546 else
  4547   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4548 See \`config.log' for more details." >&5
  4549 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4550 See \`config.log' for more details." >&2;}
  4551    { (exit 1); exit 1; }; }
  4552 fi
  4554 ac_ext=c
  4555 ac_cpp='$CPP $CPPFLAGS'
  4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4561 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4562 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4563 if test "${ac_cv_path_GREP+set}" = set; then
  4564   echo $ECHO_N "(cached) $ECHO_C" >&6
  4565 else
  4566   # Extract the first word of "grep ggrep" to use in msg output
  4567 if test -z "$GREP"; then
  4568 set dummy grep ggrep; ac_prog_name=$2
  4569 if test "${ac_cv_path_GREP+set}" = set; then
  4570   echo $ECHO_N "(cached) $ECHO_C" >&6
  4571 else
  4572   ac_path_GREP_found=false
  4573 # Loop through the user's path and test for each of PROGNAME-LIST
  4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4576 do
  4577   IFS=$as_save_IFS
  4578   test -z "$as_dir" && as_dir=.
  4579   for ac_prog in grep ggrep; do
  4580   for ac_exec_ext in '' $ac_executable_extensions; do
  4581     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4582     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4583     # Check for GNU ac_path_GREP and select it if it is found.
  4584   # Check for GNU $ac_path_GREP
  4585 case `"$ac_path_GREP" --version 2>&1` in
  4586 *GNU*)
  4587   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4588 *)
  4589   ac_count=0
  4590   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4591   while :
  4592   do
  4593     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4594     mv "conftest.tmp" "conftest.in"
  4595     cp "conftest.in" "conftest.nl"
  4596     echo 'GREP' >> "conftest.nl"
  4597     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4598     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4599     ac_count=`expr $ac_count + 1`
  4600     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4601       # Best one so far, save it but keep looking for a better one
  4602       ac_cv_path_GREP="$ac_path_GREP"
  4603       ac_path_GREP_max=$ac_count
  4604     fi
  4605     # 10*(2^10) chars as input seems more than enough
  4606     test $ac_count -gt 10 && break
  4607   done
  4608   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4609 esac
  4612     $ac_path_GREP_found && break 3
  4613   done
  4614 done
  4616 done
  4617 IFS=$as_save_IFS
  4620 fi
  4622 GREP="$ac_cv_path_GREP"
  4623 if test -z "$GREP"; then
  4624   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4625 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4626    { (exit 1); exit 1; }; }
  4627 fi
  4629 else
  4630   ac_cv_path_GREP=$GREP
  4631 fi
  4634 fi
  4635 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4636 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4637  GREP="$ac_cv_path_GREP"
  4640 { echo "$as_me:$LINENO: checking for egrep" >&5
  4641 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4642 if test "${ac_cv_path_EGREP+set}" = set; then
  4643   echo $ECHO_N "(cached) $ECHO_C" >&6
  4644 else
  4645   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4646    then ac_cv_path_EGREP="$GREP -E"
  4647    else
  4648      # Extract the first word of "egrep" to use in msg output
  4649 if test -z "$EGREP"; then
  4650 set dummy egrep; ac_prog_name=$2
  4651 if test "${ac_cv_path_EGREP+set}" = set; then
  4652   echo $ECHO_N "(cached) $ECHO_C" >&6
  4653 else
  4654   ac_path_EGREP_found=false
  4655 # Loop through the user's path and test for each of PROGNAME-LIST
  4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4658 do
  4659   IFS=$as_save_IFS
  4660   test -z "$as_dir" && as_dir=.
  4661   for ac_prog in egrep; do
  4662   for ac_exec_ext in '' $ac_executable_extensions; do
  4663     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4664     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4665     # Check for GNU ac_path_EGREP and select it if it is found.
  4666   # Check for GNU $ac_path_EGREP
  4667 case `"$ac_path_EGREP" --version 2>&1` in
  4668 *GNU*)
  4669   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4670 *)
  4671   ac_count=0
  4672   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4673   while :
  4674   do
  4675     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4676     mv "conftest.tmp" "conftest.in"
  4677     cp "conftest.in" "conftest.nl"
  4678     echo 'EGREP' >> "conftest.nl"
  4679     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4680     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4681     ac_count=`expr $ac_count + 1`
  4682     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4683       # Best one so far, save it but keep looking for a better one
  4684       ac_cv_path_EGREP="$ac_path_EGREP"
  4685       ac_path_EGREP_max=$ac_count
  4686     fi
  4687     # 10*(2^10) chars as input seems more than enough
  4688     test $ac_count -gt 10 && break
  4689   done
  4690   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4691 esac
  4694     $ac_path_EGREP_found && break 3
  4695   done
  4696 done
  4698 done
  4699 IFS=$as_save_IFS
  4702 fi
  4704 EGREP="$ac_cv_path_EGREP"
  4705 if test -z "$EGREP"; then
  4706   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4707 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4708    { (exit 1); exit 1; }; }
  4709 fi
  4711 else
  4712   ac_cv_path_EGREP=$EGREP
  4713 fi
  4716    fi
  4717 fi
  4718 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4719 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4720  EGREP="$ac_cv_path_EGREP"
  4723 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4724 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4725 if test "${ac_cv_header_stdc+set}" = set; then
  4726   echo $ECHO_N "(cached) $ECHO_C" >&6
  4727 else
  4728   cat >conftest.$ac_ext <<_ACEOF
  4729 /* confdefs.h.  */
  4730 _ACEOF
  4731 cat confdefs.h >>conftest.$ac_ext
  4732 cat >>conftest.$ac_ext <<_ACEOF
  4733 /* end confdefs.h.  */
  4734 #include <stdlib.h>
  4735 #include <stdarg.h>
  4736 #include <string.h>
  4737 #include <float.h>
  4739 int
  4740 main ()
  4744   return 0;
  4746 _ACEOF
  4747 rm -f conftest.$ac_objext
  4748 if { (ac_try="$ac_compile"
  4749 case "(($ac_try" in
  4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4751   *) ac_try_echo=$ac_try;;
  4752 esac
  4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4754   (eval "$ac_compile") 2>conftest.er1
  4755   ac_status=$?
  4756   grep -v '^ *+' conftest.er1 >conftest.err
  4757   rm -f conftest.er1
  4758   cat conftest.err >&5
  4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4760   (exit $ac_status); } && {
  4761 	 test -z "$ac_c_werror_flag" ||
  4762 	 test ! -s conftest.err
  4763        } && test -s conftest.$ac_objext; then
  4764   ac_cv_header_stdc=yes
  4765 else
  4766   echo "$as_me: failed program was:" >&5
  4767 sed 's/^/| /' conftest.$ac_ext >&5
  4769 	ac_cv_header_stdc=no
  4770 fi
  4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4774 if test $ac_cv_header_stdc = yes; then
  4775   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4776   cat >conftest.$ac_ext <<_ACEOF
  4777 /* confdefs.h.  */
  4778 _ACEOF
  4779 cat confdefs.h >>conftest.$ac_ext
  4780 cat >>conftest.$ac_ext <<_ACEOF
  4781 /* end confdefs.h.  */
  4782 #include <string.h>
  4784 _ACEOF
  4785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4786   $EGREP "memchr" >/dev/null 2>&1; then
  4788 else
  4789   ac_cv_header_stdc=no
  4790 fi
  4791 rm -f conftest*
  4793 fi
  4795 if test $ac_cv_header_stdc = yes; then
  4796   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4797   cat >conftest.$ac_ext <<_ACEOF
  4798 /* confdefs.h.  */
  4799 _ACEOF
  4800 cat confdefs.h >>conftest.$ac_ext
  4801 cat >>conftest.$ac_ext <<_ACEOF
  4802 /* end confdefs.h.  */
  4803 #include <stdlib.h>
  4805 _ACEOF
  4806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4807   $EGREP "free" >/dev/null 2>&1; then
  4809 else
  4810   ac_cv_header_stdc=no
  4811 fi
  4812 rm -f conftest*
  4814 fi
  4816 if test $ac_cv_header_stdc = yes; then
  4817   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4818   if test "$cross_compiling" = yes; then
  4820 else
  4821   cat >conftest.$ac_ext <<_ACEOF
  4822 /* confdefs.h.  */
  4823 _ACEOF
  4824 cat confdefs.h >>conftest.$ac_ext
  4825 cat >>conftest.$ac_ext <<_ACEOF
  4826 /* end confdefs.h.  */
  4827 #include <ctype.h>
  4828 #include <stdlib.h>
  4829 #if ((' ' & 0x0FF) == 0x020)
  4830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4832 #else
  4833 # define ISLOWER(c) \
  4834 		   (('a' <= (c) && (c) <= 'i') \
  4835 		     || ('j' <= (c) && (c) <= 'r') \
  4836 		     || ('s' <= (c) && (c) <= 'z'))
  4837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4838 #endif
  4840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4841 int
  4842 main ()
  4844   int i;
  4845   for (i = 0; i < 256; i++)
  4846     if (XOR (islower (i), ISLOWER (i))
  4847 	|| toupper (i) != TOUPPER (i))
  4848       return 2;
  4849   return 0;
  4851 _ACEOF
  4852 rm -f conftest$ac_exeext
  4853 if { (ac_try="$ac_link"
  4854 case "(($ac_try" in
  4855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4856   *) ac_try_echo=$ac_try;;
  4857 esac
  4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4859   (eval "$ac_link") 2>&5
  4860   ac_status=$?
  4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4862   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  4869   ac_status=$?
  4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4871   (exit $ac_status); }; }; then
  4873 else
  4874   echo "$as_me: program exited with status $ac_status" >&5
  4875 echo "$as_me: failed program was:" >&5
  4876 sed 's/^/| /' conftest.$ac_ext >&5
  4878 ( exit $ac_status )
  4879 ac_cv_header_stdc=no
  4880 fi
  4881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4882 fi
  4885 fi
  4886 fi
  4887 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4888 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4889 if test $ac_cv_header_stdc = yes; then
  4891 cat >>confdefs.h <<\_ACEOF
  4892 #define STDC_HEADERS 1
  4893 _ACEOF
  4895 fi
  4897 # Make sure we can run config.sub.
  4898 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4899   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  4900 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  4901    { (exit 1); exit 1; }; }
  4903 { echo "$as_me:$LINENO: checking build system type" >&5
  4904 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  4905 if test "${ac_cv_build+set}" = set; then
  4906   echo $ECHO_N "(cached) $ECHO_C" >&6
  4907 else
  4908   ac_build_alias=$build_alias
  4909 test "x$ac_build_alias" = x &&
  4910   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4911 test "x$ac_build_alias" = x &&
  4912   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4913 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4914    { (exit 1); exit 1; }; }
  4915 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4916   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  4917 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  4918    { (exit 1); exit 1; }; }
  4920 fi
  4921 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4922 echo "${ECHO_T}$ac_cv_build" >&6; }
  4923 case $ac_cv_build in
  4924 *-*-*) ;;
  4925 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  4926 echo "$as_me: error: invalid value of canonical build" >&2;}
  4927    { (exit 1); exit 1; }; };;
  4928 esac
  4929 build=$ac_cv_build
  4930 ac_save_IFS=$IFS; IFS='-'
  4931 set x $ac_cv_build
  4932 shift
  4933 build_cpu=$1
  4934 build_vendor=$2
  4935 shift; shift
  4936 # Remember, the first character of IFS is used to create $*,
  4937 # except with old shells:
  4938 build_os=$*
  4939 IFS=$ac_save_IFS
  4940 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4943 { echo "$as_me:$LINENO: checking host system type" >&5
  4944 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  4945 if test "${ac_cv_host+set}" = set; then
  4946   echo $ECHO_N "(cached) $ECHO_C" >&6
  4947 else
  4948   if test "x$host_alias" = x; then
  4949   ac_cv_host=$ac_cv_build
  4950 else
  4951   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4952     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  4953 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  4954    { (exit 1); exit 1; }; }
  4955 fi
  4957 fi
  4958 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4959 echo "${ECHO_T}$ac_cv_host" >&6; }
  4960 case $ac_cv_host in
  4961 *-*-*) ;;
  4962 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  4963 echo "$as_me: error: invalid value of canonical host" >&2;}
  4964    { (exit 1); exit 1; }; };;
  4965 esac
  4966 host=$ac_cv_host
  4967 ac_save_IFS=$IFS; IFS='-'
  4968 set x $ac_cv_host
  4969 shift
  4970 host_cpu=$1
  4971 host_vendor=$2
  4972 shift; shift
  4973 # Remember, the first character of IFS is used to create $*,
  4974 # except with old shells:
  4975 host_os=$*
  4976 IFS=$ac_save_IFS
  4977 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4980 # Check whether --enable-trace was given.
  4981 if test "${enable_trace+set}" = set; then
  4982   enableval=$enable_trace; if test "$enableval" == "yes"; then
  4984 cat >>confdefs.h <<\_ACEOF
  4985 #define ENABLE_TRACE_IO 1
  4986 _ACEOF
  4988     fi
  4989 fi
  4991 # Check whether --enable-watch was given.
  4992 if test "${enable_watch+set}" = set; then
  4993   enableval=$enable_watch; if test "$enableval" == "yes"; then
  4995 cat >>confdefs.h <<\_ACEOF
  4996 #define ENABLE_WATCH 1
  4997 _ACEOF
  4999    fi
  5000 fi
  5003 # Check whether --with-osmesa was given.
  5004 if test "${with_osmesa+set}" = set; then
  5005   withval=$with_osmesa;
  5006 else
  5007   with_osmesa=no
  5008 fi
  5011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5022 		  inttypes.h stdint.h unistd.h
  5023 do
  5024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5028   echo $ECHO_N "(cached) $ECHO_C" >&6
  5029 else
  5030   cat >conftest.$ac_ext <<_ACEOF
  5031 /* confdefs.h.  */
  5032 _ACEOF
  5033 cat confdefs.h >>conftest.$ac_ext
  5034 cat >>conftest.$ac_ext <<_ACEOF
  5035 /* end confdefs.h.  */
  5036 $ac_includes_default
  5038 #include <$ac_header>
  5039 _ACEOF
  5040 rm -f conftest.$ac_objext
  5041 if { (ac_try="$ac_compile"
  5042 case "(($ac_try" in
  5043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5044   *) ac_try_echo=$ac_try;;
  5045 esac
  5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5047   (eval "$ac_compile") 2>conftest.er1
  5048   ac_status=$?
  5049   grep -v '^ *+' conftest.er1 >conftest.err
  5050   rm -f conftest.er1
  5051   cat conftest.err >&5
  5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5053   (exit $ac_status); } && {
  5054 	 test -z "$ac_c_werror_flag" ||
  5055 	 test ! -s conftest.err
  5056        } && test -s conftest.$ac_objext; then
  5057   eval "$as_ac_Header=yes"
  5058 else
  5059   echo "$as_me: failed program was:" >&5
  5060 sed 's/^/| /' conftest.$ac_ext >&5
  5062 	eval "$as_ac_Header=no"
  5063 fi
  5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5066 fi
  5067 ac_res=`eval echo '${'$as_ac_Header'}'`
  5068 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  5069 echo "${ECHO_T}$ac_res" >&6; }
  5070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5071   cat >>confdefs.h <<_ACEOF
  5072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5073 _ACEOF
  5075 fi
  5077 done
  5080 if test "x$with_osmesa" != xno; then
  5083 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  5084 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
  5085 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  5086   echo $ECHO_N "(cached) $ECHO_C" >&6
  5087 else
  5088   ac_check_lib_save_LIBS=$LIBS
  5089 LIBS="-lOSMesa  $LIBS"
  5090 cat >conftest.$ac_ext <<_ACEOF
  5091 /* confdefs.h.  */
  5092 _ACEOF
  5093 cat confdefs.h >>conftest.$ac_ext
  5094 cat >>conftest.$ac_ext <<_ACEOF
  5095 /* end confdefs.h.  */
  5097 /* Override any GCC internal prototype to avoid an error.
  5098    Use char because int might match the return type of a GCC
  5099    builtin and then its argument prototype would still apply.  */
  5100 #ifdef __cplusplus
  5101 extern "C"
  5102 #endif
  5103 char OSMesaCreateContext ();
  5104 int
  5105 main ()
  5107 return OSMesaCreateContext ();
  5109   return 0;
  5111 _ACEOF
  5112 rm -f conftest.$ac_objext conftest$ac_exeext
  5113 if { (ac_try="$ac_link"
  5114 case "(($ac_try" in
  5115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5116   *) ac_try_echo=$ac_try;;
  5117 esac
  5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5119   (eval "$ac_link") 2>conftest.er1
  5120   ac_status=$?
  5121   grep -v '^ *+' conftest.er1 >conftest.err
  5122   rm -f conftest.er1
  5123   cat conftest.err >&5
  5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5125   (exit $ac_status); } && {
  5126 	 test -z "$ac_c_werror_flag" ||
  5127 	 test ! -s conftest.err
  5128        } && test -s conftest$ac_exeext &&
  5129        $as_test_x conftest$ac_exeext; then
  5130   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  5131 else
  5132   echo "$as_me: failed program was:" >&5
  5133 sed 's/^/| /' conftest.$ac_ext >&5
  5135 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  5136 fi
  5138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5139       conftest$ac_exeext conftest.$ac_ext
  5140 LIBS=$ac_check_lib_save_LIBS
  5141 fi
  5142 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  5143 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  5144 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
  5145   cat >>confdefs.h <<_ACEOF
  5146 #define HAVE_LIBOSMESA 1
  5147 _ACEOF
  5149   LIBS="-lOSMesa $LIBS"
  5151 else
  5152   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  5153 See \`config.log' for more details." >&5
  5154 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  5155 See \`config.log' for more details." >&2;}
  5156    { (exit 1); exit 1; }; }
  5157 fi
  5159   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  5160   { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  5161 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
  5162 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  5163   echo $ECHO_N "(cached) $ECHO_C" >&6
  5164 fi
  5165 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  5166 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
  5167 else
  5168   # Is the header compilable?
  5169 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  5170 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
  5171 cat >conftest.$ac_ext <<_ACEOF
  5172 /* confdefs.h.  */
  5173 _ACEOF
  5174 cat confdefs.h >>conftest.$ac_ext
  5175 cat >>conftest.$ac_ext <<_ACEOF
  5176 /* end confdefs.h.  */
  5177 $ac_includes_default
  5178 #include <GL/osmesa.h>
  5179 _ACEOF
  5180 rm -f conftest.$ac_objext
  5181 if { (ac_try="$ac_compile"
  5182 case "(($ac_try" in
  5183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5184   *) ac_try_echo=$ac_try;;
  5185 esac
  5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5187   (eval "$ac_compile") 2>conftest.er1
  5188   ac_status=$?
  5189   grep -v '^ *+' conftest.er1 >conftest.err
  5190   rm -f conftest.er1
  5191   cat conftest.err >&5
  5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5193   (exit $ac_status); } && {
  5194 	 test -z "$ac_c_werror_flag" ||
  5195 	 test ! -s conftest.err
  5196        } && test -s conftest.$ac_objext; then
  5197   ac_header_compiler=yes
  5198 else
  5199   echo "$as_me: failed program was:" >&5
  5200 sed 's/^/| /' conftest.$ac_ext >&5
  5202 	ac_header_compiler=no
  5203 fi
  5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5207 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5209 # Is the header present?
  5210 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  5211 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
  5212 cat >conftest.$ac_ext <<_ACEOF
  5213 /* confdefs.h.  */
  5214 _ACEOF
  5215 cat confdefs.h >>conftest.$ac_ext
  5216 cat >>conftest.$ac_ext <<_ACEOF
  5217 /* end confdefs.h.  */
  5218 #include <GL/osmesa.h>
  5219 _ACEOF
  5220 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5221 case "(($ac_try" in
  5222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5223   *) ac_try_echo=$ac_try;;
  5224 esac
  5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5227   ac_status=$?
  5228   grep -v '^ *+' conftest.er1 >conftest.err
  5229   rm -f conftest.er1
  5230   cat conftest.err >&5
  5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5232   (exit $ac_status); } >/dev/null && {
  5233 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5234 	 test ! -s conftest.err
  5235        }; then
  5236   ac_header_preproc=yes
  5237 else
  5238   echo "$as_me: failed program was:" >&5
  5239 sed 's/^/| /' conftest.$ac_ext >&5
  5241   ac_header_preproc=no
  5242 fi
  5244 rm -f conftest.err conftest.$ac_ext
  5245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5246 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5248 # So?  What about this header?
  5249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5250   yes:no: )
  5251     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5252 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5253     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  5254 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  5255     ac_header_preproc=yes
  5256     ;;
  5257   no:yes:* )
  5258     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  5259 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  5260     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  5261 echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  5262     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  5263 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  5264     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  5265 echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5266     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  5267 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  5268     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  5269 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  5271     ;;
  5272 esac
  5273 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  5274 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
  5275 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  5276   echo $ECHO_N "(cached) $ECHO_C" >&6
  5277 else
  5278   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  5279 fi
  5280 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  5281 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
  5283 fi
  5284 if test $ac_cv_header_GL_osmesa_h = yes; then
  5286 else
  5287   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  5288 See \`config.log' for more details." >&5
  5289 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  5290 See \`config.log' for more details." >&2;}
  5291    { (exit 1); exit 1; }; }
  5292 fi
  5296 fi
  5300 if test "x$with_osmesa" != xno; then
  5301   OSMESA_DRIVER_TRUE=
  5302   OSMESA_DRIVER_FALSE='#'
  5303 else
  5304   OSMESA_DRIVER_TRUE='#'
  5305   OSMESA_DRIVER_FALSE=
  5306 fi
  5309 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5310   { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
  5311 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
  5312 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5313   echo $ECHO_N "(cached) $ECHO_C" >&6
  5314 fi
  5315 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
  5316 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
  5317 else
  5318   # Is the header compilable?
  5319 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
  5320 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
  5321 cat >conftest.$ac_ext <<_ACEOF
  5322 /* confdefs.h.  */
  5323 _ACEOF
  5324 cat confdefs.h >>conftest.$ac_ext
  5325 cat >>conftest.$ac_ext <<_ACEOF
  5326 /* end confdefs.h.  */
  5327 $ac_includes_default
  5328 #include <Carbon/Carbon.h>
  5329 _ACEOF
  5330 rm -f conftest.$ac_objext
  5331 if { (ac_try="$ac_compile"
  5332 case "(($ac_try" in
  5333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5334   *) ac_try_echo=$ac_try;;
  5335 esac
  5336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5337   (eval "$ac_compile") 2>conftest.er1
  5338   ac_status=$?
  5339   grep -v '^ *+' conftest.er1 >conftest.err
  5340   rm -f conftest.er1
  5341   cat conftest.err >&5
  5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5343   (exit $ac_status); } && {
  5344 	 test -z "$ac_c_werror_flag" ||
  5345 	 test ! -s conftest.err
  5346        } && test -s conftest.$ac_objext; then
  5347   ac_header_compiler=yes
  5348 else
  5349   echo "$as_me: failed program was:" >&5
  5350 sed 's/^/| /' conftest.$ac_ext >&5
  5352 	ac_header_compiler=no
  5353 fi
  5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5357 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5359 # Is the header present?
  5360 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
  5361 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
  5362 cat >conftest.$ac_ext <<_ACEOF
  5363 /* confdefs.h.  */
  5364 _ACEOF
  5365 cat confdefs.h >>conftest.$ac_ext
  5366 cat >>conftest.$ac_ext <<_ACEOF
  5367 /* end confdefs.h.  */
  5368 #include <Carbon/Carbon.h>
  5369 _ACEOF
  5370 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5371 case "(($ac_try" in
  5372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5373   *) ac_try_echo=$ac_try;;
  5374 esac
  5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5377   ac_status=$?
  5378   grep -v '^ *+' conftest.er1 >conftest.err
  5379   rm -f conftest.er1
  5380   cat conftest.err >&5
  5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5382   (exit $ac_status); } >/dev/null && {
  5383 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5384 	 test ! -s conftest.err
  5385        }; then
  5386   ac_header_preproc=yes
  5387 else
  5388   echo "$as_me: failed program was:" >&5
  5389 sed 's/^/| /' conftest.$ac_ext >&5
  5391   ac_header_preproc=no
  5392 fi
  5394 rm -f conftest.err conftest.$ac_ext
  5395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5396 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5398 # So?  What about this header?
  5399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5400   yes:no: )
  5401     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5402 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5403     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
  5404 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
  5405     ac_header_preproc=yes
  5406     ;;
  5407   no:yes:* )
  5408     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
  5409 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
  5410     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
  5411 echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
  5412     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
  5413 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
  5414     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
  5415 echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5416     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
  5417 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
  5418     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
  5419 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
  5421     ;;
  5422 esac
  5423 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
  5424 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
  5425 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5426   echo $ECHO_N "(cached) $ECHO_C" >&6
  5427 else
  5428   ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
  5429 fi
  5430 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
  5431 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
  5433 fi
  5434 if test $ac_cv_header_Carbon_Carbon_h = yes; then
  5436    HAVE_CARBON='yes'
  5437    APPLE_BUILD='yes'
  5438    LIBS="$LIBS -framework OpenGL -framework AGL -framework Carbon -L/usr/X11R6/lib -lGL"
  5440 cat >>confdefs.h <<\_ACEOF
  5441 #define HAVE_CARBON 1
  5442 _ACEOF
  5445 cat >>confdefs.h <<\_ACEOF
  5446 #define APPLE_BUILD 1
  5447 _ACEOF
  5450 fi
  5456 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5457 	if test -n "$ac_tool_prefix"; then
  5458   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5459 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5462 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  5463   echo $ECHO_N "(cached) $ECHO_C" >&6
  5464 else
  5465   case $PKG_CONFIG in
  5466   [\\/]* | ?:[\\/]*)
  5467   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5468   ;;
  5469   *)
  5470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5471 for as_dir in $PATH
  5472 do
  5473   IFS=$as_save_IFS
  5474   test -z "$as_dir" && as_dir=.
  5475   for ac_exec_ext in '' $ac_executable_extensions; do
  5476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5477     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5479     break 2
  5480   fi
  5481 done
  5482 done
  5483 IFS=$as_save_IFS
  5485   ;;
  5486 esac
  5487 fi
  5488 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5489 if test -n "$PKG_CONFIG"; then
  5490   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  5491 echo "${ECHO_T}$PKG_CONFIG" >&6; }
  5492 else
  5493   { echo "$as_me:$LINENO: result: no" >&5
  5494 echo "${ECHO_T}no" >&6; }
  5495 fi
  5498 fi
  5499 if test -z "$ac_cv_path_PKG_CONFIG"; then
  5500   ac_pt_PKG_CONFIG=$PKG_CONFIG
  5501   # Extract the first word of "pkg-config", so it can be a program name with args.
  5502 set dummy pkg-config; ac_word=$2
  5503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5505 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  5506   echo $ECHO_N "(cached) $ECHO_C" >&6
  5507 else
  5508   case $ac_pt_PKG_CONFIG in
  5509   [\\/]* | ?:[\\/]*)
  5510   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5511   ;;
  5512   *)
  5513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5514 for as_dir in $PATH
  5515 do
  5516   IFS=$as_save_IFS
  5517   test -z "$as_dir" && as_dir=.
  5518   for ac_exec_ext in '' $ac_executable_extensions; do
  5519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5520     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5522     break 2
  5523   fi
  5524 done
  5525 done
  5526 IFS=$as_save_IFS
  5528   ;;
  5529 esac
  5530 fi
  5531 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5532 if test -n "$ac_pt_PKG_CONFIG"; then
  5533   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  5534 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  5535 else
  5536   { echo "$as_me:$LINENO: result: no" >&5
  5537 echo "${ECHO_T}no" >&6; }
  5538 fi
  5540   if test "x$ac_pt_PKG_CONFIG" = x; then
  5541     PKG_CONFIG=""
  5542   else
  5543     case $cross_compiling:$ac_tool_warned in
  5544 yes:)
  5545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5546 whose name does not start with the host triplet.  If you think this
  5547 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5549 whose name does not start with the host triplet.  If you think this
  5550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5551 ac_tool_warned=yes ;;
  5552 esac
  5553     PKG_CONFIG=$ac_pt_PKG_CONFIG
  5554   fi
  5555 else
  5556   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5557 fi
  5559 fi
  5560 if test -n "$PKG_CONFIG"; then
  5561 	_pkg_min_version=0.9.0
  5562 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  5563 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  5564 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5565 		{ echo "$as_me:$LINENO: result: yes" >&5
  5566 echo "${ECHO_T}yes" >&6; }
  5567 	else
  5568 		{ echo "$as_me:$LINENO: result: no" >&5
  5569 echo "${ECHO_T}no" >&6; }
  5570 		PKG_CONFIG=""
  5571 	fi
  5573 fi
  5575 pkg_failed=no
  5576 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
  5577 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
  5579 if test -n "$PKG_CONFIG"; then
  5580     if test -n "$LIBPNG_CFLAGS"; then
  5581         pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  5582     else
  5583         if test -n "$PKG_CONFIG" && \
  5584     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5585   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5586   ac_status=$?
  5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5588   (exit $ac_status); }; then
  5589   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  5590 else
  5591   pkg_failed=yes
  5592 fi
  5593     fi
  5594 else
  5595 	pkg_failed=untried
  5596 fi
  5597 if test -n "$PKG_CONFIG"; then
  5598     if test -n "$LIBPNG_LIBS"; then
  5599         pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  5600     else
  5601         if test -n "$PKG_CONFIG" && \
  5602     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5603   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5604   ac_status=$?
  5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5606   (exit $ac_status); }; then
  5607   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  5608 else
  5609   pkg_failed=yes
  5610 fi
  5611     fi
  5612 else
  5613 	pkg_failed=untried
  5614 fi
  5618 if test $pkg_failed = yes; then
  5620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5621         _pkg_short_errors_supported=yes
  5622 else
  5623         _pkg_short_errors_supported=no
  5624 fi
  5625         if test $_pkg_short_errors_supported = yes; then
  5626 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
  5627         else
  5628 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
  5629         fi
  5630 	# Put the nasty error message in config.log where it belongs
  5631 	echo "$LIBPNG_PKG_ERRORS" >&5
  5633 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  5635 $LIBPNG_PKG_ERRORS
  5637 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5638 installed software in a non-standard prefix.
  5640 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5641 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5642 See the pkg-config man page for more details.
  5643 " >&5
  5644 echo "$as_me: error: Package requirements (libpng ) were not met:
  5646 $LIBPNG_PKG_ERRORS
  5648 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5649 installed software in a non-standard prefix.
  5651 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5652 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5653 See the pkg-config man page for more details.
  5654 " >&2;}
  5655    { (exit 1); exit 1; }; }
  5656 elif test $pkg_failed = untried; then
  5657 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  5658 is in your PATH or set the PKG_CONFIG environment variable to the full
  5659 path to pkg-config.
  5661 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5662 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5663 See the pkg-config man page for more details.
  5665 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5666 See \`config.log' for more details." >&5
  5667 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  5668 is in your PATH or set the PKG_CONFIG environment variable to the full
  5669 path to pkg-config.
  5671 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5672 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5673 See the pkg-config man page for more details.
  5675 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5676 See \`config.log' for more details." >&2;}
  5677    { (exit 1); exit 1; }; }
  5678 else
  5679 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  5680 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  5681         { echo "$as_me:$LINENO: result: yes" >&5
  5682 echo "${ECHO_T}yes" >&6; }
  5684 fi
  5687 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  5688 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
  5689 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  5690   echo $ECHO_N "(cached) $ECHO_C" >&6
  5691 else
  5692   ac_check_lib_save_LIBS=$LIBS
  5693 LIBS="-lz  $LIBS"
  5694 cat >conftest.$ac_ext <<_ACEOF
  5695 /* confdefs.h.  */
  5696 _ACEOF
  5697 cat confdefs.h >>conftest.$ac_ext
  5698 cat >>conftest.$ac_ext <<_ACEOF
  5699 /* end confdefs.h.  */
  5701 /* Override any GCC internal prototype to avoid an error.
  5702    Use char because int might match the return type of a GCC
  5703    builtin and then its argument prototype would still apply.  */
  5704 #ifdef __cplusplus
  5705 extern "C"
  5706 #endif
  5707 char uncompress ();
  5708 int
  5709 main ()
  5711 return uncompress ();
  5713   return 0;
  5715 _ACEOF
  5716 rm -f conftest.$ac_objext conftest$ac_exeext
  5717 if { (ac_try="$ac_link"
  5718 case "(($ac_try" in
  5719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5720   *) ac_try_echo=$ac_try;;
  5721 esac
  5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5723   (eval "$ac_link") 2>conftest.er1
  5724   ac_status=$?
  5725   grep -v '^ *+' conftest.er1 >conftest.err
  5726   rm -f conftest.er1
  5727   cat conftest.err >&5
  5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5729   (exit $ac_status); } && {
  5730 	 test -z "$ac_c_werror_flag" ||
  5731 	 test ! -s conftest.err
  5732        } && test -s conftest$ac_exeext &&
  5733        $as_test_x conftest$ac_exeext; then
  5734   ac_cv_lib_z_uncompress=yes
  5735 else
  5736   echo "$as_me: failed program was:" >&5
  5737 sed 's/^/| /' conftest.$ac_ext >&5
  5739 	ac_cv_lib_z_uncompress=no
  5740 fi
  5742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5743       conftest$ac_exeext conftest.$ac_ext
  5744 LIBS=$ac_check_lib_save_LIBS
  5745 fi
  5746 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  5747 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
  5748 if test $ac_cv_lib_z_uncompress = yes; then
  5749   cat >>confdefs.h <<_ACEOF
  5750 #define HAVE_LIBZ 1
  5751 _ACEOF
  5753   LIBS="-lz $LIBS"
  5755 else
  5757     echo "Zlib (libz.so) could not be found, but is required."
  5758     exit 1
  5759 fi
  5762 if test "$APPLE_BUILD" != 'yes'; then
  5763 if test "x$with_osmesa" == "xno"; then
  5765 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
  5766 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
  5767 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
  5768   echo $ECHO_N "(cached) $ECHO_C" >&6
  5769 else
  5770   ac_check_lib_save_LIBS=$LIBS
  5771 LIBS="-lGL  $LIBS"
  5772 cat >conftest.$ac_ext <<_ACEOF
  5773 /* confdefs.h.  */
  5774 _ACEOF
  5775 cat confdefs.h >>conftest.$ac_ext
  5776 cat >>conftest.$ac_ext <<_ACEOF
  5777 /* end confdefs.h.  */
  5779 /* Override any GCC internal prototype to avoid an error.
  5780    Use char because int might match the return type of a GCC
  5781    builtin and then its argument prototype would still apply.  */
  5782 #ifdef __cplusplus
  5783 extern "C"
  5784 #endif
  5785 char glXQueryVersion ();
  5786 int
  5787 main ()
  5789 return glXQueryVersion ();
  5791   return 0;
  5793 _ACEOF
  5794 rm -f conftest.$ac_objext conftest$ac_exeext
  5795 if { (ac_try="$ac_link"
  5796 case "(($ac_try" in
  5797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5798   *) ac_try_echo=$ac_try;;
  5799 esac
  5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5801   (eval "$ac_link") 2>conftest.er1
  5802   ac_status=$?
  5803   grep -v '^ *+' conftest.er1 >conftest.err
  5804   rm -f conftest.er1
  5805   cat conftest.err >&5
  5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5807   (exit $ac_status); } && {
  5808 	 test -z "$ac_c_werror_flag" ||
  5809 	 test ! -s conftest.err
  5810        } && test -s conftest$ac_exeext &&
  5811        $as_test_x conftest$ac_exeext; then
  5812   ac_cv_lib_GL_glXQueryVersion=yes
  5813 else
  5814   echo "$as_me: failed program was:" >&5
  5815 sed 's/^/| /' conftest.$ac_ext >&5
  5817 	ac_cv_lib_GL_glXQueryVersion=no
  5818 fi
  5820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5821       conftest$ac_exeext conftest.$ac_ext
  5822 LIBS=$ac_check_lib_save_LIBS
  5823 fi
  5824 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
  5825 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
  5826 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
  5827   cat >>confdefs.h <<_ACEOF
  5828 #define HAVE_LIBGL 1
  5829 _ACEOF
  5831   LIBS="-lGL $LIBS"
  5833 else
  5835     echo "The OpenGL library (libGL.so) could not be found, but is required."
  5836     exit 1
  5837 fi
  5839 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5840   { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5841 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5842 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5843   echo $ECHO_N "(cached) $ECHO_C" >&6
  5844 fi
  5845 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5846 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5847 else
  5848   # Is the header compilable?
  5849 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  5850 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
  5851 cat >conftest.$ac_ext <<_ACEOF
  5852 /* confdefs.h.  */
  5853 _ACEOF
  5854 cat confdefs.h >>conftest.$ac_ext
  5855 cat >>conftest.$ac_ext <<_ACEOF
  5856 /* end confdefs.h.  */
  5857 $ac_includes_default
  5858 #include <GL/gl.h>
  5859 _ACEOF
  5860 rm -f conftest.$ac_objext
  5861 if { (ac_try="$ac_compile"
  5862 case "(($ac_try" in
  5863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5864   *) ac_try_echo=$ac_try;;
  5865 esac
  5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5867   (eval "$ac_compile") 2>conftest.er1
  5868   ac_status=$?
  5869   grep -v '^ *+' conftest.er1 >conftest.err
  5870   rm -f conftest.er1
  5871   cat conftest.err >&5
  5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5873   (exit $ac_status); } && {
  5874 	 test -z "$ac_c_werror_flag" ||
  5875 	 test ! -s conftest.err
  5876        } && test -s conftest.$ac_objext; then
  5877   ac_header_compiler=yes
  5878 else
  5879   echo "$as_me: failed program was:" >&5
  5880 sed 's/^/| /' conftest.$ac_ext >&5
  5882 	ac_header_compiler=no
  5883 fi
  5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5887 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5889 # Is the header present?
  5890 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  5891 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
  5892 cat >conftest.$ac_ext <<_ACEOF
  5893 /* confdefs.h.  */
  5894 _ACEOF
  5895 cat confdefs.h >>conftest.$ac_ext
  5896 cat >>conftest.$ac_ext <<_ACEOF
  5897 /* end confdefs.h.  */
  5898 #include <GL/gl.h>
  5899 _ACEOF
  5900 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5901 case "(($ac_try" in
  5902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5903   *) ac_try_echo=$ac_try;;
  5904 esac
  5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5907   ac_status=$?
  5908   grep -v '^ *+' conftest.er1 >conftest.err
  5909   rm -f conftest.er1
  5910   cat conftest.err >&5
  5911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5912   (exit $ac_status); } >/dev/null && {
  5913 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5914 	 test ! -s conftest.err
  5915        }; then
  5916   ac_header_preproc=yes
  5917 else
  5918   echo "$as_me: failed program was:" >&5
  5919 sed 's/^/| /' conftest.$ac_ext >&5
  5921   ac_header_preproc=no
  5922 fi
  5924 rm -f conftest.err conftest.$ac_ext
  5925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5926 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5928 # So?  What about this header?
  5929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5930   yes:no: )
  5931     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5932 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5933     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  5934 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  5935     ac_header_preproc=yes
  5936     ;;
  5937   no:yes:* )
  5938     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  5939 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  5940     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  5941 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  5942     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  5943 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  5944     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  5945 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5946     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  5947 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  5948     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  5949 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  5951     ;;
  5952 esac
  5953 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5954 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5955 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5956   echo $ECHO_N "(cached) $ECHO_C" >&6
  5957 else
  5958   ac_cv_header_GL_gl_h=$ac_header_preproc
  5959 fi
  5960 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5961 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5963 fi
  5964 if test $ac_cv_header_GL_gl_h = yes; then
  5966 else
  5968     echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
  5969     exit 1
  5970 fi
  5973 fi
  5974 fi
  5977 pkg_failed=no
  5978 { echo "$as_me:$LINENO: checking for GTK" >&5
  5979 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
  5981 if test -n "$PKG_CONFIG"; then
  5982     if test -n "$GTK_CFLAGS"; then
  5983         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  5984     else
  5985         if test -n "$PKG_CONFIG" && \
  5986     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  5987   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  5988   ac_status=$?
  5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5990   (exit $ac_status); }; then
  5991   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  5992 else
  5993   pkg_failed=yes
  5994 fi
  5995     fi
  5996 else
  5997 	pkg_failed=untried
  5998 fi
  5999 if test -n "$PKG_CONFIG"; then
  6000     if test -n "$GTK_LIBS"; then
  6001         pkg_cv_GTK_LIBS="$GTK_LIBS"
  6002     else
  6003         if test -n "$PKG_CONFIG" && \
  6004     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  6005   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  6006   ac_status=$?
  6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6008   (exit $ac_status); }; then
  6009   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  6010 else
  6011   pkg_failed=yes
  6012 fi
  6013     fi
  6014 else
  6015 	pkg_failed=untried
  6016 fi
  6020 if test $pkg_failed = yes; then
  6022 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6023         _pkg_short_errors_supported=yes
  6024 else
  6025         _pkg_short_errors_supported=no
  6026 fi
  6027         if test $_pkg_short_errors_supported = yes; then
  6028 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
  6029         else
  6030 	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
  6031         fi
  6032 	# Put the nasty error message in config.log where it belongs
  6033 	echo "$GTK_PKG_ERRORS" >&5
  6035 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  6037 $GTK_PKG_ERRORS
  6039 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6040 installed software in a non-standard prefix.
  6042 Alternatively, you may set the environment variables GTK_CFLAGS
  6043 and GTK_LIBS to avoid the need to call pkg-config.
  6044 See the pkg-config man page for more details.
  6045 " >&5
  6046 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  6048 $GTK_PKG_ERRORS
  6050 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6051 installed software in a non-standard prefix.
  6053 Alternatively, you may set the environment variables GTK_CFLAGS
  6054 and GTK_LIBS to avoid the need to call pkg-config.
  6055 See the pkg-config man page for more details.
  6056 " >&2;}
  6057    { (exit 1); exit 1; }; }
  6058 elif test $pkg_failed = untried; then
  6059 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  6060 is in your PATH or set the PKG_CONFIG environment variable to the full
  6061 path to pkg-config.
  6063 Alternatively, you may set the environment variables GTK_CFLAGS
  6064 and GTK_LIBS to avoid the need to call pkg-config.
  6065 See the pkg-config man page for more details.
  6067 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  6068 See \`config.log' for more details." >&5
  6069 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  6070 is in your PATH or set the PKG_CONFIG environment variable to the full
  6071 path to pkg-config.
  6073 Alternatively, you may set the environment variables GTK_CFLAGS
  6074 and GTK_LIBS to avoid the need to call pkg-config.
  6075 See the pkg-config man page for more details.
  6077 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  6078 See \`config.log' for more details." >&2;}
  6079    { (exit 1); exit 1; }; }
  6080 else
  6081 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  6082 	GTK_LIBS=$pkg_cv_GTK_LIBS
  6083         { echo "$as_me:$LINENO: result: yes" >&5
  6084 echo "${ECHO_T}yes" >&6; }
  6086     HAVE_GTK='yes'
  6088 cat >>confdefs.h <<\_ACEOF
  6089 #define HAVE_GTK 1
  6090 _ACEOF
  6093 fi
  6097 if test "$HAVE_CARBON" = 'yes'; then
  6098   GUI_CARBON_TRUE=
  6099   GUI_CARBON_FALSE='#'
  6100 else
  6101   GUI_CARBON_TRUE='#'
  6102   GUI_CARBON_FALSE=
  6103 fi
  6107 if test "$HAVE_GTK" = 'yes'; then
  6108   GUI_GTK_TRUE=
  6109   GUI_GTK_FALSE='#'
  6110 else
  6111   GUI_GTK_TRUE='#'
  6112   GUI_GTK_FALSE=
  6113 fi
  6116 case $host_cpu in
  6117     i386|i486|i586|i686)
  6118 	SH4_TRANSLATOR="x86"
  6120 cat >>confdefs.h <<_ACEOF
  6121 #define SH4_TRANSLATOR TARGET_X86
  6122 _ACEOF
  6123 ;;
  6124     x86_64)
  6125 	SH4_TRANSLATOR="x86_64"
  6127 cat >>confdefs.h <<_ACEOF
  6128 #define SH4_TRANSLATOR TARGET_X86_64
  6129 _ACEOF
  6130 ;;
  6131     *)
  6132 	echo "Warning: No translator available for $host. Building emulation core only";;
  6133 esac
  6136 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
  6137   BUILD_SH4X86_TRUE=
  6138   BUILD_SH4X86_FALSE='#'
  6139 else
  6140   BUILD_SH4X86_TRUE='#'
  6141   BUILD_SH4X86_FALSE=
  6142 fi
  6146 if test "$SH4_TRANSLATOR" = "x86_64"; then
  6147   BUILD_X86_64_TRUE=
  6148   BUILD_X86_64_FALSE='#'
  6149 else
  6150   BUILD_X86_64_TRUE='#'
  6151   BUILD_X86_64_FALSE=
  6152 fi
  6156 pkg_failed=no
  6157 { echo "$as_me:$LINENO: checking for ESOUND" >&5
  6158 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
  6160 if test -n "$PKG_CONFIG"; then
  6161     if test -n "$ESOUND_CFLAGS"; then
  6162         pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
  6163     else
  6164         if test -n "$PKG_CONFIG" && \
  6165     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  6166   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  6167   ac_status=$?
  6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6169   (exit $ac_status); }; then
  6170   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  6171 else
  6172   pkg_failed=yes
  6173 fi
  6174     fi
  6175 else
  6176 	pkg_failed=untried
  6177 fi
  6178 if test -n "$PKG_CONFIG"; then
  6179     if test -n "$ESOUND_LIBS"; then
  6180         pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
  6181     else
  6182         if test -n "$PKG_CONFIG" && \
  6183     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  6184   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  6185   ac_status=$?
  6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6187   (exit $ac_status); }; then
  6188   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  6189 else
  6190   pkg_failed=yes
  6191 fi
  6192     fi
  6193 else
  6194 	pkg_failed=untried
  6195 fi
  6199 if test $pkg_failed = yes; then
  6201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6202         _pkg_short_errors_supported=yes
  6203 else
  6204         _pkg_short_errors_supported=no
  6205 fi
  6206         if test $_pkg_short_errors_supported = yes; then
  6207 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
  6208         else
  6209 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
  6210         fi
  6211 	# Put the nasty error message in config.log where it belongs
  6212 	echo "$ESOUND_PKG_ERRORS" >&5
  6214 	{ echo "$as_me:$LINENO: result: no" >&5
  6215 echo "${ECHO_T}no" >&6; }
  6216                  echo "Warning: esound not found - building without esd audio support"
  6217 elif test $pkg_failed = untried; then
  6218 	 echo "Warning: esound not found - building without esd audio support"
  6219 else
  6220 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
  6221 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
  6222         { echo "$as_me:$LINENO: result: yes" >&5
  6223 echo "${ECHO_T}yes" >&6; }
  6225      HAVE_ESOUND='yes'
  6227 cat >>confdefs.h <<\_ACEOF
  6228 #define HAVE_ESOUND 1
  6229 _ACEOF
  6231 fi
  6234 if test "$HAVE_ESOUND" = 'yes' ; then
  6235   AUDIO_ESOUND_TRUE=
  6236   AUDIO_ESOUND_FALSE='#'
  6237 else
  6238   AUDIO_ESOUND_TRUE='#'
  6239   AUDIO_ESOUND_FALSE=
  6240 fi
  6244 pkg_failed=no
  6245 { echo "$as_me:$LINENO: checking for ALSA" >&5
  6246 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
  6248 if test -n "$PKG_CONFIG"; then
  6249     if test -n "$ALSA_CFLAGS"; then
  6250         pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
  6251     else
  6252         if test -n "$PKG_CONFIG" && \
  6253     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  6254   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  6255   ac_status=$?
  6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6257   (exit $ac_status); }; then
  6258   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
  6259 else
  6260   pkg_failed=yes
  6261 fi
  6262     fi
  6263 else
  6264 	pkg_failed=untried
  6265 fi
  6266 if test -n "$PKG_CONFIG"; then
  6267     if test -n "$ALSA_LIBS"; then
  6268         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
  6269     else
  6270         if test -n "$PKG_CONFIG" && \
  6271     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  6272   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  6273   ac_status=$?
  6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6275   (exit $ac_status); }; then
  6276   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
  6277 else
  6278   pkg_failed=yes
  6279 fi
  6280     fi
  6281 else
  6282 	pkg_failed=untried
  6283 fi
  6287 if test $pkg_failed = yes; then
  6289 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6290         _pkg_short_errors_supported=yes
  6291 else
  6292         _pkg_short_errors_supported=no
  6293 fi
  6294         if test $_pkg_short_errors_supported = yes; then
  6295 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
  6296         else
  6297 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
  6298         fi
  6299 	# Put the nasty error message in config.log where it belongs
  6300 	echo "$ALSA_PKG_ERRORS" >&5
  6302 	{ echo "$as_me:$LINENO: result: no" >&5
  6303 echo "${ECHO_T}no" >&6; }
  6304                  echo "Warning: alsa not found - building without alsa audio support"
  6305 elif test $pkg_failed = untried; then
  6306 	 echo "Warning: alsa not found - building without alsa audio support"
  6307 else
  6308 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
  6309 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
  6310         { echo "$as_me:$LINENO: result: yes" >&5
  6311 echo "${ECHO_T}yes" >&6; }
  6313      HAVE_ALSA='yes'
  6315 cat >>confdefs.h <<\_ACEOF
  6316 #define HAVE_ALSA 1
  6317 _ACEOF
  6319 fi
  6322 if test "$HAVE_ALSA" = 'yes' ; then
  6323   AUDIO_ALSA_TRUE=
  6324   AUDIO_ALSA_FALSE='#'
  6325 else
  6326   AUDIO_ALSA_TRUE='#'
  6327   AUDIO_ALSA_FALSE=
  6328 fi
  6331 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6332   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  6333 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  6334 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6335   echo $ECHO_N "(cached) $ECHO_C" >&6
  6336 fi
  6337 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  6338 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  6339 else
  6340   # Is the header compilable?
  6341 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  6342 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
  6343 cat >conftest.$ac_ext <<_ACEOF
  6344 /* confdefs.h.  */
  6345 _ACEOF
  6346 cat confdefs.h >>conftest.$ac_ext
  6347 cat >>conftest.$ac_ext <<_ACEOF
  6348 /* end confdefs.h.  */
  6349 $ac_includes_default
  6350 #include <linux/cdrom.h>
  6351 _ACEOF
  6352 rm -f conftest.$ac_objext
  6353 if { (ac_try="$ac_compile"
  6354 case "(($ac_try" in
  6355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6356   *) ac_try_echo=$ac_try;;
  6357 esac
  6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6359   (eval "$ac_compile") 2>conftest.er1
  6360   ac_status=$?
  6361   grep -v '^ *+' conftest.er1 >conftest.err
  6362   rm -f conftest.er1
  6363   cat conftest.err >&5
  6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6365   (exit $ac_status); } && {
  6366 	 test -z "$ac_c_werror_flag" ||
  6367 	 test ! -s conftest.err
  6368        } && test -s conftest.$ac_objext; then
  6369   ac_header_compiler=yes
  6370 else
  6371   echo "$as_me: failed program was:" >&5
  6372 sed 's/^/| /' conftest.$ac_ext >&5
  6374 	ac_header_compiler=no
  6375 fi
  6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6379 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6381 # Is the header present?
  6382 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  6383 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
  6384 cat >conftest.$ac_ext <<_ACEOF
  6385 /* confdefs.h.  */
  6386 _ACEOF
  6387 cat confdefs.h >>conftest.$ac_ext
  6388 cat >>conftest.$ac_ext <<_ACEOF
  6389 /* end confdefs.h.  */
  6390 #include <linux/cdrom.h>
  6391 _ACEOF
  6392 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6393 case "(($ac_try" in
  6394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6395   *) ac_try_echo=$ac_try;;
  6396 esac
  6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6399   ac_status=$?
  6400   grep -v '^ *+' conftest.er1 >conftest.err
  6401   rm -f conftest.er1
  6402   cat conftest.err >&5
  6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6404   (exit $ac_status); } >/dev/null && {
  6405 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6406 	 test ! -s conftest.err
  6407        }; then
  6408   ac_header_preproc=yes
  6409 else
  6410   echo "$as_me: failed program was:" >&5
  6411 sed 's/^/| /' conftest.$ac_ext >&5
  6413   ac_header_preproc=no
  6414 fi
  6416 rm -f conftest.err conftest.$ac_ext
  6417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6418 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6420 # So?  What about this header?
  6421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6422   yes:no: )
  6423     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6424 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6425     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
  6426 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
  6427     ac_header_preproc=yes
  6428     ;;
  6429   no:yes:* )
  6430     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
  6431 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
  6432     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
  6433 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
  6434     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
  6435 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
  6436     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
  6437 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6438     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
  6439 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
  6440     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
  6441 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
  6443     ;;
  6444 esac
  6445 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  6446 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  6447 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6448   echo $ECHO_N "(cached) $ECHO_C" >&6
  6449 else
  6450   ac_cv_header_linux_cdrom_h=$ac_header_preproc
  6451 fi
  6452 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  6453 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  6455 fi
  6456 if test $ac_cv_header_linux_cdrom_h = yes; then
  6457   HAVE_LINUX_CDROM_H=yes
  6458 else
  6460     echo "Linux CDROM support not found, building without it."
  6461 fi
  6466 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
  6467   CDROM_LINUX_TRUE=
  6468   CDROM_LINUX_FALSE='#'
  6469 else
  6470   CDROM_LINUX_TRUE='#'
  6471   CDROM_LINUX_FALSE=
  6472 fi
  6475 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6476   { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  6477 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
  6478 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6479   echo $ECHO_N "(cached) $ECHO_C" >&6
  6480 fi
  6481 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  6482 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
  6483 else
  6484   # Is the header compilable?
  6485 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
  6486 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
  6487 cat >conftest.$ac_ext <<_ACEOF
  6488 /* confdefs.h.  */
  6489 _ACEOF
  6490 cat confdefs.h >>conftest.$ac_ext
  6491 cat >>conftest.$ac_ext <<_ACEOF
  6492 /* end confdefs.h.  */
  6493 $ac_includes_default
  6494 #include <linux/joystick.h>
  6495 _ACEOF
  6496 rm -f conftest.$ac_objext
  6497 if { (ac_try="$ac_compile"
  6498 case "(($ac_try" in
  6499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6500   *) ac_try_echo=$ac_try;;
  6501 esac
  6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6503   (eval "$ac_compile") 2>conftest.er1
  6504   ac_status=$?
  6505   grep -v '^ *+' conftest.er1 >conftest.err
  6506   rm -f conftest.er1
  6507   cat conftest.err >&5
  6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6509   (exit $ac_status); } && {
  6510 	 test -z "$ac_c_werror_flag" ||
  6511 	 test ! -s conftest.err
  6512        } && test -s conftest.$ac_objext; then
  6513   ac_header_compiler=yes
  6514 else
  6515   echo "$as_me: failed program was:" >&5
  6516 sed 's/^/| /' conftest.$ac_ext >&5
  6518 	ac_header_compiler=no
  6519 fi
  6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6523 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6525 # Is the header present?
  6526 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
  6527 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
  6528 cat >conftest.$ac_ext <<_ACEOF
  6529 /* confdefs.h.  */
  6530 _ACEOF
  6531 cat confdefs.h >>conftest.$ac_ext
  6532 cat >>conftest.$ac_ext <<_ACEOF
  6533 /* end confdefs.h.  */
  6534 #include <linux/joystick.h>
  6535 _ACEOF
  6536 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6537 case "(($ac_try" in
  6538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6539   *) ac_try_echo=$ac_try;;
  6540 esac
  6541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6542   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6543   ac_status=$?
  6544   grep -v '^ *+' conftest.er1 >conftest.err
  6545   rm -f conftest.er1
  6546   cat conftest.err >&5
  6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6548   (exit $ac_status); } >/dev/null && {
  6549 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6550 	 test ! -s conftest.err
  6551        }; then
  6552   ac_header_preproc=yes
  6553 else
  6554   echo "$as_me: failed program was:" >&5
  6555 sed 's/^/| /' conftest.$ac_ext >&5
  6557   ac_header_preproc=no
  6558 fi
  6560 rm -f conftest.err conftest.$ac_ext
  6561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6562 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6564 # So?  What about this header?
  6565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6566   yes:no: )
  6567     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6568 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6569     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
  6570 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
  6571     ac_header_preproc=yes
  6572     ;;
  6573   no:yes:* )
  6574     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
  6575 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
  6576     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
  6577 echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
  6578     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
  6579 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
  6580     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
  6581 echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6582     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
  6583 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
  6584     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
  6585 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
  6587     ;;
  6588 esac
  6589 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  6590 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
  6591 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6592   echo $ECHO_N "(cached) $ECHO_C" >&6
  6593 else
  6594   ac_cv_header_linux_joystick_h=$ac_header_preproc
  6595 fi
  6596 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  6597 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
  6599 fi
  6600 if test $ac_cv_header_linux_joystick_h = yes; then
  6602     HAVE_LINUX_JOYSTICK_H=yes
  6604 cat >>confdefs.h <<\_ACEOF
  6605 #define HAVE_LINUX_JOYSTICK 1
  6606 _ACEOF
  6608 else
  6609    echo "Linux Joystick support not found, building without it."
  6610 fi
  6615 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
  6616   JOY_LINUX_TRUE=
  6617   JOY_LINUX_FALSE='#'
  6618 else
  6619   JOY_LINUX_TRUE='#'
  6620   JOY_LINUX_FALSE=
  6621 fi
  6624 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
  6625 set dummy sh-elf-gcc; ac_word=$2
  6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6628 if test "${ac_cv_path_SHCC+set}" = set; then
  6629   echo $ECHO_N "(cached) $ECHO_C" >&6
  6630 else
  6631   case $SHCC in
  6632   [\\/]* | ?:[\\/]*)
  6633   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
  6634   ;;
  6635   *)
  6636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6637 for as_dir in $PATH
  6638 do
  6639   IFS=$as_save_IFS
  6640   test -z "$as_dir" && as_dir=.
  6641   for ac_exec_ext in '' $ac_executable_extensions; do
  6642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6643     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
  6644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6645     break 2
  6646   fi
  6647 done
  6648 done
  6649 IFS=$as_save_IFS
  6651   ;;
  6652 esac
  6653 fi
  6654 SHCC=$ac_cv_path_SHCC
  6655 if test -n "$SHCC"; then
  6656   { echo "$as_me:$LINENO: result: $SHCC" >&5
  6657 echo "${ECHO_T}$SHCC" >&6; }
  6658 else
  6659   { echo "$as_me:$LINENO: result: no" >&5
  6660 echo "${ECHO_T}no" >&6; }
  6661 fi
  6664 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
  6665 set dummy sh-elf-ld; ac_word=$2
  6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6668 if test "${ac_cv_path_SHLD+set}" = set; then
  6669   echo $ECHO_N "(cached) $ECHO_C" >&6
  6670 else
  6671   case $SHLD in
  6672   [\\/]* | ?:[\\/]*)
  6673   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
  6674   ;;
  6675   *)
  6676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6677 for as_dir in $PATH
  6678 do
  6679   IFS=$as_save_IFS
  6680   test -z "$as_dir" && as_dir=.
  6681   for ac_exec_ext in '' $ac_executable_extensions; do
  6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6683     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
  6684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6685     break 2
  6686   fi
  6687 done
  6688 done
  6689 IFS=$as_save_IFS
  6691   ;;
  6692 esac
  6693 fi
  6694 SHLD=$ac_cv_path_SHLD
  6695 if test -n "$SHLD"; then
  6696   { echo "$as_me:$LINENO: result: $SHLD" >&5
  6697 echo "${ECHO_T}$SHLD" >&6; }
  6698 else
  6699   { echo "$as_me:$LINENO: result: no" >&5
  6700 echo "${ECHO_T}no" >&6; }
  6701 fi
  6704 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
  6705 set dummy sh-elf-objcopy; ac_word=$2
  6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6708 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
  6709   echo $ECHO_N "(cached) $ECHO_C" >&6
  6710 else
  6711   case $SHOBJCOPY in
  6712   [\\/]* | ?:[\\/]*)
  6713   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
  6714   ;;
  6715   *)
  6716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6717 for as_dir in $PATH
  6718 do
  6719   IFS=$as_save_IFS
  6720   test -z "$as_dir" && as_dir=.
  6721   for ac_exec_ext in '' $ac_executable_extensions; do
  6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6723     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  6724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6725     break 2
  6726   fi
  6727 done
  6728 done
  6729 IFS=$as_save_IFS
  6731   ;;
  6732 esac
  6733 fi
  6734 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
  6735 if test -n "$SHOBJCOPY"; then
  6736   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
  6737 echo "${ECHO_T}$SHOBJCOPY" >&6; }
  6738 else
  6739   { echo "$as_me:$LINENO: result: no" >&5
  6740 echo "${ECHO_T}no" >&6; }
  6741 fi
  6744 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
  6745 set dummy arm-elf-gcc; ac_word=$2
  6746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6748 if test "${ac_cv_path_ARMCC+set}" = set; then