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