Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 709:18c39a8e504c
prev704:2c1d6f8e69e7
next714:009591ac251e
author nkeynes
date Sun Jun 29 03:10:19 2008 +0000 (15 years ago)
permissions -rwxr-xr-x
last change Fix make distclean
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 CDROM_OSX_TRUE
   768 CDROM_OSX_FALSE
   769 CDROM_NONE_TRUE
   770 CDROM_NONE_FALSE
   771 JOY_LINUX_TRUE
   772 JOY_LINUX_FALSE
   773 SHCC
   774 SHLD
   775 SHOBJCOPY
   776 ARMCC
   777 ARMLD
   778 ARMOBJCOPY
   779 BUILD_SYSTEST_TRUE
   780 BUILD_SYSTEST_FALSE
   781 BUILD_ARMTEST_TRUE
   782 BUILD_ARMTEST_FALSE
   783 GETTEXT_PACKAGE
   784 USE_NLS
   785 MSGFMT
   786 MSGFMT_OPTS
   787 GMSGFMT
   788 XGETTEXT
   789 CATALOGS
   790 CATOBJEXT
   791 DATADIRNAME
   792 GMOFILES
   793 INSTOBJEXT
   794 INTLLIBS
   795 PO_IN_DATADIR_TRUE
   796 PO_IN_DATADIR_FALSE
   797 POFILES
   798 POSUB
   799 MKINSTALLDIRS
   800 LIBOBJS
   801 LTLIBOBJS'
   802 ac_subst_files=''
   803 ac_user_opts='
   804 enable_option_checking
   805 enable_maintainer_mode
   806 enable_dependency_tracking
   807 enable_trace
   808 enable_watch
   809 enable_sh4stats
   810 with_osmesa
   811 with_gtk
   812 '
   813       ac_precious_vars='build_alias
   814 host_alias
   815 target_alias
   816 CC
   817 CFLAGS
   818 LDFLAGS
   819 LIBS
   820 CPPFLAGS
   821 CCAS
   822 CCASFLAGS
   823 CPP
   824 PKG_CONFIG
   825 LIBPNG_CFLAGS
   826 LIBPNG_LIBS
   827 GLIB_CFLAGS
   828 GLIB_LIBS
   829 GTK_CFLAGS
   830 GTK_LIBS
   831 PULSE_CFLAGS
   832 PULSE_LIBS
   833 ESOUND_CFLAGS
   834 ESOUND_LIBS
   835 ALSA_CFLAGS
   836 ALSA_LIBS'
   839 # Initialize some variables set by options.
   840 ac_init_help=
   841 ac_init_version=false
   842 ac_unrecognized_opts=
   843 ac_unrecognized_sep=
   844 # The variables have the same names as the options, with
   845 # dashes changed to underlines.
   846 cache_file=/dev/null
   847 exec_prefix=NONE
   848 no_create=
   849 no_recursion=
   850 prefix=NONE
   851 program_prefix=NONE
   852 program_suffix=NONE
   853 program_transform_name=s,x,x,
   854 silent=
   855 site=
   856 srcdir=
   857 verbose=
   858 x_includes=NONE
   859 x_libraries=NONE
   861 # Installation directory options.
   862 # These are left unexpanded so users can "make install exec_prefix=/foo"
   863 # and all the variables that are supposed to be based on exec_prefix
   864 # by default will actually change.
   865 # Use braces instead of parens because sh, perl, etc. also accept them.
   866 # (The list follows the same order as the GNU Coding Standards.)
   867 bindir='${exec_prefix}/bin'
   868 sbindir='${exec_prefix}/sbin'
   869 libexecdir='${exec_prefix}/libexec'
   870 datarootdir='${prefix}/share'
   871 datadir='${datarootdir}'
   872 sysconfdir='${prefix}/etc'
   873 sharedstatedir='${prefix}/com'
   874 localstatedir='${prefix}/var'
   875 includedir='${prefix}/include'
   876 oldincludedir='/usr/include'
   877 docdir='${datarootdir}/doc/${PACKAGE}'
   878 infodir='${datarootdir}/info'
   879 htmldir='${docdir}'
   880 dvidir='${docdir}'
   881 pdfdir='${docdir}'
   882 psdir='${docdir}'
   883 libdir='${exec_prefix}/lib'
   884 localedir='${datarootdir}/locale'
   885 mandir='${datarootdir}/man'
   887 ac_prev=
   888 ac_dashdash=
   889 for ac_option
   890 do
   891   # If the previous option needs an argument, assign it.
   892   if test -n "$ac_prev"; then
   893     eval $ac_prev=\$ac_option
   894     ac_prev=
   895     continue
   896   fi
   898   case $ac_option in
   899   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   900   *)	ac_optarg=yes ;;
   901   esac
   903   # Accept the important Cygnus configure options, so we can diagnose typos.
   905   case $ac_dashdash$ac_option in
   906   --)
   907     ac_dashdash=yes ;;
   909   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   910     ac_prev=bindir ;;
   911   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   912     bindir=$ac_optarg ;;
   914   -build | --build | --buil | --bui | --bu)
   915     ac_prev=build_alias ;;
   916   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   917     build_alias=$ac_optarg ;;
   919   -cache-file | --cache-file | --cache-fil | --cache-fi \
   920   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   921     ac_prev=cache_file ;;
   922   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   923   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   924     cache_file=$ac_optarg ;;
   926   --config-cache | -C)
   927     cache_file=config.cache ;;
   929   -datadir | --datadir | --datadi | --datad)
   930     ac_prev=datadir ;;
   931   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   932     datadir=$ac_optarg ;;
   934   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   935   | --dataroo | --dataro | --datar)
   936     ac_prev=datarootdir ;;
   937   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   938   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   939     datarootdir=$ac_optarg ;;
   941   -disable-* | --disable-*)
   942     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   943     # Reject names that are not valid shell variable names.
   944     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   945       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   946    { (exit 1); exit 1; }; }
   947     ac_useropt_orig=$ac_useropt
   948     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   949     case $ac_user_opts in
   950       *"
   951 "enable_$ac_useropt"
   952 "*) ;;
   953       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   954 	 ac_unrecognized_sep=', ';;
   955     esac
   956     eval enable_$ac_useropt=no ;;
   958   -docdir | --docdir | --docdi | --doc | --do)
   959     ac_prev=docdir ;;
   960   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   961     docdir=$ac_optarg ;;
   963   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   964     ac_prev=dvidir ;;
   965   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   966     dvidir=$ac_optarg ;;
   968   -enable-* | --enable-*)
   969     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   970     # Reject names that are not valid shell variable names.
   971     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   972       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   973    { (exit 1); exit 1; }; }
   974     ac_useropt_orig=$ac_useropt
   975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   976     case $ac_user_opts in
   977       *"
   978 "enable_$ac_useropt"
   979 "*) ;;
   980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   981 	 ac_unrecognized_sep=', ';;
   982     esac
   983     eval enable_$ac_useropt=\$ac_optarg ;;
   985   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   986   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   987   | --exec | --exe | --ex)
   988     ac_prev=exec_prefix ;;
   989   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   990   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   991   | --exec=* | --exe=* | --ex=*)
   992     exec_prefix=$ac_optarg ;;
   994   -gas | --gas | --ga | --g)
   995     # Obsolete; use --with-gas.
   996     with_gas=yes ;;
   998   -help | --help | --hel | --he | -h)
   999     ac_init_help=long ;;
  1000   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1001     ac_init_help=recursive ;;
  1002   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1003     ac_init_help=short ;;
  1005   -host | --host | --hos | --ho)
  1006     ac_prev=host_alias ;;
  1007   -host=* | --host=* | --hos=* | --ho=*)
  1008     host_alias=$ac_optarg ;;
  1010   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1011     ac_prev=htmldir ;;
  1012   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1013   | --ht=*)
  1014     htmldir=$ac_optarg ;;
  1016   -includedir | --includedir | --includedi | --included | --include \
  1017   | --includ | --inclu | --incl | --inc)
  1018     ac_prev=includedir ;;
  1019   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1020   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1021     includedir=$ac_optarg ;;
  1023   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1024     ac_prev=infodir ;;
  1025   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1026     infodir=$ac_optarg ;;
  1028   -libdir | --libdir | --libdi | --libd)
  1029     ac_prev=libdir ;;
  1030   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1031     libdir=$ac_optarg ;;
  1033   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1034   | --libexe | --libex | --libe)
  1035     ac_prev=libexecdir ;;
  1036   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1037   | --libexe=* | --libex=* | --libe=*)
  1038     libexecdir=$ac_optarg ;;
  1040   -localedir | --localedir | --localedi | --localed | --locale)
  1041     ac_prev=localedir ;;
  1042   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1043     localedir=$ac_optarg ;;
  1045   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1046   | --localstate | --localstat | --localsta | --localst | --locals)
  1047     ac_prev=localstatedir ;;
  1048   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1049   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1050     localstatedir=$ac_optarg ;;
  1052   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1053     ac_prev=mandir ;;
  1054   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1055     mandir=$ac_optarg ;;
  1057   -nfp | --nfp | --nf)
  1058     # Obsolete; use --without-fp.
  1059     with_fp=no ;;
  1061   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1062   | --no-cr | --no-c | -n)
  1063     no_create=yes ;;
  1065   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1066   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1067     no_recursion=yes ;;
  1069   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1070   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1071   | --oldin | --oldi | --old | --ol | --o)
  1072     ac_prev=oldincludedir ;;
  1073   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1074   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1075   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1076     oldincludedir=$ac_optarg ;;
  1078   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1079     ac_prev=prefix ;;
  1080   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1081     prefix=$ac_optarg ;;
  1083   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1084   | --program-pre | --program-pr | --program-p)
  1085     ac_prev=program_prefix ;;
  1086   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1087   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1088     program_prefix=$ac_optarg ;;
  1090   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1091   | --program-suf | --program-su | --program-s)
  1092     ac_prev=program_suffix ;;
  1093   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1094   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1095     program_suffix=$ac_optarg ;;
  1097   -program-transform-name | --program-transform-name \
  1098   | --program-transform-nam | --program-transform-na \
  1099   | --program-transform-n | --program-transform- \
  1100   | --program-transform | --program-transfor \
  1101   | --program-transfo | --program-transf \
  1102   | --program-trans | --program-tran \
  1103   | --progr-tra | --program-tr | --program-t)
  1104     ac_prev=program_transform_name ;;
  1105   -program-transform-name=* | --program-transform-name=* \
  1106   | --program-transform-nam=* | --program-transform-na=* \
  1107   | --program-transform-n=* | --program-transform-=* \
  1108   | --program-transform=* | --program-transfor=* \
  1109   | --program-transfo=* | --program-transf=* \
  1110   | --program-trans=* | --program-tran=* \
  1111   | --progr-tra=* | --program-tr=* | --program-t=*)
  1112     program_transform_name=$ac_optarg ;;
  1114   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1115     ac_prev=pdfdir ;;
  1116   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1117     pdfdir=$ac_optarg ;;
  1119   -psdir | --psdir | --psdi | --psd | --ps)
  1120     ac_prev=psdir ;;
  1121   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1122     psdir=$ac_optarg ;;
  1124   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1125   | -silent | --silent | --silen | --sile | --sil)
  1126     silent=yes ;;
  1128   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1129     ac_prev=sbindir ;;
  1130   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1131   | --sbi=* | --sb=*)
  1132     sbindir=$ac_optarg ;;
  1134   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1135   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1136   | --sharedst | --shareds | --shared | --share | --shar \
  1137   | --sha | --sh)
  1138     ac_prev=sharedstatedir ;;
  1139   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1140   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1141   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1142   | --sha=* | --sh=*)
  1143     sharedstatedir=$ac_optarg ;;
  1145   -site | --site | --sit)
  1146     ac_prev=site ;;
  1147   -site=* | --site=* | --sit=*)
  1148     site=$ac_optarg ;;
  1150   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1151     ac_prev=srcdir ;;
  1152   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1153     srcdir=$ac_optarg ;;
  1155   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1156   | --syscon | --sysco | --sysc | --sys | --sy)
  1157     ac_prev=sysconfdir ;;
  1158   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1159   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1160     sysconfdir=$ac_optarg ;;
  1162   -target | --target | --targe | --targ | --tar | --ta | --t)
  1163     ac_prev=target_alias ;;
  1164   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1165     target_alias=$ac_optarg ;;
  1167   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1168     verbose=yes ;;
  1170   -version | --version | --versio | --versi | --vers | -V)
  1171     ac_init_version=: ;;
  1173   -with-* | --with-*)
  1174     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1175     # Reject names that are not valid shell variable names.
  1176     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1177       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1178    { (exit 1); exit 1; }; }
  1179     ac_useropt_orig=$ac_useropt
  1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1181     case $ac_user_opts in
  1182       *"
  1183 "with_$ac_useropt"
  1184 "*) ;;
  1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1186 	 ac_unrecognized_sep=', ';;
  1187     esac
  1188     eval with_$ac_useropt=\$ac_optarg ;;
  1190   -without-* | --without-*)
  1191     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1192     # Reject names that are not valid shell variable names.
  1193     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1194       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1195    { (exit 1); exit 1; }; }
  1196     ac_useropt_orig=$ac_useropt
  1197     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1198     case $ac_user_opts in
  1199       *"
  1200 "with_$ac_useropt"
  1201 "*) ;;
  1202       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1203 	 ac_unrecognized_sep=', ';;
  1204     esac
  1205     eval with_$ac_useropt=no ;;
  1207   --x)
  1208     # Obsolete; use --with-x.
  1209     with_x=yes ;;
  1211   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1212   | --x-incl | --x-inc | --x-in | --x-i)
  1213     ac_prev=x_includes ;;
  1214   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1215   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1216     x_includes=$ac_optarg ;;
  1218   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1219   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1220     ac_prev=x_libraries ;;
  1221   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1222   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1223     x_libraries=$ac_optarg ;;
  1225   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1226 Try \`$0 --help' for more information." >&2
  1227    { (exit 1); exit 1; }; }
  1228     ;;
  1230   *=*)
  1231     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1232     # Reject names that are not valid shell variable names.
  1233     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1234       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1235    { (exit 1); exit 1; }; }
  1236     eval $ac_envvar=\$ac_optarg
  1237     export $ac_envvar ;;
  1239   *)
  1240     # FIXME: should be removed in autoconf 3.0.
  1241     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1242     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1243       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1244     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1245     ;;
  1247   esac
  1248 done
  1250 if test -n "$ac_prev"; then
  1251   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1252   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1253    { (exit 1); exit 1; }; }
  1254 fi
  1256 if test -n "$ac_unrecognized_opts"; then
  1257   case $enable_option_checking in
  1258     no) ;;
  1259     fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
  1260    { (exit 1); exit 1; }; } ;;
  1261     *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1262   esac
  1263 fi
  1265 # Check all directory arguments for consistency.
  1266 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1267 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1268 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1269 		libdir localedir mandir
  1270 do
  1271   eval ac_val=\$$ac_var
  1272   # Remove trailing slashes.
  1273   case $ac_val in
  1274     */ )
  1275       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1276       eval $ac_var=\$ac_val;;
  1277   esac
  1278   # Be sure to have absolute directory names.
  1279   case $ac_val in
  1280     [\\/$]* | ?:[\\/]* )  continue;;
  1281     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1282   esac
  1283   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1284    { (exit 1); exit 1; }; }
  1285 done
  1287 # There might be people who depend on the old broken behavior: `$host'
  1288 # used to hold the argument of --host etc.
  1289 # FIXME: To remove some day.
  1290 build=$build_alias
  1291 host=$host_alias
  1292 target=$target_alias
  1294 # FIXME: To remove some day.
  1295 if test "x$host_alias" != x; then
  1296   if test "x$build_alias" = x; then
  1297     cross_compiling=maybe
  1298     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1299     If a cross compiler is detected then cross compile mode will be used." >&2
  1300   elif test "x$build_alias" != "x$host_alias"; then
  1301     cross_compiling=yes
  1302   fi
  1303 fi
  1305 ac_tool_prefix=
  1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1308 test "$silent" = yes && exec 6>/dev/null
  1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1312 ac_ls_di=`ls -di .` &&
  1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1314   { $as_echo "$as_me: error: Working directory cannot be determined" >&2
  1315    { (exit 1); exit 1; }; }
  1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1317   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1318    { (exit 1); exit 1; }; }
  1321 # Find the source files, if location was not specified.
  1322 if test -z "$srcdir"; then
  1323   ac_srcdir_defaulted=yes
  1324   # Try the directory containing this script, then the parent directory.
  1325   ac_confdir=`$as_dirname -- "$as_myself" ||
  1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1327 	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1328 	 X"$as_myself" : 'X\(//\)$' \| \
  1329 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1330 $as_echo X"$as_myself" |
  1331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1332 	    s//\1/
  1335 	  /^X\(\/\/\)[^/].*/{
  1336 	    s//\1/
  1339 	  /^X\(\/\/\)$/{
  1340 	    s//\1/
  1343 	  /^X\(\/\).*/{
  1344 	    s//\1/
  1347 	  s/.*/./; q'`
  1348   srcdir=$ac_confdir
  1349   if test ! -r "$srcdir/$ac_unique_file"; then
  1350     srcdir=..
  1351   fi
  1352 else
  1353   ac_srcdir_defaulted=no
  1354 fi
  1355 if test ! -r "$srcdir/$ac_unique_file"; then
  1356   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1357   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1358    { (exit 1); exit 1; }; }
  1359 fi
  1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1361 ac_abs_confdir=`(
  1362 	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1363    { (exit 1); exit 1; }; }
  1364 	pwd)`
  1365 # When building in place, set srcdir=.
  1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1367   srcdir=.
  1368 fi
  1369 # Remove unnecessary trailing slashes from srcdir.
  1370 # Double slashes in file names in object file debugging info
  1371 # mess up M-x gdb in Emacs.
  1372 case $srcdir in
  1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1374 esac
  1375 for ac_var in $ac_precious_vars; do
  1376   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1377   eval ac_env_${ac_var}_value=\$${ac_var}
  1378   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1379   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1380 done
  1383 # Report the --help message.
  1385 if test "$ac_init_help" = "long"; then
  1386   # Omit some internal or obsolete options to make the list less imposing.
  1387   # This message is too long to be a string in the A/UX 3.1 sh.
  1388   cat <<_ACEOF
  1389 \`configure' configures this package to adapt to many kinds of systems.
  1391 Usage: $0 [OPTION]... [VAR=VALUE]...
  1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1394 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1396 Defaults for the options are specified in brackets.
  1398 Configuration:
  1399   -h, --help              display this help and exit
  1400       --help=short        display options specific to this package
  1401       --help=recursive    display the short help of all the included packages
  1402   -V, --version           display version information and exit
  1403   -q, --quiet, --silent   do not print \`checking...' messages
  1404       --cache-file=FILE   cache test results in FILE [disabled]
  1405   -C, --config-cache      alias for \`--cache-file=config.cache'
  1406   -n, --no-create         do not create output files
  1407       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1409 Installation directories:
  1410   --prefix=PREFIX         install architecture-independent files in PREFIX
  1411                           [$ac_default_prefix]
  1412   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1413                           [PREFIX]
  1415 By default, \`make install' will install all the files in
  1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1418 for instance \`--prefix=\$HOME'.
  1420 For better control, use the options below.
  1422 Fine tuning of the installation directories:
  1423   --bindir=DIR            user executables [EPREFIX/bin]
  1424   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1425   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1426   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1427   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1428   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1429   --libdir=DIR            object code libraries [EPREFIX/lib]
  1430   --includedir=DIR        C header files [PREFIX/include]
  1431   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1432   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1433   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1434   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1435   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1436   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1437   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1438   --htmldir=DIR           html documentation [DOCDIR]
  1439   --dvidir=DIR            dvi documentation [DOCDIR]
  1440   --pdfdir=DIR            pdf documentation [DOCDIR]
  1441   --psdir=DIR             ps documentation [DOCDIR]
  1442 _ACEOF
  1444   cat <<\_ACEOF
  1446 Program names:
  1447   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1448   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1449   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1451 System types:
  1452   --build=BUILD     configure for building on BUILD [guessed]
  1453   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1454 _ACEOF
  1455 fi
  1457 if test -n "$ac_init_help"; then
  1459   cat <<\_ACEOF
  1461 Optional Features:
  1462   --disable-option-checking  ignore unrecognized --enable/--with options
  1463   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1464   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1465   --enable-maintainer-mode  enable make rules and dependencies not useful
  1466 			  (and sometimes confusing) to the casual installer
  1467   --disable-dependency-tracking  speeds up one-time build
  1468   --enable-dependency-tracking   do not reject slow dependency extractors
  1469   --enable-trace          Enable generation of IO traces (warning: hurts
  1470                           performance)
  1471   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1472                           performance)
  1473   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1475 Optional Packages:
  1476   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1477   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1478   --with-osmesa           Build with the osmesa GL library (software
  1479                           rendering)
  1480   --with-gtk              Build with the GTK UI. Default on X11 systems
  1482 Some influential environment variables:
  1483   CC          C compiler command
  1484   CFLAGS      C compiler flags
  1485   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1486               nonstandard directory <lib dir>
  1487   LIBS        libraries to pass to the linker, e.g. -l<library>
  1488   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1489               you have headers in a nonstandard directory <include dir>
  1490   CCAS        assembler compiler command (defaults to CC)
  1491   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1492   CPP         C preprocessor
  1493   PKG_CONFIG  path to pkg-config utility
  1494   LIBPNG_CFLAGS
  1495               C compiler flags for LIBPNG, overriding pkg-config
  1496   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1497   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1498   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1499   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1500   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1501   PULSE_CFLAGS
  1502               C compiler flags for PULSE, overriding pkg-config
  1503   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1504   ESOUND_CFLAGS
  1505               C compiler flags for ESOUND, overriding pkg-config
  1506   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1507   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1508   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1510 Use these variables to override the choices made by `configure' or to help
  1511 it to find libraries and programs with nonstandard names/locations.
  1513 _ACEOF
  1514 ac_status=$?
  1515 fi
  1517 if test "$ac_init_help" = "recursive"; then
  1518   # If there are subdirs, report their specific --help.
  1519   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1520     test -d "$ac_dir" ||
  1521       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1522       continue
  1523     ac_builddir=.
  1525 case "$ac_dir" in
  1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1527 *)
  1528   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1529   # A ".." for each directory in $ac_dir_suffix.
  1530   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1531   case $ac_top_builddir_sub in
  1532   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1533   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1534   esac ;;
  1535 esac
  1536 ac_abs_top_builddir=$ac_pwd
  1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1538 # for backward compatibility:
  1539 ac_top_builddir=$ac_top_build_prefix
  1541 case $srcdir in
  1542   .)  # We are building in place.
  1543     ac_srcdir=.
  1544     ac_top_srcdir=$ac_top_builddir_sub
  1545     ac_abs_top_srcdir=$ac_pwd ;;
  1546   [\\/]* | ?:[\\/]* )  # Absolute name.
  1547     ac_srcdir=$srcdir$ac_dir_suffix;
  1548     ac_top_srcdir=$srcdir
  1549     ac_abs_top_srcdir=$srcdir ;;
  1550   *) # Relative name.
  1551     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1552     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1553     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1554 esac
  1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1557     cd "$ac_dir" || { ac_status=$?; continue; }
  1558     # Check for guested configure.
  1559     if test -f "$ac_srcdir/configure.gnu"; then
  1560       echo &&
  1561       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1562     elif test -f "$ac_srcdir/configure"; then
  1563       echo &&
  1564       $SHELL "$ac_srcdir/configure" --help=recursive
  1565     else
  1566       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1567     fi || ac_status=$?
  1568     cd "$ac_pwd" || { ac_status=$?; break; }
  1569   done
  1570 fi
  1572 test -n "$ac_init_help" && exit $ac_status
  1573 if $ac_init_version; then
  1574   cat <<\_ACEOF
  1575 configure
  1576 generated by GNU Autoconf 2.62
  1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1579 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1580 This configure script is free software; the Free Software Foundation
  1581 gives unlimited permission to copy, distribute and modify it.
  1582 _ACEOF
  1583   exit
  1584 fi
  1585 cat >config.log <<_ACEOF
  1586 This file contains any messages produced by compilers while
  1587 running configure, to aid debugging if configure makes a mistake.
  1589 It was created by $as_me, which was
  1590 generated by GNU Autoconf 2.62.  Invocation command line was
  1592   $ $0 $@
  1594 _ACEOF
  1595 exec 5>>config.log
  1597 cat <<_ASUNAME
  1598 ## --------- ##
  1599 ## Platform. ##
  1600 ## --------- ##
  1602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1609 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1611 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1612 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1614 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1615 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1616 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1617 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1619 _ASUNAME
  1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1622 for as_dir in $PATH
  1623 do
  1624   IFS=$as_save_IFS
  1625   test -z "$as_dir" && as_dir=.
  1626   $as_echo "PATH: $as_dir"
  1627 done
  1628 IFS=$as_save_IFS
  1630 } >&5
  1632 cat >&5 <<_ACEOF
  1635 ## ----------- ##
  1636 ## Core tests. ##
  1637 ## ----------- ##
  1639 _ACEOF
  1642 # Keep a trace of the command line.
  1643 # Strip out --no-create and --no-recursion so they do not pile up.
  1644 # Strip out --silent because we don't want to record it for future runs.
  1645 # Also quote any args containing shell meta-characters.
  1646 # Make two passes to allow for proper duplicate-argument suppression.
  1647 ac_configure_args=
  1648 ac_configure_args0=
  1649 ac_configure_args1=
  1650 ac_must_keep_next=false
  1651 for ac_pass in 1 2
  1652 do
  1653   for ac_arg
  1654   do
  1655     case $ac_arg in
  1656     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1657     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1658     | -silent | --silent | --silen | --sile | --sil)
  1659       continue ;;
  1660     *\'*)
  1661       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1662     esac
  1663     case $ac_pass in
  1664     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1665     2)
  1666       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1667       if test $ac_must_keep_next = true; then
  1668 	ac_must_keep_next=false # Got value, back to normal.
  1669       else
  1670 	case $ac_arg in
  1671 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1672 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1673 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1674 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1675 	    case "$ac_configure_args0 " in
  1676 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1677 	    esac
  1678 	    ;;
  1679 	  -* ) ac_must_keep_next=true ;;
  1680 	esac
  1681       fi
  1682       ac_configure_args="$ac_configure_args '$ac_arg'"
  1683       ;;
  1684     esac
  1685   done
  1686 done
  1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1690 # When interrupted or exit'd, cleanup temporary files, and complete
  1691 # config.log.  We remove comments because anyway the quotes in there
  1692 # would cause problems or look ugly.
  1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1695 trap 'exit_status=$?
  1696   # Save into config.log some information that might help in debugging.
  1698     echo
  1700     cat <<\_ASBOX
  1701 ## ---------------- ##
  1702 ## Cache variables. ##
  1703 ## ---------------- ##
  1704 _ASBOX
  1705     echo
  1706     # The following way of writing the cache mishandles newlines in values,
  1708   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1709     eval ac_val=\$$ac_var
  1710     case $ac_val in #(
  1711     *${as_nl}*)
  1712       case $ac_var in #(
  1713       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1714 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1715       esac
  1716       case $ac_var in #(
  1717       _ | IFS | as_nl) ;; #(
  1718       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1719       *) $as_unset $ac_var ;;
  1720       esac ;;
  1721     esac
  1722   done
  1723   (set) 2>&1 |
  1724     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1725     *${as_nl}ac_space=\ *)
  1726       sed -n \
  1727 	"s/'\''/'\''\\\\'\'''\''/g;
  1728 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1729       ;; #(
  1730     *)
  1731       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1732       ;;
  1733     esac |
  1734     sort
  1736     echo
  1738     cat <<\_ASBOX
  1739 ## ----------------- ##
  1740 ## Output variables. ##
  1741 ## ----------------- ##
  1742 _ASBOX
  1743     echo
  1744     for ac_var in $ac_subst_vars
  1745     do
  1746       eval ac_val=\$$ac_var
  1747       case $ac_val in
  1748       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1749       esac
  1750       $as_echo "$ac_var='\''$ac_val'\''"
  1751     done | sort
  1752     echo
  1754     if test -n "$ac_subst_files"; then
  1755       cat <<\_ASBOX
  1756 ## ------------------- ##
  1757 ## File substitutions. ##
  1758 ## ------------------- ##
  1759 _ASBOX
  1760       echo
  1761       for ac_var in $ac_subst_files
  1762       do
  1763 	eval ac_val=\$$ac_var
  1764 	case $ac_val in
  1765 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1766 	esac
  1767 	$as_echo "$ac_var='\''$ac_val'\''"
  1768       done | sort
  1769       echo
  1770     fi
  1772     if test -s confdefs.h; then
  1773       cat <<\_ASBOX
  1774 ## ----------- ##
  1775 ## confdefs.h. ##
  1776 ## ----------- ##
  1777 _ASBOX
  1778       echo
  1779       cat confdefs.h
  1780       echo
  1781     fi
  1782     test "$ac_signal" != 0 &&
  1783       $as_echo "$as_me: caught signal $ac_signal"
  1784     $as_echo "$as_me: exit $exit_status"
  1785   } >&5
  1786   rm -f core *.core core.conftest.* &&
  1787     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1788     exit $exit_status
  1789 ' 0
  1790 for ac_signal in 1 2 13 15; do
  1791   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1792 done
  1793 ac_signal=0
  1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1796 rm -f -r conftest* confdefs.h
  1798 # Predefined preprocessor variables.
  1800 cat >>confdefs.h <<_ACEOF
  1801 #define PACKAGE_NAME "$PACKAGE_NAME"
  1802 _ACEOF
  1805 cat >>confdefs.h <<_ACEOF
  1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1807 _ACEOF
  1810 cat >>confdefs.h <<_ACEOF
  1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1812 _ACEOF
  1815 cat >>confdefs.h <<_ACEOF
  1816 #define PACKAGE_STRING "$PACKAGE_STRING"
  1817 _ACEOF
  1820 cat >>confdefs.h <<_ACEOF
  1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1822 _ACEOF
  1825 # Let the site file select an alternate cache file if it wants to.
  1826 # Prefer an explicitly selected file to automatically selected ones.
  1827 ac_site_file1=NONE
  1828 ac_site_file2=NONE
  1829 if test -n "$CONFIG_SITE"; then
  1830   ac_site_file1=$CONFIG_SITE
  1831 elif test "x$prefix" != xNONE; then
  1832   ac_site_file1=$prefix/share/config.site
  1833   ac_site_file2=$prefix/etc/config.site
  1834 else
  1835   ac_site_file1=$ac_default_prefix/share/config.site
  1836   ac_site_file2=$ac_default_prefix/etc/config.site
  1837 fi
  1838 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1839 do
  1840   test "x$ac_site_file" = xNONE && continue
  1841   if test -r "$ac_site_file"; then
  1842     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1843 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1844     sed 's/^/| /' "$ac_site_file" >&5
  1845     . "$ac_site_file"
  1846   fi
  1847 done
  1849 if test -r "$cache_file"; then
  1850   # Some versions of bash will fail to source /dev/null (special
  1851   # files actually), so we avoid doing that.
  1852   if test -f "$cache_file"; then
  1853     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1854 $as_echo "$as_me: loading cache $cache_file" >&6;}
  1855     case $cache_file in
  1856       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1857       *)                      . "./$cache_file";;
  1858     esac
  1859   fi
  1860 else
  1861   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1862 $as_echo "$as_me: creating cache $cache_file" >&6;}
  1863   >$cache_file
  1864 fi
  1866 # Check that the precious variables saved in the cache have kept the same
  1867 # value.
  1868 ac_cache_corrupted=false
  1869 for ac_var in $ac_precious_vars; do
  1870   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1871   eval ac_new_set=\$ac_env_${ac_var}_set
  1872   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1873   eval ac_new_val=\$ac_env_${ac_var}_value
  1874   case $ac_old_set,$ac_new_set in
  1875     set,)
  1876       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1877 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1878       ac_cache_corrupted=: ;;
  1879     ,set)
  1880       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1881 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1882       ac_cache_corrupted=: ;;
  1883     ,);;
  1884     *)
  1885       if test "x$ac_old_val" != "x$ac_new_val"; then
  1886 	# differences in whitespace do not lead to failure.
  1887 	ac_old_val_w=`echo x $ac_old_val`
  1888 	ac_new_val_w=`echo x $ac_new_val`
  1889 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1890 	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1891 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1892 	  ac_cache_corrupted=:
  1893 	else
  1894 	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1895 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1896 	  eval $ac_var=\$ac_old_val
  1897 	fi
  1898 	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
  1899 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  1900 	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
  1901 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  1902       fi;;
  1903   esac
  1904   # Pass precious variables to config.status.
  1905   if test "$ac_new_set" = set; then
  1906     case $ac_new_val in
  1907     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1908     *) ac_arg=$ac_var=$ac_new_val ;;
  1909     esac
  1910     case " $ac_configure_args " in
  1911       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1912       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1913     esac
  1914   fi
  1915 done
  1916 if $ac_cache_corrupted; then
  1917   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1918 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1919   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1920 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1921    { (exit 1); exit 1; }; }
  1922 fi
  1940 ac_ext=c
  1941 ac_cpp='$CPP $CPPFLAGS'
  1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1947 am__api_version="1.9"
  1948 ac_aux_dir=
  1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1950   if 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/install.sh"; then
  1955     ac_aux_dir=$ac_dir
  1956     ac_install_sh="$ac_aux_dir/install.sh -c"
  1957     break
  1958   elif test -f "$ac_dir/shtool"; then
  1959     ac_aux_dir=$ac_dir
  1960     ac_install_sh="$ac_aux_dir/shtool install -c"
  1961     break
  1962   fi
  1963 done
  1964 if test -z "$ac_aux_dir"; then
  1965   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1966 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1967    { (exit 1); exit 1; }; }
  1968 fi
  1970 # These three variables are undocumented and unsupported,
  1971 # and are intended to be withdrawn in a future Autoconf release.
  1972 # They can cause serious problems if a builder's source tree is in a directory
  1973 # whose full name contains unusual characters.
  1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1976 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1979 # Find a good install program.  We prefer a C program (faster),
  1980 # so one script is as good as another.  But avoid the broken or
  1981 # incompatible versions:
  1982 # SysV /etc/install, /usr/sbin/install
  1983 # SunOS /usr/etc/install
  1984 # IRIX /sbin/install
  1985 # AIX /bin/install
  1986 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1990 # OS/2's system install, which has a completely different semantic
  1991 # ./install, which can be erroneously created by make from ./install.sh.
  1992 # Reject install programs that cannot install multiple files.
  1993 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1994 $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1995 if test -z "$INSTALL"; then
  1996 if test "${ac_cv_path_install+set}" = set; then
  1997   $as_echo_n "(cached) " >&6
  1998 else
  1999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2000 for as_dir in $PATH
  2001 do
  2002   IFS=$as_save_IFS
  2003   test -z "$as_dir" && as_dir=.
  2004   # Account for people who put trailing slashes in PATH elements.
  2005 case $as_dir/ in
  2006   ./ | .// | /cC/* | \
  2007   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2008   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2009   /usr/ucb/* ) ;;
  2010   *)
  2011     # OSF1 and SCO ODT 3.0 have their own names for install.
  2012     # Don't use installbsd from OSF since it installs stuff as root
  2013     # by default.
  2014     for ac_prog in ginstall scoinst install; do
  2015       for ac_exec_ext in '' $ac_executable_extensions; do
  2016 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2017 	  if test $ac_prog = install &&
  2018 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2019 	    # AIX install.  It has an incompatible calling convention.
  2021 	  elif test $ac_prog = install &&
  2022 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2023 	    # program-specific install script used by HP pwplus--don't use.
  2025 	  else
  2026 	    rm -rf conftest.one conftest.two conftest.dir
  2027 	    echo one > conftest.one
  2028 	    echo two > conftest.two
  2029 	    mkdir conftest.dir
  2030 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2031 	      test -s conftest.one && test -s conftest.two &&
  2032 	      test -s conftest.dir/conftest.one &&
  2033 	      test -s conftest.dir/conftest.two
  2034 	    then
  2035 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2036 	      break 3
  2037 	    fi
  2038 	  fi
  2039 	fi
  2040       done
  2041     done
  2042     ;;
  2043 esac
  2045 done
  2046 IFS=$as_save_IFS
  2048 rm -rf conftest.one conftest.two conftest.dir
  2050 fi
  2051   if test "${ac_cv_path_install+set}" = set; then
  2052     INSTALL=$ac_cv_path_install
  2053   else
  2054     # As a last resort, use the slow shell script.  Don't cache a
  2055     # value for INSTALL within a source directory, because that will
  2056     # break other packages using the cache if that directory is
  2057     # removed, or if the value is a relative name.
  2058     INSTALL=$ac_install_sh
  2059   fi
  2060 fi
  2061 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2062 $as_echo "$INSTALL" >&6; }
  2064 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2065 # It thinks the first close brace ends the variable substitution.
  2066 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2068 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2070 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2072 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2073 $as_echo_n "checking whether build environment is sane... " >&6; }
  2074 # Just in case
  2075 sleep 1
  2076 echo timestamp > conftest.file
  2077 # Do `set' in a subshell so we don't clobber the current shell's
  2078 # arguments.  Must try -L first in case configure is actually a
  2079 # symlink; some systems play weird games with the mod time of symlinks
  2080 # (eg FreeBSD returns the mod time of the symlink's containing
  2081 # directory).
  2082 if (
  2083    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2084    if test "$*" = "X"; then
  2085       # -L didn't work.
  2086       set X `ls -t $srcdir/configure conftest.file`
  2087    fi
  2088    rm -f conftest.file
  2089    if test "$*" != "X $srcdir/configure conftest.file" \
  2090       && test "$*" != "X conftest.file $srcdir/configure"; then
  2092       # If neither matched, then we have a broken ls.  This can happen
  2093       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2094       # broken ls alias from the environment.  This has actually
  2095       # happened.  Such a system could not be considered "sane".
  2096       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2097 alias in your environment" >&5
  2098 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2099 alias in your environment" >&2;}
  2100    { (exit 1); exit 1; }; }
  2101    fi
  2103    test "$2" = conftest.file
  2105 then
  2106    # Ok.
  2108 else
  2109    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2110 Check your system clock" >&5
  2111 $as_echo "$as_me: error: newly created file is older than distributed files!
  2112 Check your system clock" >&2;}
  2113    { (exit 1); exit 1; }; }
  2114 fi
  2115 { $as_echo "$as_me:$LINENO: result: yes" >&5
  2116 $as_echo "yes" >&6; }
  2117 test "$program_prefix" != NONE &&
  2118   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2119 # Use a double $ so make ignores it.
  2120 test "$program_suffix" != NONE &&
  2121   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2122 # Double any \ or $.
  2123 # By default was `s,x,x', remove it if useless.
  2124 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2125 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2127 # expand $ac_aux_dir to an absolute path
  2128 am_aux_dir=`cd $ac_aux_dir && pwd`
  2130 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2131 # Use eval to expand $SHELL
  2132 if eval "$MISSING --run true"; then
  2133   am_missing_run="$MISSING --run "
  2134 else
  2135   am_missing_run=
  2136   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2137 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2138 fi
  2140 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2141   # We used to keeping the `.' as first argument, in order to
  2142   # allow $(mkdir_p) to be used without argument.  As in
  2143   #   $(mkdir_p) $(somedir)
  2144   # where $(somedir) is conditionally defined.  However this is wrong
  2145   # for two reasons:
  2146   #  1. if the package is installed by a user who cannot write `.'
  2147   #     make install will fail,
  2148   #  2. the above comment should most certainly read
  2149   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2150   #     so it does not work when $(somedir) is undefined and
  2151   #     $(DESTDIR) is not.
  2152   #  To support the latter case, we have to write
  2153   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2154   #  so the `.' trick is pointless.
  2155   mkdir_p='mkdir -p --'
  2156 else
  2157   # On NextStep and OpenStep, the `mkdir' command does not
  2158   # recognize any option.  It will interpret all options as
  2159   # directories to create, and then abort because `.' already
  2160   # exists.
  2161   for d in ./-p ./--version;
  2162   do
  2163     test -d $d && rmdir $d
  2164   done
  2165   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2166   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2167     mkdir_p='$(mkinstalldirs)'
  2168   else
  2169     mkdir_p='$(install_sh) -d'
  2170   fi
  2171 fi
  2173 for ac_prog in gawk mawk nawk awk
  2174 do
  2175   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2176 set dummy $ac_prog; ac_word=$2
  2177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2178 $as_echo_n "checking for $ac_word... " >&6; }
  2179 if test "${ac_cv_prog_AWK+set}" = set; then
  2180   $as_echo_n "(cached) " >&6
  2181 else
  2182   if test -n "$AWK"; then
  2183   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2184 else
  2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2186 for as_dir in $PATH
  2187 do
  2188   IFS=$as_save_IFS
  2189   test -z "$as_dir" && as_dir=.
  2190   for ac_exec_ext in '' $ac_executable_extensions; do
  2191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2192     ac_cv_prog_AWK="$ac_prog"
  2193     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2194     break 2
  2195   fi
  2196 done
  2197 done
  2198 IFS=$as_save_IFS
  2200 fi
  2201 fi
  2202 AWK=$ac_cv_prog_AWK
  2203 if test -n "$AWK"; then
  2204   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2205 $as_echo "$AWK" >&6; }
  2206 else
  2207   { $as_echo "$as_me:$LINENO: result: no" >&5
  2208 $as_echo "no" >&6; }
  2209 fi
  2212   test -n "$AWK" && break
  2213 done
  2215 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2216 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2217 set x ${MAKE-make}
  2218 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2219 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2220   $as_echo_n "(cached) " >&6
  2221 else
  2222   cat >conftest.make <<\_ACEOF
  2223 SHELL = /bin/sh
  2224 all:
  2225 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2226 _ACEOF
  2227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2229   *@@@%%%=?*=@@@%%%*)
  2230     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2231   *)
  2232     eval ac_cv_prog_make_${ac_make}_set=no;;
  2233 esac
  2234 rm -f conftest.make
  2235 fi
  2236 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2237   { $as_echo "$as_me:$LINENO: result: yes" >&5
  2238 $as_echo "yes" >&6; }
  2239   SET_MAKE=
  2240 else
  2241   { $as_echo "$as_me:$LINENO: result: no" >&5
  2242 $as_echo "no" >&6; }
  2243   SET_MAKE="MAKE=${MAKE-make}"
  2244 fi
  2246 rm -rf .tst 2>/dev/null
  2247 mkdir .tst 2>/dev/null
  2248 if test -d .tst; then
  2249   am__leading_dot=.
  2250 else
  2251   am__leading_dot=_
  2252 fi
  2253 rmdir .tst 2>/dev/null
  2255 # test to see if srcdir already configured
  2256 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2257    test -f $srcdir/config.status; then
  2258   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2259 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2260    { (exit 1); exit 1; }; }
  2261 fi
  2263 # test whether we have cygpath
  2264 if test -z "$CYGPATH_W"; then
  2265   if (cygpath --version) >/dev/null 2>/dev/null; then
  2266     CYGPATH_W='cygpath -w'
  2267   else
  2268     CYGPATH_W=echo
  2269   fi
  2270 fi
  2273 # Define the identity of the package.
  2274  PACKAGE=lxdream
  2275  VERSION=0.8.1
  2278 cat >>confdefs.h <<_ACEOF
  2279 #define PACKAGE "$PACKAGE"
  2280 _ACEOF
  2283 cat >>confdefs.h <<_ACEOF
  2284 #define VERSION "$VERSION"
  2285 _ACEOF
  2287 # Some tools Automake needs.
  2289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2303 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2305 # Installed binaries are usually stripped using `strip' when the user
  2306 # run `make install-strip'.  However `strip' might not be the right
  2307 # tool to use in cross-compilation environments, therefore Automake
  2308 # will honor the `STRIP' environment variable to overrule this program.
  2309 if test "$cross_compiling" != no; then
  2310   if test -n "$ac_tool_prefix"; then
  2311   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2312 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2314 $as_echo_n "checking for $ac_word... " >&6; }
  2315 if test "${ac_cv_prog_STRIP+set}" = set; then
  2316   $as_echo_n "(cached) " >&6
  2317 else
  2318   if test -n "$STRIP"; then
  2319   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2320 else
  2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2322 for as_dir in $PATH
  2323 do
  2324   IFS=$as_save_IFS
  2325   test -z "$as_dir" && as_dir=.
  2326   for ac_exec_ext in '' $ac_executable_extensions; do
  2327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2328     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2329     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2330     break 2
  2331   fi
  2332 done
  2333 done
  2334 IFS=$as_save_IFS
  2336 fi
  2337 fi
  2338 STRIP=$ac_cv_prog_STRIP
  2339 if test -n "$STRIP"; then
  2340   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2341 $as_echo "$STRIP" >&6; }
  2342 else
  2343   { $as_echo "$as_me:$LINENO: result: no" >&5
  2344 $as_echo "no" >&6; }
  2345 fi
  2348 fi
  2349 if test -z "$ac_cv_prog_STRIP"; then
  2350   ac_ct_STRIP=$STRIP
  2351   # Extract the first word of "strip", so it can be a program name with args.
  2352 set dummy strip; ac_word=$2
  2353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2354 $as_echo_n "checking for $ac_word... " >&6; }
  2355 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2356   $as_echo_n "(cached) " >&6
  2357 else
  2358   if test -n "$ac_ct_STRIP"; then
  2359   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2360 else
  2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2362 for as_dir in $PATH
  2363 do
  2364   IFS=$as_save_IFS
  2365   test -z "$as_dir" && as_dir=.
  2366   for ac_exec_ext in '' $ac_executable_extensions; do
  2367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2368     ac_cv_prog_ac_ct_STRIP="strip"
  2369     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2370     break 2
  2371   fi
  2372 done
  2373 done
  2374 IFS=$as_save_IFS
  2376 fi
  2377 fi
  2378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2379 if test -n "$ac_ct_STRIP"; then
  2380   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2381 $as_echo "$ac_ct_STRIP" >&6; }
  2382 else
  2383   { $as_echo "$as_me:$LINENO: result: no" >&5
  2384 $as_echo "no" >&6; }
  2385 fi
  2387   if test "x$ac_ct_STRIP" = x; then
  2388     STRIP=":"
  2389   else
  2390     case $cross_compiling:$ac_tool_warned in
  2391 yes:)
  2392 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2393 whose name does not start with the host triplet.  If you think this
  2394 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2395 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2396 whose name does not start with the host triplet.  If you think this
  2397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2398 ac_tool_warned=yes ;;
  2399 esac
  2400     STRIP=$ac_ct_STRIP
  2401   fi
  2402 else
  2403   STRIP="$ac_cv_prog_STRIP"
  2404 fi
  2406 fi
  2407 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2409 # We need awk for the "check" target.  The system "awk" is bad on
  2410 # some platforms.
  2411 # Always define AMTAR for backward compatibility.
  2413 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2415 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2421 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2422 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2423     # Check whether --enable-maintainer-mode was given.
  2424 if test "${enable_maintainer_mode+set}" = set; then
  2425   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2426 else
  2427   USE_MAINTAINER_MODE=no
  2428 fi
  2430   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2431 $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2434 if test $USE_MAINTAINER_MODE = yes; then
  2435   MAINTAINER_MODE_TRUE=
  2436   MAINTAINER_MODE_FALSE='#'
  2437 else
  2438   MAINTAINER_MODE_TRUE='#'
  2439   MAINTAINER_MODE_FALSE=
  2440 fi
  2442   MAINT=$MAINTAINER_MODE_TRUE
  2445 ac_config_headers="$ac_config_headers config.h"
  2448 DEPDIR="${am__leading_dot}deps"
  2450 ac_config_commands="$ac_config_commands depfiles"
  2453 am_make=${MAKE-make}
  2454 cat > confinc << 'END'
  2455 am__doit:
  2456 	@echo done
  2457 .PHONY: am__doit
  2458 END
  2459 # If we don't find an include directive, just comment out the code.
  2460 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2461 $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2462 am__include="#"
  2463 am__quote=
  2464 _am_result=none
  2465 # First try GNU make style include.
  2466 echo "include confinc" > confmf
  2467 # We grep out `Entering directory' and `Leaving directory'
  2468 # messages which can occur if `w' ends up in MAKEFLAGS.
  2469 # In particular we don't look at `^make:' because GNU make might
  2470 # be invoked under some other name (usually "gmake"), in which
  2471 # case it prints its new name instead of `make'.
  2472 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2473    am__include=include
  2474    am__quote=
  2475    _am_result=GNU
  2476 fi
  2477 # Now try BSD make style include.
  2478 if test "$am__include" = "#"; then
  2479    echo '.include "confinc"' > confmf
  2480    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2481       am__include=.include
  2482       am__quote="\""
  2483       _am_result=BSD
  2484    fi
  2485 fi
  2488 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2489 $as_echo "$_am_result" >&6; }
  2490 rm -f confinc confmf
  2492 # Check whether --enable-dependency-tracking was given.
  2493 if test "${enable_dependency_tracking+set}" = set; then
  2494   enableval=$enable_dependency_tracking;
  2495 fi
  2497 if test "x$enable_dependency_tracking" != xno; then
  2498   am_depcomp="$ac_aux_dir/depcomp"
  2499   AMDEPBACKSLASH='\'
  2500 fi
  2503 if test "x$enable_dependency_tracking" != xno; then
  2504   AMDEP_TRUE=
  2505   AMDEP_FALSE='#'
  2506 else
  2507   AMDEP_TRUE='#'
  2508   AMDEP_FALSE=
  2509 fi
  2513 ac_ext=c
  2514 ac_cpp='$CPP $CPPFLAGS'
  2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2518 if test -n "$ac_tool_prefix"; then
  2519   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2520 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2522 $as_echo_n "checking for $ac_word... " >&6; }
  2523 if test "${ac_cv_prog_CC+set}" = set; then
  2524   $as_echo_n "(cached) " >&6
  2525 else
  2526   if test -n "$CC"; then
  2527   ac_cv_prog_CC="$CC" # Let the user override the test.
  2528 else
  2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2530 for as_dir in $PATH
  2531 do
  2532   IFS=$as_save_IFS
  2533   test -z "$as_dir" && as_dir=.
  2534   for ac_exec_ext in '' $ac_executable_extensions; do
  2535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2536     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2537     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2538     break 2
  2539   fi
  2540 done
  2541 done
  2542 IFS=$as_save_IFS
  2544 fi
  2545 fi
  2546 CC=$ac_cv_prog_CC
  2547 if test -n "$CC"; then
  2548   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2549 $as_echo "$CC" >&6; }
  2550 else
  2551   { $as_echo "$as_me:$LINENO: result: no" >&5
  2552 $as_echo "no" >&6; }
  2553 fi
  2556 fi
  2557 if test -z "$ac_cv_prog_CC"; then
  2558   ac_ct_CC=$CC
  2559   # Extract the first word of "gcc", so it can be a program name with args.
  2560 set dummy gcc; ac_word=$2
  2561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2562 $as_echo_n "checking for $ac_word... " >&6; }
  2563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2564   $as_echo_n "(cached) " >&6
  2565 else
  2566   if test -n "$ac_ct_CC"; then
  2567   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2568 else
  2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2570 for as_dir in $PATH
  2571 do
  2572   IFS=$as_save_IFS
  2573   test -z "$as_dir" && as_dir=.
  2574   for ac_exec_ext in '' $ac_executable_extensions; do
  2575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2576     ac_cv_prog_ac_ct_CC="gcc"
  2577     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2578     break 2
  2579   fi
  2580 done
  2581 done
  2582 IFS=$as_save_IFS
  2584 fi
  2585 fi
  2586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2587 if test -n "$ac_ct_CC"; then
  2588   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2589 $as_echo "$ac_ct_CC" >&6; }
  2590 else
  2591   { $as_echo "$as_me:$LINENO: result: no" >&5
  2592 $as_echo "no" >&6; }
  2593 fi
  2595   if test "x$ac_ct_CC" = x; then
  2596     CC=""
  2597   else
  2598     case $cross_compiling:$ac_tool_warned in
  2599 yes:)
  2600 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2601 whose name does not start with the host triplet.  If you think this
  2602 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2603 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2604 whose name does not start with the host triplet.  If you think this
  2605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2606 ac_tool_warned=yes ;;
  2607 esac
  2608     CC=$ac_ct_CC
  2609   fi
  2610 else
  2611   CC="$ac_cv_prog_CC"
  2612 fi
  2614 if test -z "$CC"; then
  2615           if test -n "$ac_tool_prefix"; then
  2616     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2617 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2619 $as_echo_n "checking for $ac_word... " >&6; }
  2620 if test "${ac_cv_prog_CC+set}" = set; then
  2621   $as_echo_n "(cached) " >&6
  2622 else
  2623   if test -n "$CC"; then
  2624   ac_cv_prog_CC="$CC" # Let the user override the test.
  2625 else
  2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2627 for as_dir in $PATH
  2628 do
  2629   IFS=$as_save_IFS
  2630   test -z "$as_dir" && as_dir=.
  2631   for ac_exec_ext in '' $ac_executable_extensions; do
  2632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2633     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2634     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2635     break 2
  2636   fi
  2637 done
  2638 done
  2639 IFS=$as_save_IFS
  2641 fi
  2642 fi
  2643 CC=$ac_cv_prog_CC
  2644 if test -n "$CC"; then
  2645   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2646 $as_echo "$CC" >&6; }
  2647 else
  2648   { $as_echo "$as_me:$LINENO: result: no" >&5
  2649 $as_echo "no" >&6; }
  2650 fi
  2653   fi
  2654 fi
  2655 if test -z "$CC"; then
  2656   # Extract the first word of "cc", so it can be a program name with args.
  2657 set dummy cc; ac_word=$2
  2658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2659 $as_echo_n "checking for $ac_word... " >&6; }
  2660 if test "${ac_cv_prog_CC+set}" = set; then
  2661   $as_echo_n "(cached) " >&6
  2662 else
  2663   if test -n "$CC"; then
  2664   ac_cv_prog_CC="$CC" # Let the user override the test.
  2665 else
  2666   ac_prog_rejected=no
  2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2668 for as_dir in $PATH
  2669 do
  2670   IFS=$as_save_IFS
  2671   test -z "$as_dir" && as_dir=.
  2672   for ac_exec_ext in '' $ac_executable_extensions; do
  2673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2674     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2675        ac_prog_rejected=yes
  2676        continue
  2677      fi
  2678     ac_cv_prog_CC="cc"
  2679     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2680     break 2
  2681   fi
  2682 done
  2683 done
  2684 IFS=$as_save_IFS
  2686 if test $ac_prog_rejected = yes; then
  2687   # We found a bogon in the path, so make sure we never use it.
  2688   set dummy $ac_cv_prog_CC
  2689   shift
  2690   if test $# != 0; then
  2691     # We chose a different compiler from the bogus one.
  2692     # However, it has the same basename, so the bogon will be chosen
  2693     # first if we set CC to just the basename; use the full file name.
  2694     shift
  2695     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2696   fi
  2697 fi
  2698 fi
  2699 fi
  2700 CC=$ac_cv_prog_CC
  2701 if test -n "$CC"; then
  2702   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2703 $as_echo "$CC" >&6; }
  2704 else
  2705   { $as_echo "$as_me:$LINENO: result: no" >&5
  2706 $as_echo "no" >&6; }
  2707 fi
  2710 fi
  2711 if test -z "$CC"; then
  2712   if test -n "$ac_tool_prefix"; then
  2713   for ac_prog in cl.exe
  2714   do
  2715     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2717 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2718 $as_echo_n "checking for $ac_word... " >&6; }
  2719 if test "${ac_cv_prog_CC+set}" = set; then
  2720   $as_echo_n "(cached) " >&6
  2721 else
  2722   if test -n "$CC"; then
  2723   ac_cv_prog_CC="$CC" # Let the user override the test.
  2724 else
  2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2726 for as_dir in $PATH
  2727 do
  2728   IFS=$as_save_IFS
  2729   test -z "$as_dir" && as_dir=.
  2730   for ac_exec_ext in '' $ac_executable_extensions; do
  2731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2732     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2733     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2734     break 2
  2735   fi
  2736 done
  2737 done
  2738 IFS=$as_save_IFS
  2740 fi
  2741 fi
  2742 CC=$ac_cv_prog_CC
  2743 if test -n "$CC"; then
  2744   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2745 $as_echo "$CC" >&6; }
  2746 else
  2747   { $as_echo "$as_me:$LINENO: result: no" >&5
  2748 $as_echo "no" >&6; }
  2749 fi
  2752     test -n "$CC" && break
  2753   done
  2754 fi
  2755 if test -z "$CC"; then
  2756   ac_ct_CC=$CC
  2757   for ac_prog in cl.exe
  2758 do
  2759   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2760 set dummy $ac_prog; ac_word=$2
  2761 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2762 $as_echo_n "checking for $ac_word... " >&6; }
  2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2764   $as_echo_n "(cached) " >&6
  2765 else
  2766   if test -n "$ac_ct_CC"; then
  2767   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2768 else
  2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2770 for as_dir in $PATH
  2771 do
  2772   IFS=$as_save_IFS
  2773   test -z "$as_dir" && as_dir=.
  2774   for ac_exec_ext in '' $ac_executable_extensions; do
  2775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2776     ac_cv_prog_ac_ct_CC="$ac_prog"
  2777     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2778     break 2
  2779   fi
  2780 done
  2781 done
  2782 IFS=$as_save_IFS
  2784 fi
  2785 fi
  2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2787 if test -n "$ac_ct_CC"; then
  2788   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2789 $as_echo "$ac_ct_CC" >&6; }
  2790 else
  2791   { $as_echo "$as_me:$LINENO: result: no" >&5
  2792 $as_echo "no" >&6; }
  2793 fi
  2796   test -n "$ac_ct_CC" && break
  2797 done
  2799   if test "x$ac_ct_CC" = x; then
  2800     CC=""
  2801   else
  2802     case $cross_compiling:$ac_tool_warned in
  2803 yes:)
  2804 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2805 whose name does not start with the host triplet.  If you think this
  2806 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2807 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2808 whose name does not start with the host triplet.  If you think this
  2809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2810 ac_tool_warned=yes ;;
  2811 esac
  2812     CC=$ac_ct_CC
  2813   fi
  2814 fi
  2816 fi
  2819 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2820 See \`config.log' for more details." >&5
  2821 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2822 See \`config.log' for more details." >&2;}
  2823    { (exit 1); exit 1; }; }
  2825 # Provide some information about the compiler.
  2826 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2827 set X $ac_compile
  2828 ac_compiler=$2
  2829 { (ac_try="$ac_compiler --version >&5"
  2830 case "(($ac_try" in
  2831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2832   *) ac_try_echo=$ac_try;;
  2833 esac
  2834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2835 $as_echo "$ac_try_echo") >&5
  2836   (eval "$ac_compiler --version >&5") 2>&5
  2837   ac_status=$?
  2838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2839   (exit $ac_status); }
  2840 { (ac_try="$ac_compiler -v >&5"
  2841 case "(($ac_try" in
  2842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2843   *) ac_try_echo=$ac_try;;
  2844 esac
  2845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2846 $as_echo "$ac_try_echo") >&5
  2847   (eval "$ac_compiler -v >&5") 2>&5
  2848   ac_status=$?
  2849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2850   (exit $ac_status); }
  2851 { (ac_try="$ac_compiler -V >&5"
  2852 case "(($ac_try" in
  2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2854   *) ac_try_echo=$ac_try;;
  2855 esac
  2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2857 $as_echo "$ac_try_echo") >&5
  2858   (eval "$ac_compiler -V >&5") 2>&5
  2859   ac_status=$?
  2860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2861   (exit $ac_status); }
  2863 cat >conftest.$ac_ext <<_ACEOF
  2864 /* confdefs.h.  */
  2865 _ACEOF
  2866 cat confdefs.h >>conftest.$ac_ext
  2867 cat >>conftest.$ac_ext <<_ACEOF
  2868 /* end confdefs.h.  */
  2870 int
  2871 main ()
  2875   return 0;
  2877 _ACEOF
  2878 ac_clean_files_save=$ac_clean_files
  2879 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2880 # Try to create an executable without -o first, disregard a.out.
  2881 # It will help us diagnose broken compilers, and finding out an intuition
  2882 # of exeext.
  2883 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2884 $as_echo_n "checking for C compiler default output file name... " >&6; }
  2885 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2887 # The possible output files:
  2888 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2890 ac_rmfiles=
  2891 for ac_file in $ac_files
  2892 do
  2893   case $ac_file in
  2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2895     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2896   esac
  2897 done
  2898 rm -f $ac_rmfiles
  2900 if { (ac_try="$ac_link_default"
  2901 case "(($ac_try" in
  2902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2903   *) ac_try_echo=$ac_try;;
  2904 esac
  2905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2906 $as_echo "$ac_try_echo") >&5
  2907   (eval "$ac_link_default") 2>&5
  2908   ac_status=$?
  2909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2910   (exit $ac_status); }; then
  2911   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2912 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2913 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2914 # so that the user can short-circuit this test for compilers unknown to
  2915 # Autoconf.
  2916 for ac_file in $ac_files ''
  2917 do
  2918   test -f "$ac_file" || continue
  2919   case $ac_file in
  2920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2921 	;;
  2922     [ab].out )
  2923 	# We found the default executable, but exeext='' is most
  2924 	# certainly right.
  2925 	break;;
  2926     *.* )
  2927         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2928 	then :; else
  2929 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2930 	fi
  2931 	# We set ac_cv_exeext here because the later test for it is not
  2932 	# safe: cross compilers may not add the suffix if given an `-o'
  2933 	# argument, so we may need to know it at that point already.
  2934 	# Even if this section looks crufty: it has the advantage of
  2935 	# actually working.
  2936 	break;;
  2937     * )
  2938 	break;;
  2939   esac
  2940 done
  2941 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2943 else
  2944   ac_file=''
  2945 fi
  2947 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2948 $as_echo "$ac_file" >&6; }
  2949 if test -z "$ac_file"; then
  2950   $as_echo "$as_me: failed program was:" >&5
  2951 sed 's/^/| /' conftest.$ac_ext >&5
  2953 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2954 See \`config.log' for more details." >&5
  2955 $as_echo "$as_me: error: C compiler cannot create executables
  2956 See \`config.log' for more details." >&2;}
  2957    { (exit 77); exit 77; }; }
  2958 fi
  2960 ac_exeext=$ac_cv_exeext
  2962 # Check that the compiler produces executables we can run.  If not, either
  2963 # the compiler is broken, or we cross compile.
  2964 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2965 $as_echo_n "checking whether the C compiler works... " >&6; }
  2966 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2967 # If not cross compiling, check that we can run a simple program.
  2968 if test "$cross_compiling" != yes; then
  2969   if { ac_try='./$ac_file'
  2970   { (case "(($ac_try" in
  2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2972   *) ac_try_echo=$ac_try;;
  2973 esac
  2974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2975 $as_echo "$ac_try_echo") >&5
  2976   (eval "$ac_try") 2>&5
  2977   ac_status=$?
  2978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2979   (exit $ac_status); }; }; then
  2980     cross_compiling=no
  2981   else
  2982     if test "$cross_compiling" = maybe; then
  2983 	cross_compiling=yes
  2984     else
  2985 	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2986 If you meant to cross compile, use \`--host'.
  2987 See \`config.log' for more details." >&5
  2988 $as_echo "$as_me: error: cannot run C compiled programs.
  2989 If you meant to cross compile, use \`--host'.
  2990 See \`config.log' for more details." >&2;}
  2991    { (exit 1); exit 1; }; }
  2992     fi
  2993   fi
  2994 fi
  2995 { $as_echo "$as_me:$LINENO: result: yes" >&5
  2996 $as_echo "yes" >&6; }
  2998 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2999 ac_clean_files=$ac_clean_files_save
  3000 # Check that the compiler produces executables we can run.  If not, either
  3001 # the compiler is broken, or we cross compile.
  3002 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3003 $as_echo_n "checking whether we are cross compiling... " >&6; }
  3004 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3005 $as_echo "$cross_compiling" >&6; }
  3007 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3008 $as_echo_n "checking for suffix of executables... " >&6; }
  3009 if { (ac_try="$ac_link"
  3010 case "(($ac_try" in
  3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3012   *) ac_try_echo=$ac_try;;
  3013 esac
  3014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3015 $as_echo "$ac_try_echo") >&5
  3016   (eval "$ac_link") 2>&5
  3017   ac_status=$?
  3018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3019   (exit $ac_status); }; then
  3020   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3021 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3022 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3023 # `rm'.
  3024 for ac_file in conftest.exe conftest conftest.*; do
  3025   test -f "$ac_file" || continue
  3026   case $ac_file in
  3027     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3028     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3029 	  break;;
  3030     * ) break;;
  3031   esac
  3032 done
  3033 else
  3034   { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3035 See \`config.log' for more details." >&5
  3036 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3037 See \`config.log' for more details." >&2;}
  3038    { (exit 1); exit 1; }; }
  3039 fi
  3041 rm -f conftest$ac_cv_exeext
  3042 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3043 $as_echo "$ac_cv_exeext" >&6; }
  3045 rm -f conftest.$ac_ext
  3046 EXEEXT=$ac_cv_exeext
  3047 ac_exeext=$EXEEXT
  3048 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3049 $as_echo_n "checking for suffix of object files... " >&6; }
  3050 if test "${ac_cv_objext+set}" = set; then
  3051   $as_echo_n "(cached) " >&6
  3052 else
  3053   cat >conftest.$ac_ext <<_ACEOF
  3054 /* confdefs.h.  */
  3055 _ACEOF
  3056 cat confdefs.h >>conftest.$ac_ext
  3057 cat >>conftest.$ac_ext <<_ACEOF
  3058 /* end confdefs.h.  */
  3060 int
  3061 main ()
  3065   return 0;
  3067 _ACEOF
  3068 rm -f conftest.o conftest.obj
  3069 if { (ac_try="$ac_compile"
  3070 case "(($ac_try" in
  3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3072   *) ac_try_echo=$ac_try;;
  3073 esac
  3074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3075 $as_echo "$ac_try_echo") >&5
  3076   (eval "$ac_compile") 2>&5
  3077   ac_status=$?
  3078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3079   (exit $ac_status); }; then
  3080   for ac_file in conftest.o conftest.obj conftest.*; do
  3081   test -f "$ac_file" || continue;
  3082   case $ac_file in
  3083     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3084     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3085        break;;
  3086   esac
  3087 done
  3088 else
  3089   $as_echo "$as_me: failed program was:" >&5
  3090 sed 's/^/| /' conftest.$ac_ext >&5
  3092 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3093 See \`config.log' for more details." >&5
  3094 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3095 See \`config.log' for more details." >&2;}
  3096    { (exit 1); exit 1; }; }
  3097 fi
  3099 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3100 fi
  3101 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3102 $as_echo "$ac_cv_objext" >&6; }
  3103 OBJEXT=$ac_cv_objext
  3104 ac_objext=$OBJEXT
  3105 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3106 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3107 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3108   $as_echo_n "(cached) " >&6
  3109 else
  3110   cat >conftest.$ac_ext <<_ACEOF
  3111 /* confdefs.h.  */
  3112 _ACEOF
  3113 cat confdefs.h >>conftest.$ac_ext
  3114 cat >>conftest.$ac_ext <<_ACEOF
  3115 /* end confdefs.h.  */
  3117 int
  3118 main ()
  3120 #ifndef __GNUC__
  3121        choke me
  3122 #endif
  3125   return 0;
  3127 _ACEOF
  3128 rm -f conftest.$ac_objext
  3129 if { (ac_try="$ac_compile"
  3130 case "(($ac_try" in
  3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3132   *) ac_try_echo=$ac_try;;
  3133 esac
  3134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3135 $as_echo "$ac_try_echo") >&5
  3136   (eval "$ac_compile") 2>conftest.er1
  3137   ac_status=$?
  3138   grep -v '^ *+' conftest.er1 >conftest.err
  3139   rm -f conftest.er1
  3140   cat conftest.err >&5
  3141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3142   (exit $ac_status); } && {
  3143 	 test -z "$ac_c_werror_flag" ||
  3144 	 test ! -s conftest.err
  3145        } && test -s conftest.$ac_objext; then
  3146   ac_compiler_gnu=yes
  3147 else
  3148   $as_echo "$as_me: failed program was:" >&5
  3149 sed 's/^/| /' conftest.$ac_ext >&5
  3151 	ac_compiler_gnu=no
  3152 fi
  3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3155 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3157 fi
  3158 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3159 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3160 if test $ac_compiler_gnu = yes; then
  3161   GCC=yes
  3162 else
  3163   GCC=
  3164 fi
  3165 ac_test_CFLAGS=${CFLAGS+set}
  3166 ac_save_CFLAGS=$CFLAGS
  3167 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3168 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3169 if test "${ac_cv_prog_cc_g+set}" = set; then
  3170   $as_echo_n "(cached) " >&6
  3171 else
  3172   ac_save_c_werror_flag=$ac_c_werror_flag
  3173    ac_c_werror_flag=yes
  3174    ac_cv_prog_cc_g=no
  3175    CFLAGS="-g"
  3176    cat >conftest.$ac_ext <<_ACEOF
  3177 /* confdefs.h.  */
  3178 _ACEOF
  3179 cat confdefs.h >>conftest.$ac_ext
  3180 cat >>conftest.$ac_ext <<_ACEOF
  3181 /* end confdefs.h.  */
  3183 int
  3184 main ()
  3188   return 0;
  3190 _ACEOF
  3191 rm -f conftest.$ac_objext
  3192 if { (ac_try="$ac_compile"
  3193 case "(($ac_try" in
  3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3195   *) ac_try_echo=$ac_try;;
  3196 esac
  3197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3198 $as_echo "$ac_try_echo") >&5
  3199   (eval "$ac_compile") 2>conftest.er1
  3200   ac_status=$?
  3201   grep -v '^ *+' conftest.er1 >conftest.err
  3202   rm -f conftest.er1
  3203   cat conftest.err >&5
  3204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3205   (exit $ac_status); } && {
  3206 	 test -z "$ac_c_werror_flag" ||
  3207 	 test ! -s conftest.err
  3208        } && test -s conftest.$ac_objext; then
  3209   ac_cv_prog_cc_g=yes
  3210 else
  3211   $as_echo "$as_me: failed program was:" >&5
  3212 sed 's/^/| /' conftest.$ac_ext >&5
  3214 	CFLAGS=""
  3215       cat >conftest.$ac_ext <<_ACEOF
  3216 /* confdefs.h.  */
  3217 _ACEOF
  3218 cat confdefs.h >>conftest.$ac_ext
  3219 cat >>conftest.$ac_ext <<_ACEOF
  3220 /* end confdefs.h.  */
  3222 int
  3223 main ()
  3227   return 0;
  3229 _ACEOF
  3230 rm -f conftest.$ac_objext
  3231 if { (ac_try="$ac_compile"
  3232 case "(($ac_try" in
  3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3234   *) ac_try_echo=$ac_try;;
  3235 esac
  3236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3237 $as_echo "$ac_try_echo") >&5
  3238   (eval "$ac_compile") 2>conftest.er1
  3239   ac_status=$?
  3240   grep -v '^ *+' conftest.er1 >conftest.err
  3241   rm -f conftest.er1
  3242   cat conftest.err >&5
  3243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3244   (exit $ac_status); } && {
  3245 	 test -z "$ac_c_werror_flag" ||
  3246 	 test ! -s conftest.err
  3247        } && test -s conftest.$ac_objext; then
  3249 else
  3250   $as_echo "$as_me: failed program was:" >&5
  3251 sed 's/^/| /' conftest.$ac_ext >&5
  3253 	ac_c_werror_flag=$ac_save_c_werror_flag
  3254 	 CFLAGS="-g"
  3255 	 cat >conftest.$ac_ext <<_ACEOF
  3256 /* confdefs.h.  */
  3257 _ACEOF
  3258 cat confdefs.h >>conftest.$ac_ext
  3259 cat >>conftest.$ac_ext <<_ACEOF
  3260 /* end confdefs.h.  */
  3262 int
  3263 main ()
  3267   return 0;
  3269 _ACEOF
  3270 rm -f conftest.$ac_objext
  3271 if { (ac_try="$ac_compile"
  3272 case "(($ac_try" in
  3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3274   *) ac_try_echo=$ac_try;;
  3275 esac
  3276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3277 $as_echo "$ac_try_echo") >&5
  3278   (eval "$ac_compile") 2>conftest.er1
  3279   ac_status=$?
  3280   grep -v '^ *+' conftest.er1 >conftest.err
  3281   rm -f conftest.er1
  3282   cat conftest.err >&5
  3283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3284   (exit $ac_status); } && {
  3285 	 test -z "$ac_c_werror_flag" ||
  3286 	 test ! -s conftest.err
  3287        } && test -s conftest.$ac_objext; then
  3288   ac_cv_prog_cc_g=yes
  3289 else
  3290   $as_echo "$as_me: failed program was:" >&5
  3291 sed 's/^/| /' conftest.$ac_ext >&5
  3294 fi
  3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3297 fi
  3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3300 fi
  3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3303    ac_c_werror_flag=$ac_save_c_werror_flag
  3304 fi
  3305 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3306 $as_echo "$ac_cv_prog_cc_g" >&6; }
  3307 if test "$ac_test_CFLAGS" = set; then
  3308   CFLAGS=$ac_save_CFLAGS
  3309 elif test $ac_cv_prog_cc_g = yes; then
  3310   if test "$GCC" = yes; then
  3311     CFLAGS="-g -O2"
  3312   else
  3313     CFLAGS="-g"
  3314   fi
  3315 else
  3316   if test "$GCC" = yes; then
  3317     CFLAGS="-O2"
  3318   else
  3319     CFLAGS=
  3320   fi
  3321 fi
  3322 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3323 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3324 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3325   $as_echo_n "(cached) " >&6
  3326 else
  3327   ac_cv_prog_cc_c89=no
  3328 ac_save_CC=$CC
  3329 cat >conftest.$ac_ext <<_ACEOF
  3330 /* confdefs.h.  */
  3331 _ACEOF
  3332 cat confdefs.h >>conftest.$ac_ext
  3333 cat >>conftest.$ac_ext <<_ACEOF
  3334 /* end confdefs.h.  */
  3335 #include <stdarg.h>
  3336 #include <stdio.h>
  3337 #include <sys/types.h>
  3338 #include <sys/stat.h>
  3339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3340 struct buf { int x; };
  3341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3342 static char *e (p, i)
  3343      char **p;
  3344      int i;
  3346   return p[i];
  3348 static char *f (char * (*g) (char **, int), char **p, ...)
  3350   char *s;
  3351   va_list v;
  3352   va_start (v,p);
  3353   s = g (p, va_arg (v,int));
  3354   va_end (v);
  3355   return s;
  3358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3359    function prototypes and stuff, but not '\xHH' hex character constants.
  3360    These don't provoke an error unfortunately, instead are silently treated
  3361    as 'x'.  The following induces an error, until -std is added to get
  3362    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3363    array size at least.  It's necessary to write '\x00'==0 to get something
  3364    that's true only with -std.  */
  3365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3368    inside strings and character constants.  */
  3369 #define FOO(x) 'x'
  3370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3372 int test (int i, double x);
  3373 struct s1 {int (*f) (int a);};
  3374 struct s2 {int (*f) (double a);};
  3375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3376 int argc;
  3377 char **argv;
  3378 int
  3379 main ()
  3381 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3383   return 0;
  3385 _ACEOF
  3386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3387 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3388 do
  3389   CC="$ac_save_CC $ac_arg"
  3390   rm -f conftest.$ac_objext
  3391 if { (ac_try="$ac_compile"
  3392 case "(($ac_try" in
  3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3394   *) ac_try_echo=$ac_try;;
  3395 esac
  3396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3397 $as_echo "$ac_try_echo") >&5
  3398   (eval "$ac_compile") 2>conftest.er1
  3399   ac_status=$?
  3400   grep -v '^ *+' conftest.er1 >conftest.err
  3401   rm -f conftest.er1
  3402   cat conftest.err >&5
  3403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3404   (exit $ac_status); } && {
  3405 	 test -z "$ac_c_werror_flag" ||
  3406 	 test ! -s conftest.err
  3407        } && test -s conftest.$ac_objext; then
  3408   ac_cv_prog_cc_c89=$ac_arg
  3409 else
  3410   $as_echo "$as_me: failed program was:" >&5
  3411 sed 's/^/| /' conftest.$ac_ext >&5
  3414 fi
  3416 rm -f core conftest.err conftest.$ac_objext
  3417   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3418 done
  3419 rm -f conftest.$ac_ext
  3420 CC=$ac_save_CC
  3422 fi
  3423 # AC_CACHE_VAL
  3424 case "x$ac_cv_prog_cc_c89" in
  3425   x)
  3426     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3427 $as_echo "none needed" >&6; } ;;
  3428   xno)
  3429     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3430 $as_echo "unsupported" >&6; } ;;
  3431   *)
  3432     CC="$CC $ac_cv_prog_cc_c89"
  3433     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3434 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3435 esac
  3438 ac_ext=c
  3439 ac_cpp='$CPP $CPPFLAGS'
  3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3444 depcc="$CC"   am_compiler_list=
  3446 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3447 $as_echo_n "checking dependency style of $depcc... " >&6; }
  3448 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3449   $as_echo_n "(cached) " >&6
  3450 else
  3451   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3452   # We make a subdir and do the tests there.  Otherwise we can end up
  3453   # making bogus files that we don't know about and never remove.  For
  3454   # instance it was reported that on HP-UX the gcc test will end up
  3455   # making a dummy file named `D' -- because `-MD' means `put the output
  3456   # in D'.
  3457   mkdir conftest.dir
  3458   # Copy depcomp to subdir because otherwise we won't find it if we're
  3459   # using a relative directory.
  3460   cp "$am_depcomp" conftest.dir
  3461   cd conftest.dir
  3462   # We will build objects and dependencies in a subdirectory because
  3463   # it helps to detect inapplicable dependency modes.  For instance
  3464   # both Tru64's cc and ICC support -MD to output dependencies as a
  3465   # side effect of compilation, but ICC will put the dependencies in
  3466   # the current directory while Tru64 will put them in the object
  3467   # directory.
  3468   mkdir sub
  3470   am_cv_CC_dependencies_compiler_type=none
  3471   if test "$am_compiler_list" = ""; then
  3472      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3473   fi
  3474   for depmode in $am_compiler_list; do
  3475     # Setup a source with many dependencies, because some compilers
  3476     # like to wrap large dependency lists on column 80 (with \), and
  3477     # we should not choose a depcomp mode which is confused by this.
  3479     # We need to recreate these files for each test, as the compiler may
  3480     # overwrite some of them when testing with obscure command lines.
  3481     # This happens at least with the AIX C compiler.
  3482     : > sub/conftest.c
  3483     for i in 1 2 3 4 5 6; do
  3484       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3485       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3486       # Solaris 8's {/usr,}/bin/sh.
  3487       touch sub/conftst$i.h
  3488     done
  3489     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3491     case $depmode in
  3492     nosideeffect)
  3493       # after this tag, mechanisms are not by side-effect, so they'll
  3494       # only be used when explicitly requested
  3495       if test "x$enable_dependency_tracking" = xyes; then
  3496 	continue
  3497       else
  3498 	break
  3499       fi
  3500       ;;
  3501     none) break ;;
  3502     esac
  3503     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3504     # mode.  It turns out that the SunPro C++ compiler does not properly
  3505     # handle `-M -o', and we need to detect this.
  3506     if depmode=$depmode \
  3507        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3508        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3509        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3510          >/dev/null 2>conftest.err &&
  3511        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3512        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3513        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3514       # icc doesn't choke on unknown options, it will just issue warnings
  3515       # or remarks (even with -Werror).  So we grep stderr for any message
  3516       # that says an option was ignored or not supported.
  3517       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3518       #   icc: Command line warning: ignoring option '-M'; no argument required
  3519       # The diagnosis changed in icc 8.0:
  3520       #   icc: Command line remark: option '-MP' not supported
  3521       if (grep 'ignoring option' conftest.err ||
  3522           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3523         am_cv_CC_dependencies_compiler_type=$depmode
  3524         break
  3525       fi
  3526     fi
  3527   done
  3529   cd ..
  3530   rm -rf conftest.dir
  3531 else
  3532   am_cv_CC_dependencies_compiler_type=none
  3533 fi
  3535 fi
  3536 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3537 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3538 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3542 if
  3543   test "x$enable_dependency_tracking" != xno \
  3544   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3545   am__fastdepCC_TRUE=
  3546   am__fastdepCC_FALSE='#'
  3547 else
  3548   am__fastdepCC_TRUE='#'
  3549   am__fastdepCC_FALSE=
  3550 fi
  3555         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3556 $as_echo_n "checking for strerror in -lcposix... " >&6; }
  3557 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3558   $as_echo_n "(cached) " >&6
  3559 else
  3560   ac_check_lib_save_LIBS=$LIBS
  3561 LIBS="-lcposix  $LIBS"
  3562 cat >conftest.$ac_ext <<_ACEOF
  3563 /* confdefs.h.  */
  3564 _ACEOF
  3565 cat confdefs.h >>conftest.$ac_ext
  3566 cat >>conftest.$ac_ext <<_ACEOF
  3567 /* end confdefs.h.  */
  3569 /* Override any GCC internal prototype to avoid an error.
  3570    Use char because int might match the return type of a GCC
  3571    builtin and then its argument prototype would still apply.  */
  3572 #ifdef __cplusplus
  3573 extern "C"
  3574 #endif
  3575 char strerror ();
  3576 int
  3577 main ()
  3579 return strerror ();
  3581   return 0;
  3583 _ACEOF
  3584 rm -f conftest.$ac_objext conftest$ac_exeext
  3585 if { (ac_try="$ac_link"
  3586 case "(($ac_try" in
  3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3588   *) ac_try_echo=$ac_try;;
  3589 esac
  3590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3591 $as_echo "$ac_try_echo") >&5
  3592   (eval "$ac_link") 2>conftest.er1
  3593   ac_status=$?
  3594   grep -v '^ *+' conftest.er1 >conftest.err
  3595   rm -f conftest.er1
  3596   cat conftest.err >&5
  3597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3598   (exit $ac_status); } && {
  3599 	 test -z "$ac_c_werror_flag" ||
  3600 	 test ! -s conftest.err
  3601        } && test -s conftest$ac_exeext && {
  3602 	 test "$cross_compiling" = yes ||
  3603 	 $as_test_x conftest$ac_exeext
  3604        }; then
  3605   ac_cv_lib_cposix_strerror=yes
  3606 else
  3607   $as_echo "$as_me: failed program was:" >&5
  3608 sed 's/^/| /' conftest.$ac_ext >&5
  3610 	ac_cv_lib_cposix_strerror=no
  3611 fi
  3613 rm -rf conftest.dSYM
  3614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3615       conftest$ac_exeext conftest.$ac_ext
  3616 LIBS=$ac_check_lib_save_LIBS
  3617 fi
  3618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3619 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3620 if test $ac_cv_lib_cposix_strerror = yes; then
  3621   LIBS="$LIBS -lcposix"
  3622 fi
  3626 ac_ext=c
  3627 ac_cpp='$CPP $CPPFLAGS'
  3628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3631 if test -n "$ac_tool_prefix"; then
  3632   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3633 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3634 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3635 $as_echo_n "checking for $ac_word... " >&6; }
  3636 if test "${ac_cv_prog_CC+set}" = set; then
  3637   $as_echo_n "(cached) " >&6
  3638 else
  3639   if test -n "$CC"; then
  3640   ac_cv_prog_CC="$CC" # Let the user override the test.
  3641 else
  3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3643 for as_dir in $PATH
  3644 do
  3645   IFS=$as_save_IFS
  3646   test -z "$as_dir" && as_dir=.
  3647   for ac_exec_ext in '' $ac_executable_extensions; do
  3648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3649     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3650     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3651     break 2
  3652   fi
  3653 done
  3654 done
  3655 IFS=$as_save_IFS
  3657 fi
  3658 fi
  3659 CC=$ac_cv_prog_CC
  3660 if test -n "$CC"; then
  3661   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3662 $as_echo "$CC" >&6; }
  3663 else
  3664   { $as_echo "$as_me:$LINENO: result: no" >&5
  3665 $as_echo "no" >&6; }
  3666 fi
  3669 fi
  3670 if test -z "$ac_cv_prog_CC"; then
  3671   ac_ct_CC=$CC
  3672   # Extract the first word of "gcc", so it can be a program name with args.
  3673 set dummy gcc; ac_word=$2
  3674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3675 $as_echo_n "checking for $ac_word... " >&6; }
  3676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3677   $as_echo_n "(cached) " >&6
  3678 else
  3679   if test -n "$ac_ct_CC"; then
  3680   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3681 else
  3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3683 for as_dir in $PATH
  3684 do
  3685   IFS=$as_save_IFS
  3686   test -z "$as_dir" && as_dir=.
  3687   for ac_exec_ext in '' $ac_executable_extensions; do
  3688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3689     ac_cv_prog_ac_ct_CC="gcc"
  3690     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3691     break 2
  3692   fi
  3693 done
  3694 done
  3695 IFS=$as_save_IFS
  3697 fi
  3698 fi
  3699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3700 if test -n "$ac_ct_CC"; then
  3701   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3702 $as_echo "$ac_ct_CC" >&6; }
  3703 else
  3704   { $as_echo "$as_me:$LINENO: result: no" >&5
  3705 $as_echo "no" >&6; }
  3706 fi
  3708   if test "x$ac_ct_CC" = x; then
  3709     CC=""
  3710   else
  3711     case $cross_compiling:$ac_tool_warned in
  3712 yes:)
  3713 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3714 whose name does not start with the host triplet.  If you think this
  3715 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3716 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3717 whose name does not start with the host triplet.  If you think this
  3718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3719 ac_tool_warned=yes ;;
  3720 esac
  3721     CC=$ac_ct_CC
  3722   fi
  3723 else
  3724   CC="$ac_cv_prog_CC"
  3725 fi
  3727 if test -z "$CC"; then
  3728           if test -n "$ac_tool_prefix"; then
  3729     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3730 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3732 $as_echo_n "checking for $ac_word... " >&6; }
  3733 if test "${ac_cv_prog_CC+set}" = set; then
  3734   $as_echo_n "(cached) " >&6
  3735 else
  3736   if test -n "$CC"; then
  3737   ac_cv_prog_CC="$CC" # Let the user override the test.
  3738 else
  3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3740 for as_dir in $PATH
  3741 do
  3742   IFS=$as_save_IFS
  3743   test -z "$as_dir" && as_dir=.
  3744   for ac_exec_ext in '' $ac_executable_extensions; do
  3745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3746     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3747     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3748     break 2
  3749   fi
  3750 done
  3751 done
  3752 IFS=$as_save_IFS
  3754 fi
  3755 fi
  3756 CC=$ac_cv_prog_CC
  3757 if test -n "$CC"; then
  3758   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3759 $as_echo "$CC" >&6; }
  3760 else
  3761   { $as_echo "$as_me:$LINENO: result: no" >&5
  3762 $as_echo "no" >&6; }
  3763 fi
  3766   fi
  3767 fi
  3768 if test -z "$CC"; then
  3769   # Extract the first word of "cc", so it can be a program name with args.
  3770 set dummy cc; ac_word=$2
  3771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3772 $as_echo_n "checking for $ac_word... " >&6; }
  3773 if test "${ac_cv_prog_CC+set}" = set; then
  3774   $as_echo_n "(cached) " >&6
  3775 else
  3776   if test -n "$CC"; then
  3777   ac_cv_prog_CC="$CC" # Let the user override the test.
  3778 else
  3779   ac_prog_rejected=no
  3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3781 for as_dir in $PATH
  3782 do
  3783   IFS=$as_save_IFS
  3784   test -z "$as_dir" && as_dir=.
  3785   for ac_exec_ext in '' $ac_executable_extensions; do
  3786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3787     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3788        ac_prog_rejected=yes
  3789        continue
  3790      fi
  3791     ac_cv_prog_CC="cc"
  3792     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3793     break 2
  3794   fi
  3795 done
  3796 done
  3797 IFS=$as_save_IFS
  3799 if test $ac_prog_rejected = yes; then
  3800   # We found a bogon in the path, so make sure we never use it.
  3801   set dummy $ac_cv_prog_CC
  3802   shift
  3803   if test $# != 0; then
  3804     # We chose a different compiler from the bogus one.
  3805     # However, it has the same basename, so the bogon will be chosen
  3806     # first if we set CC to just the basename; use the full file name.
  3807     shift
  3808     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3809   fi
  3810 fi
  3811 fi
  3812 fi
  3813 CC=$ac_cv_prog_CC
  3814 if test -n "$CC"; then
  3815   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3816 $as_echo "$CC" >&6; }
  3817 else
  3818   { $as_echo "$as_me:$LINENO: result: no" >&5
  3819 $as_echo "no" >&6; }
  3820 fi
  3823 fi
  3824 if test -z "$CC"; then
  3825   if test -n "$ac_tool_prefix"; then
  3826   for ac_prog in cl.exe
  3827   do
  3828     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3830 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3831 $as_echo_n "checking for $ac_word... " >&6; }
  3832 if test "${ac_cv_prog_CC+set}" = set; then
  3833   $as_echo_n "(cached) " >&6
  3834 else
  3835   if test -n "$CC"; then
  3836   ac_cv_prog_CC="$CC" # Let the user override the test.
  3837 else
  3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3839 for as_dir in $PATH
  3840 do
  3841   IFS=$as_save_IFS
  3842   test -z "$as_dir" && as_dir=.
  3843   for ac_exec_ext in '' $ac_executable_extensions; do
  3844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3845     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3846     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3847     break 2
  3848   fi
  3849 done
  3850 done
  3851 IFS=$as_save_IFS
  3853 fi
  3854 fi
  3855 CC=$ac_cv_prog_CC
  3856 if test -n "$CC"; then
  3857   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3858 $as_echo "$CC" >&6; }
  3859 else
  3860   { $as_echo "$as_me:$LINENO: result: no" >&5
  3861 $as_echo "no" >&6; }
  3862 fi
  3865     test -n "$CC" && break
  3866   done
  3867 fi
  3868 if test -z "$CC"; then
  3869   ac_ct_CC=$CC
  3870   for ac_prog in cl.exe
  3871 do
  3872   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3873 set dummy $ac_prog; ac_word=$2
  3874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3875 $as_echo_n "checking for $ac_word... " >&6; }
  3876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3877   $as_echo_n "(cached) " >&6
  3878 else
  3879   if test -n "$ac_ct_CC"; then
  3880   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3881 else
  3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3883 for as_dir in $PATH
  3884 do
  3885   IFS=$as_save_IFS
  3886   test -z "$as_dir" && as_dir=.
  3887   for ac_exec_ext in '' $ac_executable_extensions; do
  3888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3889     ac_cv_prog_ac_ct_CC="$ac_prog"
  3890     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3891     break 2
  3892   fi
  3893 done
  3894 done
  3895 IFS=$as_save_IFS
  3897 fi
  3898 fi
  3899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3900 if test -n "$ac_ct_CC"; then
  3901   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3902 $as_echo "$ac_ct_CC" >&6; }
  3903 else
  3904   { $as_echo "$as_me:$LINENO: result: no" >&5
  3905 $as_echo "no" >&6; }
  3906 fi
  3909   test -n "$ac_ct_CC" && break
  3910 done
  3912   if test "x$ac_ct_CC" = x; then
  3913     CC=""
  3914   else
  3915     case $cross_compiling:$ac_tool_warned in
  3916 yes:)
  3917 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3918 whose name does not start with the host triplet.  If you think this
  3919 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3920 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3921 whose name does not start with the host triplet.  If you think this
  3922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3923 ac_tool_warned=yes ;;
  3924 esac
  3925     CC=$ac_ct_CC
  3926   fi
  3927 fi
  3929 fi
  3932 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3933 See \`config.log' for more details." >&5
  3934 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3935 See \`config.log' for more details." >&2;}
  3936    { (exit 1); exit 1; }; }
  3938 # Provide some information about the compiler.
  3939 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3940 set X $ac_compile
  3941 ac_compiler=$2
  3942 { (ac_try="$ac_compiler --version >&5"
  3943 case "(($ac_try" in
  3944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3945   *) ac_try_echo=$ac_try;;
  3946 esac
  3947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3948 $as_echo "$ac_try_echo") >&5
  3949   (eval "$ac_compiler --version >&5") 2>&5
  3950   ac_status=$?
  3951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3952   (exit $ac_status); }
  3953 { (ac_try="$ac_compiler -v >&5"
  3954 case "(($ac_try" in
  3955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3956   *) ac_try_echo=$ac_try;;
  3957 esac
  3958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3959 $as_echo "$ac_try_echo") >&5
  3960   (eval "$ac_compiler -v >&5") 2>&5
  3961   ac_status=$?
  3962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3963   (exit $ac_status); }
  3964 { (ac_try="$ac_compiler -V >&5"
  3965 case "(($ac_try" in
  3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3967   *) ac_try_echo=$ac_try;;
  3968 esac
  3969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3970 $as_echo "$ac_try_echo") >&5
  3971   (eval "$ac_compiler -V >&5") 2>&5
  3972   ac_status=$?
  3973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3974   (exit $ac_status); }
  3976 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3977 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3979   $as_echo_n "(cached) " >&6
  3980 else
  3981   cat >conftest.$ac_ext <<_ACEOF
  3982 /* confdefs.h.  */
  3983 _ACEOF
  3984 cat confdefs.h >>conftest.$ac_ext
  3985 cat >>conftest.$ac_ext <<_ACEOF
  3986 /* end confdefs.h.  */
  3988 int
  3989 main ()
  3991 #ifndef __GNUC__
  3992        choke me
  3993 #endif
  3996   return 0;
  3998 _ACEOF
  3999 rm -f conftest.$ac_objext
  4000 if { (ac_try="$ac_compile"
  4001 case "(($ac_try" in
  4002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4003   *) ac_try_echo=$ac_try;;
  4004 esac
  4005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4006 $as_echo "$ac_try_echo") >&5
  4007   (eval "$ac_compile") 2>conftest.er1
  4008   ac_status=$?
  4009   grep -v '^ *+' conftest.er1 >conftest.err
  4010   rm -f conftest.er1
  4011   cat conftest.err >&5
  4012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4013   (exit $ac_status); } && {
  4014 	 test -z "$ac_c_werror_flag" ||
  4015 	 test ! -s conftest.err
  4016        } && test -s conftest.$ac_objext; then
  4017   ac_compiler_gnu=yes
  4018 else
  4019   $as_echo "$as_me: failed program was:" >&5
  4020 sed 's/^/| /' conftest.$ac_ext >&5
  4022 	ac_compiler_gnu=no
  4023 fi
  4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4028 fi
  4029 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4030 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4031 if test $ac_compiler_gnu = yes; then
  4032   GCC=yes
  4033 else
  4034   GCC=
  4035 fi
  4036 ac_test_CFLAGS=${CFLAGS+set}
  4037 ac_save_CFLAGS=$CFLAGS
  4038 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4039 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4040 if test "${ac_cv_prog_cc_g+set}" = set; then
  4041   $as_echo_n "(cached) " >&6
  4042 else
  4043   ac_save_c_werror_flag=$ac_c_werror_flag
  4044    ac_c_werror_flag=yes
  4045    ac_cv_prog_cc_g=no
  4046    CFLAGS="-g"
  4047    cat >conftest.$ac_ext <<_ACEOF
  4048 /* confdefs.h.  */
  4049 _ACEOF
  4050 cat confdefs.h >>conftest.$ac_ext
  4051 cat >>conftest.$ac_ext <<_ACEOF
  4052 /* end confdefs.h.  */
  4054 int
  4055 main ()
  4059   return 0;
  4061 _ACEOF
  4062 rm -f conftest.$ac_objext
  4063 if { (ac_try="$ac_compile"
  4064 case "(($ac_try" in
  4065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4066   *) ac_try_echo=$ac_try;;
  4067 esac
  4068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4069 $as_echo "$ac_try_echo") >&5
  4070   (eval "$ac_compile") 2>conftest.er1
  4071   ac_status=$?
  4072   grep -v '^ *+' conftest.er1 >conftest.err
  4073   rm -f conftest.er1
  4074   cat conftest.err >&5
  4075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4076   (exit $ac_status); } && {
  4077 	 test -z "$ac_c_werror_flag" ||
  4078 	 test ! -s conftest.err
  4079        } && test -s conftest.$ac_objext; then
  4080   ac_cv_prog_cc_g=yes
  4081 else
  4082   $as_echo "$as_me: failed program was:" >&5
  4083 sed 's/^/| /' conftest.$ac_ext >&5
  4085 	CFLAGS=""
  4086       cat >conftest.$ac_ext <<_ACEOF
  4087 /* confdefs.h.  */
  4088 _ACEOF
  4089 cat confdefs.h >>conftest.$ac_ext
  4090 cat >>conftest.$ac_ext <<_ACEOF
  4091 /* end confdefs.h.  */
  4093 int
  4094 main ()
  4098   return 0;
  4100 _ACEOF
  4101 rm -f conftest.$ac_objext
  4102 if { (ac_try="$ac_compile"
  4103 case "(($ac_try" in
  4104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4105   *) ac_try_echo=$ac_try;;
  4106 esac
  4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4108 $as_echo "$ac_try_echo") >&5
  4109   (eval "$ac_compile") 2>conftest.er1
  4110   ac_status=$?
  4111   grep -v '^ *+' conftest.er1 >conftest.err
  4112   rm -f conftest.er1
  4113   cat conftest.err >&5
  4114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4115   (exit $ac_status); } && {
  4116 	 test -z "$ac_c_werror_flag" ||
  4117 	 test ! -s conftest.err
  4118        } && test -s conftest.$ac_objext; then
  4120 else
  4121   $as_echo "$as_me: failed program was:" >&5
  4122 sed 's/^/| /' conftest.$ac_ext >&5
  4124 	ac_c_werror_flag=$ac_save_c_werror_flag
  4125 	 CFLAGS="-g"
  4126 	 cat >conftest.$ac_ext <<_ACEOF
  4127 /* confdefs.h.  */
  4128 _ACEOF
  4129 cat confdefs.h >>conftest.$ac_ext
  4130 cat >>conftest.$ac_ext <<_ACEOF
  4131 /* end confdefs.h.  */
  4133 int
  4134 main ()
  4138   return 0;
  4140 _ACEOF
  4141 rm -f conftest.$ac_objext
  4142 if { (ac_try="$ac_compile"
  4143 case "(($ac_try" in
  4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4145   *) ac_try_echo=$ac_try;;
  4146 esac
  4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4148 $as_echo "$ac_try_echo") >&5
  4149   (eval "$ac_compile") 2>conftest.er1
  4150   ac_status=$?
  4151   grep -v '^ *+' conftest.er1 >conftest.err
  4152   rm -f conftest.er1
  4153   cat conftest.err >&5
  4154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4155   (exit $ac_status); } && {
  4156 	 test -z "$ac_c_werror_flag" ||
  4157 	 test ! -s conftest.err
  4158        } && test -s conftest.$ac_objext; then
  4159   ac_cv_prog_cc_g=yes
  4160 else
  4161   $as_echo "$as_me: failed program was:" >&5
  4162 sed 's/^/| /' conftest.$ac_ext >&5
  4165 fi
  4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4168 fi
  4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4171 fi
  4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4174    ac_c_werror_flag=$ac_save_c_werror_flag
  4175 fi
  4176 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4177 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4178 if test "$ac_test_CFLAGS" = set; then
  4179   CFLAGS=$ac_save_CFLAGS
  4180 elif test $ac_cv_prog_cc_g = yes; then
  4181   if test "$GCC" = yes; then
  4182     CFLAGS="-g -O2"
  4183   else
  4184     CFLAGS="-g"
  4185   fi
  4186 else
  4187   if test "$GCC" = yes; then
  4188     CFLAGS="-O2"
  4189   else
  4190     CFLAGS=
  4191   fi
  4192 fi
  4193 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4194 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4195 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4196   $as_echo_n "(cached) " >&6
  4197 else
  4198   ac_cv_prog_cc_c89=no
  4199 ac_save_CC=$CC
  4200 cat >conftest.$ac_ext <<_ACEOF
  4201 /* confdefs.h.  */
  4202 _ACEOF
  4203 cat confdefs.h >>conftest.$ac_ext
  4204 cat >>conftest.$ac_ext <<_ACEOF
  4205 /* end confdefs.h.  */
  4206 #include <stdarg.h>
  4207 #include <stdio.h>
  4208 #include <sys/types.h>
  4209 #include <sys/stat.h>
  4210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4211 struct buf { int x; };
  4212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4213 static char *e (p, i)
  4214      char **p;
  4215      int i;
  4217   return p[i];
  4219 static char *f (char * (*g) (char **, int), char **p, ...)
  4221   char *s;
  4222   va_list v;
  4223   va_start (v,p);
  4224   s = g (p, va_arg (v,int));
  4225   va_end (v);
  4226   return s;
  4229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4230    function prototypes and stuff, but not '\xHH' hex character constants.
  4231    These don't provoke an error unfortunately, instead are silently treated
  4232    as 'x'.  The following induces an error, until -std is added to get
  4233    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4234    array size at least.  It's necessary to write '\x00'==0 to get something
  4235    that's true only with -std.  */
  4236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4239    inside strings and character constants.  */
  4240 #define FOO(x) 'x'
  4241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4243 int test (int i, double x);
  4244 struct s1 {int (*f) (int a);};
  4245 struct s2 {int (*f) (double a);};
  4246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4247 int argc;
  4248 char **argv;
  4249 int
  4250 main ()
  4252 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4254   return 0;
  4256 _ACEOF
  4257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4258 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4259 do
  4260   CC="$ac_save_CC $ac_arg"
  4261   rm -f conftest.$ac_objext
  4262 if { (ac_try="$ac_compile"
  4263 case "(($ac_try" in
  4264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4265   *) ac_try_echo=$ac_try;;
  4266 esac
  4267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4268 $as_echo "$ac_try_echo") >&5
  4269   (eval "$ac_compile") 2>conftest.er1
  4270   ac_status=$?
  4271   grep -v '^ *+' conftest.er1 >conftest.err
  4272   rm -f conftest.er1
  4273   cat conftest.err >&5
  4274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4275   (exit $ac_status); } && {
  4276 	 test -z "$ac_c_werror_flag" ||
  4277 	 test ! -s conftest.err
  4278        } && test -s conftest.$ac_objext; then
  4279   ac_cv_prog_cc_c89=$ac_arg
  4280 else
  4281   $as_echo "$as_me: failed program was:" >&5
  4282 sed 's/^/| /' conftest.$ac_ext >&5
  4285 fi
  4287 rm -f core conftest.err conftest.$ac_objext
  4288   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4289 done
  4290 rm -f conftest.$ac_ext
  4291 CC=$ac_save_CC
  4293 fi
  4294 # AC_CACHE_VAL
  4295 case "x$ac_cv_prog_cc_c89" in
  4296   x)
  4297     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4298 $as_echo "none needed" >&6; } ;;
  4299   xno)
  4300     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4301 $as_echo "unsupported" >&6; } ;;
  4302   *)
  4303     CC="$CC $ac_cv_prog_cc_c89"
  4304     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4305 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4306 esac
  4309 ac_ext=c
  4310 ac_cpp='$CPP $CPPFLAGS'
  4311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4315 depcc="$CC"   am_compiler_list=
  4317 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4318 $as_echo_n "checking dependency style of $depcc... " >&6; }
  4319 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4320   $as_echo_n "(cached) " >&6
  4321 else
  4322   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4323   # We make a subdir and do the tests there.  Otherwise we can end up
  4324   # making bogus files that we don't know about and never remove.  For
  4325   # instance it was reported that on HP-UX the gcc test will end up
  4326   # making a dummy file named `D' -- because `-MD' means `put the output
  4327   # in D'.
  4328   mkdir conftest.dir
  4329   # Copy depcomp to subdir because otherwise we won't find it if we're
  4330   # using a relative directory.
  4331   cp "$am_depcomp" conftest.dir
  4332   cd conftest.dir
  4333   # We will build objects and dependencies in a subdirectory because
  4334   # it helps to detect inapplicable dependency modes.  For instance
  4335   # both Tru64's cc and ICC support -MD to output dependencies as a
  4336   # side effect of compilation, but ICC will put the dependencies in
  4337   # the current directory while Tru64 will put them in the object
  4338   # directory.
  4339   mkdir sub
  4341   am_cv_CC_dependencies_compiler_type=none
  4342   if test "$am_compiler_list" = ""; then
  4343      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4344   fi
  4345   for depmode in $am_compiler_list; do
  4346     # Setup a source with many dependencies, because some compilers
  4347     # like to wrap large dependency lists on column 80 (with \), and
  4348     # we should not choose a depcomp mode which is confused by this.
  4350     # We need to recreate these files for each test, as the compiler may
  4351     # overwrite some of them when testing with obscure command lines.
  4352     # This happens at least with the AIX C compiler.
  4353     : > sub/conftest.c
  4354     for i in 1 2 3 4 5 6; do
  4355       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4356       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4357       # Solaris 8's {/usr,}/bin/sh.
  4358       touch sub/conftst$i.h
  4359     done
  4360     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4362     case $depmode in
  4363     nosideeffect)
  4364       # after this tag, mechanisms are not by side-effect, so they'll
  4365       # only be used when explicitly requested
  4366       if test "x$enable_dependency_tracking" = xyes; then
  4367 	continue
  4368       else
  4369 	break
  4370       fi
  4371       ;;
  4372     none) break ;;
  4373     esac
  4374     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4375     # mode.  It turns out that the SunPro C++ compiler does not properly
  4376     # handle `-M -o', and we need to detect this.
  4377     if depmode=$depmode \
  4378        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4379        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4380        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4381          >/dev/null 2>conftest.err &&
  4382        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4383        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4384        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4385       # icc doesn't choke on unknown options, it will just issue warnings
  4386       # or remarks (even with -Werror).  So we grep stderr for any message
  4387       # that says an option was ignored or not supported.
  4388       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4389       #   icc: Command line warning: ignoring option '-M'; no argument required
  4390       # The diagnosis changed in icc 8.0:
  4391       #   icc: Command line remark: option '-MP' not supported
  4392       if (grep 'ignoring option' conftest.err ||
  4393           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4394         am_cv_CC_dependencies_compiler_type=$depmode
  4395         break
  4396       fi
  4397     fi
  4398   done
  4400   cd ..
  4401   rm -rf conftest.dir
  4402 else
  4403   am_cv_CC_dependencies_compiler_type=none
  4404 fi
  4406 fi
  4407 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4408 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4409 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4413 if
  4414   test "x$enable_dependency_tracking" != xno \
  4415   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4416   am__fastdepCC_TRUE=
  4417   am__fastdepCC_FALSE='#'
  4418 else
  4419   am__fastdepCC_TRUE='#'
  4420   am__fastdepCC_FALSE=
  4421 fi
  4424 ac_ext=c
  4425 ac_cpp='$CPP $CPPFLAGS'
  4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4429 if test -n "$ac_tool_prefix"; then
  4430   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4433 $as_echo_n "checking for $ac_word... " >&6; }
  4434 if test "${ac_cv_prog_CC+set}" = set; then
  4435   $as_echo_n "(cached) " >&6
  4436 else
  4437   if test -n "$CC"; then
  4438   ac_cv_prog_CC="$CC" # Let the user override the test.
  4439 else
  4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4441 for as_dir in $PATH
  4442 do
  4443   IFS=$as_save_IFS
  4444   test -z "$as_dir" && as_dir=.
  4445   for ac_exec_ext in '' $ac_executable_extensions; do
  4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4447     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4448     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4449     break 2
  4450   fi
  4451 done
  4452 done
  4453 IFS=$as_save_IFS
  4455 fi
  4456 fi
  4457 CC=$ac_cv_prog_CC
  4458 if test -n "$CC"; then
  4459   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4460 $as_echo "$CC" >&6; }
  4461 else
  4462   { $as_echo "$as_me:$LINENO: result: no" >&5
  4463 $as_echo "no" >&6; }
  4464 fi
  4467 fi
  4468 if test -z "$ac_cv_prog_CC"; then
  4469   ac_ct_CC=$CC
  4470   # Extract the first word of "gcc", so it can be a program name with args.
  4471 set dummy gcc; ac_word=$2
  4472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4473 $as_echo_n "checking for $ac_word... " >&6; }
  4474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4475   $as_echo_n "(cached) " >&6
  4476 else
  4477   if test -n "$ac_ct_CC"; then
  4478   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4479 else
  4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4481 for as_dir in $PATH
  4482 do
  4483   IFS=$as_save_IFS
  4484   test -z "$as_dir" && as_dir=.
  4485   for ac_exec_ext in '' $ac_executable_extensions; do
  4486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4487     ac_cv_prog_ac_ct_CC="gcc"
  4488     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4489     break 2
  4490   fi
  4491 done
  4492 done
  4493 IFS=$as_save_IFS
  4495 fi
  4496 fi
  4497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4498 if test -n "$ac_ct_CC"; then
  4499   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4500 $as_echo "$ac_ct_CC" >&6; }
  4501 else
  4502   { $as_echo "$as_me:$LINENO: result: no" >&5
  4503 $as_echo "no" >&6; }
  4504 fi
  4506   if test "x$ac_ct_CC" = x; then
  4507     CC=""
  4508   else
  4509     case $cross_compiling:$ac_tool_warned in
  4510 yes:)
  4511 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4512 whose name does not start with the host triplet.  If you think this
  4513 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4514 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4515 whose name does not start with the host triplet.  If you think this
  4516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4517 ac_tool_warned=yes ;;
  4518 esac
  4519     CC=$ac_ct_CC
  4520   fi
  4521 else
  4522   CC="$ac_cv_prog_CC"
  4523 fi
  4525 if test -z "$CC"; then
  4526           if test -n "$ac_tool_prefix"; then
  4527     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4528 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4530 $as_echo_n "checking for $ac_word... " >&6; }
  4531 if test "${ac_cv_prog_CC+set}" = set; then
  4532   $as_echo_n "(cached) " >&6
  4533 else
  4534   if test -n "$CC"; then
  4535   ac_cv_prog_CC="$CC" # Let the user override the test.
  4536 else
  4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4538 for as_dir in $PATH
  4539 do
  4540   IFS=$as_save_IFS
  4541   test -z "$as_dir" && as_dir=.
  4542   for ac_exec_ext in '' $ac_executable_extensions; do
  4543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4544     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4545     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4546     break 2
  4547   fi
  4548 done
  4549 done
  4550 IFS=$as_save_IFS
  4552 fi
  4553 fi
  4554 CC=$ac_cv_prog_CC
  4555 if test -n "$CC"; then
  4556   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4557 $as_echo "$CC" >&6; }
  4558 else
  4559   { $as_echo "$as_me:$LINENO: result: no" >&5
  4560 $as_echo "no" >&6; }
  4561 fi
  4564   fi
  4565 fi
  4566 if test -z "$CC"; then
  4567   # Extract the first word of "cc", so it can be a program name with args.
  4568 set dummy cc; ac_word=$2
  4569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4570 $as_echo_n "checking for $ac_word... " >&6; }
  4571 if test "${ac_cv_prog_CC+set}" = set; then
  4572   $as_echo_n "(cached) " >&6
  4573 else
  4574   if test -n "$CC"; then
  4575   ac_cv_prog_CC="$CC" # Let the user override the test.
  4576 else
  4577   ac_prog_rejected=no
  4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4579 for as_dir in $PATH
  4580 do
  4581   IFS=$as_save_IFS
  4582   test -z "$as_dir" && as_dir=.
  4583   for ac_exec_ext in '' $ac_executable_extensions; do
  4584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4585     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4586        ac_prog_rejected=yes
  4587        continue
  4588      fi
  4589     ac_cv_prog_CC="cc"
  4590     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4591     break 2
  4592   fi
  4593 done
  4594 done
  4595 IFS=$as_save_IFS
  4597 if test $ac_prog_rejected = yes; then
  4598   # We found a bogon in the path, so make sure we never use it.
  4599   set dummy $ac_cv_prog_CC
  4600   shift
  4601   if test $# != 0; then
  4602     # We chose a different compiler from the bogus one.
  4603     # However, it has the same basename, so the bogon will be chosen
  4604     # first if we set CC to just the basename; use the full file name.
  4605     shift
  4606     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4607   fi
  4608 fi
  4609 fi
  4610 fi
  4611 CC=$ac_cv_prog_CC
  4612 if test -n "$CC"; then
  4613   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4614 $as_echo "$CC" >&6; }
  4615 else
  4616   { $as_echo "$as_me:$LINENO: result: no" >&5
  4617 $as_echo "no" >&6; }
  4618 fi
  4621 fi
  4622 if test -z "$CC"; then
  4623   if test -n "$ac_tool_prefix"; then
  4624   for ac_prog in cl.exe
  4625   do
  4626     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4629 $as_echo_n "checking for $ac_word... " >&6; }
  4630 if test "${ac_cv_prog_CC+set}" = set; then
  4631   $as_echo_n "(cached) " >&6
  4632 else
  4633   if test -n "$CC"; then
  4634   ac_cv_prog_CC="$CC" # Let the user override the test.
  4635 else
  4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4637 for as_dir in $PATH
  4638 do
  4639   IFS=$as_save_IFS
  4640   test -z "$as_dir" && as_dir=.
  4641   for ac_exec_ext in '' $ac_executable_extensions; do
  4642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4643     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4644     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4645     break 2
  4646   fi
  4647 done
  4648 done
  4649 IFS=$as_save_IFS
  4651 fi
  4652 fi
  4653 CC=$ac_cv_prog_CC
  4654 if test -n "$CC"; then
  4655   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4656 $as_echo "$CC" >&6; }
  4657 else
  4658   { $as_echo "$as_me:$LINENO: result: no" >&5
  4659 $as_echo "no" >&6; }
  4660 fi
  4663     test -n "$CC" && break
  4664   done
  4665 fi
  4666 if test -z "$CC"; then
  4667   ac_ct_CC=$CC
  4668   for ac_prog in cl.exe
  4669 do
  4670   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4671 set dummy $ac_prog; ac_word=$2
  4672 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4673 $as_echo_n "checking for $ac_word... " >&6; }
  4674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4675   $as_echo_n "(cached) " >&6
  4676 else
  4677   if test -n "$ac_ct_CC"; then
  4678   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4679 else
  4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4681 for as_dir in $PATH
  4682 do
  4683   IFS=$as_save_IFS
  4684   test -z "$as_dir" && as_dir=.
  4685   for ac_exec_ext in '' $ac_executable_extensions; do
  4686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4687     ac_cv_prog_ac_ct_CC="$ac_prog"
  4688     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4689     break 2
  4690   fi
  4691 done
  4692 done
  4693 IFS=$as_save_IFS
  4695 fi
  4696 fi
  4697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4698 if test -n "$ac_ct_CC"; then
  4699   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4700 $as_echo "$ac_ct_CC" >&6; }
  4701 else
  4702   { $as_echo "$as_me:$LINENO: result: no" >&5
  4703 $as_echo "no" >&6; }
  4704 fi
  4707   test -n "$ac_ct_CC" && break
  4708 done
  4710   if test "x$ac_ct_CC" = x; then
  4711     CC=""
  4712   else
  4713     case $cross_compiling:$ac_tool_warned in
  4714 yes:)
  4715 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4716 whose name does not start with the host triplet.  If you think this
  4717 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4718 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4719 whose name does not start with the host triplet.  If you think this
  4720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4721 ac_tool_warned=yes ;;
  4722 esac
  4723     CC=$ac_ct_CC
  4724   fi
  4725 fi
  4727 fi
  4730 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4731 See \`config.log' for more details." >&5
  4732 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  4733 See \`config.log' for more details." >&2;}
  4734    { (exit 1); exit 1; }; }
  4736 # Provide some information about the compiler.
  4737 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  4738 set X $ac_compile
  4739 ac_compiler=$2
  4740 { (ac_try="$ac_compiler --version >&5"
  4741 case "(($ac_try" in
  4742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4743   *) ac_try_echo=$ac_try;;
  4744 esac
  4745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4746 $as_echo "$ac_try_echo") >&5
  4747   (eval "$ac_compiler --version >&5") 2>&5
  4748   ac_status=$?
  4749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750   (exit $ac_status); }
  4751 { (ac_try="$ac_compiler -v >&5"
  4752 case "(($ac_try" in
  4753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4754   *) ac_try_echo=$ac_try;;
  4755 esac
  4756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4757 $as_echo "$ac_try_echo") >&5
  4758   (eval "$ac_compiler -v >&5") 2>&5
  4759   ac_status=$?
  4760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4761   (exit $ac_status); }
  4762 { (ac_try="$ac_compiler -V >&5"
  4763 case "(($ac_try" in
  4764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4765   *) ac_try_echo=$ac_try;;
  4766 esac
  4767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4768 $as_echo "$ac_try_echo") >&5
  4769   (eval "$ac_compiler -V >&5") 2>&5
  4770   ac_status=$?
  4771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4772   (exit $ac_status); }
  4774 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4776 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4777   $as_echo_n "(cached) " >&6
  4778 else
  4779   cat >conftest.$ac_ext <<_ACEOF
  4780 /* confdefs.h.  */
  4781 _ACEOF
  4782 cat confdefs.h >>conftest.$ac_ext
  4783 cat >>conftest.$ac_ext <<_ACEOF
  4784 /* end confdefs.h.  */
  4786 int
  4787 main ()
  4789 #ifndef __GNUC__
  4790        choke me
  4791 #endif
  4794   return 0;
  4796 _ACEOF
  4797 rm -f conftest.$ac_objext
  4798 if { (ac_try="$ac_compile"
  4799 case "(($ac_try" in
  4800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4801   *) ac_try_echo=$ac_try;;
  4802 esac
  4803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4804 $as_echo "$ac_try_echo") >&5
  4805   (eval "$ac_compile") 2>conftest.er1
  4806   ac_status=$?
  4807   grep -v '^ *+' conftest.er1 >conftest.err
  4808   rm -f conftest.er1
  4809   cat conftest.err >&5
  4810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4811   (exit $ac_status); } && {
  4812 	 test -z "$ac_c_werror_flag" ||
  4813 	 test ! -s conftest.err
  4814        } && test -s conftest.$ac_objext; then
  4815   ac_compiler_gnu=yes
  4816 else
  4817   $as_echo "$as_me: failed program was:" >&5
  4818 sed 's/^/| /' conftest.$ac_ext >&5
  4820 	ac_compiler_gnu=no
  4821 fi
  4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4826 fi
  4827 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4829 if test $ac_compiler_gnu = yes; then
  4830   GCC=yes
  4831 else
  4832   GCC=
  4833 fi
  4834 ac_test_CFLAGS=${CFLAGS+set}
  4835 ac_save_CFLAGS=$CFLAGS
  4836 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4838 if test "${ac_cv_prog_cc_g+set}" = set; then
  4839   $as_echo_n "(cached) " >&6
  4840 else
  4841   ac_save_c_werror_flag=$ac_c_werror_flag
  4842    ac_c_werror_flag=yes
  4843    ac_cv_prog_cc_g=no
  4844    CFLAGS="-g"
  4845    cat >conftest.$ac_ext <<_ACEOF
  4846 /* confdefs.h.  */
  4847 _ACEOF
  4848 cat confdefs.h >>conftest.$ac_ext
  4849 cat >>conftest.$ac_ext <<_ACEOF
  4850 /* end confdefs.h.  */
  4852 int
  4853 main ()
  4857   return 0;
  4859 _ACEOF
  4860 rm -f conftest.$ac_objext
  4861 if { (ac_try="$ac_compile"
  4862 case "(($ac_try" in
  4863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4864   *) ac_try_echo=$ac_try;;
  4865 esac
  4866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4867 $as_echo "$ac_try_echo") >&5
  4868   (eval "$ac_compile") 2>conftest.er1
  4869   ac_status=$?
  4870   grep -v '^ *+' conftest.er1 >conftest.err
  4871   rm -f conftest.er1
  4872   cat conftest.err >&5
  4873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4874   (exit $ac_status); } && {
  4875 	 test -z "$ac_c_werror_flag" ||
  4876 	 test ! -s conftest.err
  4877        } && test -s conftest.$ac_objext; then
  4878   ac_cv_prog_cc_g=yes
  4879 else
  4880   $as_echo "$as_me: failed program was:" >&5
  4881 sed 's/^/| /' conftest.$ac_ext >&5
  4883 	CFLAGS=""
  4884       cat >conftest.$ac_ext <<_ACEOF
  4885 /* confdefs.h.  */
  4886 _ACEOF
  4887 cat confdefs.h >>conftest.$ac_ext
  4888 cat >>conftest.$ac_ext <<_ACEOF
  4889 /* end confdefs.h.  */
  4891 int
  4892 main ()
  4896   return 0;
  4898 _ACEOF
  4899 rm -f conftest.$ac_objext
  4900 if { (ac_try="$ac_compile"
  4901 case "(($ac_try" in
  4902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4903   *) ac_try_echo=$ac_try;;
  4904 esac
  4905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4906 $as_echo "$ac_try_echo") >&5
  4907   (eval "$ac_compile") 2>conftest.er1
  4908   ac_status=$?
  4909   grep -v '^ *+' conftest.er1 >conftest.err
  4910   rm -f conftest.er1
  4911   cat conftest.err >&5
  4912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4913   (exit $ac_status); } && {
  4914 	 test -z "$ac_c_werror_flag" ||
  4915 	 test ! -s conftest.err
  4916        } && test -s conftest.$ac_objext; then
  4918 else
  4919   $as_echo "$as_me: failed program was:" >&5
  4920 sed 's/^/| /' conftest.$ac_ext >&5
  4922 	ac_c_werror_flag=$ac_save_c_werror_flag
  4923 	 CFLAGS="-g"
  4924 	 cat >conftest.$ac_ext <<_ACEOF
  4925 /* confdefs.h.  */
  4926 _ACEOF
  4927 cat confdefs.h >>conftest.$ac_ext
  4928 cat >>conftest.$ac_ext <<_ACEOF
  4929 /* end confdefs.h.  */
  4931 int
  4932 main ()
  4936   return 0;
  4938 _ACEOF
  4939 rm -f conftest.$ac_objext
  4940 if { (ac_try="$ac_compile"
  4941 case "(($ac_try" in
  4942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4943   *) ac_try_echo=$ac_try;;
  4944 esac
  4945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4946 $as_echo "$ac_try_echo") >&5
  4947   (eval "$ac_compile") 2>conftest.er1
  4948   ac_status=$?
  4949   grep -v '^ *+' conftest.er1 >conftest.err
  4950   rm -f conftest.er1
  4951   cat conftest.err >&5
  4952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4953   (exit $ac_status); } && {
  4954 	 test -z "$ac_c_werror_flag" ||
  4955 	 test ! -s conftest.err
  4956        } && test -s conftest.$ac_objext; then
  4957   ac_cv_prog_cc_g=yes
  4958 else
  4959   $as_echo "$as_me: failed program was:" >&5
  4960 sed 's/^/| /' conftest.$ac_ext >&5
  4963 fi
  4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4966 fi
  4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4969 fi
  4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4972    ac_c_werror_flag=$ac_save_c_werror_flag
  4973 fi
  4974 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4975 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4976 if test "$ac_test_CFLAGS" = set; then
  4977   CFLAGS=$ac_save_CFLAGS
  4978 elif test $ac_cv_prog_cc_g = yes; then
  4979   if test "$GCC" = yes; then
  4980     CFLAGS="-g -O2"
  4981   else
  4982     CFLAGS="-g"
  4983   fi
  4984 else
  4985   if test "$GCC" = yes; then
  4986     CFLAGS="-O2"
  4987   else
  4988     CFLAGS=
  4989   fi
  4990 fi
  4991 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4992 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4993 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4994   $as_echo_n "(cached) " >&6
  4995 else
  4996   ac_cv_prog_cc_c89=no
  4997 ac_save_CC=$CC
  4998 cat >conftest.$ac_ext <<_ACEOF
  4999 /* confdefs.h.  */
  5000 _ACEOF
  5001 cat confdefs.h >>conftest.$ac_ext
  5002 cat >>conftest.$ac_ext <<_ACEOF
  5003 /* end confdefs.h.  */
  5004 #include <stdarg.h>
  5005 #include <stdio.h>
  5006 #include <sys/types.h>
  5007 #include <sys/stat.h>
  5008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5009 struct buf { int x; };
  5010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5011 static char *e (p, i)
  5012      char **p;
  5013      int i;
  5015   return p[i];
  5017 static char *f (char * (*g) (char **, int), char **p, ...)
  5019   char *s;
  5020   va_list v;
  5021   va_start (v,p);
  5022   s = g (p, va_arg (v,int));
  5023   va_end (v);
  5024   return s;
  5027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5028    function prototypes and stuff, but not '\xHH' hex character constants.
  5029    These don't provoke an error unfortunately, instead are silently treated
  5030    as 'x'.  The following induces an error, until -std is added to get
  5031    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5032    array size at least.  It's necessary to write '\x00'==0 to get something
  5033    that's true only with -std.  */
  5034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5037    inside strings and character constants.  */
  5038 #define FOO(x) 'x'
  5039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5041 int test (int i, double x);
  5042 struct s1 {int (*f) (int a);};
  5043 struct s2 {int (*f) (double a);};
  5044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5045 int argc;
  5046 char **argv;
  5047 int
  5048 main ()
  5050 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5052   return 0;
  5054 _ACEOF
  5055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5056 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5057 do
  5058   CC="$ac_save_CC $ac_arg"
  5059   rm -f conftest.$ac_objext
  5060 if { (ac_try="$ac_compile"
  5061 case "(($ac_try" in
  5062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5063   *) ac_try_echo=$ac_try;;
  5064 esac
  5065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5066 $as_echo "$ac_try_echo") >&5
  5067   (eval "$ac_compile") 2>conftest.er1
  5068   ac_status=$?
  5069   grep -v '^ *+' conftest.er1 >conftest.err
  5070   rm -f conftest.er1
  5071   cat conftest.err >&5
  5072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5073   (exit $ac_status); } && {
  5074 	 test -z "$ac_c_werror_flag" ||
  5075 	 test ! -s conftest.err
  5076        } && test -s conftest.$ac_objext; then
  5077   ac_cv_prog_cc_c89=$ac_arg
  5078 else
  5079   $as_echo "$as_me: failed program was:" >&5
  5080 sed 's/^/| /' conftest.$ac_ext >&5
  5083 fi
  5085 rm -f core conftest.err conftest.$ac_objext
  5086   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5087 done
  5088 rm -f conftest.$ac_ext
  5089 CC=$ac_save_CC
  5091 fi
  5092 # AC_CACHE_VAL
  5093 case "x$ac_cv_prog_cc_c89" in
  5094   x)
  5095     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5096 $as_echo "none needed" >&6; } ;;
  5097   xno)
  5098     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5099 $as_echo "unsupported" >&6; } ;;
  5100   *)
  5101     CC="$CC $ac_cv_prog_cc_c89"
  5102     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5103 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5104 esac
  5107 ac_ext=c
  5108 ac_cpp='$CPP $CPPFLAGS'
  5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5113 depcc="$CC"   am_compiler_list=
  5115 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5116 $as_echo_n "checking dependency style of $depcc... " >&6; }
  5117 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5118   $as_echo_n "(cached) " >&6
  5119 else
  5120   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5121   # We make a subdir and do the tests there.  Otherwise we can end up
  5122   # making bogus files that we don't know about and never remove.  For
  5123   # instance it was reported that on HP-UX the gcc test will end up
  5124   # making a dummy file named `D' -- because `-MD' means `put the output
  5125   # in D'.
  5126   mkdir conftest.dir
  5127   # Copy depcomp to subdir because otherwise we won't find it if we're
  5128   # using a relative directory.
  5129   cp "$am_depcomp" conftest.dir
  5130   cd conftest.dir
  5131   # We will build objects and dependencies in a subdirectory because
  5132   # it helps to detect inapplicable dependency modes.  For instance
  5133   # both Tru64's cc and ICC support -MD to output dependencies as a
  5134   # side effect of compilation, but ICC will put the dependencies in
  5135   # the current directory while Tru64 will put them in the object
  5136   # directory.
  5137   mkdir sub
  5139   am_cv_CC_dependencies_compiler_type=none
  5140   if test "$am_compiler_list" = ""; then
  5141      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5142   fi
  5143   for depmode in $am_compiler_list; do
  5144     # Setup a source with many dependencies, because some compilers
  5145     # like to wrap large dependency lists on column 80 (with \), and
  5146     # we should not choose a depcomp mode which is confused by this.
  5148     # We need to recreate these files for each test, as the compiler may
  5149     # overwrite some of them when testing with obscure command lines.
  5150     # This happens at least with the AIX C compiler.
  5151     : > sub/conftest.c
  5152     for i in 1 2 3 4 5 6; do
  5153       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5154       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5155       # Solaris 8's {/usr,}/bin/sh.
  5156       touch sub/conftst$i.h
  5157     done
  5158     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5160     case $depmode in
  5161     nosideeffect)
  5162       # after this tag, mechanisms are not by side-effect, so they'll
  5163       # only be used when explicitly requested
  5164       if test "x$enable_dependency_tracking" = xyes; then
  5165 	continue
  5166       else
  5167 	break
  5168       fi
  5169       ;;
  5170     none) break ;;
  5171     esac
  5172     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5173     # mode.  It turns out that the SunPro C++ compiler does not properly
  5174     # handle `-M -o', and we need to detect this.
  5175     if depmode=$depmode \
  5176        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5177        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5178        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5179          >/dev/null 2>conftest.err &&
  5180        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5181        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5182        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5183       # icc doesn't choke on unknown options, it will just issue warnings
  5184       # or remarks (even with -Werror).  So we grep stderr for any message
  5185       # that says an option was ignored or not supported.
  5186       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5187       #   icc: Command line warning: ignoring option '-M'; no argument required
  5188       # The diagnosis changed in icc 8.0:
  5189       #   icc: Command line remark: option '-MP' not supported
  5190       if (grep 'ignoring option' conftest.err ||
  5191           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5192         am_cv_CC_dependencies_compiler_type=$depmode
  5193         break
  5194       fi
  5195     fi
  5196   done
  5198   cd ..
  5199   rm -rf conftest.dir
  5200 else
  5201   am_cv_CC_dependencies_compiler_type=none
  5202 fi
  5204 fi
  5205 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5206 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5207 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5211 if
  5212   test "x$enable_dependency_tracking" != xno \
  5213   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5214   am__fastdepCC_TRUE=
  5215   am__fastdepCC_FALSE='#'
  5216 else
  5217   am__fastdepCC_TRUE='#'
  5218   am__fastdepCC_FALSE=
  5219 fi
  5223 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5225 # By default we simply use the C compiler to build assembly code.
  5227 test "${CCAS+set}" = set || CCAS=$CC
  5228 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5232 ac_ext=c
  5233 ac_cpp='$CPP $CPPFLAGS'
  5234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5237 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5238 $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5239 # On Suns, sometimes $CPP names a directory.
  5240 if test -n "$CPP" && test -d "$CPP"; then
  5241   CPP=
  5242 fi
  5243 if test -z "$CPP"; then
  5244   if test "${ac_cv_prog_CPP+set}" = set; then
  5245   $as_echo_n "(cached) " >&6
  5246 else
  5247       # Double quotes because CPP needs to be expanded
  5248     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5249     do
  5250       ac_preproc_ok=false
  5251 for ac_c_preproc_warn_flag in '' yes
  5252 do
  5253   # Use a header file that comes with gcc, so configuring glibc
  5254   # with a fresh cross-compiler works.
  5255   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5256   # <limits.h> exists even on freestanding compilers.
  5257   # On the NeXT, cc -E runs the code through the compiler's parser,
  5258   # not just through cpp. "Syntax error" is here to catch this case.
  5259   cat >conftest.$ac_ext <<_ACEOF
  5260 /* confdefs.h.  */
  5261 _ACEOF
  5262 cat confdefs.h >>conftest.$ac_ext
  5263 cat >>conftest.$ac_ext <<_ACEOF
  5264 /* end confdefs.h.  */
  5265 #ifdef __STDC__
  5266 # include <limits.h>
  5267 #else
  5268 # include <assert.h>
  5269 #endif
  5270 		     Syntax error
  5271 _ACEOF
  5272 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5273 case "(($ac_try" in
  5274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5275   *) ac_try_echo=$ac_try;;
  5276 esac
  5277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5278 $as_echo "$ac_try_echo") >&5
  5279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5280   ac_status=$?
  5281   grep -v '^ *+' conftest.er1 >conftest.err
  5282   rm -f conftest.er1
  5283   cat conftest.err >&5
  5284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5285   (exit $ac_status); } >/dev/null && {
  5286 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5287 	 test ! -s conftest.err
  5288        }; then
  5290 else
  5291   $as_echo "$as_me: failed program was:" >&5
  5292 sed 's/^/| /' conftest.$ac_ext >&5
  5294   # Broken: fails on valid input.
  5295 continue
  5296 fi
  5298 rm -f conftest.err conftest.$ac_ext
  5300   # OK, works on sane cases.  Now check whether nonexistent headers
  5301   # can be detected and how.
  5302   cat >conftest.$ac_ext <<_ACEOF
  5303 /* confdefs.h.  */
  5304 _ACEOF
  5305 cat confdefs.h >>conftest.$ac_ext
  5306 cat >>conftest.$ac_ext <<_ACEOF
  5307 /* end confdefs.h.  */
  5308 #include <ac_nonexistent.h>
  5309 _ACEOF
  5310 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5311 case "(($ac_try" in
  5312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5313   *) ac_try_echo=$ac_try;;
  5314 esac
  5315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5316 $as_echo "$ac_try_echo") >&5
  5317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5318   ac_status=$?
  5319   grep -v '^ *+' conftest.er1 >conftest.err
  5320   rm -f conftest.er1
  5321   cat conftest.err >&5
  5322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5323   (exit $ac_status); } >/dev/null && {
  5324 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5325 	 test ! -s conftest.err
  5326        }; then
  5327   # Broken: success on invalid input.
  5328 continue
  5329 else
  5330   $as_echo "$as_me: failed program was:" >&5
  5331 sed 's/^/| /' conftest.$ac_ext >&5
  5333   # Passes both tests.
  5334 ac_preproc_ok=:
  5335 break
  5336 fi
  5338 rm -f conftest.err conftest.$ac_ext
  5340 done
  5341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5342 rm -f conftest.err conftest.$ac_ext
  5343 if $ac_preproc_ok; then
  5344   break
  5345 fi
  5347     done
  5348     ac_cv_prog_CPP=$CPP
  5350 fi
  5351   CPP=$ac_cv_prog_CPP
  5352 else
  5353   ac_cv_prog_CPP=$CPP
  5354 fi
  5355 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5356 $as_echo "$CPP" >&6; }
  5357 ac_preproc_ok=false
  5358 for ac_c_preproc_warn_flag in '' yes
  5359 do
  5360   # Use a header file that comes with gcc, so configuring glibc
  5361   # with a fresh cross-compiler works.
  5362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5363   # <limits.h> exists even on freestanding compilers.
  5364   # On the NeXT, cc -E runs the code through the compiler's parser,
  5365   # not just through cpp. "Syntax error" is here to catch this case.
  5366   cat >conftest.$ac_ext <<_ACEOF
  5367 /* confdefs.h.  */
  5368 _ACEOF
  5369 cat confdefs.h >>conftest.$ac_ext
  5370 cat >>conftest.$ac_ext <<_ACEOF
  5371 /* end confdefs.h.  */
  5372 #ifdef __STDC__
  5373 # include <limits.h>
  5374 #else
  5375 # include <assert.h>
  5376 #endif
  5377 		     Syntax error
  5378 _ACEOF
  5379 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5380 case "(($ac_try" in
  5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5382   *) ac_try_echo=$ac_try;;
  5383 esac
  5384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5385 $as_echo "$ac_try_echo") >&5
  5386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5387   ac_status=$?
  5388   grep -v '^ *+' conftest.er1 >conftest.err
  5389   rm -f conftest.er1
  5390   cat conftest.err >&5
  5391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5392   (exit $ac_status); } >/dev/null && {
  5393 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5394 	 test ! -s conftest.err
  5395        }; then
  5397 else
  5398   $as_echo "$as_me: failed program was:" >&5
  5399 sed 's/^/| /' conftest.$ac_ext >&5
  5401   # Broken: fails on valid input.
  5402 continue
  5403 fi
  5405 rm -f conftest.err conftest.$ac_ext
  5407   # OK, works on sane cases.  Now check whether nonexistent headers
  5408   # can be detected and how.
  5409   cat >conftest.$ac_ext <<_ACEOF
  5410 /* confdefs.h.  */
  5411 _ACEOF
  5412 cat confdefs.h >>conftest.$ac_ext
  5413 cat >>conftest.$ac_ext <<_ACEOF
  5414 /* end confdefs.h.  */
  5415 #include <ac_nonexistent.h>
  5416 _ACEOF
  5417 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5418 case "(($ac_try" in
  5419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5420   *) ac_try_echo=$ac_try;;
  5421 esac
  5422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5423 $as_echo "$ac_try_echo") >&5
  5424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5425   ac_status=$?
  5426   grep -v '^ *+' conftest.er1 >conftest.err
  5427   rm -f conftest.er1
  5428   cat conftest.err >&5
  5429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5430   (exit $ac_status); } >/dev/null && {
  5431 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5432 	 test ! -s conftest.err
  5433        }; then
  5434   # Broken: success on invalid input.
  5435 continue
  5436 else
  5437   $as_echo "$as_me: failed program was:" >&5
  5438 sed 's/^/| /' conftest.$ac_ext >&5
  5440   # Passes both tests.
  5441 ac_preproc_ok=:
  5442 break
  5443 fi
  5445 rm -f conftest.err conftest.$ac_ext
  5447 done
  5448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5449 rm -f conftest.err conftest.$ac_ext
  5450 if $ac_preproc_ok; then
  5452 else
  5453   { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5454 See \`config.log' for more details." >&5
  5455 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5456 See \`config.log' for more details." >&2;}
  5457    { (exit 1); exit 1; }; }
  5458 fi
  5460 ac_ext=c
  5461 ac_cpp='$CPP $CPPFLAGS'
  5462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5467 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5468 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5469 if test "${ac_cv_path_GREP+set}" = set; then
  5470   $as_echo_n "(cached) " >&6
  5471 else
  5472   if test -z "$GREP"; then
  5473   ac_path_GREP_found=false
  5474   # Loop through the user's path and test for each of PROGNAME-LIST
  5475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5477 do
  5478   IFS=$as_save_IFS
  5479   test -z "$as_dir" && as_dir=.
  5480   for ac_prog in grep ggrep; do
  5481     for ac_exec_ext in '' $ac_executable_extensions; do
  5482       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5483       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5484 # Check for GNU ac_path_GREP and select it if it is found.
  5485   # Check for GNU $ac_path_GREP
  5486 case `"$ac_path_GREP" --version 2>&1` in
  5487 *GNU*)
  5488   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5489 *)
  5490   ac_count=0
  5491   $as_echo_n 0123456789 >"conftest.in"
  5492   while :
  5493   do
  5494     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5495     mv "conftest.tmp" "conftest.in"
  5496     cp "conftest.in" "conftest.nl"
  5497     $as_echo 'GREP' >> "conftest.nl"
  5498     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5499     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5500     ac_count=`expr $ac_count + 1`
  5501     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5502       # Best one so far, save it but keep looking for a better one
  5503       ac_cv_path_GREP="$ac_path_GREP"
  5504       ac_path_GREP_max=$ac_count
  5505     fi
  5506     # 10*(2^10) chars as input seems more than enough
  5507     test $ac_count -gt 10 && break
  5508   done
  5509   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5510 esac
  5512       $ac_path_GREP_found && break 3
  5513     done
  5514   done
  5515 done
  5516 IFS=$as_save_IFS
  5517   if test -z "$ac_cv_path_GREP"; then
  5518     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5519 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5520    { (exit 1); exit 1; }; }
  5521   fi
  5522 else
  5523   ac_cv_path_GREP=$GREP
  5524 fi
  5526 fi
  5527 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5528 $as_echo "$ac_cv_path_GREP" >&6; }
  5529  GREP="$ac_cv_path_GREP"
  5532 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  5533 $as_echo_n "checking for egrep... " >&6; }
  5534 if test "${ac_cv_path_EGREP+set}" = set; then
  5535   $as_echo_n "(cached) " >&6
  5536 else
  5537   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5538    then ac_cv_path_EGREP="$GREP -E"
  5539    else
  5540      if test -z "$EGREP"; then
  5541   ac_path_EGREP_found=false
  5542   # Loop through the user's path and test for each of PROGNAME-LIST
  5543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5544 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5545 do
  5546   IFS=$as_save_IFS
  5547   test -z "$as_dir" && as_dir=.
  5548   for ac_prog in egrep; do
  5549     for ac_exec_ext in '' $ac_executable_extensions; do
  5550       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5551       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5552 # Check for GNU ac_path_EGREP and select it if it is found.
  5553   # Check for GNU $ac_path_EGREP
  5554 case `"$ac_path_EGREP" --version 2>&1` in
  5555 *GNU*)
  5556   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5557 *)
  5558   ac_count=0
  5559   $as_echo_n 0123456789 >"conftest.in"
  5560   while :
  5561   do
  5562     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5563     mv "conftest.tmp" "conftest.in"
  5564     cp "conftest.in" "conftest.nl"
  5565     $as_echo 'EGREP' >> "conftest.nl"
  5566     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5567     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5568     ac_count=`expr $ac_count + 1`
  5569     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5570       # Best one so far, save it but keep looking for a better one
  5571       ac_cv_path_EGREP="$ac_path_EGREP"
  5572       ac_path_EGREP_max=$ac_count
  5573     fi
  5574     # 10*(2^10) chars as input seems more than enough
  5575     test $ac_count -gt 10 && break
  5576   done
  5577   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5578 esac
  5580       $ac_path_EGREP_found && break 3
  5581     done
  5582   done
  5583 done
  5584 IFS=$as_save_IFS
  5585   if test -z "$ac_cv_path_EGREP"; then
  5586     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5587 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5588    { (exit 1); exit 1; }; }
  5589   fi
  5590 else
  5591   ac_cv_path_EGREP=$EGREP
  5592 fi
  5594    fi
  5595 fi
  5596 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5597 $as_echo "$ac_cv_path_EGREP" >&6; }
  5598  EGREP="$ac_cv_path_EGREP"
  5601 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5602 $as_echo_n "checking for ANSI C header files... " >&6; }
  5603 if test "${ac_cv_header_stdc+set}" = set; then
  5604   $as_echo_n "(cached) " >&6
  5605 else
  5606   cat >conftest.$ac_ext <<_ACEOF
  5607 /* confdefs.h.  */
  5608 _ACEOF
  5609 cat confdefs.h >>conftest.$ac_ext
  5610 cat >>conftest.$ac_ext <<_ACEOF
  5611 /* end confdefs.h.  */
  5612 #include <stdlib.h>
  5613 #include <stdarg.h>
  5614 #include <string.h>
  5615 #include <float.h>
  5617 int
  5618 main ()
  5622   return 0;
  5624 _ACEOF
  5625 rm -f conftest.$ac_objext
  5626 if { (ac_try="$ac_compile"
  5627 case "(($ac_try" in
  5628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5629   *) ac_try_echo=$ac_try;;
  5630 esac
  5631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5632 $as_echo "$ac_try_echo") >&5
  5633   (eval "$ac_compile") 2>conftest.er1
  5634   ac_status=$?
  5635   grep -v '^ *+' conftest.er1 >conftest.err
  5636   rm -f conftest.er1
  5637   cat conftest.err >&5
  5638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5639   (exit $ac_status); } && {
  5640 	 test -z "$ac_c_werror_flag" ||
  5641 	 test ! -s conftest.err
  5642        } && test -s conftest.$ac_objext; then
  5643   ac_cv_header_stdc=yes
  5644 else
  5645   $as_echo "$as_me: failed program was:" >&5
  5646 sed 's/^/| /' conftest.$ac_ext >&5
  5648 	ac_cv_header_stdc=no
  5649 fi
  5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5653 if test $ac_cv_header_stdc = yes; then
  5654   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5655   cat >conftest.$ac_ext <<_ACEOF
  5656 /* confdefs.h.  */
  5657 _ACEOF
  5658 cat confdefs.h >>conftest.$ac_ext
  5659 cat >>conftest.$ac_ext <<_ACEOF
  5660 /* end confdefs.h.  */
  5661 #include <string.h>
  5663 _ACEOF
  5664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5665   $EGREP "memchr" >/dev/null 2>&1; then
  5667 else
  5668   ac_cv_header_stdc=no
  5669 fi
  5670 rm -f conftest*
  5672 fi
  5674 if test $ac_cv_header_stdc = yes; then
  5675   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5676   cat >conftest.$ac_ext <<_ACEOF
  5677 /* confdefs.h.  */
  5678 _ACEOF
  5679 cat confdefs.h >>conftest.$ac_ext
  5680 cat >>conftest.$ac_ext <<_ACEOF
  5681 /* end confdefs.h.  */
  5682 #include <stdlib.h>
  5684 _ACEOF
  5685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5686   $EGREP "free" >/dev/null 2>&1; then
  5688 else
  5689   ac_cv_header_stdc=no
  5690 fi
  5691 rm -f conftest*
  5693 fi
  5695 if test $ac_cv_header_stdc = yes; then
  5696   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5697   if test "$cross_compiling" = yes; then
  5699 else
  5700   cat >conftest.$ac_ext <<_ACEOF
  5701 /* confdefs.h.  */
  5702 _ACEOF
  5703 cat confdefs.h >>conftest.$ac_ext
  5704 cat >>conftest.$ac_ext <<_ACEOF
  5705 /* end confdefs.h.  */
  5706 #include <ctype.h>
  5707 #include <stdlib.h>
  5708 #if ((' ' & 0x0FF) == 0x020)
  5709 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5710 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5711 #else
  5712 # define ISLOWER(c) \
  5713 		   (('a' <= (c) && (c) <= 'i') \
  5714 		     || ('j' <= (c) && (c) <= 'r') \
  5715 		     || ('s' <= (c) && (c) <= 'z'))
  5716 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5717 #endif
  5719 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5720 int
  5721 main ()
  5723   int i;
  5724   for (i = 0; i < 256; i++)
  5725     if (XOR (islower (i), ISLOWER (i))
  5726 	|| toupper (i) != TOUPPER (i))
  5727       return 2;
  5728   return 0;
  5730 _ACEOF
  5731 rm -f conftest$ac_exeext
  5732 if { (ac_try="$ac_link"
  5733 case "(($ac_try" in
  5734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5735   *) ac_try_echo=$ac_try;;
  5736 esac
  5737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5738 $as_echo "$ac_try_echo") >&5
  5739   (eval "$ac_link") 2>&5
  5740   ac_status=$?
  5741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5743   { (case "(($ac_try" in
  5744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5745   *) ac_try_echo=$ac_try;;
  5746 esac
  5747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5748 $as_echo "$ac_try_echo") >&5
  5749   (eval "$ac_try") 2>&5
  5750   ac_status=$?
  5751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5752   (exit $ac_status); }; }; then
  5754 else
  5755   $as_echo "$as_me: program exited with status $ac_status" >&5
  5756 $as_echo "$as_me: failed program was:" >&5
  5757 sed 's/^/| /' conftest.$ac_ext >&5
  5759 ( exit $ac_status )
  5760 ac_cv_header_stdc=no
  5761 fi
  5762 rm -rf conftest.dSYM
  5763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5764 fi
  5767 fi
  5768 fi
  5769 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5770 $as_echo "$ac_cv_header_stdc" >&6; }
  5771 if test $ac_cv_header_stdc = yes; then
  5773 cat >>confdefs.h <<\_ACEOF
  5774 #define STDC_HEADERS 1
  5775 _ACEOF
  5777 fi
  5779 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5790 		  inttypes.h stdint.h unistd.h
  5791 do
  5792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5794 $as_echo_n "checking for $ac_header... " >&6; }
  5795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5796   $as_echo_n "(cached) " >&6
  5797 else
  5798   cat >conftest.$ac_ext <<_ACEOF
  5799 /* confdefs.h.  */
  5800 _ACEOF
  5801 cat confdefs.h >>conftest.$ac_ext
  5802 cat >>conftest.$ac_ext <<_ACEOF
  5803 /* end confdefs.h.  */
  5804 $ac_includes_default
  5806 #include <$ac_header>
  5807 _ACEOF
  5808 rm -f conftest.$ac_objext
  5809 if { (ac_try="$ac_compile"
  5810 case "(($ac_try" in
  5811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5812   *) ac_try_echo=$ac_try;;
  5813 esac
  5814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5815 $as_echo "$ac_try_echo") >&5
  5816   (eval "$ac_compile") 2>conftest.er1
  5817   ac_status=$?
  5818   grep -v '^ *+' conftest.er1 >conftest.err
  5819   rm -f conftest.er1
  5820   cat conftest.err >&5
  5821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5822   (exit $ac_status); } && {
  5823 	 test -z "$ac_c_werror_flag" ||
  5824 	 test ! -s conftest.err
  5825        } && test -s conftest.$ac_objext; then
  5826   eval "$as_ac_Header=yes"
  5827 else
  5828   $as_echo "$as_me: failed program was:" >&5
  5829 sed 's/^/| /' conftest.$ac_ext >&5
  5831 	eval "$as_ac_Header=no"
  5832 fi
  5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5835 fi
  5836 ac_res=`eval 'as_val=${'$as_ac_Header'}
  5837 		 $as_echo "$as_val"'`
  5838 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5839 $as_echo "$ac_res" >&6; }
  5840 if test `eval 'as_val=${'$as_ac_Header'}
  5841 		 $as_echo "$as_val"'` = yes; then
  5842   cat >>confdefs.h <<_ACEOF
  5843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5844 _ACEOF
  5846 fi
  5848 done
  5851 # The cast to long int works around a bug in the HP C Compiler
  5852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5854 # This bug is HP SR number 8606223364.
  5855 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
  5856 $as_echo_n "checking size of void *... " >&6; }
  5857 if test "${ac_cv_sizeof_void_p+set}" = set; then
  5858   $as_echo_n "(cached) " >&6
  5859 else
  5860   if test "$cross_compiling" = yes; then
  5861   # Depending upon the size, compute the lo and hi bounds.
  5862 cat >conftest.$ac_ext <<_ACEOF
  5863 /* confdefs.h.  */
  5864 _ACEOF
  5865 cat confdefs.h >>conftest.$ac_ext
  5866 cat >>conftest.$ac_ext <<_ACEOF
  5867 /* end confdefs.h.  */
  5868 $ac_includes_default
  5869 int
  5870 main ()
  5872 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
  5873 test_array [0] = 0
  5876   return 0;
  5878 _ACEOF
  5879 rm -f conftest.$ac_objext
  5880 if { (ac_try="$ac_compile"
  5881 case "(($ac_try" in
  5882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5883   *) ac_try_echo=$ac_try;;
  5884 esac
  5885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5886 $as_echo "$ac_try_echo") >&5
  5887   (eval "$ac_compile") 2>conftest.er1
  5888   ac_status=$?
  5889   grep -v '^ *+' conftest.er1 >conftest.err
  5890   rm -f conftest.er1
  5891   cat conftest.err >&5
  5892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5893   (exit $ac_status); } && {
  5894 	 test -z "$ac_c_werror_flag" ||
  5895 	 test ! -s conftest.err
  5896        } && test -s conftest.$ac_objext; then
  5897   ac_lo=0 ac_mid=0
  5898   while :; do
  5899     cat >conftest.$ac_ext <<_ACEOF
  5900 /* confdefs.h.  */
  5901 _ACEOF
  5902 cat confdefs.h >>conftest.$ac_ext
  5903 cat >>conftest.$ac_ext <<_ACEOF
  5904 /* end confdefs.h.  */
  5905 $ac_includes_default
  5906 int
  5907 main ()
  5909 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  5910 test_array [0] = 0
  5913   return 0;
  5915 _ACEOF
  5916 rm -f conftest.$ac_objext
  5917 if { (ac_try="$ac_compile"
  5918 case "(($ac_try" in
  5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5920   *) ac_try_echo=$ac_try;;
  5921 esac
  5922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5923 $as_echo "$ac_try_echo") >&5
  5924   (eval "$ac_compile") 2>conftest.er1
  5925   ac_status=$?
  5926   grep -v '^ *+' conftest.er1 >conftest.err
  5927   rm -f conftest.er1
  5928   cat conftest.err >&5
  5929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5930   (exit $ac_status); } && {
  5931 	 test -z "$ac_c_werror_flag" ||
  5932 	 test ! -s conftest.err
  5933        } && test -s conftest.$ac_objext; then
  5934   ac_hi=$ac_mid; break
  5935 else
  5936   $as_echo "$as_me: failed program was:" >&5
  5937 sed 's/^/| /' conftest.$ac_ext >&5
  5939 	ac_lo=`expr $ac_mid + 1`
  5940 			if test $ac_lo -le $ac_mid; then
  5941 			  ac_lo= ac_hi=
  5942 			  break
  5943 			fi
  5944 			ac_mid=`expr 2 '*' $ac_mid + 1`
  5945 fi
  5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5948   done
  5949 else
  5950   $as_echo "$as_me: failed program was:" >&5
  5951 sed 's/^/| /' conftest.$ac_ext >&5
  5953 	cat >conftest.$ac_ext <<_ACEOF
  5954 /* confdefs.h.  */
  5955 _ACEOF
  5956 cat confdefs.h >>conftest.$ac_ext
  5957 cat >>conftest.$ac_ext <<_ACEOF
  5958 /* end confdefs.h.  */
  5959 $ac_includes_default
  5960 int
  5961 main ()
  5963 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
  5964 test_array [0] = 0
  5967   return 0;
  5969 _ACEOF
  5970 rm -f conftest.$ac_objext
  5971 if { (ac_try="$ac_compile"
  5972 case "(($ac_try" in
  5973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5974   *) ac_try_echo=$ac_try;;
  5975 esac
  5976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5977 $as_echo "$ac_try_echo") >&5
  5978   (eval "$ac_compile") 2>conftest.er1
  5979   ac_status=$?
  5980   grep -v '^ *+' conftest.er1 >conftest.err
  5981   rm -f conftest.er1
  5982   cat conftest.err >&5
  5983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5984   (exit $ac_status); } && {
  5985 	 test -z "$ac_c_werror_flag" ||
  5986 	 test ! -s conftest.err
  5987        } && test -s conftest.$ac_objext; then
  5988   ac_hi=-1 ac_mid=-1
  5989   while :; do
  5990     cat >conftest.$ac_ext <<_ACEOF
  5991 /* confdefs.h.  */
  5992 _ACEOF
  5993 cat confdefs.h >>conftest.$ac_ext
  5994 cat >>conftest.$ac_ext <<_ACEOF
  5995 /* end confdefs.h.  */
  5996 $ac_includes_default
  5997 int
  5998 main ()
  6000 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
  6001 test_array [0] = 0
  6004   return 0;
  6006 _ACEOF
  6007 rm -f conftest.$ac_objext
  6008 if { (ac_try="$ac_compile"
  6009 case "(($ac_try" in
  6010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6011   *) ac_try_echo=$ac_try;;
  6012 esac
  6013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6014 $as_echo "$ac_try_echo") >&5
  6015   (eval "$ac_compile") 2>conftest.er1
  6016   ac_status=$?
  6017   grep -v '^ *+' conftest.er1 >conftest.err
  6018   rm -f conftest.er1
  6019   cat conftest.err >&5
  6020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6021   (exit $ac_status); } && {
  6022 	 test -z "$ac_c_werror_flag" ||
  6023 	 test ! -s conftest.err
  6024        } && test -s conftest.$ac_objext; then
  6025   ac_lo=$ac_mid; break
  6026 else
  6027   $as_echo "$as_me: failed program was:" >&5
  6028 sed 's/^/| /' conftest.$ac_ext >&5
  6030 	ac_hi=`expr '(' $ac_mid ')' - 1`
  6031 			if test $ac_mid -le $ac_hi; then
  6032 			  ac_lo= ac_hi=
  6033 			  break
  6034 			fi
  6035 			ac_mid=`expr 2 '*' $ac_mid`
  6036 fi
  6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6039   done
  6040 else
  6041   $as_echo "$as_me: failed program was:" >&5
  6042 sed 's/^/| /' conftest.$ac_ext >&5
  6044 	ac_lo= ac_hi=
  6045 fi
  6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6048 fi
  6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6051 # Binary search between lo and hi bounds.
  6052 while test "x$ac_lo" != "x$ac_hi"; do
  6053   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6054   cat >conftest.$ac_ext <<_ACEOF
  6055 /* confdefs.h.  */
  6056 _ACEOF
  6057 cat confdefs.h >>conftest.$ac_ext
  6058 cat >>conftest.$ac_ext <<_ACEOF
  6059 /* end confdefs.h.  */
  6060 $ac_includes_default
  6061 int
  6062 main ()
  6064 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  6065 test_array [0] = 0
  6068   return 0;
  6070 _ACEOF
  6071 rm -f conftest.$ac_objext
  6072 if { (ac_try="$ac_compile"
  6073 case "(($ac_try" in
  6074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6075   *) ac_try_echo=$ac_try;;
  6076 esac
  6077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6078 $as_echo "$ac_try_echo") >&5
  6079   (eval "$ac_compile") 2>conftest.er1
  6080   ac_status=$?
  6081   grep -v '^ *+' conftest.er1 >conftest.err
  6082   rm -f conftest.er1
  6083   cat conftest.err >&5
  6084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6085   (exit $ac_status); } && {
  6086 	 test -z "$ac_c_werror_flag" ||
  6087 	 test ! -s conftest.err
  6088        } && test -s conftest.$ac_objext; then
  6089   ac_hi=$ac_mid
  6090 else
  6091   $as_echo "$as_me: failed program was:" >&5
  6092 sed 's/^/| /' conftest.$ac_ext >&5
  6094 	ac_lo=`expr '(' $ac_mid ')' + 1`
  6095 fi
  6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6098 done
  6099 case $ac_lo in
  6100 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  6101 '') if test "$ac_cv_type_void_p" = yes; then
  6102      { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6103 See \`config.log' for more details." >&5
  6104 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6105 See \`config.log' for more details." >&2;}
  6106    { (exit 77); exit 77; }; }
  6107    else
  6108      ac_cv_sizeof_void_p=0
  6109    fi ;;
  6110 esac
  6111 else
  6112   cat >conftest.$ac_ext <<_ACEOF
  6113 /* confdefs.h.  */
  6114 _ACEOF
  6115 cat confdefs.h >>conftest.$ac_ext
  6116 cat >>conftest.$ac_ext <<_ACEOF
  6117 /* end confdefs.h.  */
  6118 $ac_includes_default
  6119 static long int longval () { return (long int) (sizeof (void *)); }
  6120 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
  6121 #include <stdio.h>
  6122 #include <stdlib.h>
  6123 int
  6124 main ()
  6127   FILE *f = fopen ("conftest.val", "w");
  6128   if (! f)
  6129     return 1;
  6130   if (((long int) (sizeof (void *))) < 0)
  6132       long int i = longval ();
  6133       if (i != ((long int) (sizeof (void *))))
  6134 	return 1;
  6135       fprintf (f, "%ld", i);
  6137   else
  6139       unsigned long int i = ulongval ();
  6140       if (i != ((long int) (sizeof (void *))))
  6141 	return 1;
  6142       fprintf (f, "%lu", i);
  6144   /* Do not output a trailing newline, as this causes \r\n confusion
  6145      on some platforms.  */
  6146   return ferror (f) || fclose (f) != 0;
  6149   return 0;
  6151 _ACEOF
  6152 rm -f conftest$ac_exeext
  6153 if { (ac_try="$ac_link"
  6154 case "(($ac_try" in
  6155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6156   *) ac_try_echo=$ac_try;;
  6157 esac
  6158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6159 $as_echo "$ac_try_echo") >&5
  6160   (eval "$ac_link") 2>&5
  6161   ac_status=$?
  6162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6164   { (case "(($ac_try" in
  6165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6166   *) ac_try_echo=$ac_try;;
  6167 esac
  6168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6169 $as_echo "$ac_try_echo") >&5
  6170   (eval "$ac_try") 2>&5
  6171   ac_status=$?
  6172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6173   (exit $ac_status); }; }; then
  6174   ac_cv_sizeof_void_p=`cat conftest.val`
  6175 else
  6176   $as_echo "$as_me: program exited with status $ac_status" >&5
  6177 $as_echo "$as_me: failed program was:" >&5
  6178 sed 's/^/| /' conftest.$ac_ext >&5
  6180 ( exit $ac_status )
  6181 if test "$ac_cv_type_void_p" = yes; then
  6182      { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6183 See \`config.log' for more details." >&5
  6184 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6185 See \`config.log' for more details." >&2;}
  6186    { (exit 77); exit 77; }; }
  6187    else
  6188      ac_cv_sizeof_void_p=0
  6189    fi
  6190 fi
  6191 rm -rf conftest.dSYM
  6192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6193 fi
  6194 rm -f conftest.val
  6195 fi
  6196 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  6197 $as_echo "$ac_cv_sizeof_void_p" >&6; }
  6201 cat >>confdefs.h <<_ACEOF
  6202 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  6203 _ACEOF
  6206 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6207 $as_echo_n "checking for ANSI C header files... " >&6; }
  6208 if test "${ac_cv_header_stdc+set}" = set; then
  6209   $as_echo_n "(cached) " >&6
  6210 else
  6211   cat >conftest.$ac_ext <<_ACEOF
  6212 /* confdefs.h.  */
  6213 _ACEOF
  6214 cat confdefs.h >>conftest.$ac_ext
  6215 cat >>conftest.$ac_ext <<_ACEOF
  6216 /* end confdefs.h.  */
  6217 #include <stdlib.h>
  6218 #include <stdarg.h>
  6219 #include <string.h>
  6220 #include <float.h>
  6222 int
  6223 main ()
  6227   return 0;
  6229 _ACEOF
  6230 rm -f conftest.$ac_objext
  6231 if { (ac_try="$ac_compile"
  6232 case "(($ac_try" in
  6233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6234   *) ac_try_echo=$ac_try;;
  6235 esac
  6236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6237 $as_echo "$ac_try_echo") >&5
  6238   (eval "$ac_compile") 2>conftest.er1
  6239   ac_status=$?
  6240   grep -v '^ *+' conftest.er1 >conftest.err
  6241   rm -f conftest.er1
  6242   cat conftest.err >&5
  6243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6244   (exit $ac_status); } && {
  6245 	 test -z "$ac_c_werror_flag" ||
  6246 	 test ! -s conftest.err
  6247        } && test -s conftest.$ac_objext; then
  6248   ac_cv_header_stdc=yes
  6249 else
  6250   $as_echo "$as_me: failed program was:" >&5
  6251 sed 's/^/| /' conftest.$ac_ext >&5
  6253 	ac_cv_header_stdc=no
  6254 fi
  6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6258 if test $ac_cv_header_stdc = yes; then
  6259   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6260   cat >conftest.$ac_ext <<_ACEOF
  6261 /* confdefs.h.  */
  6262 _ACEOF
  6263 cat confdefs.h >>conftest.$ac_ext
  6264 cat >>conftest.$ac_ext <<_ACEOF
  6265 /* end confdefs.h.  */
  6266 #include <string.h>
  6268 _ACEOF
  6269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6270   $EGREP "memchr" >/dev/null 2>&1; then
  6272 else
  6273   ac_cv_header_stdc=no
  6274 fi
  6275 rm -f conftest*
  6277 fi
  6279 if test $ac_cv_header_stdc = yes; then
  6280   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6281   cat >conftest.$ac_ext <<_ACEOF
  6282 /* confdefs.h.  */
  6283 _ACEOF
  6284 cat confdefs.h >>conftest.$ac_ext
  6285 cat >>conftest.$ac_ext <<_ACEOF
  6286 /* end confdefs.h.  */
  6287 #include <stdlib.h>
  6289 _ACEOF
  6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6291   $EGREP "free" >/dev/null 2>&1; then
  6293 else
  6294   ac_cv_header_stdc=no
  6295 fi
  6296 rm -f conftest*
  6298 fi
  6300 if test $ac_cv_header_stdc = yes; then
  6301   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6302   if test "$cross_compiling" = yes; then
  6304 else
  6305   cat >conftest.$ac_ext <<_ACEOF
  6306 /* confdefs.h.  */
  6307 _ACEOF
  6308 cat confdefs.h >>conftest.$ac_ext
  6309 cat >>conftest.$ac_ext <<_ACEOF
  6310 /* end confdefs.h.  */
  6311 #include <ctype.h>
  6312 #include <stdlib.h>
  6313 #if ((' ' & 0x0FF) == 0x020)
  6314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6316 #else
  6317 # define ISLOWER(c) \
  6318 		   (('a' <= (c) && (c) <= 'i') \
  6319 		     || ('j' <= (c) && (c) <= 'r') \
  6320 		     || ('s' <= (c) && (c) <= 'z'))
  6321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6322 #endif
  6324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6325 int
  6326 main ()
  6328   int i;
  6329   for (i = 0; i < 256; i++)
  6330     if (XOR (islower (i), ISLOWER (i))
  6331 	|| toupper (i) != TOUPPER (i))
  6332       return 2;
  6333   return 0;
  6335 _ACEOF
  6336 rm -f conftest$ac_exeext
  6337 if { (ac_try="$ac_link"
  6338 case "(($ac_try" in
  6339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6340   *) ac_try_echo=$ac_try;;
  6341 esac
  6342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6343 $as_echo "$ac_try_echo") >&5
  6344   (eval "$ac_link") 2>&5
  6345   ac_status=$?
  6346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6348   { (case "(($ac_try" in
  6349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6350   *) ac_try_echo=$ac_try;;
  6351 esac
  6352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6353 $as_echo "$ac_try_echo") >&5
  6354   (eval "$ac_try") 2>&5
  6355   ac_status=$?
  6356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6357   (exit $ac_status); }; }; then
  6359 else
  6360   $as_echo "$as_me: program exited with status $ac_status" >&5
  6361 $as_echo "$as_me: failed program was:" >&5
  6362 sed 's/^/| /' conftest.$ac_ext >&5
  6364 ( exit $ac_status )
  6365 ac_cv_header_stdc=no
  6366 fi
  6367 rm -rf conftest.dSYM
  6368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6369 fi
  6372 fi
  6373 fi
  6374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6375 $as_echo "$ac_cv_header_stdc" >&6; }
  6376 if test $ac_cv_header_stdc = yes; then
  6378 cat >>confdefs.h <<\_ACEOF
  6379 #define STDC_HEADERS 1
  6380 _ACEOF
  6382 fi
  6384 # Make sure we can run config.sub.
  6385 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6386   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6387 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6388    { (exit 1); exit 1; }; }
  6390 { $as_echo "$as_me:$LINENO: checking build system type" >&5
  6391 $as_echo_n "checking build system type... " >&6; }
  6392 if test "${ac_cv_build+set}" = set; then
  6393   $as_echo_n "(cached) " >&6
  6394 else
  6395   ac_build_alias=$build_alias
  6396 test "x$ac_build_alias" = x &&
  6397   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6398 test "x$ac_build_alias" = x &&
  6399   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6400 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6401    { (exit 1); exit 1; }; }
  6402 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6403   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6404 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6405    { (exit 1); exit 1; }; }
  6407 fi
  6408 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6409 $as_echo "$ac_cv_build" >&6; }
  6410 case $ac_cv_build in
  6411 *-*-*) ;;
  6412 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6413 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  6414    { (exit 1); exit 1; }; };;
  6415 esac
  6416 build=$ac_cv_build
  6417 ac_save_IFS=$IFS; IFS='-'
  6418 set x $ac_cv_build
  6419 shift
  6420 build_cpu=$1
  6421 build_vendor=$2
  6422 shift; shift
  6423 # Remember, the first character of IFS is used to create $*,
  6424 # except with old shells:
  6425 build_os=$*
  6426 IFS=$ac_save_IFS
  6427 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6430 { $as_echo "$as_me:$LINENO: checking host system type" >&5
  6431 $as_echo_n "checking host system type... " >&6; }
  6432 if test "${ac_cv_host+set}" = set; then
  6433   $as_echo_n "(cached) " >&6
  6434 else
  6435   if test "x$host_alias" = x; then
  6436   ac_cv_host=$ac_cv_build
  6437 else
  6438   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6439     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6440 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6441    { (exit 1); exit 1; }; }
  6442 fi
  6444 fi
  6445 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6446 $as_echo "$ac_cv_host" >&6; }
  6447 case $ac_cv_host in
  6448 *-*-*) ;;
  6449 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6450 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  6451    { (exit 1); exit 1; }; };;
  6452 esac
  6453 host=$ac_cv_host
  6454 ac_save_IFS=$IFS; IFS='-'
  6455 set x $ac_cv_host
  6456 shift
  6457 host_cpu=$1
  6458 host_vendor=$2
  6459 shift; shift
  6460 # Remember, the first character of IFS is used to create $*,
  6461 # except with old shells:
  6462 host_os=$*
  6463 IFS=$ac_save_IFS
  6464 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6468 # Extract the first word of "pod2man", so it can be a program name with args.
  6469 set dummy pod2man; ac_word=$2
  6470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6471 $as_echo_n "checking for $ac_word... " >&6; }
  6472 if test "${ac_cv_path_POD2MAN+set}" = set; then
  6473   $as_echo_n "(cached) " >&6
  6474 else
  6475   case $POD2MAN in
  6476   [\\/]* | ?:[\\/]*)
  6477   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  6478   ;;
  6479   *)
  6480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6481 for as_dir in $PATH
  6482 do
  6483   IFS=$as_save_IFS
  6484   test -z "$as_dir" && as_dir=.
  6485   for ac_exec_ext in '' $ac_executable_extensions; do
  6486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6487     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  6488     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6489     break 2
  6490   fi
  6491 done
  6492 done
  6493 IFS=$as_save_IFS
  6495   ;;
  6496 esac
  6497 fi
  6498 POD2MAN=$ac_cv_path_POD2MAN
  6499 if test -n "$POD2MAN"; then
  6500   { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
  6501 $as_echo "$POD2MAN" >&6; }
  6502 else
  6503   { $as_echo "$as_me:$LINENO: result: no" >&5
  6504 $as_echo "no" >&6; }
  6505 fi
  6508 # Extract the first word of "pod2html", so it can be a program name with args.
  6509 set dummy pod2html; ac_word=$2
  6510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6511 $as_echo_n "checking for $ac_word... " >&6; }
  6512 if test "${ac_cv_path_POD2HTML+set}" = set; then
  6513   $as_echo_n "(cached) " >&6
  6514 else
  6515   case $POD2HTML in
  6516   [\\/]* | ?:[\\/]*)
  6517   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  6518   ;;
  6519   *)
  6520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6521 for as_dir in $PATH
  6522 do
  6523   IFS=$as_save_IFS
  6524   test -z "$as_dir" && as_dir=.
  6525   for ac_exec_ext in '' $ac_executable_extensions; do
  6526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6527     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  6528     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6529     break 2
  6530   fi
  6531 done
  6532 done
  6533 IFS=$as_save_IFS
  6535   ;;
  6536 esac
  6537 fi
  6538 POD2HTML=$ac_cv_path_POD2HTML
  6539 if test -n "$POD2HTML"; then
  6540   { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
  6541 $as_echo "$POD2HTML" >&6; }
  6542 else
  6543   { $as_echo "$as_me:$LINENO: result: no" >&5
  6544 $as_echo "no" >&6; }
  6545 fi
  6550 # Check whether --enable-trace was given.
  6551 if test "${enable_trace+set}" = set; then
  6552   enableval=$enable_trace; if test "$enableval" == "yes"; then
  6554 cat >>confdefs.h <<\_ACEOF
  6555 #define ENABLE_TRACE_IO 1
  6556 _ACEOF
  6558     fi
  6559 fi
  6561 # Check whether --enable-watch was given.
  6562 if test "${enable_watch+set}" = set; then
  6563   enableval=$enable_watch; if test "$enableval" == "yes"; then
  6565 cat >>confdefs.h <<\_ACEOF
  6566 #define ENABLE_WATCH 1
  6567 _ACEOF
  6569    fi
  6570 fi
  6572 # Check whether --enable-sh4stats was given.
  6573 if test "${enable_sh4stats+set}" = set; then
  6574   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  6576 cat >>confdefs.h <<\_ACEOF
  6577 #define ENABLE_SH4STATS 1
  6578 _ACEOF
  6580     fi
  6581 fi
  6584 # Check whether --with-osmesa was given.
  6585 if test "${with_osmesa+set}" = set; then
  6586   withval=$with_osmesa;
  6587 else
  6588   with_osmesa=no
  6589 fi
  6592 # Check whether --with-gtk was given.
  6593 if test "${with_gtk+set}" = set; then
  6594   withval=$with_gtk; with_gtk=yes
  6595 else
  6596   with_gtk=x11
  6597 fi
  6601 lxdream_save_cppflags="$CPPFLAGS"
  6602 CPPFLAGS="$CPPFLAGS -x objective-c"
  6603 cat >conftest.$ac_ext <<_ACEOF
  6604 /* confdefs.h.  */
  6605 _ACEOF
  6606 cat confdefs.h >>conftest.$ac_ext
  6607 cat >>conftest.$ac_ext <<_ACEOF
  6608 /* end confdefs.h.  */
  6609 @interface Foo @end
  6610 int
  6611 main ()
  6615   return 0;
  6617 _ACEOF
  6618 rm -f conftest.$ac_objext
  6619 if { (ac_try="$ac_compile"
  6620 case "(($ac_try" in
  6621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6622   *) ac_try_echo=$ac_try;;
  6623 esac
  6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6625 $as_echo "$ac_try_echo") >&5
  6626   (eval "$ac_compile") 2>conftest.er1
  6627   ac_status=$?
  6628   grep -v '^ *+' conftest.er1 >conftest.err
  6629   rm -f conftest.er1
  6630   cat conftest.err >&5
  6631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6632   (exit $ac_status); } && {
  6633 	 test -z "$ac_c_werror_flag" ||
  6634 	 test ! -s conftest.err
  6635        } && test -s conftest.$ac_objext; then
  6638    if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6639   { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  6640 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
  6641 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6642   $as_echo_n "(cached) " >&6
  6643 fi
  6644 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  6645 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  6646 else
  6647   # Is the header compilable?
  6648 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
  6649 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
  6650 cat >conftest.$ac_ext <<_ACEOF
  6651 /* confdefs.h.  */
  6652 _ACEOF
  6653 cat confdefs.h >>conftest.$ac_ext
  6654 cat >>conftest.$ac_ext <<_ACEOF
  6655 /* end confdefs.h.  */
  6656 $ac_includes_default
  6657 #include <Cocoa/Cocoa.h>
  6658 _ACEOF
  6659 rm -f conftest.$ac_objext
  6660 if { (ac_try="$ac_compile"
  6661 case "(($ac_try" in
  6662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6663   *) ac_try_echo=$ac_try;;
  6664 esac
  6665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6666 $as_echo "$ac_try_echo") >&5
  6667   (eval "$ac_compile") 2>conftest.er1
  6668   ac_status=$?
  6669   grep -v '^ *+' conftest.er1 >conftest.err
  6670   rm -f conftest.er1
  6671   cat conftest.err >&5
  6672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6673   (exit $ac_status); } && {
  6674 	 test -z "$ac_c_werror_flag" ||
  6675 	 test ! -s conftest.err
  6676        } && test -s conftest.$ac_objext; then
  6677   ac_header_compiler=yes
  6678 else
  6679   $as_echo "$as_me: failed program was:" >&5
  6680 sed 's/^/| /' conftest.$ac_ext >&5
  6682 	ac_header_compiler=no
  6683 fi
  6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6686 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6687 $as_echo "$ac_header_compiler" >&6; }
  6689 # Is the header present?
  6690 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
  6691 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
  6692 cat >conftest.$ac_ext <<_ACEOF
  6693 /* confdefs.h.  */
  6694 _ACEOF
  6695 cat confdefs.h >>conftest.$ac_ext
  6696 cat >>conftest.$ac_ext <<_ACEOF
  6697 /* end confdefs.h.  */
  6698 #include <Cocoa/Cocoa.h>
  6699 _ACEOF
  6700 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6701 case "(($ac_try" in
  6702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6703   *) ac_try_echo=$ac_try;;
  6704 esac
  6705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6706 $as_echo "$ac_try_echo") >&5
  6707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6708   ac_status=$?
  6709   grep -v '^ *+' conftest.er1 >conftest.err
  6710   rm -f conftest.er1
  6711   cat conftest.err >&5
  6712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6713   (exit $ac_status); } >/dev/null && {
  6714 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6715 	 test ! -s conftest.err
  6716        }; then
  6717   ac_header_preproc=yes
  6718 else
  6719   $as_echo "$as_me: failed program was:" >&5
  6720 sed 's/^/| /' conftest.$ac_ext >&5
  6722   ac_header_preproc=no
  6723 fi
  6725 rm -f conftest.err conftest.$ac_ext
  6726 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6727 $as_echo "$ac_header_preproc" >&6; }
  6729 # So?  What about this header?
  6730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6731   yes:no: )
  6732     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6733 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6734     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
  6735 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
  6736     ac_header_preproc=yes
  6737     ;;
  6738   no:yes:* )
  6739     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
  6740 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
  6741     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h:     check for missing prerequisite headers?" >&5
  6742 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h:     check for missing prerequisite headers?" >&2;}
  6743     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
  6744 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
  6745     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h:     section \"Present But Cannot Be Compiled\"" >&5
  6746 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6747     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
  6748 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
  6749     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
  6750 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
  6752     ;;
  6753 esac
  6754 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  6755 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
  6756 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6757   $as_echo_n "(cached) " >&6
  6758 else
  6759   ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
  6760 fi
  6761 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  6762 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  6764 fi
  6765 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  6767       HAVE_COCOA='yes'
  6768       APPLE_BUILD='yes'
  6769       LIBS="$LIBS -framework AppKit"
  6770       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"
  6772 cat >>confdefs.h <<\_ACEOF
  6773 #define HAVE_COCOA 1
  6774 _ACEOF
  6777 cat >>confdefs.h <<\_ACEOF
  6778 #define APPLE_BUILD 1
  6779 _ACEOF
  6781       if test "x$with_gtk" = "xx11"; then
  6782         with_gtk=no
  6783       fi
  6785 fi
  6790 else
  6791   $as_echo "$as_me: failed program was:" >&5
  6792 sed 's/^/| /' conftest.$ac_ext >&5
  6794 	CPPFLAGS="$lxdream_save_cppflags"
  6795 fi
  6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6800 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  6801   GUI_COCOA_TRUE=
  6802   GUI_COCOA_FALSE='#'
  6803 else
  6804   GUI_COCOA_TRUE='#'
  6805   GUI_COCOA_FALSE=
  6806 fi
  6811 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  6812 	if test -n "$ac_tool_prefix"; then
  6813   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  6814 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  6815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6816 $as_echo_n "checking for $ac_word... " >&6; }
  6817 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  6818   $as_echo_n "(cached) " >&6
  6819 else
  6820   case $PKG_CONFIG in
  6821   [\\/]* | ?:[\\/]*)
  6822   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6823   ;;
  6824   *)
  6825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6826 for as_dir in $PATH
  6827 do
  6828   IFS=$as_save_IFS
  6829   test -z "$as_dir" && as_dir=.
  6830   for ac_exec_ext in '' $ac_executable_extensions; do
  6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6832     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6833     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6834     break 2
  6835   fi
  6836 done
  6837 done
  6838 IFS=$as_save_IFS
  6840   ;;
  6841 esac
  6842 fi
  6843 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6844 if test -n "$PKG_CONFIG"; then
  6845   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  6846 $as_echo "$PKG_CONFIG" >&6; }
  6847 else
  6848   { $as_echo "$as_me:$LINENO: result: no" >&5
  6849 $as_echo "no" >&6; }
  6850 fi
  6853 fi
  6854 if test -z "$ac_cv_path_PKG_CONFIG"; then
  6855   ac_pt_PKG_CONFIG=$PKG_CONFIG
  6856   # Extract the first word of "pkg-config", so it can be a program name with args.
  6857 set dummy pkg-config; ac_word=$2
  6858 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6859 $as_echo_n "checking for $ac_word... " >&6; }
  6860 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  6861   $as_echo_n "(cached) " >&6
  6862 else
  6863   case $ac_pt_PKG_CONFIG in
  6864   [\\/]* | ?:[\\/]*)
  6865   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  6866   ;;
  6867   *)
  6868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6869 for as_dir in $PATH
  6870 do
  6871   IFS=$as_save_IFS
  6872   test -z "$as_dir" && as_dir=.
  6873   for ac_exec_ext in '' $ac_executable_extensions; do
  6874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6875     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6876     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6877     break 2
  6878   fi
  6879 done
  6880 done
  6881 IFS=$as_save_IFS
  6883   ;;
  6884 esac
  6885 fi
  6886 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  6887 if test -n "$ac_pt_PKG_CONFIG"; then
  6888   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  6889 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  6890 else
  6891   { $as_echo "$as_me:$LINENO: result: no" >&5
  6892 $as_echo "no" >&6; }
  6893 fi
  6895   if test "x$ac_pt_PKG_CONFIG" = x; then
  6896     PKG_CONFIG=""
  6897   else
  6898     case $cross_compiling:$ac_tool_warned in
  6899 yes:)
  6900 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6901 whose name does not start with the host triplet.  If you think this
  6902 configuration is useful to you, please write to autoconf@gnu.org." >&5
  6903 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6904 whose name does not start with the host triplet.  If you think this
  6905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6906 ac_tool_warned=yes ;;
  6907 esac
  6908     PKG_CONFIG=$ac_pt_PKG_CONFIG
  6909   fi
  6910 else
  6911   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  6912 fi
  6914 fi
  6915 if test -n "$PKG_CONFIG"; then
  6916 	_pkg_min_version=0.9.0
  6917 	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  6918 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  6919 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  6920 		{ $as_echo "$as_me:$LINENO: result: yes" >&5
  6921 $as_echo "yes" >&6; }
  6922 	else
  6923 		{ $as_echo "$as_me:$LINENO: result: no" >&5
  6924 $as_echo "no" >&6; }
  6925 		PKG_CONFIG=""
  6926 	fi
  6928 fi
  6930 pkg_failed=no
  6931 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
  6932 $as_echo_n "checking for LIBPNG... " >&6; }
  6934 if test -n "$PKG_CONFIG"; then
  6935     if test -n "$LIBPNG_CFLAGS"; then
  6936         pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  6937     else
  6938         if test -n "$PKG_CONFIG" && \
  6939     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  6940   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  6941   ac_status=$?
  6942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6943   (exit $ac_status); }; then
  6944   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  6945 else
  6946   pkg_failed=yes
  6947 fi
  6948     fi
  6949 else
  6950 	pkg_failed=untried
  6951 fi
  6952 if test -n "$PKG_CONFIG"; then
  6953     if test -n "$LIBPNG_LIBS"; then
  6954         pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  6955     else
  6956         if test -n "$PKG_CONFIG" && \
  6957     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  6958   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  6959   ac_status=$?
  6960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6961   (exit $ac_status); }; then
  6962   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  6963 else
  6964   pkg_failed=yes
  6965 fi
  6966     fi
  6967 else
  6968 	pkg_failed=untried
  6969 fi
  6973 if test $pkg_failed = yes; then
  6975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6976         _pkg_short_errors_supported=yes
  6977 else
  6978         _pkg_short_errors_supported=no
  6979 fi
  6980         if test $_pkg_short_errors_supported = yes; then
  6981 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
  6982         else
  6983 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
  6984         fi
  6985 	# Put the nasty error message in config.log where it belongs
  6986 	echo "$LIBPNG_PKG_ERRORS" >&5
  6988 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  6990 $LIBPNG_PKG_ERRORS
  6992 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6993 installed software in a non-standard prefix.
  6995 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  6996 and LIBPNG_LIBS to avoid the need to call pkg-config.
  6997 See the pkg-config man page for more details.
  6998 " >&5
  6999 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
  7001 $LIBPNG_PKG_ERRORS
  7003 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7004 installed software in a non-standard prefix.
  7006 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  7007 and LIBPNG_LIBS to avoid the need to call pkg-config.
  7008 See the pkg-config man page for more details.
  7009 " >&2;}
  7010    { (exit 1); exit 1; }; }
  7011 elif test $pkg_failed = untried; then
  7012 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  7013 is in your PATH or set the PKG_CONFIG environment variable to the full
  7014 path to pkg-config.
  7016 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  7017 and LIBPNG_LIBS to avoid the need to call pkg-config.
  7018 See the pkg-config man page for more details.
  7020 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7021 See \`config.log' for more details." >&5
  7022 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  7023 is in your PATH or set the PKG_CONFIG environment variable to the full
  7024 path to pkg-config.
  7026 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  7027 and LIBPNG_LIBS to avoid the need to call pkg-config.
  7028 See the pkg-config man page for more details.
  7030 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7031 See \`config.log' for more details." >&2;}
  7032    { (exit 1); exit 1; }; }
  7033 else
  7034 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  7035 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  7036         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7037 $as_echo "yes" >&6; }
  7039 fi
  7042 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  7043 $as_echo_n "checking for uncompress in -lz... " >&6; }
  7044 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  7045   $as_echo_n "(cached) " >&6
  7046 else
  7047   ac_check_lib_save_LIBS=$LIBS
  7048 LIBS="-lz  $LIBS"
  7049 cat >conftest.$ac_ext <<_ACEOF
  7050 /* confdefs.h.  */
  7051 _ACEOF
  7052 cat confdefs.h >>conftest.$ac_ext
  7053 cat >>conftest.$ac_ext <<_ACEOF
  7054 /* end confdefs.h.  */
  7056 /* Override any GCC internal prototype to avoid an error.
  7057    Use char because int might match the return type of a GCC
  7058    builtin and then its argument prototype would still apply.  */
  7059 #ifdef __cplusplus
  7060 extern "C"
  7061 #endif
  7062 char uncompress ();
  7063 int
  7064 main ()
  7066 return uncompress ();
  7068   return 0;
  7070 _ACEOF
  7071 rm -f conftest.$ac_objext conftest$ac_exeext
  7072 if { (ac_try="$ac_link"
  7073 case "(($ac_try" in
  7074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7075   *) ac_try_echo=$ac_try;;
  7076 esac
  7077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7078 $as_echo "$ac_try_echo") >&5
  7079   (eval "$ac_link") 2>conftest.er1
  7080   ac_status=$?
  7081   grep -v '^ *+' conftest.er1 >conftest.err
  7082   rm -f conftest.er1
  7083   cat conftest.err >&5
  7084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7085   (exit $ac_status); } && {
  7086 	 test -z "$ac_c_werror_flag" ||
  7087 	 test ! -s conftest.err
  7088        } && test -s conftest$ac_exeext && {
  7089 	 test "$cross_compiling" = yes ||
  7090 	 $as_test_x conftest$ac_exeext
  7091        }; then
  7092   ac_cv_lib_z_uncompress=yes
  7093 else
  7094   $as_echo "$as_me: failed program was:" >&5
  7095 sed 's/^/| /' conftest.$ac_ext >&5
  7097 	ac_cv_lib_z_uncompress=no
  7098 fi
  7100 rm -rf conftest.dSYM
  7101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7102       conftest$ac_exeext conftest.$ac_ext
  7103 LIBS=$ac_check_lib_save_LIBS
  7104 fi
  7105 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  7106 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
  7107 if test $ac_cv_lib_z_uncompress = yes; then
  7108   cat >>confdefs.h <<_ACEOF
  7109 #define HAVE_LIBZ 1
  7110 _ACEOF
  7112   LIBS="-lz $LIBS"
  7114 else
  7116     echo "Zlib (libz.so) could not be found, but is required."
  7117     exit 1
  7118 fi
  7121 if test "x$with_gtk" = "xno"; then
  7123 pkg_failed=no
  7124 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
  7125 $as_echo_n "checking for GLIB... " >&6; }
  7127 if test -n "$PKG_CONFIG"; then
  7128     if test -n "$GLIB_CFLAGS"; then
  7129         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
  7130     else
  7131         if test -n "$PKG_CONFIG" && \
  7132     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  7133   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  7134   ac_status=$?
  7135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7136   (exit $ac_status); }; then
  7137   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
  7138 else
  7139   pkg_failed=yes
  7140 fi
  7141     fi
  7142 else
  7143 	pkg_failed=untried
  7144 fi
  7145 if test -n "$PKG_CONFIG"; then
  7146     if test -n "$GLIB_LIBS"; then
  7147         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
  7148     else
  7149         if test -n "$PKG_CONFIG" && \
  7150     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  7151   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  7152   ac_status=$?
  7153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7154   (exit $ac_status); }; then
  7155   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
  7156 else
  7157   pkg_failed=yes
  7158 fi
  7159     fi
  7160 else
  7161 	pkg_failed=untried
  7162 fi
  7166 if test $pkg_failed = yes; then
  7168 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7169         _pkg_short_errors_supported=yes
  7170 else
  7171         _pkg_short_errors_supported=no
  7172 fi
  7173         if test $_pkg_short_errors_supported = yes; then
  7174 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
  7175         else
  7176 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
  7177         fi
  7178 	# Put the nasty error message in config.log where it belongs
  7179 	echo "$GLIB_PKG_ERRORS" >&5
  7181 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
  7183 $GLIB_PKG_ERRORS
  7185 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7186 installed software in a non-standard prefix.
  7188 Alternatively, you may set the environment variables GLIB_CFLAGS
  7189 and GLIB_LIBS to avoid the need to call pkg-config.
  7190 See the pkg-config man page for more details.
  7191 " >&5
  7192 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
  7194 $GLIB_PKG_ERRORS
  7196 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7197 installed software in a non-standard prefix.
  7199 Alternatively, you may set the environment variables GLIB_CFLAGS
  7200 and GLIB_LIBS to avoid the need to call pkg-config.
  7201 See the pkg-config man page for more details.
  7202 " >&2;}
  7203    { (exit 1); exit 1; }; }
  7204 elif test $pkg_failed = untried; then
  7205 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  7206 is in your PATH or set the PKG_CONFIG environment variable to the full
  7207 path to pkg-config.
  7209 Alternatively, you may set the environment variables GLIB_CFLAGS
  7210 and GLIB_LIBS to avoid the need to call pkg-config.
  7211 See the pkg-config man page for more details.
  7213 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7214 See \`config.log' for more details." >&5
  7215 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  7216 is in your PATH or set the PKG_CONFIG environment variable to the full
  7217 path to pkg-config.
  7219 Alternatively, you may set the environment variables GLIB_CFLAGS
  7220 and GLIB_LIBS to avoid the need to call pkg-config.
  7221 See the pkg-config man page for more details.
  7223 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7224 See \`config.log' for more details." >&2;}
  7225    { (exit 1); exit 1; }; }
  7226 else
  7227 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
  7228 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
  7229         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7230 $as_echo "yes" >&6; }
  7232 fi
  7233 else
  7235 pkg_failed=no
  7236 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
  7237 $as_echo_n "checking for GTK... " >&6; }
  7239 if test -n "$PKG_CONFIG"; then
  7240     if test -n "$GTK_CFLAGS"; then
  7241         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  7242     else
  7243         if test -n "$PKG_CONFIG" && \
  7244     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  7245   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  7246   ac_status=$?
  7247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7248   (exit $ac_status); }; then
  7249   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  7250 else
  7251   pkg_failed=yes
  7252 fi
  7253     fi
  7254 else
  7255 	pkg_failed=untried
  7256 fi
  7257 if test -n "$PKG_CONFIG"; then
  7258     if test -n "$GTK_LIBS"; then
  7259         pkg_cv_GTK_LIBS="$GTK_LIBS"
  7260     else
  7261         if test -n "$PKG_CONFIG" && \
  7262     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  7263   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  7264   ac_status=$?
  7265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7266   (exit $ac_status); }; then
  7267   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  7268 else
  7269   pkg_failed=yes
  7270 fi
  7271     fi
  7272 else
  7273 	pkg_failed=untried
  7274 fi
  7278 if test $pkg_failed = yes; then
  7280 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7281         _pkg_short_errors_supported=yes
  7282 else
  7283         _pkg_short_errors_supported=no
  7284 fi
  7285         if test $_pkg_short_errors_supported = yes; then
  7286 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
  7287         else
  7288 	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
  7289         fi
  7290 	# Put the nasty error message in config.log where it belongs
  7291 	echo "$GTK_PKG_ERRORS" >&5
  7293 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  7295 $GTK_PKG_ERRORS
  7297 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7298 installed software in a non-standard prefix.
  7300 Alternatively, you may set the environment variables GTK_CFLAGS
  7301 and GTK_LIBS to avoid the need to call pkg-config.
  7302 See the pkg-config man page for more details.
  7303 " >&5
  7304 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  7306 $GTK_PKG_ERRORS
  7308 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7309 installed software in a non-standard prefix.
  7311 Alternatively, you may set the environment variables GTK_CFLAGS
  7312 and GTK_LIBS to avoid the need to call pkg-config.
  7313 See the pkg-config man page for more details.
  7314 " >&2;}
  7315    { (exit 1); exit 1; }; }
  7316 elif test $pkg_failed = untried; then
  7317 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  7318 is in your PATH or set the PKG_CONFIG environment variable to the full
  7319 path to pkg-config.
  7321 Alternatively, you may set the environment variables GTK_CFLAGS
  7322 and GTK_LIBS to avoid the need to call pkg-config.
  7323 See the pkg-config man page for more details.
  7325 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7326 See \`config.log' for more details." >&5
  7327 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  7328 is in your PATH or set the PKG_CONFIG environment variable to the full
  7329 path to pkg-config.
  7331 Alternatively, you may set the environment variables GTK_CFLAGS
  7332 and GTK_LIBS to avoid the need to call pkg-config.
  7333 See the pkg-config man page for more details.
  7335 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7336 See \`config.log' for more details." >&2;}
  7337    { (exit 1); exit 1; }; }
  7338 else
  7339 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  7340 	GTK_LIBS=$pkg_cv_GTK_LIBS
  7341         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7342 $as_echo "yes" >&6; }
  7344        HAVE_GTK='yes'
  7346 cat >>confdefs.h <<\_ACEOF
  7347 #define HAVE_GTK 1
  7348 _ACEOF
  7351 fi
  7353       LIBS="$LIBS $GTK_LIBS"
  7354    { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
  7355 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
  7356 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
  7357   $as_echo_n "(cached) " >&6
  7358 else
  7359   cat >conftest.$ac_ext <<_ACEOF
  7360 /* confdefs.h.  */
  7361 _ACEOF
  7362 cat confdefs.h >>conftest.$ac_ext
  7363 cat >>conftest.$ac_ext <<_ACEOF
  7364 /* end confdefs.h.  */
  7365 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
  7366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7367 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
  7369 /* System header to define __stub macros and hopefully few prototypes,
  7370     which can conflict with char gdk_x11_display_get_xdisplay (); below.
  7371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7372     <limits.h> exists even on freestanding compilers.  */
  7374 #ifdef __STDC__
  7375 # include <limits.h>
  7376 #else
  7377 # include <assert.h>
  7378 #endif
  7380 #undef gdk_x11_display_get_xdisplay
  7382 /* Override any GCC internal prototype to avoid an error.
  7383    Use char because int might match the return type of a GCC
  7384    builtin and then its argument prototype would still apply.  */
  7385 #ifdef __cplusplus
  7386 extern "C"
  7387 #endif
  7388 char gdk_x11_display_get_xdisplay ();
  7389 /* The GNU C library defines this for functions which it implements
  7390     to always fail with ENOSYS.  Some functions are actually named
  7391     something starting with __ and the normal name is an alias.  */
  7392 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
  7393 choke me
  7394 #endif
  7396 int
  7397 main ()
  7399 return gdk_x11_display_get_xdisplay ();
  7401   return 0;
  7403 _ACEOF
  7404 rm -f conftest.$ac_objext conftest$ac_exeext
  7405 if { (ac_try="$ac_link"
  7406 case "(($ac_try" in
  7407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7408   *) ac_try_echo=$ac_try;;
  7409 esac
  7410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7411 $as_echo "$ac_try_echo") >&5
  7412   (eval "$ac_link") 2>conftest.er1
  7413   ac_status=$?
  7414   grep -v '^ *+' conftest.er1 >conftest.err
  7415   rm -f conftest.er1
  7416   cat conftest.err >&5
  7417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7418   (exit $ac_status); } && {
  7419 	 test -z "$ac_c_werror_flag" ||
  7420 	 test ! -s conftest.err
  7421        } && test -s conftest$ac_exeext && {
  7422 	 test "$cross_compiling" = yes ||
  7423 	 $as_test_x conftest$ac_exeext
  7424        }; then
  7425   ac_cv_func_gdk_x11_display_get_xdisplay=yes
  7426 else
  7427   $as_echo "$as_me: failed program was:" >&5
  7428 sed 's/^/| /' conftest.$ac_ext >&5
  7430 	ac_cv_func_gdk_x11_display_get_xdisplay=no
  7431 fi
  7433 rm -rf conftest.dSYM
  7434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7435       conftest$ac_exeext conftest.$ac_ext
  7436 fi
  7437 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
  7438 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
  7439 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
  7441       HAVE_GTK_X11='yes'
  7443 cat >>confdefs.h <<\_ACEOF
  7444 #define HAVE_GTK_X11 1
  7445 _ACEOF
  7447 fi
  7449    { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
  7450 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
  7451 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
  7452   $as_echo_n "(cached) " >&6
  7453 else
  7454   cat >conftest.$ac_ext <<_ACEOF
  7455 /* confdefs.h.  */
  7456 _ACEOF
  7457 cat confdefs.h >>conftest.$ac_ext
  7458 cat >>conftest.$ac_ext <<_ACEOF
  7459 /* end confdefs.h.  */
  7460 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
  7461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7462 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
  7464 /* System header to define __stub macros and hopefully few prototypes,
  7465     which can conflict with char gdk_quartz_window_get_nsview (); below.
  7466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7467     <limits.h> exists even on freestanding compilers.  */
  7469 #ifdef __STDC__
  7470 # include <limits.h>
  7471 #else
  7472 # include <assert.h>
  7473 #endif
  7475 #undef gdk_quartz_window_get_nsview
  7477 /* Override any GCC internal prototype to avoid an error.
  7478    Use char because int might match the return type of a GCC
  7479    builtin and then its argument prototype would still apply.  */
  7480 #ifdef __cplusplus
  7481 extern "C"
  7482 #endif
  7483 char gdk_quartz_window_get_nsview ();
  7484 /* The GNU C library defines this for functions which it implements
  7485     to always fail with ENOSYS.  Some functions are actually named
  7486     something starting with __ and the normal name is an alias.  */
  7487 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
  7488 choke me
  7489 #endif
  7491 int
  7492 main ()
  7494 return gdk_quartz_window_get_nsview ();
  7496   return 0;
  7498 _ACEOF
  7499 rm -f conftest.$ac_objext conftest$ac_exeext
  7500 if { (ac_try="$ac_link"
  7501 case "(($ac_try" in
  7502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7503   *) ac_try_echo=$ac_try;;
  7504 esac
  7505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7506 $as_echo "$ac_try_echo") >&5
  7507   (eval "$ac_link") 2>conftest.er1
  7508   ac_status=$?
  7509   grep -v '^ *+' conftest.er1 >conftest.err
  7510   rm -f conftest.er1
  7511   cat conftest.err >&5
  7512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7513   (exit $ac_status); } && {
  7514 	 test -z "$ac_c_werror_flag" ||
  7515 	 test ! -s conftest.err
  7516        } && test -s conftest$ac_exeext && {
  7517 	 test "$cross_compiling" = yes ||
  7518 	 $as_test_x conftest$ac_exeext
  7519        }; then
  7520   ac_cv_func_gdk_quartz_window_get_nsview=yes
  7521 else
  7522   $as_echo "$as_me: failed program was:" >&5
  7523 sed 's/^/| /' conftest.$ac_ext >&5
  7525 	ac_cv_func_gdk_quartz_window_get_nsview=no
  7526 fi
  7528 rm -rf conftest.dSYM
  7529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7530       conftest$ac_exeext conftest.$ac_ext
  7531 fi
  7532 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
  7533 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
  7534 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
  7536       HAVE_GTK_OSX='yes'
  7538 cat >>confdefs.h <<\_ACEOF
  7539 #define HAVE_GTK_OSX 1
  7540 _ACEOF
  7542 fi
  7544 fi
  7548 if test "$HAVE_GTK" = 'yes'; then
  7549   GUI_GTK_TRUE=
  7550   GUI_GTK_FALSE='#'
  7551 else
  7552   GUI_GTK_TRUE='#'
  7553   GUI_GTK_FALSE=
  7554 fi
  7557 if test "x$with_osmesa" != xno; then
  7561 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  7562 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
  7563 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  7564   $as_echo_n "(cached) " >&6
  7565 else
  7566   ac_check_lib_save_LIBS=$LIBS
  7567 LIBS="-lOSMesa  $LIBS"
  7568 cat >conftest.$ac_ext <<_ACEOF
  7569 /* confdefs.h.  */
  7570 _ACEOF
  7571 cat confdefs.h >>conftest.$ac_ext
  7572 cat >>conftest.$ac_ext <<_ACEOF
  7573 /* end confdefs.h.  */
  7575 /* Override any GCC internal prototype to avoid an error.
  7576    Use char because int might match the return type of a GCC
  7577    builtin and then its argument prototype would still apply.  */
  7578 #ifdef __cplusplus
  7579 extern "C"
  7580 #endif
  7581 char OSMesaCreateContext ();
  7582 int
  7583 main ()
  7585 return OSMesaCreateContext ();
  7587   return 0;
  7589 _ACEOF
  7590 rm -f conftest.$ac_objext conftest$ac_exeext
  7591 if { (ac_try="$ac_link"
  7592 case "(($ac_try" in
  7593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7594   *) ac_try_echo=$ac_try;;
  7595 esac
  7596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7597 $as_echo "$ac_try_echo") >&5
  7598   (eval "$ac_link") 2>conftest.er1
  7599   ac_status=$?
  7600   grep -v '^ *+' conftest.er1 >conftest.err
  7601   rm -f conftest.er1
  7602   cat conftest.err >&5
  7603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7604   (exit $ac_status); } && {
  7605 	 test -z "$ac_c_werror_flag" ||
  7606 	 test ! -s conftest.err
  7607        } && test -s conftest$ac_exeext && {
  7608 	 test "$cross_compiling" = yes ||
  7609 	 $as_test_x conftest$ac_exeext
  7610        }; then
  7611   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  7612 else
  7613   $as_echo "$as_me: failed program was:" >&5
  7614 sed 's/^/| /' conftest.$ac_ext >&5
  7616 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  7617 fi
  7619 rm -rf conftest.dSYM
  7620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7621       conftest$ac_exeext conftest.$ac_ext
  7622 LIBS=$ac_check_lib_save_LIBS
  7623 fi
  7624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  7625 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  7626 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
  7627   cat >>confdefs.h <<_ACEOF
  7628 #define HAVE_LIBOSMESA 1
  7629 _ACEOF
  7631   LIBS="-lOSMesa $LIBS"
  7633 else
  7634   { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  7635 See \`config.log' for more details." >&5
  7636 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  7637 See \`config.log' for more details." >&2;}
  7638    { (exit 1); exit 1; }; }
  7639 fi
  7641   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7642   { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  7643 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  7644 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7645   $as_echo_n "(cached) " >&6
  7646 fi
  7647 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  7648 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  7649 else
  7650   # Is the header compilable?
  7651 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  7652 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
  7653 cat >conftest.$ac_ext <<_ACEOF
  7654 /* confdefs.h.  */
  7655 _ACEOF
  7656 cat confdefs.h >>conftest.$ac_ext
  7657 cat >>conftest.$ac_ext <<_ACEOF
  7658 /* end confdefs.h.  */
  7659 $ac_includes_default
  7660 #include <GL/osmesa.h>
  7661 _ACEOF
  7662 rm -f conftest.$ac_objext
  7663 if { (ac_try="$ac_compile"
  7664 case "(($ac_try" in
  7665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7666   *) ac_try_echo=$ac_try;;
  7667 esac
  7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7669 $as_echo "$ac_try_echo") >&5
  7670   (eval "$ac_compile") 2>conftest.er1
  7671   ac_status=$?
  7672   grep -v '^ *+' conftest.er1 >conftest.err
  7673   rm -f conftest.er1
  7674   cat conftest.err >&5
  7675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7676   (exit $ac_status); } && {
  7677 	 test -z "$ac_c_werror_flag" ||
  7678 	 test ! -s conftest.err
  7679        } && test -s conftest.$ac_objext; then
  7680   ac_header_compiler=yes
  7681 else
  7682   $as_echo "$as_me: failed program was:" >&5
  7683 sed 's/^/| /' conftest.$ac_ext >&5
  7685 	ac_header_compiler=no
  7686 fi
  7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7689 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7690 $as_echo "$ac_header_compiler" >&6; }
  7692 # Is the header present?
  7693 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  7694 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
  7695 cat >conftest.$ac_ext <<_ACEOF
  7696 /* confdefs.h.  */
  7697 _ACEOF
  7698 cat confdefs.h >>conftest.$ac_ext
  7699 cat >>conftest.$ac_ext <<_ACEOF
  7700 /* end confdefs.h.  */
  7701 #include <GL/osmesa.h>
  7702 _ACEOF
  7703 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7704 case "(($ac_try" in
  7705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7706   *) ac_try_echo=$ac_try;;
  7707 esac
  7708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7709 $as_echo "$ac_try_echo") >&5
  7710   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7711   ac_status=$?
  7712   grep -v '^ *+' conftest.er1 >conftest.err
  7713   rm -f conftest.er1
  7714   cat conftest.err >&5
  7715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7716   (exit $ac_status); } >/dev/null && {
  7717 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7718 	 test ! -s conftest.err
  7719        }; then
  7720   ac_header_preproc=yes
  7721 else
  7722   $as_echo "$as_me: failed program was:" >&5
  7723 sed 's/^/| /' conftest.$ac_ext >&5
  7725   ac_header_preproc=no
  7726 fi
  7728 rm -f conftest.err conftest.$ac_ext
  7729 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7730 $as_echo "$ac_header_preproc" >&6; }
  7732 # So?  What about this header?
  7733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7734   yes:no: )
  7735     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7736 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7737     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  7738 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  7739     ac_header_preproc=yes
  7740     ;;
  7741   no:yes:* )
  7742     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  7743 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  7744     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  7745 $as_echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  7746     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  7747 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  7748     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  7749 $as_echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7750     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  7751 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  7752     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  7753 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  7755     ;;
  7756 esac
  7757 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  7758 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  7759 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7760   $as_echo_n "(cached) " >&6
  7761 else
  7762   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  7763 fi
  7764 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  7765 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  7767 fi
  7768 if test $ac_cv_header_GL_osmesa_h = yes; then
  7770 else
  7771   { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  7772 See \`config.log' for more details." >&5
  7773 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  7774 See \`config.log' for more details." >&2;}
  7775    { (exit 1); exit 1; }; }
  7776 fi
  7779   HAVE_OSMESA='yes'
  7780   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
  7782 cat >>confdefs.h <<\_ACEOF
  7783 #define HAVE_OSMESA 1
  7784 _ACEOF
  7786 else
  7789    if test "x$APPLE_BUILD" != 'xyes'; then
  7791 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
  7792 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
  7793 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
  7794   $as_echo_n "(cached) " >&6
  7795 else
  7796   ac_check_lib_save_LIBS=$LIBS
  7797 LIBS="-lGL  $LIBS"
  7798 cat >conftest.$ac_ext <<_ACEOF
  7799 /* confdefs.h.  */
  7800 _ACEOF
  7801 cat confdefs.h >>conftest.$ac_ext
  7802 cat >>conftest.$ac_ext <<_ACEOF
  7803 /* end confdefs.h.  */
  7805 /* Override any GCC internal prototype to avoid an error.
  7806    Use char because int might match the return type of a GCC
  7807    builtin and then its argument prototype would still apply.  */
  7808 #ifdef __cplusplus
  7809 extern "C"
  7810 #endif
  7811 char glVertex3f ();
  7812 int
  7813 main ()
  7815 return glVertex3f ();
  7817   return 0;
  7819 _ACEOF
  7820 rm -f conftest.$ac_objext conftest$ac_exeext
  7821 if { (ac_try="$ac_link"
  7822 case "(($ac_try" in
  7823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7824   *) ac_try_echo=$ac_try;;
  7825 esac
  7826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7827 $as_echo "$ac_try_echo") >&5
  7828   (eval "$ac_link") 2>conftest.er1
  7829   ac_status=$?
  7830   grep -v '^ *+' conftest.er1 >conftest.err
  7831   rm -f conftest.er1
  7832   cat conftest.err >&5
  7833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7834   (exit $ac_status); } && {
  7835 	 test -z "$ac_c_werror_flag" ||
  7836 	 test ! -s conftest.err
  7837        } && test -s conftest$ac_exeext && {
  7838 	 test "$cross_compiling" = yes ||
  7839 	 $as_test_x conftest$ac_exeext
  7840        }; then
  7841   ac_cv_lib_GL_glVertex3f=yes
  7842 else
  7843   $as_echo "$as_me: failed program was:" >&5
  7844 sed 's/^/| /' conftest.$ac_ext >&5
  7846 	ac_cv_lib_GL_glVertex3f=no
  7847 fi
  7849 rm -rf conftest.dSYM
  7850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7851       conftest$ac_exeext conftest.$ac_ext
  7852 LIBS=$ac_check_lib_save_LIBS
  7853 fi
  7854 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
  7855 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
  7856 if test $ac_cv_lib_GL_glVertex3f = yes; then
  7857   cat >>confdefs.h <<_ACEOF
  7858 #define HAVE_LIBGL 1
  7859 _ACEOF
  7861   LIBS="-lGL $LIBS"
  7863 else
  7865           { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  7866 See \`config.log' for more details." >&5
  7867 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  7868 See \`config.log' for more details." >&2;}
  7869    { (exit 1); exit 1; }; }
  7870 fi
  7872       if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7873   { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  7874 $as_echo_n "checking for GL/gl.h... " >&6; }
  7875 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7876   $as_echo_n "(cached) " >&6
  7877 fi
  7878 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  7879 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  7880 else
  7881   # Is the header compilable?
  7882 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  7883 $as_echo_n "checking GL/gl.h usability... " >&6; }
  7884 cat >conftest.$ac_ext <<_ACEOF
  7885 /* confdefs.h.  */
  7886 _ACEOF
  7887 cat confdefs.h >>conftest.$ac_ext
  7888 cat >>conftest.$ac_ext <<_ACEOF
  7889 /* end confdefs.h.  */
  7890 $ac_includes_default
  7891 #include <GL/gl.h>
  7892 _ACEOF
  7893 rm -f conftest.$ac_objext
  7894 if { (ac_try="$ac_compile"
  7895 case "(($ac_try" in
  7896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7897   *) ac_try_echo=$ac_try;;
  7898 esac
  7899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7900 $as_echo "$ac_try_echo") >&5
  7901   (eval "$ac_compile") 2>conftest.er1
  7902   ac_status=$?
  7903   grep -v '^ *+' conftest.er1 >conftest.err
  7904   rm -f conftest.er1
  7905   cat conftest.err >&5
  7906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7907   (exit $ac_status); } && {
  7908 	 test -z "$ac_c_werror_flag" ||
  7909 	 test ! -s conftest.err
  7910        } && test -s conftest.$ac_objext; then
  7911   ac_header_compiler=yes
  7912 else
  7913   $as_echo "$as_me: failed program was:" >&5
  7914 sed 's/^/| /' conftest.$ac_ext >&5
  7916 	ac_header_compiler=no
  7917 fi
  7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7920 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7921 $as_echo "$ac_header_compiler" >&6; }
  7923 # Is the header present?
  7924 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  7925 $as_echo_n "checking GL/gl.h presence... " >&6; }
  7926 cat >conftest.$ac_ext <<_ACEOF
  7927 /* confdefs.h.  */
  7928 _ACEOF
  7929 cat confdefs.h >>conftest.$ac_ext
  7930 cat >>conftest.$ac_ext <<_ACEOF
  7931 /* end confdefs.h.  */
  7932 #include <GL/gl.h>
  7933 _ACEOF
  7934 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7935 case "(($ac_try" in
  7936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7937   *) ac_try_echo=$ac_try;;
  7938 esac
  7939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7940 $as_echo "$ac_try_echo") >&5
  7941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7942   ac_status=$?
  7943   grep -v '^ *+' conftest.er1 >conftest.err
  7944   rm -f conftest.er1
  7945   cat conftest.err >&5
  7946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7947   (exit $ac_status); } >/dev/null && {
  7948 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7949 	 test ! -s conftest.err
  7950        }; then
  7951   ac_header_preproc=yes
  7952 else
  7953   $as_echo "$as_me: failed program was:" >&5
  7954 sed 's/^/| /' conftest.$ac_ext >&5
  7956   ac_header_preproc=no
  7957 fi
  7959 rm -f conftest.err conftest.$ac_ext
  7960 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7961 $as_echo "$ac_header_preproc" >&6; }
  7963 # So?  What about this header?
  7964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7965   yes:no: )
  7966     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7967 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7968     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  7969 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  7970     ac_header_preproc=yes
  7971     ;;
  7972   no:yes:* )
  7973     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  7974 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  7975     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  7976 $as_echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  7977     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  7978 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  7979     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  7980 $as_echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7981     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  7982 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  7983     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  7984 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  7986     ;;
  7987 esac
  7988 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  7989 $as_echo_n "checking for GL/gl.h... " >&6; }
  7990 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7991   $as_echo_n "(cached) " >&6
  7992 else
  7993   ac_cv_header_GL_gl_h=$ac_header_preproc
  7994 fi
  7995 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  7996 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  7998 fi
  7999 if test $ac_cv_header_GL_gl_h = yes; then
  8001 else
  8003           { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  8004 See \`config.log' for more details." >&5
  8005 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  8006 See \`config.log' for more details." >&2;}
  8007    { (exit 1); exit 1; }; }
  8008 fi
  8011    else
  8012       { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
  8013 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
  8014 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
  8015   $as_echo_n "(cached) " >&6
  8016 else
  8017   cat >conftest.$ac_ext <<_ACEOF
  8018 /* confdefs.h.  */
  8019 _ACEOF
  8020 cat confdefs.h >>conftest.$ac_ext
  8021 cat >>conftest.$ac_ext <<_ACEOF
  8022 /* end confdefs.h.  */
  8023 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
  8024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8025 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
  8027 /* System header to define __stub macros and hopefully few prototypes,
  8028     which can conflict with char NSOpenGLGetVersion (); below.
  8029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8030     <limits.h> exists even on freestanding compilers.  */
  8032 #ifdef __STDC__
  8033 # include <limits.h>
  8034 #else
  8035 # include <assert.h>
  8036 #endif
  8038 #undef NSOpenGLGetVersion
  8040 /* Override any GCC internal prototype to avoid an error.
  8041    Use char because int might match the return type of a GCC
  8042    builtin and then its argument prototype would still apply.  */
  8043 #ifdef __cplusplus
  8044 extern "C"
  8045 #endif
  8046 char NSOpenGLGetVersion ();
  8047 /* The GNU C library defines this for functions which it implements
  8048     to always fail with ENOSYS.  Some functions are actually named
  8049     something starting with __ and the normal name is an alias.  */
  8050 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
  8051 choke me
  8052 #endif
  8054 int
  8055 main ()
  8057 return NSOpenGLGetVersion ();
  8059   return 0;
  8061 _ACEOF
  8062 rm -f conftest.$ac_objext conftest$ac_exeext
  8063 if { (ac_try="$ac_link"
  8064 case "(($ac_try" in
  8065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8066   *) ac_try_echo=$ac_try;;
  8067 esac
  8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8069 $as_echo "$ac_try_echo") >&5
  8070   (eval "$ac_link") 2>conftest.er1
  8071   ac_status=$?
  8072   grep -v '^ *+' conftest.er1 >conftest.err
  8073   rm -f conftest.er1
  8074   cat conftest.err >&5
  8075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8076   (exit $ac_status); } && {
  8077 	 test -z "$ac_c_werror_flag" ||
  8078 	 test ! -s conftest.err
  8079        } && test -s conftest$ac_exeext && {
  8080 	 test "$cross_compiling" = yes ||
  8081 	 $as_test_x conftest$ac_exeext
  8082        }; then
  8083   ac_cv_func_NSOpenGLGetVersion=yes
  8084 else
  8085   $as_echo "$as_me: failed program was:" >&5
  8086 sed 's/^/| /' conftest.$ac_ext >&5
  8088 	ac_cv_func_NSOpenGLGetVersion=no
  8089 fi
  8091 rm -rf conftest.dSYM
  8092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8093       conftest$ac_exeext conftest.$ac_ext
  8094 fi
  8095 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
  8096 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
  8097 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
  8099          HAVE_NSGL='yes'
  8100          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
  8102 cat >>confdefs.h <<\_ACEOF
  8103 #define HAVE_NSGL 1
  8104 _ACEOF
  8106 fi
  8108    fi
  8110    if test "x$HAVE_GTK_X11" = "xyes"; then
  8111       if test "x$APPLE_BUILD" = "xyes"; then
  8112          LIBS="$LIBS -L/usr/X11/lib -lGL"
  8113       fi
  8114       { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
  8115 $as_echo_n "checking for glXQueryVersion... " >&6; }
  8116 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
  8117   $as_echo_n "(cached) " >&6
  8118 else
  8119   cat >conftest.$ac_ext <<_ACEOF
  8120 /* confdefs.h.  */
  8121 _ACEOF
  8122 cat confdefs.h >>conftest.$ac_ext
  8123 cat >>conftest.$ac_ext <<_ACEOF
  8124 /* end confdefs.h.  */
  8125 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
  8126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8127 #define glXQueryVersion innocuous_glXQueryVersion
  8129 /* System header to define __stub macros and hopefully few prototypes,
  8130     which can conflict with char glXQueryVersion (); below.
  8131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8132     <limits.h> exists even on freestanding compilers.  */
  8134 #ifdef __STDC__
  8135 # include <limits.h>
  8136 #else
  8137 # include <assert.h>
  8138 #endif
  8140 #undef glXQueryVersion
  8142 /* Override any GCC internal prototype to avoid an error.
  8143    Use char because int might match the return type of a GCC
  8144    builtin and then its argument prototype would still apply.  */
  8145 #ifdef __cplusplus
  8146 extern "C"
  8147 #endif
  8148 char glXQueryVersion ();
  8149 /* The GNU C library defines this for functions which it implements
  8150     to always fail with ENOSYS.  Some functions are actually named
  8151     something starting with __ and the normal name is an alias.  */
  8152 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
  8153 choke me
  8154 #endif
  8156 int
  8157 main ()
  8159 return glXQueryVersion ();
  8161   return 0;
  8163 _ACEOF
  8164 rm -f conftest.$ac_objext conftest$ac_exeext
  8165 if { (ac_try="$ac_link"
  8166 case "(($ac_try" in
  8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8168   *) ac_try_echo=$ac_try;;
  8169 esac
  8170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8171 $as_echo "$ac_try_echo") >&5
  8172   (eval "$ac_link") 2>conftest.er1
  8173   ac_status=$?
  8174   grep -v '^ *+' conftest.er1 >conftest.err
  8175   rm -f conftest.er1
  8176   cat conftest.err >&5
  8177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8178   (exit $ac_status); } && {
  8179 	 test -z "$ac_c_werror_flag" ||
  8180 	 test ! -s conftest.err
  8181        } && test -s conftest$ac_exeext && {
  8182 	 test "$cross_compiling" = yes ||
  8183 	 $as_test_x conftest$ac_exeext
  8184        }; then
  8185   ac_cv_func_glXQueryVersion=yes
  8186 else
  8187   $as_echo "$as_me: failed program was:" >&5
  8188 sed 's/^/| /' conftest.$ac_ext >&5
  8190 	ac_cv_func_glXQueryVersion=no
  8191 fi
  8193 rm -rf conftest.dSYM
  8194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8195       conftest$ac_exeext conftest.$ac_ext
  8196 fi
  8197 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
  8198 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
  8199 if test $ac_cv_func_glXQueryVersion = yes; then
  8201          HAVE_GLX='yes'
  8202          VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
  8204 cat >>confdefs.h <<\_ACEOF
  8205 #define HAVE_GLX 1
  8206 _ACEOF
  8208 fi
  8210    fi
  8213 fi
  8220 if test "x$HAVE_OSMESA" = "xyes"; then
  8221   VIDEO_OSMESA_TRUE=
  8222   VIDEO_OSMESA_FALSE='#'
  8223 else
  8224   VIDEO_OSMESA_TRUE='#'
  8225   VIDEO_OSMESA_FALSE=
  8226 fi
  8230 if test "x$HAVE_GLX" = "xyes"; then
  8231   VIDEO_GLX_TRUE=
  8232   VIDEO_GLX_FALSE='#'
  8233 else
  8234   VIDEO_GLX_TRUE='#'
  8235   VIDEO_GLX_FALSE=
  8236 fi
  8240 if test "x$HAVE_NSGL" = "xyes"; then
  8241   VIDEO_NSGL_TRUE=
  8242   VIDEO_NSGL_FALSE='#'
  8243 else
  8244   VIDEO_NSGL_TRUE='#'
  8245   VIDEO_NSGL_FALSE=
  8246 fi
  8249 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
  8250 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
  8251 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
  8252   $as_echo_n "(cached) " >&6
  8253 else
  8254   cat >conftest.$ac_ext <<_ACEOF
  8255 /* confdefs.h.  */
  8256 _ACEOF
  8257 cat confdefs.h >>conftest.$ac_ext
  8258 cat >>conftest.$ac_ext <<_ACEOF
  8259 /* end confdefs.h.  */
  8260 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
  8261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8262 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
  8264 /* System header to define __stub macros and hopefully few prototypes,
  8265     which can conflict with char glGenFramebuffersEXT (); below.
  8266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8267     <limits.h> exists even on freestanding compilers.  */
  8269 #ifdef __STDC__
  8270 # include <limits.h>
  8271 #else
  8272 # include <assert.h>
  8273 #endif
  8275 #undef glGenFramebuffersEXT
  8277 /* Override any GCC internal prototype to avoid an error.
  8278    Use char because int might match the return type of a GCC
  8279    builtin and then its argument prototype would still apply.  */
  8280 #ifdef __cplusplus
  8281 extern "C"
  8282 #endif
  8283 char glGenFramebuffersEXT ();
  8284 /* The GNU C library defines this for functions which it implements
  8285     to always fail with ENOSYS.  Some functions are actually named
  8286     something starting with __ and the normal name is an alias.  */
  8287 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
  8288 choke me
  8289 #endif
  8291 int
  8292 main ()
  8294 return glGenFramebuffersEXT ();
  8296   return 0;
  8298 _ACEOF
  8299 rm -f conftest.$ac_objext conftest$ac_exeext
  8300 if { (ac_try="$ac_link"
  8301 case "(($ac_try" in
  8302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8303   *) ac_try_echo=$ac_try;;
  8304 esac
  8305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8306 $as_echo "$ac_try_echo") >&5
  8307   (eval "$ac_link") 2>conftest.er1
  8308   ac_status=$?
  8309   grep -v '^ *+' conftest.er1 >conftest.err
  8310   rm -f conftest.er1
  8311   cat conftest.err >&5
  8312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8313   (exit $ac_status); } && {
  8314 	 test -z "$ac_c_werror_flag" ||
  8315 	 test ! -s conftest.err
  8316        } && test -s conftest$ac_exeext && {
  8317 	 test "$cross_compiling" = yes ||
  8318 	 $as_test_x conftest$ac_exeext
  8319        }; then
  8320   ac_cv_func_glGenFramebuffersEXT=yes
  8321 else
  8322   $as_echo "$as_me: failed program was:" >&5
  8323 sed 's/^/| /' conftest.$ac_ext >&5
  8325 	ac_cv_func_glGenFramebuffersEXT=no
  8326 fi
  8328 rm -rf conftest.dSYM
  8329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8330       conftest$ac_exeext conftest.$ac_ext
  8331 fi
  8332 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
  8333 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
  8334 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
  8336 cat >>confdefs.h <<\_ACEOF
  8337 #define HAVE_OPENGL_FBO 1
  8338 _ACEOF
  8340 fi
  8342 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
  8343 $as_echo_n "checking for glCreateShader... " >&6; }
  8344 if test "${ac_cv_func_glCreateShader+set}" = set; then
  8345   $as_echo_n "(cached) " >&6
  8346 else
  8347   cat >conftest.$ac_ext <<_ACEOF
  8348 /* confdefs.h.  */
  8349 _ACEOF
  8350 cat confdefs.h >>conftest.$ac_ext
  8351 cat >>conftest.$ac_ext <<_ACEOF
  8352 /* end confdefs.h.  */
  8353 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
  8354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8355 #define glCreateShader innocuous_glCreateShader
  8357 /* System header to define __stub macros and hopefully few prototypes,
  8358     which can conflict with char glCreateShader (); below.
  8359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8360     <limits.h> exists even on freestanding compilers.  */
  8362 #ifdef __STDC__
  8363 # include <limits.h>
  8364 #else
  8365 # include <assert.h>
  8366 #endif
  8368 #undef glCreateShader
  8370 /* Override any GCC internal prototype to avoid an error.
  8371    Use char because int might match the return type of a GCC
  8372    builtin and then its argument prototype would still apply.  */
  8373 #ifdef __cplusplus
  8374 extern "C"
  8375 #endif
  8376 char glCreateShader ();
  8377 /* The GNU C library defines this for functions which it implements
  8378     to always fail with ENOSYS.  Some functions are actually named
  8379     something starting with __ and the normal name is an alias.  */
  8380 #if defined __stub_glCreateShader || defined __stub___glCreateShader
  8381 choke me
  8382 #endif
  8384 int
  8385 main ()
  8387 return glCreateShader ();
  8389   return 0;
  8391 _ACEOF
  8392 rm -f conftest.$ac_objext conftest$ac_exeext
  8393 if { (ac_try="$ac_link"
  8394 case "(($ac_try" in
  8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8396   *) ac_try_echo=$ac_try;;
  8397 esac
  8398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8399 $as_echo "$ac_try_echo") >&5
  8400   (eval "$ac_link") 2>conftest.er1
  8401   ac_status=$?
  8402   grep -v '^ *+' conftest.er1 >conftest.err
  8403   rm -f conftest.er1
  8404   cat conftest.err >&5
  8405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8406   (exit $ac_status); } && {
  8407 	 test -z "$ac_c_werror_flag" ||
  8408 	 test ! -s conftest.err
  8409        } && test -s conftest$ac_exeext && {
  8410 	 test "$cross_compiling" = yes ||
  8411 	 $as_test_x conftest$ac_exeext
  8412        }; then
  8413   ac_cv_func_glCreateShader=yes
  8414 else
  8415   $as_echo "$as_me: failed program was:" >&5
  8416 sed 's/^/| /' conftest.$ac_ext >&5
  8418 	ac_cv_func_glCreateShader=no
  8419 fi
  8421 rm -rf conftest.dSYM
  8422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8423       conftest$ac_exeext conftest.$ac_ext
  8424 fi
  8425 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
  8426 $as_echo "$ac_cv_func_glCreateShader" >&6; }
  8427 if test $ac_cv_func_glCreateShader = yes; then
  8429 cat >>confdefs.h <<\_ACEOF
  8430 #define HAVE_OPENGL_SHADER 1
  8431 _ACEOF
  8433 fi
  8435 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
  8436 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
  8437 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
  8438   $as_echo_n "(cached) " >&6
  8439 else
  8440   cat >conftest.$ac_ext <<_ACEOF
  8441 /* confdefs.h.  */
  8442 _ACEOF
  8443 cat confdefs.h >>conftest.$ac_ext
  8444 cat >>conftest.$ac_ext <<_ACEOF
  8445 /* end confdefs.h.  */
  8446 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
  8447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8448 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
  8450 /* System header to define __stub macros and hopefully few prototypes,
  8451     which can conflict with char glCreateShaderObjectARB (); below.
  8452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8453     <limits.h> exists even on freestanding compilers.  */
  8455 #ifdef __STDC__
  8456 # include <limits.h>
  8457 #else
  8458 # include <assert.h>
  8459 #endif
  8461 #undef glCreateShaderObjectARB
  8463 /* Override any GCC internal prototype to avoid an error.
  8464    Use char because int might match the return type of a GCC
  8465    builtin and then its argument prototype would still apply.  */
  8466 #ifdef __cplusplus
  8467 extern "C"
  8468 #endif
  8469 char glCreateShaderObjectARB ();
  8470 /* The GNU C library defines this for functions which it implements
  8471     to always fail with ENOSYS.  Some functions are actually named
  8472     something starting with __ and the normal name is an alias.  */
  8473 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
  8474 choke me
  8475 #endif
  8477 int
  8478 main ()
  8480 return glCreateShaderObjectARB ();
  8482   return 0;
  8484 _ACEOF
  8485 rm -f conftest.$ac_objext conftest$ac_exeext
  8486 if { (ac_try="$ac_link"
  8487 case "(($ac_try" in
  8488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8489   *) ac_try_echo=$ac_try;;
  8490 esac
  8491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8492 $as_echo "$ac_try_echo") >&5
  8493   (eval "$ac_link") 2>conftest.er1
  8494   ac_status=$?
  8495   grep -v '^ *+' conftest.er1 >conftest.err
  8496   rm -f conftest.er1
  8497   cat conftest.err >&5
  8498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8499   (exit $ac_status); } && {
  8500 	 test -z "$ac_c_werror_flag" ||
  8501 	 test ! -s conftest.err
  8502        } && test -s conftest$ac_exeext && {
  8503 	 test "$cross_compiling" = yes ||
  8504 	 $as_test_x conftest$ac_exeext
  8505        }; then
  8506   ac_cv_func_glCreateShaderObjectARB=yes
  8507 else
  8508   $as_echo "$as_me: failed program was:" >&5
  8509 sed 's/^/| /' conftest.$ac_ext >&5
  8511 	ac_cv_func_glCreateShaderObjectARB=no
  8512 fi
  8514 rm -rf conftest.dSYM
  8515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8516       conftest$ac_exeext conftest.$ac_ext
  8517 fi
  8518 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
  8519 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
  8520 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
  8522 cat >>confdefs.h <<\_ACEOF
  8523 #define HAVE_OPENGL_SHADER_ARB 1
  8524 _ACEOF
  8526 fi
  8528 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
  8529 $as_echo_n "checking for glClampColorARB... " >&6; }
  8530 if test "${ac_cv_func_glClampColorARB+set}" = set; then
  8531   $as_echo_n "(cached) " >&6
  8532 else
  8533   cat >conftest.$ac_ext <<_ACEOF
  8534 /* confdefs.h.  */
  8535 _ACEOF
  8536 cat confdefs.h >>conftest.$ac_ext
  8537 cat >>conftest.$ac_ext <<_ACEOF
  8538 /* end confdefs.h.  */
  8539 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
  8540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8541 #define glClampColorARB innocuous_glClampColorARB
  8543 /* System header to define __stub macros and hopefully few prototypes,
  8544     which can conflict with char glClampColorARB (); below.
  8545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8546     <limits.h> exists even on freestanding compilers.  */
  8548 #ifdef __STDC__
  8549 # include <limits.h>
  8550 #else
  8551 # include <assert.h>
  8552 #endif
  8554 #undef glClampColorARB
  8556 /* Override any GCC internal prototype to avoid an error.
  8557    Use char because int might match the return type of a GCC
  8558    builtin and then its argument prototype would still apply.  */
  8559 #ifdef __cplusplus
  8560 extern "C"
  8561 #endif
  8562 char glClampColorARB ();
  8563 /* The GNU C library defines this for functions which it implements
  8564     to always fail with ENOSYS.  Some functions are actually named
  8565     something starting with __ and the normal name is an alias.  */
  8566 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
  8567 choke me
  8568 #endif
  8570 int
  8571 main ()
  8573 return glClampColorARB ();
  8575   return 0;
  8577 _ACEOF
  8578 rm -f conftest.$ac_objext conftest$ac_exeext
  8579 if { (ac_try="$ac_link"
  8580 case "(($ac_try" in
  8581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8582   *) ac_try_echo=$ac_try;;
  8583 esac
  8584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8585 $as_echo "$ac_try_echo") >&5
  8586   (eval "$ac_link") 2>conftest.er1
  8587   ac_status=$?
  8588   grep -v '^ *+' conftest.er1 >conftest.err
  8589   rm -f conftest.er1
  8590   cat conftest.err >&5
  8591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8592   (exit $ac_status); } && {
  8593 	 test -z "$ac_c_werror_flag" ||
  8594 	 test ! -s conftest.err
  8595        } && test -s conftest$ac_exeext && {
  8596 	 test "$cross_compiling" = yes ||
  8597 	 $as_test_x conftest$ac_exeext
  8598        }; then
  8599   ac_cv_func_glClampColorARB=yes
  8600 else
  8601   $as_echo "$as_me: failed program was:" >&5
  8602 sed 's/^/| /' conftest.$ac_ext >&5
  8604 	ac_cv_func_glClampColorARB=no
  8605 fi
  8607 rm -rf conftest.dSYM
  8608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8609       conftest$ac_exeext conftest.$ac_ext
  8610 fi
  8611 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
  8612 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
  8613 if test $ac_cv_func_glClampColorARB = yes; then
  8615 cat >>confdefs.h <<\_ACEOF
  8616 #define HAVE_OPENGL_CLAMP_COLOR 1
  8617 _ACEOF
  8619 fi
  8623 case $host_cpu in
  8624     i386|i486|i586|i686|x86_64)
  8625 	SH4_TRANSLATOR="x86"
  8627 cat >>confdefs.h <<_ACEOF
  8628 #define SH4_TRANSLATOR TARGET_X86
  8629 _ACEOF
  8630 ;;
  8631 esac
  8634 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
  8635   BUILD_SH4X86_TRUE=
  8636   BUILD_SH4X86_FALSE='#'
  8637 else
  8638   BUILD_SH4X86_TRUE='#'
  8639   BUILD_SH4X86_FALSE=
  8640 fi
  8644 if test "$SH4_TRANSLATOR" = "x86_64"; then
  8645   BUILD_X86_64_TRUE=
  8646   BUILD_X86_64_FALSE='#'
  8647 else
  8648   BUILD_X86_64_TRUE='#'
  8649   BUILD_X86_64_FALSE=
  8650 fi
  8653 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  8654   { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  8655 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
  8656 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  8657   $as_echo_n "(cached) " >&6
  8658 fi
  8659 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  8660 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
  8661 else
  8662   # Is the header compilable?
  8663 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
  8664 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
  8665 cat >conftest.$ac_ext <<_ACEOF
  8666 /* confdefs.h.  */
  8667 _ACEOF
  8668 cat confdefs.h >>conftest.$ac_ext
  8669 cat >>conftest.$ac_ext <<_ACEOF
  8670 /* end confdefs.h.  */
  8671 $ac_includes_default
  8672 #include <CoreAudio/CoreAudio.h>
  8673 _ACEOF
  8674 rm -f conftest.$ac_objext
  8675 if { (ac_try="$ac_compile"
  8676 case "(($ac_try" in
  8677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8678   *) ac_try_echo=$ac_try;;
  8679 esac
  8680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8681 $as_echo "$ac_try_echo") >&5
  8682   (eval "$ac_compile") 2>conftest.er1
  8683   ac_status=$?
  8684   grep -v '^ *+' conftest.er1 >conftest.err
  8685   rm -f conftest.er1
  8686   cat conftest.err >&5
  8687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8688   (exit $ac_status); } && {
  8689 	 test -z "$ac_c_werror_flag" ||
  8690 	 test ! -s conftest.err
  8691        } && test -s conftest.$ac_objext; then
  8692   ac_header_compiler=yes
  8693 else
  8694   $as_echo "$as_me: failed program was:" >&5
  8695 sed 's/^/| /' conftest.$ac_ext >&5
  8697 	ac_header_compiler=no
  8698 fi
  8700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8701 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8702 $as_echo "$ac_header_compiler" >&6; }
  8704 # Is the header present?
  8705 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
  8706 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
  8707 cat >conftest.$ac_ext <<_ACEOF
  8708 /* confdefs.h.  */
  8709 _ACEOF
  8710 cat confdefs.h >>conftest.$ac_ext
  8711 cat >>conftest.$ac_ext <<_ACEOF
  8712 /* end confdefs.h.  */
  8713 #include <CoreAudio/CoreAudio.h>
  8714 _ACEOF
  8715 if { (ac_try="$ac_cpp conftest.$ac_ext"
  8716 case "(($ac_try" in
  8717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8718   *) ac_try_echo=$ac_try;;
  8719 esac
  8720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8721 $as_echo "$ac_try_echo") >&5
  8722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8723   ac_status=$?
  8724   grep -v '^ *+' conftest.er1 >conftest.err
  8725   rm -f conftest.er1
  8726   cat conftest.err >&5
  8727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8728   (exit $ac_status); } >/dev/null && {
  8729 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8730 	 test ! -s conftest.err
  8731        }; then
  8732   ac_header_preproc=yes
  8733 else
  8734   $as_echo "$as_me: failed program was:" >&5
  8735 sed 's/^/| /' conftest.$ac_ext >&5
  8737   ac_header_preproc=no
  8738 fi
  8740 rm -f conftest.err conftest.$ac_ext
  8741 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8742 $as_echo "$ac_header_preproc" >&6; }
  8744 # So?  What about this header?
  8745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8746   yes:no: )
  8747     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8748 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8749     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
  8750 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
  8751     ac_header_preproc=yes
  8752     ;;
  8753   no:yes:* )
  8754     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
  8755 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
  8756     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
  8757 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
  8758     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
  8759 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
  8760     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
  8761 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  8762     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
  8763 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
  8764     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
  8765 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
  8767     ;;
  8768 esac
  8769 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  8770 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
  8771 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  8772   $as_echo_n "(cached) " >&6
  8773 else
  8774   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
  8775 fi
  8776 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  8777 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
  8779 fi
  8780 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
  8782      HAVE_CORE_AUDIO=yes
  8783      LIBS="$LIBS -framework CoreAudio"
  8784      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
  8786 cat >>confdefs.h <<\_ACEOF
  8787 #define HAVE_CORE_AUDIO 1
  8788 _ACEOF
  8790 else
  8791   true
  8792 fi
  8797 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
  8798   AUDIO_OSX_TRUE=
  8799   AUDIO_OSX_FALSE='#'
  8800 else
  8801   AUDIO_OSX_TRUE='#'
  8802   AUDIO_OSX_FALSE=
  8803 fi
  8807 pkg_failed=no
  8808 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
  8809 $as_echo_n "checking for PULSE... " >&6; }
  8811 if test -n "$PKG_CONFIG"; then
  8812     if test -n "$PULSE_CFLAGS"; then
  8813         pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
  8814     else
  8815         if test -n "$PKG_CONFIG" && \
  8816     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  8817   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  8818   ac_status=$?
  8819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8820   (exit $ac_status); }; then
  8821   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
  8822 else
  8823   pkg_failed=yes
  8824 fi
  8825     fi
  8826 else
  8827 	pkg_failed=untried
  8828 fi
  8829 if test -n "$PKG_CONFIG"; then
  8830     if test -n "$PULSE_LIBS"; then
  8831         pkg_cv_PULSE_LIBS="$PULSE_LIBS"
  8832     else
  8833         if test -n "$PKG_CONFIG" && \
  8834     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  8835   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  8836   ac_status=$?
  8837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8838   (exit $ac_status); }; then
  8839   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
  8840 else
  8841   pkg_failed=yes
  8842 fi
  8843     fi
  8844 else
  8845 	pkg_failed=untried
  8846 fi
  8850 if test $pkg_failed = yes; then
  8852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8853         _pkg_short_errors_supported=yes
  8854 else
  8855         _pkg_short_errors_supported=no
  8856 fi
  8857         if test $_pkg_short_errors_supported = yes; then
  8858 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
  8859         else
  8860 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
  8861         fi
  8862 	# Put the nasty error message in config.log where it belongs
  8863 	echo "$PULSE_PKG_ERRORS" >&5
  8865 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  8866 $as_echo "no" >&6; }
  8867                 true
  8868 elif test $pkg_failed = untried; then
  8869 	true
  8870 else
  8871 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
  8872 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
  8873         { $as_echo "$as_me:$LINENO: result: yes" >&5
  8874 $as_echo "yes" >&6; }
  8876      HAVE_PULSE='yes'
  8877      AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
  8879 cat >>confdefs.h <<\_ACEOF
  8880 #define HAVE_PULSE 1
  8881 _ACEOF
  8883 fi
  8886 if test "$HAVE_PULSE" = 'yes' ; then
  8887   AUDIO_PULSE_TRUE=
  8888   AUDIO_PULSE_FALSE='#'
  8889 else
  8890   AUDIO_PULSE_TRUE='#'
  8891   AUDIO_PULSE_FALSE=
  8892 fi
  8896 pkg_failed=no
  8897 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
  8898 $as_echo_n "checking for ESOUND... " >&6; }
  8900 if test -n "$PKG_CONFIG"; then
  8901     if test -n "$ESOUND_CFLAGS"; then
  8902         pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
  8903     else
  8904         if test -n "$PKG_CONFIG" && \
  8905     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  8906   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  8907   ac_status=$?
  8908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8909   (exit $ac_status); }; then
  8910   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  8911 else
  8912   pkg_failed=yes
  8913 fi
  8914     fi
  8915 else
  8916 	pkg_failed=untried
  8917 fi
  8918 if test -n "$PKG_CONFIG"; then
  8919     if test -n "$ESOUND_LIBS"; then
  8920         pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
  8921     else
  8922         if test -n "$PKG_CONFIG" && \
  8923     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  8924   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  8925   ac_status=$?
  8926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8927   (exit $ac_status); }; then
  8928   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  8929 else
  8930   pkg_failed=yes
  8931 fi
  8932     fi
  8933 else
  8934 	pkg_failed=untried
  8935 fi
  8939 if test $pkg_failed = yes; then
  8941 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8942         _pkg_short_errors_supported=yes
  8943 else
  8944         _pkg_short_errors_supported=no
  8945 fi
  8946         if test $_pkg_short_errors_supported = yes; then
  8947 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
  8948         else
  8949 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
  8950         fi
  8951 	# Put the nasty error message in config.log where it belongs
  8952 	echo "$ESOUND_PKG_ERRORS" >&5
  8954 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  8955 $as_echo "no" >&6; }
  8956                 true
  8957 elif test $pkg_failed = untried; then
  8958 	true
  8959 else
  8960 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
  8961 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
  8962         { $as_echo "$as_me:$LINENO: result: yes" >&5
  8963 $as_echo "yes" >&6; }
  8965      HAVE_ESOUND='yes'
  8966      AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
  8968 cat >>confdefs.h <<\_ACEOF
  8969 #define HAVE_ESOUND 1
  8970 _ACEOF
  8972 fi
  8975 if test "$HAVE_ESOUND" = 'yes' ; then
  8976   AUDIO_ESOUND_TRUE=
  8977   AUDIO_ESOUND_FALSE='#'
  8978 else
  8979   AUDIO_ESOUND_TRUE='#'
  8980   AUDIO_ESOUND_FALSE=
  8981 fi
  8985 pkg_failed=no
  8986 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
  8987 $as_echo_n "checking for ALSA... " >&6; }
  8989 if test -n "$PKG_CONFIG"; then
  8990     if test -n "$ALSA_CFLAGS"; then
  8991         pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
  8992     else
  8993         if test -n "$PKG_CONFIG" && \
  8994     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  8995   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  8996   ac_status=$?
  8997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8998   (exit $ac_status); }; then
  8999   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
  9000 else
  9001   pkg_failed=yes
  9002 fi
  9003     fi
  9004 else
  9005 	pkg_failed=untried
  9006 fi
  9007 if test -n "$PKG_CONFIG"; then
  9008     if test -n "$ALSA_LIBS"; then
  9009         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
  9010     else
  9011         if test -n "$PKG_CONFIG" && \
  9012     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  9013   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  9014   ac_status=$?
  9015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9016   (exit $ac_status); }; then
  9017   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
  9018 else
  9019   pkg_failed=yes
  9020 fi
  9021     fi
  9022 else
  9023 	pkg_failed=untried
  9024 fi
  9028 if test $pkg_failed = yes; then
  9030 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9031         _pkg_short_errors_supported=yes
  9032 else
  9033         _pkg_short_errors_supported=no
  9034 fi
  9035         if test $_pkg_short_errors_supported = yes; then
  9036 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
  9037         else
  9038 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
  9039         fi
  9040 	# Put the nasty error message in config.log where it belongs
  9041 	echo "$ALSA_PKG_ERRORS" >&5
  9043 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  9044 $as_echo "no" >&6; }
  9045                 true
  9046 elif test $pkg_failed = untried; then
  9047 	true
  9048 else
  9049 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
  9050 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
  9051         { $as_echo "$as_me:$LINENO: result: yes" >&5
  9052 $as_echo "yes" >&6; }
  9054      HAVE_ALSA='yes'
  9055      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
  9057 cat >>confdefs.h <<\_ACEOF
  9058 #define HAVE_ALSA 1
  9059 _ACEOF
  9061 fi
  9064 if test "$HAVE_ALSA" = 'yes' ; then
  9065   AUDIO_ALSA_TRUE=
  9066   AUDIO_ALSA_FALSE='#'
  9067 else
  9068   AUDIO_ALSA_TRUE='#'
  9069   AUDIO_ALSA_FALSE=
  9070 fi
  9074 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  9075   { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  9076 $as_echo_n "checking for linux/cdrom.h... " >&6; }
  9077 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  9078   $as_echo_n "(cached) " >&6
  9079 fi
  9080 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  9081 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
  9082 else
  9083   # Is the header compilable?
  9084 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  9085 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
  9086 cat >conftest.$ac_ext <<_ACEOF
  9087 /* confdefs.h.  */
  9088 _ACEOF
  9089 cat confdefs.h >>conftest.$ac_ext
  9090 cat >>conftest.$ac_ext <<_ACEOF
  9091 /* end confdefs.h.  */
  9092 $ac_includes_default
  9093 #include <linux/cdrom.h>
  9094 _ACEOF
  9095 rm -f conftest.$ac_objext
  9096 if { (ac_try="$ac_compile"
  9097 case "(($ac_try" in
  9098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9099   *) ac_try_echo=$ac_try;;
  9100 esac
  9101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9102 $as_echo "$ac_try_echo") >&5
  9103   (eval "$ac_compile") 2>conftest.er1
  9104   ac_status=$?
  9105   grep -v '^ *+' conftest.er1 >conftest.err
  9106   rm -f conftest.er1
  9107   cat conftest.err >&5
  9108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9109   (exit $ac_status); } && {
  9110 	 test -z "$ac_c_werror_flag" ||
  9111 	 test ! -s conftest.err
  9112        } && test -s conftest.$ac_objext; then
  9113   ac_header_compiler=yes
  9114 else
  9115   $as_echo "$as_me: failed program was:" >&5
  9116 sed 's/^/| /' conftest.$ac_ext >&5
  9118 	ac_header_compiler=no
  9119 fi
  9121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9122 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9123 $as_echo "$ac_header_compiler" >&6; }
  9125 # Is the header present?
  9126 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  9127 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
  9128 cat >conftest.$ac_ext <<_ACEOF
  9129 /* confdefs.h.  */
  9130 _ACEOF
  9131 cat confdefs.h >>conftest.$ac_ext
  9132 cat >>conftest.$ac_ext <<_ACEOF
  9133 /* end confdefs.h.  */
  9134 #include <linux/cdrom.h>
  9135 _ACEOF
  9136 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9137 case "(($ac_try" in
  9138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9139   *) ac_try_echo=$ac_try;;
  9140 esac
  9141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9142 $as_echo "$ac_try_echo") >&5
  9143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9144   ac_status=$?
  9145   grep -v '^ *+' conftest.er1 >conftest.err
  9146   rm -f conftest.er1
  9147   cat conftest.err >&5
  9148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9149   (exit $ac_status); } >/dev/null && {
  9150 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9151 	 test ! -s conftest.err
  9152        }; then
  9153   ac_header_preproc=yes
  9154 else
  9155   $as_echo "$as_me: failed program was:" >&5
  9156 sed 's/^/| /' conftest.$ac_ext >&5
  9158   ac_header_preproc=no
  9159 fi
  9161 rm -f conftest.err conftest.$ac_ext
  9162 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9163 $as_echo "$ac_header_preproc" >&6; }
  9165 # So?  What about this header?
  9166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9167   yes:no: )
  9168     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9169 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9170     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
  9171 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
  9172     ac_header_preproc=yes
  9173     ;;
  9174   no:yes:* )
  9175     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
  9176 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
  9177     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
  9178 $as_echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
  9179     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
  9180 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
  9181     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
  9182 $as_echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9183     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
  9184 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
  9185     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
  9186 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
  9188     ;;
  9189 esac
  9190 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  9191 $as_echo_n "checking for linux/cdrom.h... " >&6; }
  9192 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  9193   $as_echo_n "(cached) " >&6
  9194 else
  9195   ac_cv_header_linux_cdrom_h=$ac_header_preproc
  9196 fi
  9197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  9198 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
  9200 fi
  9201 if test $ac_cv_header_linux_cdrom_h = yes; then
  9202   CDROM_DRIVER=linux
  9203 else
  9204   true
  9205 fi
  9210 if test "x$CDROM_DRIVER" = "xlinux"; then
  9211   CDROM_LINUX_TRUE=
  9212   CDROM_LINUX_FALSE='#'
  9213 else
  9214   CDROM_LINUX_TRUE='#'
  9215   CDROM_LINUX_FALSE=
  9216 fi
  9220 if test "x$CDROM_DRIVER" = "xosx"; then
  9221   CDROM_OSX_TRUE=
  9222   CDROM_OSX_FALSE='#'
  9223 else
  9224   CDROM_OSX_TRUE='#'
  9225   CDROM_OSX_FALSE=
  9226 fi
  9230 if test "x$CDROM_DRIVER" = "x"; then
  9231   CDROM_NONE_TRUE=
  9232   CDROM_NONE_FALSE='#'
  9233 else
  9234   CDROM_NONE_TRUE='#'
  9235   CDROM_NONE_FALSE=
  9236 fi
  9239 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  9240   { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  9241 $as_echo_n "checking for linux/joystick.h... " >&6; }
  9242 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  9243   $as_echo_n "(cached) " >&6
  9244 fi
  9245 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  9246 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
  9247 else
  9248   # Is the header compilable?
  9249 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
  9250 $as_echo_n "checking linux/joystick.h usability... " >&6; }
  9251 cat >conftest.$ac_ext <<_ACEOF
  9252 /* confdefs.h.  */
  9253 _ACEOF
  9254 cat confdefs.h >>conftest.$ac_ext
  9255 cat >>conftest.$ac_ext <<_ACEOF
  9256 /* end confdefs.h.  */
  9257 $ac_includes_default
  9258 #include <linux/joystick.h>
  9259 _ACEOF
  9260 rm -f conftest.$ac_objext
  9261 if { (ac_try="$ac_compile"
  9262 case "(($ac_try" in
  9263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9264   *) ac_try_echo=$ac_try;;
  9265 esac
  9266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9267 $as_echo "$ac_try_echo") >&5
  9268   (eval "$ac_compile") 2>conftest.er1
  9269   ac_status=$?
  9270   grep -v '^ *+' conftest.er1 >conftest.err
  9271   rm -f conftest.er1
  9272   cat conftest.err >&5
  9273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9274   (exit $ac_status); } && {
  9275 	 test -z "$ac_c_werror_flag" ||
  9276 	 test ! -s conftest.err
  9277        } && test -s conftest.$ac_objext; then
  9278   ac_header_compiler=yes
  9279 else
  9280   $as_echo "$as_me: failed program was:" >&5
  9281 sed 's/^/| /' conftest.$ac_ext >&5
  9283 	ac_header_compiler=no
  9284 fi
  9286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9287 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9288 $as_echo "$ac_header_compiler" >&6; }
  9290 # Is the header present?
  9291 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
  9292 $as_echo_n "checking linux/joystick.h presence... " >&6; }
  9293 cat >conftest.$ac_ext <<_ACEOF
  9294 /* confdefs.h.  */
  9295 _ACEOF
  9296 cat confdefs.h >>conftest.$ac_ext
  9297 cat >>conftest.$ac_ext <<_ACEOF
  9298 /* end confdefs.h.  */
  9299 #include <linux/joystick.h>
  9300 _ACEOF
  9301 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9302 case "(($ac_try" in
  9303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9304   *) ac_try_echo=$ac_try;;
  9305 esac
  9306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9307 $as_echo "$ac_try_echo") >&5
  9308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9309   ac_status=$?
  9310   grep -v '^ *+' conftest.er1 >conftest.err
  9311   rm -f conftest.er1
  9312   cat conftest.err >&5
  9313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9314   (exit $ac_status); } >/dev/null && {
  9315 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9316 	 test ! -s conftest.err
  9317        }; then
  9318   ac_header_preproc=yes
  9319 else
  9320   $as_echo "$as_me: failed program was:" >&5
  9321 sed 's/^/| /' conftest.$ac_ext >&5
  9323   ac_header_preproc=no
  9324 fi
  9326 rm -f conftest.err conftest.$ac_ext
  9327 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9328 $as_echo "$ac_header_preproc" >&6; }
  9330 # So?  What about this header?
  9331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9332   yes:no: )
  9333     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9334 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9335     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
  9336 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
  9337     ac_header_preproc=yes
  9338     ;;
  9339   no:yes:* )
  9340     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
  9341 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
  9342     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
  9343 $as_echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
  9344     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
  9345 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
  9346     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
  9347 $as_echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9348     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
  9349 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
  9350     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
  9351 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
  9353     ;;
  9354 esac
  9355 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  9356 $as_echo_n "checking for linux/joystick.h... " >&6; }
  9357 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  9358   $as_echo_n "(cached) " >&6
  9359 else
  9360   ac_cv_header_linux_joystick_h=$ac_header_preproc
  9361 fi
  9362 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  9363 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
  9365 fi
  9366 if test $ac_cv_header_linux_joystick_h = yes; then
  9368     HAVE_LINUX_JOYSTICK_H=yes
  9370 cat >>confdefs.h <<\_ACEOF
  9371 #define HAVE_LINUX_JOYSTICK 1
  9372 _ACEOF
  9374 else
  9375    echo "Linux Joystick support not found, building without it."
  9376 fi
  9381 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
  9382   JOY_LINUX_TRUE=
  9383   JOY_LINUX_FALSE='#'
  9384 else
  9385   JOY_LINUX_TRUE='#'
  9386   JOY_LINUX_FALSE=
  9387 fi
  9390 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
  9391 set dummy sh-elf-gcc; ac_word=$2
  9392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9393 $as_echo_n "checking for $ac_word... " >&6; }
  9394 if test "${ac_cv_path_SHCC+set}" = set; then
  9395   $as_echo_n "(cached) " >&6
  9396 else
  9397   case $SHCC in
  9398   [\\/]* | ?:[\\/]*)
  9399   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
  9400   ;;
  9401   *)
  9402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9403 for as_dir in $PATH
  9404 do
  9405   IFS=$as_save_IFS
  9406   test -z "$as_dir" && as_dir=.
  9407   for ac_exec_ext in '' $ac_executable_extensions; do
  9408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9409     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
  9410     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9411     break 2
  9412   fi
  9413 done
  9414 done
  9415 IFS=$as_save_IFS
  9417   ;;
  9418 esac
  9419 fi
  9420 SHCC=$ac_cv_path_SHCC
  9421 if test -n "$SHCC"; then
  9422   { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
  9423 $as_echo "$SHCC" >&6; }
  9424 else
  9425   { $as_echo "$as_me:$LINENO: result: no" >&5
  9426 $as_echo "no" >&6; }
  9427 fi
  9430 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
  9431 set dummy sh-elf-ld; ac_word=$2
  9432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9433 $as_echo_n "checking for $ac_word... " >&6; }
  9434 if test "${ac_cv_path_SHLD+set}" = set; then
  9435   $as_echo_n "(cached) " >&6
  9436 else
  9437   case $SHLD in
  9438   [\\/]* | ?:[\\/]*)
  9439   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
  9440   ;;
  9441   *)
  9442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9443 for as_dir in $PATH
  9444 do
  9445   IFS=$as_save_IFS
  9446   test -z "$as_dir" && as_dir=.
  9447   for ac_exec_ext in '' $ac_executable_extensions; do
  9448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9449     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
  9450     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9451     break 2
  9452   fi
  9453 done
  9454 done
  9455 IFS=$as_save_IFS
  9457   ;;
  9458 esac
  9459 fi
  9460 SHLD=$ac_cv_path_SHLD
  9461 if test -n "$SHLD"; then
  9462   { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
  9463 $as_echo "$SHLD" >&6; }
  9464 else
  9465   { $as_echo "$as_me:$LINENO: result: no" >&5
  9466 $as_echo "no" >&6; }
  9467 fi
  9470 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
  9471 set dummy sh-elf-objcopy; ac_word=$2
  9472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9473 $as_echo_n "checking for $ac_word... " >&6; }
  9474 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
  9475   $as_echo_n "(cached) " >&6
  9476 else
  9477   case $SHOBJCOPY in
  9478   [\\/]* | ?:[\\/]*)
  9479   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
  9480   ;;
  9481   *)
  9482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9483 for as_dir in $PATH
  9484 do
  9485   IFS=$as_save_IFS
  9486   test -z "$as_dir" && as_dir=.
  9487   for ac_exec_ext in '' $ac_executable_extensions; do
  9488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9489     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  9490     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9491     break 2
  9492   fi
  9493 done
  9494 done
  9495 IFS=$as_save_IFS
  9497   ;;
  9498 esac
  9499 fi
  9500 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
  9501 if test -n "$SHOBJCOPY"; then
  9502   { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
  9503 $as_echo "$SHOBJCOPY" >&6; }
  9504 else
  9505   { $as_echo "$as_me:$LINENO: result: no" >&5
  9506 $as_echo "no" >&6; }
  9507 fi
  9510 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
  9511 set dummy arm-elf-gcc; ac_word=$2
  9512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9513 $as_echo_n "checking for $ac_word... " >&6; }
  9514 if test "${ac_cv_path_ARMCC+set}" = set; then
  9515   $as_echo_n "(cached) " >&6
  9516 else
  9517   case $ARMCC in
  9518   [\\/]* | ?:[\\/]*)
  9519   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
  9520   ;;
  9521   *)
  9522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9523 for as_dir in $PATH
  9524 do
  9525   IFS=$as_save_IFS
  9526   test -z "$as_dir" && as_dir=.
  9527   for ac_exec_ext in '' $ac_executable_extensions; do
  9528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9529     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
  9530     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9531     break 2
  9532   fi
  9533 done
  9534 done
  9535 IFS=$as_save_IFS
  9537   ;;
  9538 esac
  9539 fi
  9540 ARMCC=$ac_cv_path_ARMCC
  9541 if test -n "$ARMCC"; then
  9542   { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
  9543 $as_echo "$ARMCC" >&6; }
  9544 else
  9545   { $as_echo "$as_me:$LINENO: result: no" >&5
  9546 $as_echo "no" >&6; }
  9547 fi
  9550 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
  9551 set dummy arm-elf-ld; ac_word=$2
  9552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9553 $as_echo_n "checking for $ac_word... " >&6; }
  9554 if test "${ac_cv_path_ARMLD+set}" = set; then
  9555   $as_echo_n "(cached) " >&6
  9556 else
  9557   case $ARMLD in
  9558   [\\/]* | ?:[\\/]*)
  9559   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
  9560   ;;
  9561   *)
  9562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9563 for as_dir in $PATH
  9564 do
  9565   IFS=$as_save_IFS
  9566   test -z "$as_dir" && as_dir=.
  9567   for ac_exec_ext in '' $ac_executable_extensions; do
  9568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9569     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
  9570     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9571     break 2
  9572   fi
  9573 done
  9574 done
  9575 IFS=$as_save_IFS
  9577   ;;
  9578 esac
  9579 fi
  9580 ARMLD=$ac_cv_path_ARMLD
  9581 if test -n "$ARMLD"; then
  9582   { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
  9583 $as_echo "$ARMLD" >&6; }
  9584 else
  9585   { $as_echo "$as_me:$LINENO: result: no" >&5
  9586 $as_echo "no" >&6; }
  9587 fi
  9590 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
  9591 set dummy arm-elf-objcopy; ac_word=$2
  9592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9593 $as_echo_n "checking for $ac_word... " >&6; }
  9594 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
  9595   $as_echo_n "(cached) " >&6
  9596 else
  9597   case $ARMOBJCOPY in
  9598   [\\/]* | ?:[\\/]*)
  9599   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
  9600   ;;
  9601   *)
  9602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9603 for as_dir in $PATH
  9604 do
  9605   IFS=$as_save_IFS
  9606   test -z "$as_dir" && as_dir=.
  9607   for ac_exec_ext in '' $ac_executable_extensions; do
  9608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9609     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  9610     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9611     break 2
  9612   fi
  9613 done
  9614 done
  9615 IFS=$as_save_IFS
  9617   ;;
  9618 esac
  9619 fi
  9620 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
  9621 if test -n "$ARMOBJCOPY"; then
  9622   { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
  9623 $as_echo "$ARMOBJCOPY" >&6; }
  9624 else
  9625   { $as_echo "$as_me:$LINENO: result: no" >&5
  9626 $as_echo "no" >&6; }
  9627 fi
  9631 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
  9632   BUILD_SH="no"
  9633   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
  9634 else
  9635   BUILD_SH="yes"
  9636 fi
  9637 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
  9638   BUILD_ARM="no"
  9639   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
  9640 else
  9641   BUILD_ARM="yes"
  9642 fi
  9645 if test "$BUILD_SH" = "yes"; then
  9646   BUILD_SYSTEST_TRUE=
  9647   BUILD_SYSTEST_FALSE='#'
  9648 else
  9649   BUILD_SYSTEST_TRUE='#'
  9650   BUILD_SYSTEST_FALSE=
  9651 fi
  9655 if test "$BUILD_ARM" = "yes"; then
  9656   BUILD_ARMTEST_TRUE=
  9657   BUILD_ARMTEST_FALSE='#'
  9658 else
  9659   BUILD_ARMTEST_TRUE='#'
  9660   BUILD_ARMTEST_FALSE=
  9661 fi
  9665 GETTEXT_PACKAGE=lxdream
  9668 cat >>confdefs.h <<_ACEOF
  9669 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  9670 _ACEOF
  9673 ALL_LINGUAS="de es it pt_BR"
  9676 for ac_header in locale.h
  9677 do
  9678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9680   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9681 $as_echo_n "checking for $ac_header... " >&6; }
  9682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9683   $as_echo_n "(cached) " >&6
  9684 fi
  9685 ac_res=`eval 'as_val=${'$as_ac_Header'}
  9686 		 $as_echo "$as_val"'`
  9687 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9688 $as_echo "$ac_res" >&6; }
  9689 else
  9690   # Is the header compilable?
  9691 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9692 $as_echo_n "checking $ac_header usability... " >&6; }
  9693 cat >conftest.$ac_ext <<_ACEOF
  9694 /* confdefs.h.  */
  9695 _ACEOF
  9696 cat confdefs.h >>conftest.$ac_ext
  9697 cat >>conftest.$ac_ext <<_ACEOF
  9698 /* end confdefs.h.  */
  9699 $ac_includes_default
  9700 #include <$ac_header>
  9701 _ACEOF
  9702 rm -f conftest.$ac_objext
  9703 if { (ac_try="$ac_compile"
  9704 case "(($ac_try" in
  9705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9706   *) ac_try_echo=$ac_try;;
  9707 esac
  9708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9709 $as_echo "$ac_try_echo") >&5
  9710   (eval "$ac_compile") 2>conftest.er1
  9711   ac_status=$?
  9712   grep -v '^ *+' conftest.er1 >conftest.err
  9713   rm -f conftest.er1
  9714   cat conftest.err >&5
  9715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9716   (exit $ac_status); } && {
  9717 	 test -z "$ac_c_werror_flag" ||
  9718 	 test ! -s conftest.err
  9719        } && test -s conftest.$ac_objext; then
  9720   ac_header_compiler=yes
  9721 else
  9722   $as_echo "$as_me: failed program was:" >&5
  9723 sed 's/^/| /' conftest.$ac_ext >&5
  9725 	ac_header_compiler=no
  9726 fi
  9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9729 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9730 $as_echo "$ac_header_compiler" >&6; }
  9732 # Is the header present?
  9733 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9734 $as_echo_n "checking $ac_header presence... " >&6; }
  9735 cat >conftest.$ac_ext <<_ACEOF
  9736 /* confdefs.h.  */
  9737 _ACEOF
  9738 cat confdefs.h >>conftest.$ac_ext
  9739 cat >>conftest.$ac_ext <<_ACEOF
  9740 /* end confdefs.h.  */
  9741 #include <$ac_header>
  9742 _ACEOF
  9743 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9744 case "(($ac_try" in
  9745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9746   *) ac_try_echo=$ac_try;;
  9747 esac
  9748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9749 $as_echo "$ac_try_echo") >&5
  9750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9751   ac_status=$?
  9752   grep -v '^ *+' conftest.er1 >conftest.err
  9753   rm -f conftest.er1
  9754   cat conftest.err >&5
  9755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9756   (exit $ac_status); } >/dev/null && {
  9757 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9758 	 test ! -s conftest.err
  9759        }; then
  9760   ac_header_preproc=yes
  9761 else
  9762   $as_echo "$as_me: failed program was:" >&5
  9763 sed 's/^/| /' conftest.$ac_ext >&5
  9765   ac_header_preproc=no
  9766 fi
  9768 rm -f conftest.err conftest.$ac_ext
  9769 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9770 $as_echo "$ac_header_preproc" >&6; }
  9772 # So?  What about this header?
  9773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9774   yes:no: )
  9775     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9776 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9778 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9779     ac_header_preproc=yes
  9780     ;;
  9781   no:yes:* )
  9782     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9783 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9784     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  9785 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  9786     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9787 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9788     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  9789 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  9790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9791 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9793 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9795     ;;
  9796 esac
  9797 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9798 $as_echo_n "checking for $ac_header... " >&6; }
  9799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9800   $as_echo_n "(cached) " >&6
  9801 else
  9802   eval "$as_ac_Header=\$ac_header_preproc"
  9803 fi
  9804 ac_res=`eval 'as_val=${'$as_ac_Header'}
  9805 		 $as_echo "$as_val"'`
  9806 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9807 $as_echo "$ac_res" >&6; }
  9809 fi
  9810 if test `eval 'as_val=${'$as_ac_Header'}
  9811 		 $as_echo "$as_val"'` = yes; then
  9812   cat >>confdefs.h <<_ACEOF
  9813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9814 _ACEOF
  9816 fi
  9818 done
  9820     if test $ac_cv_header_locale_h = yes; then
  9821     { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  9822 $as_echo_n "checking for LC_MESSAGES... " >&6; }
  9823 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  9824   $as_echo_n "(cached) " >&6
  9825 else
  9826   cat >conftest.$ac_ext <<_ACEOF
  9827 /* confdefs.h.  */
  9828 _ACEOF
  9829 cat confdefs.h >>conftest.$ac_ext
  9830 cat >>conftest.$ac_ext <<_ACEOF
  9831 /* end confdefs.h.  */
  9832 #include <locale.h>
  9833 int
  9834 main ()
  9836 return LC_MESSAGES
  9838   return 0;
  9840 _ACEOF
  9841 rm -f conftest.$ac_objext conftest$ac_exeext
  9842 if { (ac_try="$ac_link"
  9843 case "(($ac_try" in
  9844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9845   *) ac_try_echo=$ac_try;;
  9846 esac
  9847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9848 $as_echo "$ac_try_echo") >&5
  9849   (eval "$ac_link") 2>conftest.er1
  9850   ac_status=$?
  9851   grep -v '^ *+' conftest.er1 >conftest.err
  9852   rm -f conftest.er1
  9853   cat conftest.err >&5
  9854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9855   (exit $ac_status); } && {
  9856 	 test -z "$ac_c_werror_flag" ||
  9857 	 test ! -s conftest.err
  9858        } && test -s conftest$ac_exeext && {
  9859 	 test "$cross_compiling" = yes ||
  9860 	 $as_test_x conftest$ac_exeext
  9861        }; then
  9862   am_cv_val_LC_MESSAGES=yes
  9863 else
  9864   $as_echo "$as_me: failed program was:" >&5
  9865 sed 's/^/| /' conftest.$ac_ext >&5
  9867 	am_cv_val_LC_MESSAGES=no
  9868 fi
  9870 rm -rf conftest.dSYM
  9871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9872       conftest$ac_exeext conftest.$ac_ext
  9873 fi
  9874 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  9875 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  9876     if test $am_cv_val_LC_MESSAGES = yes; then
  9878 cat >>confdefs.h <<\_ACEOF
  9879 #define HAVE_LC_MESSAGES 1
  9880 _ACEOF
  9882     fi
  9883   fi
  9884          USE_NLS=yes
  9887     gt_cv_have_gettext=no
  9889     CATOBJEXT=NONE
  9890     XGETTEXT=:
  9891     INTLLIBS=
  9893     if test "${ac_cv_header_libintl_h+set}" = set; then
  9894   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
  9895 $as_echo_n "checking for libintl.h... " >&6; }
  9896 if test "${ac_cv_header_libintl_h+set}" = set; then
  9897   $as_echo_n "(cached) " >&6
  9898 fi
  9899 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  9900 $as_echo "$ac_cv_header_libintl_h" >&6; }
  9901 else
  9902   # Is the header compilable?
  9903 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
  9904 $as_echo_n "checking libintl.h usability... " >&6; }
  9905 cat >conftest.$ac_ext <<_ACEOF
  9906 /* confdefs.h.  */
  9907 _ACEOF
  9908 cat confdefs.h >>conftest.$ac_ext
  9909 cat >>conftest.$ac_ext <<_ACEOF
  9910 /* end confdefs.h.  */
  9911 $ac_includes_default
  9912 #include <libintl.h>
  9913 _ACEOF
  9914 rm -f conftest.$ac_objext
  9915 if { (ac_try="$ac_compile"
  9916 case "(($ac_try" in
  9917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9918   *) ac_try_echo=$ac_try;;
  9919 esac
  9920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9921 $as_echo "$ac_try_echo") >&5
  9922   (eval "$ac_compile") 2>conftest.er1
  9923   ac_status=$?
  9924   grep -v '^ *+' conftest.er1 >conftest.err
  9925   rm -f conftest.er1
  9926   cat conftest.err >&5
  9927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9928   (exit $ac_status); } && {
  9929 	 test -z "$ac_c_werror_flag" ||
  9930 	 test ! -s conftest.err
  9931        } && test -s conftest.$ac_objext; then
  9932   ac_header_compiler=yes
  9933 else
  9934   $as_echo "$as_me: failed program was:" >&5
  9935 sed 's/^/| /' conftest.$ac_ext >&5
  9937 	ac_header_compiler=no
  9938 fi
  9940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9941 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9942 $as_echo "$ac_header_compiler" >&6; }
  9944 # Is the header present?
  9945 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
  9946 $as_echo_n "checking libintl.h presence... " >&6; }
  9947 cat >conftest.$ac_ext <<_ACEOF
  9948 /* confdefs.h.  */
  9949 _ACEOF
  9950 cat confdefs.h >>conftest.$ac_ext
  9951 cat >>conftest.$ac_ext <<_ACEOF
  9952 /* end confdefs.h.  */
  9953 #include <libintl.h>
  9954 _ACEOF
  9955 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9956 case "(($ac_try" in
  9957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9958   *) ac_try_echo=$ac_try;;
  9959 esac
  9960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9961 $as_echo "$ac_try_echo") >&5
  9962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9963   ac_status=$?
  9964   grep -v '^ *+' conftest.er1 >conftest.err
  9965   rm -f conftest.er1
  9966   cat conftest.err >&5
  9967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9968   (exit $ac_status); } >/dev/null && {
  9969 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9970 	 test ! -s conftest.err
  9971        }; then
  9972   ac_header_preproc=yes
  9973 else
  9974   $as_echo "$as_me: failed program was:" >&5
  9975 sed 's/^/| /' conftest.$ac_ext >&5
  9977   ac_header_preproc=no
  9978 fi
  9980 rm -f conftest.err conftest.$ac_ext
  9981 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9982 $as_echo "$ac_header_preproc" >&6; }
  9984 # So?  What about this header?
  9985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9986   yes:no: )
  9987     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9988 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9989     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
  9990 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
  9991     ac_header_preproc=yes
  9992     ;;
  9993   no:yes:* )
  9994     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
  9995 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
  9996     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
  9997 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
  9998     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
  9999 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 10000     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 10001 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 10002     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 10003 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 10004     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 10005 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 10007     ;;
 10008 esac
 10009 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
 10010 $as_echo_n "checking for libintl.h... " >&6; }
 10011 if test "${ac_cv_header_libintl_h+set}" = set; then
 10012   $as_echo_n "(cached) " >&6
 10013 else
 10014   ac_cv_header_libintl_h=$ac_header_preproc
 10015 fi
 10016 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 10017 $as_echo "$ac_cv_header_libintl_h" >&6; }
 10019 fi
 10020 if test $ac_cv_header_libintl_h = yes; then
 10021   gt_cv_func_dgettext_libintl="no"
 10022       libintl_extra_libs=""
 10025       # First check in libc
 10027       { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 10028 $as_echo_n "checking for ngettext in libc... " >&6; }
 10029 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 10030   $as_echo_n "(cached) " >&6
 10031 else
 10032   cat >conftest.$ac_ext <<_ACEOF
 10033 /* confdefs.h.  */
 10034 _ACEOF
 10035 cat confdefs.h >>conftest.$ac_ext
 10036 cat >>conftest.$ac_ext <<_ACEOF
 10037 /* end confdefs.h.  */
 10039 #include <libintl.h>
 10041 int
 10042 main ()
 10044 return !ngettext ("","", 1)
 10046   return 0;
 10048 _ACEOF
 10049 rm -f conftest.$ac_objext conftest$ac_exeext
 10050 if { (ac_try="$ac_link"
 10051 case "(($ac_try" in
 10052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10053   *) ac_try_echo=$ac_try;;
 10054 esac
 10055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10056 $as_echo "$ac_try_echo") >&5
 10057   (eval "$ac_link") 2>conftest.er1
 10058   ac_status=$?
 10059   grep -v '^ *+' conftest.er1 >conftest.err
 10060   rm -f conftest.er1
 10061   cat conftest.err >&5
 10062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10063   (exit $ac_status); } && {
 10064 	 test -z "$ac_c_werror_flag" ||
 10065 	 test ! -s conftest.err
 10066        } && test -s conftest$ac_exeext && {
 10067 	 test "$cross_compiling" = yes ||
 10068 	 $as_test_x conftest$ac_exeext
 10069        }; then
 10070   gt_cv_func_ngettext_libc=yes
 10071 else
 10072   $as_echo "$as_me: failed program was:" >&5
 10073 sed 's/^/| /' conftest.$ac_ext >&5
 10075 	gt_cv_func_ngettext_libc=no
 10076 fi
 10078 rm -rf conftest.dSYM
 10079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10080       conftest$ac_exeext conftest.$ac_ext
 10082 fi
 10083 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 10084 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
 10086       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 10087 	      { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 10088 $as_echo_n "checking for dgettext in libc... " >&6; }
 10089 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 10090   $as_echo_n "(cached) " >&6
 10091 else
 10092   cat >conftest.$ac_ext <<_ACEOF
 10093 /* confdefs.h.  */
 10094 _ACEOF
 10095 cat confdefs.h >>conftest.$ac_ext
 10096 cat >>conftest.$ac_ext <<_ACEOF
 10097 /* end confdefs.h.  */
 10099 #include <libintl.h>
 10101 int
 10102 main ()
 10104 return !dgettext ("","")
 10106   return 0;
 10108 _ACEOF
 10109 rm -f conftest.$ac_objext conftest$ac_exeext
 10110 if { (ac_try="$ac_link"
 10111 case "(($ac_try" in
 10112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10113   *) ac_try_echo=$ac_try;;
 10114 esac
 10115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10116 $as_echo "$ac_try_echo") >&5
 10117   (eval "$ac_link") 2>conftest.er1
 10118   ac_status=$?
 10119   grep -v '^ *+' conftest.er1 >conftest.err
 10120   rm -f conftest.er1
 10121   cat conftest.err >&5
 10122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10123   (exit $ac_status); } && {
 10124 	 test -z "$ac_c_werror_flag" ||
 10125 	 test ! -s conftest.err
 10126        } && test -s conftest$ac_exeext && {
 10127 	 test "$cross_compiling" = yes ||
 10128 	 $as_test_x conftest$ac_exeext
 10129        }; then
 10130   gt_cv_func_dgettext_libc=yes
 10131 else
 10132   $as_echo "$as_me: failed program was:" >&5
 10133 sed 's/^/| /' conftest.$ac_ext >&5
 10135 	gt_cv_func_dgettext_libc=no
 10136 fi
 10138 rm -rf conftest.dSYM
 10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10140       conftest$ac_exeext conftest.$ac_ext
 10142 fi
 10143 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 10144 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
 10145       fi
 10147       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 10149 for ac_func in bind_textdomain_codeset
 10150 do
 10151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 10152 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 10153 $as_echo_n "checking for $ac_func... " >&6; }
 10154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 10155   $as_echo_n "(cached) " >&6
 10156 else
 10157   cat >conftest.$ac_ext <<_ACEOF
 10158 /* confdefs.h.  */
 10159 _ACEOF
 10160 cat confdefs.h >>conftest.$ac_ext
 10161 cat >>conftest.$ac_ext <<_ACEOF
 10162 /* end confdefs.h.  */
 10163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 10164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10165 #define $ac_func innocuous_$ac_func
 10167 /* System header to define __stub macros and hopefully few prototypes,
 10168     which can conflict with char $ac_func (); below.
 10169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10170     <limits.h> exists even on freestanding compilers.  */
 10172 #ifdef __STDC__
 10173 # include <limits.h>
 10174 #else
 10175 # include <assert.h>
 10176 #endif
 10178 #undef $ac_func
 10180 /* Override any GCC internal prototype to avoid an error.
 10181    Use char because int might match the return type of a GCC
 10182    builtin and then its argument prototype would still apply.  */
 10183 #ifdef __cplusplus
 10184 extern "C"
 10185 #endif
 10186 char $ac_func ();
 10187 /* The GNU C library defines this for functions which it implements
 10188     to always fail with ENOSYS.  Some functions are actually named
 10189     something starting with __ and the normal name is an alias.  */
 10190 #if defined __stub_$ac_func || defined __stub___$ac_func
 10191 choke me
 10192 #endif
 10194 int
 10195 main ()
 10197 return $ac_func ();
 10199   return 0;
 10201 _ACEOF
 10202 rm -f conftest.$ac_objext conftest$ac_exeext
 10203 if { (ac_try="$ac_link"
 10204 case "(($ac_try" in
 10205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10206   *) ac_try_echo=$ac_try;;
 10207 esac
 10208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10209 $as_echo "$ac_try_echo") >&5
 10210   (eval "$ac_link") 2>conftest.er1
 10211   ac_status=$?
 10212   grep -v '^ *+' conftest.er1 >conftest.err
 10213   rm -f conftest.er1
 10214   cat conftest.err >&5
 10215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10216   (exit $ac_status); } && {
 10217 	 test -z "$ac_c_werror_flag" ||
 10218 	 test ! -s conftest.err
 10219        } && test -s conftest$ac_exeext && {
 10220 	 test "$cross_compiling" = yes ||
 10221 	 $as_test_x conftest$ac_exeext
 10222        }; then
 10223   eval "$as_ac_var=yes"
 10224 else
 10225   $as_echo "$as_me: failed program was:" >&5
 10226 sed 's/^/| /' conftest.$ac_ext >&5
 10228 	eval "$as_ac_var=no"
 10229 fi
 10231 rm -rf conftest.dSYM
 10232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10233       conftest$ac_exeext conftest.$ac_ext
 10234 fi
 10235 ac_res=`eval 'as_val=${'$as_ac_var'}
 10236 		 $as_echo "$as_val"'`
 10237 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 10238 $as_echo "$ac_res" >&6; }
 10239 if test `eval 'as_val=${'$as_ac_var'}
 10240 		 $as_echo "$as_val"'` = yes; then
 10241   cat >>confdefs.h <<_ACEOF
 10242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 10243 _ACEOF
 10245 fi
 10246 done
 10248       fi
 10251       # If we don't have everything we want, check in libintl
 10253       if test "$gt_cv_func_dgettext_libc" != "yes" \
 10254 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 10255          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 10257         { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 10258 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
 10259 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 10260   $as_echo_n "(cached) " >&6
 10261 else
 10262   ac_check_lib_save_LIBS=$LIBS
 10263 LIBS="-lintl  $LIBS"
 10264 cat >conftest.$ac_ext <<_ACEOF
 10265 /* confdefs.h.  */
 10266 _ACEOF
 10267 cat confdefs.h >>conftest.$ac_ext
 10268 cat >>conftest.$ac_ext <<_ACEOF
 10269 /* end confdefs.h.  */
 10271 /* Override any GCC internal prototype to avoid an error.
 10272    Use char because int might match the return type of a GCC
 10273    builtin and then its argument prototype would still apply.  */
 10274 #ifdef __cplusplus
 10275 extern "C"
 10276 #endif
 10277 char bindtextdomain ();
 10278 int
 10279 main ()
 10281 return bindtextdomain ();
 10283   return 0;
 10285 _ACEOF
 10286 rm -f conftest.$ac_objext conftest$ac_exeext
 10287 if { (ac_try="$ac_link"
 10288 case "(($ac_try" in
 10289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10290   *) ac_try_echo=$ac_try;;
 10291 esac
 10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10293 $as_echo "$ac_try_echo") >&5
 10294   (eval "$ac_link") 2>conftest.er1
 10295   ac_status=$?
 10296   grep -v '^ *+' conftest.er1 >conftest.err
 10297   rm -f conftest.er1
 10298   cat conftest.err >&5
 10299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10300   (exit $ac_status); } && {
 10301 	 test -z "$ac_c_werror_flag" ||
 10302 	 test ! -s conftest.err
 10303        } && test -s conftest$ac_exeext && {
 10304 	 test "$cross_compiling" = yes ||
 10305 	 $as_test_x conftest$ac_exeext
 10306        }; then
 10307   ac_cv_lib_intl_bindtextdomain=yes
 10308 else
 10309   $as_echo "$as_me: failed program was:" >&5
 10310 sed 's/^/| /' conftest.$ac_ext >&5
 10312 	ac_cv_lib_intl_bindtextdomain=no
 10313 fi
 10315 rm -rf conftest.dSYM
 10316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10317       conftest$ac_exeext conftest.$ac_ext
 10318 LIBS=$ac_check_lib_save_LIBS
 10319 fi
 10320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 10321 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
 10322 if test $ac_cv_lib_intl_bindtextdomain = yes; then
 10323   { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 10324 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 10325 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 10326   $as_echo_n "(cached) " >&6
 10327 else
 10328   ac_check_lib_save_LIBS=$LIBS
 10329 LIBS="-lintl  $LIBS"
 10330 cat >conftest.$ac_ext <<_ACEOF
 10331 /* confdefs.h.  */
 10332 _ACEOF
 10333 cat confdefs.h >>conftest.$ac_ext
 10334 cat >>conftest.$ac_ext <<_ACEOF
 10335 /* end confdefs.h.  */
 10337 /* Override any GCC internal prototype to avoid an error.
 10338    Use char because int might match the return type of a GCC
 10339    builtin and then its argument prototype would still apply.  */
 10340 #ifdef __cplusplus
 10341 extern "C"
 10342 #endif
 10343 char ngettext ();
 10344 int
 10345 main ()
 10347 return ngettext ();
 10349   return 0;
 10351 _ACEOF
 10352 rm -f conftest.$ac_objext conftest$ac_exeext
 10353 if { (ac_try="$ac_link"
 10354 case "(($ac_try" in
 10355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10356   *) ac_try_echo=$ac_try;;
 10357 esac
 10358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10359 $as_echo "$ac_try_echo") >&5
 10360   (eval "$ac_link") 2>conftest.er1
 10361   ac_status=$?
 10362   grep -v '^ *+' conftest.er1 >conftest.err
 10363   rm -f conftest.er1
 10364   cat conftest.err >&5
 10365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10366   (exit $ac_status); } && {
 10367 	 test -z "$ac_c_werror_flag" ||
 10368 	 test ! -s conftest.err
 10369        } && test -s conftest$ac_exeext && {
 10370 	 test "$cross_compiling" = yes ||
 10371 	 $as_test_x conftest$ac_exeext
 10372        }; then
 10373   ac_cv_lib_intl_ngettext=yes
 10374 else
 10375   $as_echo "$as_me: failed program was:" >&5
 10376 sed 's/^/| /' conftest.$ac_ext >&5
 10378 	ac_cv_lib_intl_ngettext=no
 10379 fi
 10381 rm -rf conftest.dSYM
 10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10383       conftest$ac_exeext conftest.$ac_ext
 10384 LIBS=$ac_check_lib_save_LIBS
 10385 fi
 10386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 10387 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 10388 if test $ac_cv_lib_intl_ngettext = yes; then
 10389   { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 10390 $as_echo_n "checking for dgettext in -lintl... " >&6; }
 10391 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 10392   $as_echo_n "(cached) " >&6
 10393 else
 10394   ac_check_lib_save_LIBS=$LIBS
 10395 LIBS="-lintl  $LIBS"
 10396 cat >conftest.$ac_ext <<_ACEOF
 10397 /* confdefs.h.  */
 10398 _ACEOF
 10399 cat confdefs.h >>conftest.$ac_ext
 10400 cat >>conftest.$ac_ext <<_ACEOF
 10401 /* end confdefs.h.  */
 10403 /* Override any GCC internal prototype to avoid an error.
 10404    Use char because int might match the return type of a GCC
 10405    builtin and then its argument prototype would still apply.  */
 10406 #ifdef __cplusplus
 10407 extern "C"
 10408 #endif
 10409 char dgettext ();
 10410 int
 10411 main ()
 10413 return dgettext ();
 10415   return 0;
 10417 _ACEOF
 10418 rm -f conftest.$ac_objext conftest$ac_exeext
 10419 if { (ac_try="$ac_link"
 10420 case "(($ac_try" in
 10421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10422   *) ac_try_echo=$ac_try;;
 10423 esac
 10424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10425 $as_echo "$ac_try_echo") >&5
 10426   (eval "$ac_link") 2>conftest.er1
 10427   ac_status=$?
 10428   grep -v '^ *+' conftest.er1 >conftest.err
 10429   rm -f conftest.er1
 10430   cat conftest.err >&5
 10431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10432   (exit $ac_status); } && {
 10433 	 test -z "$ac_c_werror_flag" ||
 10434 	 test ! -s conftest.err
 10435        } && test -s conftest$ac_exeext && {
 10436 	 test "$cross_compiling" = yes ||
 10437 	 $as_test_x conftest$ac_exeext
 10438        }; then
 10439   ac_cv_lib_intl_dgettext=yes
 10440 else
 10441   $as_echo "$as_me: failed program was:" >&5
 10442 sed 's/^/| /' conftest.$ac_ext >&5
 10444 	ac_cv_lib_intl_dgettext=no
 10445 fi
 10447 rm -rf conftest.dSYM
 10448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10449       conftest$ac_exeext conftest.$ac_ext
 10450 LIBS=$ac_check_lib_save_LIBS
 10451 fi
 10452 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 10453 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
 10454 if test $ac_cv_lib_intl_dgettext = yes; then
 10455   gt_cv_func_dgettext_libintl=yes
 10456 fi
 10458 fi
 10460 fi
 10463 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 10464 	  { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 10465 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
 10466 	  { $as_echo "$as_me:$LINENO: result: " >&5
 10467 $as_echo "" >&6; }
 10468   	  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 10469 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 10470 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 10471   $as_echo_n "(cached) " >&6
 10472 else
 10473   ac_check_lib_save_LIBS=$LIBS
 10474 LIBS="-lintl -liconv $LIBS"
 10475 cat >conftest.$ac_ext <<_ACEOF
 10476 /* confdefs.h.  */
 10477 _ACEOF
 10478 cat confdefs.h >>conftest.$ac_ext
 10479 cat >>conftest.$ac_ext <<_ACEOF
 10480 /* end confdefs.h.  */
 10482 /* Override any GCC internal prototype to avoid an error.
 10483    Use char because int might match the return type of a GCC
 10484    builtin and then its argument prototype would still apply.  */
 10485 #ifdef __cplusplus
 10486 extern "C"
 10487 #endif
 10488 char ngettext ();
 10489 int
 10490 main ()
 10492 return ngettext ();
 10494   return 0;
 10496 _ACEOF
 10497 rm -f conftest.$ac_objext conftest$ac_exeext
 10498 if { (ac_try="$ac_link"
 10499 case "(($ac_try" in
 10500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10501   *) ac_try_echo=$ac_try;;
 10502 esac
 10503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10504 $as_echo "$ac_try_echo") >&5
 10505   (eval "$ac_link") 2>conftest.er1
 10506   ac_status=$?
 10507   grep -v '^ *+' conftest.er1 >conftest.err
 10508   rm -f conftest.er1
 10509   cat conftest.err >&5
 10510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10511   (exit $ac_status); } && {
 10512 	 test -z "$ac_c_werror_flag" ||
 10513 	 test ! -s conftest.err
 10514        } && test -s conftest$ac_exeext && {
 10515 	 test "$cross_compiling" = yes ||
 10516 	 $as_test_x conftest$ac_exeext
 10517        }; then
 10518   ac_cv_lib_intl_ngettext=yes
 10519 else
 10520   $as_echo "$as_me: failed program was:" >&5
 10521 sed 's/^/| /' conftest.$ac_ext >&5
 10523 	ac_cv_lib_intl_ngettext=no
 10524 fi
 10526 rm -rf conftest.dSYM
 10527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10528       conftest$ac_exeext conftest.$ac_ext
 10529 LIBS=$ac_check_lib_save_LIBS
 10530 fi
 10531 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 10532 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 10533 if test $ac_cv_lib_intl_ngettext = yes; then
 10534   { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 10535 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
 10536 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 10537   $as_echo_n "(cached) " >&6
 10538 else
 10539   ac_check_lib_save_LIBS=$LIBS
 10540 LIBS="-lintl -liconv $LIBS"
 10541 cat >conftest.$ac_ext <<_ACEOF
 10542 /* confdefs.h.  */
 10543 _ACEOF
 10544 cat confdefs.h >>conftest.$ac_ext
 10545 cat >>conftest.$ac_ext <<_ACEOF
 10546 /* end confdefs.h.  */
 10548 /* Override any GCC internal prototype to avoid an error.
 10549    Use char because int might match the return type of a GCC
 10550    builtin and then its argument prototype would still apply.  */
 10551 #ifdef __cplusplus
 10552 extern "C"
 10553 #endif
 10554 char dcgettext ();
 10555 int
 10556 main ()
 10558 return dcgettext ();
 10560   return 0;
 10562 _ACEOF
 10563 rm -f conftest.$ac_objext conftest$ac_exeext
 10564 if { (ac_try="$ac_link"
 10565 case "(($ac_try" in
 10566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10567   *) ac_try_echo=$ac_try;;
 10568 esac
 10569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10570 $as_echo "$ac_try_echo") >&5
 10571   (eval "$ac_link") 2>conftest.er1
 10572   ac_status=$?
 10573   grep -v '^ *+' conftest.er1 >conftest.err
 10574   rm -f conftest.er1
 10575   cat conftest.err >&5
 10576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10577   (exit $ac_status); } && {
 10578 	 test -z "$ac_c_werror_flag" ||
 10579 	 test ! -s conftest.err
 10580        } && test -s conftest$ac_exeext && {
 10581 	 test "$cross_compiling" = yes ||
 10582 	 $as_test_x conftest$ac_exeext
 10583        }; then
 10584   ac_cv_lib_intl_dcgettext=yes
 10585 else
 10586   $as_echo "$as_me: failed program was:" >&5
 10587 sed 's/^/| /' conftest.$ac_ext >&5
 10589 	ac_cv_lib_intl_dcgettext=no
 10590 fi
 10592 rm -rf conftest.dSYM
 10593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10594       conftest$ac_exeext conftest.$ac_ext
 10595 LIBS=$ac_check_lib_save_LIBS
 10596 fi
 10597 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 10598 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
 10599 if test $ac_cv_lib_intl_dcgettext = yes; then
 10600   gt_cv_func_dgettext_libintl=yes
 10601 			libintl_extra_libs=-liconv
 10602 else
 10604 fi
 10606 else
 10608 fi
 10610         fi
 10613         # If we found libintl, then check in it for bind_textdomain_codeset();
 10614         # we'll prefer libc if neither have bind_textdomain_codeset(),
 10615         # and both have dgettext and ngettext
 10617         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 10618           glib_save_LIBS="$LIBS"
 10619           LIBS="$LIBS -lintl $libintl_extra_libs"
 10620           unset ac_cv_func_bind_textdomain_codeset
 10622 for ac_func in bind_textdomain_codeset
 10623 do
 10624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 10625 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 10626 $as_echo_n "checking for $ac_func... " >&6; }
 10627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 10628   $as_echo_n "(cached) " >&6
 10629 else
 10630   cat >conftest.$ac_ext <<_ACEOF
 10631 /* confdefs.h.  */
 10632 _ACEOF
 10633 cat confdefs.h >>conftest.$ac_ext
 10634 cat >>conftest.$ac_ext <<_ACEOF
 10635 /* end confdefs.h.  */
 10636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 10637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10638 #define $ac_func innocuous_$ac_func
 10640 /* System header to define __stub macros and hopefully few prototypes,
 10641     which can conflict with char $ac_func (); below.
 10642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10643     <limits.h> exists even on freestanding compilers.  */
 10645 #ifdef __STDC__
 10646 # include <limits.h>
 10647 #else
 10648 # include <assert.h>
 10649 #endif
 10651 #undef $ac_func
 10653 /* Override any GCC internal prototype to avoid an error.
 10654    Use char because int might match the return type of a GCC
 10655    builtin and then its argument prototype would still apply.  */
 10656 #ifdef __cplusplus
 10657 extern "C"
 10658 #endif
 10659 char $ac_func ();
 10660 /* The GNU C library defines this for functions which it implements
 10661     to always fail with ENOSYS.  Some functions are actually named
 10662     something starting with __ and the normal name is an alias.  */
 10663 #if defined __stub_$ac_func || defined __stub___$ac_func
 10664 choke me
 10665 #endif
 10667 int
 10668 main ()
 10670 return $ac_func ();
 10672   return 0;
 10674 _ACEOF
 10675 rm -f conftest.$ac_objext conftest$ac_exeext
 10676 if { (ac_try="$ac_link"
 10677 case "(($ac_try" in
 10678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10679   *) ac_try_echo=$ac_try;;
 10680 esac
 10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10682 $as_echo "$ac_try_echo") >&5
 10683   (eval "$ac_link") 2>conftest.er1
 10684   ac_status=$?
 10685   grep -v '^ *+' conftest.er1 >conftest.err
 10686   rm -f conftest.er1
 10687   cat conftest.err >&5
 10688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10689   (exit $ac_status); } && {
 10690 	 test -z "$ac_c_werror_flag" ||
 10691 	 test ! -s conftest.err
 10692        } && test -s conftest$ac_exeext && {
 10693 	 test "$cross_compiling" = yes ||
 10694 	 $as_test_x conftest$ac_exeext
 10695        }; then
 10696   eval "$as_ac_var=yes"
 10697 else
 10698   $as_echo "$as_me: failed program was:" >&5
 10699 sed 's/^/| /' conftest.$ac_ext >&5
 10701 	eval "$as_ac_var=no"
 10702 fi
 10704 rm -rf conftest.dSYM
 10705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10706       conftest$ac_exeext conftest.$ac_ext
 10707 fi
 10708 ac_res=`eval 'as_val=${'$as_ac_var'}
 10709 		 $as_echo "$as_val"'`
 10710 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 10711 $as_echo "$ac_res" >&6; }
 10712 if test `eval 'as_val=${'$as_ac_var'}
 10713 		 $as_echo "$as_val"'` = yes; then
 10714   cat >>confdefs.h <<_ACEOF
 10715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 10716 _ACEOF
 10718 fi
 10719 done
 10721           LIBS="$glib_save_LIBS"
 10723           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 10724             gt_cv_func_dgettext_libc=no
 10725           else
 10726             if test "$gt_cv_func_dgettext_libc" = "yes" \
 10727 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 10728               gt_cv_func_dgettext_libintl=no
 10729             fi
 10730           fi
 10731         fi
 10732       fi
 10734       if test "$gt_cv_func_dgettext_libc" = "yes" \
 10735 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 10736         gt_cv_have_gettext=yes
 10737       fi
 10739       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 10740         INTLLIBS="-lintl $libintl_extra_libs"
 10741       fi
 10743       if test "$gt_cv_have_gettext" = "yes"; then
 10745 cat >>confdefs.h <<\_ACEOF
 10746 #define HAVE_GETTEXT 1
 10747 _ACEOF
 10749 	# Extract the first word of "msgfmt", so it can be a program name with args.
 10750 set dummy msgfmt; ac_word=$2
 10751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10752 $as_echo_n "checking for $ac_word... " >&6; }
 10753 if test "${ac_cv_path_MSGFMT+set}" = set; then
 10754   $as_echo_n "(cached) " >&6
 10755 else
 10756   case "$MSGFMT" in
 10757   /*)
 10758   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 10759   ;;
 10760   *)
 10761   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 10762   for ac_dir in $PATH; do
 10763     test -z "$ac_dir" && ac_dir=.
 10764     if test -f $ac_dir/$ac_word; then
 10765       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 10766 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 10767 	break
 10768       fi
 10769     fi
 10770   done
 10771   IFS="$ac_save_ifs"
 10772   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 10773   ;;
 10774 esac
 10775 fi
 10776 MSGFMT="$ac_cv_path_MSGFMT"
 10777 if test "$MSGFMT" != "no"; then
 10778   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
 10779 $as_echo "$MSGFMT" >&6; }
 10780 else
 10781   { $as_echo "$as_me:$LINENO: result: no" >&5
 10782 $as_echo "no" >&6; }
 10783 fi
 10784 	if test "$MSGFMT" != "no"; then
 10785           glib_save_LIBS="$LIBS"
 10786           LIBS="$LIBS $INTLLIBS"
 10788 for ac_func in dcgettext
 10789 do
 10790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 10791 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 10792 $as_echo_n "checking for $ac_func... " >&6; }
 10793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 10794   $as_echo_n "(cached) " >&6
 10795 else
 10796   cat >conftest.$ac_ext <<_ACEOF
 10797 /* confdefs.h.  */
 10798 _ACEOF
 10799 cat confdefs.h >>conftest.$ac_ext
 10800 cat >>conftest.$ac_ext <<_ACEOF
 10801 /* end confdefs.h.  */
 10802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 10803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10804 #define $ac_func innocuous_$ac_func
 10806 /* System header to define __stub macros and hopefully few prototypes,
 10807     which can conflict with char $ac_func (); below.
 10808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10809     <limits.h> exists even on freestanding compilers.  */
 10811 #ifdef __STDC__
 10812 # include <limits.h>
 10813 #else
 10814 # include <assert.h>
 10815 #endif
 10817 #undef $ac_func
 10819 /* Override any GCC internal prototype to avoid an error.
 10820    Use char because int might match the return type of a GCC
 10821    builtin and then its argument prototype would still apply.  */
 10822 #ifdef __cplusplus
 10823 extern "C"
 10824 #endif
 10825 char $ac_func ();
 10826 /* The GNU C library defines this for functions which it implements
 10827     to always fail with ENOSYS.  Some functions are actually named
 10828     something starting with __ and the normal name is an alias.  */
 10829 #if defined __stub_$ac_func || defined __stub___$ac_func
 10830 choke me
 10831 #endif
 10833 int
 10834 main ()
 10836 return $ac_func ();
 10838   return 0;
 10840 _ACEOF
 10841 rm -f conftest.$ac_objext conftest$ac_exeext
 10842 if { (ac_try="$ac_link"
 10843 case "(($ac_try" in
 10844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10845   *) ac_try_echo=$ac_try;;
 10846 esac
 10847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10848 $as_echo "$ac_try_echo") >&5
 10849   (eval "$ac_link") 2>conftest.er1
 10850   ac_status=$?
 10851   grep -v '^ *+' conftest.er1 >conftest.err
 10852   rm -f conftest.er1
 10853   cat conftest.err >&5
 10854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10855   (exit $ac_status); } && {
 10856 	 test -z "$ac_c_werror_flag" ||
 10857 	 test ! -s conftest.err
 10858        } && test -s conftest$ac_exeext && {
 10859 	 test "$cross_compiling" = yes ||
 10860 	 $as_test_x conftest$ac_exeext
 10861        }; then
 10862   eval "$as_ac_var=yes"
 10863 else
 10864   $as_echo "$as_me: failed program was:" >&5
 10865 sed 's/^/| /' conftest.$ac_ext >&5
 10867 	eval "$as_ac_var=no"
 10868 fi
 10870 rm -rf conftest.dSYM
 10871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10872       conftest$ac_exeext conftest.$ac_ext
 10873 fi
 10874 ac_res=`eval 'as_val=${'$as_ac_var'}
 10875 		 $as_echo "$as_val"'`
 10876 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 10877 $as_echo "$ac_res" >&6; }
 10878 if test `eval 'as_val=${'$as_ac_var'}
 10879 		 $as_echo "$as_val"'` = yes; then
 10880   cat >>confdefs.h <<_ACEOF
 10881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 10882 _ACEOF
 10884 fi
 10885 done
 10887 	  MSGFMT_OPTS=
 10888 	  { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 10889 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
 10890 	  cat >conftest.foo <<_ACEOF
 10892 msgid ""
 10893 msgstr ""
 10894 "Content-Type: text/plain; charset=UTF-8\n"
 10895 "Project-Id-Version: test 1.0\n"
 10896 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 10897 "Last-Translator: test <foo@bar.xx>\n"
 10898 "Language-Team: C <LL@li.org>\n"
 10899 "MIME-Version: 1.0\n"
 10900 "Content-Transfer-Encoding: 8bit\n"
 10902 _ACEOF
 10903 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
 10904   (msgfmt -c -o /dev/null conftest.foo) 2>&5
 10905   ac_status=$?
 10906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10907   (exit $ac_status); }; then
 10908   MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
 10909 $as_echo "yes" >&6; }
 10910 else { $as_echo "$as_me:$LINENO: result: no" >&5
 10911 $as_echo "no" >&6; }
 10912 echo "$as_me: failed input was:" >&5
 10913 sed 's/^/| /' conftest.foo >&5
 10914 fi
 10916 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 10917 set dummy gmsgfmt; ac_word=$2
 10918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10919 $as_echo_n "checking for $ac_word... " >&6; }
 10920 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 10921   $as_echo_n "(cached) " >&6
 10922 else
 10923   case $GMSGFMT in
 10924   [\\/]* | ?:[\\/]*)
 10925   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 10926   ;;
 10927   *)
 10928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10929 for as_dir in $PATH
 10930 do
 10931   IFS=$as_save_IFS
 10932   test -z "$as_dir" && as_dir=.
 10933   for ac_exec_ext in '' $ac_executable_extensions; do
 10934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10935     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 10936     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10937     break 2
 10938   fi
 10939 done
 10940 done
 10941 IFS=$as_save_IFS
 10943   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 10944   ;;
 10945 esac
 10946 fi
 10947 GMSGFMT=$ac_cv_path_GMSGFMT
 10948 if test -n "$GMSGFMT"; then
 10949   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 10950 $as_echo "$GMSGFMT" >&6; }
 10951 else
 10952   { $as_echo "$as_me:$LINENO: result: no" >&5
 10953 $as_echo "no" >&6; }
 10954 fi
 10957 	  # Extract the first word of "xgettext", so it can be a program name with args.
 10958 set dummy xgettext; ac_word=$2
 10959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10960 $as_echo_n "checking for $ac_word... " >&6; }
 10961 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 10962   $as_echo_n "(cached) " >&6
 10963 else
 10964   case "$XGETTEXT" in
 10965   /*)
 10966   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 10967   ;;
 10968   *)
 10969   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 10970   for ac_dir in $PATH; do
 10971     test -z "$ac_dir" && ac_dir=.
 10972     if test -f $ac_dir/$ac_word; then
 10973       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 10974 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 10975 	break
 10976       fi
 10977     fi
 10978   done
 10979   IFS="$ac_save_ifs"
 10980   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 10981   ;;
 10982 esac
 10983 fi
 10984 XGETTEXT="$ac_cv_path_XGETTEXT"
 10985 if test "$XGETTEXT" != ":"; then
 10986   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 10987 $as_echo "$XGETTEXT" >&6; }
 10988 else
 10989   { $as_echo "$as_me:$LINENO: result: no" >&5
 10990 $as_echo "no" >&6; }
 10991 fi
 10993 	  cat >conftest.$ac_ext <<_ACEOF
 10994 /* confdefs.h.  */
 10995 _ACEOF
 10996 cat confdefs.h >>conftest.$ac_ext
 10997 cat >>conftest.$ac_ext <<_ACEOF
 10998 /* end confdefs.h.  */
 11000 int
 11001 main ()
 11003 extern int _nl_msg_cat_cntr;
 11004 			 return _nl_msg_cat_cntr
 11006   return 0;
 11008 _ACEOF
 11009 rm -f conftest.$ac_objext conftest$ac_exeext
 11010 if { (ac_try="$ac_link"
 11011 case "(($ac_try" in
 11012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11013   *) ac_try_echo=$ac_try;;
 11014 esac
 11015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11016 $as_echo "$ac_try_echo") >&5
 11017   (eval "$ac_link") 2>conftest.er1
 11018   ac_status=$?
 11019   grep -v '^ *+' conftest.er1 >conftest.err
 11020   rm -f conftest.er1
 11021   cat conftest.err >&5
 11022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11023   (exit $ac_status); } && {
 11024 	 test -z "$ac_c_werror_flag" ||
 11025 	 test ! -s conftest.err
 11026        } && test -s conftest$ac_exeext && {
 11027 	 test "$cross_compiling" = yes ||
 11028 	 $as_test_x conftest$ac_exeext
 11029        }; then
 11030   CATOBJEXT=.gmo
 11031              DATADIRNAME=share
 11032 else
 11033   $as_echo "$as_me: failed program was:" >&5
 11034 sed 's/^/| /' conftest.$ac_ext >&5
 11036 	case $host in
 11037 	    *-*-solaris*)
 11038 	    	                	    	                { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 11039 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
 11040 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 11041   $as_echo_n "(cached) " >&6
 11042 else
 11043   cat >conftest.$ac_ext <<_ACEOF
 11044 /* confdefs.h.  */
 11045 _ACEOF
 11046 cat confdefs.h >>conftest.$ac_ext
 11047 cat >>conftest.$ac_ext <<_ACEOF
 11048 /* end confdefs.h.  */
 11049 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 11050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11051 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 11053 /* System header to define __stub macros and hopefully few prototypes,
 11054     which can conflict with char bind_textdomain_codeset (); below.
 11055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11056     <limits.h> exists even on freestanding compilers.  */
 11058 #ifdef __STDC__
 11059 # include <limits.h>
 11060 #else
 11061 # include <assert.h>
 11062 #endif
 11064 #undef bind_textdomain_codeset
 11066 /* Override any GCC internal prototype to avoid an error.
 11067    Use char because int might match the return type of a GCC
 11068    builtin and then its argument prototype would still apply.  */
 11069 #ifdef __cplusplus
 11070 extern "C"
 11071 #endif
 11072 char bind_textdomain_codeset ();
 11073 /* The GNU C library defines this for functions which it implements
 11074     to always fail with ENOSYS.  Some functions are actually named
 11075     something starting with __ and the normal name is an alias.  */
 11076 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 11077 choke me
 11078 #endif
 11080 int
 11081 main ()
 11083 return bind_textdomain_codeset ();
 11085   return 0;
 11087 _ACEOF
 11088 rm -f conftest.$ac_objext conftest$ac_exeext
 11089 if { (ac_try="$ac_link"
 11090 case "(($ac_try" in
 11091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11092   *) ac_try_echo=$ac_try;;
 11093 esac
 11094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11095 $as_echo "$ac_try_echo") >&5
 11096   (eval "$ac_link") 2>conftest.er1
 11097   ac_status=$?
 11098   grep -v '^ *+' conftest.er1 >conftest.err
 11099   rm -f conftest.er1
 11100   cat conftest.err >&5
 11101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11102   (exit $ac_status); } && {
 11103 	 test -z "$ac_c_werror_flag" ||
 11104 	 test ! -s conftest.err
 11105        } && test -s conftest$ac_exeext && {
 11106 	 test "$cross_compiling" = yes ||
 11107 	 $as_test_x conftest$ac_exeext
 11108        }; then
 11109   ac_cv_func_bind_textdomain_codeset=yes
 11110 else
 11111   $as_echo "$as_me: failed program was:" >&5
 11112 sed 's/^/| /' conftest.$ac_ext >&5
 11114 	ac_cv_func_bind_textdomain_codeset=no
 11115 fi
 11117 rm -rf conftest.dSYM
 11118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11119       conftest$ac_exeext conftest.$ac_ext
 11120 fi
 11121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 11122 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
 11123 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 11124   CATOBJEXT=.gmo
 11125                DATADIRNAME=share
 11126 else
 11127   CATOBJEXT=.mo
 11128                DATADIRNAME=lib
 11129 fi
 11131 	    ;;
 11132 	    *)
 11133 	    CATOBJEXT=.mo
 11134             DATADIRNAME=lib
 11135 	    ;;
 11136 	    esac
 11137 fi
 11139 rm -rf conftest.dSYM
 11140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11141       conftest$ac_exeext conftest.$ac_ext
 11142           LIBS="$glib_save_LIBS"
 11143 	  INSTOBJEXT=.mo
 11144 	else
 11145 	  gt_cv_have_gettext=no
 11146 	fi
 11147       fi
 11149 fi
 11153     if test "$gt_cv_have_gettext" = "yes" ; then
 11155 cat >>confdefs.h <<\_ACEOF
 11156 #define ENABLE_NLS 1
 11157 _ACEOF
 11159     fi
 11161         if test "$XGETTEXT" != ":"; then
 11162                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 11163         : ;
 11164       else
 11165         { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 11166 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
 11167         XGETTEXT=":"
 11168       fi
 11169     fi
 11171     # We need to process the po/ directory.
 11172     POSUB=po
 11174     ac_config_commands="$ac_config_commands default-1"
 11177                 for lang in $ALL_LINGUAS; do
 11178       GMOFILES="$GMOFILES $lang.gmo"
 11179       POFILES="$POFILES $lang.po"
 11180     done
 11194    if test "$gt_cv_have_gettext" = "yes"; then
 11195      if test "x$ALL_LINGUAS" = "x"; then
 11196        LINGUAS=
 11197      else
 11198        { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 11199 $as_echo_n "checking for catalogs to be installed... " >&6; }
 11200        NEW_LINGUAS=
 11201        for presentlang in $ALL_LINGUAS; do
 11202          useit=no
 11203          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 11204            desiredlanguages="$LINGUAS"
 11205          else
 11206            desiredlanguages="$ALL_LINGUAS"
 11207          fi
 11208          for desiredlang in $desiredlanguages; do
 11209  	   # Use the presentlang catalog if desiredlang is
 11210            #   a. equal to presentlang, or
 11211            #   b. a variant of presentlang (because in this case,
 11212            #      presentlang can be used as a fallback for messages
 11213            #      which are not translated in the desiredlang catalog).
 11214            case "$desiredlang" in
 11215              "$presentlang"*) useit=yes;;
 11216            esac
 11217          done
 11218          if test $useit = yes; then
 11219            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 11220          fi
 11221        done
 11222        LINGUAS=$NEW_LINGUAS
 11223        { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
 11224 $as_echo "$LINGUAS" >&6; }
 11225      fi
 11227           if test -n "$LINGUAS"; then
 11228        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 11229      fi
 11230    fi
 11232             MKINSTALLDIRS=
 11233    if test -n "$ac_aux_dir"; then
 11234      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 11235    fi
 11236    if test -z "$MKINSTALLDIRS"; then
 11237      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 11238    fi
 11241          test -d po || mkdir po
 11242    if test "x$srcdir" != "x."; then
 11243      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 11244        posrcprefix="$srcdir/"
 11245      else
 11246        posrcprefix="../$srcdir/"
 11247      fi
 11248    else
 11249      posrcprefix="../"
 11250    fi
 11251    rm -f po/POTFILES
 11252    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 11253 	< $srcdir/po/POTFILES.in > po/POTFILES
 11256 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
 11258 cat >confcache <<\_ACEOF
 11259 # This file is a shell script that caches the results of configure
 11260 # tests run on this system so they can be shared between configure
 11261 # scripts and configure runs, see configure's option --config-cache.
 11262 # It is not useful on other systems.  If it contains results you don't
 11263 # want to keep, you may remove or edit it.
 11265 # config.status only pays attention to the cache file if you give it
 11266 # the --recheck option to rerun configure.
 11268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 11269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 11270 # following values.
 11272 _ACEOF
 11274 # The following way of writing the cache mishandles newlines in values,
 11275 # but we know of no workaround that is simple, portable, and efficient.
 11276 # So, we kill variables containing newlines.
 11277 # Ultrix sh set writes to stderr and can't be redirected directly,
 11278 # and sets the high bit in the cache file unless we assign to the vars.
 11280   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 11281     eval ac_val=\$$ac_var
 11282     case $ac_val in #(
 11283     *${as_nl}*)
 11284       case $ac_var in #(
 11285       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 11286 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 11287       esac
 11288       case $ac_var in #(
 11289       _ | IFS | as_nl) ;; #(
 11290       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 11291       *) $as_unset $ac_var ;;
 11292       esac ;;
 11293     esac
 11294   done
 11296   (set) 2>&1 |
 11297     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 11298     *${as_nl}ac_space=\ *)
 11299       # `set' does not quote correctly, so add quotes (double-quote
 11300       # substitution turns \\\\ into \\, and sed turns \\ into \).
 11301       sed -n \
 11302 	"s/'/'\\\\''/g;
 11303 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 11304       ;; #(
 11305     *)
 11306       # `set' quotes correctly as required by POSIX, so do not add quotes.
 11307       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 11308       ;;
 11309     esac |
 11310     sort
 11311 ) |
 11312   sed '
 11313      /^ac_cv_env_/b end
 11314      t clear
 11315      :clear
 11316      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 11317      t end
 11318      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 11319      :end' >>confcache
 11320 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 11321   if test -w "$cache_file"; then
 11322     test "x$cache_file" != "x/dev/null" &&
 11323       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 11324 $as_echo "$as_me: updating cache $cache_file" >&6;}
 11325     cat confcache >$cache_file
 11326   else
 11327     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 11328 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 11329   fi
 11330 fi
 11331 rm -f confcache
 11333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 11334 # Let make expand exec_prefix.
 11335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 11337 DEFS=-DHAVE_CONFIG_H
 11339 ac_libobjs=
 11340 ac_ltlibobjs=
 11341 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 11342   # 1. Remove the extension, and $U if already installed.
 11343   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 11344   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 11345   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 11346   #    will be set to the directory where LIBOBJS objects are built.
 11347   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 11348   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 11349 done
 11350 LIBOBJS=$ac_libobjs
 11352 LTLIBOBJS=$ac_ltlibobjs
 11355 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 11356   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 11357 Usually this means the macro was only invoked conditionally." >&5
 11358 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 11359 Usually this means the macro was only invoked conditionally." >&2;}
 11360    { (exit 1); exit 1; }; }
 11361 fi
 11362 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 11363   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 11364 Usually this means the macro was only invoked conditionally." >&5
 11365 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 11366 Usually this means the macro was only invoked conditionally." >&2;}
 11367    { (exit 1); exit 1; }; }
 11368 fi
 11369 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 11370   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 11371 Usually this means the macro was only invoked conditionally." >&5
 11372 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 11373 Usually this means the macro was only invoked conditionally." >&2;}
 11374    { (exit 1); exit 1; }; }
 11375 fi
 11376 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 11377   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 11378 Usually this means the macro was only invoked conditionally." >&5
 11379 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 11380 Usually this means the macro was only invoked conditionally." >&2;}
 11381    { (exit 1); exit 1; }; }
 11382 fi
 11383 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 11384   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 11385 Usually this means the macro was only invoked conditionally." >&5
 11386 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 11387 Usually this means the macro was only invoked conditionally." >&2;}
 11388    { (exit 1); exit 1; }; }
 11389 fi
 11390 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 11391   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 11392 Usually this means the macro was only invoked conditionally." >&5
 11393 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 11394 Usually this means the macro was only invoked conditionally." >&2;}
 11395    { (exit 1); exit 1; }; }
 11396 fi
 11397 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 11398   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 11399 Usually this means the macro was only invoked conditionally." >&5
 11400 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 11401 Usually this means the macro was only invoked conditionally." >&2;}
 11402    { (exit 1); exit 1; }; }
 11403 fi
 11404 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 11405   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 11406 Usually this means the macro was only invoked conditionally." >&5
 11407 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 11408 Usually this means the macro was only invoked conditionally." >&2;}
 11409    { (exit 1); exit 1; }; }
 11410 fi
 11411 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 11412   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 11413 Usually this means the macro was only invoked conditionally." >&5
 11414 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 11415 Usually this means the macro was only invoked conditionally." >&2;}
 11416    { (exit 1); exit 1; }; }
 11417 fi
 11418 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 11419   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 11420 Usually this means the macro was only invoked conditionally." >&5
 11421 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 11422 Usually this means the macro was only invoked conditionally." >&2;}
 11423    { (exit 1); exit 1; }; }
 11424 fi
 11425 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 11426   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 11427 Usually this means the macro was only invoked conditionally." >&5
 11428 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 11429 Usually this means the macro was only invoked conditionally." >&2;}
 11430    { (exit 1); exit 1; }; }
 11431 fi
 11432 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
 11433   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
 11434 Usually this means the macro was only invoked conditionally." >&5
 11435 $as_echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
 11436 Usually this means the macro was only invoked conditionally." >&2;}
 11437    { (exit 1); exit 1; }; }
 11438 fi
 11439 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 11440   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 11441 Usually this means the macro was only invoked conditionally." >&5
 11442 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
 11443 Usually this means the macro was only invoked conditionally." >&2;}
 11444    { (exit 1); exit 1; }; }
 11445 fi
 11446 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 11447   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 11448 Usually this means the macro was only invoked conditionally." >&5
 11449 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 11450 Usually this means the macro was only invoked conditionally." >&2;}
 11451    { (exit 1); exit 1; }; }
 11452 fi
 11453 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 11454   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 11455 Usually this means the macro was only invoked conditionally." >&5
 11456 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 11457 Usually this means the macro was only invoked conditionally." >&2;}
 11458    { (exit 1); exit 1; }; }
 11459 fi
 11460 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 11461   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 11462 Usually this means the macro was only invoked conditionally." >&5
 11463 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 11464 Usually this means the macro was only invoked conditionally." >&2;}
 11465    { (exit 1); exit 1; }; }
 11466 fi
 11467 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 11468   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 11469 Usually this means the macro was only invoked conditionally." >&5
 11470 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 11471 Usually this means the macro was only invoked conditionally." >&2;}
 11472    { (exit 1); exit 1; }; }
 11473 fi
 11474 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
 11475   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
 11476 Usually this means the macro was only invoked conditionally." >&5
 11477 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
 11478 Usually this means the macro was only invoked conditionally." >&2;}
 11479    { (exit 1); exit 1; }; }
 11480 fi
 11481 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
 11482   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
 11483 Usually this means the macro was only invoked conditionally." >&5
 11484 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
 11485 Usually this means the macro was only invoked conditionally." >&2;}
 11486    { (exit 1); exit 1; }; }
 11487 fi
 11488 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 11489   { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 11490 Usually this means the macro was only invoked conditionally." >&5
 11491 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 11492 Usually this means the macro was only invoked conditionally." >&2;}
 11493    { (exit 1); exit 1; }; }
 11494 fi
 11495 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 11496   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 11497 Usually this means the macro was only invoked conditionally." >&5
 11498 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 11499 Usually this means the macro was only invoked conditionally." >&2;}
 11500    { (exit 1); exit 1; }; }
 11501 fi
 11502 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 11503   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 11504 Usually this means the macro was only invoked conditionally." >&5
 11505 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 11506 Usually this means the macro was only invoked conditionally." >&2;}
 11507    { (exit 1); exit 1; }; }
 11508 fi
 11510 : ${CONFIG_STATUS=./config.status}
 11511 ac_write_fail=0
 11512 ac_clean_files_save=$ac_clean_files
 11513 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 11514 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 11515 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 11516 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11517 #! $SHELL
 11518 # Generated by $as_me.
 11519 # Run this file to recreate the current configuration.
 11520 # Compiler output produced by configure, useful for debugging
 11521 # configure, is in config.log if it exists.
 11523 debug=false
 11524 ac_cs_recheck=false
 11525 ac_cs_silent=false
 11526 SHELL=\${CONFIG_SHELL-$SHELL}
 11527 _ACEOF
 11529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11530 ## --------------------- ##
 11531 ## M4sh Initialization.  ##
 11532 ## --------------------- ##
 11534 # Be more Bourne compatible
 11535 DUALCASE=1; export DUALCASE # for MKS sh
 11536 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 11537   emulate sh
 11538   NULLCMD=:
 11539   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 11540   # is contrary to our usage.  Disable this feature.
 11541   alias -g '${1+"$@"}'='"$@"'
 11542   setopt NO_GLOB_SUBST
 11543 else
 11544   case `(set -o) 2>/dev/null` in
 11545   *posix*) set -o posix ;;
 11546 esac
 11548 fi
 11553 # PATH needs CR
 11554 # Avoid depending upon Character Ranges.
 11555 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 11556 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 11557 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 11558 as_cr_digits='0123456789'
 11559 as_cr_alnum=$as_cr_Letters$as_cr_digits
 11561 as_nl='
 11563 export as_nl
 11564 # Printing a long string crashes Solaris 7 /usr/bin/printf.
 11565 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 11566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 11567 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 11568 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 11569   as_echo='printf %s\n'
 11570   as_echo_n='printf %s'
 11571 else
 11572   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 11573     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 11574     as_echo_n='/usr/ucb/echo -n'
 11575   else
 11576     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 11577     as_echo_n_body='eval
 11578       arg=$1;
 11579       case $arg in
 11580       *"$as_nl"*)
 11581 	expr "X$arg" : "X\\(.*\\)$as_nl";
 11582 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 11583       esac;
 11584       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 11586     export as_echo_n_body
 11587     as_echo_n='sh -c $as_echo_n_body as_echo'
 11588   fi
 11589   export as_echo_body
 11590   as_echo='sh -c $as_echo_body as_echo'
 11591 fi
 11593 # The user is always right.
 11594 if test "${PATH_SEPARATOR+set}" != set; then
 11595   PATH_SEPARATOR=:
 11596   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 11597     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 11598       PATH_SEPARATOR=';'
 11600 fi
 11602 # Support unset when possible.
 11603 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 11604   as_unset=unset
 11605 else
 11606   as_unset=false
 11607 fi
 11610 # IFS
 11611 # We need space, tab and new line, in precisely that order.  Quoting is
 11612 # there to prevent editors from complaining about space-tab.
 11613 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 11614 # splitting by setting IFS to empty value.)
 11615 IFS=" ""	$as_nl"
 11617 # Find who we are.  Look in the path if we contain no directory separator.
 11618 case $0 in
 11619   *[\\/]* ) as_myself=$0 ;;
 11620   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11621 for as_dir in $PATH
 11622 do
 11623   IFS=$as_save_IFS
 11624   test -z "$as_dir" && as_dir=.
 11625   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 11626 done
 11627 IFS=$as_save_IFS
 11629      ;;
 11630 esac
 11631 # We did not find ourselves, most probably we were run as `sh COMMAND'
 11632 # in which case we are not to be found in the path.
 11633 if test "x$as_myself" = x; then
 11634   as_myself=$0
 11635 fi
 11636 if test ! -f "$as_myself"; then
 11637   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 11638   { (exit 1); exit 1; }
 11639 fi
 11641 # Work around bugs in pre-3.0 UWIN ksh.
 11642 for as_var in ENV MAIL MAILPATH
 11643 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 11644 done
 11645 PS1='$ '
 11646 PS2='> '
 11647 PS4='+ '
 11649 # NLS nuisances.
 11650 LC_ALL=C
 11651 export LC_ALL
 11652 LANGUAGE=C
 11653 export LANGUAGE
 11655 # Required to use basename.
 11656 if expr a : '\(a\)' >/dev/null 2>&1 &&
 11657    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 11658   as_expr=expr
 11659 else
 11660   as_expr=false
 11661 fi
 11663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 11664   as_basename=basename
 11665 else
 11666   as_basename=false
 11667 fi
 11670 # Name of the executable.
 11671 as_me=`$as_basename -- "$0" ||
 11672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 11673 	 X"$0" : 'X\(//\)$' \| \
 11674 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 11675 $as_echo X/"$0" |
 11676     sed '/^.*\/\([^/][^/]*\)\/*$/{
 11677 	    s//\1/
 11680 	  /^X\/\(\/\/\)$/{
 11681 	    s//\1/
 11684 	  /^X\/\(\/\).*/{
 11685 	    s//\1/
 11688 	  s/.*/./; q'`
 11690 # CDPATH.
 11691 $as_unset CDPATH
 11695   as_lineno_1=$LINENO
 11696   as_lineno_2=$LINENO
 11697   test "x$as_lineno_1" != "x$as_lineno_2" &&
 11698   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 11700   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 11701   # uniformly replaced by the line number.  The first 'sed' inserts a
 11702   # line-number line after each line using $LINENO; the second 'sed'
 11703   # does the real work.  The second script uses 'N' to pair each
 11704   # line-number line with the line containing $LINENO, and appends
 11705   # trailing '-' during substitution so that $LINENO is not a special
 11706   # case at line end.
 11707   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 11708   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 11709   # E. McMahon (1931-1989) for sed's syntax.  :-)
 11710   sed -n '
 11712     /[$]LINENO/=
 11713   ' <$as_myself |
 11714     sed '
 11715       s/[$]LINENO.*/&-/
 11716       t lineno
 11718       :lineno
 11720       :loop
 11721       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 11722       t loop
 11723       s/-\n.*//
 11724     ' >$as_me.lineno &&
 11725   chmod +x "$as_me.lineno" ||
 11726     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 11727    { (exit 1); exit 1; }; }
 11729   # Don't try to exec as it changes $[0], causing all sort of problems
 11730   # (the dirname of $[0] is not the place where we might find the
 11731   # original and so on.  Autoconf is especially sensitive to this).
 11732   . "./$as_me.lineno"
 11733   # Exit status is that of the last command.
 11734   exit
 11738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 11739   as_dirname=dirname
 11740 else
 11741   as_dirname=false
 11742 fi
 11744 ECHO_C= ECHO_N= ECHO_T=
 11745 case `echo -n x` in
 11746 -n*)
 11747   case `echo 'x\c'` in
 11748   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 11749   *)   ECHO_C='\c';;
 11750   esac;;
 11751 *)
 11752   ECHO_N='-n';;
 11753 esac
 11754 if expr a : '\(a\)' >/dev/null 2>&1 &&
 11755    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 11756   as_expr=expr
 11757 else
 11758   as_expr=false
 11759 fi
 11761 rm -f conf$$ conf$$.exe conf$$.file
 11762 if test -d conf$$.dir; then
 11763   rm -f conf$$.dir/conf$$.file
 11764 else
 11765   rm -f conf$$.dir
 11766   mkdir conf$$.dir 2>/dev/null
 11767 fi
 11768 if (echo >conf$$.file) 2>/dev/null; then
 11769   if ln -s conf$$.file conf$$ 2>/dev/null; then
 11770     as_ln_s='ln -s'
 11771     # ... but there are two gotchas:
 11772     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 11773     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 11774     # In both cases, we have to default to `cp -p'.
 11775     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 11776       as_ln_s='cp -p'
 11777   elif ln conf$$.file conf$$ 2>/dev/null; then
 11778     as_ln_s=ln
 11779   else
 11780     as_ln_s='cp -p'
 11781   fi
 11782 else
 11783   as_ln_s='cp -p'
 11784 fi
 11785 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 11786 rmdir conf$$.dir 2>/dev/null
 11788 if mkdir -p . 2>/dev/null; then
 11789   as_mkdir_p=:
 11790 else
 11791   test -d ./-p && rmdir ./-p
 11792   as_mkdir_p=false
 11793 fi
 11795 if test -x / >/dev/null 2>&1; then
 11796   as_test_x='test -x'
 11797 else
 11798   if ls -dL / >/dev/null 2>&1; then
 11799     as_ls_L_option=L
 11800   else
 11801     as_ls_L_option=
 11802   fi
 11803   as_test_x='
 11804     eval sh -c '\''
 11805       if test -d "$1"; then
 11806 	test -d "$1/.";
 11807       else
 11808 	case $1 in
 11809 	-*)set "./$1";;
 11810 	esac;
 11811 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 11812 	???[sx]*):;;*)false;;esac;fi
 11813     '\'' sh
 11815 fi
 11816 as_executable_p=$as_test_x
 11818 # Sed expression to map a string onto a valid CPP name.
 11819 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 11821 # Sed expression to map a string onto a valid variable name.
 11822 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 11825 exec 6>&1
 11827 # Save the log message, to keep $[0] and so on meaningful, and to
 11828 # report actual input values of CONFIG_FILES etc. instead of their
 11829 # values after options handling.
 11830 ac_log="
 11831 This file was extended by $as_me, which was
 11832 generated by GNU Autoconf 2.62.  Invocation command line was
 11834   CONFIG_FILES    = $CONFIG_FILES
 11835   CONFIG_HEADERS  = $CONFIG_HEADERS
 11836   CONFIG_LINKS    = $CONFIG_LINKS
 11837   CONFIG_COMMANDS = $CONFIG_COMMANDS
 11838   $ $0 $@
 11840 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 11843 _ACEOF
 11845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11846 # Files that config.status was made for.
 11847 config_files="$ac_config_files"
 11848 config_headers="$ac_config_headers"
 11849 config_commands="$ac_config_commands"
 11851 _ACEOF
 11853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11854 ac_cs_usage="\
 11855 \`$as_me' instantiates files from templates according to the
 11856 current configuration.
 11858 Usage: $0 [OPTIONS] [FILE]...
 11860   -h, --help       print this help, then exit
 11861   -V, --version    print version number and configuration settings, then exit
 11862   -q, --quiet      do not print progress messages
 11863   -d, --debug      don't remove temporary files
 11864       --recheck    update $as_me by reconfiguring in the same conditions
 11865   --file=FILE[:TEMPLATE]
 11866                    instantiate the configuration file FILE
 11867   --header=FILE[:TEMPLATE]
 11868                    instantiate the configuration header FILE
 11870 Configuration files:
 11871 $config_files
 11873 Configuration headers:
 11874 $config_headers
 11876 Configuration commands:
 11877 $config_commands
 11879 Report bugs to <bug-autoconf@gnu.org>."
 11881 _ACEOF
 11882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11883 ac_cs_version="\\
 11884 config.status
 11885 configured by $0, generated by GNU Autoconf 2.62,
 11886   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 11888 Copyright (C) 2008 Free Software Foundation, Inc.
 11889 This config.status script is free software; the Free Software Foundation
 11890 gives unlimited permission to copy, distribute and modify it."
 11892 ac_pwd='$ac_pwd'
 11893 srcdir='$srcdir'
 11894 INSTALL='$INSTALL'
 11895 AWK='$AWK'
 11896 test -n "\$AWK" || AWK=awk
 11897 _ACEOF
 11899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11900 # The default lists apply if the user does not specify any file.
 11901 ac_need_defaults=:
 11902 while test $# != 0
 11903 do
 11904   case $1 in
 11905   --*=*)
 11906     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 11907     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 11908     ac_shift=:
 11909     ;;
 11910   *)
 11911     ac_option=$1
 11912     ac_optarg=$2
 11913     ac_shift=shift
 11914     ;;
 11915   esac
 11917   case $ac_option in
 11918   # Handling of the options.
 11919   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 11920     ac_cs_recheck=: ;;
 11921   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 11922     $as_echo "$ac_cs_version"; exit ;;
 11923   --debug | --debu | --deb | --de | --d | -d )
 11924     debug=: ;;
 11925   --file | --fil | --fi | --f )
 11926     $ac_shift
 11927     case $ac_optarg in
 11928     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 11929     esac
 11930     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 11931     ac_need_defaults=false;;
 11932   --header | --heade | --head | --hea )
 11933     $ac_shift
 11934     case $ac_optarg in
 11935     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 11936     esac
 11937     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 11938     ac_need_defaults=false;;
 11939   --he | --h)
 11940     # Conflict between --help and --header
 11941     { $as_echo "$as_me: error: ambiguous option: $1
 11942 Try \`$0 --help' for more information." >&2
 11943    { (exit 1); exit 1; }; };;
 11944   --help | --hel | -h )
 11945     $as_echo "$ac_cs_usage"; exit ;;
 11946   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 11947   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 11948     ac_cs_silent=: ;;
 11950   # This is an error.
 11951   -*) { $as_echo "$as_me: error: unrecognized option: $1
 11952 Try \`$0 --help' for more information." >&2
 11953    { (exit 1); exit 1; }; } ;;
 11955   *) ac_config_targets="$ac_config_targets $1"
 11956      ac_need_defaults=false ;;
 11958   esac
 11959   shift
 11960 done
 11962 ac_configure_extra_args=
 11964 if $ac_cs_silent; then
 11965   exec 6>/dev/null
 11966   ac_configure_extra_args="$ac_configure_extra_args --silent"
 11967 fi
 11969 _ACEOF
 11970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11971 if \$ac_cs_recheck; then
 11972   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 11973   shift
 11974   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 11975   CONFIG_SHELL='$SHELL'
 11976   export CONFIG_SHELL
 11977   exec "\$@"
 11978 fi
 11980 _ACEOF
 11981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11982 exec 5>>config.log
 11984   echo
 11985   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 11986 ## Running $as_me. ##
 11987 _ASBOX
 11988   $as_echo "$ac_log"
 11989 } >&5
 11991 _ACEOF
 11992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11994 # INIT-COMMANDS
 11996 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 11999 _ACEOF
 12001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12003 # Handling of arguments.
 12004 for ac_config_target in $ac_config_targets
 12005 do
 12006   case $ac_config_target in
 12007     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 12008     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 12009     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 12010     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 12011     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 12012     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 12013     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 12015   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 12016 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 12017    { (exit 1); exit 1; }; };;
 12018   esac
 12019 done
 12022 # If the user did not use the arguments to specify the items to instantiate,
 12023 # then the envvar interface is used.  Set only those that are not.
 12024 # We use the long form for the default assignment because of an extremely
 12025 # bizarre bug on SunOS 4.1.3.
 12026 if $ac_need_defaults; then
 12027   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 12028   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 12029   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 12030 fi
 12032 # Have a temporary directory for convenience.  Make it in the build tree
 12033 # simply because there is no reason against having it here, and in addition,
 12034 # creating and moving files from /tmp can sometimes cause problems.
 12035 # Hook for its removal unless debugging.
 12036 # Note that there is a small window in which the directory will not be cleaned:
 12037 # after its creation but before its name has been assigned to `$tmp'.
 12038 $debug ||
 12040   tmp=
 12041   trap 'exit_status=$?
 12042   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 12043 ' 0
 12044   trap '{ (exit 1); exit 1; }' 1 2 13 15
 12046 # Create a (secure) tmp directory for tmp files.
 12049   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 12050   test -n "$tmp" && test -d "$tmp"
 12051 }  ||
 12053   tmp=./conf$$-$RANDOM
 12054   (umask 077 && mkdir "$tmp")
 12055 } ||
 12057    $as_echo "$as_me: cannot create a temporary directory in ." >&2
 12058    { (exit 1); exit 1; }
 12061 # Set up the scripts for CONFIG_FILES section.
 12062 # No need to generate them if there are no CONFIG_FILES.
 12063 # This happens for instance with `./config.status config.h'.
 12064 if test -n "$CONFIG_FILES"; then
 12067 ac_cr='
 12069 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 12070 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 12071   ac_cs_awk_cr='\\r'
 12072 else
 12073   ac_cs_awk_cr=$ac_cr
 12074 fi
 12076 echo 'BEGIN {' >"$tmp/subs1.awk" &&
 12077 _ACEOF
 12081   echo "cat >conf$$subs.awk <<_ACEOF" &&
 12082   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 12083   echo "_ACEOF"
 12084 } >conf$$subs.sh ||
 12085   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 12086 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 12087    { (exit 1); exit 1; }; }
 12088 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 12089 ac_delim='%!_!# '
 12090 for ac_last_try in false false false false false :; do
 12091   . ./conf$$subs.sh ||
 12092     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 12093 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 12094    { (exit 1); exit 1; }; }
 12096   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
 12097     break
 12098   elif $ac_last_try; then
 12099     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 12100 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 12101    { (exit 1); exit 1; }; }
 12102   else
 12103     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 12104   fi
 12105 done
 12106 rm -f conf$$subs.sh
 12108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12109 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 12110 _ACEOF
 12111 sed -n '
 12113 s/^/S["/; s/!.*/"]=/
 12116 s/^[^!]*!//
 12117 :repl
 12118 t repl
 12119 s/'"$ac_delim"'$//
 12120 t delim
 12121 :nl
 12123 s/\(.\{148\}\).*/\1/
 12124 t more1
 12125 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 12128 b repl
 12129 :more1
 12130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 12133 s/.\{148\}//
 12134 t nl
 12135 :delim
 12137 s/\(.\{148\}\).*/\1/
 12138 t more2
 12139 s/["\\]/\\&/g; s/^/"/; s/$/"/
 12142 :more2
 12143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 12146 s/.\{148\}//
 12147 t delim
 12148 ' <conf$$subs.awk | sed '
 12149 /^[^""]/{
 12151   s/\n//
 12153 ' >>$CONFIG_STATUS || ac_write_fail=1
 12154 rm -f conf$$subs.awk
 12155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12156 _ACAWK
 12157 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 12158   for (key in S) S_is_set[key] = 1
 12159   FS = ""
 12163   line = $ 0
 12164   nfields = split(line, field, "@")
 12165   substed = 0
 12166   len = length(field[1])
 12167   for (i = 2; i < nfields; i++) {
 12168     key = field[i]
 12169     keylen = length(key)
 12170     if (S_is_set[key]) {
 12171       value = S[key]
 12172       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 12173       len += length(value) + length(field[++i])
 12174       substed = 1
 12175     } else
 12176       len += 1 + keylen
 12179   print line
 12182 _ACAWK
 12183 _ACEOF
 12184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12185 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 12186   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 12187 else
 12188   cat
 12189 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 12190   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 12191 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
 12192    { (exit 1); exit 1; }; }
 12193 _ACEOF
 12195 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 12196 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 12197 # trailing colons and then remove the whole line if VPATH becomes empty
 12198 # (actually we leave an empty line to preserve line numbers).
 12199 if test "x$srcdir" = x.; then
 12200   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 12201 s/:*\$(srcdir):*/:/
 12202 s/:*\${srcdir}:*/:/
 12203 s/:*@srcdir@:*/:/
 12204 s/^\([^=]*=[	 ]*\):*/\1/
 12205 s/:*$//
 12206 s/^[^=]*=[	 ]*$//
 12207 }'
 12208 fi
 12210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12211 fi # test -n "$CONFIG_FILES"
 12213 # Set up the scripts for CONFIG_HEADERS section.
 12214 # No need to generate them if there are no CONFIG_HEADERS.
 12215 # This happens for instance with `./config.status Makefile'.
 12216 if test -n "$CONFIG_HEADERS"; then
 12217 cat >"$tmp/defines.awk" <<\_ACAWK ||
 12218 BEGIN {
 12219 _ACEOF
 12221 # Transform confdefs.h into an awk script `defines.awk', embedded as
 12222 # here-document in config.status, that substitutes the proper values into
 12223 # config.h.in to produce config.h.
 12225 # Create a delimiter string that does not exist in confdefs.h, to ease
 12226 # handling of long lines.
 12227 ac_delim='%!_!# '
 12228 for ac_last_try in false false :; do
 12229   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 12230   if test -z "$ac_t"; then
 12231     break
 12232   elif $ac_last_try; then
 12233     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 12234 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 12235    { (exit 1); exit 1; }; }
 12236   else
 12237     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 12238   fi
 12239 done
 12241 # For the awk script, D is an array of macro values keyed by name,
 12242 # likewise P contains macro parameters if any.  Preserve backslash
 12243 # newline sequences.
 12245 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 12246 sed -n '
 12247 s/.\{148\}/&'"$ac_delim"'/g
 12248 t rset
 12249 :rset
 12250 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 12251 t def
 12253 :def
 12254 s/\\$//
 12255 t bsnl
 12256 s/["\\]/\\&/g
 12257 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 12258 D["\1"]=" \3"/p
 12259 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 12261 :bsnl
 12262 s/["\\]/\\&/g
 12263 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 12264 D["\1"]=" \3\\\\\\n"\\/p
 12265 t cont
 12266 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 12267 t cont
 12269 :cont
 12271 s/.\{148\}/&'"$ac_delim"'/g
 12272 t clear
 12273 :clear
 12274 s/\\$//
 12275 t bsnlc
 12276 s/["\\]/\\&/g; s/^/"/; s/$/"/p
 12278 :bsnlc
 12279 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 12280 b cont
 12281 ' <confdefs.h | sed '
 12282 s/'"$ac_delim"'/"\\\
 12283 "/g' >>$CONFIG_STATUS || ac_write_fail=1
 12285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12286   for (key in D) D_is_set[key] = 1
 12287   FS = ""
 12289 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 12290   line = \$ 0
 12291   split(line, arg, " ")
 12292   if (arg[1] == "#") {
 12293     defundef = arg[2]
 12294     mac1 = arg[3]
 12295   } else {
 12296     defundef = substr(arg[1], 2)
 12297     mac1 = arg[2]
 12299   split(mac1, mac2, "(") #)
 12300   macro = mac2[1]
 12301   if (D_is_set[macro]) {
 12302     # Preserve the white space surrounding the "#".
 12303     prefix = substr(line, 1, index(line, defundef) - 1)
 12304     print prefix "define", macro P[macro] D[macro]
 12305     next
 12306   } else {
 12307     # Replace #undef with comments.  This is necessary, for example,
 12308     # in the case of _POSIX_SOURCE, which is predefined and required
 12309     # on some systems where configure will not decide to define it.
 12310     if (defundef == "undef") {
 12311       print "/*", line, "*/"
 12312       next
 12316 { print }
 12317 _ACAWK
 12318 _ACEOF
 12319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12320   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 12321 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 12322    { (exit 1); exit 1; }; }
 12323 fi # test -n "$CONFIG_HEADERS"
 12326 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 12327 shift
 12328 for ac_tag
 12329 do
 12330   case $ac_tag in
 12331   :[FHLC]) ac_mode=$ac_tag; continue;;
 12332   esac
 12333   case $ac_mode$ac_tag in
 12334   :[FHL]*:*);;
 12335   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 12336 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 12337    { (exit 1); exit 1; }; };;
 12338   :[FH]-) ac_tag=-:-;;
 12339   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 12340   esac
 12341   ac_save_IFS=$IFS
 12342   IFS=:
 12343   set x $ac_tag
 12344   IFS=$ac_save_IFS
 12345   shift
 12346   ac_file=$1
 12347   shift
 12349   case $ac_mode in
 12350   :L) ac_source=$1;;
 12351   :[FH])
 12352     ac_file_inputs=
 12353     for ac_f
 12354     do
 12355       case $ac_f in
 12356       -) ac_f="$tmp/stdin";;
 12357       *) # Look for the file first in the build tree, then in the source tree
 12358 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 12359 	 # because $ac_f cannot contain `:'.
 12360 	 test -f "$ac_f" ||
 12361 	   case $ac_f in
 12362 	   [\\/$]*) false;;
 12363 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 12364 	   esac ||
 12365 	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 12366 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 12367    { (exit 1); exit 1; }; };;
 12368       esac
 12369       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 12370       ac_file_inputs="$ac_file_inputs '$ac_f'"
 12371     done
 12373     # Let's still pretend it is `configure' which instantiates (i.e., don't
 12374     # use $as_me), people would be surprised to read:
 12375     #    /* config.h.  Generated by config.status.  */
 12376     configure_input='Generated from '`
 12377 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 12378 	`' by configure.'
 12379     if test x"$ac_file" != x-; then
 12380       configure_input="$ac_file.  $configure_input"
 12381       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 12382 $as_echo "$as_me: creating $ac_file" >&6;}
 12383     fi
 12384     # Neutralize special characters interpreted by sed in replacement strings.
 12385     case $configure_input in #(
 12386     *\&* | *\|* | *\\* )
 12387        ac_sed_conf_input=`$as_echo "$configure_input" |
 12388        sed 's/[\\\\&|]/\\\\&/g'`;; #(
 12389     *) ac_sed_conf_input=$configure_input;;
 12390     esac
 12392     case $ac_tag in
 12393     *:-:* | *:-) cat >"$tmp/stdin" \
 12394       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12395 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12396    { (exit 1); exit 1; }; } ;;
 12397     esac
 12398     ;;
 12399   esac
 12401   ac_dir=`$as_dirname -- "$ac_file" ||
 12402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12403 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 12404 	 X"$ac_file" : 'X\(//\)$' \| \
 12405 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 12406 $as_echo X"$ac_file" |
 12407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12408 	    s//\1/
 12411 	  /^X\(\/\/\)[^/].*/{
 12412 	    s//\1/
 12415 	  /^X\(\/\/\)$/{
 12416 	    s//\1/
 12419 	  /^X\(\/\).*/{
 12420 	    s//\1/
 12423 	  s/.*/./; q'`
 12424   { as_dir="$ac_dir"
 12425   case $as_dir in #(
 12426   -*) as_dir=./$as_dir;;
 12427   esac
 12428   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 12429     as_dirs=
 12430     while :; do
 12431       case $as_dir in #(
 12432       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 12433       *) as_qdir=$as_dir;;
 12434       esac
 12435       as_dirs="'$as_qdir' $as_dirs"
 12436       as_dir=`$as_dirname -- "$as_dir" ||
 12437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12438 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 12439 	 X"$as_dir" : 'X\(//\)$' \| \
 12440 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 12441 $as_echo X"$as_dir" |
 12442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12443 	    s//\1/
 12446 	  /^X\(\/\/\)[^/].*/{
 12447 	    s//\1/
 12450 	  /^X\(\/\/\)$/{
 12451 	    s//\1/
 12454 	  /^X\(\/\).*/{
 12455 	    s//\1/
 12458 	  s/.*/./; q'`
 12459       test -d "$as_dir" && break
 12460     done
 12461     test -z "$as_dirs" || eval "mkdir $as_dirs"
 12462   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 12463 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 12464    { (exit 1); exit 1; }; }; }
 12465   ac_builddir=.
 12467 case "$ac_dir" in
 12468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 12469 *)
 12470   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 12471   # A ".." for each directory in $ac_dir_suffix.
 12472   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 12473   case $ac_top_builddir_sub in
 12474   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 12475   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 12476   esac ;;
 12477 esac
 12478 ac_abs_top_builddir=$ac_pwd
 12479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 12480 # for backward compatibility:
 12481 ac_top_builddir=$ac_top_build_prefix
 12483 case $srcdir in
 12484   .)  # We are building in place.
 12485     ac_srcdir=.
 12486     ac_top_srcdir=$ac_top_builddir_sub
 12487     ac_abs_top_srcdir=$ac_pwd ;;
 12488   [\\/]* | ?:[\\/]* )  # Absolute name.
 12489     ac_srcdir=$srcdir$ac_dir_suffix;
 12490     ac_top_srcdir=$srcdir
 12491     ac_abs_top_srcdir=$srcdir ;;
 12492   *) # Relative name.
 12493     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 12494     ac_top_srcdir=$ac_top_build_prefix$srcdir
 12495     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 12496 esac
 12497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 12500   case $ac_mode in
 12501   :F)
 12503   # CONFIG_FILE
 12506   case $INSTALL in
 12507   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 12508   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 12509   esac
 12510 _ACEOF
 12512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12513 # If the template does not know about datarootdir, expand it.
 12514 # FIXME: This hack should be removed a few years after 2.60.
 12515 ac_datarootdir_hack=; ac_datarootdir_seen=
 12517 ac_sed_dataroot='
 12518 /datarootdir/ {
 12522 /@datadir@/p
 12523 /@docdir@/p
 12524 /@infodir@/p
 12525 /@localedir@/p
 12526 /@mandir@/p
 12528 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 12529 *datarootdir*) ac_datarootdir_seen=yes;;
 12530 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 12531   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 12532 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 12533 _ACEOF
 12534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12535   ac_datarootdir_hack='
 12536   s&@datadir@&$datadir&g
 12537   s&@docdir@&$docdir&g
 12538   s&@infodir@&$infodir&g
 12539   s&@localedir@&$localedir&g
 12540   s&@mandir@&$mandir&g
 12541     s&\\\${datarootdir}&$datarootdir&g' ;;
 12542 esac
 12543 _ACEOF
 12545 # Neutralize VPATH when `$srcdir' = `.'.
 12546 # Shell code in configure.ac might set extrasub.
 12547 # FIXME: do we really want to maintain this feature?
 12548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12549 ac_sed_extra="$ac_vpsub
 12550 $extrasub
 12551 _ACEOF
 12552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12553 :t
 12554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 12555 s|@configure_input@|$ac_sed_conf_input|;t t
 12556 s&@top_builddir@&$ac_top_builddir_sub&;t t
 12557 s&@top_build_prefix@&$ac_top_build_prefix&;t t
 12558 s&@srcdir@&$ac_srcdir&;t t
 12559 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 12560 s&@top_srcdir@&$ac_top_srcdir&;t t
 12561 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 12562 s&@builddir@&$ac_builddir&;t t
 12563 s&@abs_builddir@&$ac_abs_builddir&;t t
 12564 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 12565 s&@INSTALL@&$ac_INSTALL&;t t
 12566 $ac_datarootdir_hack
 12568 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 12569   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12570 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12571    { (exit 1); exit 1; }; }
 12573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 12574   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 12575   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 12576   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 12577 which seems to be undefined.  Please make sure it is defined." >&5
 12578 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 12579 which seems to be undefined.  Please make sure it is defined." >&2;}
 12581   rm -f "$tmp/stdin"
 12582   case $ac_file in
 12583   -) cat "$tmp/out" && rm -f "$tmp/out";;
 12584   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 12585   esac \
 12586   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12587 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12588    { (exit 1); exit 1; }; }
 12589  ;;
 12590   :H)
 12592   # CONFIG_HEADER
 12594   if test x"$ac_file" != x-; then
 12596       $as_echo "/* $configure_input  */" \
 12597       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 12598     } >"$tmp/config.h" \
 12599       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12600 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12601    { (exit 1); exit 1; }; }
 12602     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 12603       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 12604 $as_echo "$as_me: $ac_file is unchanged" >&6;}
 12605     else
 12606       rm -f "$ac_file"
 12607       mv "$tmp/config.h" "$ac_file" \
 12608 	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12609 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12610    { (exit 1); exit 1; }; }
 12611     fi
 12612   else
 12613     $as_echo "/* $configure_input  */" \
 12614       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 12615       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 12616 $as_echo "$as_me: error: could not create -" >&2;}
 12617    { (exit 1); exit 1; }; }
 12618   fi
 12619 # Compute "$ac_file"'s index in $config_headers.
 12620 _am_stamp_count=1
 12621 for _am_header in $config_headers :; do
 12622   case $_am_header in
 12623     "$ac_file" | "$ac_file":* )
 12624       break ;;
 12625     * )
 12626       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 12627   esac
 12628 done
 12629 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
 12630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12631 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 12632 	 X"$ac_file" : 'X\(//\)$' \| \
 12633 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 12634 $as_echo X"$ac_file" |
 12635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12636 	    s//\1/
 12639 	  /^X\(\/\/\)[^/].*/{
 12640 	    s//\1/
 12643 	  /^X\(\/\/\)$/{
 12644 	    s//\1/
 12647 	  /^X\(\/\).*/{
 12648 	    s//\1/
 12651 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 12652  ;;
 12654   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 12655 $as_echo "$as_me: executing $ac_file commands" >&6;}
 12656  ;;
 12657   esac
 12660   case $ac_file$ac_mode in
 12661     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 12662   # Strip MF so we end up with the name of the file.
 12663   mf=`echo "$mf" | sed -e 's/:.*$//'`
 12664   # Check whether this is an Automake generated Makefile or not.
 12665   # We used to match only the files named `Makefile.in', but
 12666   # some people rename them; so instead we look at the file content.
 12667   # Grep'ing the first line is not enough: some people post-process
 12668   # each Makefile.in and add a new line on top of each file to say so.
 12669   # So let's grep whole file.
 12670   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 12671     dirpart=`$as_dirname -- "$mf" ||
 12672 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12673 	 X"$mf" : 'X\(//\)[^/]' \| \
 12674 	 X"$mf" : 'X\(//\)$' \| \
 12675 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 12676 $as_echo X"$mf" |
 12677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12678 	    s//\1/
 12681 	  /^X\(\/\/\)[^/].*/{
 12682 	    s//\1/
 12685 	  /^X\(\/\/\)$/{
 12686 	    s//\1/
 12689 	  /^X\(\/\).*/{
 12690 	    s//\1/
 12693 	  s/.*/./; q'`
 12694   else
 12695     continue
 12696   fi
 12697   # Extract the definition of DEPDIR, am__include, and am__quote
 12698   # from the Makefile without running `make'.
 12699   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 12700   test -z "$DEPDIR" && continue
 12701   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 12702   test -z "am__include" && continue
 12703   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 12704   # When using ansi2knr, U may be empty or an underscore; expand it
 12705   U=`sed -n 's/^U = //p' < "$mf"`
 12706   # Find all dependency output files, they are included files with
 12707   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 12708   # simplest approach to changing $(DEPDIR) to its actual value in the
 12709   # expansion.
 12710   for file in `sed -n "
 12711     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 12712        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 12713     # Make sure the directory exists.
 12714     test -f "$dirpart/$file" && continue
 12715     fdir=`$as_dirname -- "$file" ||
 12716 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12717 	 X"$file" : 'X\(//\)[^/]' \| \
 12718 	 X"$file" : 'X\(//\)$' \| \
 12719 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 12720 $as_echo X"$file" |
 12721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12722 	    s//\1/
 12725 	  /^X\(\/\/\)[^/].*/{
 12726 	    s//\1/
 12729 	  /^X\(\/\/\)$/{
 12730 	    s//\1/
 12733 	  /^X\(\/\).*/{
 12734 	    s//\1/
 12737 	  s/.*/./; q'`
 12738     { as_dir=$dirpart/$fdir
 12739   case $as_dir in #(
 12740   -*) as_dir=./$as_dir;;
 12741   esac
 12742   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 12743     as_dirs=
 12744     while :; do
 12745       case $as_dir in #(
 12746       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 12747       *) as_qdir=$as_dir;;
 12748       esac
 12749       as_dirs="'$as_qdir' $as_dirs"
 12750       as_dir=`$as_dirname -- "$as_dir" ||
 12751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12752 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 12753 	 X"$as_dir" : 'X\(//\)$' \| \
 12754 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 12755 $as_echo X"$as_dir" |
 12756     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12757 	    s//\1/
 12760 	  /^X\(\/\/\)[^/].*/{
 12761 	    s//\1/
 12764 	  /^X\(\/\/\)$/{
 12765 	    s//\1/
 12768 	  /^X\(\/\).*/{
 12769 	    s//\1/
 12772 	  s/.*/./; q'`
 12773       test -d "$as_dir" && break
 12774     done
 12775     test -z "$as_dirs" || eval "mkdir $as_dirs"
 12776   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 12777 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 12778    { (exit 1); exit 1; }; }; }
 12779     # echo "creating $dirpart/$file"
 12780     echo '# dummy' > "$dirpart/$file"
 12781   done
 12782 done
 12783  ;;
 12784     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 12785         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 12786       esac ;;
 12788   esac
 12789 done # for ac_tag
 12792 { (exit 0); exit 0; }
 12793 _ACEOF
 12794 chmod +x $CONFIG_STATUS
 12795 ac_clean_files=$ac_clean_files_save
 12797 test $ac_write_fail = 0 ||
 12798   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 12799 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 12800    { (exit 1); exit 1; }; }
 12803 # configure is writing to config.log, and then calls config.status.
 12804 # config.status does its own redirection, appending to config.log.
 12805 # Unfortunately, on DOS this fails, as config.log is still kept open
 12806 # by configure, so config.status won't be able to write to it; its
 12807 # output is simply discarded.  So we exec the FD to /dev/null,
 12808 # effectively closing config.log, so it can be properly (re)opened and
 12809 # appended to by config.status.  When coming back to configure, we
 12810 # need to make the FD available again.
 12811 if test "$no_create" != yes; then
 12812   ac_cs_success=:
 12813   ac_config_status_args=
 12814   test "$silent" = yes &&
 12815     ac_config_status_args="$ac_config_status_args --quiet"
 12816   exec 5>/dev/null
 12817   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 12818   exec 5>>config.log
 12819   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 12820   # would make configure fail if this is the last instruction.
 12821   $ac_cs_success || { (exit 1); exit 1; }
 12822 fi
 12823 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 12824   { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
 12825 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
 12826 fi
 12830 echo
 12831 echo "Configuration complete"
 12832 echo
 12834 if test "x$HAVE_GTK" = x; then
 12835   if test "x$HAVE_COCOA" = x; then
 12836      echo "  User interface: none"
 12837   else
 12838      echo "  User interface: Cocoa"
 12839   fi
 12840 else
 12841   echo "  User interface: GTK"
 12842 fi
 12844 if test "x$SH4_TRANSLATOR" = "x"; then
 12845   echo "  SH4 translator: None (emulation core only)"
 12846 else
 12847   echo "  SH4 translator: $SH4_TRANSLATOR"
 12848 fi
 12850 if test "x$VIDEO_DRIVERS" = "x"; then
 12851    echo "  Video drivers: none (no supported GL found)"
 12852 else
 12853    echo "  Video drivers: $VIDEO_DRIVERS"
 12854 fi
 12856 if test "x$AUDIO_DRIVERS" = "x"; then
 12857    echo "  Audio drivers: none (no supported output devices found)"
 12858 else
 12859    echo "  Audio drivers: $AUDIO_DRIVERS"
 12860 fi
 12862 if test "x$CDROM_DRIVER" = "x"; then
 12863    echo "  CD-ROM driver: none (no supported cd-rom devices found)"
 12864 else
 12865    echo "  CD-ROM driver: $CDROM_DRIVER"
 12866 fi
.