Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 704:2c1d6f8e69e7
prev702:d39fc81e9630
next709:18c39a8e504c
author nkeynes
date Mon Jun 23 05:03:29 2008 +0000 (15 years ago)
permissions -rwxr-xr-x
last change Move with_gtk no default into the apple block, not the 'we have a working objective-c compiler' block.
view annotate diff log raw
     1 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.62.
     4 #
     5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
    41 '
    42 export as_nl
    43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
    44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
    47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
    48   as_echo='printf %s\n'
    49   as_echo_n='printf %s'
    50 else
    51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    53     as_echo_n='/usr/ucb/echo -n'
    54   else
    55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    56     as_echo_n_body='eval
    57       arg=$1;
    58       case $arg in
    59       *"$as_nl"*)
    60 	expr "X$arg" : "X\\(.*\\)$as_nl";
    61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
    62       esac;
    63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    64     '
    65     export as_echo_n_body
    66     as_echo_n='sh -c $as_echo_n_body as_echo'
    67   fi
    68   export as_echo_body
    69   as_echo='sh -c $as_echo_body as_echo'
    70 fi
    72 # The user is always right.
    73 if test "${PATH_SEPARATOR+set}" != set; then
    74   PATH_SEPARATOR=:
    75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
    77       PATH_SEPARATOR=';'
    78   }
    79 fi
    81 # Support unset when possible.
    82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    83   as_unset=unset
    84 else
    85   as_unset=false
    86 fi
    89 # IFS
    90 # We need space, tab and new line, in precisely that order.  Quoting is
    91 # there to prevent editors from complaining about space-tab.
    92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    93 # splitting by setting IFS to empty value.)
    94 IFS=" ""	$as_nl"
    96 # Find who we are.  Look in the path if we contain no directory separator.
    97 case $0 in
    98   *[\\/]* ) as_myself=$0 ;;
    99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   100 for as_dir in $PATH
   101 do
   102   IFS=$as_save_IFS
   103   test -z "$as_dir" && as_dir=.
   104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   105 done
   106 IFS=$as_save_IFS
   108      ;;
   109 esac
   110 # We did not find ourselves, most probably we were run as `sh COMMAND'
   111 # in which case we are not to be found in the path.
   112 if test "x$as_myself" = x; then
   113   as_myself=$0
   114 fi
   115 if test ! -f "$as_myself"; then
   116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   117   { (exit 1); exit 1; }
   118 fi
   120 # Work around bugs in pre-3.0 UWIN ksh.
   121 for as_var in ENV MAIL MAILPATH
   122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   123 done
   124 PS1='$ '
   125 PS2='> '
   126 PS4='+ '
   128 # NLS nuisances.
   129 LC_ALL=C
   130 export LC_ALL
   131 LANGUAGE=C
   132 export LANGUAGE
   134 # Required to use basename.
   135 if expr a : '\(a\)' >/dev/null 2>&1 &&
   136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   137   as_expr=expr
   138 else
   139   as_expr=false
   140 fi
   142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   143   as_basename=basename
   144 else
   145   as_basename=false
   146 fi
   149 # Name of the executable.
   150 as_me=`$as_basename -- "$0" ||
   151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   152 	 X"$0" : 'X\(//\)$' \| \
   153 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   154 $as_echo X/"$0" |
   155     sed '/^.*\/\([^/][^/]*\)\/*$/{
   156 	    s//\1/
   157 	    q
   158 	  }
   159 	  /^X\/\(\/\/\)$/{
   160 	    s//\1/
   161 	    q
   162 	  }
   163 	  /^X\/\(\/\).*/{
   164 	    s//\1/
   165 	    q
   166 	  }
   167 	  s/.*/./; q'`
   169 # CDPATH.
   170 $as_unset CDPATH
   173 if test "x$CONFIG_SHELL" = x; then
   174   if (eval ":") 2>/dev/null; then
   175   as_have_required=yes
   176 else
   177   as_have_required=no
   178 fi
   180   if test $as_have_required = yes &&	 (eval ":
   181 (as_func_return () {
   182   (exit \$1)
   183 }
   184 as_func_success () {
   185   as_func_return 0
   186 }
   187 as_func_failure () {
   188   as_func_return 1
   189 }
   190 as_func_ret_success () {
   191   return 0
   192 }
   193 as_func_ret_failure () {
   194   return 1
   195 }
   197 exitcode=0
   198 if as_func_success; then
   199   :
   200 else
   201   exitcode=1
   202   echo as_func_success failed.
   203 fi
   205 if as_func_failure; then
   206   exitcode=1
   207   echo as_func_failure succeeded.
   208 fi
   210 if as_func_ret_success; then
   211   :
   212 else
   213   exitcode=1
   214   echo as_func_ret_success failed.
   215 fi
   217 if as_func_ret_failure; then
   218   exitcode=1
   219   echo as_func_ret_failure succeeded.
   220 fi
   222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   223   :
   224 else
   225   exitcode=1
   226   echo positional parameters were not saved.
   227 fi
   229 test \$exitcode = 0) || { (exit 1); exit 1; }
   231 (
   232   as_lineno_1=\$LINENO
   233   as_lineno_2=\$LINENO
   234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
   235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
   236 ") 2> /dev/null; then
   237   :
   238 else
   239   as_candidate_shells=
   240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   242 do
   243   IFS=$as_save_IFS
   244   test -z "$as_dir" && as_dir=.
   245   case $as_dir in
   246 	 /*)
   247 	   for as_base in sh bash ksh sh5; do
   248 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
   249 	   done;;
   250        esac
   251 done
   252 IFS=$as_save_IFS
   255       for as_shell in $as_candidate_shells $SHELL; do
   256 	 # Try only shells that exist, to save several forks.
   257 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   258 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
   259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   260   emulate sh
   261   NULLCMD=:
   262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   263   # is contrary to our usage.  Disable this feature.
   264   alias -g '${1+"$@"}'='"$@"'
   265   setopt NO_GLOB_SUBST
   266 else
   267   case `(set -o) 2>/dev/null` in
   268   *posix*) set -o posix ;;
   269 esac
   271 fi
   274 :
   275 _ASEOF
   276 }; then
   277   CONFIG_SHELL=$as_shell
   278 	       as_have_required=yes
   279 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
   280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   281   emulate sh
   282   NULLCMD=:
   283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   284   # is contrary to our usage.  Disable this feature.
   285   alias -g '${1+"$@"}'='"$@"'
   286   setopt NO_GLOB_SUBST
   287 else
   288   case `(set -o) 2>/dev/null` in
   289   *posix*) set -o posix ;;
   290 esac
   292 fi
   295 :
   296 (as_func_return () {
   297   (exit $1)
   298 }
   299 as_func_success () {
   300   as_func_return 0
   301 }
   302 as_func_failure () {
   303   as_func_return 1
   304 }
   305 as_func_ret_success () {
   306   return 0
   307 }
   308 as_func_ret_failure () {
   309   return 1
   310 }
   312 exitcode=0
   313 if as_func_success; then
   314   :
   315 else
   316   exitcode=1
   317   echo as_func_success failed.
   318 fi
   320 if as_func_failure; then
   321   exitcode=1
   322   echo as_func_failure succeeded.
   323 fi
   325 if as_func_ret_success; then
   326   :
   327 else
   328   exitcode=1
   329   echo as_func_ret_success failed.
   330 fi
   332 if as_func_ret_failure; then
   333   exitcode=1
   334   echo as_func_ret_failure succeeded.
   335 fi
   337 if ( set x; as_func_ret_success y && test x = "$1" ); then
   338   :
   339 else
   340   exitcode=1
   341   echo positional parameters were not saved.
   342 fi
   344 test $exitcode = 0) || { (exit 1); exit 1; }
   346 (
   347   as_lineno_1=$LINENO
   348   as_lineno_2=$LINENO
   349   test "x$as_lineno_1" != "x$as_lineno_2" &&
   350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
   352 _ASEOF
   353 }; then
   354   break
   355 fi
   357 fi
   359       done
   361       if test "x$CONFIG_SHELL" != x; then
   362   for as_var in BASH_ENV ENV
   363 	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   364 	done
   365 	export CONFIG_SHELL
   366 	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   367 fi
   370     if test $as_have_required = no; then
   371   echo This script requires a shell more modern than all the
   372       echo shells that I found on your system.  Please install a
   373       echo modern shell, or manually run the script under such a
   374       echo shell if you do have one.
   375       { (exit 1); exit 1; }
   376 fi
   379 fi
   381 fi
   385 (eval "as_func_return () {
   386   (exit \$1)
   387 }
   388 as_func_success () {
   389   as_func_return 0
   390 }
   391 as_func_failure () {
   392   as_func_return 1
   393 }
   394 as_func_ret_success () {
   395   return 0
   396 }
   397 as_func_ret_failure () {
   398   return 1
   399 }
   401 exitcode=0
   402 if as_func_success; then
   403   :
   404 else
   405   exitcode=1
   406   echo as_func_success failed.
   407 fi
   409 if as_func_failure; then
   410   exitcode=1
   411   echo as_func_failure succeeded.
   412 fi
   414 if as_func_ret_success; then
   415   :
   416 else
   417   exitcode=1
   418   echo as_func_ret_success failed.
   419 fi
   421 if as_func_ret_failure; then
   422   exitcode=1
   423   echo as_func_ret_failure succeeded.
   424 fi
   426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   427   :
   428 else
   429   exitcode=1
   430   echo positional parameters were not saved.
   431 fi
   433 test \$exitcode = 0") || {
   434   echo No shell found that supports shell functions.
   435   echo Please tell bug-autoconf@gnu.org about your system,
   436   echo including any error possibly output before this message.
   437   echo This can help us improve future autoconf versions.
   438   echo Configuration will now proceed without shell functions.
   439 }
   443   as_lineno_1=$LINENO
   444   as_lineno_2=$LINENO
   445   test "x$as_lineno_1" != "x$as_lineno_2" &&
   446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   449   # uniformly replaced by the line number.  The first 'sed' inserts a
   450   # line-number line after each line using $LINENO; the second 'sed'
   451   # does the real work.  The second script uses 'N' to pair each
   452   # line-number line with the line containing $LINENO, and appends
   453   # trailing '-' during substitution so that $LINENO is not a special
   454   # case at line end.
   455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   457   # E. McMahon (1931-1989) for sed's syntax.  :-)
   458   sed -n '
   459     p
   460     /[$]LINENO/=
   461   ' <$as_myself |
   462     sed '
   463       s/[$]LINENO.*/&-/
   464       t lineno
   465       b
   466       :lineno
   467       N
   468       :loop
   469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   470       t loop
   471       s/-\n.*//
   472     ' >$as_me.lineno &&
   473   chmod +x "$as_me.lineno" ||
   474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   475    { (exit 1); exit 1; }; }
   477   # Don't try to exec as it changes $[0], causing all sort of problems
   478   # (the dirname of $[0] is not the place where we might find the
   479   # original and so on.  Autoconf is especially sensitive to this).
   480   . "./$as_me.lineno"
   481   # Exit status is that of the last command.
   482   exit
   483 }
   486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   487   as_dirname=dirname
   488 else
   489   as_dirname=false
   490 fi
   492 ECHO_C= ECHO_N= ECHO_T=
   493 case `echo -n x` in
   494 -n*)
   495   case `echo 'x\c'` in
   496   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   497   *)   ECHO_C='\c';;
   498   esac;;
   499 *)
   500   ECHO_N='-n';;
   501 esac
   502 if expr a : '\(a\)' >/dev/null 2>&1 &&
   503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   504   as_expr=expr
   505 else
   506   as_expr=false
   507 fi
   509 rm -f conf$$ conf$$.exe conf$$.file
   510 if test -d conf$$.dir; then
   511   rm -f conf$$.dir/conf$$.file
   512 else
   513   rm -f conf$$.dir
   514   mkdir conf$$.dir 2>/dev/null
   515 fi
   516 if (echo >conf$$.file) 2>/dev/null; then
   517   if ln -s conf$$.file conf$$ 2>/dev/null; then
   518     as_ln_s='ln -s'
   519     # ... but there are two gotchas:
   520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   522     # In both cases, we have to default to `cp -p'.
   523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   524       as_ln_s='cp -p'
   525   elif ln conf$$.file conf$$ 2>/dev/null; then
   526     as_ln_s=ln
   527   else
   528     as_ln_s='cp -p'
   529   fi
   530 else
   531   as_ln_s='cp -p'
   532 fi
   533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   534 rmdir conf$$.dir 2>/dev/null
   536 if mkdir -p . 2>/dev/null; then
   537   as_mkdir_p=:
   538 else
   539   test -d ./-p && rmdir ./-p
   540   as_mkdir_p=false
   541 fi
   543 if test -x / >/dev/null 2>&1; then
   544   as_test_x='test -x'
   545 else
   546   if ls -dL / >/dev/null 2>&1; then
   547     as_ls_L_option=L
   548   else
   549     as_ls_L_option=
   550   fi
   551   as_test_x='
   552     eval sh -c '\''
   553       if test -d "$1"; then
   554 	test -d "$1/.";
   555       else
   556 	case $1 in
   557 	-*)set "./$1";;
   558 	esac;
   559 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   560 	???[sx]*):;;*)false;;esac;fi
   561     '\'' sh
   562   '
   563 fi
   564 as_executable_p=$as_test_x
   566 # Sed expression to map a string onto a valid CPP name.
   567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   569 # Sed expression to map a string onto a valid variable name.
   570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   574 exec 7<&0 </dev/null 6>&1
   576 # Name of the host.
   577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   578 # so uname gets run too.
   579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   581 #
   582 # Initializations.
   583 #
   584 ac_default_prefix=/usr/local
   585 ac_clean_files=
   586 ac_config_libobj_dir=.
   587 LIBOBJS=
   588 cross_compiling=no
   589 subdirs=
   590 MFLAGS=
   591 MAKEFLAGS=
   592 SHELL=${CONFIG_SHELL-/bin/sh}
   594 # Identity of this package.
   595 PACKAGE_NAME=
   596 PACKAGE_TARNAME=
   597 PACKAGE_VERSION=
   598 PACKAGE_STRING=
   599 PACKAGE_BUGREPORT=
   601 ac_unique_file="configure.in"
   602 # Factoring default headers for most tests.
   603 ac_includes_default="\
   604 #include <stdio.h>
   605 #ifdef HAVE_SYS_TYPES_H
   606 # include <sys/types.h>
   607 #endif
   608 #ifdef HAVE_SYS_STAT_H
   609 # include <sys/stat.h>
   610 #endif
   611 #ifdef STDC_HEADERS
   612 # include <stdlib.h>
   613 # include <stddef.h>
   614 #else
   615 # ifdef HAVE_STDLIB_H
   616 #  include <stdlib.h>
   617 # endif
   618 #endif
   619 #ifdef HAVE_STRING_H
   620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   621 #  include <memory.h>
   622 # endif
   623 # include <string.h>
   624 #endif
   625 #ifdef HAVE_STRINGS_H
   626 # include <strings.h>
   627 #endif
   628 #ifdef HAVE_INTTYPES_H
   629 # include <inttypes.h>
   630 #endif
   631 #ifdef HAVE_STDINT_H
   632 # include <stdint.h>
   633 #endif
   634 #ifdef HAVE_UNISTD_H
   635 # include <unistd.h>
   636 #endif"
   638 ac_subst_vars='SHELL
   639 PATH_SEPARATOR
   640 PACKAGE_NAME
   641 PACKAGE_TARNAME
   642 PACKAGE_VERSION
   643 PACKAGE_STRING
   644 PACKAGE_BUGREPORT
   645 exec_prefix
   646 prefix
   647 program_transform_name
   648 bindir
   649 sbindir
   650 libexecdir
   651 datarootdir
   652 datadir
   653 sysconfdir
   654 sharedstatedir
   655 localstatedir
   656 includedir
   657 oldincludedir
   658 docdir
   659 infodir
   660 htmldir
   661 dvidir
   662 pdfdir
   663 psdir
   664 libdir
   665 localedir
   666 mandir
   667 DEFS
   668 ECHO_C
   669 ECHO_N
   670 ECHO_T
   671 LIBS
   672 build_alias
   673 host_alias
   674 target_alias
   675 INSTALL_PROGRAM
   676 INSTALL_SCRIPT
   677 INSTALL_DATA
   678 CYGPATH_W
   679 PACKAGE
   680 VERSION
   681 ACLOCAL
   682 AUTOCONF
   683 AUTOMAKE
   684 AUTOHEADER
   685 MAKEINFO
   686 install_sh
   687 STRIP
   688 INSTALL_STRIP_PROGRAM
   689 mkdir_p
   690 AWK
   691 SET_MAKE
   692 am__leading_dot
   693 AMTAR
   694 am__tar
   695 am__untar
   696 MAINTAINER_MODE_TRUE
   697 MAINTAINER_MODE_FALSE
   698 MAINT
   699 CC
   700 CFLAGS
   701 LDFLAGS
   702 CPPFLAGS
   703 ac_ct_CC
   704 EXEEXT
   705 OBJEXT
   706 DEPDIR
   707 am__include
   708 am__quote
   709 AMDEP_TRUE
   710 AMDEP_FALSE
   711 AMDEPBACKSLASH
   712 CCDEPMODE
   713 am__fastdepCC_TRUE
   714 am__fastdepCC_FALSE
   715 CCAS
   716 CCASFLAGS
   717 CPP
   718 GREP
   719 EGREP
   720 build
   721 build_cpu
   722 build_vendor
   723 build_os
   724 host
   725 host_cpu
   726 host_vendor
   727 host_os
   728 POD2MAN
   729 POD2HTML
   730 GUI_COCOA_TRUE
   731 GUI_COCOA_FALSE
   732 PKG_CONFIG
   733 LIBPNG_CFLAGS
   734 LIBPNG_LIBS
   735 GLIB_CFLAGS
   736 GLIB_LIBS
   737 GTK_CFLAGS
   738 GTK_LIBS
   739 GUI_GTK_TRUE
   740 GUI_GTK_FALSE
   741 VIDEO_OSMESA_TRUE
   742 VIDEO_OSMESA_FALSE
   743 VIDEO_GLX_TRUE
   744 VIDEO_GLX_FALSE
   745 VIDEO_NSGL_TRUE
   746 VIDEO_NSGL_FALSE
   747 BUILD_SH4X86_TRUE
   748 BUILD_SH4X86_FALSE
   749 BUILD_X86_64_TRUE
   750 BUILD_X86_64_FALSE
   751 AUDIO_OSX_TRUE
   752 AUDIO_OSX_FALSE
   753 PULSE_CFLAGS
   754 PULSE_LIBS
   755 AUDIO_PULSE_TRUE
   756 AUDIO_PULSE_FALSE
   757 ESOUND_CFLAGS
   758 ESOUND_LIBS
   759 AUDIO_ESOUND_TRUE
   760 AUDIO_ESOUND_FALSE
   761 ALSA_CFLAGS
   762 ALSA_LIBS
   763 AUDIO_ALSA_TRUE
   764 AUDIO_ALSA_FALSE
   765 CDROM_LINUX_TRUE
   766 CDROM_LINUX_FALSE
   767 JOY_LINUX_TRUE
   768 JOY_LINUX_FALSE
   769 SHCC
   770 SHLD
   771 SHOBJCOPY
   772 ARMCC
   773 ARMLD
   774 ARMOBJCOPY
   775 BUILD_SYSTEST_TRUE
   776 BUILD_SYSTEST_FALSE
   777 BUILD_ARMTEST_TRUE
   778 BUILD_ARMTEST_FALSE
   779 GETTEXT_PACKAGE
   780 USE_NLS
   781 MSGFMT
   782 MSGFMT_OPTS
   783 GMSGFMT
   784 XGETTEXT
   785 CATALOGS
   786 CATOBJEXT
   787 DATADIRNAME
   788 GMOFILES
   789 INSTOBJEXT
   790 INTLLIBS
   791 PO_IN_DATADIR_TRUE
   792 PO_IN_DATADIR_FALSE
   793 POFILES
   794 POSUB
   795 MKINSTALLDIRS
   796 LIBOBJS
   797 LTLIBOBJS'
   798 ac_subst_files=''
   799 ac_user_opts='
   800 enable_option_checking
   801 enable_maintainer_mode
   802 enable_dependency_tracking
   803 enable_trace
   804 enable_watch
   805 enable_sh4stats
   806 with_osmesa
   807 with_gtk
   808 '
   809       ac_precious_vars='build_alias
   810 host_alias
   811 target_alias
   812 CC
   813 CFLAGS
   814 LDFLAGS
   815 LIBS
   816 CPPFLAGS
   817 CCAS
   818 CCASFLAGS
   819 CPP
   820 PKG_CONFIG
   821 LIBPNG_CFLAGS
   822 LIBPNG_LIBS
   823 GLIB_CFLAGS
   824 GLIB_LIBS
   825 GTK_CFLAGS
   826 GTK_LIBS
   827 PULSE_CFLAGS
   828 PULSE_LIBS
   829 ESOUND_CFLAGS
   830 ESOUND_LIBS
   831 ALSA_CFLAGS
   832 ALSA_LIBS'
   835 # Initialize some variables set by options.
   836 ac_init_help=
   837 ac_init_version=false
   838 ac_unrecognized_opts=
   839 ac_unrecognized_sep=
   840 # The variables have the same names as the options, with
   841 # dashes changed to underlines.
   842 cache_file=/dev/null
   843 exec_prefix=NONE
   844 no_create=
   845 no_recursion=
   846 prefix=NONE
   847 program_prefix=NONE
   848 program_suffix=NONE
   849 program_transform_name=s,x,x,
   850 silent=
   851 site=
   852 srcdir=
   853 verbose=
   854 x_includes=NONE
   855 x_libraries=NONE
   857 # Installation directory options.
   858 # These are left unexpanded so users can "make install exec_prefix=/foo"
   859 # and all the variables that are supposed to be based on exec_prefix
   860 # by default will actually change.
   861 # Use braces instead of parens because sh, perl, etc. also accept them.
   862 # (The list follows the same order as the GNU Coding Standards.)
   863 bindir='${exec_prefix}/bin'
   864 sbindir='${exec_prefix}/sbin'
   865 libexecdir='${exec_prefix}/libexec'
   866 datarootdir='${prefix}/share'
   867 datadir='${datarootdir}'
   868 sysconfdir='${prefix}/etc'
   869 sharedstatedir='${prefix}/com'
   870 localstatedir='${prefix}/var'
   871 includedir='${prefix}/include'
   872 oldincludedir='/usr/include'
   873 docdir='${datarootdir}/doc/${PACKAGE}'
   874 infodir='${datarootdir}/info'
   875 htmldir='${docdir}'
   876 dvidir='${docdir}'
   877 pdfdir='${docdir}'
   878 psdir='${docdir}'
   879 libdir='${exec_prefix}/lib'
   880 localedir='${datarootdir}/locale'
   881 mandir='${datarootdir}/man'
   883 ac_prev=
   884 ac_dashdash=
   885 for ac_option
   886 do
   887   # If the previous option needs an argument, assign it.
   888   if test -n "$ac_prev"; then
   889     eval $ac_prev=\$ac_option
   890     ac_prev=
   891     continue
   892   fi
   894   case $ac_option in
   895   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   896   *)	ac_optarg=yes ;;
   897   esac
   899   # Accept the important Cygnus configure options, so we can diagnose typos.
   901   case $ac_dashdash$ac_option in
   902   --)
   903     ac_dashdash=yes ;;
   905   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   906     ac_prev=bindir ;;
   907   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   908     bindir=$ac_optarg ;;
   910   -build | --build | --buil | --bui | --bu)
   911     ac_prev=build_alias ;;
   912   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   913     build_alias=$ac_optarg ;;
   915   -cache-file | --cache-file | --cache-fil | --cache-fi \
   916   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   917     ac_prev=cache_file ;;
   918   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   919   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   920     cache_file=$ac_optarg ;;
   922   --config-cache | -C)
   923     cache_file=config.cache ;;
   925   -datadir | --datadir | --datadi | --datad)
   926     ac_prev=datadir ;;
   927   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   928     datadir=$ac_optarg ;;
   930   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   931   | --dataroo | --dataro | --datar)
   932     ac_prev=datarootdir ;;
   933   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   934   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   935     datarootdir=$ac_optarg ;;
   937   -disable-* | --disable-*)
   938     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   939     # Reject names that are not valid shell variable names.
   940     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   941       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   942    { (exit 1); exit 1; }; }
   943     ac_useropt_orig=$ac_useropt
   944     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   945     case $ac_user_opts in
   946       *"
   947 "enable_$ac_useropt"
   948 "*) ;;
   949       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   950 	 ac_unrecognized_sep=', ';;
   951     esac
   952     eval enable_$ac_useropt=no ;;
   954   -docdir | --docdir | --docdi | --doc | --do)
   955     ac_prev=docdir ;;
   956   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   957     docdir=$ac_optarg ;;
   959   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   960     ac_prev=dvidir ;;
   961   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   962     dvidir=$ac_optarg ;;
   964   -enable-* | --enable-*)
   965     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   966     # Reject names that are not valid shell variable names.
   967     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   968       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   969    { (exit 1); exit 1; }; }
   970     ac_useropt_orig=$ac_useropt
   971     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   972     case $ac_user_opts in
   973       *"
   974 "enable_$ac_useropt"
   975 "*) ;;
   976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   977 	 ac_unrecognized_sep=', ';;
   978     esac
   979     eval enable_$ac_useropt=\$ac_optarg ;;
   981   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   982   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   983   | --exec | --exe | --ex)
   984     ac_prev=exec_prefix ;;
   985   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   986   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   987   | --exec=* | --exe=* | --ex=*)
   988     exec_prefix=$ac_optarg ;;
   990   -gas | --gas | --ga | --g)
   991     # Obsolete; use --with-gas.
   992     with_gas=yes ;;
   994   -help | --help | --hel | --he | -h)
   995     ac_init_help=long ;;
   996   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   997     ac_init_help=recursive ;;
   998   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   999     ac_init_help=short ;;
  1001   -host | --host | --hos | --ho)
  1002     ac_prev=host_alias ;;
  1003   -host=* | --host=* | --hos=* | --ho=*)
  1004     host_alias=$ac_optarg ;;
  1006   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1007     ac_prev=htmldir ;;
  1008   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1009   | --ht=*)
  1010     htmldir=$ac_optarg ;;
  1012   -includedir | --includedir | --includedi | --included | --include \
  1013   | --includ | --inclu | --incl | --inc)
  1014     ac_prev=includedir ;;
  1015   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1016   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1017     includedir=$ac_optarg ;;
  1019   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1020     ac_prev=infodir ;;
  1021   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1022     infodir=$ac_optarg ;;
  1024   -libdir | --libdir | --libdi | --libd)
  1025     ac_prev=libdir ;;
  1026   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1027     libdir=$ac_optarg ;;
  1029   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1030   | --libexe | --libex | --libe)
  1031     ac_prev=libexecdir ;;
  1032   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1033   | --libexe=* | --libex=* | --libe=*)
  1034     libexecdir=$ac_optarg ;;
  1036   -localedir | --localedir | --localedi | --localed | --locale)
  1037     ac_prev=localedir ;;
  1038   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1039     localedir=$ac_optarg ;;
  1041   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1042   | --localstate | --localstat | --localsta | --localst | --locals)
  1043     ac_prev=localstatedir ;;
  1044   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1045   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1046     localstatedir=$ac_optarg ;;
  1048   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1049     ac_prev=mandir ;;
  1050   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1051     mandir=$ac_optarg ;;
  1053   -nfp | --nfp | --nf)
  1054     # Obsolete; use --without-fp.
  1055     with_fp=no ;;
  1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1058   | --no-cr | --no-c | -n)
  1059     no_create=yes ;;
  1061   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1062   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1063     no_recursion=yes ;;
  1065   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1066   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1067   | --oldin | --oldi | --old | --ol | --o)
  1068     ac_prev=oldincludedir ;;
  1069   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1070   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1071   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1072     oldincludedir=$ac_optarg ;;
  1074   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1075     ac_prev=prefix ;;
  1076   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1077     prefix=$ac_optarg ;;
  1079   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1080   | --program-pre | --program-pr | --program-p)
  1081     ac_prev=program_prefix ;;
  1082   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1083   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1084     program_prefix=$ac_optarg ;;
  1086   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1087   | --program-suf | --program-su | --program-s)
  1088     ac_prev=program_suffix ;;
  1089   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1090   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1091     program_suffix=$ac_optarg ;;
  1093   -program-transform-name | --program-transform-name \
  1094   | --program-transform-nam | --program-transform-na \
  1095   | --program-transform-n | --program-transform- \
  1096   | --program-transform | --program-transfor \
  1097   | --program-transfo | --program-transf \
  1098   | --program-trans | --program-tran \
  1099   | --progr-tra | --program-tr | --program-t)
  1100     ac_prev=program_transform_name ;;
  1101   -program-transform-name=* | --program-transform-name=* \
  1102   | --program-transform-nam=* | --program-transform-na=* \
  1103   | --program-transform-n=* | --program-transform-=* \
  1104   | --program-transform=* | --program-transfor=* \
  1105   | --program-transfo=* | --program-transf=* \
  1106   | --program-trans=* | --program-tran=* \
  1107   | --progr-tra=* | --program-tr=* | --program-t=*)
  1108     program_transform_name=$ac_optarg ;;
  1110   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1111     ac_prev=pdfdir ;;
  1112   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1113     pdfdir=$ac_optarg ;;
  1115   -psdir | --psdir | --psdi | --psd | --ps)
  1116     ac_prev=psdir ;;
  1117   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1118     psdir=$ac_optarg ;;
  1120   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1121   | -silent | --silent | --silen | --sile | --sil)
  1122     silent=yes ;;
  1124   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1125     ac_prev=sbindir ;;
  1126   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1127   | --sbi=* | --sb=*)
  1128     sbindir=$ac_optarg ;;
  1130   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1131   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1132   | --sharedst | --shareds | --shared | --share | --shar \
  1133   | --sha | --sh)
  1134     ac_prev=sharedstatedir ;;
  1135   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1136   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1137   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1138   | --sha=* | --sh=*)
  1139     sharedstatedir=$ac_optarg ;;
  1141   -site | --site | --sit)
  1142     ac_prev=site ;;
  1143   -site=* | --site=* | --sit=*)
  1144     site=$ac_optarg ;;
  1146   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1147     ac_prev=srcdir ;;
  1148   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1149     srcdir=$ac_optarg ;;
  1151   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1152   | --syscon | --sysco | --sysc | --sys | --sy)
  1153     ac_prev=sysconfdir ;;
  1154   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1155   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1156     sysconfdir=$ac_optarg ;;
  1158   -target | --target | --targe | --targ | --tar | --ta | --t)
  1159     ac_prev=target_alias ;;
  1160   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1161     target_alias=$ac_optarg ;;
  1163   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1164     verbose=yes ;;
  1166   -version | --version | --versio | --versi | --vers | -V)
  1167     ac_init_version=: ;;
  1169   -with-* | --with-*)
  1170     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1171     # Reject names that are not valid shell variable names.
  1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1173       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1174    { (exit 1); exit 1; }; }
  1175     ac_useropt_orig=$ac_useropt
  1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1177     case $ac_user_opts in
  1178       *"
  1179 "with_$ac_useropt"
  1180 "*) ;;
  1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1182 	 ac_unrecognized_sep=', ';;
  1183     esac
  1184     eval with_$ac_useropt=\$ac_optarg ;;
  1186   -without-* | --without-*)
  1187     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1188     # Reject names that are not valid shell variable names.
  1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1190       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1191    { (exit 1); exit 1; }; }
  1192     ac_useropt_orig=$ac_useropt
  1193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1194     case $ac_user_opts in
  1195       *"
  1196 "with_$ac_useropt"
  1197 "*) ;;
  1198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1199 	 ac_unrecognized_sep=', ';;
  1200     esac
  1201     eval with_$ac_useropt=no ;;
  1203   --x)
  1204     # Obsolete; use --with-x.
  1205     with_x=yes ;;
  1207   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1208   | --x-incl | --x-inc | --x-in | --x-i)
  1209     ac_prev=x_includes ;;
  1210   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1211   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1212     x_includes=$ac_optarg ;;
  1214   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1215   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1216     ac_prev=x_libraries ;;
  1217   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1218   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1219     x_libraries=$ac_optarg ;;
  1221   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1222 Try \`$0 --help' for more information." >&2
  1223    { (exit 1); exit 1; }; }
  1224     ;;
  1226   *=*)
  1227     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1228     # Reject names that are not valid shell variable names.
  1229     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1230       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1231    { (exit 1); exit 1; }; }
  1232     eval $ac_envvar=\$ac_optarg
  1233     export $ac_envvar ;;
  1235   *)
  1236     # FIXME: should be removed in autoconf 3.0.
  1237     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1238     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1239       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1240     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1241     ;;
  1243   esac
  1244 done
  1246 if test -n "$ac_prev"; then
  1247   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1248   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1249    { (exit 1); exit 1; }; }
  1250 fi
  1252 if test -n "$ac_unrecognized_opts"; then
  1253   case $enable_option_checking in
  1254     no) ;;
  1255     fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
  1256    { (exit 1); exit 1; }; } ;;
  1257     *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1258   esac
  1259 fi
  1261 # Check all directory arguments for consistency.
  1262 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1263 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1264 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1265 		libdir localedir mandir
  1266 do
  1267   eval ac_val=\$$ac_var
  1268   # Remove trailing slashes.
  1269   case $ac_val in
  1270     */ )
  1271       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1272       eval $ac_var=\$ac_val;;
  1273   esac
  1274   # Be sure to have absolute directory names.
  1275   case $ac_val in
  1276     [\\/$]* | ?:[\\/]* )  continue;;
  1277     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1278   esac
  1279   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1280    { (exit 1); exit 1; }; }
  1281 done
  1283 # There might be people who depend on the old broken behavior: `$host'
  1284 # used to hold the argument of --host etc.
  1285 # FIXME: To remove some day.
  1286 build=$build_alias
  1287 host=$host_alias
  1288 target=$target_alias
  1290 # FIXME: To remove some day.
  1291 if test "x$host_alias" != x; then
  1292   if test "x$build_alias" = x; then
  1293     cross_compiling=maybe
  1294     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1295     If a cross compiler is detected then cross compile mode will be used." >&2
  1296   elif test "x$build_alias" != "x$host_alias"; then
  1297     cross_compiling=yes
  1298   fi
  1299 fi
  1301 ac_tool_prefix=
  1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1304 test "$silent" = yes && exec 6>/dev/null
  1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1308 ac_ls_di=`ls -di .` &&
  1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1310   { $as_echo "$as_me: error: Working directory cannot be determined" >&2
  1311    { (exit 1); exit 1; }; }
  1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1313   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1314    { (exit 1); exit 1; }; }
  1317 # Find the source files, if location was not specified.
  1318 if test -z "$srcdir"; then
  1319   ac_srcdir_defaulted=yes
  1320   # Try the directory containing this script, then the parent directory.
  1321   ac_confdir=`$as_dirname -- "$as_myself" ||
  1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1323 	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1324 	 X"$as_myself" : 'X\(//\)$' \| \
  1325 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1326 $as_echo X"$as_myself" |
  1327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1328 	    s//\1/
  1331 	  /^X\(\/\/\)[^/].*/{
  1332 	    s//\1/
  1335 	  /^X\(\/\/\)$/{
  1336 	    s//\1/
  1339 	  /^X\(\/\).*/{
  1340 	    s//\1/
  1343 	  s/.*/./; q'`
  1344   srcdir=$ac_confdir
  1345   if test ! -r "$srcdir/$ac_unique_file"; then
  1346     srcdir=..
  1347   fi
  1348 else
  1349   ac_srcdir_defaulted=no
  1350 fi
  1351 if test ! -r "$srcdir/$ac_unique_file"; then
  1352   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1353   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1354    { (exit 1); exit 1; }; }
  1355 fi
  1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1357 ac_abs_confdir=`(
  1358 	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1359    { (exit 1); exit 1; }; }
  1360 	pwd)`
  1361 # When building in place, set srcdir=.
  1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1363   srcdir=.
  1364 fi
  1365 # Remove unnecessary trailing slashes from srcdir.
  1366 # Double slashes in file names in object file debugging info
  1367 # mess up M-x gdb in Emacs.
  1368 case $srcdir in
  1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1370 esac
  1371 for ac_var in $ac_precious_vars; do
  1372   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1373   eval ac_env_${ac_var}_value=\$${ac_var}
  1374   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1375   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1376 done
  1379 # Report the --help message.
  1381 if test "$ac_init_help" = "long"; then
  1382   # Omit some internal or obsolete options to make the list less imposing.
  1383   # This message is too long to be a string in the A/UX 3.1 sh.
  1384   cat <<_ACEOF
  1385 \`configure' configures this package to adapt to many kinds of systems.
  1387 Usage: $0 [OPTION]... [VAR=VALUE]...
  1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1390 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1392 Defaults for the options are specified in brackets.
  1394 Configuration:
  1395   -h, --help              display this help and exit
  1396       --help=short        display options specific to this package
  1397       --help=recursive    display the short help of all the included packages
  1398   -V, --version           display version information and exit
  1399   -q, --quiet, --silent   do not print \`checking...' messages
  1400       --cache-file=FILE   cache test results in FILE [disabled]
  1401   -C, --config-cache      alias for \`--cache-file=config.cache'
  1402   -n, --no-create         do not create output files
  1403       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1405 Installation directories:
  1406   --prefix=PREFIX         install architecture-independent files in PREFIX
  1407                           [$ac_default_prefix]
  1408   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1409                           [PREFIX]
  1411 By default, \`make install' will install all the files in
  1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1414 for instance \`--prefix=\$HOME'.
  1416 For better control, use the options below.
  1418 Fine tuning of the installation directories:
  1419   --bindir=DIR            user executables [EPREFIX/bin]
  1420   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1421   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1422   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1423   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1424   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1425   --libdir=DIR            object code libraries [EPREFIX/lib]
  1426   --includedir=DIR        C header files [PREFIX/include]
  1427   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1428   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1429   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1430   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1431   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1432   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1433   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1434   --htmldir=DIR           html documentation [DOCDIR]
  1435   --dvidir=DIR            dvi documentation [DOCDIR]
  1436   --pdfdir=DIR            pdf documentation [DOCDIR]
  1437   --psdir=DIR             ps documentation [DOCDIR]
  1438 _ACEOF
  1440   cat <<\_ACEOF
  1442 Program names:
  1443   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1444   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1445   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1447 System types:
  1448   --build=BUILD     configure for building on BUILD [guessed]
  1449   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1450 _ACEOF
  1451 fi
  1453 if test -n "$ac_init_help"; then
  1455   cat <<\_ACEOF
  1457 Optional Features:
  1458   --disable-option-checking  ignore unrecognized --enable/--with options
  1459   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1460   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1461   --enable-maintainer-mode  enable make rules and dependencies not useful
  1462 			  (and sometimes confusing) to the casual installer
  1463   --disable-dependency-tracking  speeds up one-time build
  1464   --enable-dependency-tracking   do not reject slow dependency extractors
  1465   --enable-trace          Enable generation of IO traces (warning: hurts
  1466                           performance)
  1467   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1468                           performance)
  1469   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1471 Optional Packages:
  1472   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1473   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1474   --with-osmesa           Build with the osmesa GL library (software
  1475                           rendering)
  1476   --with-gtk              Build with the GTK UI. Default on X11 systems
  1478 Some influential environment variables:
  1479   CC          C compiler command
  1480   CFLAGS      C compiler flags
  1481   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1482               nonstandard directory <lib dir>
  1483   LIBS        libraries to pass to the linker, e.g. -l<library>
  1484   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1485               you have headers in a nonstandard directory <include dir>
  1486   CCAS        assembler compiler command (defaults to CC)
  1487   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1488   CPP         C preprocessor
  1489   PKG_CONFIG  path to pkg-config utility
  1490   LIBPNG_CFLAGS
  1491               C compiler flags for LIBPNG, overriding pkg-config
  1492   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1493   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1494   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1495   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1496   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1497   PULSE_CFLAGS
  1498               C compiler flags for PULSE, overriding pkg-config
  1499   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1500   ESOUND_CFLAGS
  1501               C compiler flags for ESOUND, overriding pkg-config
  1502   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1503   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1504   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1506 Use these variables to override the choices made by `configure' or to help
  1507 it to find libraries and programs with nonstandard names/locations.
  1509 _ACEOF
  1510 ac_status=$?
  1511 fi
  1513 if test "$ac_init_help" = "recursive"; then
  1514   # If there are subdirs, report their specific --help.
  1515   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1516     test -d "$ac_dir" ||
  1517       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1518       continue
  1519     ac_builddir=.
  1521 case "$ac_dir" in
  1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1523 *)
  1524   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1525   # A ".." for each directory in $ac_dir_suffix.
  1526   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1527   case $ac_top_builddir_sub in
  1528   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1529   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1530   esac ;;
  1531 esac
  1532 ac_abs_top_builddir=$ac_pwd
  1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1534 # for backward compatibility:
  1535 ac_top_builddir=$ac_top_build_prefix
  1537 case $srcdir in
  1538   .)  # We are building in place.
  1539     ac_srcdir=.
  1540     ac_top_srcdir=$ac_top_builddir_sub
  1541     ac_abs_top_srcdir=$ac_pwd ;;
  1542   [\\/]* | ?:[\\/]* )  # Absolute name.
  1543     ac_srcdir=$srcdir$ac_dir_suffix;
  1544     ac_top_srcdir=$srcdir
  1545     ac_abs_top_srcdir=$srcdir ;;
  1546   *) # Relative name.
  1547     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1548     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1549     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1550 esac
  1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1553     cd "$ac_dir" || { ac_status=$?; continue; }
  1554     # Check for guested configure.
  1555     if test -f "$ac_srcdir/configure.gnu"; then
  1556       echo &&
  1557       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1558     elif test -f "$ac_srcdir/configure"; then
  1559       echo &&
  1560       $SHELL "$ac_srcdir/configure" --help=recursive
  1561     else
  1562       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1563     fi || ac_status=$?
  1564     cd "$ac_pwd" || { ac_status=$?; break; }
  1565   done
  1566 fi
  1568 test -n "$ac_init_help" && exit $ac_status
  1569 if $ac_init_version; then
  1570   cat <<\_ACEOF
  1571 configure
  1572 generated by GNU Autoconf 2.62
  1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1575 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1576 This configure script is free software; the Free Software Foundation
  1577 gives unlimited permission to copy, distribute and modify it.
  1578 _ACEOF
  1579   exit
  1580 fi
  1581 cat >config.log <<_ACEOF
  1582 This file contains any messages produced by compilers while
  1583 running configure, to aid debugging if configure makes a mistake.
  1585 It was created by $as_me, which was
  1586 generated by GNU Autoconf 2.62.  Invocation command line was
  1588   $ $0 $@
  1590 _ACEOF
  1591 exec 5>>config.log
  1593 cat <<_ASUNAME
  1594 ## --------- ##
  1595 ## Platform. ##
  1596 ## --------- ##
  1598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1605 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1607 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1608 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1610 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1611 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1612 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1613 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1615 _ASUNAME
  1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1618 for as_dir in $PATH
  1619 do
  1620   IFS=$as_save_IFS
  1621   test -z "$as_dir" && as_dir=.
  1622   $as_echo "PATH: $as_dir"
  1623 done
  1624 IFS=$as_save_IFS
  1626 } >&5
  1628 cat >&5 <<_ACEOF
  1631 ## ----------- ##
  1632 ## Core tests. ##
  1633 ## ----------- ##
  1635 _ACEOF
  1638 # Keep a trace of the command line.
  1639 # Strip out --no-create and --no-recursion so they do not pile up.
  1640 # Strip out --silent because we don't want to record it for future runs.
  1641 # Also quote any args containing shell meta-characters.
  1642 # Make two passes to allow for proper duplicate-argument suppression.
  1643 ac_configure_args=
  1644 ac_configure_args0=
  1645 ac_configure_args1=
  1646 ac_must_keep_next=false
  1647 for ac_pass in 1 2
  1648 do
  1649   for ac_arg
  1650   do
  1651     case $ac_arg in
  1652     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1653     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1654     | -silent | --silent | --silen | --sile | --sil)
  1655       continue ;;
  1656     *\'*)
  1657       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1658     esac
  1659     case $ac_pass in
  1660     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1661     2)
  1662       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1663       if test $ac_must_keep_next = true; then
  1664 	ac_must_keep_next=false # Got value, back to normal.
  1665       else
  1666 	case $ac_arg in
  1667 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1668 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1669 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1670 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1671 	    case "$ac_configure_args0 " in
  1672 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1673 	    esac
  1674 	    ;;
  1675 	  -* ) ac_must_keep_next=true ;;
  1676 	esac
  1677       fi
  1678       ac_configure_args="$ac_configure_args '$ac_arg'"
  1679       ;;
  1680     esac
  1681   done
  1682 done
  1683 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1684 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1686 # When interrupted or exit'd, cleanup temporary files, and complete
  1687 # config.log.  We remove comments because anyway the quotes in there
  1688 # would cause problems or look ugly.
  1689 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1691 trap 'exit_status=$?
  1692   # Save into config.log some information that might help in debugging.
  1694     echo
  1696     cat <<\_ASBOX
  1697 ## ---------------- ##
  1698 ## Cache variables. ##
  1699 ## ---------------- ##
  1700 _ASBOX
  1701     echo
  1702     # The following way of writing the cache mishandles newlines in values,
  1704   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1705     eval ac_val=\$$ac_var
  1706     case $ac_val in #(
  1707     *${as_nl}*)
  1708       case $ac_var in #(
  1709       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1710 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1711       esac
  1712       case $ac_var in #(
  1713       _ | IFS | as_nl) ;; #(
  1714       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1715       *) $as_unset $ac_var ;;
  1716       esac ;;
  1717     esac
  1718   done
  1719   (set) 2>&1 |
  1720     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1721     *${as_nl}ac_space=\ *)
  1722       sed -n \
  1723 	"s/'\''/'\''\\\\'\'''\''/g;
  1724 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1725       ;; #(
  1726     *)
  1727       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1728       ;;
  1729     esac |
  1730     sort
  1732     echo
  1734     cat <<\_ASBOX
  1735 ## ----------------- ##
  1736 ## Output variables. ##
  1737 ## ----------------- ##
  1738 _ASBOX
  1739     echo
  1740     for ac_var in $ac_subst_vars
  1741     do
  1742       eval ac_val=\$$ac_var
  1743       case $ac_val in
  1744       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1745       esac
  1746       $as_echo "$ac_var='\''$ac_val'\''"
  1747     done | sort
  1748     echo
  1750     if test -n "$ac_subst_files"; then
  1751       cat <<\_ASBOX
  1752 ## ------------------- ##
  1753 ## File substitutions. ##
  1754 ## ------------------- ##
  1755 _ASBOX
  1756       echo
  1757       for ac_var in $ac_subst_files
  1758       do
  1759 	eval ac_val=\$$ac_var
  1760 	case $ac_val in
  1761 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1762 	esac
  1763 	$as_echo "$ac_var='\''$ac_val'\''"
  1764       done | sort
  1765       echo
  1766     fi
  1768     if test -s confdefs.h; then
  1769       cat <<\_ASBOX
  1770 ## ----------- ##
  1771 ## confdefs.h. ##
  1772 ## ----------- ##
  1773 _ASBOX
  1774       echo
  1775       cat confdefs.h
  1776       echo
  1777     fi
  1778     test "$ac_signal" != 0 &&
  1779       $as_echo "$as_me: caught signal $ac_signal"
  1780     $as_echo "$as_me: exit $exit_status"
  1781   } >&5
  1782   rm -f core *.core core.conftest.* &&
  1783     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1784     exit $exit_status
  1785 ' 0
  1786 for ac_signal in 1 2 13 15; do
  1787   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1788 done
  1789 ac_signal=0
  1791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1792 rm -f -r conftest* confdefs.h
  1794 # Predefined preprocessor variables.
  1796 cat >>confdefs.h <<_ACEOF
  1797 #define PACKAGE_NAME "$PACKAGE_NAME"
  1798 _ACEOF
  1801 cat >>confdefs.h <<_ACEOF
  1802 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1803 _ACEOF
  1806 cat >>confdefs.h <<_ACEOF
  1807 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1808 _ACEOF
  1811 cat >>confdefs.h <<_ACEOF
  1812 #define PACKAGE_STRING "$PACKAGE_STRING"
  1813 _ACEOF
  1816 cat >>confdefs.h <<_ACEOF
  1817 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1818 _ACEOF
  1821 # Let the site file select an alternate cache file if it wants to.
  1822 # Prefer an explicitly selected file to automatically selected ones.
  1823 ac_site_file1=NONE
  1824 ac_site_file2=NONE
  1825 if test -n "$CONFIG_SITE"; then
  1826   ac_site_file1=$CONFIG_SITE
  1827 elif test "x$prefix" != xNONE; then
  1828   ac_site_file1=$prefix/share/config.site
  1829   ac_site_file2=$prefix/etc/config.site
  1830 else
  1831   ac_site_file1=$ac_default_prefix/share/config.site
  1832   ac_site_file2=$ac_default_prefix/etc/config.site
  1833 fi
  1834 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1835 do
  1836   test "x$ac_site_file" = xNONE && continue
  1837   if test -r "$ac_site_file"; then
  1838     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1839 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1840     sed 's/^/| /' "$ac_site_file" >&5
  1841     . "$ac_site_file"
  1842   fi
  1843 done
  1845 if test -r "$cache_file"; then
  1846   # Some versions of bash will fail to source /dev/null (special
  1847   # files actually), so we avoid doing that.
  1848   if test -f "$cache_file"; then
  1849     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1850 $as_echo "$as_me: loading cache $cache_file" >&6;}
  1851     case $cache_file in
  1852       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1853       *)                      . "./$cache_file";;
  1854     esac
  1855   fi
  1856 else
  1857   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1858 $as_echo "$as_me: creating cache $cache_file" >&6;}
  1859   >$cache_file
  1860 fi
  1862 # Check that the precious variables saved in the cache have kept the same
  1863 # value.
  1864 ac_cache_corrupted=false
  1865 for ac_var in $ac_precious_vars; do
  1866   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1867   eval ac_new_set=\$ac_env_${ac_var}_set
  1868   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1869   eval ac_new_val=\$ac_env_${ac_var}_value
  1870   case $ac_old_set,$ac_new_set in
  1871     set,)
  1872       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1873 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1874       ac_cache_corrupted=: ;;
  1875     ,set)
  1876       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1877 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1878       ac_cache_corrupted=: ;;
  1879     ,);;
  1880     *)
  1881       if test "x$ac_old_val" != "x$ac_new_val"; then
  1882 	# differences in whitespace do not lead to failure.
  1883 	ac_old_val_w=`echo x $ac_old_val`
  1884 	ac_new_val_w=`echo x $ac_new_val`
  1885 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1886 	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1887 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1888 	  ac_cache_corrupted=:
  1889 	else
  1890 	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1891 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1892 	  eval $ac_var=\$ac_old_val
  1893 	fi
  1894 	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
  1895 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  1896 	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
  1897 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  1898       fi;;
  1899   esac
  1900   # Pass precious variables to config.status.
  1901   if test "$ac_new_set" = set; then
  1902     case $ac_new_val in
  1903     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1904     *) ac_arg=$ac_var=$ac_new_val ;;
  1905     esac
  1906     case " $ac_configure_args " in
  1907       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1908       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1909     esac
  1910   fi
  1911 done
  1912 if $ac_cache_corrupted; then
  1913   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1914 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1915   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1916 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1917    { (exit 1); exit 1; }; }
  1918 fi
  1936 ac_ext=c
  1937 ac_cpp='$CPP $CPPFLAGS'
  1938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1943 am__api_version="1.9"
  1944 ac_aux_dir=
  1945 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1946   if test -f "$ac_dir/install-sh"; then
  1947     ac_aux_dir=$ac_dir
  1948     ac_install_sh="$ac_aux_dir/install-sh -c"
  1949     break
  1950   elif test -f "$ac_dir/install.sh"; then
  1951     ac_aux_dir=$ac_dir
  1952     ac_install_sh="$ac_aux_dir/install.sh -c"
  1953     break
  1954   elif test -f "$ac_dir/shtool"; then
  1955     ac_aux_dir=$ac_dir
  1956     ac_install_sh="$ac_aux_dir/shtool install -c"
  1957     break
  1958   fi
  1959 done
  1960 if test -z "$ac_aux_dir"; then
  1961   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1962 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1963    { (exit 1); exit 1; }; }
  1964 fi
  1966 # These three variables are undocumented and unsupported,
  1967 # and are intended to be withdrawn in a future Autoconf release.
  1968 # They can cause serious problems if a builder's source tree is in a directory
  1969 # whose full name contains unusual characters.
  1970 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1971 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1972 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1975 # Find a good install program.  We prefer a C program (faster),
  1976 # so one script is as good as another.  But avoid the broken or
  1977 # incompatible versions:
  1978 # SysV /etc/install, /usr/sbin/install
  1979 # SunOS /usr/etc/install
  1980 # IRIX /sbin/install
  1981 # AIX /bin/install
  1982 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1986 # OS/2's system install, which has a completely different semantic
  1987 # ./install, which can be erroneously created by make from ./install.sh.
  1988 # Reject install programs that cannot install multiple files.
  1989 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1990 $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1991 if test -z "$INSTALL"; then
  1992 if test "${ac_cv_path_install+set}" = set; then
  1993   $as_echo_n "(cached) " >&6
  1994 else
  1995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1996 for as_dir in $PATH
  1997 do
  1998   IFS=$as_save_IFS
  1999   test -z "$as_dir" && as_dir=.
  2000   # Account for people who put trailing slashes in PATH elements.
  2001 case $as_dir/ in
  2002   ./ | .// | /cC/* | \
  2003   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2004   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2005   /usr/ucb/* ) ;;
  2006   *)
  2007     # OSF1 and SCO ODT 3.0 have their own names for install.
  2008     # Don't use installbsd from OSF since it installs stuff as root
  2009     # by default.
  2010     for ac_prog in ginstall scoinst install; do
  2011       for ac_exec_ext in '' $ac_executable_extensions; do
  2012 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2013 	  if test $ac_prog = install &&
  2014 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2015 	    # AIX install.  It has an incompatible calling convention.
  2017 	  elif test $ac_prog = install &&
  2018 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2019 	    # program-specific install script used by HP pwplus--don't use.
  2021 	  else
  2022 	    rm -rf conftest.one conftest.two conftest.dir
  2023 	    echo one > conftest.one
  2024 	    echo two > conftest.two
  2025 	    mkdir conftest.dir
  2026 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2027 	      test -s conftest.one && test -s conftest.two &&
  2028 	      test -s conftest.dir/conftest.one &&
  2029 	      test -s conftest.dir/conftest.two
  2030 	    then
  2031 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2032 	      break 3
  2033 	    fi
  2034 	  fi
  2035 	fi
  2036       done
  2037     done
  2038     ;;
  2039 esac
  2041 done
  2042 IFS=$as_save_IFS
  2044 rm -rf conftest.one conftest.two conftest.dir
  2046 fi
  2047   if test "${ac_cv_path_install+set}" = set; then
  2048     INSTALL=$ac_cv_path_install
  2049   else
  2050     # As a last resort, use the slow shell script.  Don't cache a
  2051     # value for INSTALL within a source directory, because that will
  2052     # break other packages using the cache if that directory is
  2053     # removed, or if the value is a relative name.
  2054     INSTALL=$ac_install_sh
  2055   fi
  2056 fi
  2057 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2058 $as_echo "$INSTALL" >&6; }
  2060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2061 # It thinks the first close brace ends the variable substitution.
  2062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2066 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2068 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2069 $as_echo_n "checking whether build environment is sane... " >&6; }
  2070 # Just in case
  2071 sleep 1
  2072 echo timestamp > conftest.file
  2073 # Do `set' in a subshell so we don't clobber the current shell's
  2074 # arguments.  Must try -L first in case configure is actually a
  2075 # symlink; some systems play weird games with the mod time of symlinks
  2076 # (eg FreeBSD returns the mod time of the symlink's containing
  2077 # directory).
  2078 if (
  2079    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2080    if test "$*" = "X"; then
  2081       # -L didn't work.
  2082       set X `ls -t $srcdir/configure conftest.file`
  2083    fi
  2084    rm -f conftest.file
  2085    if test "$*" != "X $srcdir/configure conftest.file" \
  2086       && test "$*" != "X conftest.file $srcdir/configure"; then
  2088       # If neither matched, then we have a broken ls.  This can happen
  2089       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2090       # broken ls alias from the environment.  This has actually
  2091       # happened.  Such a system could not be considered "sane".
  2092       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2093 alias in your environment" >&5
  2094 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2095 alias in your environment" >&2;}
  2096    { (exit 1); exit 1; }; }
  2097    fi
  2099    test "$2" = conftest.file
  2101 then
  2102    # Ok.
  2104 else
  2105    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2106 Check your system clock" >&5
  2107 $as_echo "$as_me: error: newly created file is older than distributed files!
  2108 Check your system clock" >&2;}
  2109    { (exit 1); exit 1; }; }
  2110 fi
  2111 { $as_echo "$as_me:$LINENO: result: yes" >&5
  2112 $as_echo "yes" >&6; }
  2113 test "$program_prefix" != NONE &&
  2114   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2115 # Use a double $ so make ignores it.
  2116 test "$program_suffix" != NONE &&
  2117   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2118 # Double any \ or $.
  2119 # By default was `s,x,x', remove it if useless.
  2120 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2121 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2123 # expand $ac_aux_dir to an absolute path
  2124 am_aux_dir=`cd $ac_aux_dir && pwd`
  2126 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2127 # Use eval to expand $SHELL
  2128 if eval "$MISSING --run true"; then
  2129   am_missing_run="$MISSING --run "
  2130 else
  2131   am_missing_run=
  2132   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2133 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2134 fi
  2136 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2137   # We used to keeping the `.' as first argument, in order to
  2138   # allow $(mkdir_p) to be used without argument.  As in
  2139   #   $(mkdir_p) $(somedir)
  2140   # where $(somedir) is conditionally defined.  However this is wrong
  2141   # for two reasons:
  2142   #  1. if the package is installed by a user who cannot write `.'
  2143   #     make install will fail,
  2144   #  2. the above comment should most certainly read
  2145   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2146   #     so it does not work when $(somedir) is undefined and
  2147   #     $(DESTDIR) is not.
  2148   #  To support the latter case, we have to write
  2149   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2150   #  so the `.' trick is pointless.
  2151   mkdir_p='mkdir -p --'
  2152 else
  2153   # On NextStep and OpenStep, the `mkdir' command does not
  2154   # recognize any option.  It will interpret all options as
  2155   # directories to create, and then abort because `.' already
  2156   # exists.
  2157   for d in ./-p ./--version;
  2158   do
  2159     test -d $d && rmdir $d
  2160   done
  2161   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2162   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2163     mkdir_p='$(mkinstalldirs)'
  2164   else
  2165     mkdir_p='$(install_sh) -d'
  2166   fi
  2167 fi
  2169 for ac_prog in gawk mawk nawk awk
  2170 do
  2171   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2172 set dummy $ac_prog; ac_word=$2
  2173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2174 $as_echo_n "checking for $ac_word... " >&6; }
  2175 if test "${ac_cv_prog_AWK+set}" = set; then
  2176   $as_echo_n "(cached) " >&6
  2177 else
  2178   if test -n "$AWK"; then
  2179   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2180 else
  2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2182 for as_dir in $PATH
  2183 do
  2184   IFS=$as_save_IFS
  2185   test -z "$as_dir" && as_dir=.
  2186   for ac_exec_ext in '' $ac_executable_extensions; do
  2187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2188     ac_cv_prog_AWK="$ac_prog"
  2189     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2190     break 2
  2191   fi
  2192 done
  2193 done
  2194 IFS=$as_save_IFS
  2196 fi
  2197 fi
  2198 AWK=$ac_cv_prog_AWK
  2199 if test -n "$AWK"; then
  2200   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2201 $as_echo "$AWK" >&6; }
  2202 else
  2203   { $as_echo "$as_me:$LINENO: result: no" >&5
  2204 $as_echo "no" >&6; }
  2205 fi
  2208   test -n "$AWK" && break
  2209 done
  2211 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2212 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2213 set x ${MAKE-make}
  2214 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2215 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2216   $as_echo_n "(cached) " >&6
  2217 else
  2218   cat >conftest.make <<\_ACEOF
  2219 SHELL = /bin/sh
  2220 all:
  2221 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2222 _ACEOF
  2223 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2224 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2225   *@@@%%%=?*=@@@%%%*)
  2226     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2227   *)
  2228     eval ac_cv_prog_make_${ac_make}_set=no;;
  2229 esac
  2230 rm -f conftest.make
  2231 fi
  2232 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2233   { $as_echo "$as_me:$LINENO: result: yes" >&5
  2234 $as_echo "yes" >&6; }
  2235   SET_MAKE=
  2236 else
  2237   { $as_echo "$as_me:$LINENO: result: no" >&5
  2238 $as_echo "no" >&6; }
  2239   SET_MAKE="MAKE=${MAKE-make}"
  2240 fi
  2242 rm -rf .tst 2>/dev/null
  2243 mkdir .tst 2>/dev/null
  2244 if test -d .tst; then
  2245   am__leading_dot=.
  2246 else
  2247   am__leading_dot=_
  2248 fi
  2249 rmdir .tst 2>/dev/null
  2251 # test to see if srcdir already configured
  2252 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2253    test -f $srcdir/config.status; then
  2254   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2255 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2256    { (exit 1); exit 1; }; }
  2257 fi
  2259 # test whether we have cygpath
  2260 if test -z "$CYGPATH_W"; then
  2261   if (cygpath --version) >/dev/null 2>/dev/null; then
  2262     CYGPATH_W='cygpath -w'
  2263   else
  2264     CYGPATH_W=echo
  2265   fi
  2266 fi
  2269 # Define the identity of the package.
  2270  PACKAGE=lxdream
  2271  VERSION=0.8.1
  2274 cat >>confdefs.h <<_ACEOF
  2275 #define PACKAGE "$PACKAGE"
  2276 _ACEOF
  2279 cat >>confdefs.h <<_ACEOF
  2280 #define VERSION "$VERSION"
  2281 _ACEOF
  2283 # Some tools Automake needs.
  2285 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2288 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2291 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2294 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2297 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2299 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2301 # Installed binaries are usually stripped using `strip' when the user
  2302 # run `make install-strip'.  However `strip' might not be the right
  2303 # tool to use in cross-compilation environments, therefore Automake
  2304 # will honor the `STRIP' environment variable to overrule this program.
  2305 if test "$cross_compiling" != no; then
  2306   if test -n "$ac_tool_prefix"; then
  2307   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2308 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2309 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2310 $as_echo_n "checking for $ac_word... " >&6; }
  2311 if test "${ac_cv_prog_STRIP+set}" = set; then
  2312   $as_echo_n "(cached) " >&6
  2313 else
  2314   if test -n "$STRIP"; then
  2315   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2316 else
  2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2318 for as_dir in $PATH
  2319 do
  2320   IFS=$as_save_IFS
  2321   test -z "$as_dir" && as_dir=.
  2322   for ac_exec_ext in '' $ac_executable_extensions; do
  2323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2324     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2325     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2326     break 2
  2327   fi
  2328 done
  2329 done
  2330 IFS=$as_save_IFS
  2332 fi
  2333 fi
  2334 STRIP=$ac_cv_prog_STRIP
  2335 if test -n "$STRIP"; then
  2336   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2337 $as_echo "$STRIP" >&6; }
  2338 else
  2339   { $as_echo "$as_me:$LINENO: result: no" >&5
  2340 $as_echo "no" >&6; }
  2341 fi
  2344 fi
  2345 if test -z "$ac_cv_prog_STRIP"; then
  2346   ac_ct_STRIP=$STRIP
  2347   # Extract the first word of "strip", so it can be a program name with args.
  2348 set dummy strip; ac_word=$2
  2349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2350 $as_echo_n "checking for $ac_word... " >&6; }
  2351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2352   $as_echo_n "(cached) " >&6
  2353 else
  2354   if test -n "$ac_ct_STRIP"; then
  2355   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2356 else
  2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2358 for as_dir in $PATH
  2359 do
  2360   IFS=$as_save_IFS
  2361   test -z "$as_dir" && as_dir=.
  2362   for ac_exec_ext in '' $ac_executable_extensions; do
  2363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2364     ac_cv_prog_ac_ct_STRIP="strip"
  2365     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2366     break 2
  2367   fi
  2368 done
  2369 done
  2370 IFS=$as_save_IFS
  2372 fi
  2373 fi
  2374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2375 if test -n "$ac_ct_STRIP"; then
  2376   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2377 $as_echo "$ac_ct_STRIP" >&6; }
  2378 else
  2379   { $as_echo "$as_me:$LINENO: result: no" >&5
  2380 $as_echo "no" >&6; }
  2381 fi
  2383   if test "x$ac_ct_STRIP" = x; then
  2384     STRIP=":"
  2385   else
  2386     case $cross_compiling:$ac_tool_warned in
  2387 yes:)
  2388 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2389 whose name does not start with the host triplet.  If you think this
  2390 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2391 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2392 whose name does not start with the host triplet.  If you think this
  2393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2394 ac_tool_warned=yes ;;
  2395 esac
  2396     STRIP=$ac_ct_STRIP
  2397   fi
  2398 else
  2399   STRIP="$ac_cv_prog_STRIP"
  2400 fi
  2402 fi
  2403 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2405 # We need awk for the "check" target.  The system "awk" is bad on
  2406 # some platforms.
  2407 # Always define AMTAR for backward compatibility.
  2409 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2411 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2417 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2418 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2419     # Check whether --enable-maintainer-mode was given.
  2420 if test "${enable_maintainer_mode+set}" = set; then
  2421   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2422 else
  2423   USE_MAINTAINER_MODE=no
  2424 fi
  2426   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2427 $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2430 if test $USE_MAINTAINER_MODE = yes; then
  2431   MAINTAINER_MODE_TRUE=
  2432   MAINTAINER_MODE_FALSE='#'
  2433 else
  2434   MAINTAINER_MODE_TRUE='#'
  2435   MAINTAINER_MODE_FALSE=
  2436 fi
  2438   MAINT=$MAINTAINER_MODE_TRUE
  2441 ac_config_headers="$ac_config_headers config.h"
  2444 DEPDIR="${am__leading_dot}deps"
  2446 ac_config_commands="$ac_config_commands depfiles"
  2449 am_make=${MAKE-make}
  2450 cat > confinc << 'END'
  2451 am__doit:
  2452 	@echo done
  2453 .PHONY: am__doit
  2454 END
  2455 # If we don't find an include directive, just comment out the code.
  2456 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2457 $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2458 am__include="#"
  2459 am__quote=
  2460 _am_result=none
  2461 # First try GNU make style include.
  2462 echo "include confinc" > confmf
  2463 # We grep out `Entering directory' and `Leaving directory'
  2464 # messages which can occur if `w' ends up in MAKEFLAGS.
  2465 # In particular we don't look at `^make:' because GNU make might
  2466 # be invoked under some other name (usually "gmake"), in which
  2467 # case it prints its new name instead of `make'.
  2468 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2469    am__include=include
  2470    am__quote=
  2471    _am_result=GNU
  2472 fi
  2473 # Now try BSD make style include.
  2474 if test "$am__include" = "#"; then
  2475    echo '.include "confinc"' > confmf
  2476    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2477       am__include=.include
  2478       am__quote="\""
  2479       _am_result=BSD
  2480    fi
  2481 fi
  2484 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2485 $as_echo "$_am_result" >&6; }
  2486 rm -f confinc confmf
  2488 # Check whether --enable-dependency-tracking was given.
  2489 if test "${enable_dependency_tracking+set}" = set; then
  2490   enableval=$enable_dependency_tracking;
  2491 fi
  2493 if test "x$enable_dependency_tracking" != xno; then
  2494   am_depcomp="$ac_aux_dir/depcomp"
  2495   AMDEPBACKSLASH='\'
  2496 fi
  2499 if test "x$enable_dependency_tracking" != xno; then
  2500   AMDEP_TRUE=
  2501   AMDEP_FALSE='#'
  2502 else
  2503   AMDEP_TRUE='#'
  2504   AMDEP_FALSE=
  2505 fi
  2509 ac_ext=c
  2510 ac_cpp='$CPP $CPPFLAGS'
  2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2514 if test -n "$ac_tool_prefix"; then
  2515   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2518 $as_echo_n "checking for $ac_word... " >&6; }
  2519 if test "${ac_cv_prog_CC+set}" = set; then
  2520   $as_echo_n "(cached) " >&6
  2521 else
  2522   if test -n "$CC"; then
  2523   ac_cv_prog_CC="$CC" # Let the user override the test.
  2524 else
  2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2526 for as_dir in $PATH
  2527 do
  2528   IFS=$as_save_IFS
  2529   test -z "$as_dir" && as_dir=.
  2530   for ac_exec_ext in '' $ac_executable_extensions; do
  2531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2532     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2533     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2534     break 2
  2535   fi
  2536 done
  2537 done
  2538 IFS=$as_save_IFS
  2540 fi
  2541 fi
  2542 CC=$ac_cv_prog_CC
  2543 if test -n "$CC"; then
  2544   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2545 $as_echo "$CC" >&6; }
  2546 else
  2547   { $as_echo "$as_me:$LINENO: result: no" >&5
  2548 $as_echo "no" >&6; }
  2549 fi
  2552 fi
  2553 if test -z "$ac_cv_prog_CC"; then
  2554   ac_ct_CC=$CC
  2555   # Extract the first word of "gcc", so it can be a program name with args.
  2556 set dummy gcc; ac_word=$2
  2557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2558 $as_echo_n "checking for $ac_word... " >&6; }
  2559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2560   $as_echo_n "(cached) " >&6
  2561 else
  2562   if test -n "$ac_ct_CC"; then
  2563   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2564 else
  2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2566 for as_dir in $PATH
  2567 do
  2568   IFS=$as_save_IFS
  2569   test -z "$as_dir" && as_dir=.
  2570   for ac_exec_ext in '' $ac_executable_extensions; do
  2571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2572     ac_cv_prog_ac_ct_CC="gcc"
  2573     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2574     break 2
  2575   fi
  2576 done
  2577 done
  2578 IFS=$as_save_IFS
  2580 fi
  2581 fi
  2582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2583 if test -n "$ac_ct_CC"; then
  2584   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2585 $as_echo "$ac_ct_CC" >&6; }
  2586 else
  2587   { $as_echo "$as_me:$LINENO: result: no" >&5
  2588 $as_echo "no" >&6; }
  2589 fi
  2591   if test "x$ac_ct_CC" = x; then
  2592     CC=""
  2593   else
  2594     case $cross_compiling:$ac_tool_warned in
  2595 yes:)
  2596 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2597 whose name does not start with the host triplet.  If you think this
  2598 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2599 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2600 whose name does not start with the host triplet.  If you think this
  2601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2602 ac_tool_warned=yes ;;
  2603 esac
  2604     CC=$ac_ct_CC
  2605   fi
  2606 else
  2607   CC="$ac_cv_prog_CC"
  2608 fi
  2610 if test -z "$CC"; then
  2611           if test -n "$ac_tool_prefix"; then
  2612     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2613 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2614 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2615 $as_echo_n "checking for $ac_word... " >&6; }
  2616 if test "${ac_cv_prog_CC+set}" = set; then
  2617   $as_echo_n "(cached) " >&6
  2618 else
  2619   if test -n "$CC"; then
  2620   ac_cv_prog_CC="$CC" # Let the user override the test.
  2621 else
  2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2623 for as_dir in $PATH
  2624 do
  2625   IFS=$as_save_IFS
  2626   test -z "$as_dir" && as_dir=.
  2627   for ac_exec_ext in '' $ac_executable_extensions; do
  2628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2629     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2630     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2631     break 2
  2632   fi
  2633 done
  2634 done
  2635 IFS=$as_save_IFS
  2637 fi
  2638 fi
  2639 CC=$ac_cv_prog_CC
  2640 if test -n "$CC"; then
  2641   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2642 $as_echo "$CC" >&6; }
  2643 else
  2644   { $as_echo "$as_me:$LINENO: result: no" >&5
  2645 $as_echo "no" >&6; }
  2646 fi
  2649   fi
  2650 fi
  2651 if test -z "$CC"; then
  2652   # Extract the first word of "cc", so it can be a program name with args.
  2653 set dummy cc; ac_word=$2
  2654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2655 $as_echo_n "checking for $ac_word... " >&6; }
  2656 if test "${ac_cv_prog_CC+set}" = set; then
  2657   $as_echo_n "(cached) " >&6
  2658 else
  2659   if test -n "$CC"; then
  2660   ac_cv_prog_CC="$CC" # Let the user override the test.
  2661 else
  2662   ac_prog_rejected=no
  2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2664 for as_dir in $PATH
  2665 do
  2666   IFS=$as_save_IFS
  2667   test -z "$as_dir" && as_dir=.
  2668   for ac_exec_ext in '' $ac_executable_extensions; do
  2669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2670     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2671        ac_prog_rejected=yes
  2672        continue
  2673      fi
  2674     ac_cv_prog_CC="cc"
  2675     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2676     break 2
  2677   fi
  2678 done
  2679 done
  2680 IFS=$as_save_IFS
  2682 if test $ac_prog_rejected = yes; then
  2683   # We found a bogon in the path, so make sure we never use it.
  2684   set dummy $ac_cv_prog_CC
  2685   shift
  2686   if test $# != 0; then
  2687     # We chose a different compiler from the bogus one.
  2688     # However, it has the same basename, so the bogon will be chosen
  2689     # first if we set CC to just the basename; use the full file name.
  2690     shift
  2691     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2692   fi
  2693 fi
  2694 fi
  2695 fi
  2696 CC=$ac_cv_prog_CC
  2697 if test -n "$CC"; then
  2698   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2699 $as_echo "$CC" >&6; }
  2700 else
  2701   { $as_echo "$as_me:$LINENO: result: no" >&5
  2702 $as_echo "no" >&6; }
  2703 fi
  2706 fi
  2707 if test -z "$CC"; then
  2708   if test -n "$ac_tool_prefix"; then
  2709   for ac_prog in cl.exe
  2710   do
  2711     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2713 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2714 $as_echo_n "checking for $ac_word... " >&6; }
  2715 if test "${ac_cv_prog_CC+set}" = set; then
  2716   $as_echo_n "(cached) " >&6
  2717 else
  2718   if test -n "$CC"; then
  2719   ac_cv_prog_CC="$CC" # Let the user override the test.
  2720 else
  2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2722 for as_dir in $PATH
  2723 do
  2724   IFS=$as_save_IFS
  2725   test -z "$as_dir" && as_dir=.
  2726   for ac_exec_ext in '' $ac_executable_extensions; do
  2727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2728     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2729     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2730     break 2
  2731   fi
  2732 done
  2733 done
  2734 IFS=$as_save_IFS
  2736 fi
  2737 fi
  2738 CC=$ac_cv_prog_CC
  2739 if test -n "$CC"; then
  2740   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2741 $as_echo "$CC" >&6; }
  2742 else
  2743   { $as_echo "$as_me:$LINENO: result: no" >&5
  2744 $as_echo "no" >&6; }
  2745 fi
  2748     test -n "$CC" && break
  2749   done
  2750 fi
  2751 if test -z "$CC"; then
  2752   ac_ct_CC=$CC
  2753   for ac_prog in cl.exe
  2754 do
  2755   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2756 set dummy $ac_prog; ac_word=$2
  2757 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2758 $as_echo_n "checking for $ac_word... " >&6; }
  2759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2760   $as_echo_n "(cached) " >&6
  2761 else
  2762   if test -n "$ac_ct_CC"; then
  2763   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2764 else
  2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2766 for as_dir in $PATH
  2767 do
  2768   IFS=$as_save_IFS
  2769   test -z "$as_dir" && as_dir=.
  2770   for ac_exec_ext in '' $ac_executable_extensions; do
  2771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2772     ac_cv_prog_ac_ct_CC="$ac_prog"
  2773     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2774     break 2
  2775   fi
  2776 done
  2777 done
  2778 IFS=$as_save_IFS
  2780 fi
  2781 fi
  2782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2783 if test -n "$ac_ct_CC"; then
  2784   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2785 $as_echo "$ac_ct_CC" >&6; }
  2786 else
  2787   { $as_echo "$as_me:$LINENO: result: no" >&5
  2788 $as_echo "no" >&6; }
  2789 fi
  2792   test -n "$ac_ct_CC" && break
  2793 done
  2795   if test "x$ac_ct_CC" = x; then
  2796     CC=""
  2797   else
  2798     case $cross_compiling:$ac_tool_warned in
  2799 yes:)
  2800 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2801 whose name does not start with the host triplet.  If you think this
  2802 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2803 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2804 whose name does not start with the host triplet.  If you think this
  2805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2806 ac_tool_warned=yes ;;
  2807 esac
  2808     CC=$ac_ct_CC
  2809   fi
  2810 fi
  2812 fi
  2815 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2816 See \`config.log' for more details." >&5
  2817 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2818 See \`config.log' for more details." >&2;}
  2819    { (exit 1); exit 1; }; }
  2821 # Provide some information about the compiler.
  2822 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2823 set X $ac_compile
  2824 ac_compiler=$2
  2825 { (ac_try="$ac_compiler --version >&5"
  2826 case "(($ac_try" in
  2827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2828   *) ac_try_echo=$ac_try;;
  2829 esac
  2830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2831 $as_echo "$ac_try_echo") >&5
  2832   (eval "$ac_compiler --version >&5") 2>&5
  2833   ac_status=$?
  2834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2835   (exit $ac_status); }
  2836 { (ac_try="$ac_compiler -v >&5"
  2837 case "(($ac_try" in
  2838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2839   *) ac_try_echo=$ac_try;;
  2840 esac
  2841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2842 $as_echo "$ac_try_echo") >&5
  2843   (eval "$ac_compiler -v >&5") 2>&5
  2844   ac_status=$?
  2845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2846   (exit $ac_status); }
  2847 { (ac_try="$ac_compiler -V >&5"
  2848 case "(($ac_try" in
  2849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2850   *) ac_try_echo=$ac_try;;
  2851 esac
  2852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2853 $as_echo "$ac_try_echo") >&5
  2854   (eval "$ac_compiler -V >&5") 2>&5
  2855   ac_status=$?
  2856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2857   (exit $ac_status); }
  2859 cat >conftest.$ac_ext <<_ACEOF
  2860 /* confdefs.h.  */
  2861 _ACEOF
  2862 cat confdefs.h >>conftest.$ac_ext
  2863 cat >>conftest.$ac_ext <<_ACEOF
  2864 /* end confdefs.h.  */
  2866 int
  2867 main ()
  2871   return 0;
  2873 _ACEOF
  2874 ac_clean_files_save=$ac_clean_files
  2875 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2876 # Try to create an executable without -o first, disregard a.out.
  2877 # It will help us diagnose broken compilers, and finding out an intuition
  2878 # of exeext.
  2879 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2880 $as_echo_n "checking for C compiler default output file name... " >&6; }
  2881 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2883 # The possible output files:
  2884 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2886 ac_rmfiles=
  2887 for ac_file in $ac_files
  2888 do
  2889   case $ac_file in
  2890     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2891     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2892   esac
  2893 done
  2894 rm -f $ac_rmfiles
  2896 if { (ac_try="$ac_link_default"
  2897 case "(($ac_try" in
  2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2899   *) ac_try_echo=$ac_try;;
  2900 esac
  2901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2902 $as_echo "$ac_try_echo") >&5
  2903   (eval "$ac_link_default") 2>&5
  2904   ac_status=$?
  2905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2906   (exit $ac_status); }; then
  2907   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2908 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2909 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2910 # so that the user can short-circuit this test for compilers unknown to
  2911 # Autoconf.
  2912 for ac_file in $ac_files ''
  2913 do
  2914   test -f "$ac_file" || continue
  2915   case $ac_file in
  2916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2917 	;;
  2918     [ab].out )
  2919 	# We found the default executable, but exeext='' is most
  2920 	# certainly right.
  2921 	break;;
  2922     *.* )
  2923         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2924 	then :; else
  2925 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2926 	fi
  2927 	# We set ac_cv_exeext here because the later test for it is not
  2928 	# safe: cross compilers may not add the suffix if given an `-o'
  2929 	# argument, so we may need to know it at that point already.
  2930 	# Even if this section looks crufty: it has the advantage of
  2931 	# actually working.
  2932 	break;;
  2933     * )
  2934 	break;;
  2935   esac
  2936 done
  2937 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2939 else
  2940   ac_file=''
  2941 fi
  2943 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2944 $as_echo "$ac_file" >&6; }
  2945 if test -z "$ac_file"; then
  2946   $as_echo "$as_me: failed program was:" >&5
  2947 sed 's/^/| /' conftest.$ac_ext >&5
  2949 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2950 See \`config.log' for more details." >&5
  2951 $as_echo "$as_me: error: C compiler cannot create executables
  2952 See \`config.log' for more details." >&2;}
  2953    { (exit 77); exit 77; }; }
  2954 fi
  2956 ac_exeext=$ac_cv_exeext
  2958 # Check that the compiler produces executables we can run.  If not, either
  2959 # the compiler is broken, or we cross compile.
  2960 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2961 $as_echo_n "checking whether the C compiler works... " >&6; }
  2962 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2963 # If not cross compiling, check that we can run a simple program.
  2964 if test "$cross_compiling" != yes; then
  2965   if { ac_try='./$ac_file'
  2966   { (case "(($ac_try" in
  2967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2968   *) ac_try_echo=$ac_try;;
  2969 esac
  2970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2971 $as_echo "$ac_try_echo") >&5
  2972   (eval "$ac_try") 2>&5
  2973   ac_status=$?
  2974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2975   (exit $ac_status); }; }; then
  2976     cross_compiling=no
  2977   else
  2978     if test "$cross_compiling" = maybe; then
  2979 	cross_compiling=yes
  2980     else
  2981 	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2982 If you meant to cross compile, use \`--host'.
  2983 See \`config.log' for more details." >&5
  2984 $as_echo "$as_me: error: cannot run C compiled programs.
  2985 If you meant to cross compile, use \`--host'.
  2986 See \`config.log' for more details." >&2;}
  2987    { (exit 1); exit 1; }; }
  2988     fi
  2989   fi
  2990 fi
  2991 { $as_echo "$as_me:$LINENO: result: yes" >&5
  2992 $as_echo "yes" >&6; }
  2994 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2995 ac_clean_files=$ac_clean_files_save
  2996 # Check that the compiler produces executables we can run.  If not, either
  2997 # the compiler is broken, or we cross compile.
  2998 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2999 $as_echo_n "checking whether we are cross compiling... " >&6; }
  3000 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3001 $as_echo "$cross_compiling" >&6; }
  3003 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3004 $as_echo_n "checking for suffix of executables... " >&6; }
  3005 if { (ac_try="$ac_link"
  3006 case "(($ac_try" in
  3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3008   *) ac_try_echo=$ac_try;;
  3009 esac
  3010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3011 $as_echo "$ac_try_echo") >&5
  3012   (eval "$ac_link") 2>&5
  3013   ac_status=$?
  3014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3015   (exit $ac_status); }; then
  3016   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3017 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3018 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3019 # `rm'.
  3020 for ac_file in conftest.exe conftest conftest.*; do
  3021   test -f "$ac_file" || continue
  3022   case $ac_file in
  3023     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3024     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3025 	  break;;
  3026     * ) break;;
  3027   esac
  3028 done
  3029 else
  3030   { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3031 See \`config.log' for more details." >&5
  3032 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3033 See \`config.log' for more details." >&2;}
  3034    { (exit 1); exit 1; }; }
  3035 fi
  3037 rm -f conftest$ac_cv_exeext
  3038 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3039 $as_echo "$ac_cv_exeext" >&6; }
  3041 rm -f conftest.$ac_ext
  3042 EXEEXT=$ac_cv_exeext
  3043 ac_exeext=$EXEEXT
  3044 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3045 $as_echo_n "checking for suffix of object files... " >&6; }
  3046 if test "${ac_cv_objext+set}" = set; then
  3047   $as_echo_n "(cached) " >&6
  3048 else
  3049   cat >conftest.$ac_ext <<_ACEOF
  3050 /* confdefs.h.  */
  3051 _ACEOF
  3052 cat confdefs.h >>conftest.$ac_ext
  3053 cat >>conftest.$ac_ext <<_ACEOF
  3054 /* end confdefs.h.  */
  3056 int
  3057 main ()
  3061   return 0;
  3063 _ACEOF
  3064 rm -f conftest.o conftest.obj
  3065 if { (ac_try="$ac_compile"
  3066 case "(($ac_try" in
  3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3068   *) ac_try_echo=$ac_try;;
  3069 esac
  3070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3071 $as_echo "$ac_try_echo") >&5
  3072   (eval "$ac_compile") 2>&5
  3073   ac_status=$?
  3074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3075   (exit $ac_status); }; then
  3076   for ac_file in conftest.o conftest.obj conftest.*; do
  3077   test -f "$ac_file" || continue;
  3078   case $ac_file in
  3079     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3080     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3081        break;;
  3082   esac
  3083 done
  3084 else
  3085   $as_echo "$as_me: failed program was:" >&5
  3086 sed 's/^/| /' conftest.$ac_ext >&5
  3088 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3089 See \`config.log' for more details." >&5
  3090 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3091 See \`config.log' for more details." >&2;}
  3092    { (exit 1); exit 1; }; }
  3093 fi
  3095 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3096 fi
  3097 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3098 $as_echo "$ac_cv_objext" >&6; }
  3099 OBJEXT=$ac_cv_objext
  3100 ac_objext=$OBJEXT
  3101 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3102 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3103 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3104   $as_echo_n "(cached) " >&6
  3105 else
  3106   cat >conftest.$ac_ext <<_ACEOF
  3107 /* confdefs.h.  */
  3108 _ACEOF
  3109 cat confdefs.h >>conftest.$ac_ext
  3110 cat >>conftest.$ac_ext <<_ACEOF
  3111 /* end confdefs.h.  */
  3113 int
  3114 main ()
  3116 #ifndef __GNUC__
  3117        choke me
  3118 #endif
  3121   return 0;
  3123 _ACEOF
  3124 rm -f conftest.$ac_objext
  3125 if { (ac_try="$ac_compile"
  3126 case "(($ac_try" in
  3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3128   *) ac_try_echo=$ac_try;;
  3129 esac
  3130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3131 $as_echo "$ac_try_echo") >&5
  3132   (eval "$ac_compile") 2>conftest.er1
  3133   ac_status=$?
  3134   grep -v '^ *+' conftest.er1 >conftest.err
  3135   rm -f conftest.er1
  3136   cat conftest.err >&5
  3137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3138   (exit $ac_status); } && {
  3139 	 test -z "$ac_c_werror_flag" ||
  3140 	 test ! -s conftest.err
  3141        } && test -s conftest.$ac_objext; then
  3142   ac_compiler_gnu=yes
  3143 else
  3144   $as_echo "$as_me: failed program was:" >&5
  3145 sed 's/^/| /' conftest.$ac_ext >&5
  3147 	ac_compiler_gnu=no
  3148 fi
  3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3151 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3153 fi
  3154 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3155 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3156 if test $ac_compiler_gnu = yes; then
  3157   GCC=yes
  3158 else
  3159   GCC=
  3160 fi
  3161 ac_test_CFLAGS=${CFLAGS+set}
  3162 ac_save_CFLAGS=$CFLAGS
  3163 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3164 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3165 if test "${ac_cv_prog_cc_g+set}" = set; then
  3166   $as_echo_n "(cached) " >&6
  3167 else
  3168   ac_save_c_werror_flag=$ac_c_werror_flag
  3169    ac_c_werror_flag=yes
  3170    ac_cv_prog_cc_g=no
  3171    CFLAGS="-g"
  3172    cat >conftest.$ac_ext <<_ACEOF
  3173 /* confdefs.h.  */
  3174 _ACEOF
  3175 cat confdefs.h >>conftest.$ac_ext
  3176 cat >>conftest.$ac_ext <<_ACEOF
  3177 /* end confdefs.h.  */
  3179 int
  3180 main ()
  3184   return 0;
  3186 _ACEOF
  3187 rm -f conftest.$ac_objext
  3188 if { (ac_try="$ac_compile"
  3189 case "(($ac_try" in
  3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3191   *) ac_try_echo=$ac_try;;
  3192 esac
  3193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3194 $as_echo "$ac_try_echo") >&5
  3195   (eval "$ac_compile") 2>conftest.er1
  3196   ac_status=$?
  3197   grep -v '^ *+' conftest.er1 >conftest.err
  3198   rm -f conftest.er1
  3199   cat conftest.err >&5
  3200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3201   (exit $ac_status); } && {
  3202 	 test -z "$ac_c_werror_flag" ||
  3203 	 test ! -s conftest.err
  3204        } && test -s conftest.$ac_objext; then
  3205   ac_cv_prog_cc_g=yes
  3206 else
  3207   $as_echo "$as_me: failed program was:" >&5
  3208 sed 's/^/| /' conftest.$ac_ext >&5
  3210 	CFLAGS=""
  3211       cat >conftest.$ac_ext <<_ACEOF
  3212 /* confdefs.h.  */
  3213 _ACEOF
  3214 cat confdefs.h >>conftest.$ac_ext
  3215 cat >>conftest.$ac_ext <<_ACEOF
  3216 /* end confdefs.h.  */
  3218 int
  3219 main ()
  3223   return 0;
  3225 _ACEOF
  3226 rm -f conftest.$ac_objext
  3227 if { (ac_try="$ac_compile"
  3228 case "(($ac_try" in
  3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3230   *) ac_try_echo=$ac_try;;
  3231 esac
  3232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3233 $as_echo "$ac_try_echo") >&5
  3234   (eval "$ac_compile") 2>conftest.er1
  3235   ac_status=$?
  3236   grep -v '^ *+' conftest.er1 >conftest.err
  3237   rm -f conftest.er1
  3238   cat conftest.err >&5
  3239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3240   (exit $ac_status); } && {
  3241 	 test -z "$ac_c_werror_flag" ||
  3242 	 test ! -s conftest.err
  3243        } && test -s conftest.$ac_objext; then
  3245 else
  3246   $as_echo "$as_me: failed program was:" >&5
  3247 sed 's/^/| /' conftest.$ac_ext >&5
  3249 	ac_c_werror_flag=$ac_save_c_werror_flag
  3250 	 CFLAGS="-g"
  3251 	 cat >conftest.$ac_ext <<_ACEOF
  3252 /* confdefs.h.  */
  3253 _ACEOF
  3254 cat confdefs.h >>conftest.$ac_ext
  3255 cat >>conftest.$ac_ext <<_ACEOF
  3256 /* end confdefs.h.  */
  3258 int
  3259 main ()
  3263   return 0;
  3265 _ACEOF
  3266 rm -f conftest.$ac_objext
  3267 if { (ac_try="$ac_compile"
  3268 case "(($ac_try" in
  3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3270   *) ac_try_echo=$ac_try;;
  3271 esac
  3272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3273 $as_echo "$ac_try_echo") >&5
  3274   (eval "$ac_compile") 2>conftest.er1
  3275   ac_status=$?
  3276   grep -v '^ *+' conftest.er1 >conftest.err
  3277   rm -f conftest.er1
  3278   cat conftest.err >&5
  3279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3280   (exit $ac_status); } && {
  3281 	 test -z "$ac_c_werror_flag" ||
  3282 	 test ! -s conftest.err
  3283        } && test -s conftest.$ac_objext; then
  3284   ac_cv_prog_cc_g=yes
  3285 else
  3286   $as_echo "$as_me: failed program was:" >&5
  3287 sed 's/^/| /' conftest.$ac_ext >&5
  3290 fi
  3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3293 fi
  3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3296 fi
  3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3299    ac_c_werror_flag=$ac_save_c_werror_flag
  3300 fi
  3301 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3302 $as_echo "$ac_cv_prog_cc_g" >&6; }
  3303 if test "$ac_test_CFLAGS" = set; then
  3304   CFLAGS=$ac_save_CFLAGS
  3305 elif test $ac_cv_prog_cc_g = yes; then
  3306   if test "$GCC" = yes; then
  3307     CFLAGS="-g -O2"
  3308   else
  3309     CFLAGS="-g"
  3310   fi
  3311 else
  3312   if test "$GCC" = yes; then
  3313     CFLAGS="-O2"
  3314   else
  3315     CFLAGS=
  3316   fi
  3317 fi
  3318 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3319 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3320 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3321   $as_echo_n "(cached) " >&6
  3322 else
  3323   ac_cv_prog_cc_c89=no
  3324 ac_save_CC=$CC
  3325 cat >conftest.$ac_ext <<_ACEOF
  3326 /* confdefs.h.  */
  3327 _ACEOF
  3328 cat confdefs.h >>conftest.$ac_ext
  3329 cat >>conftest.$ac_ext <<_ACEOF
  3330 /* end confdefs.h.  */
  3331 #include <stdarg.h>
  3332 #include <stdio.h>
  3333 #include <sys/types.h>
  3334 #include <sys/stat.h>
  3335 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3336 struct buf { int x; };
  3337 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3338 static char *e (p, i)
  3339      char **p;
  3340      int i;
  3342   return p[i];
  3344 static char *f (char * (*g) (char **, int), char **p, ...)
  3346   char *s;
  3347   va_list v;
  3348   va_start (v,p);
  3349   s = g (p, va_arg (v,int));
  3350   va_end (v);
  3351   return s;
  3354 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3355    function prototypes and stuff, but not '\xHH' hex character constants.
  3356    These don't provoke an error unfortunately, instead are silently treated
  3357    as 'x'.  The following induces an error, until -std is added to get
  3358    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3359    array size at least.  It's necessary to write '\x00'==0 to get something
  3360    that's true only with -std.  */
  3361 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3363 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3364    inside strings and character constants.  */
  3365 #define FOO(x) 'x'
  3366 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3368 int test (int i, double x);
  3369 struct s1 {int (*f) (int a);};
  3370 struct s2 {int (*f) (double a);};
  3371 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3372 int argc;
  3373 char **argv;
  3374 int
  3375 main ()
  3377 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3379   return 0;
  3381 _ACEOF
  3382 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3383 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3384 do
  3385   CC="$ac_save_CC $ac_arg"
  3386   rm -f conftest.$ac_objext
  3387 if { (ac_try="$ac_compile"
  3388 case "(($ac_try" in
  3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3390   *) ac_try_echo=$ac_try;;
  3391 esac
  3392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3393 $as_echo "$ac_try_echo") >&5
  3394   (eval "$ac_compile") 2>conftest.er1
  3395   ac_status=$?
  3396   grep -v '^ *+' conftest.er1 >conftest.err
  3397   rm -f conftest.er1
  3398   cat conftest.err >&5
  3399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3400   (exit $ac_status); } && {
  3401 	 test -z "$ac_c_werror_flag" ||
  3402 	 test ! -s conftest.err
  3403        } && test -s conftest.$ac_objext; then
  3404   ac_cv_prog_cc_c89=$ac_arg
  3405 else
  3406   $as_echo "$as_me: failed program was:" >&5
  3407 sed 's/^/| /' conftest.$ac_ext >&5
  3410 fi
  3412 rm -f core conftest.err conftest.$ac_objext
  3413   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3414 done
  3415 rm -f conftest.$ac_ext
  3416 CC=$ac_save_CC
  3418 fi
  3419 # AC_CACHE_VAL
  3420 case "x$ac_cv_prog_cc_c89" in
  3421   x)
  3422     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3423 $as_echo "none needed" >&6; } ;;
  3424   xno)
  3425     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3426 $as_echo "unsupported" >&6; } ;;
  3427   *)
  3428     CC="$CC $ac_cv_prog_cc_c89"
  3429     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3430 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3431 esac
  3434 ac_ext=c
  3435 ac_cpp='$CPP $CPPFLAGS'
  3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3440 depcc="$CC"   am_compiler_list=
  3442 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3443 $as_echo_n "checking dependency style of $depcc... " >&6; }
  3444 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3445   $as_echo_n "(cached) " >&6
  3446 else
  3447   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3448   # We make a subdir and do the tests there.  Otherwise we can end up
  3449   # making bogus files that we don't know about and never remove.  For
  3450   # instance it was reported that on HP-UX the gcc test will end up
  3451   # making a dummy file named `D' -- because `-MD' means `put the output
  3452   # in D'.
  3453   mkdir conftest.dir
  3454   # Copy depcomp to subdir because otherwise we won't find it if we're
  3455   # using a relative directory.
  3456   cp "$am_depcomp" conftest.dir
  3457   cd conftest.dir
  3458   # We will build objects and dependencies in a subdirectory because
  3459   # it helps to detect inapplicable dependency modes.  For instance
  3460   # both Tru64's cc and ICC support -MD to output dependencies as a
  3461   # side effect of compilation, but ICC will put the dependencies in
  3462   # the current directory while Tru64 will put them in the object
  3463   # directory.
  3464   mkdir sub
  3466   am_cv_CC_dependencies_compiler_type=none
  3467   if test "$am_compiler_list" = ""; then
  3468      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3469   fi
  3470   for depmode in $am_compiler_list; do
  3471     # Setup a source with many dependencies, because some compilers
  3472     # like to wrap large dependency lists on column 80 (with \), and
  3473     # we should not choose a depcomp mode which is confused by this.
  3475     # We need to recreate these files for each test, as the compiler may
  3476     # overwrite some of them when testing with obscure command lines.
  3477     # This happens at least with the AIX C compiler.
  3478     : > sub/conftest.c
  3479     for i in 1 2 3 4 5 6; do
  3480       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3481       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3482       # Solaris 8's {/usr,}/bin/sh.
  3483       touch sub/conftst$i.h
  3484     done
  3485     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3487     case $depmode in
  3488     nosideeffect)
  3489       # after this tag, mechanisms are not by side-effect, so they'll
  3490       # only be used when explicitly requested
  3491       if test "x$enable_dependency_tracking" = xyes; then
  3492 	continue
  3493       else
  3494 	break
  3495       fi
  3496       ;;
  3497     none) break ;;
  3498     esac
  3499     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3500     # mode.  It turns out that the SunPro C++ compiler does not properly
  3501     # handle `-M -o', and we need to detect this.
  3502     if depmode=$depmode \
  3503        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3504        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3505        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3506          >/dev/null 2>conftest.err &&
  3507        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3508        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3509        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3510       # icc doesn't choke on unknown options, it will just issue warnings
  3511       # or remarks (even with -Werror).  So we grep stderr for any message
  3512       # that says an option was ignored or not supported.
  3513       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3514       #   icc: Command line warning: ignoring option '-M'; no argument required
  3515       # The diagnosis changed in icc 8.0:
  3516       #   icc: Command line remark: option '-MP' not supported
  3517       if (grep 'ignoring option' conftest.err ||
  3518           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3519         am_cv_CC_dependencies_compiler_type=$depmode
  3520         break
  3521       fi
  3522     fi
  3523   done
  3525   cd ..
  3526   rm -rf conftest.dir
  3527 else
  3528   am_cv_CC_dependencies_compiler_type=none
  3529 fi
  3531 fi
  3532 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3533 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3534 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3538 if
  3539   test "x$enable_dependency_tracking" != xno \
  3540   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3541   am__fastdepCC_TRUE=
  3542   am__fastdepCC_FALSE='#'
  3543 else
  3544   am__fastdepCC_TRUE='#'
  3545   am__fastdepCC_FALSE=
  3546 fi
  3551         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3552 $as_echo_n "checking for strerror in -lcposix... " >&6; }
  3553 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3554   $as_echo_n "(cached) " >&6
  3555 else
  3556   ac_check_lib_save_LIBS=$LIBS
  3557 LIBS="-lcposix  $LIBS"
  3558 cat >conftest.$ac_ext <<_ACEOF
  3559 /* confdefs.h.  */
  3560 _ACEOF
  3561 cat confdefs.h >>conftest.$ac_ext
  3562 cat >>conftest.$ac_ext <<_ACEOF
  3563 /* end confdefs.h.  */
  3565 /* Override any GCC internal prototype to avoid an error.
  3566    Use char because int might match the return type of a GCC
  3567    builtin and then its argument prototype would still apply.  */
  3568 #ifdef __cplusplus
  3569 extern "C"
  3570 #endif
  3571 char strerror ();
  3572 int
  3573 main ()
  3575 return strerror ();
  3577   return 0;
  3579 _ACEOF
  3580 rm -f conftest.$ac_objext conftest$ac_exeext
  3581 if { (ac_try="$ac_link"
  3582 case "(($ac_try" in
  3583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3584   *) ac_try_echo=$ac_try;;
  3585 esac
  3586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3587 $as_echo "$ac_try_echo") >&5
  3588   (eval "$ac_link") 2>conftest.er1
  3589   ac_status=$?
  3590   grep -v '^ *+' conftest.er1 >conftest.err
  3591   rm -f conftest.er1
  3592   cat conftest.err >&5
  3593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3594   (exit $ac_status); } && {
  3595 	 test -z "$ac_c_werror_flag" ||
  3596 	 test ! -s conftest.err
  3597        } && test -s conftest$ac_exeext && {
  3598 	 test "$cross_compiling" = yes ||
  3599 	 $as_test_x conftest$ac_exeext
  3600        }; then
  3601   ac_cv_lib_cposix_strerror=yes
  3602 else
  3603   $as_echo "$as_me: failed program was:" >&5
  3604 sed 's/^/| /' conftest.$ac_ext >&5
  3606 	ac_cv_lib_cposix_strerror=no
  3607 fi
  3609 rm -rf conftest.dSYM
  3610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3611       conftest$ac_exeext conftest.$ac_ext
  3612 LIBS=$ac_check_lib_save_LIBS
  3613 fi
  3614 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3615 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3616 if test $ac_cv_lib_cposix_strerror = yes; then
  3617   LIBS="$LIBS -lcposix"
  3618 fi
  3622 ac_ext=c
  3623 ac_cpp='$CPP $CPPFLAGS'
  3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3627 if test -n "$ac_tool_prefix"; then
  3628   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3630 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3631 $as_echo_n "checking for $ac_word... " >&6; }
  3632 if test "${ac_cv_prog_CC+set}" = set; then
  3633   $as_echo_n "(cached) " >&6
  3634 else
  3635   if test -n "$CC"; then
  3636   ac_cv_prog_CC="$CC" # Let the user override the test.
  3637 else
  3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3639 for as_dir in $PATH
  3640 do
  3641   IFS=$as_save_IFS
  3642   test -z "$as_dir" && as_dir=.
  3643   for ac_exec_ext in '' $ac_executable_extensions; do
  3644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3645     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3646     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3647     break 2
  3648   fi
  3649 done
  3650 done
  3651 IFS=$as_save_IFS
  3653 fi
  3654 fi
  3655 CC=$ac_cv_prog_CC
  3656 if test -n "$CC"; then
  3657   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3658 $as_echo "$CC" >&6; }
  3659 else
  3660   { $as_echo "$as_me:$LINENO: result: no" >&5
  3661 $as_echo "no" >&6; }
  3662 fi
  3665 fi
  3666 if test -z "$ac_cv_prog_CC"; then
  3667   ac_ct_CC=$CC
  3668   # Extract the first word of "gcc", so it can be a program name with args.
  3669 set dummy gcc; ac_word=$2
  3670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3671 $as_echo_n "checking for $ac_word... " >&6; }
  3672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3673   $as_echo_n "(cached) " >&6
  3674 else
  3675   if test -n "$ac_ct_CC"; then
  3676   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3677 else
  3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3679 for as_dir in $PATH
  3680 do
  3681   IFS=$as_save_IFS
  3682   test -z "$as_dir" && as_dir=.
  3683   for ac_exec_ext in '' $ac_executable_extensions; do
  3684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3685     ac_cv_prog_ac_ct_CC="gcc"
  3686     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3687     break 2
  3688   fi
  3689 done
  3690 done
  3691 IFS=$as_save_IFS
  3693 fi
  3694 fi
  3695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3696 if test -n "$ac_ct_CC"; then
  3697   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3698 $as_echo "$ac_ct_CC" >&6; }
  3699 else
  3700   { $as_echo "$as_me:$LINENO: result: no" >&5
  3701 $as_echo "no" >&6; }
  3702 fi
  3704   if test "x$ac_ct_CC" = x; then
  3705     CC=""
  3706   else
  3707     case $cross_compiling:$ac_tool_warned in
  3708 yes:)
  3709 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3710 whose name does not start with the host triplet.  If you think this
  3711 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3712 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3713 whose name does not start with the host triplet.  If you think this
  3714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3715 ac_tool_warned=yes ;;
  3716 esac
  3717     CC=$ac_ct_CC
  3718   fi
  3719 else
  3720   CC="$ac_cv_prog_CC"
  3721 fi
  3723 if test -z "$CC"; then
  3724           if test -n "$ac_tool_prefix"; then
  3725     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3726 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3728 $as_echo_n "checking for $ac_word... " >&6; }
  3729 if test "${ac_cv_prog_CC+set}" = set; then
  3730   $as_echo_n "(cached) " >&6
  3731 else
  3732   if test -n "$CC"; then
  3733   ac_cv_prog_CC="$CC" # Let the user override the test.
  3734 else
  3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3736 for as_dir in $PATH
  3737 do
  3738   IFS=$as_save_IFS
  3739   test -z "$as_dir" && as_dir=.
  3740   for ac_exec_ext in '' $ac_executable_extensions; do
  3741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3742     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3743     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3744     break 2
  3745   fi
  3746 done
  3747 done
  3748 IFS=$as_save_IFS
  3750 fi
  3751 fi
  3752 CC=$ac_cv_prog_CC
  3753 if test -n "$CC"; then
  3754   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3755 $as_echo "$CC" >&6; }
  3756 else
  3757   { $as_echo "$as_me:$LINENO: result: no" >&5
  3758 $as_echo "no" >&6; }
  3759 fi
  3762   fi
  3763 fi
  3764 if test -z "$CC"; then
  3765   # Extract the first word of "cc", so it can be a program name with args.
  3766 set dummy cc; ac_word=$2
  3767 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3768 $as_echo_n "checking for $ac_word... " >&6; }
  3769 if test "${ac_cv_prog_CC+set}" = set; then
  3770   $as_echo_n "(cached) " >&6
  3771 else
  3772   if test -n "$CC"; then
  3773   ac_cv_prog_CC="$CC" # Let the user override the test.
  3774 else
  3775   ac_prog_rejected=no
  3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3777 for as_dir in $PATH
  3778 do
  3779   IFS=$as_save_IFS
  3780   test -z "$as_dir" && as_dir=.
  3781   for ac_exec_ext in '' $ac_executable_extensions; do
  3782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3783     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3784        ac_prog_rejected=yes
  3785        continue
  3786      fi
  3787     ac_cv_prog_CC="cc"
  3788     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3789     break 2
  3790   fi
  3791 done
  3792 done
  3793 IFS=$as_save_IFS
  3795 if test $ac_prog_rejected = yes; then
  3796   # We found a bogon in the path, so make sure we never use it.
  3797   set dummy $ac_cv_prog_CC
  3798   shift
  3799   if test $# != 0; then
  3800     # We chose a different compiler from the bogus one.
  3801     # However, it has the same basename, so the bogon will be chosen
  3802     # first if we set CC to just the basename; use the full file name.
  3803     shift
  3804     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3805   fi
  3806 fi
  3807 fi
  3808 fi
  3809 CC=$ac_cv_prog_CC
  3810 if test -n "$CC"; then
  3811   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3812 $as_echo "$CC" >&6; }
  3813 else
  3814   { $as_echo "$as_me:$LINENO: result: no" >&5
  3815 $as_echo "no" >&6; }
  3816 fi
  3819 fi
  3820 if test -z "$CC"; then
  3821   if test -n "$ac_tool_prefix"; then
  3822   for ac_prog in cl.exe
  3823   do
  3824     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3827 $as_echo_n "checking for $ac_word... " >&6; }
  3828 if test "${ac_cv_prog_CC+set}" = set; then
  3829   $as_echo_n "(cached) " >&6
  3830 else
  3831   if test -n "$CC"; then
  3832   ac_cv_prog_CC="$CC" # Let the user override the test.
  3833 else
  3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3835 for as_dir in $PATH
  3836 do
  3837   IFS=$as_save_IFS
  3838   test -z "$as_dir" && as_dir=.
  3839   for ac_exec_ext in '' $ac_executable_extensions; do
  3840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3841     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3842     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3843     break 2
  3844   fi
  3845 done
  3846 done
  3847 IFS=$as_save_IFS
  3849 fi
  3850 fi
  3851 CC=$ac_cv_prog_CC
  3852 if test -n "$CC"; then
  3853   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3854 $as_echo "$CC" >&6; }
  3855 else
  3856   { $as_echo "$as_me:$LINENO: result: no" >&5
  3857 $as_echo "no" >&6; }
  3858 fi
  3861     test -n "$CC" && break
  3862   done
  3863 fi
  3864 if test -z "$CC"; then
  3865   ac_ct_CC=$CC
  3866   for ac_prog in cl.exe
  3867 do
  3868   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3869 set dummy $ac_prog; ac_word=$2
  3870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3871 $as_echo_n "checking for $ac_word... " >&6; }
  3872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3873   $as_echo_n "(cached) " >&6
  3874 else
  3875   if test -n "$ac_ct_CC"; then
  3876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3877 else
  3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3879 for as_dir in $PATH
  3880 do
  3881   IFS=$as_save_IFS
  3882   test -z "$as_dir" && as_dir=.
  3883   for ac_exec_ext in '' $ac_executable_extensions; do
  3884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3885     ac_cv_prog_ac_ct_CC="$ac_prog"
  3886     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3887     break 2
  3888   fi
  3889 done
  3890 done
  3891 IFS=$as_save_IFS
  3893 fi
  3894 fi
  3895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3896 if test -n "$ac_ct_CC"; then
  3897   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3898 $as_echo "$ac_ct_CC" >&6; }
  3899 else
  3900   { $as_echo "$as_me:$LINENO: result: no" >&5
  3901 $as_echo "no" >&6; }
  3902 fi
  3905   test -n "$ac_ct_CC" && break
  3906 done
  3908   if test "x$ac_ct_CC" = x; then
  3909     CC=""
  3910   else
  3911     case $cross_compiling:$ac_tool_warned in
  3912 yes:)
  3913 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3914 whose name does not start with the host triplet.  If you think this
  3915 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3916 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3917 whose name does not start with the host triplet.  If you think this
  3918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3919 ac_tool_warned=yes ;;
  3920 esac
  3921     CC=$ac_ct_CC
  3922   fi
  3923 fi
  3925 fi
  3928 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3929 See \`config.log' for more details." >&5
  3930 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3931 See \`config.log' for more details." >&2;}
  3932    { (exit 1); exit 1; }; }
  3934 # Provide some information about the compiler.
  3935 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3936 set X $ac_compile
  3937 ac_compiler=$2
  3938 { (ac_try="$ac_compiler --version >&5"
  3939 case "(($ac_try" in
  3940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3941   *) ac_try_echo=$ac_try;;
  3942 esac
  3943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3944 $as_echo "$ac_try_echo") >&5
  3945   (eval "$ac_compiler --version >&5") 2>&5
  3946   ac_status=$?
  3947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3948   (exit $ac_status); }
  3949 { (ac_try="$ac_compiler -v >&5"
  3950 case "(($ac_try" in
  3951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3952   *) ac_try_echo=$ac_try;;
  3953 esac
  3954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3955 $as_echo "$ac_try_echo") >&5
  3956   (eval "$ac_compiler -v >&5") 2>&5
  3957   ac_status=$?
  3958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3959   (exit $ac_status); }
  3960 { (ac_try="$ac_compiler -V >&5"
  3961 case "(($ac_try" in
  3962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3963   *) ac_try_echo=$ac_try;;
  3964 esac
  3965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3966 $as_echo "$ac_try_echo") >&5
  3967   (eval "$ac_compiler -V >&5") 2>&5
  3968   ac_status=$?
  3969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3970   (exit $ac_status); }
  3972 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3973 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3975   $as_echo_n "(cached) " >&6
  3976 else
  3977   cat >conftest.$ac_ext <<_ACEOF
  3978 /* confdefs.h.  */
  3979 _ACEOF
  3980 cat confdefs.h >>conftest.$ac_ext
  3981 cat >>conftest.$ac_ext <<_ACEOF
  3982 /* end confdefs.h.  */
  3984 int
  3985 main ()
  3987 #ifndef __GNUC__
  3988        choke me
  3989 #endif
  3992   return 0;
  3994 _ACEOF
  3995 rm -f conftest.$ac_objext
  3996 if { (ac_try="$ac_compile"
  3997 case "(($ac_try" in
  3998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3999   *) ac_try_echo=$ac_try;;
  4000 esac
  4001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4002 $as_echo "$ac_try_echo") >&5
  4003   (eval "$ac_compile") 2>conftest.er1
  4004   ac_status=$?
  4005   grep -v '^ *+' conftest.er1 >conftest.err
  4006   rm -f conftest.er1
  4007   cat conftest.err >&5
  4008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4009   (exit $ac_status); } && {
  4010 	 test -z "$ac_c_werror_flag" ||
  4011 	 test ! -s conftest.err
  4012        } && test -s conftest.$ac_objext; then
  4013   ac_compiler_gnu=yes
  4014 else
  4015   $as_echo "$as_me: failed program was:" >&5
  4016 sed 's/^/| /' conftest.$ac_ext >&5
  4018 	ac_compiler_gnu=no
  4019 fi
  4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4024 fi
  4025 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4027 if test $ac_compiler_gnu = yes; then
  4028   GCC=yes
  4029 else
  4030   GCC=
  4031 fi
  4032 ac_test_CFLAGS=${CFLAGS+set}
  4033 ac_save_CFLAGS=$CFLAGS
  4034 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4036 if test "${ac_cv_prog_cc_g+set}" = set; then
  4037   $as_echo_n "(cached) " >&6
  4038 else
  4039   ac_save_c_werror_flag=$ac_c_werror_flag
  4040    ac_c_werror_flag=yes
  4041    ac_cv_prog_cc_g=no
  4042    CFLAGS="-g"
  4043    cat >conftest.$ac_ext <<_ACEOF
  4044 /* confdefs.h.  */
  4045 _ACEOF
  4046 cat confdefs.h >>conftest.$ac_ext
  4047 cat >>conftest.$ac_ext <<_ACEOF
  4048 /* end confdefs.h.  */
  4050 int
  4051 main ()
  4055   return 0;
  4057 _ACEOF
  4058 rm -f conftest.$ac_objext
  4059 if { (ac_try="$ac_compile"
  4060 case "(($ac_try" in
  4061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4062   *) ac_try_echo=$ac_try;;
  4063 esac
  4064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4065 $as_echo "$ac_try_echo") >&5
  4066   (eval "$ac_compile") 2>conftest.er1
  4067   ac_status=$?
  4068   grep -v '^ *+' conftest.er1 >conftest.err
  4069   rm -f conftest.er1
  4070   cat conftest.err >&5
  4071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4072   (exit $ac_status); } && {
  4073 	 test -z "$ac_c_werror_flag" ||
  4074 	 test ! -s conftest.err
  4075        } && test -s conftest.$ac_objext; then
  4076   ac_cv_prog_cc_g=yes
  4077 else
  4078   $as_echo "$as_me: failed program was:" >&5
  4079 sed 's/^/| /' conftest.$ac_ext >&5
  4081 	CFLAGS=""
  4082       cat >conftest.$ac_ext <<_ACEOF
  4083 /* confdefs.h.  */
  4084 _ACEOF
  4085 cat confdefs.h >>conftest.$ac_ext
  4086 cat >>conftest.$ac_ext <<_ACEOF
  4087 /* end confdefs.h.  */
  4089 int
  4090 main ()
  4094   return 0;
  4096 _ACEOF
  4097 rm -f conftest.$ac_objext
  4098 if { (ac_try="$ac_compile"
  4099 case "(($ac_try" in
  4100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4101   *) ac_try_echo=$ac_try;;
  4102 esac
  4103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4104 $as_echo "$ac_try_echo") >&5
  4105   (eval "$ac_compile") 2>conftest.er1
  4106   ac_status=$?
  4107   grep -v '^ *+' conftest.er1 >conftest.err
  4108   rm -f conftest.er1
  4109   cat conftest.err >&5
  4110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4111   (exit $ac_status); } && {
  4112 	 test -z "$ac_c_werror_flag" ||
  4113 	 test ! -s conftest.err
  4114        } && test -s conftest.$ac_objext; then
  4116 else
  4117   $as_echo "$as_me: failed program was:" >&5
  4118 sed 's/^/| /' conftest.$ac_ext >&5
  4120 	ac_c_werror_flag=$ac_save_c_werror_flag
  4121 	 CFLAGS="-g"
  4122 	 cat >conftest.$ac_ext <<_ACEOF
  4123 /* confdefs.h.  */
  4124 _ACEOF
  4125 cat confdefs.h >>conftest.$ac_ext
  4126 cat >>conftest.$ac_ext <<_ACEOF
  4127 /* end confdefs.h.  */
  4129 int
  4130 main ()
  4134   return 0;
  4136 _ACEOF
  4137 rm -f conftest.$ac_objext
  4138 if { (ac_try="$ac_compile"
  4139 case "(($ac_try" in
  4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4141   *) ac_try_echo=$ac_try;;
  4142 esac
  4143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4144 $as_echo "$ac_try_echo") >&5
  4145   (eval "$ac_compile") 2>conftest.er1
  4146   ac_status=$?
  4147   grep -v '^ *+' conftest.er1 >conftest.err
  4148   rm -f conftest.er1
  4149   cat conftest.err >&5
  4150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4151   (exit $ac_status); } && {
  4152 	 test -z "$ac_c_werror_flag" ||
  4153 	 test ! -s conftest.err
  4154        } && test -s conftest.$ac_objext; then
  4155   ac_cv_prog_cc_g=yes
  4156 else
  4157   $as_echo "$as_me: failed program was:" >&5
  4158 sed 's/^/| /' conftest.$ac_ext >&5
  4161 fi
  4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4164 fi
  4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4167 fi
  4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4170    ac_c_werror_flag=$ac_save_c_werror_flag
  4171 fi
  4172 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4173 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4174 if test "$ac_test_CFLAGS" = set; then
  4175   CFLAGS=$ac_save_CFLAGS
  4176 elif test $ac_cv_prog_cc_g = yes; then
  4177   if test "$GCC" = yes; then
  4178     CFLAGS="-g -O2"
  4179   else
  4180     CFLAGS="-g"
  4181   fi
  4182 else
  4183   if test "$GCC" = yes; then
  4184     CFLAGS="-O2"
  4185   else
  4186     CFLAGS=
  4187   fi
  4188 fi
  4189 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4190 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4191 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4192   $as_echo_n "(cached) " >&6
  4193 else
  4194   ac_cv_prog_cc_c89=no
  4195 ac_save_CC=$CC
  4196 cat >conftest.$ac_ext <<_ACEOF
  4197 /* confdefs.h.  */
  4198 _ACEOF
  4199 cat confdefs.h >>conftest.$ac_ext
  4200 cat >>conftest.$ac_ext <<_ACEOF
  4201 /* end confdefs.h.  */
  4202 #include <stdarg.h>
  4203 #include <stdio.h>
  4204 #include <sys/types.h>
  4205 #include <sys/stat.h>
  4206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4207 struct buf { int x; };
  4208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4209 static char *e (p, i)
  4210      char **p;
  4211      int i;
  4213   return p[i];
  4215 static char *f (char * (*g) (char **, int), char **p, ...)
  4217   char *s;
  4218   va_list v;
  4219   va_start (v,p);
  4220   s = g (p, va_arg (v,int));
  4221   va_end (v);
  4222   return s;
  4225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4226    function prototypes and stuff, but not '\xHH' hex character constants.
  4227    These don't provoke an error unfortunately, instead are silently treated
  4228    as 'x'.  The following induces an error, until -std is added to get
  4229    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4230    array size at least.  It's necessary to write '\x00'==0 to get something
  4231    that's true only with -std.  */
  4232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4234 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4235    inside strings and character constants.  */
  4236 #define FOO(x) 'x'
  4237 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4239 int test (int i, double x);
  4240 struct s1 {int (*f) (int a);};
  4241 struct s2 {int (*f) (double a);};
  4242 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4243 int argc;
  4244 char **argv;
  4245 int
  4246 main ()
  4248 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4250   return 0;
  4252 _ACEOF
  4253 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4254 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4255 do
  4256   CC="$ac_save_CC $ac_arg"
  4257   rm -f conftest.$ac_objext
  4258 if { (ac_try="$ac_compile"
  4259 case "(($ac_try" in
  4260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4261   *) ac_try_echo=$ac_try;;
  4262 esac
  4263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4264 $as_echo "$ac_try_echo") >&5
  4265   (eval "$ac_compile") 2>conftest.er1
  4266   ac_status=$?
  4267   grep -v '^ *+' conftest.er1 >conftest.err
  4268   rm -f conftest.er1
  4269   cat conftest.err >&5
  4270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4271   (exit $ac_status); } && {
  4272 	 test -z "$ac_c_werror_flag" ||
  4273 	 test ! -s conftest.err
  4274        } && test -s conftest.$ac_objext; then
  4275   ac_cv_prog_cc_c89=$ac_arg
  4276 else
  4277   $as_echo "$as_me: failed program was:" >&5
  4278 sed 's/^/| /' conftest.$ac_ext >&5
  4281 fi
  4283 rm -f core conftest.err conftest.$ac_objext
  4284   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4285 done
  4286 rm -f conftest.$ac_ext
  4287 CC=$ac_save_CC
  4289 fi
  4290 # AC_CACHE_VAL
  4291 case "x$ac_cv_prog_cc_c89" in
  4292   x)
  4293     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4294 $as_echo "none needed" >&6; } ;;
  4295   xno)
  4296     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4297 $as_echo "unsupported" >&6; } ;;
  4298   *)
  4299     CC="$CC $ac_cv_prog_cc_c89"
  4300     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4301 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4302 esac
  4305 ac_ext=c
  4306 ac_cpp='$CPP $CPPFLAGS'
  4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4311 depcc="$CC"   am_compiler_list=
  4313 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4314 $as_echo_n "checking dependency style of $depcc... " >&6; }
  4315 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4316   $as_echo_n "(cached) " >&6
  4317 else
  4318   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4319   # We make a subdir and do the tests there.  Otherwise we can end up
  4320   # making bogus files that we don't know about and never remove.  For
  4321   # instance it was reported that on HP-UX the gcc test will end up
  4322   # making a dummy file named `D' -- because `-MD' means `put the output
  4323   # in D'.
  4324   mkdir conftest.dir
  4325   # Copy depcomp to subdir because otherwise we won't find it if we're
  4326   # using a relative directory.
  4327   cp "$am_depcomp" conftest.dir
  4328   cd conftest.dir
  4329   # We will build objects and dependencies in a subdirectory because
  4330   # it helps to detect inapplicable dependency modes.  For instance
  4331   # both Tru64's cc and ICC support -MD to output dependencies as a
  4332   # side effect of compilation, but ICC will put the dependencies in
  4333   # the current directory while Tru64 will put them in the object
  4334   # directory.
  4335   mkdir sub
  4337   am_cv_CC_dependencies_compiler_type=none
  4338   if test "$am_compiler_list" = ""; then
  4339      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4340   fi
  4341   for depmode in $am_compiler_list; do
  4342     # Setup a source with many dependencies, because some compilers
  4343     # like to wrap large dependency lists on column 80 (with \), and
  4344     # we should not choose a depcomp mode which is confused by this.
  4346     # We need to recreate these files for each test, as the compiler may
  4347     # overwrite some of them when testing with obscure command lines.
  4348     # This happens at least with the AIX C compiler.
  4349     : > sub/conftest.c
  4350     for i in 1 2 3 4 5 6; do
  4351       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4352       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4353       # Solaris 8's {/usr,}/bin/sh.
  4354       touch sub/conftst$i.h
  4355     done
  4356     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4358     case $depmode in
  4359     nosideeffect)
  4360       # after this tag, mechanisms are not by side-effect, so they'll
  4361       # only be used when explicitly requested
  4362       if test "x$enable_dependency_tracking" = xyes; then
  4363 	continue
  4364       else
  4365 	break
  4366       fi
  4367       ;;
  4368     none) break ;;
  4369     esac
  4370     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4371     # mode.  It turns out that the SunPro C++ compiler does not properly
  4372     # handle `-M -o', and we need to detect this.
  4373     if depmode=$depmode \
  4374        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4375        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4376        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4377          >/dev/null 2>conftest.err &&
  4378        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4379        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4380        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4381       # icc doesn't choke on unknown options, it will just issue warnings
  4382       # or remarks (even with -Werror).  So we grep stderr for any message
  4383       # that says an option was ignored or not supported.
  4384       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4385       #   icc: Command line warning: ignoring option '-M'; no argument required
  4386       # The diagnosis changed in icc 8.0:
  4387       #   icc: Command line remark: option '-MP' not supported
  4388       if (grep 'ignoring option' conftest.err ||
  4389           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4390         am_cv_CC_dependencies_compiler_type=$depmode
  4391         break
  4392       fi
  4393     fi
  4394   done
  4396   cd ..
  4397   rm -rf conftest.dir
  4398 else
  4399   am_cv_CC_dependencies_compiler_type=none
  4400 fi
  4402 fi
  4403 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4404 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4405 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4409 if
  4410   test "x$enable_dependency_tracking" != xno \
  4411   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4412   am__fastdepCC_TRUE=
  4413   am__fastdepCC_FALSE='#'
  4414 else
  4415   am__fastdepCC_TRUE='#'
  4416   am__fastdepCC_FALSE=
  4417 fi
  4420 ac_ext=c
  4421 ac_cpp='$CPP $CPPFLAGS'
  4422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4425 if test -n "$ac_tool_prefix"; then
  4426   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4427 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4429 $as_echo_n "checking for $ac_word... " >&6; }
  4430 if test "${ac_cv_prog_CC+set}" = set; then
  4431   $as_echo_n "(cached) " >&6
  4432 else
  4433   if test -n "$CC"; then
  4434   ac_cv_prog_CC="$CC" # Let the user override the test.
  4435 else
  4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4437 for as_dir in $PATH
  4438 do
  4439   IFS=$as_save_IFS
  4440   test -z "$as_dir" && as_dir=.
  4441   for ac_exec_ext in '' $ac_executable_extensions; do
  4442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4443     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4444     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4445     break 2
  4446   fi
  4447 done
  4448 done
  4449 IFS=$as_save_IFS
  4451 fi
  4452 fi
  4453 CC=$ac_cv_prog_CC
  4454 if test -n "$CC"; then
  4455   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4456 $as_echo "$CC" >&6; }
  4457 else
  4458   { $as_echo "$as_me:$LINENO: result: no" >&5
  4459 $as_echo "no" >&6; }
  4460 fi
  4463 fi
  4464 if test -z "$ac_cv_prog_CC"; then
  4465   ac_ct_CC=$CC
  4466   # Extract the first word of "gcc", so it can be a program name with args.
  4467 set dummy gcc; ac_word=$2
  4468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4469 $as_echo_n "checking for $ac_word... " >&6; }
  4470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4471   $as_echo_n "(cached) " >&6
  4472 else
  4473   if test -n "$ac_ct_CC"; then
  4474   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4475 else
  4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4477 for as_dir in $PATH
  4478 do
  4479   IFS=$as_save_IFS
  4480   test -z "$as_dir" && as_dir=.
  4481   for ac_exec_ext in '' $ac_executable_extensions; do
  4482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4483     ac_cv_prog_ac_ct_CC="gcc"
  4484     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4485     break 2
  4486   fi
  4487 done
  4488 done
  4489 IFS=$as_save_IFS
  4491 fi
  4492 fi
  4493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4494 if test -n "$ac_ct_CC"; then
  4495   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4496 $as_echo "$ac_ct_CC" >&6; }
  4497 else
  4498   { $as_echo "$as_me:$LINENO: result: no" >&5
  4499 $as_echo "no" >&6; }
  4500 fi
  4502   if test "x$ac_ct_CC" = x; then
  4503     CC=""
  4504   else
  4505     case $cross_compiling:$ac_tool_warned in
  4506 yes:)
  4507 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4508 whose name does not start with the host triplet.  If you think this
  4509 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4510 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4511 whose name does not start with the host triplet.  If you think this
  4512 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4513 ac_tool_warned=yes ;;
  4514 esac
  4515     CC=$ac_ct_CC
  4516   fi
  4517 else
  4518   CC="$ac_cv_prog_CC"
  4519 fi
  4521 if test -z "$CC"; then
  4522           if test -n "$ac_tool_prefix"; then
  4523     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4524 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4526 $as_echo_n "checking for $ac_word... " >&6; }
  4527 if test "${ac_cv_prog_CC+set}" = set; then
  4528   $as_echo_n "(cached) " >&6
  4529 else
  4530   if test -n "$CC"; then
  4531   ac_cv_prog_CC="$CC" # Let the user override the test.
  4532 else
  4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4534 for as_dir in $PATH
  4535 do
  4536   IFS=$as_save_IFS
  4537   test -z "$as_dir" && as_dir=.
  4538   for ac_exec_ext in '' $ac_executable_extensions; do
  4539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4540     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4541     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4542     break 2
  4543   fi
  4544 done
  4545 done
  4546 IFS=$as_save_IFS
  4548 fi
  4549 fi
  4550 CC=$ac_cv_prog_CC
  4551 if test -n "$CC"; then
  4552   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4553 $as_echo "$CC" >&6; }
  4554 else
  4555   { $as_echo "$as_me:$LINENO: result: no" >&5
  4556 $as_echo "no" >&6; }
  4557 fi
  4560   fi
  4561 fi
  4562 if test -z "$CC"; then
  4563   # Extract the first word of "cc", so it can be a program name with args.
  4564 set dummy cc; ac_word=$2
  4565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4566 $as_echo_n "checking for $ac_word... " >&6; }
  4567 if test "${ac_cv_prog_CC+set}" = set; then
  4568   $as_echo_n "(cached) " >&6
  4569 else
  4570   if test -n "$CC"; then
  4571   ac_cv_prog_CC="$CC" # Let the user override the test.
  4572 else
  4573   ac_prog_rejected=no
  4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575 for as_dir in $PATH
  4576 do
  4577   IFS=$as_save_IFS
  4578   test -z "$as_dir" && as_dir=.
  4579   for ac_exec_ext in '' $ac_executable_extensions; do
  4580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4581     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4582        ac_prog_rejected=yes
  4583        continue
  4584      fi
  4585     ac_cv_prog_CC="cc"
  4586     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4587     break 2
  4588   fi
  4589 done
  4590 done
  4591 IFS=$as_save_IFS
  4593 if test $ac_prog_rejected = yes; then
  4594   # We found a bogon in the path, so make sure we never use it.
  4595   set dummy $ac_cv_prog_CC
  4596   shift
  4597   if test $# != 0; then
  4598     # We chose a different compiler from the bogus one.
  4599     # However, it has the same basename, so the bogon will be chosen
  4600     # first if we set CC to just the basename; use the full file name.
  4601     shift
  4602     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4603   fi
  4604 fi
  4605 fi
  4606 fi
  4607 CC=$ac_cv_prog_CC
  4608 if test -n "$CC"; then
  4609   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4610 $as_echo "$CC" >&6; }
  4611 else
  4612   { $as_echo "$as_me:$LINENO: result: no" >&5
  4613 $as_echo "no" >&6; }
  4614 fi
  4617 fi
  4618 if test -z "$CC"; then
  4619   if test -n "$ac_tool_prefix"; then
  4620   for ac_prog in cl.exe
  4621   do
  4622     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4625 $as_echo_n "checking for $ac_word... " >&6; }
  4626 if test "${ac_cv_prog_CC+set}" = set; then
  4627   $as_echo_n "(cached) " >&6
  4628 else
  4629   if test -n "$CC"; then
  4630   ac_cv_prog_CC="$CC" # Let the user override the test.
  4631 else
  4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4633 for as_dir in $PATH
  4634 do
  4635   IFS=$as_save_IFS
  4636   test -z "$as_dir" && as_dir=.
  4637   for ac_exec_ext in '' $ac_executable_extensions; do
  4638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4639     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4640     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4641     break 2
  4642   fi
  4643 done
  4644 done
  4645 IFS=$as_save_IFS
  4647 fi
  4648 fi
  4649 CC=$ac_cv_prog_CC
  4650 if test -n "$CC"; then
  4651   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4652 $as_echo "$CC" >&6; }
  4653 else
  4654   { $as_echo "$as_me:$LINENO: result: no" >&5
  4655 $as_echo "no" >&6; }
  4656 fi
  4659     test -n "$CC" && break
  4660   done
  4661 fi
  4662 if test -z "$CC"; then
  4663   ac_ct_CC=$CC
  4664   for ac_prog in cl.exe
  4665 do
  4666   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4667 set dummy $ac_prog; ac_word=$2
  4668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4669 $as_echo_n "checking for $ac_word... " >&6; }
  4670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4671   $as_echo_n "(cached) " >&6
  4672 else
  4673   if test -n "$ac_ct_CC"; then
  4674   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4675 else
  4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4677 for as_dir in $PATH
  4678 do
  4679   IFS=$as_save_IFS
  4680   test -z "$as_dir" && as_dir=.
  4681   for ac_exec_ext in '' $ac_executable_extensions; do
  4682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4683     ac_cv_prog_ac_ct_CC="$ac_prog"
  4684     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4685     break 2
  4686   fi
  4687 done
  4688 done
  4689 IFS=$as_save_IFS
  4691 fi
  4692 fi
  4693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4694 if test -n "$ac_ct_CC"; then
  4695   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4696 $as_echo "$ac_ct_CC" >&6; }
  4697 else
  4698   { $as_echo "$as_me:$LINENO: result: no" >&5
  4699 $as_echo "no" >&6; }
  4700 fi
  4703   test -n "$ac_ct_CC" && break
  4704 done
  4706   if test "x$ac_ct_CC" = x; then
  4707     CC=""
  4708   else
  4709     case $cross_compiling:$ac_tool_warned in
  4710 yes:)
  4711 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4712 whose name does not start with the host triplet.  If you think this
  4713 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4714 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4715 whose name does not start with the host triplet.  If you think this
  4716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4717 ac_tool_warned=yes ;;
  4718 esac
  4719     CC=$ac_ct_CC
  4720   fi
  4721 fi
  4723 fi
  4726 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4727 See \`config.log' for more details." >&5
  4728 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  4729 See \`config.log' for more details." >&2;}
  4730    { (exit 1); exit 1; }; }
  4732 # Provide some information about the compiler.
  4733 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  4734 set X $ac_compile
  4735 ac_compiler=$2
  4736 { (ac_try="$ac_compiler --version >&5"
  4737 case "(($ac_try" in
  4738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4739   *) ac_try_echo=$ac_try;;
  4740 esac
  4741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4742 $as_echo "$ac_try_echo") >&5
  4743   (eval "$ac_compiler --version >&5") 2>&5
  4744   ac_status=$?
  4745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4746   (exit $ac_status); }
  4747 { (ac_try="$ac_compiler -v >&5"
  4748 case "(($ac_try" in
  4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4750   *) ac_try_echo=$ac_try;;
  4751 esac
  4752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4753 $as_echo "$ac_try_echo") >&5
  4754   (eval "$ac_compiler -v >&5") 2>&5
  4755   ac_status=$?
  4756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4757   (exit $ac_status); }
  4758 { (ac_try="$ac_compiler -V >&5"
  4759 case "(($ac_try" in
  4760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4761   *) ac_try_echo=$ac_try;;
  4762 esac
  4763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4764 $as_echo "$ac_try_echo") >&5
  4765   (eval "$ac_compiler -V >&5") 2>&5
  4766   ac_status=$?
  4767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4768   (exit $ac_status); }
  4770 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4771 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4772 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4773   $as_echo_n "(cached) " >&6
  4774 else
  4775   cat >conftest.$ac_ext <<_ACEOF
  4776 /* confdefs.h.  */
  4777 _ACEOF
  4778 cat confdefs.h >>conftest.$ac_ext
  4779 cat >>conftest.$ac_ext <<_ACEOF
  4780 /* end confdefs.h.  */
  4782 int
  4783 main ()
  4785 #ifndef __GNUC__
  4786        choke me
  4787 #endif
  4790   return 0;
  4792 _ACEOF
  4793 rm -f conftest.$ac_objext
  4794 if { (ac_try="$ac_compile"
  4795 case "(($ac_try" in
  4796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4797   *) ac_try_echo=$ac_try;;
  4798 esac
  4799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4800 $as_echo "$ac_try_echo") >&5
  4801   (eval "$ac_compile") 2>conftest.er1
  4802   ac_status=$?
  4803   grep -v '^ *+' conftest.er1 >conftest.err
  4804   rm -f conftest.er1
  4805   cat conftest.err >&5
  4806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4807   (exit $ac_status); } && {
  4808 	 test -z "$ac_c_werror_flag" ||
  4809 	 test ! -s conftest.err
  4810        } && test -s conftest.$ac_objext; then
  4811   ac_compiler_gnu=yes
  4812 else
  4813   $as_echo "$as_me: failed program was:" >&5
  4814 sed 's/^/| /' conftest.$ac_ext >&5
  4816 	ac_compiler_gnu=no
  4817 fi
  4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4820 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4822 fi
  4823 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4824 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4825 if test $ac_compiler_gnu = yes; then
  4826   GCC=yes
  4827 else
  4828   GCC=
  4829 fi
  4830 ac_test_CFLAGS=${CFLAGS+set}
  4831 ac_save_CFLAGS=$CFLAGS
  4832 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4833 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4834 if test "${ac_cv_prog_cc_g+set}" = set; then
  4835   $as_echo_n "(cached) " >&6
  4836 else
  4837   ac_save_c_werror_flag=$ac_c_werror_flag
  4838    ac_c_werror_flag=yes
  4839    ac_cv_prog_cc_g=no
  4840    CFLAGS="-g"
  4841    cat >conftest.$ac_ext <<_ACEOF
  4842 /* confdefs.h.  */
  4843 _ACEOF
  4844 cat confdefs.h >>conftest.$ac_ext
  4845 cat >>conftest.$ac_ext <<_ACEOF
  4846 /* end confdefs.h.  */
  4848 int
  4849 main ()
  4853   return 0;
  4855 _ACEOF
  4856 rm -f conftest.$ac_objext
  4857 if { (ac_try="$ac_compile"
  4858 case "(($ac_try" in
  4859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4860   *) ac_try_echo=$ac_try;;
  4861 esac
  4862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4863 $as_echo "$ac_try_echo") >&5
  4864   (eval "$ac_compile") 2>conftest.er1
  4865   ac_status=$?
  4866   grep -v '^ *+' conftest.er1 >conftest.err
  4867   rm -f conftest.er1
  4868   cat conftest.err >&5
  4869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4870   (exit $ac_status); } && {
  4871 	 test -z "$ac_c_werror_flag" ||
  4872 	 test ! -s conftest.err
  4873        } && test -s conftest.$ac_objext; then
  4874   ac_cv_prog_cc_g=yes
  4875 else
  4876   $as_echo "$as_me: failed program was:" >&5
  4877 sed 's/^/| /' conftest.$ac_ext >&5
  4879 	CFLAGS=""
  4880       cat >conftest.$ac_ext <<_ACEOF
  4881 /* confdefs.h.  */
  4882 _ACEOF
  4883 cat confdefs.h >>conftest.$ac_ext
  4884 cat >>conftest.$ac_ext <<_ACEOF
  4885 /* end confdefs.h.  */
  4887 int
  4888 main ()
  4892   return 0;
  4894 _ACEOF
  4895 rm -f conftest.$ac_objext
  4896 if { (ac_try="$ac_compile"
  4897 case "(($ac_try" in
  4898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4899   *) ac_try_echo=$ac_try;;
  4900 esac
  4901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4902 $as_echo "$ac_try_echo") >&5
  4903   (eval "$ac_compile") 2>conftest.er1
  4904   ac_status=$?
  4905   grep -v '^ *+' conftest.er1 >conftest.err
  4906   rm -f conftest.er1
  4907   cat conftest.err >&5
  4908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4909   (exit $ac_status); } && {
  4910 	 test -z "$ac_c_werror_flag" ||
  4911 	 test ! -s conftest.err
  4912        } && test -s conftest.$ac_objext; then
  4914 else
  4915   $as_echo "$as_me: failed program was:" >&5
  4916 sed 's/^/| /' conftest.$ac_ext >&5
  4918 	ac_c_werror_flag=$ac_save_c_werror_flag
  4919 	 CFLAGS="-g"
  4920 	 cat >conftest.$ac_ext <<_ACEOF
  4921 /* confdefs.h.  */
  4922 _ACEOF
  4923 cat confdefs.h >>conftest.$ac_ext
  4924 cat >>conftest.$ac_ext <<_ACEOF
  4925 /* end confdefs.h.  */
  4927 int
  4928 main ()
  4932   return 0;
  4934 _ACEOF
  4935 rm -f conftest.$ac_objext
  4936 if { (ac_try="$ac_compile"
  4937 case "(($ac_try" in
  4938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4939   *) ac_try_echo=$ac_try;;
  4940 esac
  4941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4942 $as_echo "$ac_try_echo") >&5
  4943   (eval "$ac_compile") 2>conftest.er1
  4944   ac_status=$?
  4945   grep -v '^ *+' conftest.er1 >conftest.err
  4946   rm -f conftest.er1
  4947   cat conftest.err >&5
  4948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4949   (exit $ac_status); } && {
  4950 	 test -z "$ac_c_werror_flag" ||
  4951 	 test ! -s conftest.err
  4952        } && test -s conftest.$ac_objext; then
  4953   ac_cv_prog_cc_g=yes
  4954 else
  4955   $as_echo "$as_me: failed program was:" >&5
  4956 sed 's/^/| /' conftest.$ac_ext >&5
  4959 fi
  4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4962 fi
  4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4965 fi
  4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4968    ac_c_werror_flag=$ac_save_c_werror_flag
  4969 fi
  4970 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4971 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4972 if test "$ac_test_CFLAGS" = set; then
  4973   CFLAGS=$ac_save_CFLAGS
  4974 elif test $ac_cv_prog_cc_g = yes; then
  4975   if test "$GCC" = yes; then
  4976     CFLAGS="-g -O2"
  4977   else
  4978     CFLAGS="-g"
  4979   fi
  4980 else
  4981   if test "$GCC" = yes; then
  4982     CFLAGS="-O2"
  4983   else
  4984     CFLAGS=
  4985   fi
  4986 fi
  4987 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4988 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4989 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4990   $as_echo_n "(cached) " >&6
  4991 else
  4992   ac_cv_prog_cc_c89=no
  4993 ac_save_CC=$CC
  4994 cat >conftest.$ac_ext <<_ACEOF
  4995 /* confdefs.h.  */
  4996 _ACEOF
  4997 cat confdefs.h >>conftest.$ac_ext
  4998 cat >>conftest.$ac_ext <<_ACEOF
  4999 /* end confdefs.h.  */
  5000 #include <stdarg.h>
  5001 #include <stdio.h>
  5002 #include <sys/types.h>
  5003 #include <sys/stat.h>
  5004 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5005 struct buf { int x; };
  5006 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5007 static char *e (p, i)
  5008      char **p;
  5009      int i;
  5011   return p[i];
  5013 static char *f (char * (*g) (char **, int), char **p, ...)
  5015   char *s;
  5016   va_list v;
  5017   va_start (v,p);
  5018   s = g (p, va_arg (v,int));
  5019   va_end (v);
  5020   return s;
  5023 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5024    function prototypes and stuff, but not '\xHH' hex character constants.
  5025    These don't provoke an error unfortunately, instead are silently treated
  5026    as 'x'.  The following induces an error, until -std is added to get
  5027    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5028    array size at least.  It's necessary to write '\x00'==0 to get something
  5029    that's true only with -std.  */
  5030 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5032 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5033    inside strings and character constants.  */
  5034 #define FOO(x) 'x'
  5035 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5037 int test (int i, double x);
  5038 struct s1 {int (*f) (int a);};
  5039 struct s2 {int (*f) (double a);};
  5040 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5041 int argc;
  5042 char **argv;
  5043 int
  5044 main ()
  5046 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5048   return 0;
  5050 _ACEOF
  5051 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5052 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5053 do
  5054   CC="$ac_save_CC $ac_arg"
  5055   rm -f conftest.$ac_objext
  5056 if { (ac_try="$ac_compile"
  5057 case "(($ac_try" in
  5058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5059   *) ac_try_echo=$ac_try;;
  5060 esac
  5061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5062 $as_echo "$ac_try_echo") >&5
  5063   (eval "$ac_compile") 2>conftest.er1
  5064   ac_status=$?
  5065   grep -v '^ *+' conftest.er1 >conftest.err
  5066   rm -f conftest.er1
  5067   cat conftest.err >&5
  5068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5069   (exit $ac_status); } && {
  5070 	 test -z "$ac_c_werror_flag" ||
  5071 	 test ! -s conftest.err
  5072        } && test -s conftest.$ac_objext; then
  5073   ac_cv_prog_cc_c89=$ac_arg
  5074 else
  5075   $as_echo "$as_me: failed program was:" >&5
  5076 sed 's/^/| /' conftest.$ac_ext >&5
  5079 fi
  5081 rm -f core conftest.err conftest.$ac_objext
  5082   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5083 done
  5084 rm -f conftest.$ac_ext
  5085 CC=$ac_save_CC
  5087 fi
  5088 # AC_CACHE_VAL
  5089 case "x$ac_cv_prog_cc_c89" in
  5090   x)
  5091     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5092 $as_echo "none needed" >&6; } ;;
  5093   xno)
  5094     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5095 $as_echo "unsupported" >&6; } ;;
  5096   *)
  5097     CC="$CC $ac_cv_prog_cc_c89"
  5098     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5099 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5100 esac
  5103 ac_ext=c
  5104 ac_cpp='$CPP $CPPFLAGS'
  5105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5109 depcc="$CC"   am_compiler_list=
  5111 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5112 $as_echo_n "checking dependency style of $depcc... " >&6; }
  5113 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5114   $as_echo_n "(cached) " >&6
  5115 else
  5116   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5117   # We make a subdir and do the tests there.  Otherwise we can end up
  5118   # making bogus files that we don't know about and never remove.  For
  5119   # instance it was reported that on HP-UX the gcc test will end up
  5120   # making a dummy file named `D' -- because `-MD' means `put the output
  5121   # in D'.
  5122   mkdir conftest.dir
  5123   # Copy depcomp to subdir because otherwise we won't find it if we're
  5124   # using a relative directory.
  5125   cp "$am_depcomp" conftest.dir
  5126   cd conftest.dir
  5127   # We will build objects and dependencies in a subdirectory because
  5128   # it helps to detect inapplicable dependency modes.  For instance
  5129   # both Tru64's cc and ICC support -MD to output dependencies as a
  5130   # side effect of compilation, but ICC will put the dependencies in
  5131   # the current directory while Tru64 will put them in the object
  5132   # directory.
  5133   mkdir sub
  5135   am_cv_CC_dependencies_compiler_type=none
  5136   if test "$am_compiler_list" = ""; then
  5137      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5138   fi
  5139   for depmode in $am_compiler_list; do
  5140     # Setup a source with many dependencies, because some compilers
  5141     # like to wrap large dependency lists on column 80 (with \), and
  5142     # we should not choose a depcomp mode which is confused by this.
  5144     # We need to recreate these files for each test, as the compiler may
  5145     # overwrite some of them when testing with obscure command lines.
  5146     # This happens at least with the AIX C compiler.
  5147     : > sub/conftest.c
  5148     for i in 1 2 3 4 5 6; do
  5149       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5150       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5151       # Solaris 8's {/usr,}/bin/sh.
  5152       touch sub/conftst$i.h
  5153     done
  5154     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5156     case $depmode in
  5157     nosideeffect)
  5158       # after this tag, mechanisms are not by side-effect, so they'll
  5159       # only be used when explicitly requested
  5160       if test "x$enable_dependency_tracking" = xyes; then
  5161 	continue
  5162       else
  5163 	break
  5164       fi
  5165       ;;
  5166     none) break ;;
  5167     esac
  5168     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5169     # mode.  It turns out that the SunPro C++ compiler does not properly
  5170     # handle `-M -o', and we need to detect this.
  5171     if depmode=$depmode \
  5172        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5173        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5174        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5175          >/dev/null 2>conftest.err &&
  5176        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5177        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5178        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5179       # icc doesn't choke on unknown options, it will just issue warnings
  5180       # or remarks (even with -Werror).  So we grep stderr for any message
  5181       # that says an option was ignored or not supported.
  5182       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5183       #   icc: Command line warning: ignoring option '-M'; no argument required
  5184       # The diagnosis changed in icc 8.0:
  5185       #   icc: Command line remark: option '-MP' not supported
  5186       if (grep 'ignoring option' conftest.err ||
  5187           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5188         am_cv_CC_dependencies_compiler_type=$depmode
  5189         break
  5190       fi
  5191     fi
  5192   done
  5194   cd ..
  5195   rm -rf conftest.dir
  5196 else
  5197   am_cv_CC_dependencies_compiler_type=none
  5198 fi
  5200 fi
  5201 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5202 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5203 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5207 if
  5208   test "x$enable_dependency_tracking" != xno \
  5209   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5210   am__fastdepCC_TRUE=
  5211   am__fastdepCC_FALSE='#'
  5212 else
  5213   am__fastdepCC_TRUE='#'
  5214   am__fastdepCC_FALSE=
  5215 fi
  5219 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5221 # By default we simply use the C compiler to build assembly code.
  5223 test "${CCAS+set}" = set || CCAS=$CC
  5224 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5228 ac_ext=c
  5229 ac_cpp='$CPP $CPPFLAGS'
  5230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5233 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5234 $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5235 # On Suns, sometimes $CPP names a directory.
  5236 if test -n "$CPP" && test -d "$CPP"; then
  5237   CPP=
  5238 fi
  5239 if test -z "$CPP"; then
  5240   if test "${ac_cv_prog_CPP+set}" = set; then
  5241   $as_echo_n "(cached) " >&6
  5242 else
  5243       # Double quotes because CPP needs to be expanded
  5244     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5245     do
  5246       ac_preproc_ok=false
  5247 for ac_c_preproc_warn_flag in '' yes
  5248 do
  5249   # Use a header file that comes with gcc, so configuring glibc
  5250   # with a fresh cross-compiler works.
  5251   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5252   # <limits.h> exists even on freestanding compilers.
  5253   # On the NeXT, cc -E runs the code through the compiler's parser,
  5254   # not just through cpp. "Syntax error" is here to catch this case.
  5255   cat >conftest.$ac_ext <<_ACEOF
  5256 /* confdefs.h.  */
  5257 _ACEOF
  5258 cat confdefs.h >>conftest.$ac_ext
  5259 cat >>conftest.$ac_ext <<_ACEOF
  5260 /* end confdefs.h.  */
  5261 #ifdef __STDC__
  5262 # include <limits.h>
  5263 #else
  5264 # include <assert.h>
  5265 #endif
  5266 		     Syntax error
  5267 _ACEOF
  5268 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5269 case "(($ac_try" in
  5270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5271   *) ac_try_echo=$ac_try;;
  5272 esac
  5273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5274 $as_echo "$ac_try_echo") >&5
  5275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5276   ac_status=$?
  5277   grep -v '^ *+' conftest.er1 >conftest.err
  5278   rm -f conftest.er1
  5279   cat conftest.err >&5
  5280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5281   (exit $ac_status); } >/dev/null && {
  5282 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5283 	 test ! -s conftest.err
  5284        }; then
  5286 else
  5287   $as_echo "$as_me: failed program was:" >&5
  5288 sed 's/^/| /' conftest.$ac_ext >&5
  5290   # Broken: fails on valid input.
  5291 continue
  5292 fi
  5294 rm -f conftest.err conftest.$ac_ext
  5296   # OK, works on sane cases.  Now check whether nonexistent headers
  5297   # can be detected and how.
  5298   cat >conftest.$ac_ext <<_ACEOF
  5299 /* confdefs.h.  */
  5300 _ACEOF
  5301 cat confdefs.h >>conftest.$ac_ext
  5302 cat >>conftest.$ac_ext <<_ACEOF
  5303 /* end confdefs.h.  */
  5304 #include <ac_nonexistent.h>
  5305 _ACEOF
  5306 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5307 case "(($ac_try" in
  5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5309   *) ac_try_echo=$ac_try;;
  5310 esac
  5311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5312 $as_echo "$ac_try_echo") >&5
  5313   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5314   ac_status=$?
  5315   grep -v '^ *+' conftest.er1 >conftest.err
  5316   rm -f conftest.er1
  5317   cat conftest.err >&5
  5318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5319   (exit $ac_status); } >/dev/null && {
  5320 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5321 	 test ! -s conftest.err
  5322        }; then
  5323   # Broken: success on invalid input.
  5324 continue
  5325 else
  5326   $as_echo "$as_me: failed program was:" >&5
  5327 sed 's/^/| /' conftest.$ac_ext >&5
  5329   # Passes both tests.
  5330 ac_preproc_ok=:
  5331 break
  5332 fi
  5334 rm -f conftest.err conftest.$ac_ext
  5336 done
  5337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5338 rm -f conftest.err conftest.$ac_ext
  5339 if $ac_preproc_ok; then
  5340   break
  5341 fi
  5343     done
  5344     ac_cv_prog_CPP=$CPP
  5346 fi
  5347   CPP=$ac_cv_prog_CPP
  5348 else
  5349   ac_cv_prog_CPP=$CPP
  5350 fi
  5351 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5352 $as_echo "$CPP" >&6; }
  5353 ac_preproc_ok=false
  5354 for ac_c_preproc_warn_flag in '' yes
  5355 do
  5356   # Use a header file that comes with gcc, so configuring glibc
  5357   # with a fresh cross-compiler works.
  5358   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5359   # <limits.h> exists even on freestanding compilers.
  5360   # On the NeXT, cc -E runs the code through the compiler's parser,
  5361   # not just through cpp. "Syntax error" is here to catch this case.
  5362   cat >conftest.$ac_ext <<_ACEOF
  5363 /* confdefs.h.  */
  5364 _ACEOF
  5365 cat confdefs.h >>conftest.$ac_ext
  5366 cat >>conftest.$ac_ext <<_ACEOF
  5367 /* end confdefs.h.  */
  5368 #ifdef __STDC__
  5369 # include <limits.h>
  5370 #else
  5371 # include <assert.h>
  5372 #endif
  5373 		     Syntax error
  5374 _ACEOF
  5375 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5376 case "(($ac_try" in
  5377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5378   *) ac_try_echo=$ac_try;;
  5379 esac
  5380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5381 $as_echo "$ac_try_echo") >&5
  5382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5383   ac_status=$?
  5384   grep -v '^ *+' conftest.er1 >conftest.err
  5385   rm -f conftest.er1
  5386   cat conftest.err >&5
  5387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5388   (exit $ac_status); } >/dev/null && {
  5389 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5390 	 test ! -s conftest.err
  5391        }; then
  5393 else
  5394   $as_echo "$as_me: failed program was:" >&5
  5395 sed 's/^/| /' conftest.$ac_ext >&5
  5397   # Broken: fails on valid input.
  5398 continue
  5399 fi
  5401 rm -f conftest.err conftest.$ac_ext
  5403   # OK, works on sane cases.  Now check whether nonexistent headers
  5404   # can be detected and how.
  5405   cat >conftest.$ac_ext <<_ACEOF
  5406 /* confdefs.h.  */
  5407 _ACEOF
  5408 cat confdefs.h >>conftest.$ac_ext
  5409 cat >>conftest.$ac_ext <<_ACEOF
  5410 /* end confdefs.h.  */
  5411 #include <ac_nonexistent.h>
  5412 _ACEOF
  5413 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5414 case "(($ac_try" in
  5415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5416   *) ac_try_echo=$ac_try;;
  5417 esac
  5418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5419 $as_echo "$ac_try_echo") >&5
  5420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5421   ac_status=$?
  5422   grep -v '^ *+' conftest.er1 >conftest.err
  5423   rm -f conftest.er1
  5424   cat conftest.err >&5
  5425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5426   (exit $ac_status); } >/dev/null && {
  5427 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5428 	 test ! -s conftest.err
  5429        }; then
  5430   # Broken: success on invalid input.
  5431 continue
  5432 else
  5433   $as_echo "$as_me: failed program was:" >&5
  5434 sed 's/^/| /' conftest.$ac_ext >&5
  5436   # Passes both tests.
  5437 ac_preproc_ok=:
  5438 break
  5439 fi
  5441 rm -f conftest.err conftest.$ac_ext
  5443 done
  5444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5445 rm -f conftest.err conftest.$ac_ext
  5446 if $ac_preproc_ok; then
  5448 else
  5449   { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5450 See \`config.log' for more details." >&5
  5451 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5452 See \`config.log' for more details." >&2;}
  5453    { (exit 1); exit 1; }; }
  5454 fi
  5456 ac_ext=c
  5457 ac_cpp='$CPP $CPPFLAGS'
  5458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5463 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5464 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5465 if test "${ac_cv_path_GREP+set}" = set; then
  5466   $as_echo_n "(cached) " >&6
  5467 else
  5468   if test -z "$GREP"; then
  5469   ac_path_GREP_found=false
  5470   # Loop through the user's path and test for each of PROGNAME-LIST
  5471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5472 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5473 do
  5474   IFS=$as_save_IFS
  5475   test -z "$as_dir" && as_dir=.
  5476   for ac_prog in grep ggrep; do
  5477     for ac_exec_ext in '' $ac_executable_extensions; do
  5478       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5479       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5480 # Check for GNU ac_path_GREP and select it if it is found.
  5481   # Check for GNU $ac_path_GREP
  5482 case `"$ac_path_GREP" --version 2>&1` in
  5483 *GNU*)
  5484   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5485 *)
  5486   ac_count=0
  5487   $as_echo_n 0123456789 >"conftest.in"
  5488   while :
  5489   do
  5490     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5491     mv "conftest.tmp" "conftest.in"
  5492     cp "conftest.in" "conftest.nl"
  5493     $as_echo 'GREP' >> "conftest.nl"
  5494     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5495     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5496     ac_count=`expr $ac_count + 1`
  5497     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5498       # Best one so far, save it but keep looking for a better one
  5499       ac_cv_path_GREP="$ac_path_GREP"
  5500       ac_path_GREP_max=$ac_count
  5501     fi
  5502     # 10*(2^10) chars as input seems more than enough
  5503     test $ac_count -gt 10 && break
  5504   done
  5505   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5506 esac
  5508       $ac_path_GREP_found && break 3
  5509     done
  5510   done
  5511 done
  5512 IFS=$as_save_IFS
  5513   if test -z "$ac_cv_path_GREP"; then
  5514     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5515 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5516    { (exit 1); exit 1; }; }
  5517   fi
  5518 else
  5519   ac_cv_path_GREP=$GREP
  5520 fi
  5522 fi
  5523 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5524 $as_echo "$ac_cv_path_GREP" >&6; }
  5525  GREP="$ac_cv_path_GREP"
  5528 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  5529 $as_echo_n "checking for egrep... " >&6; }
  5530 if test "${ac_cv_path_EGREP+set}" = set; then
  5531   $as_echo_n "(cached) " >&6
  5532 else
  5533   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5534    then ac_cv_path_EGREP="$GREP -E"
  5535    else
  5536      if test -z "$EGREP"; then
  5537   ac_path_EGREP_found=false
  5538   # Loop through the user's path and test for each of PROGNAME-LIST
  5539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5541 do
  5542   IFS=$as_save_IFS
  5543   test -z "$as_dir" && as_dir=.
  5544   for ac_prog in egrep; do
  5545     for ac_exec_ext in '' $ac_executable_extensions; do
  5546       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5547       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5548 # Check for GNU ac_path_EGREP and select it if it is found.
  5549   # Check for GNU $ac_path_EGREP
  5550 case `"$ac_path_EGREP" --version 2>&1` in
  5551 *GNU*)
  5552   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5553 *)
  5554   ac_count=0
  5555   $as_echo_n 0123456789 >"conftest.in"
  5556   while :
  5557   do
  5558     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5559     mv "conftest.tmp" "conftest.in"
  5560     cp "conftest.in" "conftest.nl"
  5561     $as_echo 'EGREP' >> "conftest.nl"
  5562     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5563     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5564     ac_count=`expr $ac_count + 1`
  5565     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5566       # Best one so far, save it but keep looking for a better one
  5567       ac_cv_path_EGREP="$ac_path_EGREP"
  5568       ac_path_EGREP_max=$ac_count
  5569     fi
  5570     # 10*(2^10) chars as input seems more than enough
  5571     test $ac_count -gt 10 && break
  5572   done
  5573   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5574 esac
  5576       $ac_path_EGREP_found && break 3
  5577     done
  5578   done
  5579 done
  5580 IFS=$as_save_IFS
  5581   if test -z "$ac_cv_path_EGREP"; then
  5582     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5583 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5584    { (exit 1); exit 1; }; }
  5585   fi
  5586 else
  5587   ac_cv_path_EGREP=$EGREP
  5588 fi
  5590    fi
  5591 fi
  5592 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5593 $as_echo "$ac_cv_path_EGREP" >&6; }
  5594  EGREP="$ac_cv_path_EGREP"
  5597 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5598 $as_echo_n "checking for ANSI C header files... " >&6; }
  5599 if test "${ac_cv_header_stdc+set}" = set; then
  5600   $as_echo_n "(cached) " >&6
  5601 else
  5602   cat >conftest.$ac_ext <<_ACEOF
  5603 /* confdefs.h.  */
  5604 _ACEOF
  5605 cat confdefs.h >>conftest.$ac_ext
  5606 cat >>conftest.$ac_ext <<_ACEOF
  5607 /* end confdefs.h.  */
  5608 #include <stdlib.h>
  5609 #include <stdarg.h>
  5610 #include <string.h>
  5611 #include <float.h>
  5613 int
  5614 main ()
  5618   return 0;
  5620 _ACEOF
  5621 rm -f conftest.$ac_objext
  5622 if { (ac_try="$ac_compile"
  5623 case "(($ac_try" in
  5624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5625   *) ac_try_echo=$ac_try;;
  5626 esac
  5627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5628 $as_echo "$ac_try_echo") >&5
  5629   (eval "$ac_compile") 2>conftest.er1
  5630   ac_status=$?
  5631   grep -v '^ *+' conftest.er1 >conftest.err
  5632   rm -f conftest.er1
  5633   cat conftest.err >&5
  5634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5635   (exit $ac_status); } && {
  5636 	 test -z "$ac_c_werror_flag" ||
  5637 	 test ! -s conftest.err
  5638        } && test -s conftest.$ac_objext; then
  5639   ac_cv_header_stdc=yes
  5640 else
  5641   $as_echo "$as_me: failed program was:" >&5
  5642 sed 's/^/| /' conftest.$ac_ext >&5
  5644 	ac_cv_header_stdc=no
  5645 fi
  5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5649 if test $ac_cv_header_stdc = yes; then
  5650   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5651   cat >conftest.$ac_ext <<_ACEOF
  5652 /* confdefs.h.  */
  5653 _ACEOF
  5654 cat confdefs.h >>conftest.$ac_ext
  5655 cat >>conftest.$ac_ext <<_ACEOF
  5656 /* end confdefs.h.  */
  5657 #include <string.h>
  5659 _ACEOF
  5660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5661   $EGREP "memchr" >/dev/null 2>&1; then
  5663 else
  5664   ac_cv_header_stdc=no
  5665 fi
  5666 rm -f conftest*
  5668 fi
  5670 if test $ac_cv_header_stdc = yes; then
  5671   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5672   cat >conftest.$ac_ext <<_ACEOF
  5673 /* confdefs.h.  */
  5674 _ACEOF
  5675 cat confdefs.h >>conftest.$ac_ext
  5676 cat >>conftest.$ac_ext <<_ACEOF
  5677 /* end confdefs.h.  */
  5678 #include <stdlib.h>
  5680 _ACEOF
  5681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5682   $EGREP "free" >/dev/null 2>&1; then
  5684 else
  5685   ac_cv_header_stdc=no
  5686 fi
  5687 rm -f conftest*
  5689 fi
  5691 if test $ac_cv_header_stdc = yes; then
  5692   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5693   if test "$cross_compiling" = yes; then
  5695 else
  5696   cat >conftest.$ac_ext <<_ACEOF
  5697 /* confdefs.h.  */
  5698 _ACEOF
  5699 cat confdefs.h >>conftest.$ac_ext
  5700 cat >>conftest.$ac_ext <<_ACEOF
  5701 /* end confdefs.h.  */
  5702 #include <ctype.h>
  5703 #include <stdlib.h>
  5704 #if ((' ' & 0x0FF) == 0x020)
  5705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5707 #else
  5708 # define ISLOWER(c) \
  5709 		   (('a' <= (c) && (c) <= 'i') \
  5710 		     || ('j' <= (c) && (c) <= 'r') \
  5711 		     || ('s' <= (c) && (c) <= 'z'))
  5712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5713 #endif
  5715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5716 int
  5717 main ()
  5719   int i;
  5720   for (i = 0; i < 256; i++)
  5721     if (XOR (islower (i), ISLOWER (i))
  5722 	|| toupper (i) != TOUPPER (i))
  5723       return 2;
  5724   return 0;
  5726 _ACEOF
  5727 rm -f conftest$ac_exeext
  5728 if { (ac_try="$ac_link"
  5729 case "(($ac_try" in
  5730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5731   *) ac_try_echo=$ac_try;;
  5732 esac
  5733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5734 $as_echo "$ac_try_echo") >&5
  5735   (eval "$ac_link") 2>&5
  5736   ac_status=$?
  5737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5739   { (case "(($ac_try" in
  5740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5741   *) ac_try_echo=$ac_try;;
  5742 esac
  5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5744 $as_echo "$ac_try_echo") >&5
  5745   (eval "$ac_try") 2>&5
  5746   ac_status=$?
  5747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5748   (exit $ac_status); }; }; then
  5750 else
  5751   $as_echo "$as_me: program exited with status $ac_status" >&5
  5752 $as_echo "$as_me: failed program was:" >&5
  5753 sed 's/^/| /' conftest.$ac_ext >&5
  5755 ( exit $ac_status )
  5756 ac_cv_header_stdc=no
  5757 fi
  5758 rm -rf conftest.dSYM
  5759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5760 fi
  5763 fi
  5764 fi
  5765 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5766 $as_echo "$ac_cv_header_stdc" >&6; }
  5767 if test $ac_cv_header_stdc = yes; then
  5769 cat >>confdefs.h <<\_ACEOF
  5770 #define STDC_HEADERS 1
  5771 _ACEOF
  5773 fi
  5775 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5785 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5786 		  inttypes.h stdint.h unistd.h
  5787 do
  5788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5789 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5790 $as_echo_n "checking for $ac_header... " >&6; }
  5791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5792   $as_echo_n "(cached) " >&6
  5793 else
  5794   cat >conftest.$ac_ext <<_ACEOF
  5795 /* confdefs.h.  */
  5796 _ACEOF
  5797 cat confdefs.h >>conftest.$ac_ext
  5798 cat >>conftest.$ac_ext <<_ACEOF
  5799 /* end confdefs.h.  */
  5800 $ac_includes_default
  5802 #include <$ac_header>
  5803 _ACEOF
  5804 rm -f conftest.$ac_objext
  5805 if { (ac_try="$ac_compile"
  5806 case "(($ac_try" in
  5807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5808   *) ac_try_echo=$ac_try;;
  5809 esac
  5810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5811 $as_echo "$ac_try_echo") >&5
  5812   (eval "$ac_compile") 2>conftest.er1
  5813   ac_status=$?
  5814   grep -v '^ *+' conftest.er1 >conftest.err
  5815   rm -f conftest.er1
  5816   cat conftest.err >&5
  5817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5818   (exit $ac_status); } && {
  5819 	 test -z "$ac_c_werror_flag" ||
  5820 	 test ! -s conftest.err
  5821        } && test -s conftest.$ac_objext; then
  5822   eval "$as_ac_Header=yes"
  5823 else
  5824   $as_echo "$as_me: failed program was:" >&5
  5825 sed 's/^/| /' conftest.$ac_ext >&5
  5827 	eval "$as_ac_Header=no"
  5828 fi
  5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5831 fi
  5832 ac_res=`eval 'as_val=${'$as_ac_Header'}
  5833 		 $as_echo "$as_val"'`
  5834 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5835 $as_echo "$ac_res" >&6; }
  5836 if test `eval 'as_val=${'$as_ac_Header'}
  5837 		 $as_echo "$as_val"'` = yes; then
  5838   cat >>confdefs.h <<_ACEOF
  5839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5840 _ACEOF
  5842 fi
  5844 done
  5847 # The cast to long int works around a bug in the HP C Compiler
  5848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5850 # This bug is HP SR number 8606223364.
  5851 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
  5852 $as_echo_n "checking size of void *... " >&6; }
  5853 if test "${ac_cv_sizeof_void_p+set}" = set; then
  5854   $as_echo_n "(cached) " >&6
  5855 else
  5856   if test "$cross_compiling" = yes; then
  5857   # Depending upon the size, compute the lo and hi bounds.
  5858 cat >conftest.$ac_ext <<_ACEOF
  5859 /* confdefs.h.  */
  5860 _ACEOF
  5861 cat confdefs.h >>conftest.$ac_ext
  5862 cat >>conftest.$ac_ext <<_ACEOF
  5863 /* end confdefs.h.  */
  5864 $ac_includes_default
  5865 int
  5866 main ()
  5868 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
  5869 test_array [0] = 0
  5872   return 0;
  5874 _ACEOF
  5875 rm -f conftest.$ac_objext
  5876 if { (ac_try="$ac_compile"
  5877 case "(($ac_try" in
  5878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5879   *) ac_try_echo=$ac_try;;
  5880 esac
  5881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5882 $as_echo "$ac_try_echo") >&5
  5883   (eval "$ac_compile") 2>conftest.er1
  5884   ac_status=$?
  5885   grep -v '^ *+' conftest.er1 >conftest.err
  5886   rm -f conftest.er1
  5887   cat conftest.err >&5
  5888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5889   (exit $ac_status); } && {
  5890 	 test -z "$ac_c_werror_flag" ||
  5891 	 test ! -s conftest.err
  5892        } && test -s conftest.$ac_objext; then
  5893   ac_lo=0 ac_mid=0
  5894   while :; do
  5895     cat >conftest.$ac_ext <<_ACEOF
  5896 /* confdefs.h.  */
  5897 _ACEOF
  5898 cat confdefs.h >>conftest.$ac_ext
  5899 cat >>conftest.$ac_ext <<_ACEOF
  5900 /* end confdefs.h.  */
  5901 $ac_includes_default
  5902 int
  5903 main ()
  5905 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  5906 test_array [0] = 0
  5909   return 0;
  5911 _ACEOF
  5912 rm -f conftest.$ac_objext
  5913 if { (ac_try="$ac_compile"
  5914 case "(($ac_try" in
  5915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5916   *) ac_try_echo=$ac_try;;
  5917 esac
  5918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5919 $as_echo "$ac_try_echo") >&5
  5920   (eval "$ac_compile") 2>conftest.er1
  5921   ac_status=$?
  5922   grep -v '^ *+' conftest.er1 >conftest.err
  5923   rm -f conftest.er1
  5924   cat conftest.err >&5
  5925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5926   (exit $ac_status); } && {
  5927 	 test -z "$ac_c_werror_flag" ||
  5928 	 test ! -s conftest.err
  5929        } && test -s conftest.$ac_objext; then
  5930   ac_hi=$ac_mid; break
  5931 else
  5932   $as_echo "$as_me: failed program was:" >&5
  5933 sed 's/^/| /' conftest.$ac_ext >&5
  5935 	ac_lo=`expr $ac_mid + 1`
  5936 			if test $ac_lo -le $ac_mid; then
  5937 			  ac_lo= ac_hi=
  5938 			  break
  5939 			fi
  5940 			ac_mid=`expr 2 '*' $ac_mid + 1`
  5941 fi
  5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5944   done
  5945 else
  5946   $as_echo "$as_me: failed program was:" >&5
  5947 sed 's/^/| /' conftest.$ac_ext >&5
  5949 	cat >conftest.$ac_ext <<_ACEOF
  5950 /* confdefs.h.  */
  5951 _ACEOF
  5952 cat confdefs.h >>conftest.$ac_ext
  5953 cat >>conftest.$ac_ext <<_ACEOF
  5954 /* end confdefs.h.  */
  5955 $ac_includes_default
  5956 int
  5957 main ()
  5959 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
  5960 test_array [0] = 0
  5963   return 0;
  5965 _ACEOF
  5966 rm -f conftest.$ac_objext
  5967 if { (ac_try="$ac_compile"
  5968 case "(($ac_try" in
  5969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5970   *) ac_try_echo=$ac_try;;
  5971 esac
  5972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5973 $as_echo "$ac_try_echo") >&5
  5974   (eval "$ac_compile") 2>conftest.er1
  5975   ac_status=$?
  5976   grep -v '^ *+' conftest.er1 >conftest.err
  5977   rm -f conftest.er1
  5978   cat conftest.err >&5
  5979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5980   (exit $ac_status); } && {
  5981 	 test -z "$ac_c_werror_flag" ||
  5982 	 test ! -s conftest.err
  5983        } && test -s conftest.$ac_objext; then
  5984   ac_hi=-1 ac_mid=-1
  5985   while :; do
  5986     cat >conftest.$ac_ext <<_ACEOF
  5987 /* confdefs.h.  */
  5988 _ACEOF
  5989 cat confdefs.h >>conftest.$ac_ext
  5990 cat >>conftest.$ac_ext <<_ACEOF
  5991 /* end confdefs.h.  */
  5992 $ac_includes_default
  5993 int
  5994 main ()
  5996 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
  5997 test_array [0] = 0
  6000   return 0;
  6002 _ACEOF
  6003 rm -f conftest.$ac_objext
  6004 if { (ac_try="$ac_compile"
  6005 case "(($ac_try" in
  6006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6007   *) ac_try_echo=$ac_try;;
  6008 esac
  6009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6010 $as_echo "$ac_try_echo") >&5
  6011   (eval "$ac_compile") 2>conftest.er1
  6012   ac_status=$?
  6013   grep -v '^ *+' conftest.er1 >conftest.err
  6014   rm -f conftest.er1
  6015   cat conftest.err >&5
  6016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6017   (exit $ac_status); } && {
  6018 	 test -z "$ac_c_werror_flag" ||
  6019 	 test ! -s conftest.err
  6020        } && test -s conftest.$ac_objext; then
  6021   ac_lo=$ac_mid; break
  6022 else
  6023   $as_echo "$as_me: failed program was:" >&5
  6024 sed 's/^/| /' conftest.$ac_ext >&5
  6026 	ac_hi=`expr '(' $ac_mid ')' - 1`
  6027 			if test $ac_mid -le $ac_hi; then
  6028 			  ac_lo= ac_hi=
  6029 			  break
  6030 			fi
  6031 			ac_mid=`expr 2 '*' $ac_mid`
  6032 fi
  6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6035   done
  6036 else
  6037   $as_echo "$as_me: failed program was:" >&5
  6038 sed 's/^/| /' conftest.$ac_ext >&5
  6040 	ac_lo= ac_hi=
  6041 fi
  6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6044 fi
  6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6047 # Binary search between lo and hi bounds.
  6048 while test "x$ac_lo" != "x$ac_hi"; do
  6049   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6050   cat >conftest.$ac_ext <<_ACEOF
  6051 /* confdefs.h.  */
  6052 _ACEOF
  6053 cat confdefs.h >>conftest.$ac_ext
  6054 cat >>conftest.$ac_ext <<_ACEOF
  6055 /* end confdefs.h.  */
  6056 $ac_includes_default
  6057 int
  6058 main ()
  6060 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  6061 test_array [0] = 0
  6064   return 0;
  6066 _ACEOF
  6067 rm -f conftest.$ac_objext
  6068 if { (ac_try="$ac_compile"
  6069 case "(($ac_try" in
  6070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6071   *) ac_try_echo=$ac_try;;
  6072 esac
  6073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6074 $as_echo "$ac_try_echo") >&5
  6075   (eval "$ac_compile") 2>conftest.er1
  6076   ac_status=$?
  6077   grep -v '^ *+' conftest.er1 >conftest.err
  6078   rm -f conftest.er1
  6079   cat conftest.err >&5
  6080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6081   (exit $ac_status); } && {
  6082 	 test -z "$ac_c_werror_flag" ||
  6083 	 test ! -s conftest.err
  6084        } && test -s conftest.$ac_objext; then
  6085   ac_hi=$ac_mid
  6086 else
  6087   $as_echo "$as_me: failed program was:" >&5
  6088 sed 's/^/| /' conftest.$ac_ext >&5
  6090 	ac_lo=`expr '(' $ac_mid ')' + 1`
  6091 fi
  6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6094 done
  6095 case $ac_lo in
  6096 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  6097 '') if test "$ac_cv_type_void_p" = yes; then
  6098      { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6099 See \`config.log' for more details." >&5
  6100 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6101 See \`config.log' for more details." >&2;}
  6102    { (exit 77); exit 77; }; }
  6103    else
  6104      ac_cv_sizeof_void_p=0
  6105    fi ;;
  6106 esac
  6107 else
  6108   cat >conftest.$ac_ext <<_ACEOF
  6109 /* confdefs.h.  */
  6110 _ACEOF
  6111 cat confdefs.h >>conftest.$ac_ext
  6112 cat >>conftest.$ac_ext <<_ACEOF
  6113 /* end confdefs.h.  */
  6114 $ac_includes_default
  6115 static long int longval () { return (long int) (sizeof (void *)); }
  6116 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
  6117 #include <stdio.h>
  6118 #include <stdlib.h>
  6119 int
  6120 main ()
  6123   FILE *f = fopen ("conftest.val", "w");
  6124   if (! f)
  6125     return 1;
  6126   if (((long int) (sizeof (void *))) < 0)
  6128       long int i = longval ();
  6129       if (i != ((long int) (sizeof (void *))))
  6130 	return 1;
  6131       fprintf (f, "%ld", i);
  6133   else
  6135       unsigned long int i = ulongval ();
  6136       if (i != ((long int) (sizeof (void *))))
  6137 	return 1;
  6138       fprintf (f, "%lu", i);
  6140   /* Do not output a trailing newline, as this causes \r\n confusion
  6141      on some platforms.  */
  6142   return ferror (f) || fclose (f) != 0;
  6145   return 0;
  6147 _ACEOF
  6148 rm -f conftest$ac_exeext
  6149 if { (ac_try="$ac_link"
  6150 case "(($ac_try" in
  6151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6152   *) ac_try_echo=$ac_try;;
  6153 esac
  6154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6155 $as_echo "$ac_try_echo") >&5
  6156   (eval "$ac_link") 2>&5
  6157   ac_status=$?
  6158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6160   { (case "(($ac_try" in
  6161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6162   *) ac_try_echo=$ac_try;;
  6163 esac
  6164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6165 $as_echo "$ac_try_echo") >&5
  6166   (eval "$ac_try") 2>&5
  6167   ac_status=$?
  6168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6169   (exit $ac_status); }; }; then
  6170   ac_cv_sizeof_void_p=`cat conftest.val`
  6171 else
  6172   $as_echo "$as_me: program exited with status $ac_status" >&5
  6173 $as_echo "$as_me: failed program was:" >&5
  6174 sed 's/^/| /' conftest.$ac_ext >&5
  6176 ( exit $ac_status )
  6177 if test "$ac_cv_type_void_p" = yes; then
  6178      { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6179 See \`config.log' for more details." >&5
  6180 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6181 See \`config.log' for more details." >&2;}
  6182    { (exit 77); exit 77; }; }
  6183    else
  6184      ac_cv_sizeof_void_p=0
  6185    fi
  6186 fi
  6187 rm -rf conftest.dSYM
  6188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6189 fi
  6190 rm -f conftest.val
  6191 fi
  6192 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  6193 $as_echo "$ac_cv_sizeof_void_p" >&6; }
  6197 cat >>confdefs.h <<_ACEOF
  6198 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  6199 _ACEOF
  6202 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6203 $as_echo_n "checking for ANSI C header files... " >&6; }
  6204 if test "${ac_cv_header_stdc+set}" = set; then
  6205   $as_echo_n "(cached) " >&6
  6206 else
  6207   cat >conftest.$ac_ext <<_ACEOF
  6208 /* confdefs.h.  */
  6209 _ACEOF
  6210 cat confdefs.h >>conftest.$ac_ext
  6211 cat >>conftest.$ac_ext <<_ACEOF
  6212 /* end confdefs.h.  */
  6213 #include <stdlib.h>
  6214 #include <stdarg.h>
  6215 #include <string.h>
  6216 #include <float.h>
  6218 int
  6219 main ()
  6223   return 0;
  6225 _ACEOF
  6226 rm -f conftest.$ac_objext
  6227 if { (ac_try="$ac_compile"
  6228 case "(($ac_try" in
  6229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6230   *) ac_try_echo=$ac_try;;
  6231 esac
  6232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6233 $as_echo "$ac_try_echo") >&5
  6234   (eval "$ac_compile") 2>conftest.er1
  6235   ac_status=$?
  6236   grep -v '^ *+' conftest.er1 >conftest.err
  6237   rm -f conftest.er1
  6238   cat conftest.err >&5
  6239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6240   (exit $ac_status); } && {
  6241 	 test -z "$ac_c_werror_flag" ||
  6242 	 test ! -s conftest.err
  6243        } && test -s conftest.$ac_objext; then
  6244   ac_cv_header_stdc=yes
  6245 else
  6246   $as_echo "$as_me: failed program was:" >&5
  6247 sed 's/^/| /' conftest.$ac_ext >&5
  6249 	ac_cv_header_stdc=no
  6250 fi
  6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6254 if test $ac_cv_header_stdc = yes; then
  6255   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6256   cat >conftest.$ac_ext <<_ACEOF
  6257 /* confdefs.h.  */
  6258 _ACEOF
  6259 cat confdefs.h >>conftest.$ac_ext
  6260 cat >>conftest.$ac_ext <<_ACEOF
  6261 /* end confdefs.h.  */
  6262 #include <string.h>
  6264 _ACEOF
  6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6266   $EGREP "memchr" >/dev/null 2>&1; then
  6268 else
  6269   ac_cv_header_stdc=no
  6270 fi
  6271 rm -f conftest*
  6273 fi
  6275 if test $ac_cv_header_stdc = yes; then
  6276   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6277   cat >conftest.$ac_ext <<_ACEOF
  6278 /* confdefs.h.  */
  6279 _ACEOF
  6280 cat confdefs.h >>conftest.$ac_ext
  6281 cat >>conftest.$ac_ext <<_ACEOF
  6282 /* end confdefs.h.  */
  6283 #include <stdlib.h>
  6285 _ACEOF
  6286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6287   $EGREP "free" >/dev/null 2>&1; then
  6289 else
  6290   ac_cv_header_stdc=no
  6291 fi
  6292 rm -f conftest*
  6294 fi
  6296 if test $ac_cv_header_stdc = yes; then
  6297   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6298   if test "$cross_compiling" = yes; then
  6300 else
  6301   cat >conftest.$ac_ext <<_ACEOF
  6302 /* confdefs.h.  */
  6303 _ACEOF
  6304 cat confdefs.h >>conftest.$ac_ext
  6305 cat >>conftest.$ac_ext <<_ACEOF
  6306 /* end confdefs.h.  */
  6307 #include <ctype.h>
  6308 #include <stdlib.h>
  6309 #if ((' ' & 0x0FF) == 0x020)
  6310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6312 #else
  6313 # define ISLOWER(c) \
  6314 		   (('a' <= (c) && (c) <= 'i') \
  6315 		     || ('j' <= (c) && (c) <= 'r') \
  6316 		     || ('s' <= (c) && (c) <= 'z'))
  6317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6318 #endif
  6320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6321 int
  6322 main ()
  6324   int i;
  6325   for (i = 0; i < 256; i++)
  6326     if (XOR (islower (i), ISLOWER (i))
  6327 	|| toupper (i) != TOUPPER (i))
  6328       return 2;
  6329   return 0;
  6331 _ACEOF
  6332 rm -f conftest$ac_exeext
  6333 if { (ac_try="$ac_link"
  6334 case "(($ac_try" in
  6335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6336   *) ac_try_echo=$ac_try;;
  6337 esac
  6338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6339 $as_echo "$ac_try_echo") >&5
  6340   (eval "$ac_link") 2>&5
  6341   ac_status=$?
  6342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6344   { (case "(($ac_try" in
  6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6346   *) ac_try_echo=$ac_try;;
  6347 esac
  6348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6349 $as_echo "$ac_try_echo") >&5
  6350   (eval "$ac_try") 2>&5
  6351   ac_status=$?
  6352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6353   (exit $ac_status); }; }; then
  6355 else
  6356   $as_echo "$as_me: program exited with status $ac_status" >&5
  6357 $as_echo "$as_me: failed program was:" >&5
  6358 sed 's/^/| /' conftest.$ac_ext >&5
  6360 ( exit $ac_status )
  6361 ac_cv_header_stdc=no
  6362 fi
  6363 rm -rf conftest.dSYM
  6364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6365 fi
  6368 fi
  6369 fi
  6370 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6371 $as_echo "$ac_cv_header_stdc" >&6; }
  6372 if test $ac_cv_header_stdc = yes; then
  6374 cat >>confdefs.h <<\_ACEOF
  6375 #define STDC_HEADERS 1
  6376 _ACEOF
  6378 fi
  6380 # Make sure we can run config.sub.
  6381 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6382   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6383 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6384    { (exit 1); exit 1; }; }
  6386 { $as_echo "$as_me:$LINENO: checking build system type" >&5
  6387 $as_echo_n "checking build system type... " >&6; }
  6388 if test "${ac_cv_build+set}" = set; then
  6389   $as_echo_n "(cached) " >&6
  6390 else
  6391   ac_build_alias=$build_alias
  6392 test "x$ac_build_alias" = x &&
  6393   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6394 test "x$ac_build_alias" = x &&
  6395   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6396 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6397    { (exit 1); exit 1; }; }
  6398 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6399   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6400 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6401    { (exit 1); exit 1; }; }
  6403 fi
  6404 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6405 $as_echo "$ac_cv_build" >&6; }
  6406 case $ac_cv_build in
  6407 *-*-*) ;;
  6408 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6409 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  6410    { (exit 1); exit 1; }; };;
  6411 esac
  6412 build=$ac_cv_build
  6413 ac_save_IFS=$IFS; IFS='-'
  6414 set x $ac_cv_build
  6415 shift
  6416 build_cpu=$1
  6417 build_vendor=$2
  6418 shift; shift
  6419 # Remember, the first character of IFS is used to create $*,
  6420 # except with old shells:
  6421 build_os=$*
  6422 IFS=$ac_save_IFS
  6423 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6426 { $as_echo "$as_me:$LINENO: checking host system type" >&5
  6427 $as_echo_n "checking host system type... " >&6; }
  6428 if test "${ac_cv_host+set}" = set; then
  6429   $as_echo_n "(cached) " >&6
  6430 else
  6431   if test "x$host_alias" = x; then
  6432   ac_cv_host=$ac_cv_build
  6433 else
  6434   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6435     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6436 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6437    { (exit 1); exit 1; }; }
  6438 fi
  6440 fi
  6441 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6442 $as_echo "$ac_cv_host" >&6; }
  6443 case $ac_cv_host in
  6444 *-*-*) ;;
  6445 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6446 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  6447    { (exit 1); exit 1; }; };;
  6448 esac
  6449 host=$ac_cv_host
  6450 ac_save_IFS=$IFS; IFS='-'
  6451 set x $ac_cv_host
  6452 shift
  6453 host_cpu=$1
  6454 host_vendor=$2
  6455 shift; shift
  6456 # Remember, the first character of IFS is used to create $*,
  6457 # except with old shells:
  6458 host_os=$*
  6459 IFS=$ac_save_IFS
  6460 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6464 # Extract the first word of "pod2man", so it can be a program name with args.
  6465 set dummy pod2man; ac_word=$2
  6466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6467 $as_echo_n "checking for $ac_word... " >&6; }
  6468 if test "${ac_cv_path_POD2MAN+set}" = set; then
  6469   $as_echo_n "(cached) " >&6
  6470 else
  6471   case $POD2MAN in
  6472   [\\/]* | ?:[\\/]*)
  6473   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  6474   ;;
  6475   *)
  6476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6477 for as_dir in $PATH
  6478 do
  6479   IFS=$as_save_IFS
  6480   test -z "$as_dir" && as_dir=.
  6481   for ac_exec_ext in '' $ac_executable_extensions; do
  6482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6483     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  6484     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6485     break 2
  6486   fi
  6487 done
  6488 done
  6489 IFS=$as_save_IFS
  6491   ;;
  6492 esac
  6493 fi
  6494 POD2MAN=$ac_cv_path_POD2MAN
  6495 if test -n "$POD2MAN"; then
  6496   { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
  6497 $as_echo "$POD2MAN" >&6; }
  6498 else
  6499   { $as_echo "$as_me:$LINENO: result: no" >&5
  6500 $as_echo "no" >&6; }
  6501 fi
  6504 # Extract the first word of "pod2html", so it can be a program name with args.
  6505 set dummy pod2html; ac_word=$2
  6506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6507 $as_echo_n "checking for $ac_word... " >&6; }
  6508 if test "${ac_cv_path_POD2HTML+set}" = set; then
  6509   $as_echo_n "(cached) " >&6
  6510 else
  6511   case $POD2HTML in
  6512   [\\/]* | ?:[\\/]*)
  6513   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  6514   ;;
  6515   *)
  6516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6517 for as_dir in $PATH
  6518 do
  6519   IFS=$as_save_IFS
  6520   test -z "$as_dir" && as_dir=.
  6521   for ac_exec_ext in '' $ac_executable_extensions; do
  6522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6523     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  6524     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6525     break 2
  6526   fi
  6527 done
  6528 done
  6529 IFS=$as_save_IFS
  6531   ;;
  6532 esac
  6533 fi
  6534 POD2HTML=$ac_cv_path_POD2HTML
  6535 if test -n "$POD2HTML"; then
  6536   { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
  6537 $as_echo "$POD2HTML" >&6; }
  6538 else
  6539   { $as_echo "$as_me:$LINENO: result: no" >&5
  6540 $as_echo "no" >&6; }
  6541 fi
  6546 # Check whether --enable-trace was given.
  6547 if test "${enable_trace+set}" = set; then
  6548   enableval=$enable_trace; if test "$enableval" == "yes"; then
  6550 cat >>confdefs.h <<\_ACEOF
  6551 #define ENABLE_TRACE_IO 1
  6552 _ACEOF
  6554     fi
  6555 fi
  6557 # Check whether --enable-watch was given.
  6558 if test "${enable_watch+set}" = set; then
  6559   enableval=$enable_watch; if test "$enableval" == "yes"; then
  6561 cat >>confdefs.h <<\_ACEOF
  6562 #define ENABLE_WATCH 1
  6563 _ACEOF
  6565    fi
  6566 fi
  6568 # Check whether --enable-sh4stats was given.
  6569 if test "${enable_sh4stats+set}" = set; then
  6570   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  6572 cat >>confdefs.h <<\_ACEOF
  6573 #define ENABLE_SH4STATS 1
  6574 _ACEOF
  6576     fi
  6577 fi
  6580 # Check whether --with-osmesa was given.
  6581 if test "${with_osmesa+set}" = set; then
  6582   withval=$with_osmesa;
  6583 else
  6584   with_osmesa=no
  6585 fi
  6588 # Check whether --with-gtk was given.
  6589 if test "${with_gtk+set}" = set; then
  6590   withval=$with_gtk; with_gtk=yes
  6591 else
  6592   with_gtk=x11
  6593 fi
  6597 lxdream_save_cppflags="$CPPFLAGS"
  6598 CPPFLAGS="$CPPFLAGS -x objective-c"
  6599 cat >conftest.$ac_ext <<_ACEOF
  6600 /* confdefs.h.  */
  6601 _ACEOF
  6602 cat confdefs.h >>conftest.$ac_ext
  6603 cat >>conftest.$ac_ext <<_ACEOF
  6604 /* end confdefs.h.  */
  6605 @interface Foo @end
  6606 int
  6607 main ()
  6611   return 0;
  6613 _ACEOF
  6614 rm -f conftest.$ac_objext
  6615 if { (ac_try="$ac_compile"
  6616 case "(($ac_try" in
  6617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6618   *) ac_try_echo=$ac_try;;
  6619 esac
  6620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6621 $as_echo "$ac_try_echo") >&5
  6622   (eval "$ac_compile") 2>conftest.er1
  6623   ac_status=$?
  6624   grep -v '^ *+' conftest.er1 >conftest.err
  6625   rm -f conftest.er1
  6626   cat conftest.err >&5
  6627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6628   (exit $ac_status); } && {
  6629 	 test -z "$ac_c_werror_flag" ||
  6630 	 test ! -s conftest.err
  6631        } && test -s conftest.$ac_objext; then
  6634    if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6635   { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  6636 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
  6637 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6638   $as_echo_n "(cached) " >&6
  6639 fi
  6640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  6641 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  6642 else
  6643   # Is the header compilable?
  6644 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
  6645 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
  6646 cat >conftest.$ac_ext <<_ACEOF
  6647 /* confdefs.h.  */
  6648 _ACEOF
  6649 cat confdefs.h >>conftest.$ac_ext
  6650 cat >>conftest.$ac_ext <<_ACEOF
  6651 /* end confdefs.h.  */
  6652 $ac_includes_default
  6653 #include <Cocoa/Cocoa.h>
  6654 _ACEOF
  6655 rm -f conftest.$ac_objext
  6656 if { (ac_try="$ac_compile"
  6657 case "(($ac_try" in
  6658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6659   *) ac_try_echo=$ac_try;;
  6660 esac
  6661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6662 $as_echo "$ac_try_echo") >&5
  6663   (eval "$ac_compile") 2>conftest.er1
  6664   ac_status=$?
  6665   grep -v '^ *+' conftest.er1 >conftest.err
  6666   rm -f conftest.er1
  6667   cat conftest.err >&5
  6668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6669   (exit $ac_status); } && {
  6670 	 test -z "$ac_c_werror_flag" ||
  6671 	 test ! -s conftest.err
  6672        } && test -s conftest.$ac_objext; then
  6673   ac_header_compiler=yes
  6674 else
  6675   $as_echo "$as_me: failed program was:" >&5
  6676 sed 's/^/| /' conftest.$ac_ext >&5
  6678 	ac_header_compiler=no
  6679 fi
  6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6683 $as_echo "$ac_header_compiler" >&6; }
  6685 # Is the header present?
  6686 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
  6687 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
  6688 cat >conftest.$ac_ext <<_ACEOF
  6689 /* confdefs.h.  */
  6690 _ACEOF
  6691 cat confdefs.h >>conftest.$ac_ext
  6692 cat >>conftest.$ac_ext <<_ACEOF
  6693 /* end confdefs.h.  */
  6694 #include <Cocoa/Cocoa.h>
  6695 _ACEOF
  6696 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6697 case "(($ac_try" in
  6698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6699   *) ac_try_echo=$ac_try;;
  6700 esac
  6701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6702 $as_echo "$ac_try_echo") >&5
  6703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6704   ac_status=$?
  6705   grep -v '^ *+' conftest.er1 >conftest.err
  6706   rm -f conftest.er1
  6707   cat conftest.err >&5
  6708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6709   (exit $ac_status); } >/dev/null && {
  6710 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6711 	 test ! -s conftest.err
  6712        }; then
  6713   ac_header_preproc=yes
  6714 else
  6715   $as_echo "$as_me: failed program was:" >&5
  6716 sed 's/^/| /' conftest.$ac_ext >&5
  6718   ac_header_preproc=no
  6719 fi
  6721 rm -f conftest.err conftest.$ac_ext
  6722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6723 $as_echo "$ac_header_preproc" >&6; }
  6725 # So?  What about this header?
  6726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6727   yes:no: )
  6728     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6729 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6730     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
  6731 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
  6732     ac_header_preproc=yes
  6733     ;;
  6734   no:yes:* )
  6735     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
  6736 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
  6737     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h:     check for missing prerequisite headers?" >&5
  6738 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h:     check for missing prerequisite headers?" >&2;}
  6739     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
  6740 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
  6741     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h:     section \"Present But Cannot Be Compiled\"" >&5
  6742 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6743     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
  6744 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
  6745     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
  6746 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
  6748     ;;
  6749 esac
  6750 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  6751 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
  6752 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6753   $as_echo_n "(cached) " >&6
  6754 else
  6755   ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
  6756 fi
  6757 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  6758 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  6760 fi
  6761 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  6763       HAVE_COCOA='yes'
  6764       APPLE_BUILD='yes'
  6765       LIBS="$LIBS -framework AppKit"
  6766       LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
  6768 cat >>confdefs.h <<\_ACEOF
  6769 #define HAVE_COCOA 1
  6770 _ACEOF
  6773 cat >>confdefs.h <<\_ACEOF
  6774 #define APPLE_BUILD 1
  6775 _ACEOF
  6777       if test "x$with_gtk" = "xx11"; then
  6778         with_gtk=no
  6779       fi
  6781 fi
  6786 else
  6787   $as_echo "$as_me: failed program was:" >&5
  6788 sed 's/^/| /' conftest.$ac_ext >&5
  6790 	CPPFLAGS="$lxdream_save_cppflags"
  6791 fi
  6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6796 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  6797   GUI_COCOA_TRUE=
  6798   GUI_COCOA_FALSE='#'
  6799 else
  6800   GUI_COCOA_TRUE='#'
  6801   GUI_COCOA_FALSE=
  6802 fi
  6807 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  6808 	if test -n "$ac_tool_prefix"; then
  6809   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  6810 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  6811 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6812 $as_echo_n "checking for $ac_word... " >&6; }
  6813 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  6814   $as_echo_n "(cached) " >&6
  6815 else
  6816   case $PKG_CONFIG in
  6817   [\\/]* | ?:[\\/]*)
  6818   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6819   ;;
  6820   *)
  6821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6822 for as_dir in $PATH
  6823 do
  6824   IFS=$as_save_IFS
  6825   test -z "$as_dir" && as_dir=.
  6826   for ac_exec_ext in '' $ac_executable_extensions; do
  6827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6828     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6829     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6830     break 2
  6831   fi
  6832 done
  6833 done
  6834 IFS=$as_save_IFS
  6836   ;;
  6837 esac
  6838 fi
  6839 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6840 if test -n "$PKG_CONFIG"; then
  6841   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  6842 $as_echo "$PKG_CONFIG" >&6; }
  6843 else
  6844   { $as_echo "$as_me:$LINENO: result: no" >&5
  6845 $as_echo "no" >&6; }
  6846 fi
  6849 fi
  6850 if test -z "$ac_cv_path_PKG_CONFIG"; then
  6851   ac_pt_PKG_CONFIG=$PKG_CONFIG
  6852   # Extract the first word of "pkg-config", so it can be a program name with args.
  6853 set dummy pkg-config; ac_word=$2
  6854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6855 $as_echo_n "checking for $ac_word... " >&6; }
  6856 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  6857   $as_echo_n "(cached) " >&6
  6858 else
  6859   case $ac_pt_PKG_CONFIG in
  6860   [\\/]* | ?:[\\/]*)
  6861   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  6862   ;;
  6863   *)
  6864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6865 for as_dir in $PATH
  6866 do
  6867   IFS=$as_save_IFS
  6868   test -z "$as_dir" && as_dir=.
  6869   for ac_exec_ext in '' $ac_executable_extensions; do
  6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6871     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6872     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6873     break 2
  6874   fi
  6875 done
  6876 done
  6877 IFS=$as_save_IFS
  6879   ;;
  6880 esac
  6881 fi
  6882 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  6883 if test -n "$ac_pt_PKG_CONFIG"; then
  6884   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  6885 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  6886 else
  6887   { $as_echo "$as_me:$LINENO: result: no" >&5
  6888 $as_echo "no" >&6; }
  6889 fi
  6891   if test "x$ac_pt_PKG_CONFIG" = x; then
  6892     PKG_CONFIG=""
  6893   else
  6894     case $cross_compiling:$ac_tool_warned in
  6895 yes:)
  6896 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6897 whose name does not start with the host triplet.  If you think this
  6898 configuration is useful to you, please write to autoconf@gnu.org." >&5
  6899 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6900 whose name does not start with the host triplet.  If you think this
  6901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6902 ac_tool_warned=yes ;;
  6903 esac
  6904     PKG_CONFIG=$ac_pt_PKG_CONFIG
  6905   fi
  6906 else
  6907   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  6908 fi
  6910 fi
  6911 if test -n "$PKG_CONFIG"; then
  6912 	_pkg_min_version=0.9.0
  6913 	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  6914 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  6915 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  6916 		{ $as_echo "$as_me:$LINENO: result: yes" >&5
  6917 $as_echo "yes" >&6; }
  6918 	else
  6919 		{ $as_echo "$as_me:$LINENO: result: no" >&5
  6920 $as_echo "no" >&6; }
  6921 		PKG_CONFIG=""
  6922 	fi
  6924 fi
  6926 pkg_failed=no
  6927 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
  6928 $as_echo_n "checking for LIBPNG... " >&6; }
  6930 if test -n "$PKG_CONFIG"; then
  6931     if test -n "$LIBPNG_CFLAGS"; then
  6932         pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  6933     else
  6934         if test -n "$PKG_CONFIG" && \
  6935     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  6936   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  6937   ac_status=$?
  6938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6939   (exit $ac_status); }; then
  6940   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  6941 else
  6942   pkg_failed=yes
  6943 fi
  6944     fi
  6945 else
  6946 	pkg_failed=untried
  6947 fi
  6948 if test -n "$PKG_CONFIG"; then
  6949     if test -n "$LIBPNG_LIBS"; then
  6950         pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  6951     else
  6952         if test -n "$PKG_CONFIG" && \
  6953     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  6954   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  6955   ac_status=$?
  6956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6957   (exit $ac_status); }; then
  6958   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  6959 else
  6960   pkg_failed=yes
  6961 fi
  6962     fi
  6963 else
  6964 	pkg_failed=untried
  6965 fi
  6969 if test $pkg_failed = yes; then
  6971 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6972         _pkg_short_errors_supported=yes
  6973 else
  6974         _pkg_short_errors_supported=no
  6975 fi
  6976         if test $_pkg_short_errors_supported = yes; then
  6977 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
  6978         else
  6979 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
  6980         fi
  6981 	# Put the nasty error message in config.log where it belongs
  6982 	echo "$LIBPNG_PKG_ERRORS" >&5
  6984 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  6986 $LIBPNG_PKG_ERRORS
  6988 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6989 installed software in a non-standard prefix.
  6991 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  6992 and LIBPNG_LIBS to avoid the need to call pkg-config.
  6993 See the pkg-config man page for more details.
  6994 " >&5
  6995 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
  6997 $LIBPNG_PKG_ERRORS
  6999 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7000 installed software in a non-standard prefix.
  7002 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  7003 and LIBPNG_LIBS to avoid the need to call pkg-config.
  7004 See the pkg-config man page for more details.
  7005 " >&2;}
  7006    { (exit 1); exit 1; }; }
  7007 elif test $pkg_failed = untried; then
  7008 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  7009 is in your PATH or set the PKG_CONFIG environment variable to the full
  7010 path to pkg-config.
  7012 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  7013 and LIBPNG_LIBS to avoid the need to call pkg-config.
  7014 See the pkg-config man page for more details.
  7016 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7017 See \`config.log' for more details." >&5
  7018 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  7019 is in your PATH or set the PKG_CONFIG environment variable to the full
  7020 path to pkg-config.
  7022 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  7023 and LIBPNG_LIBS to avoid the need to call pkg-config.
  7024 See the pkg-config man page for more details.
  7026 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7027 See \`config.log' for more details." >&2;}
  7028    { (exit 1); exit 1; }; }
  7029 else
  7030 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  7031 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  7032         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7033 $as_echo "yes" >&6; }
  7035 fi
  7038 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  7039 $as_echo_n "checking for uncompress in -lz... " >&6; }
  7040 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  7041   $as_echo_n "(cached) " >&6
  7042 else
  7043   ac_check_lib_save_LIBS=$LIBS
  7044 LIBS="-lz  $LIBS"
  7045 cat >conftest.$ac_ext <<_ACEOF
  7046 /* confdefs.h.  */
  7047 _ACEOF
  7048 cat confdefs.h >>conftest.$ac_ext
  7049 cat >>conftest.$ac_ext <<_ACEOF
  7050 /* end confdefs.h.  */
  7052 /* Override any GCC internal prototype to avoid an error.
  7053    Use char because int might match the return type of a GCC
  7054    builtin and then its argument prototype would still apply.  */
  7055 #ifdef __cplusplus
  7056 extern "C"
  7057 #endif
  7058 char uncompress ();
  7059 int
  7060 main ()
  7062 return uncompress ();
  7064   return 0;
  7066 _ACEOF
  7067 rm -f conftest.$ac_objext conftest$ac_exeext
  7068 if { (ac_try="$ac_link"
  7069 case "(($ac_try" in
  7070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7071   *) ac_try_echo=$ac_try;;
  7072 esac
  7073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7074 $as_echo "$ac_try_echo") >&5
  7075   (eval "$ac_link") 2>conftest.er1
  7076   ac_status=$?
  7077   grep -v '^ *+' conftest.er1 >conftest.err
  7078   rm -f conftest.er1
  7079   cat conftest.err >&5
  7080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7081   (exit $ac_status); } && {
  7082 	 test -z "$ac_c_werror_flag" ||
  7083 	 test ! -s conftest.err
  7084        } && test -s conftest$ac_exeext && {
  7085 	 test "$cross_compiling" = yes ||
  7086 	 $as_test_x conftest$ac_exeext
  7087        }; then
  7088   ac_cv_lib_z_uncompress=yes
  7089 else
  7090   $as_echo "$as_me: failed program was:" >&5
  7091 sed 's/^/| /' conftest.$ac_ext >&5
  7093 	ac_cv_lib_z_uncompress=no
  7094 fi
  7096 rm -rf conftest.dSYM
  7097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7098       conftest$ac_exeext conftest.$ac_ext
  7099 LIBS=$ac_check_lib_save_LIBS
  7100 fi
  7101 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  7102 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
  7103 if test $ac_cv_lib_z_uncompress = yes; then
  7104   cat >>confdefs.h <<_ACEOF
  7105 #define HAVE_LIBZ 1
  7106 _ACEOF
  7108   LIBS="-lz $LIBS"
  7110 else
  7112     echo "Zlib (libz.so) could not be found, but is required."
  7113     exit 1
  7114 fi
  7117 if test "x$with_gtk" = "xno"; then
  7119 pkg_failed=no
  7120 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
  7121 $as_echo_n "checking for GLIB... " >&6; }
  7123 if test -n "$PKG_CONFIG"; then
  7124     if test -n "$GLIB_CFLAGS"; then
  7125         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
  7126     else
  7127         if test -n "$PKG_CONFIG" && \
  7128     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  7129   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  7130   ac_status=$?
  7131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7132   (exit $ac_status); }; then
  7133   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
  7134 else
  7135   pkg_failed=yes
  7136 fi
  7137     fi
  7138 else
  7139 	pkg_failed=untried
  7140 fi
  7141 if test -n "$PKG_CONFIG"; then
  7142     if test -n "$GLIB_LIBS"; then
  7143         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
  7144     else
  7145         if test -n "$PKG_CONFIG" && \
  7146     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  7147   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  7148   ac_status=$?
  7149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7150   (exit $ac_status); }; then
  7151   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
  7152 else
  7153   pkg_failed=yes
  7154 fi
  7155     fi
  7156 else
  7157 	pkg_failed=untried
  7158 fi
  7162 if test $pkg_failed = yes; then
  7164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7165         _pkg_short_errors_supported=yes
  7166 else
  7167         _pkg_short_errors_supported=no
  7168 fi
  7169         if test $_pkg_short_errors_supported = yes; then
  7170 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
  7171         else
  7172 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
  7173         fi
  7174 	# Put the nasty error message in config.log where it belongs
  7175 	echo "$GLIB_PKG_ERRORS" >&5
  7177 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
  7179 $GLIB_PKG_ERRORS
  7181 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7182 installed software in a non-standard prefix.
  7184 Alternatively, you may set the environment variables GLIB_CFLAGS
  7185 and GLIB_LIBS to avoid the need to call pkg-config.
  7186 See the pkg-config man page for more details.
  7187 " >&5
  7188 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
  7190 $GLIB_PKG_ERRORS
  7192 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7193 installed software in a non-standard prefix.
  7195 Alternatively, you may set the environment variables GLIB_CFLAGS
  7196 and GLIB_LIBS to avoid the need to call pkg-config.
  7197 See the pkg-config man page for more details.
  7198 " >&2;}
  7199    { (exit 1); exit 1; }; }
  7200 elif test $pkg_failed = untried; then
  7201 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  7202 is in your PATH or set the PKG_CONFIG environment variable to the full
  7203 path to pkg-config.
  7205 Alternatively, you may set the environment variables GLIB_CFLAGS
  7206 and GLIB_LIBS to avoid the need to call pkg-config.
  7207 See the pkg-config man page for more details.
  7209 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7210 See \`config.log' for more details." >&5
  7211 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  7212 is in your PATH or set the PKG_CONFIG environment variable to the full
  7213 path to pkg-config.
  7215 Alternatively, you may set the environment variables GLIB_CFLAGS
  7216 and GLIB_LIBS to avoid the need to call pkg-config.
  7217 See the pkg-config man page for more details.
  7219 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7220 See \`config.log' for more details." >&2;}
  7221    { (exit 1); exit 1; }; }
  7222 else
  7223 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
  7224 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
  7225         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7226 $as_echo "yes" >&6; }
  7228 fi
  7229 else
  7231 pkg_failed=no
  7232 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
  7233 $as_echo_n "checking for GTK... " >&6; }
  7235 if test -n "$PKG_CONFIG"; then
  7236     if test -n "$GTK_CFLAGS"; then
  7237         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  7238     else
  7239         if test -n "$PKG_CONFIG" && \
  7240     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  7241   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  7242   ac_status=$?
  7243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7244   (exit $ac_status); }; then
  7245   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  7246 else
  7247   pkg_failed=yes
  7248 fi
  7249     fi
  7250 else
  7251 	pkg_failed=untried
  7252 fi
  7253 if test -n "$PKG_CONFIG"; then
  7254     if test -n "$GTK_LIBS"; then
  7255         pkg_cv_GTK_LIBS="$GTK_LIBS"
  7256     else
  7257         if test -n "$PKG_CONFIG" && \
  7258     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  7259   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  7260   ac_status=$?
  7261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7262   (exit $ac_status); }; then
  7263   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  7264 else
  7265   pkg_failed=yes
  7266 fi
  7267     fi
  7268 else
  7269 	pkg_failed=untried
  7270 fi
  7274 if test $pkg_failed = yes; then
  7276 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7277         _pkg_short_errors_supported=yes
  7278 else
  7279         _pkg_short_errors_supported=no
  7280 fi
  7281         if test $_pkg_short_errors_supported = yes; then
  7282 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
  7283         else
  7284 	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
  7285         fi
  7286 	# Put the nasty error message in config.log where it belongs
  7287 	echo "$GTK_PKG_ERRORS" >&5
  7289 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  7291 $GTK_PKG_ERRORS
  7293 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7294 installed software in a non-standard prefix.
  7296 Alternatively, you may set the environment variables GTK_CFLAGS
  7297 and GTK_LIBS to avoid the need to call pkg-config.
  7298 See the pkg-config man page for more details.
  7299 " >&5
  7300 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  7302 $GTK_PKG_ERRORS
  7304 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7305 installed software in a non-standard prefix.
  7307 Alternatively, you may set the environment variables GTK_CFLAGS
  7308 and GTK_LIBS to avoid the need to call pkg-config.
  7309 See the pkg-config man page for more details.
  7310 " >&2;}
  7311    { (exit 1); exit 1; }; }
  7312 elif test $pkg_failed = untried; then
  7313 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  7314 is in your PATH or set the PKG_CONFIG environment variable to the full
  7315 path to pkg-config.
  7317 Alternatively, you may set the environment variables GTK_CFLAGS
  7318 and GTK_LIBS to avoid the need to call pkg-config.
  7319 See the pkg-config man page for more details.
  7321 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7322 See \`config.log' for more details." >&5
  7323 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  7324 is in your PATH or set the PKG_CONFIG environment variable to the full
  7325 path to pkg-config.
  7327 Alternatively, you may set the environment variables GTK_CFLAGS
  7328 and GTK_LIBS to avoid the need to call pkg-config.
  7329 See the pkg-config man page for more details.
  7331 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7332 See \`config.log' for more details." >&2;}
  7333    { (exit 1); exit 1; }; }
  7334 else
  7335 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  7336 	GTK_LIBS=$pkg_cv_GTK_LIBS
  7337         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7338 $as_echo "yes" >&6; }
  7340        HAVE_GTK='yes'
  7342 cat >>confdefs.h <<\_ACEOF
  7343 #define HAVE_GTK 1
  7344 _ACEOF
  7347 fi
  7349       LIBS="$LIBS $GTK_LIBS"
  7350    { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
  7351 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
  7352 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
  7353   $as_echo_n "(cached) " >&6
  7354 else
  7355   cat >conftest.$ac_ext <<_ACEOF
  7356 /* confdefs.h.  */
  7357 _ACEOF
  7358 cat confdefs.h >>conftest.$ac_ext
  7359 cat >>conftest.$ac_ext <<_ACEOF
  7360 /* end confdefs.h.  */
  7361 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
  7362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7363 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
  7365 /* System header to define __stub macros and hopefully few prototypes,
  7366     which can conflict with char gdk_x11_display_get_xdisplay (); below.
  7367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7368     <limits.h> exists even on freestanding compilers.  */
  7370 #ifdef __STDC__
  7371 # include <limits.h>
  7372 #else
  7373 # include <assert.h>
  7374 #endif
  7376 #undef gdk_x11_display_get_xdisplay
  7378 /* Override any GCC internal prototype to avoid an error.
  7379    Use char because int might match the return type of a GCC
  7380    builtin and then its argument prototype would still apply.  */
  7381 #ifdef __cplusplus
  7382 extern "C"
  7383 #endif
  7384 char gdk_x11_display_get_xdisplay ();
  7385 /* The GNU C library defines this for functions which it implements
  7386     to always fail with ENOSYS.  Some functions are actually named
  7387     something starting with __ and the normal name is an alias.  */
  7388 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
  7389 choke me
  7390 #endif
  7392 int
  7393 main ()
  7395 return gdk_x11_display_get_xdisplay ();
  7397   return 0;
  7399 _ACEOF
  7400 rm -f conftest.$ac_objext conftest$ac_exeext
  7401 if { (ac_try="$ac_link"
  7402 case "(($ac_try" in
  7403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7404   *) ac_try_echo=$ac_try;;
  7405 esac
  7406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7407 $as_echo "$ac_try_echo") >&5
  7408   (eval "$ac_link") 2>conftest.er1
  7409   ac_status=$?
  7410   grep -v '^ *+' conftest.er1 >conftest.err
  7411   rm -f conftest.er1
  7412   cat conftest.err >&5
  7413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7414   (exit $ac_status); } && {
  7415 	 test -z "$ac_c_werror_flag" ||
  7416 	 test ! -s conftest.err
  7417        } && test -s conftest$ac_exeext && {
  7418 	 test "$cross_compiling" = yes ||
  7419 	 $as_test_x conftest$ac_exeext
  7420        }; then
  7421   ac_cv_func_gdk_x11_display_get_xdisplay=yes
  7422 else
  7423   $as_echo "$as_me: failed program was:" >&5
  7424 sed 's/^/| /' conftest.$ac_ext >&5
  7426 	ac_cv_func_gdk_x11_display_get_xdisplay=no
  7427 fi
  7429 rm -rf conftest.dSYM
  7430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7431       conftest$ac_exeext conftest.$ac_ext
  7432 fi
  7433 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
  7434 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
  7435 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
  7437       HAVE_GTK_X11='yes'
  7439 cat >>confdefs.h <<\_ACEOF
  7440 #define HAVE_GTK_X11 1
  7441 _ACEOF
  7443 fi
  7445    { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
  7446 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
  7447 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
  7448   $as_echo_n "(cached) " >&6
  7449 else
  7450   cat >conftest.$ac_ext <<_ACEOF
  7451 /* confdefs.h.  */
  7452 _ACEOF
  7453 cat confdefs.h >>conftest.$ac_ext
  7454 cat >>conftest.$ac_ext <<_ACEOF
  7455 /* end confdefs.h.  */
  7456 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
  7457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7458 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
  7460 /* System header to define __stub macros and hopefully few prototypes,
  7461     which can conflict with char gdk_quartz_window_get_nsview (); below.
  7462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7463     <limits.h> exists even on freestanding compilers.  */
  7465 #ifdef __STDC__
  7466 # include <limits.h>
  7467 #else
  7468 # include <assert.h>
  7469 #endif
  7471 #undef gdk_quartz_window_get_nsview
  7473 /* Override any GCC internal prototype to avoid an error.
  7474    Use char because int might match the return type of a GCC
  7475    builtin and then its argument prototype would still apply.  */
  7476 #ifdef __cplusplus
  7477 extern "C"
  7478 #endif
  7479 char gdk_quartz_window_get_nsview ();
  7480 /* The GNU C library defines this for functions which it implements
  7481     to always fail with ENOSYS.  Some functions are actually named
  7482     something starting with __ and the normal name is an alias.  */
  7483 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
  7484 choke me
  7485 #endif
  7487 int
  7488 main ()
  7490 return gdk_quartz_window_get_nsview ();
  7492   return 0;
  7494 _ACEOF
  7495 rm -f conftest.$ac_objext conftest$ac_exeext
  7496 if { (ac_try="$ac_link"
  7497 case "(($ac_try" in
  7498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7499   *) ac_try_echo=$ac_try;;
  7500 esac
  7501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7502 $as_echo "$ac_try_echo") >&5
  7503   (eval "$ac_link") 2>conftest.er1
  7504   ac_status=$?
  7505   grep -v '^ *+' conftest.er1 >conftest.err
  7506   rm -f conftest.er1
  7507   cat conftest.err >&5
  7508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7509   (exit $ac_status); } && {
  7510 	 test -z "$ac_c_werror_flag" ||
  7511 	 test ! -s conftest.err
  7512        } && test -s conftest$ac_exeext && {
  7513 	 test "$cross_compiling" = yes ||
  7514 	 $as_test_x conftest$ac_exeext
  7515        }; then
  7516   ac_cv_func_gdk_quartz_window_get_nsview=yes
  7517 else
  7518   $as_echo "$as_me: failed program was:" >&5
  7519 sed 's/^/| /' conftest.$ac_ext >&5
  7521 	ac_cv_func_gdk_quartz_window_get_nsview=no
  7522 fi
  7524 rm -rf conftest.dSYM
  7525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7526       conftest$ac_exeext conftest.$ac_ext
  7527 fi
  7528 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
  7529 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
  7530 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
  7532       HAVE_GTK_OSX='yes'
  7534 cat >>confdefs.h <<\_ACEOF
  7535 #define HAVE_GTK_OSX 1
  7536 _ACEOF
  7538 fi
  7540 fi
  7544 if test "$HAVE_GTK" = 'yes'; then
  7545   GUI_GTK_TRUE=
  7546   GUI_GTK_FALSE='#'
  7547 else
  7548   GUI_GTK_TRUE='#'
  7549   GUI_GTK_FALSE=
  7550 fi
  7553 if test "x$with_osmesa" != xno; then
  7557 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  7558 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
  7559 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  7560   $as_echo_n "(cached) " >&6
  7561 else
  7562   ac_check_lib_save_LIBS=$LIBS
  7563 LIBS="-lOSMesa  $LIBS"
  7564 cat >conftest.$ac_ext <<_ACEOF
  7565 /* confdefs.h.  */
  7566 _ACEOF
  7567 cat confdefs.h >>conftest.$ac_ext
  7568 cat >>conftest.$ac_ext <<_ACEOF
  7569 /* end confdefs.h.  */
  7571 /* Override any GCC internal prototype to avoid an error.
  7572    Use char because int might match the return type of a GCC
  7573    builtin and then its argument prototype would still apply.  */
  7574 #ifdef __cplusplus
  7575 extern "C"
  7576 #endif
  7577 char OSMesaCreateContext ();
  7578 int
  7579 main ()
  7581 return OSMesaCreateContext ();
  7583   return 0;
  7585 _ACEOF
  7586 rm -f conftest.$ac_objext conftest$ac_exeext
  7587 if { (ac_try="$ac_link"
  7588 case "(($ac_try" in
  7589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7590   *) ac_try_echo=$ac_try;;
  7591 esac
  7592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7593 $as_echo "$ac_try_echo") >&5
  7594   (eval "$ac_link") 2>conftest.er1
  7595   ac_status=$?
  7596   grep -v '^ *+' conftest.er1 >conftest.err
  7597   rm -f conftest.er1
  7598   cat conftest.err >&5
  7599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7600   (exit $ac_status); } && {
  7601 	 test -z "$ac_c_werror_flag" ||
  7602 	 test ! -s conftest.err
  7603        } && test -s conftest$ac_exeext && {
  7604 	 test "$cross_compiling" = yes ||
  7605 	 $as_test_x conftest$ac_exeext
  7606        }; then
  7607   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  7608 else
  7609   $as_echo "$as_me: failed program was:" >&5
  7610 sed 's/^/| /' conftest.$ac_ext >&5
  7612 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  7613 fi
  7615 rm -rf conftest.dSYM
  7616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7617       conftest$ac_exeext conftest.$ac_ext
  7618 LIBS=$ac_check_lib_save_LIBS
  7619 fi
  7620 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  7621 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  7622 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
  7623   cat >>confdefs.h <<_ACEOF
  7624 #define HAVE_LIBOSMESA 1
  7625 _ACEOF
  7627   LIBS="-lOSMesa $LIBS"
  7629 else
  7630   { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  7631 See \`config.log' for more details." >&5
  7632 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  7633 See \`config.log' for more details." >&2;}
  7634    { (exit 1); exit 1; }; }
  7635 fi
  7637   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7638   { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  7639 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  7640 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7641   $as_echo_n "(cached) " >&6
  7642 fi
  7643 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  7644 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  7645 else
  7646   # Is the header compilable?
  7647 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  7648 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
  7649 cat >conftest.$ac_ext <<_ACEOF
  7650 /* confdefs.h.  */
  7651 _ACEOF
  7652 cat confdefs.h >>conftest.$ac_ext
  7653 cat >>conftest.$ac_ext <<_ACEOF
  7654 /* end confdefs.h.  */
  7655 $ac_includes_default
  7656 #include <GL/osmesa.h>
  7657 _ACEOF
  7658 rm -f conftest.$ac_objext
  7659 if { (ac_try="$ac_compile"
  7660 case "(($ac_try" in
  7661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7662   *) ac_try_echo=$ac_try;;
  7663 esac
  7664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7665 $as_echo "$ac_try_echo") >&5
  7666   (eval "$ac_compile") 2>conftest.er1
  7667   ac_status=$?
  7668   grep -v '^ *+' conftest.er1 >conftest.err
  7669   rm -f conftest.er1
  7670   cat conftest.err >&5
  7671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7672   (exit $ac_status); } && {
  7673 	 test -z "$ac_c_werror_flag" ||
  7674 	 test ! -s conftest.err
  7675        } && test -s conftest.$ac_objext; then
  7676   ac_header_compiler=yes
  7677 else
  7678   $as_echo "$as_me: failed program was:" >&5
  7679 sed 's/^/| /' conftest.$ac_ext >&5
  7681 	ac_header_compiler=no
  7682 fi
  7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7685 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7686 $as_echo "$ac_header_compiler" >&6; }
  7688 # Is the header present?
  7689 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  7690 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
  7691 cat >conftest.$ac_ext <<_ACEOF
  7692 /* confdefs.h.  */
  7693 _ACEOF
  7694 cat confdefs.h >>conftest.$ac_ext
  7695 cat >>conftest.$ac_ext <<_ACEOF
  7696 /* end confdefs.h.  */
  7697 #include <GL/osmesa.h>
  7698 _ACEOF
  7699 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7700 case "(($ac_try" in
  7701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7702   *) ac_try_echo=$ac_try;;
  7703 esac
  7704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7705 $as_echo "$ac_try_echo") >&5
  7706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7707   ac_status=$?
  7708   grep -v '^ *+' conftest.er1 >conftest.err
  7709   rm -f conftest.er1
  7710   cat conftest.err >&5
  7711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7712   (exit $ac_status); } >/dev/null && {
  7713 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7714 	 test ! -s conftest.err
  7715        }; then
  7716   ac_header_preproc=yes
  7717 else
  7718   $as_echo "$as_me: failed program was:" >&5
  7719 sed 's/^/| /' conftest.$ac_ext >&5
  7721   ac_header_preproc=no
  7722 fi
  7724 rm -f conftest.err conftest.$ac_ext
  7725 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7726 $as_echo "$ac_header_preproc" >&6; }
  7728 # So?  What about this header?
  7729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7730   yes:no: )
  7731     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7732 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7733     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  7734 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  7735     ac_header_preproc=yes
  7736     ;;
  7737   no:yes:* )
  7738     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  7739 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  7740     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  7741 $as_echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  7742     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  7743 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  7744     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  7745 $as_echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7746     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  7747 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  7748     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  7749 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  7751     ;;
  7752 esac
  7753 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  7754 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  7755 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7756   $as_echo_n "(cached) " >&6
  7757 else
  7758   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  7759 fi
  7760 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  7761 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  7763 fi
  7764 if test $ac_cv_header_GL_osmesa_h = yes; then
  7766 else
  7767   { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  7768 See \`config.log' for more details." >&5
  7769 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  7770 See \`config.log' for more details." >&2;}
  7771    { (exit 1); exit 1; }; }
  7772 fi
  7775   HAVE_OSMESA='yes'
  7776   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
  7778 cat >>confdefs.h <<\_ACEOF
  7779 #define HAVE_OSMESA 1
  7780 _ACEOF
  7782 else
  7785    if test "x$APPLE_BUILD" != 'xyes'; then
  7787 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
  7788 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
  7789 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
  7790   $as_echo_n "(cached) " >&6
  7791 else
  7792   ac_check_lib_save_LIBS=$LIBS
  7793 LIBS="-lGL  $LIBS"
  7794 cat >conftest.$ac_ext <<_ACEOF
  7795 /* confdefs.h.  */
  7796 _ACEOF
  7797 cat confdefs.h >>conftest.$ac_ext
  7798 cat >>conftest.$ac_ext <<_ACEOF
  7799 /* end confdefs.h.  */
  7801 /* Override any GCC internal prototype to avoid an error.
  7802    Use char because int might match the return type of a GCC
  7803    builtin and then its argument prototype would still apply.  */
  7804 #ifdef __cplusplus
  7805 extern "C"
  7806 #endif
  7807 char glVertex3f ();
  7808 int
  7809 main ()
  7811 return glVertex3f ();
  7813   return 0;
  7815 _ACEOF
  7816 rm -f conftest.$ac_objext conftest$ac_exeext
  7817 if { (ac_try="$ac_link"
  7818 case "(($ac_try" in
  7819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7820   *) ac_try_echo=$ac_try;;
  7821 esac
  7822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7823 $as_echo "$ac_try_echo") >&5
  7824   (eval "$ac_link") 2>conftest.er1
  7825   ac_status=$?
  7826   grep -v '^ *+' conftest.er1 >conftest.err
  7827   rm -f conftest.er1
  7828   cat conftest.err >&5
  7829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7830   (exit $ac_status); } && {
  7831 	 test -z "$ac_c_werror_flag" ||
  7832 	 test ! -s conftest.err
  7833        } && test -s conftest$ac_exeext && {
  7834 	 test "$cross_compiling" = yes ||
  7835 	 $as_test_x conftest$ac_exeext
  7836        }; then
  7837   ac_cv_lib_GL_glVertex3f=yes
  7838 else
  7839   $as_echo "$as_me: failed program was:" >&5
  7840 sed 's/^/| /' conftest.$ac_ext >&5
  7842 	ac_cv_lib_GL_glVertex3f=no
  7843 fi
  7845 rm -rf conftest.dSYM
  7846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7847       conftest$ac_exeext conftest.$ac_ext
  7848 LIBS=$ac_check_lib_save_LIBS
  7849 fi
  7850 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
  7851 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
  7852 if test $ac_cv_lib_GL_glVertex3f = yes; then
  7853   cat >>confdefs.h <<_ACEOF
  7854 #define HAVE_LIBGL 1
  7855 _ACEOF
  7857   LIBS="-lGL $LIBS"
  7859 else
  7861           { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  7862 See \`config.log' for more details." >&5
  7863 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  7864 See \`config.log' for more details." >&2;}
  7865    { (exit 1); exit 1; }; }
  7866 fi
  7868       if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7869   { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  7870 $as_echo_n "checking for GL/gl.h... " >&6; }
  7871 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7872   $as_echo_n "(cached) " >&6
  7873 fi
  7874 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  7875 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  7876 else
  7877   # Is the header compilable?
  7878 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  7879 $as_echo_n "checking GL/gl.h usability... " >&6; }
  7880 cat >conftest.$ac_ext <<_ACEOF
  7881 /* confdefs.h.  */
  7882 _ACEOF
  7883 cat confdefs.h >>conftest.$ac_ext
  7884 cat >>conftest.$ac_ext <<_ACEOF
  7885 /* end confdefs.h.  */
  7886 $ac_includes_default
  7887 #include <GL/gl.h>
  7888 _ACEOF
  7889 rm -f conftest.$ac_objext
  7890 if { (ac_try="$ac_compile"
  7891 case "(($ac_try" in
  7892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7893   *) ac_try_echo=$ac_try;;
  7894 esac
  7895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7896 $as_echo "$ac_try_echo") >&5
  7897   (eval "$ac_compile") 2>conftest.er1
  7898   ac_status=$?
  7899   grep -v '^ *+' conftest.er1 >conftest.err
  7900   rm -f conftest.er1
  7901   cat conftest.err >&5
  7902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7903   (exit $ac_status); } && {
  7904 	 test -z "$ac_c_werror_flag" ||
  7905 	 test ! -s conftest.err
  7906        } && test -s conftest.$ac_objext; then
  7907   ac_header_compiler=yes
  7908 else
  7909   $as_echo "$as_me: failed program was:" >&5
  7910 sed 's/^/| /' conftest.$ac_ext >&5
  7912 	ac_header_compiler=no
  7913 fi
  7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7916 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7917 $as_echo "$ac_header_compiler" >&6; }
  7919 # Is the header present?
  7920 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  7921 $as_echo_n "checking GL/gl.h presence... " >&6; }
  7922 cat >conftest.$ac_ext <<_ACEOF
  7923 /* confdefs.h.  */
  7924 _ACEOF
  7925 cat confdefs.h >>conftest.$ac_ext
  7926 cat >>conftest.$ac_ext <<_ACEOF
  7927 /* end confdefs.h.  */
  7928 #include <GL/gl.h>
  7929 _ACEOF
  7930 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7931 case "(($ac_try" in
  7932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7933   *) ac_try_echo=$ac_try;;
  7934 esac
  7935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7936 $as_echo "$ac_try_echo") >&5
  7937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7938   ac_status=$?
  7939   grep -v '^ *+' conftest.er1 >conftest.err
  7940   rm -f conftest.er1
  7941   cat conftest.err >&5
  7942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7943   (exit $ac_status); } >/dev/null && {
  7944 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7945 	 test ! -s conftest.err
  7946        }; then
  7947   ac_header_preproc=yes
  7948 else
  7949   $as_echo "$as_me: failed program was:" >&5
  7950 sed 's/^/| /' conftest.$ac_ext >&5
  7952   ac_header_preproc=no
  7953 fi
  7955 rm -f conftest.err conftest.$ac_ext
  7956 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7957 $as_echo "$ac_header_preproc" >&6; }
  7959 # So?  What about this header?
  7960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7961   yes:no: )
  7962     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7963 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7964     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  7965 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  7966     ac_header_preproc=yes
  7967     ;;
  7968   no:yes:* )
  7969     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  7970 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  7971     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  7972 $as_echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  7973     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  7974 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  7975     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  7976 $as_echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7977     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  7978 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  7979     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  7980 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  7982     ;;
  7983 esac
  7984 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  7985 $as_echo_n "checking for GL/gl.h... " >&6; }
  7986 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7987   $as_echo_n "(cached) " >&6
  7988 else
  7989   ac_cv_header_GL_gl_h=$ac_header_preproc
  7990 fi
  7991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  7992 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  7994 fi
  7995 if test $ac_cv_header_GL_gl_h = yes; then
  7997 else
  7999           { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  8000 See \`config.log' for more details." >&5
  8001 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  8002 See \`config.log' for more details." >&2;}
  8003    { (exit 1); exit 1; }; }
  8004 fi
  8007    else
  8008       { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
  8009 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
  8010 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
  8011   $as_echo_n "(cached) " >&6
  8012 else
  8013   cat >conftest.$ac_ext <<_ACEOF
  8014 /* confdefs.h.  */
  8015 _ACEOF
  8016 cat confdefs.h >>conftest.$ac_ext
  8017 cat >>conftest.$ac_ext <<_ACEOF
  8018 /* end confdefs.h.  */
  8019 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
  8020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8021 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
  8023 /* System header to define __stub macros and hopefully few prototypes,
  8024     which can conflict with char NSOpenGLGetVersion (); below.
  8025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8026     <limits.h> exists even on freestanding compilers.  */
  8028 #ifdef __STDC__
  8029 # include <limits.h>
  8030 #else
  8031 # include <assert.h>
  8032 #endif
  8034 #undef NSOpenGLGetVersion
  8036 /* Override any GCC internal prototype to avoid an error.
  8037    Use char because int might match the return type of a GCC
  8038    builtin and then its argument prototype would still apply.  */
  8039 #ifdef __cplusplus
  8040 extern "C"
  8041 #endif
  8042 char NSOpenGLGetVersion ();
  8043 /* The GNU C library defines this for functions which it implements
  8044     to always fail with ENOSYS.  Some functions are actually named
  8045     something starting with __ and the normal name is an alias.  */
  8046 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
  8047 choke me
  8048 #endif
  8050 int
  8051 main ()
  8053 return NSOpenGLGetVersion ();
  8055   return 0;
  8057 _ACEOF
  8058 rm -f conftest.$ac_objext conftest$ac_exeext
  8059 if { (ac_try="$ac_link"
  8060 case "(($ac_try" in
  8061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8062   *) ac_try_echo=$ac_try;;
  8063 esac
  8064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8065 $as_echo "$ac_try_echo") >&5
  8066   (eval "$ac_link") 2>conftest.er1
  8067   ac_status=$?
  8068   grep -v '^ *+' conftest.er1 >conftest.err
  8069   rm -f conftest.er1
  8070   cat conftest.err >&5
  8071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8072   (exit $ac_status); } && {
  8073 	 test -z "$ac_c_werror_flag" ||
  8074 	 test ! -s conftest.err
  8075        } && test -s conftest$ac_exeext && {
  8076 	 test "$cross_compiling" = yes ||
  8077 	 $as_test_x conftest$ac_exeext
  8078        }; then
  8079   ac_cv_func_NSOpenGLGetVersion=yes
  8080 else
  8081   $as_echo "$as_me: failed program was:" >&5
  8082 sed 's/^/| /' conftest.$ac_ext >&5
  8084 	ac_cv_func_NSOpenGLGetVersion=no
  8085 fi
  8087 rm -rf conftest.dSYM
  8088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8089       conftest$ac_exeext conftest.$ac_ext
  8090 fi
  8091 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
  8092 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
  8093 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
  8095          HAVE_NSGL='yes'
  8096          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
  8098 cat >>confdefs.h <<\_ACEOF
  8099 #define HAVE_NSGL 1
  8100 _ACEOF
  8102 fi
  8104    fi
  8106    if test "x$HAVE_GTK_X11" = "xyes"; then
  8107       if test "x$APPLE_BUILD" = "xyes"; then
  8108          LIBS="$LIBS -L/usr/X11/lib -lGL"
  8109       fi
  8110       { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
  8111 $as_echo_n "checking for glXQueryVersion... " >&6; }
  8112 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
  8113   $as_echo_n "(cached) " >&6
  8114 else
  8115   cat >conftest.$ac_ext <<_ACEOF
  8116 /* confdefs.h.  */
  8117 _ACEOF
  8118 cat confdefs.h >>conftest.$ac_ext
  8119 cat >>conftest.$ac_ext <<_ACEOF
  8120 /* end confdefs.h.  */
  8121 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
  8122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8123 #define glXQueryVersion innocuous_glXQueryVersion
  8125 /* System header to define __stub macros and hopefully few prototypes,
  8126     which can conflict with char glXQueryVersion (); below.
  8127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8128     <limits.h> exists even on freestanding compilers.  */
  8130 #ifdef __STDC__
  8131 # include <limits.h>
  8132 #else
  8133 # include <assert.h>
  8134 #endif
  8136 #undef glXQueryVersion
  8138 /* Override any GCC internal prototype to avoid an error.
  8139    Use char because int might match the return type of a GCC
  8140    builtin and then its argument prototype would still apply.  */
  8141 #ifdef __cplusplus
  8142 extern "C"
  8143 #endif
  8144 char glXQueryVersion ();
  8145 /* The GNU C library defines this for functions which it implements
  8146     to always fail with ENOSYS.  Some functions are actually named
  8147     something starting with __ and the normal name is an alias.  */
  8148 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
  8149 choke me
  8150 #endif
  8152 int
  8153 main ()
  8155 return glXQueryVersion ();
  8157   return 0;
  8159 _ACEOF
  8160 rm -f conftest.$ac_objext conftest$ac_exeext
  8161 if { (ac_try="$ac_link"
  8162 case "(($ac_try" in
  8163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8164   *) ac_try_echo=$ac_try;;
  8165 esac
  8166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8167 $as_echo "$ac_try_echo") >&5
  8168   (eval "$ac_link") 2>conftest.er1
  8169   ac_status=$?
  8170   grep -v '^ *+' conftest.er1 >conftest.err
  8171   rm -f conftest.er1
  8172   cat conftest.err >&5
  8173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8174   (exit $ac_status); } && {
  8175 	 test -z "$ac_c_werror_flag" ||
  8176 	 test ! -s conftest.err
  8177        } && test -s conftest$ac_exeext && {
  8178 	 test "$cross_compiling" = yes ||
  8179 	 $as_test_x conftest$ac_exeext
  8180        }; then
  8181   ac_cv_func_glXQueryVersion=yes
  8182 else
  8183   $as_echo "$as_me: failed program was:" >&5
  8184 sed 's/^/| /' conftest.$ac_ext >&5
  8186 	ac_cv_func_glXQueryVersion=no
  8187 fi
  8189 rm -rf conftest.dSYM
  8190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8191       conftest$ac_exeext conftest.$ac_ext
  8192 fi
  8193 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
  8194 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
  8195 if test $ac_cv_func_glXQueryVersion = yes; then
  8197          HAVE_GLX='yes'
  8198          VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
  8200 cat >>confdefs.h <<\_ACEOF
  8201 #define HAVE_GLX 1
  8202 _ACEOF
  8204 fi
  8206    fi
  8209 fi
  8216 if test "x$HAVE_OSMESA" = "xyes"; then
  8217   VIDEO_OSMESA_TRUE=
  8218   VIDEO_OSMESA_FALSE='#'
  8219 else
  8220   VIDEO_OSMESA_TRUE='#'
  8221   VIDEO_OSMESA_FALSE=
  8222 fi
  8226 if test "x$HAVE_GLX" = "xyes"; then
  8227   VIDEO_GLX_TRUE=
  8228   VIDEO_GLX_FALSE='#'
  8229 else
  8230   VIDEO_GLX_TRUE='#'
  8231   VIDEO_GLX_FALSE=
  8232 fi
  8236 if test "x$HAVE_NSGL" = "xyes"; then
  8237   VIDEO_NSGL_TRUE=
  8238   VIDEO_NSGL_FALSE='#'
  8239 else
  8240   VIDEO_NSGL_TRUE='#'
  8241   VIDEO_NSGL_FALSE=
  8242 fi
  8245 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
  8246 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
  8247 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
  8248   $as_echo_n "(cached) " >&6
  8249 else
  8250   cat >conftest.$ac_ext <<_ACEOF
  8251 /* confdefs.h.  */
  8252 _ACEOF
  8253 cat confdefs.h >>conftest.$ac_ext
  8254 cat >>conftest.$ac_ext <<_ACEOF
  8255 /* end confdefs.h.  */
  8256 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
  8257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8258 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
  8260 /* System header to define __stub macros and hopefully few prototypes,
  8261     which can conflict with char glGenFramebuffersEXT (); below.
  8262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8263     <limits.h> exists even on freestanding compilers.  */
  8265 #ifdef __STDC__
  8266 # include <limits.h>
  8267 #else
  8268 # include <assert.h>
  8269 #endif
  8271 #undef glGenFramebuffersEXT
  8273 /* Override any GCC internal prototype to avoid an error.
  8274    Use char because int might match the return type of a GCC
  8275    builtin and then its argument prototype would still apply.  */
  8276 #ifdef __cplusplus
  8277 extern "C"
  8278 #endif
  8279 char glGenFramebuffersEXT ();
  8280 /* The GNU C library defines this for functions which it implements
  8281     to always fail with ENOSYS.  Some functions are actually named
  8282     something starting with __ and the normal name is an alias.  */
  8283 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
  8284 choke me
  8285 #endif
  8287 int
  8288 main ()
  8290 return glGenFramebuffersEXT ();
  8292   return 0;
  8294 _ACEOF
  8295 rm -f conftest.$ac_objext conftest$ac_exeext
  8296 if { (ac_try="$ac_link"
  8297 case "(($ac_try" in
  8298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8299   *) ac_try_echo=$ac_try;;
  8300 esac
  8301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8302 $as_echo "$ac_try_echo") >&5
  8303   (eval "$ac_link") 2>conftest.er1
  8304   ac_status=$?
  8305   grep -v '^ *+' conftest.er1 >conftest.err
  8306   rm -f conftest.er1
  8307   cat conftest.err >&5
  8308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8309   (exit $ac_status); } && {
  8310 	 test -z "$ac_c_werror_flag" ||
  8311 	 test ! -s conftest.err
  8312        } && test -s conftest$ac_exeext && {
  8313 	 test "$cross_compiling" = yes ||
  8314 	 $as_test_x conftest$ac_exeext
  8315        }; then
  8316   ac_cv_func_glGenFramebuffersEXT=yes
  8317 else
  8318   $as_echo "$as_me: failed program was:" >&5
  8319 sed 's/^/| /' conftest.$ac_ext >&5
  8321 	ac_cv_func_glGenFramebuffersEXT=no
  8322 fi
  8324 rm -rf conftest.dSYM
  8325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8326       conftest$ac_exeext conftest.$ac_ext
  8327 fi
  8328 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
  8329 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
  8330 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
  8332 cat >>confdefs.h <<\_ACEOF
  8333 #define HAVE_OPENGL_FBO 1
  8334 _ACEOF
  8336 fi
  8338 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
  8339 $as_echo_n "checking for glCreateShader... " >&6; }
  8340 if test "${ac_cv_func_glCreateShader+set}" = set; then
  8341   $as_echo_n "(cached) " >&6
  8342 else
  8343   cat >conftest.$ac_ext <<_ACEOF
  8344 /* confdefs.h.  */
  8345 _ACEOF
  8346 cat confdefs.h >>conftest.$ac_ext
  8347 cat >>conftest.$ac_ext <<_ACEOF
  8348 /* end confdefs.h.  */
  8349 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
  8350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8351 #define glCreateShader innocuous_glCreateShader
  8353 /* System header to define __stub macros and hopefully few prototypes,
  8354     which can conflict with char glCreateShader (); below.
  8355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8356     <limits.h> exists even on freestanding compilers.  */
  8358 #ifdef __STDC__
  8359 # include <limits.h>
  8360 #else
  8361 # include <assert.h>
  8362 #endif
  8364 #undef glCreateShader
  8366 /* Override any GCC internal prototype to avoid an error.
  8367    Use char because int might match the return type of a GCC
  8368    builtin and then its argument prototype would still apply.  */
  8369 #ifdef __cplusplus
  8370 extern "C"
  8371 #endif
  8372 char glCreateShader ();
  8373 /* The GNU C library defines this for functions which it implements
  8374     to always fail with ENOSYS.  Some functions are actually named
  8375     something starting with __ and the normal name is an alias.  */
  8376 #if defined __stub_glCreateShader || defined __stub___glCreateShader
  8377 choke me
  8378 #endif
  8380 int
  8381 main ()
  8383 return glCreateShader ();
  8385   return 0;
  8387 _ACEOF
  8388 rm -f conftest.$ac_objext conftest$ac_exeext
  8389 if { (ac_try="$ac_link"
  8390 case "(($ac_try" in
  8391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8392   *) ac_try_echo=$ac_try;;
  8393 esac
  8394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8395 $as_echo "$ac_try_echo") >&5
  8396   (eval "$ac_link") 2>conftest.er1
  8397   ac_status=$?
  8398   grep -v '^ *+' conftest.er1 >conftest.err
  8399   rm -f conftest.er1
  8400   cat conftest.err >&5
  8401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8402   (exit $ac_status); } && {
  8403 	 test -z "$ac_c_werror_flag" ||
  8404 	 test ! -s conftest.err
  8405        } && test -s conftest$ac_exeext && {
  8406 	 test "$cross_compiling" = yes ||
  8407 	 $as_test_x conftest$ac_exeext
  8408        }; then
  8409   ac_cv_func_glCreateShader=yes
  8410 else
  8411   $as_echo "$as_me: failed program was:" >&5
  8412 sed 's/^/| /' conftest.$ac_ext >&5
  8414 	ac_cv_func_glCreateShader=no
  8415 fi
  8417 rm -rf conftest.dSYM
  8418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8419       conftest$ac_exeext conftest.$ac_ext
  8420 fi
  8421 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
  8422 $as_echo "$ac_cv_func_glCreateShader" >&6; }
  8423 if test $ac_cv_func_glCreateShader = yes; then
  8425 cat >>confdefs.h <<\_ACEOF
  8426 #define HAVE_OPENGL_SHADER 1
  8427 _ACEOF
  8429 fi
  8431 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
  8432 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
  8433 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
  8434   $as_echo_n "(cached) " >&6
  8435 else
  8436   cat >conftest.$ac_ext <<_ACEOF
  8437 /* confdefs.h.  */
  8438 _ACEOF
  8439 cat confdefs.h >>conftest.$ac_ext
  8440 cat >>conftest.$ac_ext <<_ACEOF
  8441 /* end confdefs.h.  */
  8442 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
  8443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8444 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
  8446 /* System header to define __stub macros and hopefully few prototypes,
  8447     which can conflict with char glCreateShaderObjectARB (); below.
  8448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8449     <limits.h> exists even on freestanding compilers.  */
  8451 #ifdef __STDC__
  8452 # include <limits.h>
  8453 #else
  8454 # include <assert.h>
  8455 #endif
  8457 #undef glCreateShaderObjectARB
  8459 /* Override any GCC internal prototype to avoid an error.
  8460    Use char because int might match the return type of a GCC
  8461    builtin and then its argument prototype would still apply.  */
  8462 #ifdef __cplusplus
  8463 extern "C"
  8464 #endif
  8465 char glCreateShaderObjectARB ();
  8466 /* The GNU C library defines this for functions which it implements
  8467     to always fail with ENOSYS.  Some functions are actually named
  8468     something starting with __ and the normal name is an alias.  */
  8469 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
  8470 choke me
  8471 #endif
  8473 int
  8474 main ()
  8476 return glCreateShaderObjectARB ();
  8478   return 0;
  8480 _ACEOF
  8481 rm -f conftest.$ac_objext conftest$ac_exeext
  8482 if { (ac_try="$ac_link"
  8483 case "(($ac_try" in
  8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8485   *) ac_try_echo=$ac_try;;
  8486 esac
  8487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8488 $as_echo "$ac_try_echo") >&5
  8489   (eval "$ac_link") 2>conftest.er1
  8490   ac_status=$?
  8491   grep -v '^ *+' conftest.er1 >conftest.err
  8492   rm -f conftest.er1
  8493   cat conftest.err >&5
  8494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8495   (exit $ac_status); } && {
  8496 	 test -z "$ac_c_werror_flag" ||
  8497 	 test ! -s conftest.err
  8498        } && test -s conftest$ac_exeext && {
  8499 	 test "$cross_compiling" = yes ||
  8500 	 $as_test_x conftest$ac_exeext
  8501        }; then
  8502   ac_cv_func_glCreateShaderObjectARB=yes
  8503 else
  8504   $as_echo "$as_me: failed program was:" >&5
  8505 sed 's/^/| /' conftest.$ac_ext >&5
  8507 	ac_cv_func_glCreateShaderObjectARB=no
  8508 fi
  8510 rm -rf conftest.dSYM
  8511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8512       conftest$ac_exeext conftest.$ac_ext
  8513 fi
  8514 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
  8515 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
  8516 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
  8518 cat >>confdefs.h <<\_ACEOF
  8519 #define HAVE_OPENGL_SHADER_ARB 1
  8520 _ACEOF
  8522 fi
  8524 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
  8525 $as_echo_n "checking for glClampColorARB... " >&6; }
  8526 if test "${ac_cv_func_glClampColorARB+set}" = set; then
  8527   $as_echo_n "(cached) " >&6
  8528 else
  8529   cat >conftest.$ac_ext <<_ACEOF
  8530 /* confdefs.h.  */
  8531 _ACEOF
  8532 cat confdefs.h >>conftest.$ac_ext
  8533 cat >>conftest.$ac_ext <<_ACEOF
  8534 /* end confdefs.h.  */
  8535 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
  8536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8537 #define glClampColorARB innocuous_glClampColorARB
  8539 /* System header to define __stub macros and hopefully few prototypes,
  8540     which can conflict with char glClampColorARB (); below.
  8541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8542     <limits.h> exists even on freestanding compilers.  */
  8544 #ifdef __STDC__
  8545 # include <limits.h>
  8546 #else
  8547 # include <assert.h>
  8548 #endif
  8550 #undef glClampColorARB
  8552 /* Override any GCC internal prototype to avoid an error.
  8553    Use char because int might match the return type of a GCC
  8554    builtin and then its argument prototype would still apply.  */
  8555 #ifdef __cplusplus
  8556 extern "C"
  8557 #endif
  8558 char glClampColorARB ();
  8559 /* The GNU C library defines this for functions which it implements
  8560     to always fail with ENOSYS.  Some functions are actually named
  8561     something starting with __ and the normal name is an alias.  */
  8562 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
  8563 choke me
  8564 #endif
  8566 int
  8567 main ()
  8569 return glClampColorARB ();
  8571   return 0;
  8573 _ACEOF
  8574 rm -f conftest.$ac_objext conftest$ac_exeext
  8575 if { (ac_try="$ac_link"
  8576 case "(($ac_try" in
  8577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8578   *) ac_try_echo=$ac_try;;
  8579 esac
  8580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8581 $as_echo "$ac_try_echo") >&5
  8582   (eval "$ac_link") 2>conftest.er1
  8583   ac_status=$?
  8584   grep -v '^ *+' conftest.er1 >conftest.err
  8585   rm -f conftest.er1
  8586   cat conftest.err >&5
  8587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8588   (exit $ac_status); } && {
  8589 	 test -z "$ac_c_werror_flag" ||
  8590 	 test ! -s conftest.err
  8591        } && test -s conftest$ac_exeext && {
  8592 	 test "$cross_compiling" = yes ||
  8593 	 $as_test_x conftest$ac_exeext
  8594        }; then
  8595   ac_cv_func_glClampColorARB=yes
  8596 else
  8597   $as_echo "$as_me: failed program was:" >&5
  8598 sed 's/^/| /' conftest.$ac_ext >&5
  8600 	ac_cv_func_glClampColorARB=no
  8601 fi
  8603 rm -rf conftest.dSYM
  8604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8605       conftest$ac_exeext conftest.$ac_ext
  8606 fi
  8607 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
  8608 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
  8609 if test $ac_cv_func_glClampColorARB = yes; then
  8611 cat >>confdefs.h <<\_ACEOF
  8612 #define HAVE_OPENGL_CLAMP_COLOR 1
  8613 _ACEOF
  8615 fi
  8619 case $host_cpu in
  8620     i386|i486|i586|i686|x86_64)
  8621 	SH4_TRANSLATOR="x86"
  8623 cat >>confdefs.h <<_ACEOF
  8624 #define SH4_TRANSLATOR TARGET_X86
  8625 _ACEOF
  8626 ;;
  8627 esac
  8630 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
  8631   BUILD_SH4X86_TRUE=
  8632   BUILD_SH4X86_FALSE='#'
  8633 else
  8634   BUILD_SH4X86_TRUE='#'
  8635   BUILD_SH4X86_FALSE=
  8636 fi
  8640 if test "$SH4_TRANSLATOR" = "x86_64"; then
  8641   BUILD_X86_64_TRUE=
  8642   BUILD_X86_64_FALSE='#'
  8643 else
  8644   BUILD_X86_64_TRUE='#'
  8645   BUILD_X86_64_FALSE=
  8646 fi
  8649 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  8650   { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  8651 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
  8652 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  8653   $as_echo_n "(cached) " >&6
  8654 fi
  8655 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  8656 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
  8657 else
  8658   # Is the header compilable?
  8659 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
  8660 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
  8661 cat >conftest.$ac_ext <<_ACEOF
  8662 /* confdefs.h.  */
  8663 _ACEOF
  8664 cat confdefs.h >>conftest.$ac_ext
  8665 cat >>conftest.$ac_ext <<_ACEOF
  8666 /* end confdefs.h.  */
  8667 $ac_includes_default
  8668 #include <CoreAudio/CoreAudio.h>
  8669 _ACEOF
  8670 rm -f conftest.$ac_objext
  8671 if { (ac_try="$ac_compile"
  8672 case "(($ac_try" in
  8673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8674   *) ac_try_echo=$ac_try;;
  8675 esac
  8676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8677 $as_echo "$ac_try_echo") >&5
  8678   (eval "$ac_compile") 2>conftest.er1
  8679   ac_status=$?
  8680   grep -v '^ *+' conftest.er1 >conftest.err
  8681   rm -f conftest.er1
  8682   cat conftest.err >&5
  8683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8684   (exit $ac_status); } && {
  8685 	 test -z "$ac_c_werror_flag" ||
  8686 	 test ! -s conftest.err
  8687        } && test -s conftest.$ac_objext; then
  8688   ac_header_compiler=yes
  8689 else
  8690   $as_echo "$as_me: failed program was:" >&5
  8691 sed 's/^/| /' conftest.$ac_ext >&5
  8693 	ac_header_compiler=no
  8694 fi
  8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8697 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8698 $as_echo "$ac_header_compiler" >&6; }
  8700 # Is the header present?
  8701 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
  8702 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
  8703 cat >conftest.$ac_ext <<_ACEOF
  8704 /* confdefs.h.  */
  8705 _ACEOF
  8706 cat confdefs.h >>conftest.$ac_ext
  8707 cat >>conftest.$ac_ext <<_ACEOF
  8708 /* end confdefs.h.  */
  8709 #include <CoreAudio/CoreAudio.h>
  8710 _ACEOF
  8711 if { (ac_try="$ac_cpp conftest.$ac_ext"
  8712 case "(($ac_try" in
  8713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8714   *) ac_try_echo=$ac_try;;
  8715 esac
  8716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8717 $as_echo "$ac_try_echo") >&5
  8718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8719   ac_status=$?
  8720   grep -v '^ *+' conftest.er1 >conftest.err
  8721   rm -f conftest.er1
  8722   cat conftest.err >&5
  8723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8724   (exit $ac_status); } >/dev/null && {
  8725 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8726 	 test ! -s conftest.err
  8727        }; then
  8728   ac_header_preproc=yes
  8729 else
  8730   $as_echo "$as_me: failed program was:" >&5
  8731 sed 's/^/| /' conftest.$ac_ext >&5
  8733   ac_header_preproc=no
  8734 fi
  8736 rm -f conftest.err conftest.$ac_ext
  8737 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8738 $as_echo "$ac_header_preproc" >&6; }
  8740 # So?  What about this header?
  8741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8742   yes:no: )
  8743     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8744 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8745     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
  8746 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
  8747     ac_header_preproc=yes
  8748     ;;
  8749   no:yes:* )
  8750     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
  8751 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
  8752     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
  8753 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
  8754     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
  8755 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
  8756     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
  8757 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  8758     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
  8759 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
  8760     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
  8761 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
  8763     ;;
  8764 esac
  8765 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  8766 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
  8767 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  8768   $as_echo_n "(cached) " >&6
  8769 else
  8770   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
  8771 fi
  8772 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  8773 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
  8775 fi
  8776 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
  8778      HAVE_CORE_AUDIO=yes
  8779      LIBS="$LIBS -framework CoreAudio"
  8780      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
  8782 cat >>confdefs.h <<\_ACEOF
  8783 #define HAVE_CORE_AUDIO 1
  8784 _ACEOF
  8786 else
  8787   true
  8788 fi
  8793 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
  8794   AUDIO_OSX_TRUE=
  8795   AUDIO_OSX_FALSE='#'
  8796 else
  8797   AUDIO_OSX_TRUE='#'
  8798   AUDIO_OSX_FALSE=
  8799 fi
  8803 pkg_failed=no
  8804 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
  8805 $as_echo_n "checking for PULSE... " >&6; }
  8807 if test -n "$PKG_CONFIG"; then
  8808     if test -n "$PULSE_CFLAGS"; then
  8809         pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
  8810     else
  8811         if test -n "$PKG_CONFIG" && \
  8812     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  8813   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  8814   ac_status=$?
  8815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8816   (exit $ac_status); }; then
  8817   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
  8818 else
  8819   pkg_failed=yes
  8820 fi
  8821     fi
  8822 else
  8823 	pkg_failed=untried
  8824 fi
  8825 if test -n "$PKG_CONFIG"; then
  8826     if test -n "$PULSE_LIBS"; then
  8827         pkg_cv_PULSE_LIBS="$PULSE_LIBS"
  8828     else
  8829         if test -n "$PKG_CONFIG" && \
  8830     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  8831   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  8832   ac_status=$?
  8833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8834   (exit $ac_status); }; then
  8835   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
  8836 else
  8837   pkg_failed=yes
  8838 fi
  8839     fi
  8840 else
  8841 	pkg_failed=untried
  8842 fi
  8846 if test $pkg_failed = yes; then
  8848 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8849         _pkg_short_errors_supported=yes
  8850 else
  8851         _pkg_short_errors_supported=no
  8852 fi
  8853         if test $_pkg_short_errors_supported = yes; then
  8854 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
  8855         else
  8856 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
  8857         fi
  8858 	# Put the nasty error message in config.log where it belongs
  8859 	echo "$PULSE_PKG_ERRORS" >&5
  8861 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  8862 $as_echo "no" >&6; }
  8863                 true
  8864 elif test $pkg_failed = untried; then
  8865 	true
  8866 else
  8867 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
  8868 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
  8869         { $as_echo "$as_me:$LINENO: result: yes" >&5
  8870 $as_echo "yes" >&6; }
  8872      HAVE_PULSE='yes'
  8873      AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
  8875 cat >>confdefs.h <<\_ACEOF
  8876 #define HAVE_PULSE 1
  8877 _ACEOF
  8879 fi
  8882 if test "$HAVE_PULSE" = 'yes' ; then
  8883   AUDIO_PULSE_TRUE=
  8884   AUDIO_PULSE_FALSE='#'
  8885 else
  8886   AUDIO_PULSE_TRUE='#'
  8887   AUDIO_PULSE_FALSE=
  8888 fi
  8892 pkg_failed=no
  8893 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
  8894 $as_echo_n "checking for ESOUND... " >&6; }
  8896 if test -n "$PKG_CONFIG"; then
  8897     if test -n "$ESOUND_CFLAGS"; then
  8898         pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
  8899     else
  8900         if test -n "$PKG_CONFIG" && \
  8901     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  8902   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  8903   ac_status=$?
  8904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8905   (exit $ac_status); }; then
  8906   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  8907 else
  8908   pkg_failed=yes
  8909 fi
  8910     fi
  8911 else
  8912 	pkg_failed=untried
  8913 fi
  8914 if test -n "$PKG_CONFIG"; then
  8915     if test -n "$ESOUND_LIBS"; then
  8916         pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
  8917     else
  8918         if test -n "$PKG_CONFIG" && \
  8919     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  8920   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  8921   ac_status=$?
  8922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8923   (exit $ac_status); }; then
  8924   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  8925 else
  8926   pkg_failed=yes
  8927 fi
  8928     fi
  8929 else
  8930 	pkg_failed=untried
  8931 fi
  8935 if test $pkg_failed = yes; then
  8937 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8938         _pkg_short_errors_supported=yes
  8939 else
  8940         _pkg_short_errors_supported=no
  8941 fi
  8942         if test $_pkg_short_errors_supported = yes; then
  8943 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
  8944         else
  8945 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
  8946         fi
  8947 	# Put the nasty error message in config.log where it belongs
  8948 	echo "$ESOUND_PKG_ERRORS" >&5
  8950 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  8951 $as_echo "no" >&6; }
  8952                 true
  8953 elif test $pkg_failed = untried; then
  8954 	true
  8955 else
  8956 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
  8957 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
  8958         { $as_echo "$as_me:$LINENO: result: yes" >&5
  8959 $as_echo "yes" >&6; }
  8961      HAVE_ESOUND='yes'
  8962      AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
  8964 cat >>confdefs.h <<\_ACEOF
  8965 #define HAVE_ESOUND 1
  8966 _ACEOF
  8968 fi
  8971 if test "$HAVE_ESOUND" = 'yes' ; then
  8972   AUDIO_ESOUND_TRUE=
  8973   AUDIO_ESOUND_FALSE='#'
  8974 else
  8975   AUDIO_ESOUND_TRUE='#'
  8976   AUDIO_ESOUND_FALSE=
  8977 fi
  8981 pkg_failed=no
  8982 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
  8983 $as_echo_n "checking for ALSA... " >&6; }
  8985 if test -n "$PKG_CONFIG"; then
  8986     if test -n "$ALSA_CFLAGS"; then
  8987         pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
  8988     else
  8989         if test -n "$PKG_CONFIG" && \
  8990     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  8991   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  8992   ac_status=$?
  8993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8994   (exit $ac_status); }; then
  8995   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
  8996 else
  8997   pkg_failed=yes
  8998 fi
  8999     fi
  9000 else
  9001 	pkg_failed=untried
  9002 fi
  9003 if test -n "$PKG_CONFIG"; then
  9004     if test -n "$ALSA_LIBS"; then
  9005         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
  9006     else
  9007         if test -n "$PKG_CONFIG" && \
  9008     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  9009   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  9010   ac_status=$?
  9011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9012   (exit $ac_status); }; then
  9013   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
  9014 else
  9015   pkg_failed=yes
  9016 fi
  9017     fi
  9018 else
  9019 	pkg_failed=untried
  9020 fi
  9024 if test $pkg_failed = yes; then
  9026 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9027         _pkg_short_errors_supported=yes
  9028 else
  9029         _pkg_short_errors_supported=no
  9030 fi
  9031         if test $_pkg_short_errors_supported = yes; then
  9032 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
  9033         else
  9034 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
  9035         fi
  9036 	# Put the nasty error message in config.log where it belongs
  9037 	echo "$ALSA_PKG_ERRORS" >&5
  9039 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  9040 $as_echo "no" >&6; }
  9041                 true
  9042 elif test $pkg_failed = untried; then
  9043 	true
  9044 else
  9045 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
  9046 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
  9047         { $as_echo "$as_me:$LINENO: result: yes" >&5
  9048 $as_echo "yes" >&6; }
  9050      HAVE_ALSA='yes'
  9051      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
  9053 cat >>confdefs.h <<\_ACEOF
  9054 #define HAVE_ALSA 1
  9055 _ACEOF
  9057 fi
  9060 if test "$HAVE_ALSA" = 'yes' ; then
  9061   AUDIO_ALSA_TRUE=
  9062   AUDIO_ALSA_FALSE='#'
  9063 else
  9064   AUDIO_ALSA_TRUE='#'
  9065   AUDIO_ALSA_FALSE=
  9066 fi
  9070 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  9071   { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  9072 $as_echo_n "checking for linux/cdrom.h... " >&6; }
  9073 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  9074   $as_echo_n "(cached) " >&6
  9075 fi
  9076 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  9077 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
  9078 else
  9079   # Is the header compilable?
  9080 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  9081 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
  9082 cat >conftest.$ac_ext <<_ACEOF
  9083 /* confdefs.h.  */
  9084 _ACEOF
  9085 cat confdefs.h >>conftest.$ac_ext
  9086 cat >>conftest.$ac_ext <<_ACEOF
  9087 /* end confdefs.h.  */
  9088 $ac_includes_default
  9089 #include <linux/cdrom.h>
  9090 _ACEOF
  9091 rm -f conftest.$ac_objext
  9092 if { (ac_try="$ac_compile"
  9093 case "(($ac_try" in
  9094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9095   *) ac_try_echo=$ac_try;;
  9096 esac
  9097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9098 $as_echo "$ac_try_echo") >&5
  9099   (eval "$ac_compile") 2>conftest.er1
  9100   ac_status=$?
  9101   grep -v '^ *+' conftest.er1 >conftest.err
  9102   rm -f conftest.er1
  9103   cat conftest.err >&5
  9104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9105   (exit $ac_status); } && {
  9106 	 test -z "$ac_c_werror_flag" ||
  9107 	 test ! -s conftest.err
  9108        } && test -s conftest.$ac_objext; then
  9109   ac_header_compiler=yes
  9110 else
  9111   $as_echo "$as_me: failed program was:" >&5
  9112 sed 's/^/| /' conftest.$ac_ext >&5
  9114 	ac_header_compiler=no
  9115 fi
  9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9118 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9119 $as_echo "$ac_header_compiler" >&6; }
  9121 # Is the header present?
  9122 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  9123 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
  9124 cat >conftest.$ac_ext <<_ACEOF
  9125 /* confdefs.h.  */
  9126 _ACEOF
  9127 cat confdefs.h >>conftest.$ac_ext
  9128 cat >>conftest.$ac_ext <<_ACEOF
  9129 /* end confdefs.h.  */
  9130 #include <linux/cdrom.h>
  9131 _ACEOF
  9132 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9133 case "(($ac_try" in
  9134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9135   *) ac_try_echo=$ac_try;;
  9136 esac
  9137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9138 $as_echo "$ac_try_echo") >&5
  9139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9140   ac_status=$?
  9141   grep -v '^ *+' conftest.er1 >conftest.err
  9142   rm -f conftest.er1
  9143   cat conftest.err >&5
  9144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9145   (exit $ac_status); } >/dev/null && {
  9146 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9147 	 test ! -s conftest.err
  9148        }; then
  9149   ac_header_preproc=yes
  9150 else
  9151   $as_echo "$as_me: failed program was:" >&5
  9152 sed 's/^/| /' conftest.$ac_ext >&5
  9154   ac_header_preproc=no
  9155 fi
  9157 rm -f conftest.err conftest.$ac_ext
  9158 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9159 $as_echo "$ac_header_preproc" >&6; }
  9161 # So?  What about this header?
  9162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9163   yes:no: )
  9164     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9165 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9166     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
  9167 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
  9168     ac_header_preproc=yes
  9169     ;;
  9170   no:yes:* )
  9171     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
  9172 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
  9173     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
  9174 $as_echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
  9175     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
  9176 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
  9177     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
  9178 $as_echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9179     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
  9180 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
  9181     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
  9182 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
  9184     ;;
  9185 esac
  9186 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  9187 $as_echo_n "checking for linux/cdrom.h... " >&6; }
  9188 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  9189   $as_echo_n "(cached) " >&6
  9190 else
  9191   ac_cv_header_linux_cdrom_h=$ac_header_preproc
  9192 fi
  9193 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  9194 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
  9196 fi
  9197 if test $ac_cv_header_linux_cdrom_h = yes; then
  9198   HAVE_LINUX_CDROM_H=yes
  9199 else
  9201     echo "Linux CDROM support not found, building without it."
  9202 fi
  9207 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
  9208   CDROM_LINUX_TRUE=
  9209   CDROM_LINUX_FALSE='#'
  9210 else
  9211   CDROM_LINUX_TRUE='#'
  9212   CDROM_LINUX_FALSE=
  9213 fi
  9216 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  9217   { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  9218 $as_echo_n "checking for linux/joystick.h... " >&6; }
  9219 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  9220   $as_echo_n "(cached) " >&6
  9221 fi
  9222 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  9223 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
  9224 else
  9225   # Is the header compilable?
  9226 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
  9227 $as_echo_n "checking linux/joystick.h usability... " >&6; }
  9228 cat >conftest.$ac_ext <<_ACEOF
  9229 /* confdefs.h.  */
  9230 _ACEOF
  9231 cat confdefs.h >>conftest.$ac_ext
  9232 cat >>conftest.$ac_ext <<_ACEOF
  9233 /* end confdefs.h.  */
  9234 $ac_includes_default
  9235 #include <linux/joystick.h>
  9236 _ACEOF
  9237 rm -f conftest.$ac_objext
  9238 if { (ac_try="$ac_compile"
  9239 case "(($ac_try" in
  9240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9241   *) ac_try_echo=$ac_try;;
  9242 esac
  9243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9244 $as_echo "$ac_try_echo") >&5
  9245   (eval "$ac_compile") 2>conftest.er1
  9246   ac_status=$?
  9247   grep -v '^ *+' conftest.er1 >conftest.err
  9248   rm -f conftest.er1
  9249   cat conftest.err >&5
  9250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9251   (exit $ac_status); } && {
  9252 	 test -z "$ac_c_werror_flag" ||
  9253 	 test ! -s conftest.err
  9254        } && test -s conftest.$ac_objext; then
  9255   ac_header_compiler=yes
  9256 else
  9257   $as_echo "$as_me: failed program was:" >&5
  9258 sed 's/^/| /' conftest.$ac_ext >&5
  9260 	ac_header_compiler=no
  9261 fi
  9263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9264 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9265 $as_echo "$ac_header_compiler" >&6; }
  9267 # Is the header present?
  9268 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
  9269 $as_echo_n "checking linux/joystick.h presence... " >&6; }
  9270 cat >conftest.$ac_ext <<_ACEOF
  9271 /* confdefs.h.  */
  9272 _ACEOF
  9273 cat confdefs.h >>conftest.$ac_ext
  9274 cat >>conftest.$ac_ext <<_ACEOF
  9275 /* end confdefs.h.  */
  9276 #include <linux/joystick.h>
  9277 _ACEOF
  9278 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9279 case "(($ac_try" in
  9280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9281   *) ac_try_echo=$ac_try;;
  9282 esac
  9283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9284 $as_echo "$ac_try_echo") >&5
  9285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9286   ac_status=$?
  9287   grep -v '^ *+' conftest.er1 >conftest.err
  9288   rm -f conftest.er1
  9289   cat conftest.err >&5
  9290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9291   (exit $ac_status); } >/dev/null && {
  9292 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9293 	 test ! -s conftest.err
  9294        }; then
  9295   ac_header_preproc=yes
  9296 else
  9297   $as_echo "$as_me: failed program was:" >&5
  9298 sed 's/^/| /' conftest.$ac_ext >&5
  9300   ac_header_preproc=no
  9301 fi
  9303 rm -f conftest.err conftest.$ac_ext
  9304 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9305 $as_echo "$ac_header_preproc" >&6; }
  9307 # So?  What about this header?
  9308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9309   yes:no: )
  9310     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9311 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9312     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
  9313 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
  9314     ac_header_preproc=yes
  9315     ;;
  9316   no:yes:* )
  9317     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
  9318 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
  9319     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
  9320 $as_echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
  9321     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
  9322 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
  9323     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
  9324 $as_echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9325     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
  9326 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
  9327     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
  9328 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
  9330     ;;
  9331 esac
  9332 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  9333 $as_echo_n "checking for linux/joystick.h... " >&6; }
  9334 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  9335   $as_echo_n "(cached) " >&6
  9336 else
  9337   ac_cv_header_linux_joystick_h=$ac_header_preproc
  9338 fi
  9339 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  9340 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
  9342 fi
  9343 if test $ac_cv_header_linux_joystick_h = yes; then
  9345     HAVE_LINUX_JOYSTICK_H=yes
  9347 cat >>confdefs.h <<\_ACEOF
  9348 #define HAVE_LINUX_JOYSTICK 1
  9349 _ACEOF
  9351 else
  9352    echo "Linux Joystick support not found, building without it."
  9353 fi
  9358 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
  9359   JOY_LINUX_TRUE=
  9360   JOY_LINUX_FALSE='#'
  9361 else
  9362   JOY_LINUX_TRUE='#'
  9363   JOY_LINUX_FALSE=
  9364 fi
  9367 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
  9368 set dummy sh-elf-gcc; ac_word=$2
  9369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9370 $as_echo_n "checking for $ac_word... " >&6; }
  9371 if test "${ac_cv_path_SHCC+set}" = set; then
  9372   $as_echo_n "(cached) " >&6
  9373 else
  9374   case $SHCC in
  9375   [\\/]* | ?:[\\/]*)
  9376   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
  9377   ;;
  9378   *)
  9379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9380 for as_dir in $PATH
  9381 do
  9382   IFS=$as_save_IFS
  9383   test -z "$as_dir" && as_dir=.
  9384   for ac_exec_ext in '' $ac_executable_extensions; do
  9385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9386     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
  9387     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9388     break 2
  9389   fi
  9390 done
  9391 done
  9392 IFS=$as_save_IFS
  9394   ;;
  9395 esac
  9396 fi
  9397 SHCC=$ac_cv_path_SHCC
  9398 if test -n "$SHCC"; then
  9399   { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
  9400 $as_echo "$SHCC" >&6; }
  9401 else
  9402   { $as_echo "$as_me:$LINENO: result: no" >&5
  9403 $as_echo "no" >&6; }
  9404 fi
  9407 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
  9408 set dummy sh-elf-ld; ac_word=$2
  9409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9410 $as_echo_n "checking for $ac_word... " >&6; }
  9411 if test "${ac_cv_path_SHLD+set}" = set; then
  9412   $as_echo_n "(cached) " >&6
  9413 else
  9414   case $SHLD in
  9415   [\\/]* | ?:[\\/]*)
  9416   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
  9417   ;;
  9418   *)
  9419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9420 for as_dir in $PATH
  9421 do
  9422   IFS=$as_save_IFS
  9423   test -z "$as_dir" && as_dir=.
  9424   for ac_exec_ext in '' $ac_executable_extensions; do
  9425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9426     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
  9427     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9428     break 2
  9429   fi
  9430 done
  9431 done
  9432 IFS=$as_save_IFS
  9434   ;;
  9435 esac
  9436 fi
  9437 SHLD=$ac_cv_path_SHLD
  9438 if test -n "$SHLD"; then
  9439   { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
  9440 $as_echo "$SHLD" >&6; }
  9441 else
  9442   { $as_echo "$as_me:$LINENO: result: no" >&5
  9443 $as_echo "no" >&6; }
  9444 fi
  9447 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
  9448 set dummy sh-elf-objcopy; ac_word=$2
  9449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9450 $as_echo_n "checking for $ac_word... " >&6; }
  9451 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
  9452   $as_echo_n "(cached) " >&6
  9453 else
  9454   case $SHOBJCOPY in
  9455   [\\/]* | ?:[\\/]*)
  9456   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
  9457   ;;
  9458   *)
  9459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9460 for as_dir in $PATH
  9461 do
  9462   IFS=$as_save_IFS
  9463   test -z "$as_dir" && as_dir=.
  9464   for ac_exec_ext in '' $ac_executable_extensions; do
  9465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9466     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  9467     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9468     break 2
  9469   fi
  9470 done
  9471 done
  9472 IFS=$as_save_IFS
  9474   ;;
  9475 esac
  9476 fi
  9477 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
  9478 if test -n "$SHOBJCOPY"; then
  9479   { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
  9480 $as_echo "$SHOBJCOPY" >&6; }
  9481 else
  9482   { $as_echo "$as_me:$LINENO: result: no" >&5
  9483 $as_echo "no" >&6; }
  9484 fi
  9487 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
  9488 set dummy arm-elf-gcc; ac_word=$2
  9489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9490 $as_echo_n "checking for $ac_word... " >&6; }
  9491 if test "${ac_cv_path_ARMCC+set}" = set; then
  9492   $as_echo_n "(cached) " >&6
  9493 else
  9494   case $ARMCC in
  9495   [\\/]* | ?:[\\/]*)
  9496   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
  9497   ;;
  9498   *)
  9499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9500 for as_dir in $PATH
  9501 do
  9502   IFS=$as_save_IFS
  9503   test -z "$as_dir" && as_dir=.
  9504   for ac_exec_ext in '' $ac_executable_extensions; do
  9505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9506     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
  9507     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9508     break 2
  9509   fi
  9510 done
  9511 done
  9512 IFS=$as_save_IFS
  9514   ;;
  9515 esac
  9516 fi
  9517 ARMCC=$ac_cv_path_ARMCC
  9518 if test -n "$ARMCC"; then
  9519   { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
  9520 $as_echo "$ARMCC" >&6; }
  9521 else
  9522   { $as_echo "$as_me:$LINENO: result: no" >&5
  9523 $as_echo "no" >&6; }
  9524 fi
  9527 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
  9528 set dummy arm-elf-ld; ac_word=$2
  9529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9530 $as_echo_n "checking for $ac_word... " >&6; }
  9531 if test "${ac_cv_path_ARMLD+set}" = set; then
  9532   $as_echo_n "(cached) " >&6
  9533 else
  9534   case $ARMLD in
  9535   [\\/]* | ?:[\\/]*)
  9536   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
  9537   ;;
  9538   *)
  9539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9540 for as_dir in $PATH
  9541 do
  9542   IFS=$as_save_IFS
  9543   test -z "$as_dir" && as_dir=.
  9544   for ac_exec_ext in '' $ac_executable_extensions; do
  9545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9546     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
  9547     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9548     break 2
  9549   fi
  9550 done
  9551 done
  9552 IFS=$as_save_IFS
  9554   ;;
  9555 esac
  9556 fi
  9557 ARMLD=$ac_cv_path_ARMLD
  9558 if test -n "$ARMLD"; then
  9559   { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
  9560 $as_echo "$ARMLD" >&6; }
  9561 else
  9562   { $as_echo "$as_me:$LINENO: result: no" >&5
  9563 $as_echo "no" >&6; }
  9564 fi
  9567 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
  9568 set dummy arm-elf-objcopy; ac_word=$2
  9569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9570 $as_echo_n "checking for $ac_word... " >&6; }
  9571 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
  9572   $as_echo_n "(cached) " >&6
  9573 else
  9574   case $ARMOBJCOPY in
  9575   [\\/]* | ?:[\\/]*)
  9576   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
  9577   ;;
  9578   *)
  9579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9580 for as_dir in $PATH
  9581 do
  9582   IFS=$as_save_IFS
  9583   test -z "$as_dir" && as_dir=.
  9584   for ac_exec_ext in '' $ac_executable_extensions; do
  9585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9586     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  9587     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9588     break 2
  9589   fi
  9590 done
  9591 done
  9592 IFS=$as_save_IFS
  9594   ;;
  9595 esac
  9596 fi
  9597 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
  9598 if test -n "$ARMOBJCOPY"; then
  9599   { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
  9600 $as_echo "$ARMOBJCOPY" >&6; }
  9601 else
  9602   { $as_echo "$as_me:$LINENO: result: no" >&5
  9603 $as_echo "no" >&6; }
  9604 fi
  9608 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
  9609   BUILD_SH="no"
  9610   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
  9611 else
  9612   BUILD_SH="yes"
  9613 fi
  9614 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
  9615   BUILD_ARM="no"
  9616   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
  9617 else
  9618   BUILD_ARM="yes"
  9619 fi
  9622 if test "$BUILD_SH" = "yes"; then
  9623   BUILD_SYSTEST_TRUE=
  9624   BUILD_SYSTEST_FALSE='#'
  9625 else
  9626   BUILD_SYSTEST_TRUE='#'
  9627   BUILD_SYSTEST_FALSE=
  9628 fi
  9632 if test "$BUILD_ARM" = "yes"; then
  9633   BUILD_ARMTEST_TRUE=
  9634   BUILD_ARMTEST_FALSE='#'
  9635 else
  9636   BUILD_ARMTEST_TRUE='#'
  9637   BUILD_ARMTEST_FALSE=
  9638 fi
  9642 GETTEXT_PACKAGE=lxdream
  9645 cat >>confdefs.h <<_ACEOF
  9646 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  9647 _ACEOF
  9650 ALL_LINGUAS="de es it pt_BR"
  9653 for ac_header in locale.h
  9654 do
  9655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9657   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9658 $as_echo_n "checking for $ac_header... " >&6; }
  9659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9660   $as_echo_n "(cached) " >&6
  9661 fi
  9662 ac_res=`eval 'as_val=${'$as_ac_Header'}
  9663 		 $as_echo "$as_val"'`
  9664 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9665 $as_echo "$ac_res" >&6; }
  9666 else
  9667   # Is the header compilable?
  9668 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9669 $as_echo_n "checking $ac_header usability... " >&6; }
  9670 cat >conftest.$ac_ext <<_ACEOF
  9671 /* confdefs.h.  */
  9672 _ACEOF
  9673 cat confdefs.h >>conftest.$ac_ext
  9674 cat >>conftest.$ac_ext <<_ACEOF
  9675 /* end confdefs.h.  */
  9676 $ac_includes_default
  9677 #include <$ac_header>
  9678 _ACEOF
  9679 rm -f conftest.$ac_objext
  9680 if { (ac_try="$ac_compile"
  9681 case "(($ac_try" in
  9682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9683   *) ac_try_echo=$ac_try;;
  9684 esac
  9685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9686 $as_echo "$ac_try_echo") >&5
  9687   (eval "$ac_compile") 2>conftest.er1
  9688   ac_status=$?
  9689   grep -v '^ *+' conftest.er1 >conftest.err
  9690   rm -f conftest.er1
  9691   cat conftest.err >&5
  9692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9693   (exit $ac_status); } && {
  9694 	 test -z "$ac_c_werror_flag" ||
  9695 	 test ! -s conftest.err
  9696        } && test -s conftest.$ac_objext; then
  9697   ac_header_compiler=yes
  9698 else
  9699   $as_echo "$as_me: failed program was:" >&5
  9700 sed 's/^/| /' conftest.$ac_ext >&5
  9702 	ac_header_compiler=no
  9703 fi
  9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9706 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9707 $as_echo "$ac_header_compiler" >&6; }
  9709 # Is the header present?
  9710 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9711 $as_echo_n "checking $ac_header presence... " >&6; }
  9712 cat >conftest.$ac_ext <<_ACEOF
  9713 /* confdefs.h.  */
  9714 _ACEOF
  9715 cat confdefs.h >>conftest.$ac_ext
  9716 cat >>conftest.$ac_ext <<_ACEOF
  9717 /* end confdefs.h.  */
  9718 #include <$ac_header>
  9719 _ACEOF
  9720 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9721 case "(($ac_try" in
  9722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9723   *) ac_try_echo=$ac_try;;
  9724 esac
  9725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9726 $as_echo "$ac_try_echo") >&5
  9727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9728   ac_status=$?
  9729   grep -v '^ *+' conftest.er1 >conftest.err
  9730   rm -f conftest.er1
  9731   cat conftest.err >&5
  9732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9733   (exit $ac_status); } >/dev/null && {
  9734 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9735 	 test ! -s conftest.err
  9736        }; then
  9737   ac_header_preproc=yes
  9738 else
  9739   $as_echo "$as_me: failed program was:" >&5
  9740 sed 's/^/| /' conftest.$ac_ext >&5
  9742   ac_header_preproc=no
  9743 fi
  9745 rm -f conftest.err conftest.$ac_ext
  9746 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9747 $as_echo "$ac_header_preproc" >&6; }
  9749 # So?  What about this header?
  9750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9751   yes:no: )
  9752     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9753 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9754     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9755 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9756     ac_header_preproc=yes
  9757     ;;
  9758   no:yes:* )
  9759     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9760 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9761     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  9762 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  9763     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9764 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9765     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  9766 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  9767     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9768 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9769     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9770 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9772     ;;
  9773 esac
  9774 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9775 $as_echo_n "checking for $ac_header... " >&6; }
  9776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9777   $as_echo_n "(cached) " >&6
  9778 else
  9779   eval "$as_ac_Header=\$ac_header_preproc"
  9780 fi
  9781 ac_res=`eval 'as_val=${'$as_ac_Header'}
  9782 		 $as_echo "$as_val"'`
  9783 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9784 $as_echo "$ac_res" >&6; }
  9786 fi
  9787 if test `eval 'as_val=${'$as_ac_Header'}
  9788 		 $as_echo "$as_val"'` = yes; then
  9789   cat >>confdefs.h <<_ACEOF
  9790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9791 _ACEOF
  9793 fi
  9795 done
  9797     if test $ac_cv_header_locale_h = yes; then
  9798     { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  9799 $as_echo_n "checking for LC_MESSAGES... " >&6; }
  9800 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  9801   $as_echo_n "(cached) " >&6
  9802 else
  9803   cat >conftest.$ac_ext <<_ACEOF
  9804 /* confdefs.h.  */
  9805 _ACEOF
  9806 cat confdefs.h >>conftest.$ac_ext
  9807 cat >>conftest.$ac_ext <<_ACEOF
  9808 /* end confdefs.h.  */
  9809 #include <locale.h>
  9810 int
  9811 main ()
  9813 return LC_MESSAGES
  9815   return 0;
  9817 _ACEOF
  9818 rm -f conftest.$ac_objext conftest$ac_exeext
  9819 if { (ac_try="$ac_link"
  9820 case "(($ac_try" in
  9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9822   *) ac_try_echo=$ac_try;;
  9823 esac
  9824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9825 $as_echo "$ac_try_echo") >&5
  9826   (eval "$ac_link") 2>conftest.er1
  9827   ac_status=$?
  9828   grep -v '^ *+' conftest.er1 >conftest.err
  9829   rm -f conftest.er1
  9830   cat conftest.err >&5
  9831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9832   (exit $ac_status); } && {
  9833 	 test -z "$ac_c_werror_flag" ||
  9834 	 test ! -s conftest.err
  9835        } && test -s conftest$ac_exeext && {
  9836 	 test "$cross_compiling" = yes ||
  9837 	 $as_test_x conftest$ac_exeext
  9838        }; then
  9839   am_cv_val_LC_MESSAGES=yes
  9840 else
  9841   $as_echo "$as_me: failed program was:" >&5
  9842 sed 's/^/| /' conftest.$ac_ext >&5
  9844 	am_cv_val_LC_MESSAGES=no
  9845 fi
  9847 rm -rf conftest.dSYM
  9848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9849       conftest$ac_exeext conftest.$ac_ext
  9850 fi
  9851 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  9852 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  9853     if test $am_cv_val_LC_MESSAGES = yes; then
  9855 cat >>confdefs.h <<\_ACEOF
  9856 #define HAVE_LC_MESSAGES 1
  9857 _ACEOF
  9859     fi
  9860   fi
  9861          USE_NLS=yes
  9864     gt_cv_have_gettext=no
  9866     CATOBJEXT=NONE
  9867     XGETTEXT=:
  9868     INTLLIBS=
  9870     if test "${ac_cv_header_libintl_h+set}" = set; then
  9871   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
  9872 $as_echo_n "checking for libintl.h... " >&6; }
  9873 if test "${ac_cv_header_libintl_h+set}" = set; then
  9874   $as_echo_n "(cached) " >&6
  9875 fi
  9876 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  9877 $as_echo "$ac_cv_header_libintl_h" >&6; }
  9878 else
  9879   # Is the header compilable?
  9880 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
  9881 $as_echo_n "checking libintl.h usability... " >&6; }
  9882 cat >conftest.$ac_ext <<_ACEOF
  9883 /* confdefs.h.  */
  9884 _ACEOF
  9885 cat confdefs.h >>conftest.$ac_ext
  9886 cat >>conftest.$ac_ext <<_ACEOF
  9887 /* end confdefs.h.  */
  9888 $ac_includes_default
  9889 #include <libintl.h>
  9890 _ACEOF
  9891 rm -f conftest.$ac_objext
  9892 if { (ac_try="$ac_compile"
  9893 case "(($ac_try" in
  9894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9895   *) ac_try_echo=$ac_try;;
  9896 esac
  9897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9898 $as_echo "$ac_try_echo") >&5
  9899   (eval "$ac_compile") 2>conftest.er1
  9900   ac_status=$?
  9901   grep -v '^ *+' conftest.er1 >conftest.err
  9902   rm -f conftest.er1
  9903   cat conftest.err >&5
  9904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9905   (exit $ac_status); } && {
  9906 	 test -z "$ac_c_werror_flag" ||
  9907 	 test ! -s conftest.err
  9908        } && test -s conftest.$ac_objext; then
  9909   ac_header_compiler=yes
  9910 else
  9911   $as_echo "$as_me: failed program was:" >&5
  9912 sed 's/^/| /' conftest.$ac_ext >&5
  9914 	ac_header_compiler=no
  9915 fi
  9917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9918 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9919 $as_echo "$ac_header_compiler" >&6; }
  9921 # Is the header present?
  9922 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
  9923 $as_echo_n "checking libintl.h presence... " >&6; }
  9924 cat >conftest.$ac_ext <<_ACEOF
  9925 /* confdefs.h.  */
  9926 _ACEOF
  9927 cat confdefs.h >>conftest.$ac_ext
  9928 cat >>conftest.$ac_ext <<_ACEOF
  9929 /* end confdefs.h.  */
  9930 #include <libintl.h>
  9931 _ACEOF
  9932 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9933 case "(($ac_try" in
  9934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9935   *) ac_try_echo=$ac_try;;
  9936 esac
  9937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9938 $as_echo "$ac_try_echo") >&5
  9939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9940   ac_status=$?
  9941   grep -v '^ *+' conftest.er1 >conftest.err
  9942   rm -f conftest.er1
  9943   cat conftest.err >&5
  9944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9945   (exit $ac_status); } >/dev/null && {
  9946 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9947 	 test ! -s conftest.err
  9948        }; then
  9949   ac_header_preproc=yes
  9950 else
  9951   $as_echo "$as_me: failed program was:" >&5
  9952 sed 's/^/| /' conftest.$ac_ext >&5
  9954   ac_header_preproc=no
  9955 fi
  9957 rm -f conftest.err conftest.$ac_ext
  9958 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9959 $as_echo "$ac_header_preproc" >&6; }
  9961 # So?  What about this header?
  9962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9963   yes:no: )
  9964     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9965 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9966     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
  9967 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
  9968     ac_header_preproc=yes
  9969     ;;
  9970   no:yes:* )
  9971     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
  9972 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
  9973     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
  9974 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
  9975     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
  9976 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
  9977     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
  9978 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9979     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
  9980 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
  9981     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
  9982 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
  9984     ;;
  9985 esac
  9986 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
  9987 $as_echo_n "checking for libintl.h... " >&6; }
  9988 if test "${ac_cv_header_libintl_h+set}" = set; then
  9989   $as_echo_n "(cached) " >&6
  9990 else
  9991   ac_cv_header_libintl_h=$ac_header_preproc
  9992 fi
  9993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  9994 $as_echo "$ac_cv_header_libintl_h" >&6; }
  9996 fi
  9997 if test $ac_cv_header_libintl_h = yes; then
  9998   gt_cv_func_dgettext_libintl="no"
  9999       libintl_extra_libs=""
 10002       # First check in libc
 10004       { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 10005 $as_echo_n "checking for ngettext in libc... " >&6; }
 10006 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 10007   $as_echo_n "(cached) " >&6
 10008 else
 10009   cat >conftest.$ac_ext <<_ACEOF
 10010 /* confdefs.h.  */
 10011 _ACEOF
 10012 cat confdefs.h >>conftest.$ac_ext
 10013 cat >>conftest.$ac_ext <<_ACEOF
 10014 /* end confdefs.h.  */
 10016 #include <libintl.h>
 10018 int
 10019 main ()
 10021 return !ngettext ("","", 1)
 10023   return 0;
 10025 _ACEOF
 10026 rm -f conftest.$ac_objext conftest$ac_exeext
 10027 if { (ac_try="$ac_link"
 10028 case "(($ac_try" in
 10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10030   *) ac_try_echo=$ac_try;;
 10031 esac
 10032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10033 $as_echo "$ac_try_echo") >&5
 10034   (eval "$ac_link") 2>conftest.er1
 10035   ac_status=$?
 10036   grep -v '^ *+' conftest.er1 >conftest.err
 10037   rm -f conftest.er1
 10038   cat conftest.err >&5
 10039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10040   (exit $ac_status); } && {
 10041 	 test -z "$ac_c_werror_flag" ||
 10042 	 test ! -s conftest.err
 10043        } && test -s conftest$ac_exeext && {
 10044 	 test "$cross_compiling" = yes ||
 10045 	 $as_test_x conftest$ac_exeext
 10046        }; then
 10047   gt_cv_func_ngettext_libc=yes
 10048 else
 10049   $as_echo "$as_me: failed program was:" >&5
 10050 sed 's/^/| /' conftest.$ac_ext >&5
 10052 	gt_cv_func_ngettext_libc=no
 10053 fi
 10055 rm -rf conftest.dSYM
 10056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10057       conftest$ac_exeext conftest.$ac_ext
 10059 fi
 10060 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 10061 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
 10063       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 10064 	      { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 10065 $as_echo_n "checking for dgettext in libc... " >&6; }
 10066 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 10067   $as_echo_n "(cached) " >&6
 10068 else
 10069   cat >conftest.$ac_ext <<_ACEOF
 10070 /* confdefs.h.  */
 10071 _ACEOF
 10072 cat confdefs.h >>conftest.$ac_ext
 10073 cat >>conftest.$ac_ext <<_ACEOF
 10074 /* end confdefs.h.  */
 10076 #include <libintl.h>
 10078 int
 10079 main ()
 10081 return !dgettext ("","")
 10083   return 0;
 10085 _ACEOF
 10086 rm -f conftest.$ac_objext conftest$ac_exeext
 10087 if { (ac_try="$ac_link"
 10088 case "(($ac_try" in
 10089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10090   *) ac_try_echo=$ac_try;;
 10091 esac
 10092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10093 $as_echo "$ac_try_echo") >&5
 10094   (eval "$ac_link") 2>conftest.er1
 10095   ac_status=$?
 10096   grep -v '^ *+' conftest.er1 >conftest.err
 10097   rm -f conftest.er1
 10098   cat conftest.err >&5
 10099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10100   (exit $ac_status); } && {
 10101 	 test -z "$ac_c_werror_flag" ||
 10102 	 test ! -s conftest.err
 10103        } && test -s conftest$ac_exeext && {
 10104 	 test "$cross_compiling" = yes ||
 10105 	 $as_test_x conftest$ac_exeext
 10106        }; then
 10107   gt_cv_func_dgettext_libc=yes
 10108 else
 10109   $as_echo "$as_me: failed program was:" >&5
 10110 sed 's/^/| /' conftest.$ac_ext >&5
 10112 	gt_cv_func_dgettext_libc=no
 10113 fi
 10115 rm -rf conftest.dSYM
 10116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10117       conftest$ac_exeext conftest.$ac_ext
 10119 fi
 10120 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 10121 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
 10122       fi
 10124       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 10126 for ac_func in bind_textdomain_codeset
 10127 do
 10128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 10129 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 10130 $as_echo_n "checking for $ac_func... " >&6; }
 10131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 10132   $as_echo_n "(cached) " >&6
 10133 else
 10134   cat >conftest.$ac_ext <<_ACEOF
 10135 /* confdefs.h.  */
 10136 _ACEOF
 10137 cat confdefs.h >>conftest.$ac_ext
 10138 cat >>conftest.$ac_ext <<_ACEOF
 10139 /* end confdefs.h.  */
 10140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 10141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10142 #define $ac_func innocuous_$ac_func
 10144 /* System header to define __stub macros and hopefully few prototypes,
 10145     which can conflict with char $ac_func (); below.
 10146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10147     <limits.h> exists even on freestanding compilers.  */
 10149 #ifdef __STDC__
 10150 # include <limits.h>
 10151 #else
 10152 # include <assert.h>
 10153 #endif
 10155 #undef $ac_func
 10157 /* Override any GCC internal prototype to avoid an error.
 10158    Use char because int might match the return type of a GCC
 10159    builtin and then its argument prototype would still apply.  */
 10160 #ifdef __cplusplus
 10161 extern "C"
 10162 #endif
 10163 char $ac_func ();
 10164 /* The GNU C library defines this for functions which it implements
 10165     to always fail with ENOSYS.  Some functions are actually named
 10166     something starting with __ and the normal name is an alias.  */
 10167 #if defined __stub_$ac_func || defined __stub___$ac_func
 10168 choke me
 10169 #endif
 10171 int
 10172 main ()
 10174 return $ac_func ();
 10176   return 0;
 10178 _ACEOF
 10179 rm -f conftest.$ac_objext conftest$ac_exeext
 10180 if { (ac_try="$ac_link"
 10181 case "(($ac_try" in
 10182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10183   *) ac_try_echo=$ac_try;;
 10184 esac
 10185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10186 $as_echo "$ac_try_echo") >&5
 10187   (eval "$ac_link") 2>conftest.er1
 10188   ac_status=$?
 10189   grep -v '^ *+' conftest.er1 >conftest.err
 10190   rm -f conftest.er1
 10191   cat conftest.err >&5
 10192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10193   (exit $ac_status); } && {
 10194 	 test -z "$ac_c_werror_flag" ||
 10195 	 test ! -s conftest.err
 10196        } && test -s conftest$ac_exeext && {
 10197 	 test "$cross_compiling" = yes ||
 10198 	 $as_test_x conftest$ac_exeext
 10199        }; then
 10200   eval "$as_ac_var=yes"
 10201 else
 10202   $as_echo "$as_me: failed program was:" >&5
 10203 sed 's/^/| /' conftest.$ac_ext >&5
 10205 	eval "$as_ac_var=no"
 10206 fi
 10208 rm -rf conftest.dSYM
 10209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10210       conftest$ac_exeext conftest.$ac_ext
 10211 fi
 10212 ac_res=`eval 'as_val=${'$as_ac_var'}
 10213 		 $as_echo "$as_val"'`
 10214 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 10215 $as_echo "$ac_res" >&6; }
 10216 if test `eval 'as_val=${'$as_ac_var'}
 10217 		 $as_echo "$as_val"'` = yes; then
 10218   cat >>confdefs.h <<_ACEOF
 10219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 10220 _ACEOF
 10222 fi
 10223 done
 10225       fi
 10228       # If we don't have everything we want, check in libintl
 10230       if test "$gt_cv_func_dgettext_libc" != "yes" \
 10231 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 10232          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 10234         { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 10235 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
 10236 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 10237   $as_echo_n "(cached) " >&6
 10238 else
 10239   ac_check_lib_save_LIBS=$LIBS
 10240 LIBS="-lintl  $LIBS"
 10241 cat >conftest.$ac_ext <<_ACEOF
 10242 /* confdefs.h.  */
 10243 _ACEOF
 10244 cat confdefs.h >>conftest.$ac_ext
 10245 cat >>conftest.$ac_ext <<_ACEOF
 10246 /* end confdefs.h.  */
 10248 /* Override any GCC internal prototype to avoid an error.
 10249    Use char because int might match the return type of a GCC
 10250    builtin and then its argument prototype would still apply.  */
 10251 #ifdef __cplusplus
 10252 extern "C"
 10253 #endif
 10254 char bindtextdomain ();
 10255 int
 10256 main ()
 10258 return bindtextdomain ();
 10260   return 0;
 10262 _ACEOF
 10263 rm -f conftest.$ac_objext conftest$ac_exeext
 10264 if { (ac_try="$ac_link"
 10265 case "(($ac_try" in
 10266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10267   *) ac_try_echo=$ac_try;;
 10268 esac
 10269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10270 $as_echo "$ac_try_echo") >&5
 10271   (eval "$ac_link") 2>conftest.er1
 10272   ac_status=$?
 10273   grep -v '^ *+' conftest.er1 >conftest.err
 10274   rm -f conftest.er1
 10275   cat conftest.err >&5
 10276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10277   (exit $ac_status); } && {
 10278 	 test -z "$ac_c_werror_flag" ||
 10279 	 test ! -s conftest.err
 10280        } && test -s conftest$ac_exeext && {
 10281 	 test "$cross_compiling" = yes ||
 10282 	 $as_test_x conftest$ac_exeext
 10283        }; then
 10284   ac_cv_lib_intl_bindtextdomain=yes
 10285 else
 10286   $as_echo "$as_me: failed program was:" >&5
 10287 sed 's/^/| /' conftest.$ac_ext >&5
 10289 	ac_cv_lib_intl_bindtextdomain=no
 10290 fi
 10292 rm -rf conftest.dSYM
 10293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10294       conftest$ac_exeext conftest.$ac_ext
 10295 LIBS=$ac_check_lib_save_LIBS
 10296 fi
 10297 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 10298 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
 10299 if test $ac_cv_lib_intl_bindtextdomain = yes; then
 10300   { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 10301 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 10302 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 10303   $as_echo_n "(cached) " >&6
 10304 else
 10305   ac_check_lib_save_LIBS=$LIBS
 10306 LIBS="-lintl  $LIBS"
 10307 cat >conftest.$ac_ext <<_ACEOF
 10308 /* confdefs.h.  */
 10309 _ACEOF
 10310 cat confdefs.h >>conftest.$ac_ext
 10311 cat >>conftest.$ac_ext <<_ACEOF
 10312 /* end confdefs.h.  */
 10314 /* Override any GCC internal prototype to avoid an error.
 10315    Use char because int might match the return type of a GCC
 10316    builtin and then its argument prototype would still apply.  */
 10317 #ifdef __cplusplus
 10318 extern "C"
 10319 #endif
 10320 char ngettext ();
 10321 int
 10322 main ()
 10324 return ngettext ();
 10326   return 0;
 10328 _ACEOF
 10329 rm -f conftest.$ac_objext conftest$ac_exeext
 10330 if { (ac_try="$ac_link"
 10331 case "(($ac_try" in
 10332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10333   *) ac_try_echo=$ac_try;;
 10334 esac
 10335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10336 $as_echo "$ac_try_echo") >&5
 10337   (eval "$ac_link") 2>conftest.er1
 10338   ac_status=$?
 10339   grep -v '^ *+' conftest.er1 >conftest.err
 10340   rm -f conftest.er1
 10341   cat conftest.err >&5
 10342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10343   (exit $ac_status); } && {
 10344 	 test -z "$ac_c_werror_flag" ||
 10345 	 test ! -s conftest.err
 10346        } && test -s conftest$ac_exeext && {
 10347 	 test "$cross_compiling" = yes ||
 10348 	 $as_test_x conftest$ac_exeext
 10349        }; then
 10350   ac_cv_lib_intl_ngettext=yes
 10351 else
 10352   $as_echo "$as_me: failed program was:" >&5
 10353 sed 's/^/| /' conftest.$ac_ext >&5
 10355 	ac_cv_lib_intl_ngettext=no
 10356 fi
 10358 rm -rf conftest.dSYM
 10359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10360       conftest$ac_exeext conftest.$ac_ext
 10361 LIBS=$ac_check_lib_save_LIBS
 10362 fi
 10363 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 10364 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 10365 if test $ac_cv_lib_intl_ngettext = yes; then
 10366   { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 10367 $as_echo_n "checking for dgettext in -lintl... " >&6; }
 10368 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 10369   $as_echo_n "(cached) " >&6
 10370 else
 10371   ac_check_lib_save_LIBS=$LIBS
 10372 LIBS="-lintl  $LIBS"
 10373 cat >conftest.$ac_ext <<_ACEOF
 10374 /* confdefs.h.  */
 10375 _ACEOF
 10376 cat confdefs.h >>conftest.$ac_ext
 10377 cat >>conftest.$ac_ext <<_ACEOF
 10378 /* end confdefs.h.  */
 10380 /* Override any GCC internal prototype to avoid an error.
 10381    Use char because int might match the return type of a GCC
 10382    builtin and then its argument prototype would still apply.  */
 10383 #ifdef __cplusplus
 10384 extern "C"
 10385 #endif
 10386 char dgettext ();
 10387 int
 10388 main ()
 10390 return dgettext ();
 10392   return 0;
 10394 _ACEOF
 10395 rm -f conftest.$ac_objext conftest$ac_exeext
 10396 if { (ac_try="$ac_link"
 10397 case "(($ac_try" in
 10398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10399   *) ac_try_echo=$ac_try;;
 10400 esac
 10401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10402 $as_echo "$ac_try_echo") >&5
 10403   (eval "$ac_link") 2>conftest.er1
 10404   ac_status=$?
 10405   grep -v '^ *+' conftest.er1 >conftest.err
 10406   rm -f conftest.er1
 10407   cat conftest.err >&5
 10408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10409   (exit $ac_status); } && {
 10410 	 test -z "$ac_c_werror_flag" ||
 10411 	 test ! -s conftest.err
 10412        } && test -s conftest$ac_exeext && {
 10413 	 test "$cross_compiling" = yes ||
 10414 	 $as_test_x conftest$ac_exeext
 10415        }; then
 10416   ac_cv_lib_intl_dgettext=yes
 10417 else
 10418   $as_echo "$as_me: failed program was:" >&5
 10419 sed 's/^/| /' conftest.$ac_ext >&5
 10421 	ac_cv_lib_intl_dgettext=no
 10422 fi
 10424 rm -rf conftest.dSYM
 10425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10426       conftest$ac_exeext conftest.$ac_ext
 10427 LIBS=$ac_check_lib_save_LIBS
 10428 fi
 10429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 10430 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
 10431 if test $ac_cv_lib_intl_dgettext = yes; then
 10432   gt_cv_func_dgettext_libintl=yes
 10433 fi
 10435 fi
 10437 fi
 10440 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 10441 	  { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 10442 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
 10443 	  { $as_echo "$as_me:$LINENO: result: " >&5
 10444 $as_echo "" >&6; }
 10445   	  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 10446 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 10447 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 10448   $as_echo_n "(cached) " >&6
 10449 else
 10450   ac_check_lib_save_LIBS=$LIBS
 10451 LIBS="-lintl -liconv $LIBS"
 10452 cat >conftest.$ac_ext <<_ACEOF
 10453 /* confdefs.h.  */
 10454 _ACEOF
 10455 cat confdefs.h >>conftest.$ac_ext
 10456 cat >>conftest.$ac_ext <<_ACEOF
 10457 /* end confdefs.h.  */
 10459 /* Override any GCC internal prototype to avoid an error.
 10460    Use char because int might match the return type of a GCC
 10461    builtin and then its argument prototype would still apply.  */
 10462 #ifdef __cplusplus
 10463 extern "C"
 10464 #endif
 10465 char ngettext ();
 10466 int
 10467 main ()
 10469 return ngettext ();
 10471   return 0;
 10473 _ACEOF
 10474 rm -f conftest.$ac_objext conftest$ac_exeext
 10475 if { (ac_try="$ac_link"
 10476 case "(($ac_try" in
 10477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10478   *) ac_try_echo=$ac_try;;
 10479 esac
 10480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10481 $as_echo "$ac_try_echo") >&5
 10482   (eval "$ac_link") 2>conftest.er1
 10483   ac_status=$?
 10484   grep -v '^ *+' conftest.er1 >conftest.err
 10485   rm -f conftest.er1
 10486   cat conftest.err >&5
 10487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10488   (exit $ac_status); } && {
 10489 	 test -z "$ac_c_werror_flag" ||
 10490 	 test ! -s conftest.err
 10491        } && test -s conftest$ac_exeext && {
 10492 	 test "$cross_compiling" = yes ||
 10493 	 $as_test_x conftest$ac_exeext
 10494        }; then
 10495   ac_cv_lib_intl_ngettext=yes
 10496 else
 10497   $as_echo "$as_me: failed program was:" >&5
 10498 sed 's/^/| /' conftest.$ac_ext >&5
 10500 	ac_cv_lib_intl_ngettext=no
 10501 fi
 10503 rm -rf conftest.dSYM
 10504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10505       conftest$ac_exeext conftest.$ac_ext
 10506 LIBS=$ac_check_lib_save_LIBS
 10507 fi
 10508 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 10509 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 10510 if test $ac_cv_lib_intl_ngettext = yes; then
 10511   { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 10512 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
 10513 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 10514   $as_echo_n "(cached) " >&6
 10515 else
 10516   ac_check_lib_save_LIBS=$LIBS
 10517 LIBS="-lintl -liconv $LIBS"
 10518 cat >conftest.$ac_ext <<_ACEOF
 10519 /* confdefs.h.  */
 10520 _ACEOF
 10521 cat confdefs.h >>conftest.$ac_ext
 10522 cat >>conftest.$ac_ext <<_ACEOF
 10523 /* end confdefs.h.  */
 10525 /* Override any GCC internal prototype to avoid an error.
 10526    Use char because int might match the return type of a GCC
 10527    builtin and then its argument prototype would still apply.  */
 10528 #ifdef __cplusplus
 10529 extern "C"
 10530 #endif
 10531 char dcgettext ();
 10532 int
 10533 main ()
 10535 return dcgettext ();
 10537   return 0;
 10539 _ACEOF
 10540 rm -f conftest.$ac_objext conftest$ac_exeext
 10541 if { (ac_try="$ac_link"
 10542 case "(($ac_try" in
 10543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10544   *) ac_try_echo=$ac_try;;
 10545 esac
 10546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10547 $as_echo "$ac_try_echo") >&5
 10548   (eval "$ac_link") 2>conftest.er1
 10549   ac_status=$?
 10550   grep -v '^ *+' conftest.er1 >conftest.err
 10551   rm -f conftest.er1
 10552   cat conftest.err >&5
 10553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10554   (exit $ac_status); } && {
 10555 	 test -z "$ac_c_werror_flag" ||
 10556 	 test ! -s conftest.err
 10557        } && test -s conftest$ac_exeext && {
 10558 	 test "$cross_compiling" = yes ||
 10559 	 $as_test_x conftest$ac_exeext
 10560        }; then
 10561   ac_cv_lib_intl_dcgettext=yes
 10562 else
 10563   $as_echo "$as_me: failed program was:" >&5
 10564 sed 's/^/| /' conftest.$ac_ext >&5
 10566 	ac_cv_lib_intl_dcgettext=no
 10567 fi
 10569 rm -rf conftest.dSYM
 10570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10571       conftest$ac_exeext conftest.$ac_ext
 10572 LIBS=$ac_check_lib_save_LIBS
 10573 fi
 10574 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 10575 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
 10576 if test $ac_cv_lib_intl_dcgettext = yes; then
 10577   gt_cv_func_dgettext_libintl=yes
 10578 			libintl_extra_libs=-liconv
 10579 else
 10581 fi
 10583 else
 10585 fi
 10587         fi
 10590         # If we found libintl, then check in it for bind_textdomain_codeset();
 10591         # we'll prefer libc if neither have bind_textdomain_codeset(),
 10592         # and both have dgettext and ngettext
 10594         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 10595           glib_save_LIBS="$LIBS"
 10596           LIBS="$LIBS -lintl $libintl_extra_libs"
 10597           unset ac_cv_func_bind_textdomain_codeset
 10599 for ac_func in bind_textdomain_codeset
 10600 do
 10601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 10602 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 10603 $as_echo_n "checking for $ac_func... " >&6; }
 10604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 10605   $as_echo_n "(cached) " >&6
 10606 else
 10607   cat >conftest.$ac_ext <<_ACEOF
 10608 /* confdefs.h.  */
 10609 _ACEOF
 10610 cat confdefs.h >>conftest.$ac_ext
 10611 cat >>conftest.$ac_ext <<_ACEOF
 10612 /* end confdefs.h.  */
 10613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 10614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10615 #define $ac_func innocuous_$ac_func
 10617 /* System header to define __stub macros and hopefully few prototypes,
 10618     which can conflict with char $ac_func (); below.
 10619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10620     <limits.h> exists even on freestanding compilers.  */
 10622 #ifdef __STDC__
 10623 # include <limits.h>
 10624 #else
 10625 # include <assert.h>
 10626 #endif
 10628 #undef $ac_func
 10630 /* Override any GCC internal prototype to avoid an error.
 10631    Use char because int might match the return type of a GCC
 10632    builtin and then its argument prototype would still apply.  */
 10633 #ifdef __cplusplus
 10634 extern "C"
 10635 #endif
 10636 char $ac_func ();
 10637 /* The GNU C library defines this for functions which it implements
 10638     to always fail with ENOSYS.  Some functions are actually named
 10639     something starting with __ and the normal name is an alias.  */
 10640 #if defined __stub_$ac_func || defined __stub___$ac_func
 10641 choke me
 10642 #endif
 10644 int
 10645 main ()
 10647 return $ac_func ();
 10649   return 0;
 10651 _ACEOF
 10652 rm -f conftest.$ac_objext conftest$ac_exeext
 10653 if { (ac_try="$ac_link"
 10654 case "(($ac_try" in
 10655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10656   *) ac_try_echo=$ac_try;;
 10657 esac
 10658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10659 $as_echo "$ac_try_echo") >&5
 10660   (eval "$ac_link") 2>conftest.er1
 10661   ac_status=$?
 10662   grep -v '^ *+' conftest.er1 >conftest.err
 10663   rm -f conftest.er1
 10664   cat conftest.err >&5
 10665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10666   (exit $ac_status); } && {
 10667 	 test -z "$ac_c_werror_flag" ||
 10668 	 test ! -s conftest.err
 10669        } && test -s conftest$ac_exeext && {
 10670 	 test "$cross_compiling" = yes ||
 10671 	 $as_test_x conftest$ac_exeext
 10672        }; then
 10673   eval "$as_ac_var=yes"
 10674 else
 10675   $as_echo "$as_me: failed program was:" >&5
 10676 sed 's/^/| /' conftest.$ac_ext >&5
 10678 	eval "$as_ac_var=no"
 10679 fi
 10681 rm -rf conftest.dSYM
 10682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10683       conftest$ac_exeext conftest.$ac_ext
 10684 fi
 10685 ac_res=`eval 'as_val=${'$as_ac_var'}
 10686 		 $as_echo "$as_val"'`
 10687 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 10688 $as_echo "$ac_res" >&6; }
 10689 if test `eval 'as_val=${'$as_ac_var'}
 10690 		 $as_echo "$as_val"'` = yes; then
 10691   cat >>confdefs.h <<_ACEOF
 10692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 10693 _ACEOF
 10695 fi
 10696 done
 10698           LIBS="$glib_save_LIBS"
 10700           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 10701             gt_cv_func_dgettext_libc=no
 10702           else
 10703             if test "$gt_cv_func_dgettext_libc" = "yes" \
 10704 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 10705               gt_cv_func_dgettext_libintl=no
 10706             fi
 10707           fi
 10708         fi
 10709       fi
 10711       if test "$gt_cv_func_dgettext_libc" = "yes" \
 10712 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 10713         gt_cv_have_gettext=yes
 10714       fi
 10716       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 10717         INTLLIBS="-lintl $libintl_extra_libs"
 10718       fi
 10720       if test "$gt_cv_have_gettext" = "yes"; then
 10722 cat >>confdefs.h <<\_ACEOF
 10723 #define HAVE_GETTEXT 1
 10724 _ACEOF
 10726 	# Extract the first word of "msgfmt", so it can be a program name with args.
 10727 set dummy msgfmt; ac_word=$2
 10728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10729 $as_echo_n "checking for $ac_word... " >&6; }
 10730 if test "${ac_cv_path_MSGFMT+set}" = set; then
 10731   $as_echo_n "(cached) " >&6
 10732 else
 10733   case "$MSGFMT" in
 10734   /*)
 10735   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 10736   ;;
 10737   *)
 10738   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 10739   for ac_dir in $PATH; do
 10740     test -z "$ac_dir" && ac_dir=.
 10741     if test -f $ac_dir/$ac_word; then
 10742       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 10743 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 10744 	break
 10745       fi
 10746     fi
 10747   done
 10748   IFS="$ac_save_ifs"
 10749   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 10750   ;;
 10751 esac
 10752 fi
 10753 MSGFMT="$ac_cv_path_MSGFMT"
 10754 if test "$MSGFMT" != "no"; then
 10755   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
 10756 $as_echo "$MSGFMT" >&6; }
 10757 else
 10758   { $as_echo "$as_me:$LINENO: result: no" >&5
 10759 $as_echo "no" >&6; }
 10760 fi
 10761 	if test "$MSGFMT" != "no"; then
 10762           glib_save_LIBS="$LIBS"
 10763           LIBS="$LIBS $INTLLIBS"
 10765 for ac_func in dcgettext
 10766 do
 10767 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 10768 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 10769 $as_echo_n "checking for $ac_func... " >&6; }
 10770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 10771   $as_echo_n "(cached) " >&6
 10772 else
 10773   cat >conftest.$ac_ext <<_ACEOF
 10774 /* confdefs.h.  */
 10775 _ACEOF
 10776 cat confdefs.h >>conftest.$ac_ext
 10777 cat >>conftest.$ac_ext <<_ACEOF
 10778 /* end confdefs.h.  */
 10779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 10780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10781 #define $ac_func innocuous_$ac_func
 10783 /* System header to define __stub macros and hopefully few prototypes,
 10784     which can conflict with char $ac_func (); below.
 10785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10786     <limits.h> exists even on freestanding compilers.  */
 10788 #ifdef __STDC__
 10789 # include <limits.h>
 10790 #else
 10791 # include <assert.h>
 10792 #endif
 10794 #undef $ac_func
 10796 /* Override any GCC internal prototype to avoid an error.
 10797    Use char because int might match the return type of a GCC
 10798    builtin and then its argument prototype would still apply.  */
 10799 #ifdef __cplusplus
 10800 extern "C"
 10801 #endif
 10802 char $ac_func ();
 10803 /* The GNU C library defines this for functions which it implements
 10804     to always fail with ENOSYS.  Some functions are actually named
 10805     something starting with __ and the normal name is an alias.  */
 10806 #if defined __stub_$ac_func || defined __stub___$ac_func
 10807 choke me
 10808 #endif
 10810 int
 10811 main ()
 10813 return $ac_func ();
 10815   return 0;
 10817 _ACEOF
 10818 rm -f conftest.$ac_objext conftest$ac_exeext
 10819 if { (ac_try="$ac_link"
 10820 case "(($ac_try" in
 10821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10822   *) ac_try_echo=$ac_try;;
 10823 esac
 10824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10825 $as_echo "$ac_try_echo") >&5
 10826   (eval "$ac_link") 2>conftest.er1
 10827   ac_status=$?
 10828   grep -v '^ *+' conftest.er1 >conftest.err
 10829   rm -f conftest.er1
 10830   cat conftest.err >&5
 10831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10832   (exit $ac_status); } && {
 10833 	 test -z "$ac_c_werror_flag" ||
 10834 	 test ! -s conftest.err
 10835        } && test -s conftest$ac_exeext && {
 10836 	 test "$cross_compiling" = yes ||
 10837 	 $as_test_x conftest$ac_exeext
 10838        }; then
 10839   eval "$as_ac_var=yes"
 10840 else
 10841   $as_echo "$as_me: failed program was:" >&5
 10842 sed 's/^/| /' conftest.$ac_ext >&5
 10844 	eval "$as_ac_var=no"
 10845 fi
 10847 rm -rf conftest.dSYM
 10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10849       conftest$ac_exeext conftest.$ac_ext
 10850 fi
 10851 ac_res=`eval 'as_val=${'$as_ac_var'}
 10852 		 $as_echo "$as_val"'`
 10853 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 10854 $as_echo "$ac_res" >&6; }
 10855 if test `eval 'as_val=${'$as_ac_var'}
 10856 		 $as_echo "$as_val"'` = yes; then
 10857   cat >>confdefs.h <<_ACEOF
 10858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 10859 _ACEOF
 10861 fi
 10862 done
 10864 	  MSGFMT_OPTS=
 10865 	  { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 10866 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
 10867 	  cat >conftest.foo <<_ACEOF
 10869 msgid ""
 10870 msgstr ""
 10871 "Content-Type: text/plain; charset=UTF-8\n"
 10872 "Project-Id-Version: test 1.0\n"
 10873 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 10874 "Last-Translator: test <foo@bar.xx>\n"
 10875 "Language-Team: C <LL@li.org>\n"
 10876 "MIME-Version: 1.0\n"
 10877 "Content-Transfer-Encoding: 8bit\n"
 10879 _ACEOF
 10880 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
 10881   (msgfmt -c -o /dev/null conftest.foo) 2>&5
 10882   ac_status=$?
 10883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10884   (exit $ac_status); }; then
 10885   MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
 10886 $as_echo "yes" >&6; }
 10887 else { $as_echo "$as_me:$LINENO: result: no" >&5
 10888 $as_echo "no" >&6; }
 10889 echo "$as_me: failed input was:" >&5
 10890 sed 's/^/| /' conftest.foo >&5
 10891 fi
 10893 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 10894 set dummy gmsgfmt; ac_word=$2
 10895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10896 $as_echo_n "checking for $ac_word... " >&6; }
 10897 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 10898   $as_echo_n "(cached) " >&6
 10899 else
 10900   case $GMSGFMT in
 10901   [\\/]* | ?:[\\/]*)
 10902   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 10903   ;;
 10904   *)
 10905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10906 for as_dir in $PATH
 10907 do
 10908   IFS=$as_save_IFS
 10909   test -z "$as_dir" && as_dir=.
 10910   for ac_exec_ext in '' $ac_executable_extensions; do
 10911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10912     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 10913     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10914     break 2
 10915   fi
 10916 done
 10917 done
 10918 IFS=$as_save_IFS
 10920   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 10921   ;;
 10922 esac
 10923 fi
 10924 GMSGFMT=$ac_cv_path_GMSGFMT
 10925 if test -n "$GMSGFMT"; then
 10926   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 10927 $as_echo "$GMSGFMT" >&6; }
 10928 else
 10929   { $as_echo "$as_me:$LINENO: result: no" >&5
 10930 $as_echo "no" >&6; }
 10931 fi
 10934 	  # Extract the first word of "xgettext", so it can be a program name with args.
 10935 set dummy xgettext; ac_word=$2
 10936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10937 $as_echo_n "checking for $ac_word... " >&6; }
 10938 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 10939   $as_echo_n "(cached) " >&6
 10940 else
 10941   case "$XGETTEXT" in
 10942   /*)
 10943   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 10944   ;;
 10945   *)
 10946   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 10947   for ac_dir in $PATH; do
 10948     test -z "$ac_dir" && ac_dir=.
 10949     if test -f $ac_dir/$ac_word; then
 10950       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 10951 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 10952 	break
 10953       fi
 10954     fi
 10955   done
 10956   IFS="$ac_save_ifs"
 10957   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 10958   ;;
 10959 esac
 10960 fi
 10961 XGETTEXT="$ac_cv_path_XGETTEXT"
 10962 if test "$XGETTEXT" != ":"; then
 10963   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 10964 $as_echo "$XGETTEXT" >&6; }
 10965 else
 10966   { $as_echo "$as_me:$LINENO: result: no" >&5
 10967 $as_echo "no" >&6; }
 10968 fi
 10970 	  cat >conftest.$ac_ext <<_ACEOF
 10971 /* confdefs.h.  */
 10972 _ACEOF
 10973 cat confdefs.h >>conftest.$ac_ext
 10974 cat >>conftest.$ac_ext <<_ACEOF
 10975 /* end confdefs.h.  */
 10977 int
 10978 main ()
 10980 extern int _nl_msg_cat_cntr;
 10981 			 return _nl_msg_cat_cntr
 10983   return 0;
 10985 _ACEOF
 10986 rm -f conftest.$ac_objext conftest$ac_exeext
 10987 if { (ac_try="$ac_link"
 10988 case "(($ac_try" in
 10989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10990   *) ac_try_echo=$ac_try;;
 10991 esac
 10992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10993 $as_echo "$ac_try_echo") >&5
 10994   (eval "$ac_link") 2>conftest.er1
 10995   ac_status=$?
 10996   grep -v '^ *+' conftest.er1 >conftest.err
 10997   rm -f conftest.er1
 10998   cat conftest.err >&5
 10999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11000   (exit $ac_status); } && {
 11001 	 test -z "$ac_c_werror_flag" ||
 11002 	 test ! -s conftest.err
 11003        } && test -s conftest$ac_exeext && {
 11004 	 test "$cross_compiling" = yes ||
 11005 	 $as_test_x conftest$ac_exeext
 11006        }; then
 11007   CATOBJEXT=.gmo
 11008              DATADIRNAME=share
 11009 else
 11010   $as_echo "$as_me: failed program was:" >&5
 11011 sed 's/^/| /' conftest.$ac_ext >&5
 11013 	case $host in
 11014 	    *-*-solaris*)
 11015 	    	                	    	                { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 11016 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
 11017 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 11018   $as_echo_n "(cached) " >&6
 11019 else
 11020   cat >conftest.$ac_ext <<_ACEOF
 11021 /* confdefs.h.  */
 11022 _ACEOF
 11023 cat confdefs.h >>conftest.$ac_ext
 11024 cat >>conftest.$ac_ext <<_ACEOF
 11025 /* end confdefs.h.  */
 11026 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 11027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11028 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 11030 /* System header to define __stub macros and hopefully few prototypes,
 11031     which can conflict with char bind_textdomain_codeset (); below.
 11032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11033     <limits.h> exists even on freestanding compilers.  */
 11035 #ifdef __STDC__
 11036 # include <limits.h>
 11037 #else
 11038 # include <assert.h>
 11039 #endif
 11041 #undef bind_textdomain_codeset
 11043 /* Override any GCC internal prototype to avoid an error.
 11044    Use char because int might match the return type of a GCC
 11045    builtin and then its argument prototype would still apply.  */
 11046 #ifdef __cplusplus
 11047 extern "C"
 11048 #endif
 11049 char bind_textdomain_codeset ();
 11050 /* The GNU C library defines this for functions which it implements
 11051     to always fail with ENOSYS.  Some functions are actually named
 11052     something starting with __ and the normal name is an alias.  */
 11053 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 11054 choke me
 11055 #endif
 11057 int
 11058 main ()
 11060 return bind_textdomain_codeset ();
 11062   return 0;
 11064 _ACEOF
 11065 rm -f conftest.$ac_objext conftest$ac_exeext
 11066 if { (ac_try="$ac_link"
 11067 case "(($ac_try" in
 11068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11069   *) ac_try_echo=$ac_try;;
 11070 esac
 11071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11072 $as_echo "$ac_try_echo") >&5
 11073   (eval "$ac_link") 2>conftest.er1
 11074   ac_status=$?
 11075   grep -v '^ *+' conftest.er1 >conftest.err
 11076   rm -f conftest.er1
 11077   cat conftest.err >&5
 11078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11079   (exit $ac_status); } && {
 11080 	 test -z "$ac_c_werror_flag" ||
 11081 	 test ! -s conftest.err
 11082        } && test -s conftest$ac_exeext && {
 11083 	 test "$cross_compiling" = yes ||
 11084 	 $as_test_x conftest$ac_exeext
 11085        }; then
 11086   ac_cv_func_bind_textdomain_codeset=yes
 11087 else
 11088   $as_echo "$as_me: failed program was:" >&5
 11089 sed 's/^/| /' conftest.$ac_ext >&5
 11091 	ac_cv_func_bind_textdomain_codeset=no
 11092 fi
 11094 rm -rf conftest.dSYM
 11095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11096       conftest$ac_exeext conftest.$ac_ext
 11097 fi
 11098 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 11099 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
 11100 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 11101   CATOBJEXT=.gmo
 11102                DATADIRNAME=share
 11103 else
 11104   CATOBJEXT=.mo
 11105                DATADIRNAME=lib
 11106 fi
 11108 	    ;;
 11109 	    *)
 11110 	    CATOBJEXT=.mo
 11111             DATADIRNAME=lib
 11112 	    ;;
 11113 	    esac
 11114 fi
 11116 rm -rf conftest.dSYM
 11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11118       conftest$ac_exeext conftest.$ac_ext
 11119           LIBS="$glib_save_LIBS"
 11120 	  INSTOBJEXT=.mo
 11121 	else
 11122 	  gt_cv_have_gettext=no
 11123 	fi
 11124       fi
 11126 fi
 11130     if test "$gt_cv_have_gettext" = "yes" ; then
 11132 cat >>confdefs.h <<\_ACEOF
 11133 #define ENABLE_NLS 1
 11134 _ACEOF
 11136     fi
 11138         if test "$XGETTEXT" != ":"; then
 11139                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 11140         : ;
 11141       else
 11142         { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 11143 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
 11144         XGETTEXT=":"
 11145       fi
 11146     fi
 11148     # We need to process the po/ directory.
 11149     POSUB=po
 11151     ac_config_commands="$ac_config_commands default-1"
 11154                 for lang in $ALL_LINGUAS; do
 11155       GMOFILES="$GMOFILES $lang.gmo"
 11156       POFILES="$POFILES $lang.po"
 11157     done
 11171    if test "$gt_cv_have_gettext" = "yes"; then
 11172      if test "x$ALL_LINGUAS" = "x"; then
 11173        LINGUAS=
 11174      else
 11175        { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 11176 $as_echo_n "checking for catalogs to be installed... " >&6; }
 11177        NEW_LINGUAS=
 11178        for presentlang in $ALL_LINGUAS; do
 11179          useit=no
 11180          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 11181            desiredlanguages="$LINGUAS"
 11182          else
 11183            desiredlanguages="$ALL_LINGUAS"
 11184          fi
 11185          for desiredlang in $desiredlanguages; do
 11186  	   # Use the presentlang catalog if desiredlang is
 11187            #   a. equal to presentlang, or
 11188            #   b. a variant of presentlang (because in this case,
 11189            #      presentlang can be used as a fallback for messages
 11190            #      which are not translated in the desiredlang catalog).
 11191            case "$desiredlang" in
 11192              "$presentlang"*) useit=yes;;
 11193            esac
 11194          done
 11195          if test $useit = yes; then
 11196            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 11197          fi
 11198        done
 11199        LINGUAS=$NEW_LINGUAS
 11200        { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
 11201 $as_echo "$LINGUAS" >&6; }
 11202      fi
 11204           if test -n "$LINGUAS"; then
 11205        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 11206      fi
 11207    fi
 11209             MKINSTALLDIRS=
 11210    if test -n "$ac_aux_dir"; then
 11211      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 11212    fi
 11213    if test -z "$MKINSTALLDIRS"; then
 11214      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 11215    fi
 11218          test -d po || mkdir po
 11219    if test "x$srcdir" != "x."; then
 11220      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 11221        posrcprefix="$srcdir/"
 11222      else
 11223        posrcprefix="../$srcdir/"
 11224      fi
 11225    else
 11226      posrcprefix="../"
 11227    fi
 11228    rm -f po/POTFILES
 11229    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 11230 	< $srcdir/po/POTFILES.in > po/POTFILES
 11233 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
 11235 cat >confcache <<\_ACEOF
 11236 # This file is a shell script that caches the results of configure
 11237 # tests run on this system so they can be shared between configure
 11238 # scripts and configure runs, see configure's option --config-cache.
 11239 # It is not useful on other systems.  If it contains results you don't
 11240 # want to keep, you may remove or edit it.
 11242 # config.status only pays attention to the cache file if you give it
 11243 # the --recheck option to rerun configure.
 11245 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 11246 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 11247 # following values.
 11249 _ACEOF
 11251 # The following way of writing the cache mishandles newlines in values,
 11252 # but we know of no workaround that is simple, portable, and efficient.
 11253 # So, we kill variables containing newlines.
 11254 # Ultrix sh set writes to stderr and can't be redirected directly,
 11255 # and sets the high bit in the cache file unless we assign to the vars.
 11257   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 11258     eval ac_val=\$$ac_var
 11259     case $ac_val in #(
 11260     *${as_nl}*)
 11261       case $ac_var in #(
 11262       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 11263 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 11264       esac
 11265       case $ac_var in #(
 11266       _ | IFS | as_nl) ;; #(
 11267       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 11268       *) $as_unset $ac_var ;;
 11269       esac ;;
 11270     esac
 11271   done
 11273   (set) 2>&1 |
 11274     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 11275     *${as_nl}ac_space=\ *)
 11276       # `set' does not quote correctly, so add quotes (double-quote
 11277       # substitution turns \\\\ into \\, and sed turns \\ into \).
 11278       sed -n \
 11279 	"s/'/'\\\\''/g;
 11280 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 11281       ;; #(
 11282     *)
 11283       # `set' quotes correctly as required by POSIX, so do not add quotes.
 11284       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 11285       ;;
 11286     esac |
 11287     sort
 11288 ) |
 11289   sed '
 11290      /^ac_cv_env_/b end
 11291      t clear
 11292      :clear
 11293      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 11294      t end
 11295      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 11296      :end' >>confcache
 11297 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 11298   if test -w "$cache_file"; then
 11299     test "x$cache_file" != "x/dev/null" &&
 11300       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 11301 $as_echo "$as_me: updating cache $cache_file" >&6;}
 11302     cat confcache >$cache_file
 11303   else
 11304     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 11305 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 11306   fi
 11307 fi
 11308 rm -f confcache
 11310 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 11311 # Let make expand exec_prefix.
 11312 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 11314 DEFS=-DHAVE_CONFIG_H
 11316 ac_libobjs=
 11317 ac_ltlibobjs=
 11318 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 11319   # 1. Remove the extension, and $U if already installed.
 11320   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 11321   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 11322   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 11323   #    will be set to the directory where LIBOBJS objects are built.
 11324   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 11325   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 11326 done
 11327 LIBOBJS=$ac_libobjs
 11329 LTLIBOBJS=$ac_ltlibobjs
 11332 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 11333   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 11334 Usually this means the macro was only invoked conditionally." >&5
 11335 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 11336 Usually this means the macro was only invoked conditionally." >&2;}
 11337    { (exit 1); exit 1; }; }
 11338 fi
 11339 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 11340   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 11341 Usually this means the macro was only invoked conditionally." >&5
 11342 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 11343 Usually this means the macro was only invoked conditionally." >&2;}
 11344    { (exit 1); exit 1; }; }
 11345 fi
 11346 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 11347   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 11348 Usually this means the macro was only invoked conditionally." >&5
 11349 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 11350 Usually this means the macro was only invoked conditionally." >&2;}
 11351    { (exit 1); exit 1; }; }
 11352 fi
 11353 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 11354   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 11355 Usually this means the macro was only invoked conditionally." >&5
 11356 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 11357 Usually this means the macro was only invoked conditionally." >&2;}
 11358    { (exit 1); exit 1; }; }
 11359 fi
 11360 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 11361   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 11362 Usually this means the macro was only invoked conditionally." >&5
 11363 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 11364 Usually this means the macro was only invoked conditionally." >&2;}
 11365    { (exit 1); exit 1; }; }
 11366 fi
 11367 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 11368   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 11369 Usually this means the macro was only invoked conditionally." >&5
 11370 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 11371 Usually this means the macro was only invoked conditionally." >&2;}
 11372    { (exit 1); exit 1; }; }
 11373 fi
 11374 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 11375   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 11376 Usually this means the macro was only invoked conditionally." >&5
 11377 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 11378 Usually this means the macro was only invoked conditionally." >&2;}
 11379    { (exit 1); exit 1; }; }
 11380 fi
 11381 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 11382   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 11383 Usually this means the macro was only invoked conditionally." >&5
 11384 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 11385 Usually this means the macro was only invoked conditionally." >&2;}
 11386    { (exit 1); exit 1; }; }
 11387 fi
 11388 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 11389   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 11390 Usually this means the macro was only invoked conditionally." >&5
 11391 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 11392 Usually this means the macro was only invoked conditionally." >&2;}
 11393    { (exit 1); exit 1; }; }
 11394 fi
 11395 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 11396   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 11397 Usually this means the macro was only invoked conditionally." >&5
 11398 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 11399 Usually this means the macro was only invoked conditionally." >&2;}
 11400    { (exit 1); exit 1; }; }
 11401 fi
 11402 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 11403   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 11404 Usually this means the macro was only invoked conditionally." >&5
 11405 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 11406 Usually this means the macro was only invoked conditionally." >&2;}
 11407    { (exit 1); exit 1; }; }
 11408 fi
 11409 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
 11410   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
 11411 Usually this means the macro was only invoked conditionally." >&5
 11412 $as_echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
 11413 Usually this means the macro was only invoked conditionally." >&2;}
 11414    { (exit 1); exit 1; }; }
 11415 fi
 11416 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 11417   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 11418 Usually this means the macro was only invoked conditionally." >&5
 11419 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
 11420 Usually this means the macro was only invoked conditionally." >&2;}
 11421    { (exit 1); exit 1; }; }
 11422 fi
 11423 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 11424   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 11425 Usually this means the macro was only invoked conditionally." >&5
 11426 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 11427 Usually this means the macro was only invoked conditionally." >&2;}
 11428    { (exit 1); exit 1; }; }
 11429 fi
 11430 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 11431   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 11432 Usually this means the macro was only invoked conditionally." >&5
 11433 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 11434 Usually this means the macro was only invoked conditionally." >&2;}
 11435    { (exit 1); exit 1; }; }
 11436 fi
 11437 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 11438   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 11439 Usually this means the macro was only invoked conditionally." >&5
 11440 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 11441 Usually this means the macro was only invoked conditionally." >&2;}
 11442    { (exit 1); exit 1; }; }
 11443 fi
 11444 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 11445   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 11446 Usually this means the macro was only invoked conditionally." >&5
 11447 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 11448 Usually this means the macro was only invoked conditionally." >&2;}
 11449    { (exit 1); exit 1; }; }
 11450 fi
 11451 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 11452   { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 11453 Usually this means the macro was only invoked conditionally." >&5
 11454 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 11455 Usually this means the macro was only invoked conditionally." >&2;}
 11456    { (exit 1); exit 1; }; }
 11457 fi
 11458 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 11459   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 11460 Usually this means the macro was only invoked conditionally." >&5
 11461 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 11462 Usually this means the macro was only invoked conditionally." >&2;}
 11463    { (exit 1); exit 1; }; }
 11464 fi
 11465 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 11466   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 11467 Usually this means the macro was only invoked conditionally." >&5
 11468 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 11469 Usually this means the macro was only invoked conditionally." >&2;}
 11470    { (exit 1); exit 1; }; }
 11471 fi
 11473 : ${CONFIG_STATUS=./config.status}
 11474 ac_write_fail=0
 11475 ac_clean_files_save=$ac_clean_files
 11476 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 11477 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 11478 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 11479 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11480 #! $SHELL
 11481 # Generated by $as_me.
 11482 # Run this file to recreate the current configuration.
 11483 # Compiler output produced by configure, useful for debugging
 11484 # configure, is in config.log if it exists.
 11486 debug=false
 11487 ac_cs_recheck=false
 11488 ac_cs_silent=false
 11489 SHELL=\${CONFIG_SHELL-$SHELL}
 11490 _ACEOF
 11492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11493 ## --------------------- ##
 11494 ## M4sh Initialization.  ##
 11495 ## --------------------- ##
 11497 # Be more Bourne compatible
 11498 DUALCASE=1; export DUALCASE # for MKS sh
 11499 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 11500   emulate sh
 11501   NULLCMD=:
 11502   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 11503   # is contrary to our usage.  Disable this feature.
 11504   alias -g '${1+"$@"}'='"$@"'
 11505   setopt NO_GLOB_SUBST
 11506 else
 11507   case `(set -o) 2>/dev/null` in
 11508   *posix*) set -o posix ;;
 11509 esac
 11511 fi
 11516 # PATH needs CR
 11517 # Avoid depending upon Character Ranges.
 11518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 11519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 11520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 11521 as_cr_digits='0123456789'
 11522 as_cr_alnum=$as_cr_Letters$as_cr_digits
 11524 as_nl='
 11526 export as_nl
 11527 # Printing a long string crashes Solaris 7 /usr/bin/printf.
 11528 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 11529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 11530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 11531 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 11532   as_echo='printf %s\n'
 11533   as_echo_n='printf %s'
 11534 else
 11535   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 11536     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 11537     as_echo_n='/usr/ucb/echo -n'
 11538   else
 11539     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 11540     as_echo_n_body='eval
 11541       arg=$1;
 11542       case $arg in
 11543       *"$as_nl"*)
 11544 	expr "X$arg" : "X\\(.*\\)$as_nl";
 11545 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 11546       esac;
 11547       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 11549     export as_echo_n_body
 11550     as_echo_n='sh -c $as_echo_n_body as_echo'
 11551   fi
 11552   export as_echo_body
 11553   as_echo='sh -c $as_echo_body as_echo'
 11554 fi
 11556 # The user is always right.
 11557 if test "${PATH_SEPARATOR+set}" != set; then
 11558   PATH_SEPARATOR=:
 11559   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 11560     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 11561       PATH_SEPARATOR=';'
 11563 fi
 11565 # Support unset when possible.
 11566 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 11567   as_unset=unset
 11568 else
 11569   as_unset=false
 11570 fi
 11573 # IFS
 11574 # We need space, tab and new line, in precisely that order.  Quoting is
 11575 # there to prevent editors from complaining about space-tab.
 11576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 11577 # splitting by setting IFS to empty value.)
 11578 IFS=" ""	$as_nl"
 11580 # Find who we are.  Look in the path if we contain no directory separator.
 11581 case $0 in
 11582   *[\\/]* ) as_myself=$0 ;;
 11583   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11584 for as_dir in $PATH
 11585 do
 11586   IFS=$as_save_IFS
 11587   test -z "$as_dir" && as_dir=.
 11588   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 11589 done
 11590 IFS=$as_save_IFS
 11592      ;;
 11593 esac
 11594 # We did not find ourselves, most probably we were run as `sh COMMAND'
 11595 # in which case we are not to be found in the path.
 11596 if test "x$as_myself" = x; then
 11597   as_myself=$0
 11598 fi
 11599 if test ! -f "$as_myself"; then
 11600   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 11601   { (exit 1); exit 1; }
 11602 fi
 11604 # Work around bugs in pre-3.0 UWIN ksh.
 11605 for as_var in ENV MAIL MAILPATH
 11606 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 11607 done
 11608 PS1='$ '
 11609 PS2='> '
 11610 PS4='+ '
 11612 # NLS nuisances.
 11613 LC_ALL=C
 11614 export LC_ALL
 11615 LANGUAGE=C
 11616 export LANGUAGE
 11618 # Required to use basename.
 11619 if expr a : '\(a\)' >/dev/null 2>&1 &&
 11620    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 11621   as_expr=expr
 11622 else
 11623   as_expr=false
 11624 fi
 11626 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 11627   as_basename=basename
 11628 else
 11629   as_basename=false
 11630 fi
 11633 # Name of the executable.
 11634 as_me=`$as_basename -- "$0" ||
 11635 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 11636 	 X"$0" : 'X\(//\)$' \| \
 11637 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 11638 $as_echo X/"$0" |
 11639     sed '/^.*\/\([^/][^/]*\)\/*$/{
 11640 	    s//\1/
 11643 	  /^X\/\(\/\/\)$/{
 11644 	    s//\1/
 11647 	  /^X\/\(\/\).*/{
 11648 	    s//\1/
 11651 	  s/.*/./; q'`
 11653 # CDPATH.
 11654 $as_unset CDPATH
 11658   as_lineno_1=$LINENO
 11659   as_lineno_2=$LINENO
 11660   test "x$as_lineno_1" != "x$as_lineno_2" &&
 11661   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 11663   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 11664   # uniformly replaced by the line number.  The first 'sed' inserts a
 11665   # line-number line after each line using $LINENO; the second 'sed'
 11666   # does the real work.  The second script uses 'N' to pair each
 11667   # line-number line with the line containing $LINENO, and appends
 11668   # trailing '-' during substitution so that $LINENO is not a special
 11669   # case at line end.
 11670   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 11671   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 11672   # E. McMahon (1931-1989) for sed's syntax.  :-)
 11673   sed -n '
 11675     /[$]LINENO/=
 11676   ' <$as_myself |
 11677     sed '
 11678       s/[$]LINENO.*/&-/
 11679       t lineno
 11681       :lineno
 11683       :loop
 11684       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 11685       t loop
 11686       s/-\n.*//
 11687     ' >$as_me.lineno &&
 11688   chmod +x "$as_me.lineno" ||
 11689     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 11690    { (exit 1); exit 1; }; }
 11692   # Don't try to exec as it changes $[0], causing all sort of problems
 11693   # (the dirname of $[0] is not the place where we might find the
 11694   # original and so on.  Autoconf is especially sensitive to this).
 11695   . "./$as_me.lineno"
 11696   # Exit status is that of the last command.
 11697   exit
 11701 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 11702   as_dirname=dirname
 11703 else
 11704   as_dirname=false
 11705 fi
 11707 ECHO_C= ECHO_N= ECHO_T=
 11708 case `echo -n x` in
 11709 -n*)
 11710   case `echo 'x\c'` in
 11711   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 11712   *)   ECHO_C='\c';;
 11713   esac;;
 11714 *)
 11715   ECHO_N='-n';;
 11716 esac
 11717 if expr a : '\(a\)' >/dev/null 2>&1 &&
 11718    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 11719   as_expr=expr
 11720 else
 11721   as_expr=false
 11722 fi
 11724 rm -f conf$$ conf$$.exe conf$$.file
 11725 if test -d conf$$.dir; then
 11726   rm -f conf$$.dir/conf$$.file
 11727 else
 11728   rm -f conf$$.dir
 11729   mkdir conf$$.dir 2>/dev/null
 11730 fi
 11731 if (echo >conf$$.file) 2>/dev/null; then
 11732   if ln -s conf$$.file conf$$ 2>/dev/null; then
 11733     as_ln_s='ln -s'
 11734     # ... but there are two gotchas:
 11735     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 11736     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 11737     # In both cases, we have to default to `cp -p'.
 11738     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 11739       as_ln_s='cp -p'
 11740   elif ln conf$$.file conf$$ 2>/dev/null; then
 11741     as_ln_s=ln
 11742   else
 11743     as_ln_s='cp -p'
 11744   fi
 11745 else
 11746   as_ln_s='cp -p'
 11747 fi
 11748 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 11749 rmdir conf$$.dir 2>/dev/null
 11751 if mkdir -p . 2>/dev/null; then
 11752   as_mkdir_p=:
 11753 else
 11754   test -d ./-p && rmdir ./-p
 11755   as_mkdir_p=false
 11756 fi
 11758 if test -x / >/dev/null 2>&1; then
 11759   as_test_x='test -x'
 11760 else
 11761   if ls -dL / >/dev/null 2>&1; then
 11762     as_ls_L_option=L
 11763   else
 11764     as_ls_L_option=
 11765   fi
 11766   as_test_x='
 11767     eval sh -c '\''
 11768       if test -d "$1"; then
 11769 	test -d "$1/.";
 11770       else
 11771 	case $1 in
 11772 	-*)set "./$1";;
 11773 	esac;
 11774 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 11775 	???[sx]*):;;*)false;;esac;fi
 11776     '\'' sh
 11778 fi
 11779 as_executable_p=$as_test_x
 11781 # Sed expression to map a string onto a valid CPP name.
 11782 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 11784 # Sed expression to map a string onto a valid variable name.
 11785 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 11788 exec 6>&1
 11790 # Save the log message, to keep $[0] and so on meaningful, and to
 11791 # report actual input values of CONFIG_FILES etc. instead of their
 11792 # values after options handling.
 11793 ac_log="
 11794 This file was extended by $as_me, which was
 11795 generated by GNU Autoconf 2.62.  Invocation command line was
 11797   CONFIG_FILES    = $CONFIG_FILES
 11798   CONFIG_HEADERS  = $CONFIG_HEADERS
 11799   CONFIG_LINKS    = $CONFIG_LINKS
 11800   CONFIG_COMMANDS = $CONFIG_COMMANDS
 11801   $ $0 $@
 11803 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 11806 _ACEOF
 11808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11809 # Files that config.status was made for.
 11810 config_files="$ac_config_files"
 11811 config_headers="$ac_config_headers"
 11812 config_commands="$ac_config_commands"
 11814 _ACEOF
 11816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11817 ac_cs_usage="\
 11818 \`$as_me' instantiates files from templates according to the
 11819 current configuration.
 11821 Usage: $0 [OPTIONS] [FILE]...
 11823   -h, --help       print this help, then exit
 11824   -V, --version    print version number and configuration settings, then exit
 11825   -q, --quiet      do not print progress messages
 11826   -d, --debug      don't remove temporary files
 11827       --recheck    update $as_me by reconfiguring in the same conditions
 11828   --file=FILE[:TEMPLATE]
 11829                    instantiate the configuration file FILE
 11830   --header=FILE[:TEMPLATE]
 11831                    instantiate the configuration header FILE
 11833 Configuration files:
 11834 $config_files
 11836 Configuration headers:
 11837 $config_headers
 11839 Configuration commands:
 11840 $config_commands
 11842 Report bugs to <bug-autoconf@gnu.org>."
 11844 _ACEOF
 11845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11846 ac_cs_version="\\
 11847 config.status
 11848 configured by $0, generated by GNU Autoconf 2.62,
 11849   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 11851 Copyright (C) 2008 Free Software Foundation, Inc.
 11852 This config.status script is free software; the Free Software Foundation
 11853 gives unlimited permission to copy, distribute and modify it."
 11855 ac_pwd='$ac_pwd'
 11856 srcdir='$srcdir'
 11857 INSTALL='$INSTALL'
 11858 AWK='$AWK'
 11859 test -n "\$AWK" || AWK=awk
 11860 _ACEOF
 11862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11863 # The default lists apply if the user does not specify any file.
 11864 ac_need_defaults=:
 11865 while test $# != 0
 11866 do
 11867   case $1 in
 11868   --*=*)
 11869     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 11870     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 11871     ac_shift=:
 11872     ;;
 11873   *)
 11874     ac_option=$1
 11875     ac_optarg=$2
 11876     ac_shift=shift
 11877     ;;
 11878   esac
 11880   case $ac_option in
 11881   # Handling of the options.
 11882   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 11883     ac_cs_recheck=: ;;
 11884   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 11885     $as_echo "$ac_cs_version"; exit ;;
 11886   --debug | --debu | --deb | --de | --d | -d )
 11887     debug=: ;;
 11888   --file | --fil | --fi | --f )
 11889     $ac_shift
 11890     case $ac_optarg in
 11891     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 11892     esac
 11893     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 11894     ac_need_defaults=false;;
 11895   --header | --heade | --head | --hea )
 11896     $ac_shift
 11897     case $ac_optarg in
 11898     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 11899     esac
 11900     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 11901     ac_need_defaults=false;;
 11902   --he | --h)
 11903     # Conflict between --help and --header
 11904     { $as_echo "$as_me: error: ambiguous option: $1
 11905 Try \`$0 --help' for more information." >&2
 11906    { (exit 1); exit 1; }; };;
 11907   --help | --hel | -h )
 11908     $as_echo "$ac_cs_usage"; exit ;;
 11909   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 11910   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 11911     ac_cs_silent=: ;;
 11913   # This is an error.
 11914   -*) { $as_echo "$as_me: error: unrecognized option: $1
 11915 Try \`$0 --help' for more information." >&2
 11916    { (exit 1); exit 1; }; } ;;
 11918   *) ac_config_targets="$ac_config_targets $1"
 11919      ac_need_defaults=false ;;
 11921   esac
 11922   shift
 11923 done
 11925 ac_configure_extra_args=
 11927 if $ac_cs_silent; then
 11928   exec 6>/dev/null
 11929   ac_configure_extra_args="$ac_configure_extra_args --silent"
 11930 fi
 11932 _ACEOF
 11933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11934 if \$ac_cs_recheck; then
 11935   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 11936   shift
 11937   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 11938   CONFIG_SHELL='$SHELL'
 11939   export CONFIG_SHELL
 11940   exec "\$@"
 11941 fi
 11943 _ACEOF
 11944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11945 exec 5>>config.log
 11947   echo
 11948   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 11949 ## Running $as_me. ##
 11950 _ASBOX
 11951   $as_echo "$ac_log"
 11952 } >&5
 11954 _ACEOF
 11955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11957 # INIT-COMMANDS
 11959 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 11962 _ACEOF
 11964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11966 # Handling of arguments.
 11967 for ac_config_target in $ac_config_targets
 11968 do
 11969   case $ac_config_target in
 11970     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 11971     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 11972     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 11973     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 11974     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 11975     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 11976     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 11978   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 11979 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 11980    { (exit 1); exit 1; }; };;
 11981   esac
 11982 done
 11985 # If the user did not use the arguments to specify the items to instantiate,
 11986 # then the envvar interface is used.  Set only those that are not.
 11987 # We use the long form for the default assignment because of an extremely
 11988 # bizarre bug on SunOS 4.1.3.
 11989 if $ac_need_defaults; then
 11990   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 11991   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 11992   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 11993 fi
 11995 # Have a temporary directory for convenience.  Make it in the build tree
 11996 # simply because there is no reason against having it here, and in addition,
 11997 # creating and moving files from /tmp can sometimes cause problems.
 11998 # Hook for its removal unless debugging.
 11999 # Note that there is a small window in which the directory will not be cleaned:
 12000 # after its creation but before its name has been assigned to `$tmp'.
 12001 $debug ||
 12003   tmp=
 12004   trap 'exit_status=$?
 12005   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 12006 ' 0
 12007   trap '{ (exit 1); exit 1; }' 1 2 13 15
 12009 # Create a (secure) tmp directory for tmp files.
 12012   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 12013   test -n "$tmp" && test -d "$tmp"
 12014 }  ||
 12016   tmp=./conf$$-$RANDOM
 12017   (umask 077 && mkdir "$tmp")
 12018 } ||
 12020    $as_echo "$as_me: cannot create a temporary directory in ." >&2
 12021    { (exit 1); exit 1; }
 12024 # Set up the scripts for CONFIG_FILES section.
 12025 # No need to generate them if there are no CONFIG_FILES.
 12026 # This happens for instance with `./config.status config.h'.
 12027 if test -n "$CONFIG_FILES"; then
 12030 ac_cr='
 12032 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 12033 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 12034   ac_cs_awk_cr='\\r'
 12035 else
 12036   ac_cs_awk_cr=$ac_cr
 12037 fi
 12039 echo 'BEGIN {' >"$tmp/subs1.awk" &&
 12040 _ACEOF
 12044   echo "cat >conf$$subs.awk <<_ACEOF" &&
 12045   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 12046   echo "_ACEOF"
 12047 } >conf$$subs.sh ||
 12048   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 12049 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 12050    { (exit 1); exit 1; }; }
 12051 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 12052 ac_delim='%!_!# '
 12053 for ac_last_try in false false false false false :; do
 12054   . ./conf$$subs.sh ||
 12055     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 12056 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 12057    { (exit 1); exit 1; }; }
 12059   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
 12060     break
 12061   elif $ac_last_try; then
 12062     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 12063 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 12064    { (exit 1); exit 1; }; }
 12065   else
 12066     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 12067   fi
 12068 done
 12069 rm -f conf$$subs.sh
 12071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12072 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 12073 _ACEOF
 12074 sed -n '
 12076 s/^/S["/; s/!.*/"]=/
 12079 s/^[^!]*!//
 12080 :repl
 12081 t repl
 12082 s/'"$ac_delim"'$//
 12083 t delim
 12084 :nl
 12086 s/\(.\{148\}\).*/\1/
 12087 t more1
 12088 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 12091 b repl
 12092 :more1
 12093 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 12096 s/.\{148\}//
 12097 t nl
 12098 :delim
 12100 s/\(.\{148\}\).*/\1/
 12101 t more2
 12102 s/["\\]/\\&/g; s/^/"/; s/$/"/
 12105 :more2
 12106 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 12109 s/.\{148\}//
 12110 t delim
 12111 ' <conf$$subs.awk | sed '
 12112 /^[^""]/{
 12114   s/\n//
 12116 ' >>$CONFIG_STATUS || ac_write_fail=1
 12117 rm -f conf$$subs.awk
 12118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12119 _ACAWK
 12120 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 12121   for (key in S) S_is_set[key] = 1
 12122   FS = ""
 12126   line = $ 0
 12127   nfields = split(line, field, "@")
 12128   substed = 0
 12129   len = length(field[1])
 12130   for (i = 2; i < nfields; i++) {
 12131     key = field[i]
 12132     keylen = length(key)
 12133     if (S_is_set[key]) {
 12134       value = S[key]
 12135       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 12136       len += length(value) + length(field[++i])
 12137       substed = 1
 12138     } else
 12139       len += 1 + keylen
 12142   print line
 12145 _ACAWK
 12146 _ACEOF
 12147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12148 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 12149   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 12150 else
 12151   cat
 12152 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 12153   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 12154 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
 12155    { (exit 1); exit 1; }; }
 12156 _ACEOF
 12158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 12159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 12160 # trailing colons and then remove the whole line if VPATH becomes empty
 12161 # (actually we leave an empty line to preserve line numbers).
 12162 if test "x$srcdir" = x.; then
 12163   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 12164 s/:*\$(srcdir):*/:/
 12165 s/:*\${srcdir}:*/:/
 12166 s/:*@srcdir@:*/:/
 12167 s/^\([^=]*=[	 ]*\):*/\1/
 12168 s/:*$//
 12169 s/^[^=]*=[	 ]*$//
 12170 }'
 12171 fi
 12173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12174 fi # test -n "$CONFIG_FILES"
 12176 # Set up the scripts for CONFIG_HEADERS section.
 12177 # No need to generate them if there are no CONFIG_HEADERS.
 12178 # This happens for instance with `./config.status Makefile'.
 12179 if test -n "$CONFIG_HEADERS"; then
 12180 cat >"$tmp/defines.awk" <<\_ACAWK ||
 12181 BEGIN {
 12182 _ACEOF
 12184 # Transform confdefs.h into an awk script `defines.awk', embedded as
 12185 # here-document in config.status, that substitutes the proper values into
 12186 # config.h.in to produce config.h.
 12188 # Create a delimiter string that does not exist in confdefs.h, to ease
 12189 # handling of long lines.
 12190 ac_delim='%!_!# '
 12191 for ac_last_try in false false :; do
 12192   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 12193   if test -z "$ac_t"; then
 12194     break
 12195   elif $ac_last_try; then
 12196     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 12197 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 12198    { (exit 1); exit 1; }; }
 12199   else
 12200     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 12201   fi
 12202 done
 12204 # For the awk script, D is an array of macro values keyed by name,
 12205 # likewise P contains macro parameters if any.  Preserve backslash
 12206 # newline sequences.
 12208 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 12209 sed -n '
 12210 s/.\{148\}/&'"$ac_delim"'/g
 12211 t rset
 12212 :rset
 12213 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 12214 t def
 12216 :def
 12217 s/\\$//
 12218 t bsnl
 12219 s/["\\]/\\&/g
 12220 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 12221 D["\1"]=" \3"/p
 12222 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 12224 :bsnl
 12225 s/["\\]/\\&/g
 12226 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 12227 D["\1"]=" \3\\\\\\n"\\/p
 12228 t cont
 12229 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 12230 t cont
 12232 :cont
 12234 s/.\{148\}/&'"$ac_delim"'/g
 12235 t clear
 12236 :clear
 12237 s/\\$//
 12238 t bsnlc
 12239 s/["\\]/\\&/g; s/^/"/; s/$/"/p
 12241 :bsnlc
 12242 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 12243 b cont
 12244 ' <confdefs.h | sed '
 12245 s/'"$ac_delim"'/"\\\
 12246 "/g' >>$CONFIG_STATUS || ac_write_fail=1
 12248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12249   for (key in D) D_is_set[key] = 1
 12250   FS = ""
 12252 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 12253   line = \$ 0
 12254   split(line, arg, " ")
 12255   if (arg[1] == "#") {
 12256     defundef = arg[2]
 12257     mac1 = arg[3]
 12258   } else {
 12259     defundef = substr(arg[1], 2)
 12260     mac1 = arg[2]
 12262   split(mac1, mac2, "(") #)
 12263   macro = mac2[1]
 12264   if (D_is_set[macro]) {
 12265     # Preserve the white space surrounding the "#".
 12266     prefix = substr(line, 1, index(line, defundef) - 1)
 12267     print prefix "define", macro P[macro] D[macro]
 12268     next
 12269   } else {
 12270     # Replace #undef with comments.  This is necessary, for example,
 12271     # in the case of _POSIX_SOURCE, which is predefined and required
 12272     # on some systems where configure will not decide to define it.
 12273     if (defundef == "undef") {
 12274       print "/*", line, "*/"
 12275       next
 12279 { print }
 12280 _ACAWK
 12281 _ACEOF
 12282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12283   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 12284 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 12285    { (exit 1); exit 1; }; }
 12286 fi # test -n "$CONFIG_HEADERS"
 12289 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 12290 shift
 12291 for ac_tag
 12292 do
 12293   case $ac_tag in
 12294   :[FHLC]) ac_mode=$ac_tag; continue;;
 12295   esac
 12296   case $ac_mode$ac_tag in
 12297   :[FHL]*:*);;
 12298   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 12299 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 12300    { (exit 1); exit 1; }; };;
 12301   :[FH]-) ac_tag=-:-;;
 12302   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 12303   esac
 12304   ac_save_IFS=$IFS
 12305   IFS=:
 12306   set x $ac_tag
 12307   IFS=$ac_save_IFS
 12308   shift
 12309   ac_file=$1
 12310   shift
 12312   case $ac_mode in
 12313   :L) ac_source=$1;;
 12314   :[FH])
 12315     ac_file_inputs=
 12316     for ac_f
 12317     do
 12318       case $ac_f in
 12319       -) ac_f="$tmp/stdin";;
 12320       *) # Look for the file first in the build tree, then in the source tree
 12321 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 12322 	 # because $ac_f cannot contain `:'.
 12323 	 test -f "$ac_f" ||
 12324 	   case $ac_f in
 12325 	   [\\/$]*) false;;
 12326 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 12327 	   esac ||
 12328 	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 12329 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 12330    { (exit 1); exit 1; }; };;
 12331       esac
 12332       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 12333       ac_file_inputs="$ac_file_inputs '$ac_f'"
 12334     done
 12336     # Let's still pretend it is `configure' which instantiates (i.e., don't
 12337     # use $as_me), people would be surprised to read:
 12338     #    /* config.h.  Generated by config.status.  */
 12339     configure_input='Generated from '`
 12340 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 12341 	`' by configure.'
 12342     if test x"$ac_file" != x-; then
 12343       configure_input="$ac_file.  $configure_input"
 12344       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 12345 $as_echo "$as_me: creating $ac_file" >&6;}
 12346     fi
 12347     # Neutralize special characters interpreted by sed in replacement strings.
 12348     case $configure_input in #(
 12349     *\&* | *\|* | *\\* )
 12350        ac_sed_conf_input=`$as_echo "$configure_input" |
 12351        sed 's/[\\\\&|]/\\\\&/g'`;; #(
 12352     *) ac_sed_conf_input=$configure_input;;
 12353     esac
 12355     case $ac_tag in
 12356     *:-:* | *:-) cat >"$tmp/stdin" \
 12357       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12358 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12359    { (exit 1); exit 1; }; } ;;
 12360     esac
 12361     ;;
 12362   esac
 12364   ac_dir=`$as_dirname -- "$ac_file" ||
 12365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12366 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 12367 	 X"$ac_file" : 'X\(//\)$' \| \
 12368 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 12369 $as_echo X"$ac_file" |
 12370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12371 	    s//\1/
 12374 	  /^X\(\/\/\)[^/].*/{
 12375 	    s//\1/
 12378 	  /^X\(\/\/\)$/{
 12379 	    s//\1/
 12382 	  /^X\(\/\).*/{
 12383 	    s//\1/
 12386 	  s/.*/./; q'`
 12387   { as_dir="$ac_dir"
 12388   case $as_dir in #(
 12389   -*) as_dir=./$as_dir;;
 12390   esac
 12391   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 12392     as_dirs=
 12393     while :; do
 12394       case $as_dir in #(
 12395       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 12396       *) as_qdir=$as_dir;;
 12397       esac
 12398       as_dirs="'$as_qdir' $as_dirs"
 12399       as_dir=`$as_dirname -- "$as_dir" ||
 12400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12401 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 12402 	 X"$as_dir" : 'X\(//\)$' \| \
 12403 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 12404 $as_echo X"$as_dir" |
 12405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12406 	    s//\1/
 12409 	  /^X\(\/\/\)[^/].*/{
 12410 	    s//\1/
 12413 	  /^X\(\/\/\)$/{
 12414 	    s//\1/
 12417 	  /^X\(\/\).*/{
 12418 	    s//\1/
 12421 	  s/.*/./; q'`
 12422       test -d "$as_dir" && break
 12423     done
 12424     test -z "$as_dirs" || eval "mkdir $as_dirs"
 12425   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 12426 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 12427    { (exit 1); exit 1; }; }; }
 12428   ac_builddir=.
 12430 case "$ac_dir" in
 12431 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 12432 *)
 12433   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 12434   # A ".." for each directory in $ac_dir_suffix.
 12435   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 12436   case $ac_top_builddir_sub in
 12437   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 12438   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 12439   esac ;;
 12440 esac
 12441 ac_abs_top_builddir=$ac_pwd
 12442 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 12443 # for backward compatibility:
 12444 ac_top_builddir=$ac_top_build_prefix
 12446 case $srcdir in
 12447   .)  # We are building in place.
 12448     ac_srcdir=.
 12449     ac_top_srcdir=$ac_top_builddir_sub
 12450     ac_abs_top_srcdir=$ac_pwd ;;
 12451   [\\/]* | ?:[\\/]* )  # Absolute name.
 12452     ac_srcdir=$srcdir$ac_dir_suffix;
 12453     ac_top_srcdir=$srcdir
 12454     ac_abs_top_srcdir=$srcdir ;;
 12455   *) # Relative name.
 12456     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 12457     ac_top_srcdir=$ac_top_build_prefix$srcdir
 12458     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 12459 esac
 12460 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 12463   case $ac_mode in
 12464   :F)
 12466   # CONFIG_FILE
 12469   case $INSTALL in
 12470   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 12471   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 12472   esac
 12473 _ACEOF
 12475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12476 # If the template does not know about datarootdir, expand it.
 12477 # FIXME: This hack should be removed a few years after 2.60.
 12478 ac_datarootdir_hack=; ac_datarootdir_seen=
 12480 ac_sed_dataroot='
 12481 /datarootdir/ {
 12485 /@datadir@/p
 12486 /@docdir@/p
 12487 /@infodir@/p
 12488 /@localedir@/p
 12489 /@mandir@/p
 12491 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 12492 *datarootdir*) ac_datarootdir_seen=yes;;
 12493 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 12494   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 12495 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 12496 _ACEOF
 12497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12498   ac_datarootdir_hack='
 12499   s&@datadir@&$datadir&g
 12500   s&@docdir@&$docdir&g
 12501   s&@infodir@&$infodir&g
 12502   s&@localedir@&$localedir&g
 12503   s&@mandir@&$mandir&g
 12504     s&\\\${datarootdir}&$datarootdir&g' ;;
 12505 esac
 12506 _ACEOF
 12508 # Neutralize VPATH when `$srcdir' = `.'.
 12509 # Shell code in configure.ac might set extrasub.
 12510 # FIXME: do we really want to maintain this feature?
 12511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12512 ac_sed_extra="$ac_vpsub
 12513 $extrasub
 12514 _ACEOF
 12515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12516 :t
 12517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 12518 s|@configure_input@|$ac_sed_conf_input|;t t
 12519 s&@top_builddir@&$ac_top_builddir_sub&;t t
 12520 s&@top_build_prefix@&$ac_top_build_prefix&;t t
 12521 s&@srcdir@&$ac_srcdir&;t t
 12522 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 12523 s&@top_srcdir@&$ac_top_srcdir&;t t
 12524 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 12525 s&@builddir@&$ac_builddir&;t t
 12526 s&@abs_builddir@&$ac_abs_builddir&;t t
 12527 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 12528 s&@INSTALL@&$ac_INSTALL&;t t
 12529 $ac_datarootdir_hack
 12531 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 12532   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12533 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12534    { (exit 1); exit 1; }; }
 12536 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 12537   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 12538   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 12539   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 12540 which seems to be undefined.  Please make sure it is defined." >&5
 12541 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 12542 which seems to be undefined.  Please make sure it is defined." >&2;}
 12544   rm -f "$tmp/stdin"
 12545   case $ac_file in
 12546   -) cat "$tmp/out" && rm -f "$tmp/out";;
 12547   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 12548   esac \
 12549   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12550 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12551    { (exit 1); exit 1; }; }
 12552  ;;
 12553   :H)
 12555   # CONFIG_HEADER
 12557   if test x"$ac_file" != x-; then
 12559       $as_echo "/* $configure_input  */" \
 12560       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 12561     } >"$tmp/config.h" \
 12562       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12563 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12564    { (exit 1); exit 1; }; }
 12565     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 12566       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 12567 $as_echo "$as_me: $ac_file is unchanged" >&6;}
 12568     else
 12569       rm -f "$ac_file"
 12570       mv "$tmp/config.h" "$ac_file" \
 12571 	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12572 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12573    { (exit 1); exit 1; }; }
 12574     fi
 12575   else
 12576     $as_echo "/* $configure_input  */" \
 12577       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 12578       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 12579 $as_echo "$as_me: error: could not create -" >&2;}
 12580    { (exit 1); exit 1; }; }
 12581   fi
 12582 # Compute "$ac_file"'s index in $config_headers.
 12583 _am_stamp_count=1
 12584 for _am_header in $config_headers :; do
 12585   case $_am_header in
 12586     "$ac_file" | "$ac_file":* )
 12587       break ;;
 12588     * )
 12589       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 12590   esac
 12591 done
 12592 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
 12593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12594 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 12595 	 X"$ac_file" : 'X\(//\)$' \| \
 12596 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 12597 $as_echo X"$ac_file" |
 12598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12599 	    s//\1/
 12602 	  /^X\(\/\/\)[^/].*/{
 12603 	    s//\1/
 12606 	  /^X\(\/\/\)$/{
 12607 	    s//\1/
 12610 	  /^X\(\/\).*/{
 12611 	    s//\1/
 12614 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 12615  ;;
 12617   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 12618 $as_echo "$as_me: executing $ac_file commands" >&6;}
 12619  ;;
 12620   esac
 12623   case $ac_file$ac_mode in
 12624     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 12625   # Strip MF so we end up with the name of the file.
 12626   mf=`echo "$mf" | sed -e 's/:.*$//'`
 12627   # Check whether this is an Automake generated Makefile or not.
 12628   # We used to match only the files named `Makefile.in', but
 12629   # some people rename them; so instead we look at the file content.
 12630   # Grep'ing the first line is not enough: some people post-process
 12631   # each Makefile.in and add a new line on top of each file to say so.
 12632   # So let's grep whole file.
 12633   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 12634     dirpart=`$as_dirname -- "$mf" ||
 12635 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12636 	 X"$mf" : 'X\(//\)[^/]' \| \
 12637 	 X"$mf" : 'X\(//\)$' \| \
 12638 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 12639 $as_echo X"$mf" |
 12640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12641 	    s//\1/
 12644 	  /^X\(\/\/\)[^/].*/{
 12645 	    s//\1/
 12648 	  /^X\(\/\/\)$/{
 12649 	    s//\1/
 12652 	  /^X\(\/\).*/{
 12653 	    s//\1/
 12656 	  s/.*/./; q'`
 12657   else
 12658     continue
 12659   fi
 12660   # Extract the definition of DEPDIR, am__include, and am__quote
 12661   # from the Makefile without running `make'.
 12662   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 12663   test -z "$DEPDIR" && continue
 12664   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 12665   test -z "am__include" && continue
 12666   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 12667   # When using ansi2knr, U may be empty or an underscore; expand it
 12668   U=`sed -n 's/^U = //p' < "$mf"`
 12669   # Find all dependency output files, they are included files with
 12670   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 12671   # simplest approach to changing $(DEPDIR) to its actual value in the
 12672   # expansion.
 12673   for file in `sed -n "
 12674     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 12675        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 12676     # Make sure the directory exists.
 12677     test -f "$dirpart/$file" && continue
 12678     fdir=`$as_dirname -- "$file" ||
 12679 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12680 	 X"$file" : 'X\(//\)[^/]' \| \
 12681 	 X"$file" : 'X\(//\)$' \| \
 12682 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 12683 $as_echo X"$file" |
 12684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12685 	    s//\1/
 12688 	  /^X\(\/\/\)[^/].*/{
 12689 	    s//\1/
 12692 	  /^X\(\/\/\)$/{
 12693 	    s//\1/
 12696 	  /^X\(\/\).*/{
 12697 	    s//\1/
 12700 	  s/.*/./; q'`
 12701     { as_dir=$dirpart/$fdir
 12702   case $as_dir in #(
 12703   -*) as_dir=./$as_dir;;
 12704   esac
 12705   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 12706     as_dirs=
 12707     while :; do
 12708       case $as_dir in #(
 12709       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 12710       *) as_qdir=$as_dir;;
 12711       esac
 12712       as_dirs="'$as_qdir' $as_dirs"
 12713       as_dir=`$as_dirname -- "$as_dir" ||
 12714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12715 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 12716 	 X"$as_dir" : 'X\(//\)$' \| \
 12717 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 12718 $as_echo X"$as_dir" |
 12719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12720 	    s//\1/
 12723 	  /^X\(\/\/\)[^/].*/{
 12724 	    s//\1/
 12727 	  /^X\(\/\/\)$/{
 12728 	    s//\1/
 12731 	  /^X\(\/\).*/{
 12732 	    s//\1/
 12735 	  s/.*/./; q'`
 12736       test -d "$as_dir" && break
 12737     done
 12738     test -z "$as_dirs" || eval "mkdir $as_dirs"
 12739   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 12740 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 12741    { (exit 1); exit 1; }; }; }
 12742     # echo "creating $dirpart/$file"
 12743     echo '# dummy' > "$dirpart/$file"
 12744   done
 12745 done
 12746  ;;
 12747     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 12748         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 12749       esac ;;
 12751   esac
 12752 done # for ac_tag
 12755 { (exit 0); exit 0; }
 12756 _ACEOF
 12757 chmod +x $CONFIG_STATUS
 12758 ac_clean_files=$ac_clean_files_save
 12760 test $ac_write_fail = 0 ||
 12761   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 12762 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 12763    { (exit 1); exit 1; }; }
 12766 # configure is writing to config.log, and then calls config.status.
 12767 # config.status does its own redirection, appending to config.log.
 12768 # Unfortunately, on DOS this fails, as config.log is still kept open
 12769 # by configure, so config.status won't be able to write to it; its
 12770 # output is simply discarded.  So we exec the FD to /dev/null,
 12771 # effectively closing config.log, so it can be properly (re)opened and
 12772 # appended to by config.status.  When coming back to configure, we
 12773 # need to make the FD available again.
 12774 if test "$no_create" != yes; then
 12775   ac_cs_success=:
 12776   ac_config_status_args=
 12777   test "$silent" = yes &&
 12778     ac_config_status_args="$ac_config_status_args --quiet"
 12779   exec 5>/dev/null
 12780   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 12781   exec 5>>config.log
 12782   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 12783   # would make configure fail if this is the last instruction.
 12784   $ac_cs_success || { (exit 1); exit 1; }
 12785 fi
 12786 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 12787   { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
 12788 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
 12789 fi
 12793 echo
 12794 echo "Configuration complete"
 12795 echo
 12797 if test "x$HAVE_GTK" = x; then
 12798   if test "x$HAVE_COCOA" = x; then
 12799      echo "  User interface: none"
 12800   else
 12801      echo "  User interface: Cocoa"
 12802   fi
 12803 else
 12804   echo "  User interface: GTK"
 12805 fi
 12807 if test "x$SH4_TRANSLATOR" = "x"; then
 12808   echo "  SH4 translator: None (emulation core only)"
 12809 else
 12810   echo "  SH4 translator: $SH4_TRANSLATOR"
 12811 fi
 12813 if test "x$VIDEO_DRIVERS" = "x"; then
 12814    echo "  Video drivers: none (no supported GL found)"
 12815 else
 12816    echo "  Video drivers: $VIDEO_DRIVERS"
 12817 fi
 12819 if test "x$AUDIO_DRIVERS" = "x"; then
 12820    echo "  Audio drivers: none (no supported output devices found)"
 12821 else
 12822    echo "  Audio drivers: $AUDIO_DRIVERS"
 12823 fi
.