Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 658:f5926310bfbe
prev657:c4143facbfcb
next660:d1b2695347c6
author nkeynes
date Wed Apr 16 12:43:52 2008 +0000 (16 years ago)
permissions -rwxr-xr-x
last change Start removing X11isms from gtkui into drivers
Overhaul the configure rules for figuring out the video driver
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 GUI_CARBON_TRUE
   729 GUI_CARBON_FALSE
   730 PKG_CONFIG
   731 LIBPNG_CFLAGS
   732 LIBPNG_LIBS
   733 GTK_CFLAGS
   734 GTK_LIBS
   735 GUI_GTK_TRUE
   736 GUI_GTK_FALSE
   737 VIDEO_OSMESA_TRUE
   738 VIDEO_OSMESA_FALSE
   739 VIDEO_GLX_TRUE
   740 VIDEO_GLX_FALSE
   741 VIDEO_NSGL_TRUE
   742 VIDEO_NSGL_FALSE
   743 BUILD_SH4X86_TRUE
   744 BUILD_SH4X86_FALSE
   745 BUILD_X86_64_TRUE
   746 BUILD_X86_64_FALSE
   747 PULSE_CFLAGS
   748 PULSE_LIBS
   749 AUDIO_PULSE_TRUE
   750 AUDIO_PULSE_FALSE
   751 ESOUND_CFLAGS
   752 ESOUND_LIBS
   753 AUDIO_ESOUND_TRUE
   754 AUDIO_ESOUND_FALSE
   755 ALSA_CFLAGS
   756 ALSA_LIBS
   757 AUDIO_ALSA_TRUE
   758 AUDIO_ALSA_FALSE
   759 CDROM_LINUX_TRUE
   760 CDROM_LINUX_FALSE
   761 JOY_LINUX_TRUE
   762 JOY_LINUX_FALSE
   763 SHCC
   764 SHLD
   765 SHOBJCOPY
   766 ARMCC
   767 ARMLD
   768 ARMOBJCOPY
   769 BUILD_SYSTEST_TRUE
   770 BUILD_SYSTEST_FALSE
   771 BUILD_ARMTEST_TRUE
   772 BUILD_ARMTEST_FALSE
   773 GETTEXT_PACKAGE
   774 USE_NLS
   775 MSGFMT
   776 MSGFMT_OPTS
   777 GMSGFMT
   778 XGETTEXT
   779 CATALOGS
   780 CATOBJEXT
   781 DATADIRNAME
   782 GMOFILES
   783 INSTOBJEXT
   784 INTLLIBS
   785 PO_IN_DATADIR_TRUE
   786 PO_IN_DATADIR_FALSE
   787 POFILES
   788 POSUB
   789 MKINSTALLDIRS
   790 LIBOBJS
   791 LTLIBOBJS'
   792 ac_subst_files=''
   793 ac_user_opts='
   794 enable_option_checking
   795 enable_maintainer_mode
   796 enable_dependency_tracking
   797 enable_trace
   798 enable_watch
   799 with_osmesa
   800 '
   801       ac_precious_vars='build_alias
   802 host_alias
   803 target_alias
   804 CC
   805 CFLAGS
   806 LDFLAGS
   807 LIBS
   808 CPPFLAGS
   809 CCAS
   810 CCASFLAGS
   811 CPP
   812 PKG_CONFIG
   813 LIBPNG_CFLAGS
   814 LIBPNG_LIBS
   815 GTK_CFLAGS
   816 GTK_LIBS
   817 PULSE_CFLAGS
   818 PULSE_LIBS
   819 ESOUND_CFLAGS
   820 ESOUND_LIBS
   821 ALSA_CFLAGS
   822 ALSA_LIBS'
   825 # Initialize some variables set by options.
   826 ac_init_help=
   827 ac_init_version=false
   828 ac_unrecognized_opts=
   829 ac_unrecognized_sep=
   830 # The variables have the same names as the options, with
   831 # dashes changed to underlines.
   832 cache_file=/dev/null
   833 exec_prefix=NONE
   834 no_create=
   835 no_recursion=
   836 prefix=NONE
   837 program_prefix=NONE
   838 program_suffix=NONE
   839 program_transform_name=s,x,x,
   840 silent=
   841 site=
   842 srcdir=
   843 verbose=
   844 x_includes=NONE
   845 x_libraries=NONE
   847 # Installation directory options.
   848 # These are left unexpanded so users can "make install exec_prefix=/foo"
   849 # and all the variables that are supposed to be based on exec_prefix
   850 # by default will actually change.
   851 # Use braces instead of parens because sh, perl, etc. also accept them.
   852 # (The list follows the same order as the GNU Coding Standards.)
   853 bindir='${exec_prefix}/bin'
   854 sbindir='${exec_prefix}/sbin'
   855 libexecdir='${exec_prefix}/libexec'
   856 datarootdir='${prefix}/share'
   857 datadir='${datarootdir}'
   858 sysconfdir='${prefix}/etc'
   859 sharedstatedir='${prefix}/com'
   860 localstatedir='${prefix}/var'
   861 includedir='${prefix}/include'
   862 oldincludedir='/usr/include'
   863 docdir='${datarootdir}/doc/${PACKAGE}'
   864 infodir='${datarootdir}/info'
   865 htmldir='${docdir}'
   866 dvidir='${docdir}'
   867 pdfdir='${docdir}'
   868 psdir='${docdir}'
   869 libdir='${exec_prefix}/lib'
   870 localedir='${datarootdir}/locale'
   871 mandir='${datarootdir}/man'
   873 ac_prev=
   874 ac_dashdash=
   875 for ac_option
   876 do
   877   # If the previous option needs an argument, assign it.
   878   if test -n "$ac_prev"; then
   879     eval $ac_prev=\$ac_option
   880     ac_prev=
   881     continue
   882   fi
   884   case $ac_option in
   885   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   886   *)	ac_optarg=yes ;;
   887   esac
   889   # Accept the important Cygnus configure options, so we can diagnose typos.
   891   case $ac_dashdash$ac_option in
   892   --)
   893     ac_dashdash=yes ;;
   895   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   896     ac_prev=bindir ;;
   897   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   898     bindir=$ac_optarg ;;
   900   -build | --build | --buil | --bui | --bu)
   901     ac_prev=build_alias ;;
   902   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   903     build_alias=$ac_optarg ;;
   905   -cache-file | --cache-file | --cache-fil | --cache-fi \
   906   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   907     ac_prev=cache_file ;;
   908   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   909   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   910     cache_file=$ac_optarg ;;
   912   --config-cache | -C)
   913     cache_file=config.cache ;;
   915   -datadir | --datadir | --datadi | --datad)
   916     ac_prev=datadir ;;
   917   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   918     datadir=$ac_optarg ;;
   920   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   921   | --dataroo | --dataro | --datar)
   922     ac_prev=datarootdir ;;
   923   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   924   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   925     datarootdir=$ac_optarg ;;
   927   -disable-* | --disable-*)
   928     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   929     # Reject names that are not valid shell variable names.
   930     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   931       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   932    { (exit 1); exit 1; }; }
   933     ac_useropt_orig=$ac_useropt
   934     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   935     case $ac_user_opts in
   936       *"
   937 "enable_$ac_useropt"
   938 "*) ;;
   939       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   940 	 ac_unrecognized_sep=', ';;
   941     esac
   942     eval enable_$ac_useropt=no ;;
   944   -docdir | --docdir | --docdi | --doc | --do)
   945     ac_prev=docdir ;;
   946   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   947     docdir=$ac_optarg ;;
   949   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   950     ac_prev=dvidir ;;
   951   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   952     dvidir=$ac_optarg ;;
   954   -enable-* | --enable-*)
   955     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   956     # Reject names that are not valid shell variable names.
   957     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   958       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   959    { (exit 1); exit 1; }; }
   960     ac_useropt_orig=$ac_useropt
   961     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   962     case $ac_user_opts in
   963       *"
   964 "enable_$ac_useropt"
   965 "*) ;;
   966       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   967 	 ac_unrecognized_sep=', ';;
   968     esac
   969     eval enable_$ac_useropt=\$ac_optarg ;;
   971   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   972   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   973   | --exec | --exe | --ex)
   974     ac_prev=exec_prefix ;;
   975   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   976   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   977   | --exec=* | --exe=* | --ex=*)
   978     exec_prefix=$ac_optarg ;;
   980   -gas | --gas | --ga | --g)
   981     # Obsolete; use --with-gas.
   982     with_gas=yes ;;
   984   -help | --help | --hel | --he | -h)
   985     ac_init_help=long ;;
   986   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   987     ac_init_help=recursive ;;
   988   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   989     ac_init_help=short ;;
   991   -host | --host | --hos | --ho)
   992     ac_prev=host_alias ;;
   993   -host=* | --host=* | --hos=* | --ho=*)
   994     host_alias=$ac_optarg ;;
   996   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   997     ac_prev=htmldir ;;
   998   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   999   | --ht=*)
  1000     htmldir=$ac_optarg ;;
  1002   -includedir | --includedir | --includedi | --included | --include \
  1003   | --includ | --inclu | --incl | --inc)
  1004     ac_prev=includedir ;;
  1005   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1006   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1007     includedir=$ac_optarg ;;
  1009   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1010     ac_prev=infodir ;;
  1011   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1012     infodir=$ac_optarg ;;
  1014   -libdir | --libdir | --libdi | --libd)
  1015     ac_prev=libdir ;;
  1016   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1017     libdir=$ac_optarg ;;
  1019   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1020   | --libexe | --libex | --libe)
  1021     ac_prev=libexecdir ;;
  1022   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1023   | --libexe=* | --libex=* | --libe=*)
  1024     libexecdir=$ac_optarg ;;
  1026   -localedir | --localedir | --localedi | --localed | --locale)
  1027     ac_prev=localedir ;;
  1028   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1029     localedir=$ac_optarg ;;
  1031   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1032   | --localstate | --localstat | --localsta | --localst | --locals)
  1033     ac_prev=localstatedir ;;
  1034   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1035   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1036     localstatedir=$ac_optarg ;;
  1038   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1039     ac_prev=mandir ;;
  1040   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1041     mandir=$ac_optarg ;;
  1043   -nfp | --nfp | --nf)
  1044     # Obsolete; use --without-fp.
  1045     with_fp=no ;;
  1047   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1048   | --no-cr | --no-c | -n)
  1049     no_create=yes ;;
  1051   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1052   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1053     no_recursion=yes ;;
  1055   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1056   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1057   | --oldin | --oldi | --old | --ol | --o)
  1058     ac_prev=oldincludedir ;;
  1059   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1060   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1061   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1062     oldincludedir=$ac_optarg ;;
  1064   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1065     ac_prev=prefix ;;
  1066   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1067     prefix=$ac_optarg ;;
  1069   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1070   | --program-pre | --program-pr | --program-p)
  1071     ac_prev=program_prefix ;;
  1072   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1073   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1074     program_prefix=$ac_optarg ;;
  1076   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1077   | --program-suf | --program-su | --program-s)
  1078     ac_prev=program_suffix ;;
  1079   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1080   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1081     program_suffix=$ac_optarg ;;
  1083   -program-transform-name | --program-transform-name \
  1084   | --program-transform-nam | --program-transform-na \
  1085   | --program-transform-n | --program-transform- \
  1086   | --program-transform | --program-transfor \
  1087   | --program-transfo | --program-transf \
  1088   | --program-trans | --program-tran \
  1089   | --progr-tra | --program-tr | --program-t)
  1090     ac_prev=program_transform_name ;;
  1091   -program-transform-name=* | --program-transform-name=* \
  1092   | --program-transform-nam=* | --program-transform-na=* \
  1093   | --program-transform-n=* | --program-transform-=* \
  1094   | --program-transform=* | --program-transfor=* \
  1095   | --program-transfo=* | --program-transf=* \
  1096   | --program-trans=* | --program-tran=* \
  1097   | --progr-tra=* | --program-tr=* | --program-t=*)
  1098     program_transform_name=$ac_optarg ;;
  1100   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1101     ac_prev=pdfdir ;;
  1102   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1103     pdfdir=$ac_optarg ;;
  1105   -psdir | --psdir | --psdi | --psd | --ps)
  1106     ac_prev=psdir ;;
  1107   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1108     psdir=$ac_optarg ;;
  1110   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1111   | -silent | --silent | --silen | --sile | --sil)
  1112     silent=yes ;;
  1114   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1115     ac_prev=sbindir ;;
  1116   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1117   | --sbi=* | --sb=*)
  1118     sbindir=$ac_optarg ;;
  1120   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1121   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1122   | --sharedst | --shareds | --shared | --share | --shar \
  1123   | --sha | --sh)
  1124     ac_prev=sharedstatedir ;;
  1125   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1126   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1127   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1128   | --sha=* | --sh=*)
  1129     sharedstatedir=$ac_optarg ;;
  1131   -site | --site | --sit)
  1132     ac_prev=site ;;
  1133   -site=* | --site=* | --sit=*)
  1134     site=$ac_optarg ;;
  1136   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1137     ac_prev=srcdir ;;
  1138   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1139     srcdir=$ac_optarg ;;
  1141   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1142   | --syscon | --sysco | --sysc | --sys | --sy)
  1143     ac_prev=sysconfdir ;;
  1144   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1145   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1146     sysconfdir=$ac_optarg ;;
  1148   -target | --target | --targe | --targ | --tar | --ta | --t)
  1149     ac_prev=target_alias ;;
  1150   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1151     target_alias=$ac_optarg ;;
  1153   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1154     verbose=yes ;;
  1156   -version | --version | --versio | --versi | --vers | -V)
  1157     ac_init_version=: ;;
  1159   -with-* | --with-*)
  1160     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1161     # Reject names that are not valid shell variable names.
  1162     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1163       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1164    { (exit 1); exit 1; }; }
  1165     ac_useropt_orig=$ac_useropt
  1166     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1167     case $ac_user_opts in
  1168       *"
  1169 "with_$ac_useropt"
  1170 "*) ;;
  1171       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1172 	 ac_unrecognized_sep=', ';;
  1173     esac
  1174     eval with_$ac_useropt=\$ac_optarg ;;
  1176   -without-* | --without-*)
  1177     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1178     # Reject names that are not valid shell variable names.
  1179     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1180       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1181    { (exit 1); exit 1; }; }
  1182     ac_useropt_orig=$ac_useropt
  1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1184     case $ac_user_opts in
  1185       *"
  1186 "with_$ac_useropt"
  1187 "*) ;;
  1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1189 	 ac_unrecognized_sep=', ';;
  1190     esac
  1191     eval with_$ac_useropt=no ;;
  1193   --x)
  1194     # Obsolete; use --with-x.
  1195     with_x=yes ;;
  1197   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1198   | --x-incl | --x-inc | --x-in | --x-i)
  1199     ac_prev=x_includes ;;
  1200   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1201   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1202     x_includes=$ac_optarg ;;
  1204   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1205   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1206     ac_prev=x_libraries ;;
  1207   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1208   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1209     x_libraries=$ac_optarg ;;
  1211   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1212 Try \`$0 --help' for more information." >&2
  1213    { (exit 1); exit 1; }; }
  1214     ;;
  1216   *=*)
  1217     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1218     # Reject names that are not valid shell variable names.
  1219     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1220       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1221    { (exit 1); exit 1; }; }
  1222     eval $ac_envvar=\$ac_optarg
  1223     export $ac_envvar ;;
  1225   *)
  1226     # FIXME: should be removed in autoconf 3.0.
  1227     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1228     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1229       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1230     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1231     ;;
  1233   esac
  1234 done
  1236 if test -n "$ac_prev"; then
  1237   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1238   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1239    { (exit 1); exit 1; }; }
  1240 fi
  1242 if test -n "$ac_unrecognized_opts"; then
  1243   case $enable_option_checking in
  1244     no) ;;
  1245     fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
  1246    { (exit 1); exit 1; }; } ;;
  1247     *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1248   esac
  1249 fi
  1251 # Check all directory arguments for consistency.
  1252 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1253 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1254 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1255 		libdir localedir mandir
  1256 do
  1257   eval ac_val=\$$ac_var
  1258   # Remove trailing slashes.
  1259   case $ac_val in
  1260     */ )
  1261       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1262       eval $ac_var=\$ac_val;;
  1263   esac
  1264   # Be sure to have absolute directory names.
  1265   case $ac_val in
  1266     [\\/$]* | ?:[\\/]* )  continue;;
  1267     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1268   esac
  1269   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1270    { (exit 1); exit 1; }; }
  1271 done
  1273 # There might be people who depend on the old broken behavior: `$host'
  1274 # used to hold the argument of --host etc.
  1275 # FIXME: To remove some day.
  1276 build=$build_alias
  1277 host=$host_alias
  1278 target=$target_alias
  1280 # FIXME: To remove some day.
  1281 if test "x$host_alias" != x; then
  1282   if test "x$build_alias" = x; then
  1283     cross_compiling=maybe
  1284     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1285     If a cross compiler is detected then cross compile mode will be used." >&2
  1286   elif test "x$build_alias" != "x$host_alias"; then
  1287     cross_compiling=yes
  1288   fi
  1289 fi
  1291 ac_tool_prefix=
  1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1294 test "$silent" = yes && exec 6>/dev/null
  1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1298 ac_ls_di=`ls -di .` &&
  1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1300   { $as_echo "$as_me: error: Working directory cannot be determined" >&2
  1301    { (exit 1); exit 1; }; }
  1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1303   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1304    { (exit 1); exit 1; }; }
  1307 # Find the source files, if location was not specified.
  1308 if test -z "$srcdir"; then
  1309   ac_srcdir_defaulted=yes
  1310   # Try the directory containing this script, then the parent directory.
  1311   ac_confdir=`$as_dirname -- "$as_myself" ||
  1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1313 	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1314 	 X"$as_myself" : 'X\(//\)$' \| \
  1315 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1316 $as_echo X"$as_myself" |
  1317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1318 	    s//\1/
  1321 	  /^X\(\/\/\)[^/].*/{
  1322 	    s//\1/
  1325 	  /^X\(\/\/\)$/{
  1326 	    s//\1/
  1329 	  /^X\(\/\).*/{
  1330 	    s//\1/
  1333 	  s/.*/./; q'`
  1334   srcdir=$ac_confdir
  1335   if test ! -r "$srcdir/$ac_unique_file"; then
  1336     srcdir=..
  1337   fi
  1338 else
  1339   ac_srcdir_defaulted=no
  1340 fi
  1341 if test ! -r "$srcdir/$ac_unique_file"; then
  1342   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1343   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1344    { (exit 1); exit 1; }; }
  1345 fi
  1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1347 ac_abs_confdir=`(
  1348 	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1349    { (exit 1); exit 1; }; }
  1350 	pwd)`
  1351 # When building in place, set srcdir=.
  1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1353   srcdir=.
  1354 fi
  1355 # Remove unnecessary trailing slashes from srcdir.
  1356 # Double slashes in file names in object file debugging info
  1357 # mess up M-x gdb in Emacs.
  1358 case $srcdir in
  1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1360 esac
  1361 for ac_var in $ac_precious_vars; do
  1362   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1363   eval ac_env_${ac_var}_value=\$${ac_var}
  1364   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1365   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1366 done
  1369 # Report the --help message.
  1371 if test "$ac_init_help" = "long"; then
  1372   # Omit some internal or obsolete options to make the list less imposing.
  1373   # This message is too long to be a string in the A/UX 3.1 sh.
  1374   cat <<_ACEOF
  1375 \`configure' configures this package to adapt to many kinds of systems.
  1377 Usage: $0 [OPTION]... [VAR=VALUE]...
  1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1380 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1382 Defaults for the options are specified in brackets.
  1384 Configuration:
  1385   -h, --help              display this help and exit
  1386       --help=short        display options specific to this package
  1387       --help=recursive    display the short help of all the included packages
  1388   -V, --version           display version information and exit
  1389   -q, --quiet, --silent   do not print \`checking...' messages
  1390       --cache-file=FILE   cache test results in FILE [disabled]
  1391   -C, --config-cache      alias for \`--cache-file=config.cache'
  1392   -n, --no-create         do not create output files
  1393       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1395 Installation directories:
  1396   --prefix=PREFIX         install architecture-independent files in PREFIX
  1397                           [$ac_default_prefix]
  1398   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1399                           [PREFIX]
  1401 By default, \`make install' will install all the files in
  1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1404 for instance \`--prefix=\$HOME'.
  1406 For better control, use the options below.
  1408 Fine tuning of the installation directories:
  1409   --bindir=DIR            user executables [EPREFIX/bin]
  1410   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1411   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1412   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1413   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1414   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1415   --libdir=DIR            object code libraries [EPREFIX/lib]
  1416   --includedir=DIR        C header files [PREFIX/include]
  1417   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1418   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1419   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1420   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1421   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1422   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1423   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1424   --htmldir=DIR           html documentation [DOCDIR]
  1425   --dvidir=DIR            dvi documentation [DOCDIR]
  1426   --pdfdir=DIR            pdf documentation [DOCDIR]
  1427   --psdir=DIR             ps documentation [DOCDIR]
  1428 _ACEOF
  1430   cat <<\_ACEOF
  1432 Program names:
  1433   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1434   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1435   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1437 System types:
  1438   --build=BUILD     configure for building on BUILD [guessed]
  1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1440 _ACEOF
  1441 fi
  1443 if test -n "$ac_init_help"; then
  1445   cat <<\_ACEOF
  1447 Optional Features:
  1448   --disable-option-checking  ignore unrecognized --enable/--with options
  1449   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1450   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1451   --enable-maintainer-mode  enable make rules and dependencies not useful
  1452 			  (and sometimes confusing) to the casual installer
  1453   --disable-dependency-tracking  speeds up one-time build
  1454   --enable-dependency-tracking   do not reject slow dependency extractors
  1455   --enable-trace          Enable generation of IO traces (warning: hurts
  1456                           performance)
  1457   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1458                           performance)
  1460 Optional Packages:
  1461   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1462   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1463   --with-osmesa           Build with the osmesa GL library (software
  1464                           rendering)
  1466 Some influential environment variables:
  1467   CC          C compiler command
  1468   CFLAGS      C compiler flags
  1469   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1470               nonstandard directory <lib dir>
  1471   LIBS        libraries to pass to the linker, e.g. -l<library>
  1472   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1473               you have headers in a nonstandard directory <include dir>
  1474   CCAS        assembler compiler command (defaults to CC)
  1475   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1476   CPP         C preprocessor
  1477   PKG_CONFIG  path to pkg-config utility
  1478   LIBPNG_CFLAGS
  1479               C compiler flags for LIBPNG, overriding pkg-config
  1480   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1481   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1482   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1483   PULSE_CFLAGS
  1484               C compiler flags for PULSE, overriding pkg-config
  1485   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1486   ESOUND_CFLAGS
  1487               C compiler flags for ESOUND, overriding pkg-config
  1488   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1489   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1490   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1492 Use these variables to override the choices made by `configure' or to help
  1493 it to find libraries and programs with nonstandard names/locations.
  1495 _ACEOF
  1496 ac_status=$?
  1497 fi
  1499 if test "$ac_init_help" = "recursive"; then
  1500   # If there are subdirs, report their specific --help.
  1501   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1502     test -d "$ac_dir" ||
  1503       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1504       continue
  1505     ac_builddir=.
  1507 case "$ac_dir" in
  1508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1509 *)
  1510   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1511   # A ".." for each directory in $ac_dir_suffix.
  1512   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1513   case $ac_top_builddir_sub in
  1514   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1515   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1516   esac ;;
  1517 esac
  1518 ac_abs_top_builddir=$ac_pwd
  1519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1520 # for backward compatibility:
  1521 ac_top_builddir=$ac_top_build_prefix
  1523 case $srcdir in
  1524   .)  # We are building in place.
  1525     ac_srcdir=.
  1526     ac_top_srcdir=$ac_top_builddir_sub
  1527     ac_abs_top_srcdir=$ac_pwd ;;
  1528   [\\/]* | ?:[\\/]* )  # Absolute name.
  1529     ac_srcdir=$srcdir$ac_dir_suffix;
  1530     ac_top_srcdir=$srcdir
  1531     ac_abs_top_srcdir=$srcdir ;;
  1532   *) # Relative name.
  1533     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1534     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1535     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1536 esac
  1537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1539     cd "$ac_dir" || { ac_status=$?; continue; }
  1540     # Check for guested configure.
  1541     if test -f "$ac_srcdir/configure.gnu"; then
  1542       echo &&
  1543       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1544     elif test -f "$ac_srcdir/configure"; then
  1545       echo &&
  1546       $SHELL "$ac_srcdir/configure" --help=recursive
  1547     else
  1548       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1549     fi || ac_status=$?
  1550     cd "$ac_pwd" || { ac_status=$?; break; }
  1551   done
  1552 fi
  1554 test -n "$ac_init_help" && exit $ac_status
  1555 if $ac_init_version; then
  1556   cat <<\_ACEOF
  1557 configure
  1558 generated by GNU Autoconf 2.62
  1560 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1561 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1562 This configure script is free software; the Free Software Foundation
  1563 gives unlimited permission to copy, distribute and modify it.
  1564 _ACEOF
  1565   exit
  1566 fi
  1567 cat >config.log <<_ACEOF
  1568 This file contains any messages produced by compilers while
  1569 running configure, to aid debugging if configure makes a mistake.
  1571 It was created by $as_me, which was
  1572 generated by GNU Autoconf 2.62.  Invocation command line was
  1574   $ $0 $@
  1576 _ACEOF
  1577 exec 5>>config.log
  1579 cat <<_ASUNAME
  1580 ## --------- ##
  1581 ## Platform. ##
  1582 ## --------- ##
  1584 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1585 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1586 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1587 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1588 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1590 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1591 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1593 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1594 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1595 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1596 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1597 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1598 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1599 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1601 _ASUNAME
  1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1604 for as_dir in $PATH
  1605 do
  1606   IFS=$as_save_IFS
  1607   test -z "$as_dir" && as_dir=.
  1608   $as_echo "PATH: $as_dir"
  1609 done
  1610 IFS=$as_save_IFS
  1612 } >&5
  1614 cat >&5 <<_ACEOF
  1617 ## ----------- ##
  1618 ## Core tests. ##
  1619 ## ----------- ##
  1621 _ACEOF
  1624 # Keep a trace of the command line.
  1625 # Strip out --no-create and --no-recursion so they do not pile up.
  1626 # Strip out --silent because we don't want to record it for future runs.
  1627 # Also quote any args containing shell meta-characters.
  1628 # Make two passes to allow for proper duplicate-argument suppression.
  1629 ac_configure_args=
  1630 ac_configure_args0=
  1631 ac_configure_args1=
  1632 ac_must_keep_next=false
  1633 for ac_pass in 1 2
  1634 do
  1635   for ac_arg
  1636   do
  1637     case $ac_arg in
  1638     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1639     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1640     | -silent | --silent | --silen | --sile | --sil)
  1641       continue ;;
  1642     *\'*)
  1643       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1644     esac
  1645     case $ac_pass in
  1646     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1647     2)
  1648       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1649       if test $ac_must_keep_next = true; then
  1650 	ac_must_keep_next=false # Got value, back to normal.
  1651       else
  1652 	case $ac_arg in
  1653 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1654 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1655 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1656 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1657 	    case "$ac_configure_args0 " in
  1658 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1659 	    esac
  1660 	    ;;
  1661 	  -* ) ac_must_keep_next=true ;;
  1662 	esac
  1663       fi
  1664       ac_configure_args="$ac_configure_args '$ac_arg'"
  1665       ;;
  1666     esac
  1667   done
  1668 done
  1669 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1670 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1672 # When interrupted or exit'd, cleanup temporary files, and complete
  1673 # config.log.  We remove comments because anyway the quotes in there
  1674 # would cause problems or look ugly.
  1675 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1676 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1677 trap 'exit_status=$?
  1678   # Save into config.log some information that might help in debugging.
  1680     echo
  1682     cat <<\_ASBOX
  1683 ## ---------------- ##
  1684 ## Cache variables. ##
  1685 ## ---------------- ##
  1686 _ASBOX
  1687     echo
  1688     # The following way of writing the cache mishandles newlines in values,
  1690   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1691     eval ac_val=\$$ac_var
  1692     case $ac_val in #(
  1693     *${as_nl}*)
  1694       case $ac_var in #(
  1695       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1696 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1697       esac
  1698       case $ac_var in #(
  1699       _ | IFS | as_nl) ;; #(
  1700       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1701       *) $as_unset $ac_var ;;
  1702       esac ;;
  1703     esac
  1704   done
  1705   (set) 2>&1 |
  1706     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1707     *${as_nl}ac_space=\ *)
  1708       sed -n \
  1709 	"s/'\''/'\''\\\\'\'''\''/g;
  1710 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1711       ;; #(
  1712     *)
  1713       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1714       ;;
  1715     esac |
  1716     sort
  1718     echo
  1720     cat <<\_ASBOX
  1721 ## ----------------- ##
  1722 ## Output variables. ##
  1723 ## ----------------- ##
  1724 _ASBOX
  1725     echo
  1726     for ac_var in $ac_subst_vars
  1727     do
  1728       eval ac_val=\$$ac_var
  1729       case $ac_val in
  1730       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1731       esac
  1732       $as_echo "$ac_var='\''$ac_val'\''"
  1733     done | sort
  1734     echo
  1736     if test -n "$ac_subst_files"; then
  1737       cat <<\_ASBOX
  1738 ## ------------------- ##
  1739 ## File substitutions. ##
  1740 ## ------------------- ##
  1741 _ASBOX
  1742       echo
  1743       for ac_var in $ac_subst_files
  1744       do
  1745 	eval ac_val=\$$ac_var
  1746 	case $ac_val in
  1747 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1748 	esac
  1749 	$as_echo "$ac_var='\''$ac_val'\''"
  1750       done | sort
  1751       echo
  1752     fi
  1754     if test -s confdefs.h; then
  1755       cat <<\_ASBOX
  1756 ## ----------- ##
  1757 ## confdefs.h. ##
  1758 ## ----------- ##
  1759 _ASBOX
  1760       echo
  1761       cat confdefs.h
  1762       echo
  1763     fi
  1764     test "$ac_signal" != 0 &&
  1765       $as_echo "$as_me: caught signal $ac_signal"
  1766     $as_echo "$as_me: exit $exit_status"
  1767   } >&5
  1768   rm -f core *.core core.conftest.* &&
  1769     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1770     exit $exit_status
  1771 ' 0
  1772 for ac_signal in 1 2 13 15; do
  1773   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1774 done
  1775 ac_signal=0
  1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1778 rm -f -r conftest* confdefs.h
  1780 # Predefined preprocessor variables.
  1782 cat >>confdefs.h <<_ACEOF
  1783 #define PACKAGE_NAME "$PACKAGE_NAME"
  1784 _ACEOF
  1787 cat >>confdefs.h <<_ACEOF
  1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1789 _ACEOF
  1792 cat >>confdefs.h <<_ACEOF
  1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1794 _ACEOF
  1797 cat >>confdefs.h <<_ACEOF
  1798 #define PACKAGE_STRING "$PACKAGE_STRING"
  1799 _ACEOF
  1802 cat >>confdefs.h <<_ACEOF
  1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1804 _ACEOF
  1807 # Let the site file select an alternate cache file if it wants to.
  1808 # Prefer an explicitly selected file to automatically selected ones.
  1809 ac_site_file1=NONE
  1810 ac_site_file2=NONE
  1811 if test -n "$CONFIG_SITE"; then
  1812   ac_site_file1=$CONFIG_SITE
  1813 elif test "x$prefix" != xNONE; then
  1814   ac_site_file1=$prefix/share/config.site
  1815   ac_site_file2=$prefix/etc/config.site
  1816 else
  1817   ac_site_file1=$ac_default_prefix/share/config.site
  1818   ac_site_file2=$ac_default_prefix/etc/config.site
  1819 fi
  1820 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1821 do
  1822   test "x$ac_site_file" = xNONE && continue
  1823   if test -r "$ac_site_file"; then
  1824     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1825 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1826     sed 's/^/| /' "$ac_site_file" >&5
  1827     . "$ac_site_file"
  1828   fi
  1829 done
  1831 if test -r "$cache_file"; then
  1832   # Some versions of bash will fail to source /dev/null (special
  1833   # files actually), so we avoid doing that.
  1834   if test -f "$cache_file"; then
  1835     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1836 $as_echo "$as_me: loading cache $cache_file" >&6;}
  1837     case $cache_file in
  1838       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1839       *)                      . "./$cache_file";;
  1840     esac
  1841   fi
  1842 else
  1843   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1844 $as_echo "$as_me: creating cache $cache_file" >&6;}
  1845   >$cache_file
  1846 fi
  1848 # Check that the precious variables saved in the cache have kept the same
  1849 # value.
  1850 ac_cache_corrupted=false
  1851 for ac_var in $ac_precious_vars; do
  1852   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1853   eval ac_new_set=\$ac_env_${ac_var}_set
  1854   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1855   eval ac_new_val=\$ac_env_${ac_var}_value
  1856   case $ac_old_set,$ac_new_set in
  1857     set,)
  1858       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1859 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1860       ac_cache_corrupted=: ;;
  1861     ,set)
  1862       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1863 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1864       ac_cache_corrupted=: ;;
  1865     ,);;
  1866     *)
  1867       if test "x$ac_old_val" != "x$ac_new_val"; then
  1868 	# differences in whitespace do not lead to failure.
  1869 	ac_old_val_w=`echo x $ac_old_val`
  1870 	ac_new_val_w=`echo x $ac_new_val`
  1871 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1872 	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1873 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1874 	  ac_cache_corrupted=:
  1875 	else
  1876 	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1877 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1878 	  eval $ac_var=\$ac_old_val
  1879 	fi
  1880 	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
  1881 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  1882 	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
  1883 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  1884       fi;;
  1885   esac
  1886   # Pass precious variables to config.status.
  1887   if test "$ac_new_set" = set; then
  1888     case $ac_new_val in
  1889     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1890     *) ac_arg=$ac_var=$ac_new_val ;;
  1891     esac
  1892     case " $ac_configure_args " in
  1893       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1894       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1895     esac
  1896   fi
  1897 done
  1898 if $ac_cache_corrupted; then
  1899   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1900 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1901   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1902 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1903    { (exit 1); exit 1; }; }
  1904 fi
  1922 ac_ext=c
  1923 ac_cpp='$CPP $CPPFLAGS'
  1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1929 am__api_version="1.9"
  1930 ac_aux_dir=
  1931 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1932   if test -f "$ac_dir/install-sh"; then
  1933     ac_aux_dir=$ac_dir
  1934     ac_install_sh="$ac_aux_dir/install-sh -c"
  1935     break
  1936   elif test -f "$ac_dir/install.sh"; then
  1937     ac_aux_dir=$ac_dir
  1938     ac_install_sh="$ac_aux_dir/install.sh -c"
  1939     break
  1940   elif test -f "$ac_dir/shtool"; then
  1941     ac_aux_dir=$ac_dir
  1942     ac_install_sh="$ac_aux_dir/shtool install -c"
  1943     break
  1944   fi
  1945 done
  1946 if test -z "$ac_aux_dir"; then
  1947   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1948 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1949    { (exit 1); exit 1; }; }
  1950 fi
  1952 # These three variables are undocumented and unsupported,
  1953 # and are intended to be withdrawn in a future Autoconf release.
  1954 # They can cause serious problems if a builder's source tree is in a directory
  1955 # whose full name contains unusual characters.
  1956 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1957 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1958 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1961 # Find a good install program.  We prefer a C program (faster),
  1962 # so one script is as good as another.  But avoid the broken or
  1963 # incompatible versions:
  1964 # SysV /etc/install, /usr/sbin/install
  1965 # SunOS /usr/etc/install
  1966 # IRIX /sbin/install
  1967 # AIX /bin/install
  1968 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1972 # OS/2's system install, which has a completely different semantic
  1973 # ./install, which can be erroneously created by make from ./install.sh.
  1974 # Reject install programs that cannot install multiple files.
  1975 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1976 $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1977 if test -z "$INSTALL"; then
  1978 if test "${ac_cv_path_install+set}" = set; then
  1979   $as_echo_n "(cached) " >&6
  1980 else
  1981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1982 for as_dir in $PATH
  1983 do
  1984   IFS=$as_save_IFS
  1985   test -z "$as_dir" && as_dir=.
  1986   # Account for people who put trailing slashes in PATH elements.
  1987 case $as_dir/ in
  1988   ./ | .// | /cC/* | \
  1989   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1990   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1991   /usr/ucb/* ) ;;
  1992   *)
  1993     # OSF1 and SCO ODT 3.0 have their own names for install.
  1994     # Don't use installbsd from OSF since it installs stuff as root
  1995     # by default.
  1996     for ac_prog in ginstall scoinst install; do
  1997       for ac_exec_ext in '' $ac_executable_extensions; do
  1998 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1999 	  if test $ac_prog = install &&
  2000 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2001 	    # AIX install.  It has an incompatible calling convention.
  2003 	  elif test $ac_prog = install &&
  2004 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2005 	    # program-specific install script used by HP pwplus--don't use.
  2007 	  else
  2008 	    rm -rf conftest.one conftest.two conftest.dir
  2009 	    echo one > conftest.one
  2010 	    echo two > conftest.two
  2011 	    mkdir conftest.dir
  2012 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2013 	      test -s conftest.one && test -s conftest.two &&
  2014 	      test -s conftest.dir/conftest.one &&
  2015 	      test -s conftest.dir/conftest.two
  2016 	    then
  2017 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2018 	      break 3
  2019 	    fi
  2020 	  fi
  2021 	fi
  2022       done
  2023     done
  2024     ;;
  2025 esac
  2027 done
  2028 IFS=$as_save_IFS
  2030 rm -rf conftest.one conftest.two conftest.dir
  2032 fi
  2033   if test "${ac_cv_path_install+set}" = set; then
  2034     INSTALL=$ac_cv_path_install
  2035   else
  2036     # As a last resort, use the slow shell script.  Don't cache a
  2037     # value for INSTALL within a source directory, because that will
  2038     # break other packages using the cache if that directory is
  2039     # removed, or if the value is a relative name.
  2040     INSTALL=$ac_install_sh
  2041   fi
  2042 fi
  2043 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2044 $as_echo "$INSTALL" >&6; }
  2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2047 # It thinks the first close brace ends the variable substitution.
  2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2054 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2055 $as_echo_n "checking whether build environment is sane... " >&6; }
  2056 # Just in case
  2057 sleep 1
  2058 echo timestamp > conftest.file
  2059 # Do `set' in a subshell so we don't clobber the current shell's
  2060 # arguments.  Must try -L first in case configure is actually a
  2061 # symlink; some systems play weird games with the mod time of symlinks
  2062 # (eg FreeBSD returns the mod time of the symlink's containing
  2063 # directory).
  2064 if (
  2065    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2066    if test "$*" = "X"; then
  2067       # -L didn't work.
  2068       set X `ls -t $srcdir/configure conftest.file`
  2069    fi
  2070    rm -f conftest.file
  2071    if test "$*" != "X $srcdir/configure conftest.file" \
  2072       && test "$*" != "X conftest.file $srcdir/configure"; then
  2074       # If neither matched, then we have a broken ls.  This can happen
  2075       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2076       # broken ls alias from the environment.  This has actually
  2077       # happened.  Such a system could not be considered "sane".
  2078       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2079 alias in your environment" >&5
  2080 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2081 alias in your environment" >&2;}
  2082    { (exit 1); exit 1; }; }
  2083    fi
  2085    test "$2" = conftest.file
  2087 then
  2088    # Ok.
  2090 else
  2091    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2092 Check your system clock" >&5
  2093 $as_echo "$as_me: error: newly created file is older than distributed files!
  2094 Check your system clock" >&2;}
  2095    { (exit 1); exit 1; }; }
  2096 fi
  2097 { $as_echo "$as_me:$LINENO: result: yes" >&5
  2098 $as_echo "yes" >&6; }
  2099 test "$program_prefix" != NONE &&
  2100   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2101 # Use a double $ so make ignores it.
  2102 test "$program_suffix" != NONE &&
  2103   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2104 # Double any \ or $.
  2105 # By default was `s,x,x', remove it if useless.
  2106 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2107 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2109 # expand $ac_aux_dir to an absolute path
  2110 am_aux_dir=`cd $ac_aux_dir && pwd`
  2112 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2113 # Use eval to expand $SHELL
  2114 if eval "$MISSING --run true"; then
  2115   am_missing_run="$MISSING --run "
  2116 else
  2117   am_missing_run=
  2118   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2119 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2120 fi
  2122 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2123   # We used to keeping the `.' as first argument, in order to
  2124   # allow $(mkdir_p) to be used without argument.  As in
  2125   #   $(mkdir_p) $(somedir)
  2126   # where $(somedir) is conditionally defined.  However this is wrong
  2127   # for two reasons:
  2128   #  1. if the package is installed by a user who cannot write `.'
  2129   #     make install will fail,
  2130   #  2. the above comment should most certainly read
  2131   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2132   #     so it does not work when $(somedir) is undefined and
  2133   #     $(DESTDIR) is not.
  2134   #  To support the latter case, we have to write
  2135   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2136   #  so the `.' trick is pointless.
  2137   mkdir_p='mkdir -p --'
  2138 else
  2139   # On NextStep and OpenStep, the `mkdir' command does not
  2140   # recognize any option.  It will interpret all options as
  2141   # directories to create, and then abort because `.' already
  2142   # exists.
  2143   for d in ./-p ./--version;
  2144   do
  2145     test -d $d && rmdir $d
  2146   done
  2147   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2148   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2149     mkdir_p='$(mkinstalldirs)'
  2150   else
  2151     mkdir_p='$(install_sh) -d'
  2152   fi
  2153 fi
  2155 for ac_prog in gawk mawk nawk awk
  2156 do
  2157   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2158 set dummy $ac_prog; ac_word=$2
  2159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2160 $as_echo_n "checking for $ac_word... " >&6; }
  2161 if test "${ac_cv_prog_AWK+set}" = set; then
  2162   $as_echo_n "(cached) " >&6
  2163 else
  2164   if test -n "$AWK"; then
  2165   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2166 else
  2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2168 for as_dir in $PATH
  2169 do
  2170   IFS=$as_save_IFS
  2171   test -z "$as_dir" && as_dir=.
  2172   for ac_exec_ext in '' $ac_executable_extensions; do
  2173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2174     ac_cv_prog_AWK="$ac_prog"
  2175     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2176     break 2
  2177   fi
  2178 done
  2179 done
  2180 IFS=$as_save_IFS
  2182 fi
  2183 fi
  2184 AWK=$ac_cv_prog_AWK
  2185 if test -n "$AWK"; then
  2186   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2187 $as_echo "$AWK" >&6; }
  2188 else
  2189   { $as_echo "$as_me:$LINENO: result: no" >&5
  2190 $as_echo "no" >&6; }
  2191 fi
  2194   test -n "$AWK" && break
  2195 done
  2197 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2198 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2199 set x ${MAKE-make}
  2200 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2201 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2202   $as_echo_n "(cached) " >&6
  2203 else
  2204   cat >conftest.make <<\_ACEOF
  2205 SHELL = /bin/sh
  2206 all:
  2207 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2208 _ACEOF
  2209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2211   *@@@%%%=?*=@@@%%%*)
  2212     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2213   *)
  2214     eval ac_cv_prog_make_${ac_make}_set=no;;
  2215 esac
  2216 rm -f conftest.make
  2217 fi
  2218 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2219   { $as_echo "$as_me:$LINENO: result: yes" >&5
  2220 $as_echo "yes" >&6; }
  2221   SET_MAKE=
  2222 else
  2223   { $as_echo "$as_me:$LINENO: result: no" >&5
  2224 $as_echo "no" >&6; }
  2225   SET_MAKE="MAKE=${MAKE-make}"
  2226 fi
  2228 rm -rf .tst 2>/dev/null
  2229 mkdir .tst 2>/dev/null
  2230 if test -d .tst; then
  2231   am__leading_dot=.
  2232 else
  2233   am__leading_dot=_
  2234 fi
  2235 rmdir .tst 2>/dev/null
  2237 # test to see if srcdir already configured
  2238 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2239    test -f $srcdir/config.status; then
  2240   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2241 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2242    { (exit 1); exit 1; }; }
  2243 fi
  2245 # test whether we have cygpath
  2246 if test -z "$CYGPATH_W"; then
  2247   if (cygpath --version) >/dev/null 2>/dev/null; then
  2248     CYGPATH_W='cygpath -w'
  2249   else
  2250     CYGPATH_W=echo
  2251   fi
  2252 fi
  2255 # Define the identity of the package.
  2256  PACKAGE=lxdream
  2257  VERSION=0.8.1
  2260 cat >>confdefs.h <<_ACEOF
  2261 #define PACKAGE "$PACKAGE"
  2262 _ACEOF
  2265 cat >>confdefs.h <<_ACEOF
  2266 #define VERSION "$VERSION"
  2267 _ACEOF
  2269 # Some tools Automake needs.
  2271 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2274 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2277 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2280 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2283 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2285 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2287 # Installed binaries are usually stripped using `strip' when the user
  2288 # run `make install-strip'.  However `strip' might not be the right
  2289 # tool to use in cross-compilation environments, therefore Automake
  2290 # will honor the `STRIP' environment variable to overrule this program.
  2291 if test "$cross_compiling" != no; then
  2292   if test -n "$ac_tool_prefix"; then
  2293   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2294 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2295 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2296 $as_echo_n "checking for $ac_word... " >&6; }
  2297 if test "${ac_cv_prog_STRIP+set}" = set; then
  2298   $as_echo_n "(cached) " >&6
  2299 else
  2300   if test -n "$STRIP"; then
  2301   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2302 else
  2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304 for as_dir in $PATH
  2305 do
  2306   IFS=$as_save_IFS
  2307   test -z "$as_dir" && as_dir=.
  2308   for ac_exec_ext in '' $ac_executable_extensions; do
  2309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2310     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2311     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2312     break 2
  2313   fi
  2314 done
  2315 done
  2316 IFS=$as_save_IFS
  2318 fi
  2319 fi
  2320 STRIP=$ac_cv_prog_STRIP
  2321 if test -n "$STRIP"; then
  2322   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2323 $as_echo "$STRIP" >&6; }
  2324 else
  2325   { $as_echo "$as_me:$LINENO: result: no" >&5
  2326 $as_echo "no" >&6; }
  2327 fi
  2330 fi
  2331 if test -z "$ac_cv_prog_STRIP"; then
  2332   ac_ct_STRIP=$STRIP
  2333   # Extract the first word of "strip", so it can be a program name with args.
  2334 set dummy strip; ac_word=$2
  2335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2336 $as_echo_n "checking for $ac_word... " >&6; }
  2337 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2338   $as_echo_n "(cached) " >&6
  2339 else
  2340   if test -n "$ac_ct_STRIP"; then
  2341   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2342 else
  2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344 for as_dir in $PATH
  2345 do
  2346   IFS=$as_save_IFS
  2347   test -z "$as_dir" && as_dir=.
  2348   for ac_exec_ext in '' $ac_executable_extensions; do
  2349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350     ac_cv_prog_ac_ct_STRIP="strip"
  2351     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352     break 2
  2353   fi
  2354 done
  2355 done
  2356 IFS=$as_save_IFS
  2358 fi
  2359 fi
  2360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2361 if test -n "$ac_ct_STRIP"; then
  2362   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2363 $as_echo "$ac_ct_STRIP" >&6; }
  2364 else
  2365   { $as_echo "$as_me:$LINENO: result: no" >&5
  2366 $as_echo "no" >&6; }
  2367 fi
  2369   if test "x$ac_ct_STRIP" = x; then
  2370     STRIP=":"
  2371   else
  2372     case $cross_compiling:$ac_tool_warned in
  2373 yes:)
  2374 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2375 whose name does not start with the host triplet.  If you think this
  2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2377 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2378 whose name does not start with the host triplet.  If you think this
  2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2380 ac_tool_warned=yes ;;
  2381 esac
  2382     STRIP=$ac_ct_STRIP
  2383   fi
  2384 else
  2385   STRIP="$ac_cv_prog_STRIP"
  2386 fi
  2388 fi
  2389 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2391 # We need awk for the "check" target.  The system "awk" is bad on
  2392 # some platforms.
  2393 # Always define AMTAR for backward compatibility.
  2395 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2397 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2403 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2404 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2405     # Check whether --enable-maintainer-mode was given.
  2406 if test "${enable_maintainer_mode+set}" = set; then
  2407   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2408 else
  2409   USE_MAINTAINER_MODE=no
  2410 fi
  2412   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2413 $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2416 if test $USE_MAINTAINER_MODE = yes; then
  2417   MAINTAINER_MODE_TRUE=
  2418   MAINTAINER_MODE_FALSE='#'
  2419 else
  2420   MAINTAINER_MODE_TRUE='#'
  2421   MAINTAINER_MODE_FALSE=
  2422 fi
  2424   MAINT=$MAINTAINER_MODE_TRUE
  2427 ac_config_headers="$ac_config_headers config.h"
  2430 DEPDIR="${am__leading_dot}deps"
  2432 ac_config_commands="$ac_config_commands depfiles"
  2435 am_make=${MAKE-make}
  2436 cat > confinc << 'END'
  2437 am__doit:
  2438 	@echo done
  2439 .PHONY: am__doit
  2440 END
  2441 # If we don't find an include directive, just comment out the code.
  2442 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2443 $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2444 am__include="#"
  2445 am__quote=
  2446 _am_result=none
  2447 # First try GNU make style include.
  2448 echo "include confinc" > confmf
  2449 # We grep out `Entering directory' and `Leaving directory'
  2450 # messages which can occur if `w' ends up in MAKEFLAGS.
  2451 # In particular we don't look at `^make:' because GNU make might
  2452 # be invoked under some other name (usually "gmake"), in which
  2453 # case it prints its new name instead of `make'.
  2454 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2455    am__include=include
  2456    am__quote=
  2457    _am_result=GNU
  2458 fi
  2459 # Now try BSD make style include.
  2460 if test "$am__include" = "#"; then
  2461    echo '.include "confinc"' > confmf
  2462    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2463       am__include=.include
  2464       am__quote="\""
  2465       _am_result=BSD
  2466    fi
  2467 fi
  2470 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2471 $as_echo "$_am_result" >&6; }
  2472 rm -f confinc confmf
  2474 # Check whether --enable-dependency-tracking was given.
  2475 if test "${enable_dependency_tracking+set}" = set; then
  2476   enableval=$enable_dependency_tracking;
  2477 fi
  2479 if test "x$enable_dependency_tracking" != xno; then
  2480   am_depcomp="$ac_aux_dir/depcomp"
  2481   AMDEPBACKSLASH='\'
  2482 fi
  2485 if test "x$enable_dependency_tracking" != xno; then
  2486   AMDEP_TRUE=
  2487   AMDEP_FALSE='#'
  2488 else
  2489   AMDEP_TRUE='#'
  2490   AMDEP_FALSE=
  2491 fi
  2495 ac_ext=c
  2496 ac_cpp='$CPP $CPPFLAGS'
  2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2500 if test -n "$ac_tool_prefix"; then
  2501   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2502 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2504 $as_echo_n "checking for $ac_word... " >&6; }
  2505 if test "${ac_cv_prog_CC+set}" = set; then
  2506   $as_echo_n "(cached) " >&6
  2507 else
  2508   if test -n "$CC"; then
  2509   ac_cv_prog_CC="$CC" # Let the user override the test.
  2510 else
  2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2512 for as_dir in $PATH
  2513 do
  2514   IFS=$as_save_IFS
  2515   test -z "$as_dir" && as_dir=.
  2516   for ac_exec_ext in '' $ac_executable_extensions; do
  2517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2518     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2519     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2520     break 2
  2521   fi
  2522 done
  2523 done
  2524 IFS=$as_save_IFS
  2526 fi
  2527 fi
  2528 CC=$ac_cv_prog_CC
  2529 if test -n "$CC"; then
  2530   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2531 $as_echo "$CC" >&6; }
  2532 else
  2533   { $as_echo "$as_me:$LINENO: result: no" >&5
  2534 $as_echo "no" >&6; }
  2535 fi
  2538 fi
  2539 if test -z "$ac_cv_prog_CC"; then
  2540   ac_ct_CC=$CC
  2541   # Extract the first word of "gcc", so it can be a program name with args.
  2542 set dummy gcc; ac_word=$2
  2543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2544 $as_echo_n "checking for $ac_word... " >&6; }
  2545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2546   $as_echo_n "(cached) " >&6
  2547 else
  2548   if test -n "$ac_ct_CC"; then
  2549   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2550 else
  2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2552 for as_dir in $PATH
  2553 do
  2554   IFS=$as_save_IFS
  2555   test -z "$as_dir" && as_dir=.
  2556   for ac_exec_ext in '' $ac_executable_extensions; do
  2557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2558     ac_cv_prog_ac_ct_CC="gcc"
  2559     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2560     break 2
  2561   fi
  2562 done
  2563 done
  2564 IFS=$as_save_IFS
  2566 fi
  2567 fi
  2568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2569 if test -n "$ac_ct_CC"; then
  2570   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2571 $as_echo "$ac_ct_CC" >&6; }
  2572 else
  2573   { $as_echo "$as_me:$LINENO: result: no" >&5
  2574 $as_echo "no" >&6; }
  2575 fi
  2577   if test "x$ac_ct_CC" = x; then
  2578     CC=""
  2579   else
  2580     case $cross_compiling:$ac_tool_warned in
  2581 yes:)
  2582 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2583 whose name does not start with the host triplet.  If you think this
  2584 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2585 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2586 whose name does not start with the host triplet.  If you think this
  2587 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2588 ac_tool_warned=yes ;;
  2589 esac
  2590     CC=$ac_ct_CC
  2591   fi
  2592 else
  2593   CC="$ac_cv_prog_CC"
  2594 fi
  2596 if test -z "$CC"; then
  2597           if test -n "$ac_tool_prefix"; then
  2598     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2599 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2601 $as_echo_n "checking for $ac_word... " >&6; }
  2602 if test "${ac_cv_prog_CC+set}" = set; then
  2603   $as_echo_n "(cached) " >&6
  2604 else
  2605   if test -n "$CC"; then
  2606   ac_cv_prog_CC="$CC" # Let the user override the test.
  2607 else
  2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2609 for as_dir in $PATH
  2610 do
  2611   IFS=$as_save_IFS
  2612   test -z "$as_dir" && as_dir=.
  2613   for ac_exec_ext in '' $ac_executable_extensions; do
  2614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2615     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2616     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2617     break 2
  2618   fi
  2619 done
  2620 done
  2621 IFS=$as_save_IFS
  2623 fi
  2624 fi
  2625 CC=$ac_cv_prog_CC
  2626 if test -n "$CC"; then
  2627   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2628 $as_echo "$CC" >&6; }
  2629 else
  2630   { $as_echo "$as_me:$LINENO: result: no" >&5
  2631 $as_echo "no" >&6; }
  2632 fi
  2635   fi
  2636 fi
  2637 if test -z "$CC"; then
  2638   # Extract the first word of "cc", so it can be a program name with args.
  2639 set dummy cc; ac_word=$2
  2640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2641 $as_echo_n "checking for $ac_word... " >&6; }
  2642 if test "${ac_cv_prog_CC+set}" = set; then
  2643   $as_echo_n "(cached) " >&6
  2644 else
  2645   if test -n "$CC"; then
  2646   ac_cv_prog_CC="$CC" # Let the user override the test.
  2647 else
  2648   ac_prog_rejected=no
  2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2650 for as_dir in $PATH
  2651 do
  2652   IFS=$as_save_IFS
  2653   test -z "$as_dir" && as_dir=.
  2654   for ac_exec_ext in '' $ac_executable_extensions; do
  2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2656     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2657        ac_prog_rejected=yes
  2658        continue
  2659      fi
  2660     ac_cv_prog_CC="cc"
  2661     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2662     break 2
  2663   fi
  2664 done
  2665 done
  2666 IFS=$as_save_IFS
  2668 if test $ac_prog_rejected = yes; then
  2669   # We found a bogon in the path, so make sure we never use it.
  2670   set dummy $ac_cv_prog_CC
  2671   shift
  2672   if test $# != 0; then
  2673     # We chose a different compiler from the bogus one.
  2674     # However, it has the same basename, so the bogon will be chosen
  2675     # first if we set CC to just the basename; use the full file name.
  2676     shift
  2677     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2678   fi
  2679 fi
  2680 fi
  2681 fi
  2682 CC=$ac_cv_prog_CC
  2683 if test -n "$CC"; then
  2684   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2685 $as_echo "$CC" >&6; }
  2686 else
  2687   { $as_echo "$as_me:$LINENO: result: no" >&5
  2688 $as_echo "no" >&6; }
  2689 fi
  2692 fi
  2693 if test -z "$CC"; then
  2694   if test -n "$ac_tool_prefix"; then
  2695   for ac_prog in cl.exe
  2696   do
  2697     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2700 $as_echo_n "checking for $ac_word... " >&6; }
  2701 if test "${ac_cv_prog_CC+set}" = set; then
  2702   $as_echo_n "(cached) " >&6
  2703 else
  2704   if test -n "$CC"; then
  2705   ac_cv_prog_CC="$CC" # Let the user override the test.
  2706 else
  2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2708 for as_dir in $PATH
  2709 do
  2710   IFS=$as_save_IFS
  2711   test -z "$as_dir" && as_dir=.
  2712   for ac_exec_ext in '' $ac_executable_extensions; do
  2713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2714     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2715     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2716     break 2
  2717   fi
  2718 done
  2719 done
  2720 IFS=$as_save_IFS
  2722 fi
  2723 fi
  2724 CC=$ac_cv_prog_CC
  2725 if test -n "$CC"; then
  2726   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2727 $as_echo "$CC" >&6; }
  2728 else
  2729   { $as_echo "$as_me:$LINENO: result: no" >&5
  2730 $as_echo "no" >&6; }
  2731 fi
  2734     test -n "$CC" && break
  2735   done
  2736 fi
  2737 if test -z "$CC"; then
  2738   ac_ct_CC=$CC
  2739   for ac_prog in cl.exe
  2740 do
  2741   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2742 set dummy $ac_prog; ac_word=$2
  2743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2744 $as_echo_n "checking for $ac_word... " >&6; }
  2745 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2746   $as_echo_n "(cached) " >&6
  2747 else
  2748   if test -n "$ac_ct_CC"; then
  2749   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2750 else
  2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2752 for as_dir in $PATH
  2753 do
  2754   IFS=$as_save_IFS
  2755   test -z "$as_dir" && as_dir=.
  2756   for ac_exec_ext in '' $ac_executable_extensions; do
  2757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2758     ac_cv_prog_ac_ct_CC="$ac_prog"
  2759     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2760     break 2
  2761   fi
  2762 done
  2763 done
  2764 IFS=$as_save_IFS
  2766 fi
  2767 fi
  2768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2769 if test -n "$ac_ct_CC"; then
  2770   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2771 $as_echo "$ac_ct_CC" >&6; }
  2772 else
  2773   { $as_echo "$as_me:$LINENO: result: no" >&5
  2774 $as_echo "no" >&6; }
  2775 fi
  2778   test -n "$ac_ct_CC" && break
  2779 done
  2781   if test "x$ac_ct_CC" = x; then
  2782     CC=""
  2783   else
  2784     case $cross_compiling:$ac_tool_warned in
  2785 yes:)
  2786 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2787 whose name does not start with the host triplet.  If you think this
  2788 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2789 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2790 whose name does not start with the host triplet.  If you think this
  2791 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2792 ac_tool_warned=yes ;;
  2793 esac
  2794     CC=$ac_ct_CC
  2795   fi
  2796 fi
  2798 fi
  2801 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2802 See \`config.log' for more details." >&5
  2803 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2804 See \`config.log' for more details." >&2;}
  2805    { (exit 1); exit 1; }; }
  2807 # Provide some information about the compiler.
  2808 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2809 set X $ac_compile
  2810 ac_compiler=$2
  2811 { (ac_try="$ac_compiler --version >&5"
  2812 case "(($ac_try" in
  2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2814   *) ac_try_echo=$ac_try;;
  2815 esac
  2816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2817 $as_echo "$ac_try_echo") >&5
  2818   (eval "$ac_compiler --version >&5") 2>&5
  2819   ac_status=$?
  2820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2821   (exit $ac_status); }
  2822 { (ac_try="$ac_compiler -v >&5"
  2823 case "(($ac_try" in
  2824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2825   *) ac_try_echo=$ac_try;;
  2826 esac
  2827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2828 $as_echo "$ac_try_echo") >&5
  2829   (eval "$ac_compiler -v >&5") 2>&5
  2830   ac_status=$?
  2831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2832   (exit $ac_status); }
  2833 { (ac_try="$ac_compiler -V >&5"
  2834 case "(($ac_try" in
  2835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2836   *) ac_try_echo=$ac_try;;
  2837 esac
  2838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2839 $as_echo "$ac_try_echo") >&5
  2840   (eval "$ac_compiler -V >&5") 2>&5
  2841   ac_status=$?
  2842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2843   (exit $ac_status); }
  2845 cat >conftest.$ac_ext <<_ACEOF
  2846 /* confdefs.h.  */
  2847 _ACEOF
  2848 cat confdefs.h >>conftest.$ac_ext
  2849 cat >>conftest.$ac_ext <<_ACEOF
  2850 /* end confdefs.h.  */
  2852 int
  2853 main ()
  2857   return 0;
  2859 _ACEOF
  2860 ac_clean_files_save=$ac_clean_files
  2861 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2862 # Try to create an executable without -o first, disregard a.out.
  2863 # It will help us diagnose broken compilers, and finding out an intuition
  2864 # of exeext.
  2865 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2866 $as_echo_n "checking for C compiler default output file name... " >&6; }
  2867 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2869 # The possible output files:
  2870 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2872 ac_rmfiles=
  2873 for ac_file in $ac_files
  2874 do
  2875   case $ac_file in
  2876     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2877     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2878   esac
  2879 done
  2880 rm -f $ac_rmfiles
  2882 if { (ac_try="$ac_link_default"
  2883 case "(($ac_try" in
  2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2885   *) ac_try_echo=$ac_try;;
  2886 esac
  2887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2888 $as_echo "$ac_try_echo") >&5
  2889   (eval "$ac_link_default") 2>&5
  2890   ac_status=$?
  2891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2892   (exit $ac_status); }; then
  2893   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2894 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2895 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2896 # so that the user can short-circuit this test for compilers unknown to
  2897 # Autoconf.
  2898 for ac_file in $ac_files ''
  2899 do
  2900   test -f "$ac_file" || continue
  2901   case $ac_file in
  2902     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2903 	;;
  2904     [ab].out )
  2905 	# We found the default executable, but exeext='' is most
  2906 	# certainly right.
  2907 	break;;
  2908     *.* )
  2909         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2910 	then :; else
  2911 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2912 	fi
  2913 	# We set ac_cv_exeext here because the later test for it is not
  2914 	# safe: cross compilers may not add the suffix if given an `-o'
  2915 	# argument, so we may need to know it at that point already.
  2916 	# Even if this section looks crufty: it has the advantage of
  2917 	# actually working.
  2918 	break;;
  2919     * )
  2920 	break;;
  2921   esac
  2922 done
  2923 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2925 else
  2926   ac_file=''
  2927 fi
  2929 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2930 $as_echo "$ac_file" >&6; }
  2931 if test -z "$ac_file"; then
  2932   $as_echo "$as_me: failed program was:" >&5
  2933 sed 's/^/| /' conftest.$ac_ext >&5
  2935 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2936 See \`config.log' for more details." >&5
  2937 $as_echo "$as_me: error: C compiler cannot create executables
  2938 See \`config.log' for more details." >&2;}
  2939    { (exit 77); exit 77; }; }
  2940 fi
  2942 ac_exeext=$ac_cv_exeext
  2944 # Check that the compiler produces executables we can run.  If not, either
  2945 # the compiler is broken, or we cross compile.
  2946 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2947 $as_echo_n "checking whether the C compiler works... " >&6; }
  2948 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2949 # If not cross compiling, check that we can run a simple program.
  2950 if test "$cross_compiling" != yes; then
  2951   if { ac_try='./$ac_file'
  2952   { (case "(($ac_try" in
  2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2954   *) ac_try_echo=$ac_try;;
  2955 esac
  2956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2957 $as_echo "$ac_try_echo") >&5
  2958   (eval "$ac_try") 2>&5
  2959   ac_status=$?
  2960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2961   (exit $ac_status); }; }; then
  2962     cross_compiling=no
  2963   else
  2964     if test "$cross_compiling" = maybe; then
  2965 	cross_compiling=yes
  2966     else
  2967 	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2968 If you meant to cross compile, use \`--host'.
  2969 See \`config.log' for more details." >&5
  2970 $as_echo "$as_me: error: cannot run C compiled programs.
  2971 If you meant to cross compile, use \`--host'.
  2972 See \`config.log' for more details." >&2;}
  2973    { (exit 1); exit 1; }; }
  2974     fi
  2975   fi
  2976 fi
  2977 { $as_echo "$as_me:$LINENO: result: yes" >&5
  2978 $as_echo "yes" >&6; }
  2980 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2981 ac_clean_files=$ac_clean_files_save
  2982 # Check that the compiler produces executables we can run.  If not, either
  2983 # the compiler is broken, or we cross compile.
  2984 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2985 $as_echo_n "checking whether we are cross compiling... " >&6; }
  2986 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2987 $as_echo "$cross_compiling" >&6; }
  2989 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2990 $as_echo_n "checking for suffix of executables... " >&6; }
  2991 if { (ac_try="$ac_link"
  2992 case "(($ac_try" in
  2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2994   *) ac_try_echo=$ac_try;;
  2995 esac
  2996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2997 $as_echo "$ac_try_echo") >&5
  2998   (eval "$ac_link") 2>&5
  2999   ac_status=$?
  3000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3001   (exit $ac_status); }; then
  3002   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3003 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3004 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3005 # `rm'.
  3006 for ac_file in conftest.exe conftest conftest.*; do
  3007   test -f "$ac_file" || continue
  3008   case $ac_file in
  3009     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3010     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3011 	  break;;
  3012     * ) break;;
  3013   esac
  3014 done
  3015 else
  3016   { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3017 See \`config.log' for more details." >&5
  3018 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3019 See \`config.log' for more details." >&2;}
  3020    { (exit 1); exit 1; }; }
  3021 fi
  3023 rm -f conftest$ac_cv_exeext
  3024 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3025 $as_echo "$ac_cv_exeext" >&6; }
  3027 rm -f conftest.$ac_ext
  3028 EXEEXT=$ac_cv_exeext
  3029 ac_exeext=$EXEEXT
  3030 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3031 $as_echo_n "checking for suffix of object files... " >&6; }
  3032 if test "${ac_cv_objext+set}" = set; then
  3033   $as_echo_n "(cached) " >&6
  3034 else
  3035   cat >conftest.$ac_ext <<_ACEOF
  3036 /* confdefs.h.  */
  3037 _ACEOF
  3038 cat confdefs.h >>conftest.$ac_ext
  3039 cat >>conftest.$ac_ext <<_ACEOF
  3040 /* end confdefs.h.  */
  3042 int
  3043 main ()
  3047   return 0;
  3049 _ACEOF
  3050 rm -f conftest.o conftest.obj
  3051 if { (ac_try="$ac_compile"
  3052 case "(($ac_try" in
  3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3054   *) ac_try_echo=$ac_try;;
  3055 esac
  3056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3057 $as_echo "$ac_try_echo") >&5
  3058   (eval "$ac_compile") 2>&5
  3059   ac_status=$?
  3060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3061   (exit $ac_status); }; then
  3062   for ac_file in conftest.o conftest.obj conftest.*; do
  3063   test -f "$ac_file" || continue;
  3064   case $ac_file in
  3065     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3066     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3067        break;;
  3068   esac
  3069 done
  3070 else
  3071   $as_echo "$as_me: failed program was:" >&5
  3072 sed 's/^/| /' conftest.$ac_ext >&5
  3074 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3075 See \`config.log' for more details." >&5
  3076 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3077 See \`config.log' for more details." >&2;}
  3078    { (exit 1); exit 1; }; }
  3079 fi
  3081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3082 fi
  3083 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3084 $as_echo "$ac_cv_objext" >&6; }
  3085 OBJEXT=$ac_cv_objext
  3086 ac_objext=$OBJEXT
  3087 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3088 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3089 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3090   $as_echo_n "(cached) " >&6
  3091 else
  3092   cat >conftest.$ac_ext <<_ACEOF
  3093 /* confdefs.h.  */
  3094 _ACEOF
  3095 cat confdefs.h >>conftest.$ac_ext
  3096 cat >>conftest.$ac_ext <<_ACEOF
  3097 /* end confdefs.h.  */
  3099 int
  3100 main ()
  3102 #ifndef __GNUC__
  3103        choke me
  3104 #endif
  3107   return 0;
  3109 _ACEOF
  3110 rm -f conftest.$ac_objext
  3111 if { (ac_try="$ac_compile"
  3112 case "(($ac_try" in
  3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3114   *) ac_try_echo=$ac_try;;
  3115 esac
  3116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3117 $as_echo "$ac_try_echo") >&5
  3118   (eval "$ac_compile") 2>conftest.er1
  3119   ac_status=$?
  3120   grep -v '^ *+' conftest.er1 >conftest.err
  3121   rm -f conftest.er1
  3122   cat conftest.err >&5
  3123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3124   (exit $ac_status); } && {
  3125 	 test -z "$ac_c_werror_flag" ||
  3126 	 test ! -s conftest.err
  3127        } && test -s conftest.$ac_objext; then
  3128   ac_compiler_gnu=yes
  3129 else
  3130   $as_echo "$as_me: failed program was:" >&5
  3131 sed 's/^/| /' conftest.$ac_ext >&5
  3133 	ac_compiler_gnu=no
  3134 fi
  3136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3137 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3139 fi
  3140 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3142 if test $ac_compiler_gnu = yes; then
  3143   GCC=yes
  3144 else
  3145   GCC=
  3146 fi
  3147 ac_test_CFLAGS=${CFLAGS+set}
  3148 ac_save_CFLAGS=$CFLAGS
  3149 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3151 if test "${ac_cv_prog_cc_g+set}" = set; then
  3152   $as_echo_n "(cached) " >&6
  3153 else
  3154   ac_save_c_werror_flag=$ac_c_werror_flag
  3155    ac_c_werror_flag=yes
  3156    ac_cv_prog_cc_g=no
  3157    CFLAGS="-g"
  3158    cat >conftest.$ac_ext <<_ACEOF
  3159 /* confdefs.h.  */
  3160 _ACEOF
  3161 cat confdefs.h >>conftest.$ac_ext
  3162 cat >>conftest.$ac_ext <<_ACEOF
  3163 /* end confdefs.h.  */
  3165 int
  3166 main ()
  3170   return 0;
  3172 _ACEOF
  3173 rm -f conftest.$ac_objext
  3174 if { (ac_try="$ac_compile"
  3175 case "(($ac_try" in
  3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3177   *) ac_try_echo=$ac_try;;
  3178 esac
  3179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3180 $as_echo "$ac_try_echo") >&5
  3181   (eval "$ac_compile") 2>conftest.er1
  3182   ac_status=$?
  3183   grep -v '^ *+' conftest.er1 >conftest.err
  3184   rm -f conftest.er1
  3185   cat conftest.err >&5
  3186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3187   (exit $ac_status); } && {
  3188 	 test -z "$ac_c_werror_flag" ||
  3189 	 test ! -s conftest.err
  3190        } && test -s conftest.$ac_objext; then
  3191   ac_cv_prog_cc_g=yes
  3192 else
  3193   $as_echo "$as_me: failed program was:" >&5
  3194 sed 's/^/| /' conftest.$ac_ext >&5
  3196 	CFLAGS=""
  3197       cat >conftest.$ac_ext <<_ACEOF
  3198 /* confdefs.h.  */
  3199 _ACEOF
  3200 cat confdefs.h >>conftest.$ac_ext
  3201 cat >>conftest.$ac_ext <<_ACEOF
  3202 /* end confdefs.h.  */
  3204 int
  3205 main ()
  3209   return 0;
  3211 _ACEOF
  3212 rm -f conftest.$ac_objext
  3213 if { (ac_try="$ac_compile"
  3214 case "(($ac_try" in
  3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3216   *) ac_try_echo=$ac_try;;
  3217 esac
  3218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3219 $as_echo "$ac_try_echo") >&5
  3220   (eval "$ac_compile") 2>conftest.er1
  3221   ac_status=$?
  3222   grep -v '^ *+' conftest.er1 >conftest.err
  3223   rm -f conftest.er1
  3224   cat conftest.err >&5
  3225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3226   (exit $ac_status); } && {
  3227 	 test -z "$ac_c_werror_flag" ||
  3228 	 test ! -s conftest.err
  3229        } && test -s conftest.$ac_objext; then
  3231 else
  3232   $as_echo "$as_me: failed program was:" >&5
  3233 sed 's/^/| /' conftest.$ac_ext >&5
  3235 	ac_c_werror_flag=$ac_save_c_werror_flag
  3236 	 CFLAGS="-g"
  3237 	 cat >conftest.$ac_ext <<_ACEOF
  3238 /* confdefs.h.  */
  3239 _ACEOF
  3240 cat confdefs.h >>conftest.$ac_ext
  3241 cat >>conftest.$ac_ext <<_ACEOF
  3242 /* end confdefs.h.  */
  3244 int
  3245 main ()
  3249   return 0;
  3251 _ACEOF
  3252 rm -f conftest.$ac_objext
  3253 if { (ac_try="$ac_compile"
  3254 case "(($ac_try" in
  3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3256   *) ac_try_echo=$ac_try;;
  3257 esac
  3258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3259 $as_echo "$ac_try_echo") >&5
  3260   (eval "$ac_compile") 2>conftest.er1
  3261   ac_status=$?
  3262   grep -v '^ *+' conftest.er1 >conftest.err
  3263   rm -f conftest.er1
  3264   cat conftest.err >&5
  3265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3266   (exit $ac_status); } && {
  3267 	 test -z "$ac_c_werror_flag" ||
  3268 	 test ! -s conftest.err
  3269        } && test -s conftest.$ac_objext; then
  3270   ac_cv_prog_cc_g=yes
  3271 else
  3272   $as_echo "$as_me: failed program was:" >&5
  3273 sed 's/^/| /' conftest.$ac_ext >&5
  3276 fi
  3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3279 fi
  3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3282 fi
  3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3285    ac_c_werror_flag=$ac_save_c_werror_flag
  3286 fi
  3287 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3288 $as_echo "$ac_cv_prog_cc_g" >&6; }
  3289 if test "$ac_test_CFLAGS" = set; then
  3290   CFLAGS=$ac_save_CFLAGS
  3291 elif test $ac_cv_prog_cc_g = yes; then
  3292   if test "$GCC" = yes; then
  3293     CFLAGS="-g -O2"
  3294   else
  3295     CFLAGS="-g"
  3296   fi
  3297 else
  3298   if test "$GCC" = yes; then
  3299     CFLAGS="-O2"
  3300   else
  3301     CFLAGS=
  3302   fi
  3303 fi
  3304 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3305 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3306 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3307   $as_echo_n "(cached) " >&6
  3308 else
  3309   ac_cv_prog_cc_c89=no
  3310 ac_save_CC=$CC
  3311 cat >conftest.$ac_ext <<_ACEOF
  3312 /* confdefs.h.  */
  3313 _ACEOF
  3314 cat confdefs.h >>conftest.$ac_ext
  3315 cat >>conftest.$ac_ext <<_ACEOF
  3316 /* end confdefs.h.  */
  3317 #include <stdarg.h>
  3318 #include <stdio.h>
  3319 #include <sys/types.h>
  3320 #include <sys/stat.h>
  3321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3322 struct buf { int x; };
  3323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3324 static char *e (p, i)
  3325      char **p;
  3326      int i;
  3328   return p[i];
  3330 static char *f (char * (*g) (char **, int), char **p, ...)
  3332   char *s;
  3333   va_list v;
  3334   va_start (v,p);
  3335   s = g (p, va_arg (v,int));
  3336   va_end (v);
  3337   return s;
  3340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3341    function prototypes and stuff, but not '\xHH' hex character constants.
  3342    These don't provoke an error unfortunately, instead are silently treated
  3343    as 'x'.  The following induces an error, until -std is added to get
  3344    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3345    array size at least.  It's necessary to write '\x00'==0 to get something
  3346    that's true only with -std.  */
  3347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3350    inside strings and character constants.  */
  3351 #define FOO(x) 'x'
  3352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3354 int test (int i, double x);
  3355 struct s1 {int (*f) (int a);};
  3356 struct s2 {int (*f) (double a);};
  3357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3358 int argc;
  3359 char **argv;
  3360 int
  3361 main ()
  3363 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3365   return 0;
  3367 _ACEOF
  3368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3369 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3370 do
  3371   CC="$ac_save_CC $ac_arg"
  3372   rm -f conftest.$ac_objext
  3373 if { (ac_try="$ac_compile"
  3374 case "(($ac_try" in
  3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3376   *) ac_try_echo=$ac_try;;
  3377 esac
  3378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3379 $as_echo "$ac_try_echo") >&5
  3380   (eval "$ac_compile") 2>conftest.er1
  3381   ac_status=$?
  3382   grep -v '^ *+' conftest.er1 >conftest.err
  3383   rm -f conftest.er1
  3384   cat conftest.err >&5
  3385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3386   (exit $ac_status); } && {
  3387 	 test -z "$ac_c_werror_flag" ||
  3388 	 test ! -s conftest.err
  3389        } && test -s conftest.$ac_objext; then
  3390   ac_cv_prog_cc_c89=$ac_arg
  3391 else
  3392   $as_echo "$as_me: failed program was:" >&5
  3393 sed 's/^/| /' conftest.$ac_ext >&5
  3396 fi
  3398 rm -f core conftest.err conftest.$ac_objext
  3399   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3400 done
  3401 rm -f conftest.$ac_ext
  3402 CC=$ac_save_CC
  3404 fi
  3405 # AC_CACHE_VAL
  3406 case "x$ac_cv_prog_cc_c89" in
  3407   x)
  3408     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3409 $as_echo "none needed" >&6; } ;;
  3410   xno)
  3411     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3412 $as_echo "unsupported" >&6; } ;;
  3413   *)
  3414     CC="$CC $ac_cv_prog_cc_c89"
  3415     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3417 esac
  3420 ac_ext=c
  3421 ac_cpp='$CPP $CPPFLAGS'
  3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3426 depcc="$CC"   am_compiler_list=
  3428 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3429 $as_echo_n "checking dependency style of $depcc... " >&6; }
  3430 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3431   $as_echo_n "(cached) " >&6
  3432 else
  3433   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3434   # We make a subdir and do the tests there.  Otherwise we can end up
  3435   # making bogus files that we don't know about and never remove.  For
  3436   # instance it was reported that on HP-UX the gcc test will end up
  3437   # making a dummy file named `D' -- because `-MD' means `put the output
  3438   # in D'.
  3439   mkdir conftest.dir
  3440   # Copy depcomp to subdir because otherwise we won't find it if we're
  3441   # using a relative directory.
  3442   cp "$am_depcomp" conftest.dir
  3443   cd conftest.dir
  3444   # We will build objects and dependencies in a subdirectory because
  3445   # it helps to detect inapplicable dependency modes.  For instance
  3446   # both Tru64's cc and ICC support -MD to output dependencies as a
  3447   # side effect of compilation, but ICC will put the dependencies in
  3448   # the current directory while Tru64 will put them in the object
  3449   # directory.
  3450   mkdir sub
  3452   am_cv_CC_dependencies_compiler_type=none
  3453   if test "$am_compiler_list" = ""; then
  3454      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3455   fi
  3456   for depmode in $am_compiler_list; do
  3457     # Setup a source with many dependencies, because some compilers
  3458     # like to wrap large dependency lists on column 80 (with \), and
  3459     # we should not choose a depcomp mode which is confused by this.
  3461     # We need to recreate these files for each test, as the compiler may
  3462     # overwrite some of them when testing with obscure command lines.
  3463     # This happens at least with the AIX C compiler.
  3464     : > sub/conftest.c
  3465     for i in 1 2 3 4 5 6; do
  3466       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3467       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3468       # Solaris 8's {/usr,}/bin/sh.
  3469       touch sub/conftst$i.h
  3470     done
  3471     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3473     case $depmode in
  3474     nosideeffect)
  3475       # after this tag, mechanisms are not by side-effect, so they'll
  3476       # only be used when explicitly requested
  3477       if test "x$enable_dependency_tracking" = xyes; then
  3478 	continue
  3479       else
  3480 	break
  3481       fi
  3482       ;;
  3483     none) break ;;
  3484     esac
  3485     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3486     # mode.  It turns out that the SunPro C++ compiler does not properly
  3487     # handle `-M -o', and we need to detect this.
  3488     if depmode=$depmode \
  3489        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3490        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3491        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3492          >/dev/null 2>conftest.err &&
  3493        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3494        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3495        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3496       # icc doesn't choke on unknown options, it will just issue warnings
  3497       # or remarks (even with -Werror).  So we grep stderr for any message
  3498       # that says an option was ignored or not supported.
  3499       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3500       #   icc: Command line warning: ignoring option '-M'; no argument required
  3501       # The diagnosis changed in icc 8.0:
  3502       #   icc: Command line remark: option '-MP' not supported
  3503       if (grep 'ignoring option' conftest.err ||
  3504           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3505         am_cv_CC_dependencies_compiler_type=$depmode
  3506         break
  3507       fi
  3508     fi
  3509   done
  3511   cd ..
  3512   rm -rf conftest.dir
  3513 else
  3514   am_cv_CC_dependencies_compiler_type=none
  3515 fi
  3517 fi
  3518 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3519 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3520 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3524 if
  3525   test "x$enable_dependency_tracking" != xno \
  3526   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3527   am__fastdepCC_TRUE=
  3528   am__fastdepCC_FALSE='#'
  3529 else
  3530   am__fastdepCC_TRUE='#'
  3531   am__fastdepCC_FALSE=
  3532 fi
  3537         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3538 $as_echo_n "checking for strerror in -lcposix... " >&6; }
  3539 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3540   $as_echo_n "(cached) " >&6
  3541 else
  3542   ac_check_lib_save_LIBS=$LIBS
  3543 LIBS="-lcposix  $LIBS"
  3544 cat >conftest.$ac_ext <<_ACEOF
  3545 /* confdefs.h.  */
  3546 _ACEOF
  3547 cat confdefs.h >>conftest.$ac_ext
  3548 cat >>conftest.$ac_ext <<_ACEOF
  3549 /* end confdefs.h.  */
  3551 /* Override any GCC internal prototype to avoid an error.
  3552    Use char because int might match the return type of a GCC
  3553    builtin and then its argument prototype would still apply.  */
  3554 #ifdef __cplusplus
  3555 extern "C"
  3556 #endif
  3557 char strerror ();
  3558 int
  3559 main ()
  3561 return strerror ();
  3563   return 0;
  3565 _ACEOF
  3566 rm -f conftest.$ac_objext conftest$ac_exeext
  3567 if { (ac_try="$ac_link"
  3568 case "(($ac_try" in
  3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3570   *) ac_try_echo=$ac_try;;
  3571 esac
  3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3573 $as_echo "$ac_try_echo") >&5
  3574   (eval "$ac_link") 2>conftest.er1
  3575   ac_status=$?
  3576   grep -v '^ *+' conftest.er1 >conftest.err
  3577   rm -f conftest.er1
  3578   cat conftest.err >&5
  3579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3580   (exit $ac_status); } && {
  3581 	 test -z "$ac_c_werror_flag" ||
  3582 	 test ! -s conftest.err
  3583        } && test -s conftest$ac_exeext && {
  3584 	 test "$cross_compiling" = yes ||
  3585 	 $as_test_x conftest$ac_exeext
  3586        }; then
  3587   ac_cv_lib_cposix_strerror=yes
  3588 else
  3589   $as_echo "$as_me: failed program was:" >&5
  3590 sed 's/^/| /' conftest.$ac_ext >&5
  3592 	ac_cv_lib_cposix_strerror=no
  3593 fi
  3595 rm -rf conftest.dSYM
  3596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3597       conftest$ac_exeext conftest.$ac_ext
  3598 LIBS=$ac_check_lib_save_LIBS
  3599 fi
  3600 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3601 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3602 if test $ac_cv_lib_cposix_strerror = yes; then
  3603   LIBS="$LIBS -lcposix"
  3604 fi
  3608 ac_ext=c
  3609 ac_cpp='$CPP $CPPFLAGS'
  3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3613 if test -n "$ac_tool_prefix"; then
  3614   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3617 $as_echo_n "checking for $ac_word... " >&6; }
  3618 if test "${ac_cv_prog_CC+set}" = set; then
  3619   $as_echo_n "(cached) " >&6
  3620 else
  3621   if test -n "$CC"; then
  3622   ac_cv_prog_CC="$CC" # Let the user override the test.
  3623 else
  3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3625 for as_dir in $PATH
  3626 do
  3627   IFS=$as_save_IFS
  3628   test -z "$as_dir" && as_dir=.
  3629   for ac_exec_ext in '' $ac_executable_extensions; do
  3630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3631     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3632     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3633     break 2
  3634   fi
  3635 done
  3636 done
  3637 IFS=$as_save_IFS
  3639 fi
  3640 fi
  3641 CC=$ac_cv_prog_CC
  3642 if test -n "$CC"; then
  3643   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3644 $as_echo "$CC" >&6; }
  3645 else
  3646   { $as_echo "$as_me:$LINENO: result: no" >&5
  3647 $as_echo "no" >&6; }
  3648 fi
  3651 fi
  3652 if test -z "$ac_cv_prog_CC"; then
  3653   ac_ct_CC=$CC
  3654   # Extract the first word of "gcc", so it can be a program name with args.
  3655 set dummy gcc; ac_word=$2
  3656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3657 $as_echo_n "checking for $ac_word... " >&6; }
  3658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3659   $as_echo_n "(cached) " >&6
  3660 else
  3661   if test -n "$ac_ct_CC"; then
  3662   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3663 else
  3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3665 for as_dir in $PATH
  3666 do
  3667   IFS=$as_save_IFS
  3668   test -z "$as_dir" && as_dir=.
  3669   for ac_exec_ext in '' $ac_executable_extensions; do
  3670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3671     ac_cv_prog_ac_ct_CC="gcc"
  3672     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3673     break 2
  3674   fi
  3675 done
  3676 done
  3677 IFS=$as_save_IFS
  3679 fi
  3680 fi
  3681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3682 if test -n "$ac_ct_CC"; then
  3683   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3684 $as_echo "$ac_ct_CC" >&6; }
  3685 else
  3686   { $as_echo "$as_me:$LINENO: result: no" >&5
  3687 $as_echo "no" >&6; }
  3688 fi
  3690   if test "x$ac_ct_CC" = x; then
  3691     CC=""
  3692   else
  3693     case $cross_compiling:$ac_tool_warned in
  3694 yes:)
  3695 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3696 whose name does not start with the host triplet.  If you think this
  3697 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3698 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3699 whose name does not start with the host triplet.  If you think this
  3700 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3701 ac_tool_warned=yes ;;
  3702 esac
  3703     CC=$ac_ct_CC
  3704   fi
  3705 else
  3706   CC="$ac_cv_prog_CC"
  3707 fi
  3709 if test -z "$CC"; then
  3710           if test -n "$ac_tool_prefix"; then
  3711     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3712 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3713 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3714 $as_echo_n "checking for $ac_word... " >&6; }
  3715 if test "${ac_cv_prog_CC+set}" = set; then
  3716   $as_echo_n "(cached) " >&6
  3717 else
  3718   if test -n "$CC"; then
  3719   ac_cv_prog_CC="$CC" # Let the user override the test.
  3720 else
  3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3722 for as_dir in $PATH
  3723 do
  3724   IFS=$as_save_IFS
  3725   test -z "$as_dir" && as_dir=.
  3726   for ac_exec_ext in '' $ac_executable_extensions; do
  3727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3728     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3729     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3730     break 2
  3731   fi
  3732 done
  3733 done
  3734 IFS=$as_save_IFS
  3736 fi
  3737 fi
  3738 CC=$ac_cv_prog_CC
  3739 if test -n "$CC"; then
  3740   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3741 $as_echo "$CC" >&6; }
  3742 else
  3743   { $as_echo "$as_me:$LINENO: result: no" >&5
  3744 $as_echo "no" >&6; }
  3745 fi
  3748   fi
  3749 fi
  3750 if test -z "$CC"; then
  3751   # Extract the first word of "cc", so it can be a program name with args.
  3752 set dummy cc; ac_word=$2
  3753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3754 $as_echo_n "checking for $ac_word... " >&6; }
  3755 if test "${ac_cv_prog_CC+set}" = set; then
  3756   $as_echo_n "(cached) " >&6
  3757 else
  3758   if test -n "$CC"; then
  3759   ac_cv_prog_CC="$CC" # Let the user override the test.
  3760 else
  3761   ac_prog_rejected=no
  3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3763 for as_dir in $PATH
  3764 do
  3765   IFS=$as_save_IFS
  3766   test -z "$as_dir" && as_dir=.
  3767   for ac_exec_ext in '' $ac_executable_extensions; do
  3768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3769     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3770        ac_prog_rejected=yes
  3771        continue
  3772      fi
  3773     ac_cv_prog_CC="cc"
  3774     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3775     break 2
  3776   fi
  3777 done
  3778 done
  3779 IFS=$as_save_IFS
  3781 if test $ac_prog_rejected = yes; then
  3782   # We found a bogon in the path, so make sure we never use it.
  3783   set dummy $ac_cv_prog_CC
  3784   shift
  3785   if test $# != 0; then
  3786     # We chose a different compiler from the bogus one.
  3787     # However, it has the same basename, so the bogon will be chosen
  3788     # first if we set CC to just the basename; use the full file name.
  3789     shift
  3790     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3791   fi
  3792 fi
  3793 fi
  3794 fi
  3795 CC=$ac_cv_prog_CC
  3796 if test -n "$CC"; then
  3797   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3798 $as_echo "$CC" >&6; }
  3799 else
  3800   { $as_echo "$as_me:$LINENO: result: no" >&5
  3801 $as_echo "no" >&6; }
  3802 fi
  3805 fi
  3806 if test -z "$CC"; then
  3807   if test -n "$ac_tool_prefix"; then
  3808   for ac_prog in cl.exe
  3809   do
  3810     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3812 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3813 $as_echo_n "checking for $ac_word... " >&6; }
  3814 if test "${ac_cv_prog_CC+set}" = set; then
  3815   $as_echo_n "(cached) " >&6
  3816 else
  3817   if test -n "$CC"; then
  3818   ac_cv_prog_CC="$CC" # Let the user override the test.
  3819 else
  3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3821 for as_dir in $PATH
  3822 do
  3823   IFS=$as_save_IFS
  3824   test -z "$as_dir" && as_dir=.
  3825   for ac_exec_ext in '' $ac_executable_extensions; do
  3826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3827     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3828     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3829     break 2
  3830   fi
  3831 done
  3832 done
  3833 IFS=$as_save_IFS
  3835 fi
  3836 fi
  3837 CC=$ac_cv_prog_CC
  3838 if test -n "$CC"; then
  3839   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3840 $as_echo "$CC" >&6; }
  3841 else
  3842   { $as_echo "$as_me:$LINENO: result: no" >&5
  3843 $as_echo "no" >&6; }
  3844 fi
  3847     test -n "$CC" && break
  3848   done
  3849 fi
  3850 if test -z "$CC"; then
  3851   ac_ct_CC=$CC
  3852   for ac_prog in cl.exe
  3853 do
  3854   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3855 set dummy $ac_prog; ac_word=$2
  3856 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3857 $as_echo_n "checking for $ac_word... " >&6; }
  3858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3859   $as_echo_n "(cached) " >&6
  3860 else
  3861   if test -n "$ac_ct_CC"; then
  3862   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3863 else
  3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3865 for as_dir in $PATH
  3866 do
  3867   IFS=$as_save_IFS
  3868   test -z "$as_dir" && as_dir=.
  3869   for ac_exec_ext in '' $ac_executable_extensions; do
  3870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3871     ac_cv_prog_ac_ct_CC="$ac_prog"
  3872     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3873     break 2
  3874   fi
  3875 done
  3876 done
  3877 IFS=$as_save_IFS
  3879 fi
  3880 fi
  3881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3882 if test -n "$ac_ct_CC"; then
  3883   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3884 $as_echo "$ac_ct_CC" >&6; }
  3885 else
  3886   { $as_echo "$as_me:$LINENO: result: no" >&5
  3887 $as_echo "no" >&6; }
  3888 fi
  3891   test -n "$ac_ct_CC" && break
  3892 done
  3894   if test "x$ac_ct_CC" = x; then
  3895     CC=""
  3896   else
  3897     case $cross_compiling:$ac_tool_warned in
  3898 yes:)
  3899 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3900 whose name does not start with the host triplet.  If you think this
  3901 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3902 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3903 whose name does not start with the host triplet.  If you think this
  3904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3905 ac_tool_warned=yes ;;
  3906 esac
  3907     CC=$ac_ct_CC
  3908   fi
  3909 fi
  3911 fi
  3914 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3915 See \`config.log' for more details." >&5
  3916 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3917 See \`config.log' for more details." >&2;}
  3918    { (exit 1); exit 1; }; }
  3920 # Provide some information about the compiler.
  3921 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3922 set X $ac_compile
  3923 ac_compiler=$2
  3924 { (ac_try="$ac_compiler --version >&5"
  3925 case "(($ac_try" in
  3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3927   *) ac_try_echo=$ac_try;;
  3928 esac
  3929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3930 $as_echo "$ac_try_echo") >&5
  3931   (eval "$ac_compiler --version >&5") 2>&5
  3932   ac_status=$?
  3933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3934   (exit $ac_status); }
  3935 { (ac_try="$ac_compiler -v >&5"
  3936 case "(($ac_try" in
  3937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3938   *) ac_try_echo=$ac_try;;
  3939 esac
  3940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3941 $as_echo "$ac_try_echo") >&5
  3942   (eval "$ac_compiler -v >&5") 2>&5
  3943   ac_status=$?
  3944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3945   (exit $ac_status); }
  3946 { (ac_try="$ac_compiler -V >&5"
  3947 case "(($ac_try" in
  3948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3949   *) ac_try_echo=$ac_try;;
  3950 esac
  3951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3952 $as_echo "$ac_try_echo") >&5
  3953   (eval "$ac_compiler -V >&5") 2>&5
  3954   ac_status=$?
  3955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3956   (exit $ac_status); }
  3958 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3959 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3960 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3961   $as_echo_n "(cached) " >&6
  3962 else
  3963   cat >conftest.$ac_ext <<_ACEOF
  3964 /* confdefs.h.  */
  3965 _ACEOF
  3966 cat confdefs.h >>conftest.$ac_ext
  3967 cat >>conftest.$ac_ext <<_ACEOF
  3968 /* end confdefs.h.  */
  3970 int
  3971 main ()
  3973 #ifndef __GNUC__
  3974        choke me
  3975 #endif
  3978   return 0;
  3980 _ACEOF
  3981 rm -f conftest.$ac_objext
  3982 if { (ac_try="$ac_compile"
  3983 case "(($ac_try" in
  3984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3985   *) ac_try_echo=$ac_try;;
  3986 esac
  3987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3988 $as_echo "$ac_try_echo") >&5
  3989   (eval "$ac_compile") 2>conftest.er1
  3990   ac_status=$?
  3991   grep -v '^ *+' conftest.er1 >conftest.err
  3992   rm -f conftest.er1
  3993   cat conftest.err >&5
  3994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3995   (exit $ac_status); } && {
  3996 	 test -z "$ac_c_werror_flag" ||
  3997 	 test ! -s conftest.err
  3998        } && test -s conftest.$ac_objext; then
  3999   ac_compiler_gnu=yes
  4000 else
  4001   $as_echo "$as_me: failed program was:" >&5
  4002 sed 's/^/| /' conftest.$ac_ext >&5
  4004 	ac_compiler_gnu=no
  4005 fi
  4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4008 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4010 fi
  4011 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4012 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4013 if test $ac_compiler_gnu = yes; then
  4014   GCC=yes
  4015 else
  4016   GCC=
  4017 fi
  4018 ac_test_CFLAGS=${CFLAGS+set}
  4019 ac_save_CFLAGS=$CFLAGS
  4020 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4021 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4022 if test "${ac_cv_prog_cc_g+set}" = set; then
  4023   $as_echo_n "(cached) " >&6
  4024 else
  4025   ac_save_c_werror_flag=$ac_c_werror_flag
  4026    ac_c_werror_flag=yes
  4027    ac_cv_prog_cc_g=no
  4028    CFLAGS="-g"
  4029    cat >conftest.$ac_ext <<_ACEOF
  4030 /* confdefs.h.  */
  4031 _ACEOF
  4032 cat confdefs.h >>conftest.$ac_ext
  4033 cat >>conftest.$ac_ext <<_ACEOF
  4034 /* end confdefs.h.  */
  4036 int
  4037 main ()
  4041   return 0;
  4043 _ACEOF
  4044 rm -f conftest.$ac_objext
  4045 if { (ac_try="$ac_compile"
  4046 case "(($ac_try" in
  4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4048   *) ac_try_echo=$ac_try;;
  4049 esac
  4050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4051 $as_echo "$ac_try_echo") >&5
  4052   (eval "$ac_compile") 2>conftest.er1
  4053   ac_status=$?
  4054   grep -v '^ *+' conftest.er1 >conftest.err
  4055   rm -f conftest.er1
  4056   cat conftest.err >&5
  4057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4058   (exit $ac_status); } && {
  4059 	 test -z "$ac_c_werror_flag" ||
  4060 	 test ! -s conftest.err
  4061        } && test -s conftest.$ac_objext; then
  4062   ac_cv_prog_cc_g=yes
  4063 else
  4064   $as_echo "$as_me: failed program was:" >&5
  4065 sed 's/^/| /' conftest.$ac_ext >&5
  4067 	CFLAGS=""
  4068       cat >conftest.$ac_ext <<_ACEOF
  4069 /* confdefs.h.  */
  4070 _ACEOF
  4071 cat confdefs.h >>conftest.$ac_ext
  4072 cat >>conftest.$ac_ext <<_ACEOF
  4073 /* end confdefs.h.  */
  4075 int
  4076 main ()
  4080   return 0;
  4082 _ACEOF
  4083 rm -f conftest.$ac_objext
  4084 if { (ac_try="$ac_compile"
  4085 case "(($ac_try" in
  4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4087   *) ac_try_echo=$ac_try;;
  4088 esac
  4089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4090 $as_echo "$ac_try_echo") >&5
  4091   (eval "$ac_compile") 2>conftest.er1
  4092   ac_status=$?
  4093   grep -v '^ *+' conftest.er1 >conftest.err
  4094   rm -f conftest.er1
  4095   cat conftest.err >&5
  4096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4097   (exit $ac_status); } && {
  4098 	 test -z "$ac_c_werror_flag" ||
  4099 	 test ! -s conftest.err
  4100        } && test -s conftest.$ac_objext; then
  4102 else
  4103   $as_echo "$as_me: failed program was:" >&5
  4104 sed 's/^/| /' conftest.$ac_ext >&5
  4106 	ac_c_werror_flag=$ac_save_c_werror_flag
  4107 	 CFLAGS="-g"
  4108 	 cat >conftest.$ac_ext <<_ACEOF
  4109 /* confdefs.h.  */
  4110 _ACEOF
  4111 cat confdefs.h >>conftest.$ac_ext
  4112 cat >>conftest.$ac_ext <<_ACEOF
  4113 /* end confdefs.h.  */
  4115 int
  4116 main ()
  4120   return 0;
  4122 _ACEOF
  4123 rm -f conftest.$ac_objext
  4124 if { (ac_try="$ac_compile"
  4125 case "(($ac_try" in
  4126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4127   *) ac_try_echo=$ac_try;;
  4128 esac
  4129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4130 $as_echo "$ac_try_echo") >&5
  4131   (eval "$ac_compile") 2>conftest.er1
  4132   ac_status=$?
  4133   grep -v '^ *+' conftest.er1 >conftest.err
  4134   rm -f conftest.er1
  4135   cat conftest.err >&5
  4136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4137   (exit $ac_status); } && {
  4138 	 test -z "$ac_c_werror_flag" ||
  4139 	 test ! -s conftest.err
  4140        } && test -s conftest.$ac_objext; then
  4141   ac_cv_prog_cc_g=yes
  4142 else
  4143   $as_echo "$as_me: failed program was:" >&5
  4144 sed 's/^/| /' conftest.$ac_ext >&5
  4147 fi
  4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4150 fi
  4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4153 fi
  4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4156    ac_c_werror_flag=$ac_save_c_werror_flag
  4157 fi
  4158 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4159 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4160 if test "$ac_test_CFLAGS" = set; then
  4161   CFLAGS=$ac_save_CFLAGS
  4162 elif test $ac_cv_prog_cc_g = yes; then
  4163   if test "$GCC" = yes; then
  4164     CFLAGS="-g -O2"
  4165   else
  4166     CFLAGS="-g"
  4167   fi
  4168 else
  4169   if test "$GCC" = yes; then
  4170     CFLAGS="-O2"
  4171   else
  4172     CFLAGS=
  4173   fi
  4174 fi
  4175 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4177 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4178   $as_echo_n "(cached) " >&6
  4179 else
  4180   ac_cv_prog_cc_c89=no
  4181 ac_save_CC=$CC
  4182 cat >conftest.$ac_ext <<_ACEOF
  4183 /* confdefs.h.  */
  4184 _ACEOF
  4185 cat confdefs.h >>conftest.$ac_ext
  4186 cat >>conftest.$ac_ext <<_ACEOF
  4187 /* end confdefs.h.  */
  4188 #include <stdarg.h>
  4189 #include <stdio.h>
  4190 #include <sys/types.h>
  4191 #include <sys/stat.h>
  4192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4193 struct buf { int x; };
  4194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4195 static char *e (p, i)
  4196      char **p;
  4197      int i;
  4199   return p[i];
  4201 static char *f (char * (*g) (char **, int), char **p, ...)
  4203   char *s;
  4204   va_list v;
  4205   va_start (v,p);
  4206   s = g (p, va_arg (v,int));
  4207   va_end (v);
  4208   return s;
  4211 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4212    function prototypes and stuff, but not '\xHH' hex character constants.
  4213    These don't provoke an error unfortunately, instead are silently treated
  4214    as 'x'.  The following induces an error, until -std is added to get
  4215    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4216    array size at least.  It's necessary to write '\x00'==0 to get something
  4217    that's true only with -std.  */
  4218 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4220 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4221    inside strings and character constants.  */
  4222 #define FOO(x) 'x'
  4223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4225 int test (int i, double x);
  4226 struct s1 {int (*f) (int a);};
  4227 struct s2 {int (*f) (double a);};
  4228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4229 int argc;
  4230 char **argv;
  4231 int
  4232 main ()
  4234 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4236   return 0;
  4238 _ACEOF
  4239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4240 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4241 do
  4242   CC="$ac_save_CC $ac_arg"
  4243   rm -f conftest.$ac_objext
  4244 if { (ac_try="$ac_compile"
  4245 case "(($ac_try" in
  4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4247   *) ac_try_echo=$ac_try;;
  4248 esac
  4249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4250 $as_echo "$ac_try_echo") >&5
  4251   (eval "$ac_compile") 2>conftest.er1
  4252   ac_status=$?
  4253   grep -v '^ *+' conftest.er1 >conftest.err
  4254   rm -f conftest.er1
  4255   cat conftest.err >&5
  4256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4257   (exit $ac_status); } && {
  4258 	 test -z "$ac_c_werror_flag" ||
  4259 	 test ! -s conftest.err
  4260        } && test -s conftest.$ac_objext; then
  4261   ac_cv_prog_cc_c89=$ac_arg
  4262 else
  4263   $as_echo "$as_me: failed program was:" >&5
  4264 sed 's/^/| /' conftest.$ac_ext >&5
  4267 fi
  4269 rm -f core conftest.err conftest.$ac_objext
  4270   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4271 done
  4272 rm -f conftest.$ac_ext
  4273 CC=$ac_save_CC
  4275 fi
  4276 # AC_CACHE_VAL
  4277 case "x$ac_cv_prog_cc_c89" in
  4278   x)
  4279     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4280 $as_echo "none needed" >&6; } ;;
  4281   xno)
  4282     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4283 $as_echo "unsupported" >&6; } ;;
  4284   *)
  4285     CC="$CC $ac_cv_prog_cc_c89"
  4286     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4287 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4288 esac
  4291 ac_ext=c
  4292 ac_cpp='$CPP $CPPFLAGS'
  4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4297 depcc="$CC"   am_compiler_list=
  4299 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4300 $as_echo_n "checking dependency style of $depcc... " >&6; }
  4301 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4302   $as_echo_n "(cached) " >&6
  4303 else
  4304   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4305   # We make a subdir and do the tests there.  Otherwise we can end up
  4306   # making bogus files that we don't know about and never remove.  For
  4307   # instance it was reported that on HP-UX the gcc test will end up
  4308   # making a dummy file named `D' -- because `-MD' means `put the output
  4309   # in D'.
  4310   mkdir conftest.dir
  4311   # Copy depcomp to subdir because otherwise we won't find it if we're
  4312   # using a relative directory.
  4313   cp "$am_depcomp" conftest.dir
  4314   cd conftest.dir
  4315   # We will build objects and dependencies in a subdirectory because
  4316   # it helps to detect inapplicable dependency modes.  For instance
  4317   # both Tru64's cc and ICC support -MD to output dependencies as a
  4318   # side effect of compilation, but ICC will put the dependencies in
  4319   # the current directory while Tru64 will put them in the object
  4320   # directory.
  4321   mkdir sub
  4323   am_cv_CC_dependencies_compiler_type=none
  4324   if test "$am_compiler_list" = ""; then
  4325      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4326   fi
  4327   for depmode in $am_compiler_list; do
  4328     # Setup a source with many dependencies, because some compilers
  4329     # like to wrap large dependency lists on column 80 (with \), and
  4330     # we should not choose a depcomp mode which is confused by this.
  4332     # We need to recreate these files for each test, as the compiler may
  4333     # overwrite some of them when testing with obscure command lines.
  4334     # This happens at least with the AIX C compiler.
  4335     : > sub/conftest.c
  4336     for i in 1 2 3 4 5 6; do
  4337       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4338       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4339       # Solaris 8's {/usr,}/bin/sh.
  4340       touch sub/conftst$i.h
  4341     done
  4342     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4344     case $depmode in
  4345     nosideeffect)
  4346       # after this tag, mechanisms are not by side-effect, so they'll
  4347       # only be used when explicitly requested
  4348       if test "x$enable_dependency_tracking" = xyes; then
  4349 	continue
  4350       else
  4351 	break
  4352       fi
  4353       ;;
  4354     none) break ;;
  4355     esac
  4356     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4357     # mode.  It turns out that the SunPro C++ compiler does not properly
  4358     # handle `-M -o', and we need to detect this.
  4359     if depmode=$depmode \
  4360        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4361        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4362        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4363          >/dev/null 2>conftest.err &&
  4364        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4365        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4366        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4367       # icc doesn't choke on unknown options, it will just issue warnings
  4368       # or remarks (even with -Werror).  So we grep stderr for any message
  4369       # that says an option was ignored or not supported.
  4370       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4371       #   icc: Command line warning: ignoring option '-M'; no argument required
  4372       # The diagnosis changed in icc 8.0:
  4373       #   icc: Command line remark: option '-MP' not supported
  4374       if (grep 'ignoring option' conftest.err ||
  4375           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4376         am_cv_CC_dependencies_compiler_type=$depmode
  4377         break
  4378       fi
  4379     fi
  4380   done
  4382   cd ..
  4383   rm -rf conftest.dir
  4384 else
  4385   am_cv_CC_dependencies_compiler_type=none
  4386 fi
  4388 fi
  4389 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4390 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4391 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4395 if
  4396   test "x$enable_dependency_tracking" != xno \
  4397   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4398   am__fastdepCC_TRUE=
  4399   am__fastdepCC_FALSE='#'
  4400 else
  4401   am__fastdepCC_TRUE='#'
  4402   am__fastdepCC_FALSE=
  4403 fi
  4406 ac_ext=c
  4407 ac_cpp='$CPP $CPPFLAGS'
  4408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4411 if test -n "$ac_tool_prefix"; then
  4412   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4415 $as_echo_n "checking for $ac_word... " >&6; }
  4416 if test "${ac_cv_prog_CC+set}" = set; then
  4417   $as_echo_n "(cached) " >&6
  4418 else
  4419   if test -n "$CC"; then
  4420   ac_cv_prog_CC="$CC" # Let the user override the test.
  4421 else
  4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4423 for as_dir in $PATH
  4424 do
  4425   IFS=$as_save_IFS
  4426   test -z "$as_dir" && as_dir=.
  4427   for ac_exec_ext in '' $ac_executable_extensions; do
  4428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4429     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4430     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4431     break 2
  4432   fi
  4433 done
  4434 done
  4435 IFS=$as_save_IFS
  4437 fi
  4438 fi
  4439 CC=$ac_cv_prog_CC
  4440 if test -n "$CC"; then
  4441   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4442 $as_echo "$CC" >&6; }
  4443 else
  4444   { $as_echo "$as_me:$LINENO: result: no" >&5
  4445 $as_echo "no" >&6; }
  4446 fi
  4449 fi
  4450 if test -z "$ac_cv_prog_CC"; then
  4451   ac_ct_CC=$CC
  4452   # Extract the first word of "gcc", so it can be a program name with args.
  4453 set dummy gcc; ac_word=$2
  4454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4455 $as_echo_n "checking for $ac_word... " >&6; }
  4456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4457   $as_echo_n "(cached) " >&6
  4458 else
  4459   if test -n "$ac_ct_CC"; then
  4460   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4461 else
  4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4463 for as_dir in $PATH
  4464 do
  4465   IFS=$as_save_IFS
  4466   test -z "$as_dir" && as_dir=.
  4467   for ac_exec_ext in '' $ac_executable_extensions; do
  4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4469     ac_cv_prog_ac_ct_CC="gcc"
  4470     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4471     break 2
  4472   fi
  4473 done
  4474 done
  4475 IFS=$as_save_IFS
  4477 fi
  4478 fi
  4479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4480 if test -n "$ac_ct_CC"; then
  4481   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4482 $as_echo "$ac_ct_CC" >&6; }
  4483 else
  4484   { $as_echo "$as_me:$LINENO: result: no" >&5
  4485 $as_echo "no" >&6; }
  4486 fi
  4488   if test "x$ac_ct_CC" = x; then
  4489     CC=""
  4490   else
  4491     case $cross_compiling:$ac_tool_warned in
  4492 yes:)
  4493 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4494 whose name does not start with the host triplet.  If you think this
  4495 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4496 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4497 whose name does not start with the host triplet.  If you think this
  4498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4499 ac_tool_warned=yes ;;
  4500 esac
  4501     CC=$ac_ct_CC
  4502   fi
  4503 else
  4504   CC="$ac_cv_prog_CC"
  4505 fi
  4507 if test -z "$CC"; then
  4508           if test -n "$ac_tool_prefix"; then
  4509     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4510 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4512 $as_echo_n "checking for $ac_word... " >&6; }
  4513 if test "${ac_cv_prog_CC+set}" = set; then
  4514   $as_echo_n "(cached) " >&6
  4515 else
  4516   if test -n "$CC"; then
  4517   ac_cv_prog_CC="$CC" # Let the user override the test.
  4518 else
  4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4520 for as_dir in $PATH
  4521 do
  4522   IFS=$as_save_IFS
  4523   test -z "$as_dir" && as_dir=.
  4524   for ac_exec_ext in '' $ac_executable_extensions; do
  4525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4526     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4527     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4528     break 2
  4529   fi
  4530 done
  4531 done
  4532 IFS=$as_save_IFS
  4534 fi
  4535 fi
  4536 CC=$ac_cv_prog_CC
  4537 if test -n "$CC"; then
  4538   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4539 $as_echo "$CC" >&6; }
  4540 else
  4541   { $as_echo "$as_me:$LINENO: result: no" >&5
  4542 $as_echo "no" >&6; }
  4543 fi
  4546   fi
  4547 fi
  4548 if test -z "$CC"; then
  4549   # Extract the first word of "cc", so it can be a program name with args.
  4550 set dummy cc; ac_word=$2
  4551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4552 $as_echo_n "checking for $ac_word... " >&6; }
  4553 if test "${ac_cv_prog_CC+set}" = set; then
  4554   $as_echo_n "(cached) " >&6
  4555 else
  4556   if test -n "$CC"; then
  4557   ac_cv_prog_CC="$CC" # Let the user override the test.
  4558 else
  4559   ac_prog_rejected=no
  4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4561 for as_dir in $PATH
  4562 do
  4563   IFS=$as_save_IFS
  4564   test -z "$as_dir" && as_dir=.
  4565   for ac_exec_ext in '' $ac_executable_extensions; do
  4566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4567     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4568        ac_prog_rejected=yes
  4569        continue
  4570      fi
  4571     ac_cv_prog_CC="cc"
  4572     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4573     break 2
  4574   fi
  4575 done
  4576 done
  4577 IFS=$as_save_IFS
  4579 if test $ac_prog_rejected = yes; then
  4580   # We found a bogon in the path, so make sure we never use it.
  4581   set dummy $ac_cv_prog_CC
  4582   shift
  4583   if test $# != 0; then
  4584     # We chose a different compiler from the bogus one.
  4585     # However, it has the same basename, so the bogon will be chosen
  4586     # first if we set CC to just the basename; use the full file name.
  4587     shift
  4588     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4589   fi
  4590 fi
  4591 fi
  4592 fi
  4593 CC=$ac_cv_prog_CC
  4594 if test -n "$CC"; then
  4595   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4596 $as_echo "$CC" >&6; }
  4597 else
  4598   { $as_echo "$as_me:$LINENO: result: no" >&5
  4599 $as_echo "no" >&6; }
  4600 fi
  4603 fi
  4604 if test -z "$CC"; then
  4605   if test -n "$ac_tool_prefix"; then
  4606   for ac_prog in cl.exe
  4607   do
  4608     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4611 $as_echo_n "checking for $ac_word... " >&6; }
  4612 if test "${ac_cv_prog_CC+set}" = set; then
  4613   $as_echo_n "(cached) " >&6
  4614 else
  4615   if test -n "$CC"; then
  4616   ac_cv_prog_CC="$CC" # Let the user override the test.
  4617 else
  4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4619 for as_dir in $PATH
  4620 do
  4621   IFS=$as_save_IFS
  4622   test -z "$as_dir" && as_dir=.
  4623   for ac_exec_ext in '' $ac_executable_extensions; do
  4624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4625     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4626     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4627     break 2
  4628   fi
  4629 done
  4630 done
  4631 IFS=$as_save_IFS
  4633 fi
  4634 fi
  4635 CC=$ac_cv_prog_CC
  4636 if test -n "$CC"; then
  4637   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4638 $as_echo "$CC" >&6; }
  4639 else
  4640   { $as_echo "$as_me:$LINENO: result: no" >&5
  4641 $as_echo "no" >&6; }
  4642 fi
  4645     test -n "$CC" && break
  4646   done
  4647 fi
  4648 if test -z "$CC"; then
  4649   ac_ct_CC=$CC
  4650   for ac_prog in cl.exe
  4651 do
  4652   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4653 set dummy $ac_prog; ac_word=$2
  4654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4655 $as_echo_n "checking for $ac_word... " >&6; }
  4656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4657   $as_echo_n "(cached) " >&6
  4658 else
  4659   if test -n "$ac_ct_CC"; then
  4660   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4661 else
  4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4663 for as_dir in $PATH
  4664 do
  4665   IFS=$as_save_IFS
  4666   test -z "$as_dir" && as_dir=.
  4667   for ac_exec_ext in '' $ac_executable_extensions; do
  4668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4669     ac_cv_prog_ac_ct_CC="$ac_prog"
  4670     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4671     break 2
  4672   fi
  4673 done
  4674 done
  4675 IFS=$as_save_IFS
  4677 fi
  4678 fi
  4679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4680 if test -n "$ac_ct_CC"; then
  4681   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4682 $as_echo "$ac_ct_CC" >&6; }
  4683 else
  4684   { $as_echo "$as_me:$LINENO: result: no" >&5
  4685 $as_echo "no" >&6; }
  4686 fi
  4689   test -n "$ac_ct_CC" && break
  4690 done
  4692   if test "x$ac_ct_CC" = x; then
  4693     CC=""
  4694   else
  4695     case $cross_compiling:$ac_tool_warned in
  4696 yes:)
  4697 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4698 whose name does not start with the host triplet.  If you think this
  4699 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4700 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4701 whose name does not start with the host triplet.  If you think this
  4702 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4703 ac_tool_warned=yes ;;
  4704 esac
  4705     CC=$ac_ct_CC
  4706   fi
  4707 fi
  4709 fi
  4712 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4713 See \`config.log' for more details." >&5
  4714 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  4715 See \`config.log' for more details." >&2;}
  4716    { (exit 1); exit 1; }; }
  4718 # Provide some information about the compiler.
  4719 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  4720 set X $ac_compile
  4721 ac_compiler=$2
  4722 { (ac_try="$ac_compiler --version >&5"
  4723 case "(($ac_try" in
  4724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4725   *) ac_try_echo=$ac_try;;
  4726 esac
  4727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4728 $as_echo "$ac_try_echo") >&5
  4729   (eval "$ac_compiler --version >&5") 2>&5
  4730   ac_status=$?
  4731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4732   (exit $ac_status); }
  4733 { (ac_try="$ac_compiler -v >&5"
  4734 case "(($ac_try" in
  4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4736   *) ac_try_echo=$ac_try;;
  4737 esac
  4738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4739 $as_echo "$ac_try_echo") >&5
  4740   (eval "$ac_compiler -v >&5") 2>&5
  4741   ac_status=$?
  4742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4743   (exit $ac_status); }
  4744 { (ac_try="$ac_compiler -V >&5"
  4745 case "(($ac_try" in
  4746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4747   *) ac_try_echo=$ac_try;;
  4748 esac
  4749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4750 $as_echo "$ac_try_echo") >&5
  4751   (eval "$ac_compiler -V >&5") 2>&5
  4752   ac_status=$?
  4753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4754   (exit $ac_status); }
  4756 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4757 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4758 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4759   $as_echo_n "(cached) " >&6
  4760 else
  4761   cat >conftest.$ac_ext <<_ACEOF
  4762 /* confdefs.h.  */
  4763 _ACEOF
  4764 cat confdefs.h >>conftest.$ac_ext
  4765 cat >>conftest.$ac_ext <<_ACEOF
  4766 /* end confdefs.h.  */
  4768 int
  4769 main ()
  4771 #ifndef __GNUC__
  4772        choke me
  4773 #endif
  4776   return 0;
  4778 _ACEOF
  4779 rm -f conftest.$ac_objext
  4780 if { (ac_try="$ac_compile"
  4781 case "(($ac_try" in
  4782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4783   *) ac_try_echo=$ac_try;;
  4784 esac
  4785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4786 $as_echo "$ac_try_echo") >&5
  4787   (eval "$ac_compile") 2>conftest.er1
  4788   ac_status=$?
  4789   grep -v '^ *+' conftest.er1 >conftest.err
  4790   rm -f conftest.er1
  4791   cat conftest.err >&5
  4792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4793   (exit $ac_status); } && {
  4794 	 test -z "$ac_c_werror_flag" ||
  4795 	 test ! -s conftest.err
  4796        } && test -s conftest.$ac_objext; then
  4797   ac_compiler_gnu=yes
  4798 else
  4799   $as_echo "$as_me: failed program was:" >&5
  4800 sed 's/^/| /' conftest.$ac_ext >&5
  4802 	ac_compiler_gnu=no
  4803 fi
  4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4806 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4808 fi
  4809 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4810 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4811 if test $ac_compiler_gnu = yes; then
  4812   GCC=yes
  4813 else
  4814   GCC=
  4815 fi
  4816 ac_test_CFLAGS=${CFLAGS+set}
  4817 ac_save_CFLAGS=$CFLAGS
  4818 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4819 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4820 if test "${ac_cv_prog_cc_g+set}" = set; then
  4821   $as_echo_n "(cached) " >&6
  4822 else
  4823   ac_save_c_werror_flag=$ac_c_werror_flag
  4824    ac_c_werror_flag=yes
  4825    ac_cv_prog_cc_g=no
  4826    CFLAGS="-g"
  4827    cat >conftest.$ac_ext <<_ACEOF
  4828 /* confdefs.h.  */
  4829 _ACEOF
  4830 cat confdefs.h >>conftest.$ac_ext
  4831 cat >>conftest.$ac_ext <<_ACEOF
  4832 /* end confdefs.h.  */
  4834 int
  4835 main ()
  4839   return 0;
  4841 _ACEOF
  4842 rm -f conftest.$ac_objext
  4843 if { (ac_try="$ac_compile"
  4844 case "(($ac_try" in
  4845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4846   *) ac_try_echo=$ac_try;;
  4847 esac
  4848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4849 $as_echo "$ac_try_echo") >&5
  4850   (eval "$ac_compile") 2>conftest.er1
  4851   ac_status=$?
  4852   grep -v '^ *+' conftest.er1 >conftest.err
  4853   rm -f conftest.er1
  4854   cat conftest.err >&5
  4855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4856   (exit $ac_status); } && {
  4857 	 test -z "$ac_c_werror_flag" ||
  4858 	 test ! -s conftest.err
  4859        } && test -s conftest.$ac_objext; then
  4860   ac_cv_prog_cc_g=yes
  4861 else
  4862   $as_echo "$as_me: failed program was:" >&5
  4863 sed 's/^/| /' conftest.$ac_ext >&5
  4865 	CFLAGS=""
  4866       cat >conftest.$ac_ext <<_ACEOF
  4867 /* confdefs.h.  */
  4868 _ACEOF
  4869 cat confdefs.h >>conftest.$ac_ext
  4870 cat >>conftest.$ac_ext <<_ACEOF
  4871 /* end confdefs.h.  */
  4873 int
  4874 main ()
  4878   return 0;
  4880 _ACEOF
  4881 rm -f conftest.$ac_objext
  4882 if { (ac_try="$ac_compile"
  4883 case "(($ac_try" in
  4884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4885   *) ac_try_echo=$ac_try;;
  4886 esac
  4887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4888 $as_echo "$ac_try_echo") >&5
  4889   (eval "$ac_compile") 2>conftest.er1
  4890   ac_status=$?
  4891   grep -v '^ *+' conftest.er1 >conftest.err
  4892   rm -f conftest.er1
  4893   cat conftest.err >&5
  4894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4895   (exit $ac_status); } && {
  4896 	 test -z "$ac_c_werror_flag" ||
  4897 	 test ! -s conftest.err
  4898        } && test -s conftest.$ac_objext; then
  4900 else
  4901   $as_echo "$as_me: failed program was:" >&5
  4902 sed 's/^/| /' conftest.$ac_ext >&5
  4904 	ac_c_werror_flag=$ac_save_c_werror_flag
  4905 	 CFLAGS="-g"
  4906 	 cat >conftest.$ac_ext <<_ACEOF
  4907 /* confdefs.h.  */
  4908 _ACEOF
  4909 cat confdefs.h >>conftest.$ac_ext
  4910 cat >>conftest.$ac_ext <<_ACEOF
  4911 /* end confdefs.h.  */
  4913 int
  4914 main ()
  4918   return 0;
  4920 _ACEOF
  4921 rm -f conftest.$ac_objext
  4922 if { (ac_try="$ac_compile"
  4923 case "(($ac_try" in
  4924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4925   *) ac_try_echo=$ac_try;;
  4926 esac
  4927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4928 $as_echo "$ac_try_echo") >&5
  4929   (eval "$ac_compile") 2>conftest.er1
  4930   ac_status=$?
  4931   grep -v '^ *+' conftest.er1 >conftest.err
  4932   rm -f conftest.er1
  4933   cat conftest.err >&5
  4934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4935   (exit $ac_status); } && {
  4936 	 test -z "$ac_c_werror_flag" ||
  4937 	 test ! -s conftest.err
  4938        } && test -s conftest.$ac_objext; then
  4939   ac_cv_prog_cc_g=yes
  4940 else
  4941   $as_echo "$as_me: failed program was:" >&5
  4942 sed 's/^/| /' conftest.$ac_ext >&5
  4945 fi
  4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4948 fi
  4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4951 fi
  4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4954    ac_c_werror_flag=$ac_save_c_werror_flag
  4955 fi
  4956 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4957 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4958 if test "$ac_test_CFLAGS" = set; then
  4959   CFLAGS=$ac_save_CFLAGS
  4960 elif test $ac_cv_prog_cc_g = yes; then
  4961   if test "$GCC" = yes; then
  4962     CFLAGS="-g -O2"
  4963   else
  4964     CFLAGS="-g"
  4965   fi
  4966 else
  4967   if test "$GCC" = yes; then
  4968     CFLAGS="-O2"
  4969   else
  4970     CFLAGS=
  4971   fi
  4972 fi
  4973 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4974 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4975 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4976   $as_echo_n "(cached) " >&6
  4977 else
  4978   ac_cv_prog_cc_c89=no
  4979 ac_save_CC=$CC
  4980 cat >conftest.$ac_ext <<_ACEOF
  4981 /* confdefs.h.  */
  4982 _ACEOF
  4983 cat confdefs.h >>conftest.$ac_ext
  4984 cat >>conftest.$ac_ext <<_ACEOF
  4985 /* end confdefs.h.  */
  4986 #include <stdarg.h>
  4987 #include <stdio.h>
  4988 #include <sys/types.h>
  4989 #include <sys/stat.h>
  4990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4991 struct buf { int x; };
  4992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4993 static char *e (p, i)
  4994      char **p;
  4995      int i;
  4997   return p[i];
  4999 static char *f (char * (*g) (char **, int), char **p, ...)
  5001   char *s;
  5002   va_list v;
  5003   va_start (v,p);
  5004   s = g (p, va_arg (v,int));
  5005   va_end (v);
  5006   return s;
  5009 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5010    function prototypes and stuff, but not '\xHH' hex character constants.
  5011    These don't provoke an error unfortunately, instead are silently treated
  5012    as 'x'.  The following induces an error, until -std is added to get
  5013    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5014    array size at least.  It's necessary to write '\x00'==0 to get something
  5015    that's true only with -std.  */
  5016 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5018 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5019    inside strings and character constants.  */
  5020 #define FOO(x) 'x'
  5021 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5023 int test (int i, double x);
  5024 struct s1 {int (*f) (int a);};
  5025 struct s2 {int (*f) (double a);};
  5026 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5027 int argc;
  5028 char **argv;
  5029 int
  5030 main ()
  5032 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5034   return 0;
  5036 _ACEOF
  5037 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5038 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5039 do
  5040   CC="$ac_save_CC $ac_arg"
  5041   rm -f conftest.$ac_objext
  5042 if { (ac_try="$ac_compile"
  5043 case "(($ac_try" in
  5044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5045   *) ac_try_echo=$ac_try;;
  5046 esac
  5047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5048 $as_echo "$ac_try_echo") >&5
  5049   (eval "$ac_compile") 2>conftest.er1
  5050   ac_status=$?
  5051   grep -v '^ *+' conftest.er1 >conftest.err
  5052   rm -f conftest.er1
  5053   cat conftest.err >&5
  5054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5055   (exit $ac_status); } && {
  5056 	 test -z "$ac_c_werror_flag" ||
  5057 	 test ! -s conftest.err
  5058        } && test -s conftest.$ac_objext; then
  5059   ac_cv_prog_cc_c89=$ac_arg
  5060 else
  5061   $as_echo "$as_me: failed program was:" >&5
  5062 sed 's/^/| /' conftest.$ac_ext >&5
  5065 fi
  5067 rm -f core conftest.err conftest.$ac_objext
  5068   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5069 done
  5070 rm -f conftest.$ac_ext
  5071 CC=$ac_save_CC
  5073 fi
  5074 # AC_CACHE_VAL
  5075 case "x$ac_cv_prog_cc_c89" in
  5076   x)
  5077     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5078 $as_echo "none needed" >&6; } ;;
  5079   xno)
  5080     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5081 $as_echo "unsupported" >&6; } ;;
  5082   *)
  5083     CC="$CC $ac_cv_prog_cc_c89"
  5084     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5085 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5086 esac
  5089 ac_ext=c
  5090 ac_cpp='$CPP $CPPFLAGS'
  5091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5095 depcc="$CC"   am_compiler_list=
  5097 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5098 $as_echo_n "checking dependency style of $depcc... " >&6; }
  5099 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5100   $as_echo_n "(cached) " >&6
  5101 else
  5102   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5103   # We make a subdir and do the tests there.  Otherwise we can end up
  5104   # making bogus files that we don't know about and never remove.  For
  5105   # instance it was reported that on HP-UX the gcc test will end up
  5106   # making a dummy file named `D' -- because `-MD' means `put the output
  5107   # in D'.
  5108   mkdir conftest.dir
  5109   # Copy depcomp to subdir because otherwise we won't find it if we're
  5110   # using a relative directory.
  5111   cp "$am_depcomp" conftest.dir
  5112   cd conftest.dir
  5113   # We will build objects and dependencies in a subdirectory because
  5114   # it helps to detect inapplicable dependency modes.  For instance
  5115   # both Tru64's cc and ICC support -MD to output dependencies as a
  5116   # side effect of compilation, but ICC will put the dependencies in
  5117   # the current directory while Tru64 will put them in the object
  5118   # directory.
  5119   mkdir sub
  5121   am_cv_CC_dependencies_compiler_type=none
  5122   if test "$am_compiler_list" = ""; then
  5123      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5124   fi
  5125   for depmode in $am_compiler_list; do
  5126     # Setup a source with many dependencies, because some compilers
  5127     # like to wrap large dependency lists on column 80 (with \), and
  5128     # we should not choose a depcomp mode which is confused by this.
  5130     # We need to recreate these files for each test, as the compiler may
  5131     # overwrite some of them when testing with obscure command lines.
  5132     # This happens at least with the AIX C compiler.
  5133     : > sub/conftest.c
  5134     for i in 1 2 3 4 5 6; do
  5135       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5136       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5137       # Solaris 8's {/usr,}/bin/sh.
  5138       touch sub/conftst$i.h
  5139     done
  5140     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5142     case $depmode in
  5143     nosideeffect)
  5144       # after this tag, mechanisms are not by side-effect, so they'll
  5145       # only be used when explicitly requested
  5146       if test "x$enable_dependency_tracking" = xyes; then
  5147 	continue
  5148       else
  5149 	break
  5150       fi
  5151       ;;
  5152     none) break ;;
  5153     esac
  5154     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5155     # mode.  It turns out that the SunPro C++ compiler does not properly
  5156     # handle `-M -o', and we need to detect this.
  5157     if depmode=$depmode \
  5158        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5159        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5160        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5161          >/dev/null 2>conftest.err &&
  5162        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5163        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5164        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5165       # icc doesn't choke on unknown options, it will just issue warnings
  5166       # or remarks (even with -Werror).  So we grep stderr for any message
  5167       # that says an option was ignored or not supported.
  5168       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5169       #   icc: Command line warning: ignoring option '-M'; no argument required
  5170       # The diagnosis changed in icc 8.0:
  5171       #   icc: Command line remark: option '-MP' not supported
  5172       if (grep 'ignoring option' conftest.err ||
  5173           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5174         am_cv_CC_dependencies_compiler_type=$depmode
  5175         break
  5176       fi
  5177     fi
  5178   done
  5180   cd ..
  5181   rm -rf conftest.dir
  5182 else
  5183   am_cv_CC_dependencies_compiler_type=none
  5184 fi
  5186 fi
  5187 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5188 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5189 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5193 if
  5194   test "x$enable_dependency_tracking" != xno \
  5195   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5196   am__fastdepCC_TRUE=
  5197   am__fastdepCC_FALSE='#'
  5198 else
  5199   am__fastdepCC_TRUE='#'
  5200   am__fastdepCC_FALSE=
  5201 fi
  5205 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5207 # By default we simply use the C compiler to build assembly code.
  5209 test "${CCAS+set}" = set || CCAS=$CC
  5210 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5214 ac_ext=c
  5215 ac_cpp='$CPP $CPPFLAGS'
  5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5219 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5220 $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5221 # On Suns, sometimes $CPP names a directory.
  5222 if test -n "$CPP" && test -d "$CPP"; then
  5223   CPP=
  5224 fi
  5225 if test -z "$CPP"; then
  5226   if test "${ac_cv_prog_CPP+set}" = set; then
  5227   $as_echo_n "(cached) " >&6
  5228 else
  5229       # Double quotes because CPP needs to be expanded
  5230     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5231     do
  5232       ac_preproc_ok=false
  5233 for ac_c_preproc_warn_flag in '' yes
  5234 do
  5235   # Use a header file that comes with gcc, so configuring glibc
  5236   # with a fresh cross-compiler works.
  5237   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5238   # <limits.h> exists even on freestanding compilers.
  5239   # On the NeXT, cc -E runs the code through the compiler's parser,
  5240   # not just through cpp. "Syntax error" is here to catch this case.
  5241   cat >conftest.$ac_ext <<_ACEOF
  5242 /* confdefs.h.  */
  5243 _ACEOF
  5244 cat confdefs.h >>conftest.$ac_ext
  5245 cat >>conftest.$ac_ext <<_ACEOF
  5246 /* end confdefs.h.  */
  5247 #ifdef __STDC__
  5248 # include <limits.h>
  5249 #else
  5250 # include <assert.h>
  5251 #endif
  5252 		     Syntax error
  5253 _ACEOF
  5254 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5255 case "(($ac_try" in
  5256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5257   *) ac_try_echo=$ac_try;;
  5258 esac
  5259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5260 $as_echo "$ac_try_echo") >&5
  5261   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5262   ac_status=$?
  5263   grep -v '^ *+' conftest.er1 >conftest.err
  5264   rm -f conftest.er1
  5265   cat conftest.err >&5
  5266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5267   (exit $ac_status); } >/dev/null && {
  5268 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5269 	 test ! -s conftest.err
  5270        }; then
  5272 else
  5273   $as_echo "$as_me: failed program was:" >&5
  5274 sed 's/^/| /' conftest.$ac_ext >&5
  5276   # Broken: fails on valid input.
  5277 continue
  5278 fi
  5280 rm -f conftest.err conftest.$ac_ext
  5282   # OK, works on sane cases.  Now check whether nonexistent headers
  5283   # can be detected and how.
  5284   cat >conftest.$ac_ext <<_ACEOF
  5285 /* confdefs.h.  */
  5286 _ACEOF
  5287 cat confdefs.h >>conftest.$ac_ext
  5288 cat >>conftest.$ac_ext <<_ACEOF
  5289 /* end confdefs.h.  */
  5290 #include <ac_nonexistent.h>
  5291 _ACEOF
  5292 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5293 case "(($ac_try" in
  5294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5295   *) ac_try_echo=$ac_try;;
  5296 esac
  5297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5298 $as_echo "$ac_try_echo") >&5
  5299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5300   ac_status=$?
  5301   grep -v '^ *+' conftest.er1 >conftest.err
  5302   rm -f conftest.er1
  5303   cat conftest.err >&5
  5304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5305   (exit $ac_status); } >/dev/null && {
  5306 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5307 	 test ! -s conftest.err
  5308        }; then
  5309   # Broken: success on invalid input.
  5310 continue
  5311 else
  5312   $as_echo "$as_me: failed program was:" >&5
  5313 sed 's/^/| /' conftest.$ac_ext >&5
  5315   # Passes both tests.
  5316 ac_preproc_ok=:
  5317 break
  5318 fi
  5320 rm -f conftest.err conftest.$ac_ext
  5322 done
  5323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5324 rm -f conftest.err conftest.$ac_ext
  5325 if $ac_preproc_ok; then
  5326   break
  5327 fi
  5329     done
  5330     ac_cv_prog_CPP=$CPP
  5332 fi
  5333   CPP=$ac_cv_prog_CPP
  5334 else
  5335   ac_cv_prog_CPP=$CPP
  5336 fi
  5337 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5338 $as_echo "$CPP" >&6; }
  5339 ac_preproc_ok=false
  5340 for ac_c_preproc_warn_flag in '' yes
  5341 do
  5342   # Use a header file that comes with gcc, so configuring glibc
  5343   # with a fresh cross-compiler works.
  5344   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5345   # <limits.h> exists even on freestanding compilers.
  5346   # On the NeXT, cc -E runs the code through the compiler's parser,
  5347   # not just through cpp. "Syntax error" is here to catch this case.
  5348   cat >conftest.$ac_ext <<_ACEOF
  5349 /* confdefs.h.  */
  5350 _ACEOF
  5351 cat confdefs.h >>conftest.$ac_ext
  5352 cat >>conftest.$ac_ext <<_ACEOF
  5353 /* end confdefs.h.  */
  5354 #ifdef __STDC__
  5355 # include <limits.h>
  5356 #else
  5357 # include <assert.h>
  5358 #endif
  5359 		     Syntax error
  5360 _ACEOF
  5361 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5362 case "(($ac_try" in
  5363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5364   *) ac_try_echo=$ac_try;;
  5365 esac
  5366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5367 $as_echo "$ac_try_echo") >&5
  5368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5369   ac_status=$?
  5370   grep -v '^ *+' conftest.er1 >conftest.err
  5371   rm -f conftest.er1
  5372   cat conftest.err >&5
  5373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5374   (exit $ac_status); } >/dev/null && {
  5375 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5376 	 test ! -s conftest.err
  5377        }; then
  5379 else
  5380   $as_echo "$as_me: failed program was:" >&5
  5381 sed 's/^/| /' conftest.$ac_ext >&5
  5383   # Broken: fails on valid input.
  5384 continue
  5385 fi
  5387 rm -f conftest.err conftest.$ac_ext
  5389   # OK, works on sane cases.  Now check whether nonexistent headers
  5390   # can be detected and how.
  5391   cat >conftest.$ac_ext <<_ACEOF
  5392 /* confdefs.h.  */
  5393 _ACEOF
  5394 cat confdefs.h >>conftest.$ac_ext
  5395 cat >>conftest.$ac_ext <<_ACEOF
  5396 /* end confdefs.h.  */
  5397 #include <ac_nonexistent.h>
  5398 _ACEOF
  5399 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5400 case "(($ac_try" in
  5401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5402   *) ac_try_echo=$ac_try;;
  5403 esac
  5404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5405 $as_echo "$ac_try_echo") >&5
  5406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5407   ac_status=$?
  5408   grep -v '^ *+' conftest.er1 >conftest.err
  5409   rm -f conftest.er1
  5410   cat conftest.err >&5
  5411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5412   (exit $ac_status); } >/dev/null && {
  5413 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5414 	 test ! -s conftest.err
  5415        }; then
  5416   # Broken: success on invalid input.
  5417 continue
  5418 else
  5419   $as_echo "$as_me: failed program was:" >&5
  5420 sed 's/^/| /' conftest.$ac_ext >&5
  5422   # Passes both tests.
  5423 ac_preproc_ok=:
  5424 break
  5425 fi
  5427 rm -f conftest.err conftest.$ac_ext
  5429 done
  5430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5431 rm -f conftest.err conftest.$ac_ext
  5432 if $ac_preproc_ok; then
  5434 else
  5435   { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5436 See \`config.log' for more details." >&5
  5437 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5438 See \`config.log' for more details." >&2;}
  5439    { (exit 1); exit 1; }; }
  5440 fi
  5442 ac_ext=c
  5443 ac_cpp='$CPP $CPPFLAGS'
  5444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5449 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5450 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5451 if test "${ac_cv_path_GREP+set}" = set; then
  5452   $as_echo_n "(cached) " >&6
  5453 else
  5454   if test -z "$GREP"; then
  5455   ac_path_GREP_found=false
  5456   # Loop through the user's path and test for each of PROGNAME-LIST
  5457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5459 do
  5460   IFS=$as_save_IFS
  5461   test -z "$as_dir" && as_dir=.
  5462   for ac_prog in grep ggrep; do
  5463     for ac_exec_ext in '' $ac_executable_extensions; do
  5464       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5465       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5466 # Check for GNU ac_path_GREP and select it if it is found.
  5467   # Check for GNU $ac_path_GREP
  5468 case `"$ac_path_GREP" --version 2>&1` in
  5469 *GNU*)
  5470   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5471 *)
  5472   ac_count=0
  5473   $as_echo_n 0123456789 >"conftest.in"
  5474   while :
  5475   do
  5476     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5477     mv "conftest.tmp" "conftest.in"
  5478     cp "conftest.in" "conftest.nl"
  5479     $as_echo 'GREP' >> "conftest.nl"
  5480     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5481     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5482     ac_count=`expr $ac_count + 1`
  5483     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5484       # Best one so far, save it but keep looking for a better one
  5485       ac_cv_path_GREP="$ac_path_GREP"
  5486       ac_path_GREP_max=$ac_count
  5487     fi
  5488     # 10*(2^10) chars as input seems more than enough
  5489     test $ac_count -gt 10 && break
  5490   done
  5491   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5492 esac
  5494       $ac_path_GREP_found && break 3
  5495     done
  5496   done
  5497 done
  5498 IFS=$as_save_IFS
  5499   if test -z "$ac_cv_path_GREP"; then
  5500     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5501 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5502    { (exit 1); exit 1; }; }
  5503   fi
  5504 else
  5505   ac_cv_path_GREP=$GREP
  5506 fi
  5508 fi
  5509 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5510 $as_echo "$ac_cv_path_GREP" >&6; }
  5511  GREP="$ac_cv_path_GREP"
  5514 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  5515 $as_echo_n "checking for egrep... " >&6; }
  5516 if test "${ac_cv_path_EGREP+set}" = set; then
  5517   $as_echo_n "(cached) " >&6
  5518 else
  5519   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5520    then ac_cv_path_EGREP="$GREP -E"
  5521    else
  5522      if test -z "$EGREP"; then
  5523   ac_path_EGREP_found=false
  5524   # Loop through the user's path and test for each of PROGNAME-LIST
  5525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5526 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5527 do
  5528   IFS=$as_save_IFS
  5529   test -z "$as_dir" && as_dir=.
  5530   for ac_prog in egrep; do
  5531     for ac_exec_ext in '' $ac_executable_extensions; do
  5532       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5533       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5534 # Check for GNU ac_path_EGREP and select it if it is found.
  5535   # Check for GNU $ac_path_EGREP
  5536 case `"$ac_path_EGREP" --version 2>&1` in
  5537 *GNU*)
  5538   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5539 *)
  5540   ac_count=0
  5541   $as_echo_n 0123456789 >"conftest.in"
  5542   while :
  5543   do
  5544     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5545     mv "conftest.tmp" "conftest.in"
  5546     cp "conftest.in" "conftest.nl"
  5547     $as_echo 'EGREP' >> "conftest.nl"
  5548     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5549     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5550     ac_count=`expr $ac_count + 1`
  5551     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5552       # Best one so far, save it but keep looking for a better one
  5553       ac_cv_path_EGREP="$ac_path_EGREP"
  5554       ac_path_EGREP_max=$ac_count
  5555     fi
  5556     # 10*(2^10) chars as input seems more than enough
  5557     test $ac_count -gt 10 && break
  5558   done
  5559   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5560 esac
  5562       $ac_path_EGREP_found && break 3
  5563     done
  5564   done
  5565 done
  5566 IFS=$as_save_IFS
  5567   if test -z "$ac_cv_path_EGREP"; then
  5568     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5569 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5570    { (exit 1); exit 1; }; }
  5571   fi
  5572 else
  5573   ac_cv_path_EGREP=$EGREP
  5574 fi
  5576    fi
  5577 fi
  5578 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5579 $as_echo "$ac_cv_path_EGREP" >&6; }
  5580  EGREP="$ac_cv_path_EGREP"
  5583 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5584 $as_echo_n "checking for ANSI C header files... " >&6; }
  5585 if test "${ac_cv_header_stdc+set}" = set; then
  5586   $as_echo_n "(cached) " >&6
  5587 else
  5588   cat >conftest.$ac_ext <<_ACEOF
  5589 /* confdefs.h.  */
  5590 _ACEOF
  5591 cat confdefs.h >>conftest.$ac_ext
  5592 cat >>conftest.$ac_ext <<_ACEOF
  5593 /* end confdefs.h.  */
  5594 #include <stdlib.h>
  5595 #include <stdarg.h>
  5596 #include <string.h>
  5597 #include <float.h>
  5599 int
  5600 main ()
  5604   return 0;
  5606 _ACEOF
  5607 rm -f conftest.$ac_objext
  5608 if { (ac_try="$ac_compile"
  5609 case "(($ac_try" in
  5610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5611   *) ac_try_echo=$ac_try;;
  5612 esac
  5613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5614 $as_echo "$ac_try_echo") >&5
  5615   (eval "$ac_compile") 2>conftest.er1
  5616   ac_status=$?
  5617   grep -v '^ *+' conftest.er1 >conftest.err
  5618   rm -f conftest.er1
  5619   cat conftest.err >&5
  5620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5621   (exit $ac_status); } && {
  5622 	 test -z "$ac_c_werror_flag" ||
  5623 	 test ! -s conftest.err
  5624        } && test -s conftest.$ac_objext; then
  5625   ac_cv_header_stdc=yes
  5626 else
  5627   $as_echo "$as_me: failed program was:" >&5
  5628 sed 's/^/| /' conftest.$ac_ext >&5
  5630 	ac_cv_header_stdc=no
  5631 fi
  5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5635 if test $ac_cv_header_stdc = yes; then
  5636   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5637   cat >conftest.$ac_ext <<_ACEOF
  5638 /* confdefs.h.  */
  5639 _ACEOF
  5640 cat confdefs.h >>conftest.$ac_ext
  5641 cat >>conftest.$ac_ext <<_ACEOF
  5642 /* end confdefs.h.  */
  5643 #include <string.h>
  5645 _ACEOF
  5646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5647   $EGREP "memchr" >/dev/null 2>&1; then
  5649 else
  5650   ac_cv_header_stdc=no
  5651 fi
  5652 rm -f conftest*
  5654 fi
  5656 if test $ac_cv_header_stdc = yes; then
  5657   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5658   cat >conftest.$ac_ext <<_ACEOF
  5659 /* confdefs.h.  */
  5660 _ACEOF
  5661 cat confdefs.h >>conftest.$ac_ext
  5662 cat >>conftest.$ac_ext <<_ACEOF
  5663 /* end confdefs.h.  */
  5664 #include <stdlib.h>
  5666 _ACEOF
  5667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5668   $EGREP "free" >/dev/null 2>&1; then
  5670 else
  5671   ac_cv_header_stdc=no
  5672 fi
  5673 rm -f conftest*
  5675 fi
  5677 if test $ac_cv_header_stdc = yes; then
  5678   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5679   if test "$cross_compiling" = yes; then
  5681 else
  5682   cat >conftest.$ac_ext <<_ACEOF
  5683 /* confdefs.h.  */
  5684 _ACEOF
  5685 cat confdefs.h >>conftest.$ac_ext
  5686 cat >>conftest.$ac_ext <<_ACEOF
  5687 /* end confdefs.h.  */
  5688 #include <ctype.h>
  5689 #include <stdlib.h>
  5690 #if ((' ' & 0x0FF) == 0x020)
  5691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5693 #else
  5694 # define ISLOWER(c) \
  5695 		   (('a' <= (c) && (c) <= 'i') \
  5696 		     || ('j' <= (c) && (c) <= 'r') \
  5697 		     || ('s' <= (c) && (c) <= 'z'))
  5698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5699 #endif
  5701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5702 int
  5703 main ()
  5705   int i;
  5706   for (i = 0; i < 256; i++)
  5707     if (XOR (islower (i), ISLOWER (i))
  5708 	|| toupper (i) != TOUPPER (i))
  5709       return 2;
  5710   return 0;
  5712 _ACEOF
  5713 rm -f conftest$ac_exeext
  5714 if { (ac_try="$ac_link"
  5715 case "(($ac_try" in
  5716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5717   *) ac_try_echo=$ac_try;;
  5718 esac
  5719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5720 $as_echo "$ac_try_echo") >&5
  5721   (eval "$ac_link") 2>&5
  5722   ac_status=$?
  5723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5725   { (case "(($ac_try" in
  5726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5727   *) ac_try_echo=$ac_try;;
  5728 esac
  5729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5730 $as_echo "$ac_try_echo") >&5
  5731   (eval "$ac_try") 2>&5
  5732   ac_status=$?
  5733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5734   (exit $ac_status); }; }; then
  5736 else
  5737   $as_echo "$as_me: program exited with status $ac_status" >&5
  5738 $as_echo "$as_me: failed program was:" >&5
  5739 sed 's/^/| /' conftest.$ac_ext >&5
  5741 ( exit $ac_status )
  5742 ac_cv_header_stdc=no
  5743 fi
  5744 rm -rf conftest.dSYM
  5745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5746 fi
  5749 fi
  5750 fi
  5751 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5752 $as_echo "$ac_cv_header_stdc" >&6; }
  5753 if test $ac_cv_header_stdc = yes; then
  5755 cat >>confdefs.h <<\_ACEOF
  5756 #define STDC_HEADERS 1
  5757 _ACEOF
  5759 fi
  5761 # Make sure we can run config.sub.
  5762 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  5763   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  5764 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  5765    { (exit 1); exit 1; }; }
  5767 { $as_echo "$as_me:$LINENO: checking build system type" >&5
  5768 $as_echo_n "checking build system type... " >&6; }
  5769 if test "${ac_cv_build+set}" = set; then
  5770   $as_echo_n "(cached) " >&6
  5771 else
  5772   ac_build_alias=$build_alias
  5773 test "x$ac_build_alias" = x &&
  5774   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  5775 test "x$ac_build_alias" = x &&
  5776   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  5777 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  5778    { (exit 1); exit 1; }; }
  5779 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  5780   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  5781 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  5782    { (exit 1); exit 1; }; }
  5784 fi
  5785 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  5786 $as_echo "$ac_cv_build" >&6; }
  5787 case $ac_cv_build in
  5788 *-*-*) ;;
  5789 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  5790 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  5791    { (exit 1); exit 1; }; };;
  5792 esac
  5793 build=$ac_cv_build
  5794 ac_save_IFS=$IFS; IFS='-'
  5795 set x $ac_cv_build
  5796 shift
  5797 build_cpu=$1
  5798 build_vendor=$2
  5799 shift; shift
  5800 # Remember, the first character of IFS is used to create $*,
  5801 # except with old shells:
  5802 build_os=$*
  5803 IFS=$ac_save_IFS
  5804 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  5807 { $as_echo "$as_me:$LINENO: checking host system type" >&5
  5808 $as_echo_n "checking host system type... " >&6; }
  5809 if test "${ac_cv_host+set}" = set; then
  5810   $as_echo_n "(cached) " >&6
  5811 else
  5812   if test "x$host_alias" = x; then
  5813   ac_cv_host=$ac_cv_build
  5814 else
  5815   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  5816     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  5817 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  5818    { (exit 1); exit 1; }; }
  5819 fi
  5821 fi
  5822 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  5823 $as_echo "$ac_cv_host" >&6; }
  5824 case $ac_cv_host in
  5825 *-*-*) ;;
  5826 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  5827 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  5828    { (exit 1); exit 1; }; };;
  5829 esac
  5830 host=$ac_cv_host
  5831 ac_save_IFS=$IFS; IFS='-'
  5832 set x $ac_cv_host
  5833 shift
  5834 host_cpu=$1
  5835 host_vendor=$2
  5836 shift; shift
  5837 # Remember, the first character of IFS is used to create $*,
  5838 # except with old shells:
  5839 host_os=$*
  5840 IFS=$ac_save_IFS
  5841 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  5844 # Check whether --enable-trace was given.
  5845 if test "${enable_trace+set}" = set; then
  5846   enableval=$enable_trace; if test "$enableval" == "yes"; then
  5848 cat >>confdefs.h <<\_ACEOF
  5849 #define ENABLE_TRACE_IO 1
  5850 _ACEOF
  5852     fi
  5853 fi
  5855 # Check whether --enable-watch was given.
  5856 if test "${enable_watch+set}" = set; then
  5857   enableval=$enable_watch; if test "$enableval" == "yes"; then
  5859 cat >>confdefs.h <<\_ACEOF
  5860 #define ENABLE_WATCH 1
  5861 _ACEOF
  5863    fi
  5864 fi
  5867 # Check whether --with-osmesa was given.
  5868 if test "${with_osmesa+set}" = set; then
  5869   withval=$with_osmesa;
  5870 else
  5871   with_osmesa=no
  5872 fi
  5876 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5886 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5887 		  inttypes.h stdint.h unistd.h
  5888 do
  5889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5890 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5891 $as_echo_n "checking for $ac_header... " >&6; }
  5892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5893   $as_echo_n "(cached) " >&6
  5894 else
  5895   cat >conftest.$ac_ext <<_ACEOF
  5896 /* confdefs.h.  */
  5897 _ACEOF
  5898 cat confdefs.h >>conftest.$ac_ext
  5899 cat >>conftest.$ac_ext <<_ACEOF
  5900 /* end confdefs.h.  */
  5901 $ac_includes_default
  5903 #include <$ac_header>
  5904 _ACEOF
  5905 rm -f conftest.$ac_objext
  5906 if { (ac_try="$ac_compile"
  5907 case "(($ac_try" in
  5908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5909   *) ac_try_echo=$ac_try;;
  5910 esac
  5911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5912 $as_echo "$ac_try_echo") >&5
  5913   (eval "$ac_compile") 2>conftest.er1
  5914   ac_status=$?
  5915   grep -v '^ *+' conftest.er1 >conftest.err
  5916   rm -f conftest.er1
  5917   cat conftest.err >&5
  5918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5919   (exit $ac_status); } && {
  5920 	 test -z "$ac_c_werror_flag" ||
  5921 	 test ! -s conftest.err
  5922        } && test -s conftest.$ac_objext; then
  5923   eval "$as_ac_Header=yes"
  5924 else
  5925   $as_echo "$as_me: failed program was:" >&5
  5926 sed 's/^/| /' conftest.$ac_ext >&5
  5928 	eval "$as_ac_Header=no"
  5929 fi
  5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5932 fi
  5933 ac_res=`eval 'as_val=${'$as_ac_Header'}
  5934 		 $as_echo "$as_val"'`
  5935 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5936 $as_echo "$ac_res" >&6; }
  5937 if test `eval 'as_val=${'$as_ac_Header'}
  5938 		 $as_echo "$as_val"'` = yes; then
  5939   cat >>confdefs.h <<_ACEOF
  5940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5941 _ACEOF
  5943 fi
  5945 done
  5948 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  5949   { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  5950 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
  5951 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  5952   $as_echo_n "(cached) " >&6
  5953 fi
  5954 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  5955 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  5956 else
  5957   # Is the header compilable?
  5958 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
  5959 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
  5960 cat >conftest.$ac_ext <<_ACEOF
  5961 /* confdefs.h.  */
  5962 _ACEOF
  5963 cat confdefs.h >>conftest.$ac_ext
  5964 cat >>conftest.$ac_ext <<_ACEOF
  5965 /* end confdefs.h.  */
  5966 $ac_includes_default
  5967 #include <Cocoa/Cocoa.h>
  5968 _ACEOF
  5969 rm -f conftest.$ac_objext
  5970 if { (ac_try="$ac_compile"
  5971 case "(($ac_try" in
  5972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5973   *) ac_try_echo=$ac_try;;
  5974 esac
  5975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5976 $as_echo "$ac_try_echo") >&5
  5977   (eval "$ac_compile") 2>conftest.er1
  5978   ac_status=$?
  5979   grep -v '^ *+' conftest.er1 >conftest.err
  5980   rm -f conftest.er1
  5981   cat conftest.err >&5
  5982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5983   (exit $ac_status); } && {
  5984 	 test -z "$ac_c_werror_flag" ||
  5985 	 test ! -s conftest.err
  5986        } && test -s conftest.$ac_objext; then
  5987   ac_header_compiler=yes
  5988 else
  5989   $as_echo "$as_me: failed program was:" >&5
  5990 sed 's/^/| /' conftest.$ac_ext >&5
  5992 	ac_header_compiler=no
  5993 fi
  5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5996 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5997 $as_echo "$ac_header_compiler" >&6; }
  5999 # Is the header present?
  6000 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
  6001 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
  6002 cat >conftest.$ac_ext <<_ACEOF
  6003 /* confdefs.h.  */
  6004 _ACEOF
  6005 cat confdefs.h >>conftest.$ac_ext
  6006 cat >>conftest.$ac_ext <<_ACEOF
  6007 /* end confdefs.h.  */
  6008 #include <Cocoa/Cocoa.h>
  6009 _ACEOF
  6010 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6011 case "(($ac_try" in
  6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6013   *) ac_try_echo=$ac_try;;
  6014 esac
  6015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6016 $as_echo "$ac_try_echo") >&5
  6017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6018   ac_status=$?
  6019   grep -v '^ *+' conftest.er1 >conftest.err
  6020   rm -f conftest.er1
  6021   cat conftest.err >&5
  6022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6023   (exit $ac_status); } >/dev/null && {
  6024 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6025 	 test ! -s conftest.err
  6026        }; then
  6027   ac_header_preproc=yes
  6028 else
  6029   $as_echo "$as_me: failed program was:" >&5
  6030 sed 's/^/| /' conftest.$ac_ext >&5
  6032   ac_header_preproc=no
  6033 fi
  6035 rm -f conftest.err conftest.$ac_ext
  6036 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6037 $as_echo "$ac_header_preproc" >&6; }
  6039 # So?  What about this header?
  6040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6041   yes:no: )
  6042     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6043 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6044     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
  6045 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
  6046     ac_header_preproc=yes
  6047     ;;
  6048   no:yes:* )
  6049     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
  6050 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
  6051     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h:     check for missing prerequisite headers?" >&5
  6052 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h:     check for missing prerequisite headers?" >&2;}
  6053     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
  6054 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
  6055     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h:     section \"Present But Cannot Be Compiled\"" >&5
  6056 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6057     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
  6058 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
  6059     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
  6060 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
  6062     ;;
  6063 esac
  6064 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  6065 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
  6066 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6067   $as_echo_n "(cached) " >&6
  6068 else
  6069   ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
  6070 fi
  6071 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  6072 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  6074 fi
  6075 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  6077    HAVE_COCOA='yes'
  6078    APPLE_BUILD='yes'
  6079    LIBS="$LIBS -framework AppKit"
  6080    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"
  6082 cat >>confdefs.h <<\_ACEOF
  6083 #define HAVE_COCOA 1
  6084 _ACEOF
  6087 cat >>confdefs.h <<\_ACEOF
  6088 #define APPLE_BUILD 1
  6089 _ACEOF
  6092 fi
  6097 if test "$HAVE_COCOA" = 'yes'; then
  6098   GUI_CARBON_TRUE=
  6099   GUI_CARBON_FALSE='#'
  6100 else
  6101   GUI_CARBON_TRUE='#'
  6102   GUI_CARBON_FALSE=
  6103 fi
  6108 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  6109 	if test -n "$ac_tool_prefix"; then
  6110   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  6111 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  6112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6113 $as_echo_n "checking for $ac_word... " >&6; }
  6114 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  6115   $as_echo_n "(cached) " >&6
  6116 else
  6117   case $PKG_CONFIG in
  6118   [\\/]* | ?:[\\/]*)
  6119   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6120   ;;
  6121   *)
  6122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6123 for as_dir in $PATH
  6124 do
  6125   IFS=$as_save_IFS
  6126   test -z "$as_dir" && as_dir=.
  6127   for ac_exec_ext in '' $ac_executable_extensions; do
  6128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6129     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6131     break 2
  6132   fi
  6133 done
  6134 done
  6135 IFS=$as_save_IFS
  6137   ;;
  6138 esac
  6139 fi
  6140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6141 if test -n "$PKG_CONFIG"; then
  6142   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  6143 $as_echo "$PKG_CONFIG" >&6; }
  6144 else
  6145   { $as_echo "$as_me:$LINENO: result: no" >&5
  6146 $as_echo "no" >&6; }
  6147 fi
  6150 fi
  6151 if test -z "$ac_cv_path_PKG_CONFIG"; then
  6152   ac_pt_PKG_CONFIG=$PKG_CONFIG
  6153   # Extract the first word of "pkg-config", so it can be a program name with args.
  6154 set dummy pkg-config; ac_word=$2
  6155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6156 $as_echo_n "checking for $ac_word... " >&6; }
  6157 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  6158   $as_echo_n "(cached) " >&6
  6159 else
  6160   case $ac_pt_PKG_CONFIG in
  6161   [\\/]* | ?:[\\/]*)
  6162   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  6163   ;;
  6164   *)
  6165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6166 for as_dir in $PATH
  6167 do
  6168   IFS=$as_save_IFS
  6169   test -z "$as_dir" && as_dir=.
  6170   for ac_exec_ext in '' $ac_executable_extensions; do
  6171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6172     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6173     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6174     break 2
  6175   fi
  6176 done
  6177 done
  6178 IFS=$as_save_IFS
  6180   ;;
  6181 esac
  6182 fi
  6183 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  6184 if test -n "$ac_pt_PKG_CONFIG"; then
  6185   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  6186 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  6187 else
  6188   { $as_echo "$as_me:$LINENO: result: no" >&5
  6189 $as_echo "no" >&6; }
  6190 fi
  6192   if test "x$ac_pt_PKG_CONFIG" = x; then
  6193     PKG_CONFIG=""
  6194   else
  6195     case $cross_compiling:$ac_tool_warned in
  6196 yes:)
  6197 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6198 whose name does not start with the host triplet.  If you think this
  6199 configuration is useful to you, please write to autoconf@gnu.org." >&5
  6200 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6201 whose name does not start with the host triplet.  If you think this
  6202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6203 ac_tool_warned=yes ;;
  6204 esac
  6205     PKG_CONFIG=$ac_pt_PKG_CONFIG
  6206   fi
  6207 else
  6208   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  6209 fi
  6211 fi
  6212 if test -n "$PKG_CONFIG"; then
  6213 	_pkg_min_version=0.9.0
  6214 	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  6215 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  6216 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  6217 		{ $as_echo "$as_me:$LINENO: result: yes" >&5
  6218 $as_echo "yes" >&6; }
  6219 	else
  6220 		{ $as_echo "$as_me:$LINENO: result: no" >&5
  6221 $as_echo "no" >&6; }
  6222 		PKG_CONFIG=""
  6223 	fi
  6225 fi
  6227 pkg_failed=no
  6228 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
  6229 $as_echo_n "checking for LIBPNG... " >&6; }
  6231 if test -n "$PKG_CONFIG"; then
  6232     if test -n "$LIBPNG_CFLAGS"; then
  6233         pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  6234     else
  6235         if test -n "$PKG_CONFIG" && \
  6236     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  6237   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  6238   ac_status=$?
  6239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6240   (exit $ac_status); }; then
  6241   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  6242 else
  6243   pkg_failed=yes
  6244 fi
  6245     fi
  6246 else
  6247 	pkg_failed=untried
  6248 fi
  6249 if test -n "$PKG_CONFIG"; then
  6250     if test -n "$LIBPNG_LIBS"; then
  6251         pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  6252     else
  6253         if test -n "$PKG_CONFIG" && \
  6254     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  6255   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  6256   ac_status=$?
  6257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6258   (exit $ac_status); }; then
  6259   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  6260 else
  6261   pkg_failed=yes
  6262 fi
  6263     fi
  6264 else
  6265 	pkg_failed=untried
  6266 fi
  6270 if test $pkg_failed = yes; then
  6272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6273         _pkg_short_errors_supported=yes
  6274 else
  6275         _pkg_short_errors_supported=no
  6276 fi
  6277         if test $_pkg_short_errors_supported = yes; then
  6278 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
  6279         else
  6280 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
  6281         fi
  6282 	# Put the nasty error message in config.log where it belongs
  6283 	echo "$LIBPNG_PKG_ERRORS" >&5
  6285 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  6287 $LIBPNG_PKG_ERRORS
  6289 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6290 installed software in a non-standard prefix.
  6292 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  6293 and LIBPNG_LIBS to avoid the need to call pkg-config.
  6294 See the pkg-config man page for more details.
  6295 " >&5
  6296 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
  6298 $LIBPNG_PKG_ERRORS
  6300 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6301 installed software in a non-standard prefix.
  6303 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  6304 and LIBPNG_LIBS to avoid the need to call pkg-config.
  6305 See the pkg-config man page for more details.
  6306 " >&2;}
  6307    { (exit 1); exit 1; }; }
  6308 elif test $pkg_failed = untried; then
  6309 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  6310 is in your PATH or set the PKG_CONFIG environment variable to the full
  6311 path to pkg-config.
  6313 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  6314 and LIBPNG_LIBS to avoid the need to call pkg-config.
  6315 See the pkg-config man page for more details.
  6317 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  6318 See \`config.log' for more details." >&5
  6319 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  6320 is in your PATH or set the PKG_CONFIG environment variable to the full
  6321 path to pkg-config.
  6323 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  6324 and LIBPNG_LIBS to avoid the need to call pkg-config.
  6325 See the pkg-config man page for more details.
  6327 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  6328 See \`config.log' for more details." >&2;}
  6329    { (exit 1); exit 1; }; }
  6330 else
  6331 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  6332 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  6333         { $as_echo "$as_me:$LINENO: result: yes" >&5
  6334 $as_echo "yes" >&6; }
  6336 fi
  6339 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  6340 $as_echo_n "checking for uncompress in -lz... " >&6; }
  6341 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  6342   $as_echo_n "(cached) " >&6
  6343 else
  6344   ac_check_lib_save_LIBS=$LIBS
  6345 LIBS="-lz  $LIBS"
  6346 cat >conftest.$ac_ext <<_ACEOF
  6347 /* confdefs.h.  */
  6348 _ACEOF
  6349 cat confdefs.h >>conftest.$ac_ext
  6350 cat >>conftest.$ac_ext <<_ACEOF
  6351 /* end confdefs.h.  */
  6353 /* Override any GCC internal prototype to avoid an error.
  6354    Use char because int might match the return type of a GCC
  6355    builtin and then its argument prototype would still apply.  */
  6356 #ifdef __cplusplus
  6357 extern "C"
  6358 #endif
  6359 char uncompress ();
  6360 int
  6361 main ()
  6363 return uncompress ();
  6365   return 0;
  6367 _ACEOF
  6368 rm -f conftest.$ac_objext conftest$ac_exeext
  6369 if { (ac_try="$ac_link"
  6370 case "(($ac_try" in
  6371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6372   *) ac_try_echo=$ac_try;;
  6373 esac
  6374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6375 $as_echo "$ac_try_echo") >&5
  6376   (eval "$ac_link") 2>conftest.er1
  6377   ac_status=$?
  6378   grep -v '^ *+' conftest.er1 >conftest.err
  6379   rm -f conftest.er1
  6380   cat conftest.err >&5
  6381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6382   (exit $ac_status); } && {
  6383 	 test -z "$ac_c_werror_flag" ||
  6384 	 test ! -s conftest.err
  6385        } && test -s conftest$ac_exeext && {
  6386 	 test "$cross_compiling" = yes ||
  6387 	 $as_test_x conftest$ac_exeext
  6388        }; then
  6389   ac_cv_lib_z_uncompress=yes
  6390 else
  6391   $as_echo "$as_me: failed program was:" >&5
  6392 sed 's/^/| /' conftest.$ac_ext >&5
  6394 	ac_cv_lib_z_uncompress=no
  6395 fi
  6397 rm -rf conftest.dSYM
  6398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6399       conftest$ac_exeext conftest.$ac_ext
  6400 LIBS=$ac_check_lib_save_LIBS
  6401 fi
  6402 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  6403 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
  6404 if test $ac_cv_lib_z_uncompress = yes; then
  6405   cat >>confdefs.h <<_ACEOF
  6406 #define HAVE_LIBZ 1
  6407 _ACEOF
  6409   LIBS="-lz $LIBS"
  6411 else
  6413     echo "Zlib (libz.so) could not be found, but is required."
  6414     exit 1
  6415 fi
  6420 pkg_failed=no
  6421 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
  6422 $as_echo_n "checking for GTK... " >&6; }
  6424 if test -n "$PKG_CONFIG"; then
  6425     if test -n "$GTK_CFLAGS"; then
  6426         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  6427     else
  6428         if test -n "$PKG_CONFIG" && \
  6429     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  6430   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  6431   ac_status=$?
  6432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6433   (exit $ac_status); }; then
  6434   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  6435 else
  6436   pkg_failed=yes
  6437 fi
  6438     fi
  6439 else
  6440 	pkg_failed=untried
  6441 fi
  6442 if test -n "$PKG_CONFIG"; then
  6443     if test -n "$GTK_LIBS"; then
  6444         pkg_cv_GTK_LIBS="$GTK_LIBS"
  6445     else
  6446         if test -n "$PKG_CONFIG" && \
  6447     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  6448   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  6449   ac_status=$?
  6450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6451   (exit $ac_status); }; then
  6452   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  6453 else
  6454   pkg_failed=yes
  6455 fi
  6456     fi
  6457 else
  6458 	pkg_failed=untried
  6459 fi
  6463 if test $pkg_failed = yes; then
  6465 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6466         _pkg_short_errors_supported=yes
  6467 else
  6468         _pkg_short_errors_supported=no
  6469 fi
  6470         if test $_pkg_short_errors_supported = yes; then
  6471 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
  6472         else
  6473 	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
  6474         fi
  6475 	# Put the nasty error message in config.log where it belongs
  6476 	echo "$GTK_PKG_ERRORS" >&5
  6478 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  6480 $GTK_PKG_ERRORS
  6482 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6483 installed software in a non-standard prefix.
  6485 Alternatively, you may set the environment variables GTK_CFLAGS
  6486 and GTK_LIBS to avoid the need to call pkg-config.
  6487 See the pkg-config man page for more details.
  6488 " >&5
  6489 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  6491 $GTK_PKG_ERRORS
  6493 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6494 installed software in a non-standard prefix.
  6496 Alternatively, you may set the environment variables GTK_CFLAGS
  6497 and GTK_LIBS to avoid the need to call pkg-config.
  6498 See the pkg-config man page for more details.
  6499 " >&2;}
  6500    { (exit 1); exit 1; }; }
  6501 elif test $pkg_failed = untried; then
  6502 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  6503 is in your PATH or set the PKG_CONFIG environment variable to the full
  6504 path to pkg-config.
  6506 Alternatively, you may set the environment variables GTK_CFLAGS
  6507 and GTK_LIBS to avoid the need to call pkg-config.
  6508 See the pkg-config man page for more details.
  6510 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  6511 See \`config.log' for more details." >&5
  6512 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  6513 is in your PATH or set the PKG_CONFIG environment variable to the full
  6514 path to pkg-config.
  6516 Alternatively, you may set the environment variables GTK_CFLAGS
  6517 and GTK_LIBS to avoid the need to call pkg-config.
  6518 See the pkg-config man page for more details.
  6520 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  6521 See \`config.log' for more details." >&2;}
  6522    { (exit 1); exit 1; }; }
  6523 else
  6524 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  6525 	GTK_LIBS=$pkg_cv_GTK_LIBS
  6526         { $as_echo "$as_me:$LINENO: result: yes" >&5
  6527 $as_echo "yes" >&6; }
  6529     HAVE_GTK='yes'
  6531 cat >>confdefs.h <<\_ACEOF
  6532 #define HAVE_GTK 1
  6533 _ACEOF
  6536 fi
  6539 if test "$HAVE_GTK" = 'yes'; then
  6540   GUI_GTK_TRUE=
  6541   GUI_GTK_FALSE='#'
  6542 else
  6543   GUI_GTK_TRUE='#'
  6544   GUI_GTK_FALSE=
  6545 fi
  6548 LIBS="$LIBS $GTK_LIBS"
  6549 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
  6550 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
  6551 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
  6552   $as_echo_n "(cached) " >&6
  6553 else
  6554   cat >conftest.$ac_ext <<_ACEOF
  6555 /* confdefs.h.  */
  6556 _ACEOF
  6557 cat confdefs.h >>conftest.$ac_ext
  6558 cat >>conftest.$ac_ext <<_ACEOF
  6559 /* end confdefs.h.  */
  6560 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
  6561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  6562 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
  6564 /* System header to define __stub macros and hopefully few prototypes,
  6565     which can conflict with char gdk_x11_display_get_xdisplay (); below.
  6566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6567     <limits.h> exists even on freestanding compilers.  */
  6569 #ifdef __STDC__
  6570 # include <limits.h>
  6571 #else
  6572 # include <assert.h>
  6573 #endif
  6575 #undef gdk_x11_display_get_xdisplay
  6577 /* Override any GCC internal prototype to avoid an error.
  6578    Use char because int might match the return type of a GCC
  6579    builtin and then its argument prototype would still apply.  */
  6580 #ifdef __cplusplus
  6581 extern "C"
  6582 #endif
  6583 char gdk_x11_display_get_xdisplay ();
  6584 /* The GNU C library defines this for functions which it implements
  6585     to always fail with ENOSYS.  Some functions are actually named
  6586     something starting with __ and the normal name is an alias.  */
  6587 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
  6588 choke me
  6589 #endif
  6591 int
  6592 main ()
  6594 return gdk_x11_display_get_xdisplay ();
  6596   return 0;
  6598 _ACEOF
  6599 rm -f conftest.$ac_objext conftest$ac_exeext
  6600 if { (ac_try="$ac_link"
  6601 case "(($ac_try" in
  6602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6603   *) ac_try_echo=$ac_try;;
  6604 esac
  6605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6606 $as_echo "$ac_try_echo") >&5
  6607   (eval "$ac_link") 2>conftest.er1
  6608   ac_status=$?
  6609   grep -v '^ *+' conftest.er1 >conftest.err
  6610   rm -f conftest.er1
  6611   cat conftest.err >&5
  6612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6613   (exit $ac_status); } && {
  6614 	 test -z "$ac_c_werror_flag" ||
  6615 	 test ! -s conftest.err
  6616        } && test -s conftest$ac_exeext && {
  6617 	 test "$cross_compiling" = yes ||
  6618 	 $as_test_x conftest$ac_exeext
  6619        }; then
  6620   ac_cv_func_gdk_x11_display_get_xdisplay=yes
  6621 else
  6622   $as_echo "$as_me: failed program was:" >&5
  6623 sed 's/^/| /' conftest.$ac_ext >&5
  6625 	ac_cv_func_gdk_x11_display_get_xdisplay=no
  6626 fi
  6628 rm -rf conftest.dSYM
  6629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6630       conftest$ac_exeext conftest.$ac_ext
  6631 fi
  6632 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
  6633 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
  6634 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
  6636    HAVE_GTK_X11='yes'
  6638 cat >>confdefs.h <<\_ACEOF
  6639 #define HAVE_GTK_X11 1
  6640 _ACEOF
  6642 fi
  6644 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
  6645 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
  6646 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
  6647   $as_echo_n "(cached) " >&6
  6648 else
  6649   cat >conftest.$ac_ext <<_ACEOF
  6650 /* confdefs.h.  */
  6651 _ACEOF
  6652 cat confdefs.h >>conftest.$ac_ext
  6653 cat >>conftest.$ac_ext <<_ACEOF
  6654 /* end confdefs.h.  */
  6655 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
  6656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  6657 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
  6659 /* System header to define __stub macros and hopefully few prototypes,
  6660     which can conflict with char gdk_quartz_window_get_nsview (); below.
  6661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6662     <limits.h> exists even on freestanding compilers.  */
  6664 #ifdef __STDC__
  6665 # include <limits.h>
  6666 #else
  6667 # include <assert.h>
  6668 #endif
  6670 #undef gdk_quartz_window_get_nsview
  6672 /* Override any GCC internal prototype to avoid an error.
  6673    Use char because int might match the return type of a GCC
  6674    builtin and then its argument prototype would still apply.  */
  6675 #ifdef __cplusplus
  6676 extern "C"
  6677 #endif
  6678 char gdk_quartz_window_get_nsview ();
  6679 /* The GNU C library defines this for functions which it implements
  6680     to always fail with ENOSYS.  Some functions are actually named
  6681     something starting with __ and the normal name is an alias.  */
  6682 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
  6683 choke me
  6684 #endif
  6686 int
  6687 main ()
  6689 return gdk_quartz_window_get_nsview ();
  6691   return 0;
  6693 _ACEOF
  6694 rm -f conftest.$ac_objext conftest$ac_exeext
  6695 if { (ac_try="$ac_link"
  6696 case "(($ac_try" in
  6697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6698   *) ac_try_echo=$ac_try;;
  6699 esac
  6700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6701 $as_echo "$ac_try_echo") >&5
  6702   (eval "$ac_link") 2>conftest.er1
  6703   ac_status=$?
  6704   grep -v '^ *+' conftest.er1 >conftest.err
  6705   rm -f conftest.er1
  6706   cat conftest.err >&5
  6707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6708   (exit $ac_status); } && {
  6709 	 test -z "$ac_c_werror_flag" ||
  6710 	 test ! -s conftest.err
  6711        } && test -s conftest$ac_exeext && {
  6712 	 test "$cross_compiling" = yes ||
  6713 	 $as_test_x conftest$ac_exeext
  6714        }; then
  6715   ac_cv_func_gdk_quartz_window_get_nsview=yes
  6716 else
  6717   $as_echo "$as_me: failed program was:" >&5
  6718 sed 's/^/| /' conftest.$ac_ext >&5
  6720 	ac_cv_func_gdk_quartz_window_get_nsview=no
  6721 fi
  6723 rm -rf conftest.dSYM
  6724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6725       conftest$ac_exeext conftest.$ac_ext
  6726 fi
  6727 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
  6728 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
  6729 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
  6731    HAVE_GTK_OSX='yes'
  6733 cat >>confdefs.h <<\_ACEOF
  6734 #define HAVE_GTK_OSX 1
  6735 _ACEOF
  6737 fi
  6740 if test "x$with_osmesa" != xno; then
  6744 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  6745 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
  6746 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  6747   $as_echo_n "(cached) " >&6
  6748 else
  6749   ac_check_lib_save_LIBS=$LIBS
  6750 LIBS="-lOSMesa  $LIBS"
  6751 cat >conftest.$ac_ext <<_ACEOF
  6752 /* confdefs.h.  */
  6753 _ACEOF
  6754 cat confdefs.h >>conftest.$ac_ext
  6755 cat >>conftest.$ac_ext <<_ACEOF
  6756 /* end confdefs.h.  */
  6758 /* Override any GCC internal prototype to avoid an error.
  6759    Use char because int might match the return type of a GCC
  6760    builtin and then its argument prototype would still apply.  */
  6761 #ifdef __cplusplus
  6762 extern "C"
  6763 #endif
  6764 char OSMesaCreateContext ();
  6765 int
  6766 main ()
  6768 return OSMesaCreateContext ();
  6770   return 0;
  6772 _ACEOF
  6773 rm -f conftest.$ac_objext conftest$ac_exeext
  6774 if { (ac_try="$ac_link"
  6775 case "(($ac_try" in
  6776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6777   *) ac_try_echo=$ac_try;;
  6778 esac
  6779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6780 $as_echo "$ac_try_echo") >&5
  6781   (eval "$ac_link") 2>conftest.er1
  6782   ac_status=$?
  6783   grep -v '^ *+' conftest.er1 >conftest.err
  6784   rm -f conftest.er1
  6785   cat conftest.err >&5
  6786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6787   (exit $ac_status); } && {
  6788 	 test -z "$ac_c_werror_flag" ||
  6789 	 test ! -s conftest.err
  6790        } && test -s conftest$ac_exeext && {
  6791 	 test "$cross_compiling" = yes ||
  6792 	 $as_test_x conftest$ac_exeext
  6793        }; then
  6794   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  6795 else
  6796   $as_echo "$as_me: failed program was:" >&5
  6797 sed 's/^/| /' conftest.$ac_ext >&5
  6799 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  6800 fi
  6802 rm -rf conftest.dSYM
  6803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6804       conftest$ac_exeext conftest.$ac_ext
  6805 LIBS=$ac_check_lib_save_LIBS
  6806 fi
  6807 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  6808 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  6809 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
  6810   cat >>confdefs.h <<_ACEOF
  6811 #define HAVE_LIBOSMESA 1
  6812 _ACEOF
  6814   LIBS="-lOSMesa $LIBS"
  6816 else
  6817   { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  6818 See \`config.log' for more details." >&5
  6819 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  6820 See \`config.log' for more details." >&2;}
  6821    { (exit 1); exit 1; }; }
  6822 fi
  6824   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  6825   { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  6826 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  6827 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  6828   $as_echo_n "(cached) " >&6
  6829 fi
  6830 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  6831 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  6832 else
  6833   # Is the header compilable?
  6834 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  6835 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
  6836 cat >conftest.$ac_ext <<_ACEOF
  6837 /* confdefs.h.  */
  6838 _ACEOF
  6839 cat confdefs.h >>conftest.$ac_ext
  6840 cat >>conftest.$ac_ext <<_ACEOF
  6841 /* end confdefs.h.  */
  6842 $ac_includes_default
  6843 #include <GL/osmesa.h>
  6844 _ACEOF
  6845 rm -f conftest.$ac_objext
  6846 if { (ac_try="$ac_compile"
  6847 case "(($ac_try" in
  6848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6849   *) ac_try_echo=$ac_try;;
  6850 esac
  6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6852 $as_echo "$ac_try_echo") >&5
  6853   (eval "$ac_compile") 2>conftest.er1
  6854   ac_status=$?
  6855   grep -v '^ *+' conftest.er1 >conftest.err
  6856   rm -f conftest.er1
  6857   cat conftest.err >&5
  6858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6859   (exit $ac_status); } && {
  6860 	 test -z "$ac_c_werror_flag" ||
  6861 	 test ! -s conftest.err
  6862        } && test -s conftest.$ac_objext; then
  6863   ac_header_compiler=yes
  6864 else
  6865   $as_echo "$as_me: failed program was:" >&5
  6866 sed 's/^/| /' conftest.$ac_ext >&5
  6868 	ac_header_compiler=no
  6869 fi
  6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6872 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6873 $as_echo "$ac_header_compiler" >&6; }
  6875 # Is the header present?
  6876 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  6877 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
  6878 cat >conftest.$ac_ext <<_ACEOF
  6879 /* confdefs.h.  */
  6880 _ACEOF
  6881 cat confdefs.h >>conftest.$ac_ext
  6882 cat >>conftest.$ac_ext <<_ACEOF
  6883 /* end confdefs.h.  */
  6884 #include <GL/osmesa.h>
  6885 _ACEOF
  6886 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6887 case "(($ac_try" in
  6888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6889   *) ac_try_echo=$ac_try;;
  6890 esac
  6891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6892 $as_echo "$ac_try_echo") >&5
  6893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6894   ac_status=$?
  6895   grep -v '^ *+' conftest.er1 >conftest.err
  6896   rm -f conftest.er1
  6897   cat conftest.err >&5
  6898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6899   (exit $ac_status); } >/dev/null && {
  6900 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6901 	 test ! -s conftest.err
  6902        }; then
  6903   ac_header_preproc=yes
  6904 else
  6905   $as_echo "$as_me: failed program was:" >&5
  6906 sed 's/^/| /' conftest.$ac_ext >&5
  6908   ac_header_preproc=no
  6909 fi
  6911 rm -f conftest.err conftest.$ac_ext
  6912 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6913 $as_echo "$ac_header_preproc" >&6; }
  6915 # So?  What about this header?
  6916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6917   yes:no: )
  6918     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6919 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6920     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  6921 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  6922     ac_header_preproc=yes
  6923     ;;
  6924   no:yes:* )
  6925     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  6926 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  6927     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  6928 $as_echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  6929     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  6930 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  6931     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  6932 $as_echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6933     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  6934 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  6935     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  6936 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  6938     ;;
  6939 esac
  6940 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  6941 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  6942 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  6943   $as_echo_n "(cached) " >&6
  6944 else
  6945   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  6946 fi
  6947 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  6948 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  6950 fi
  6951 if test $ac_cv_header_GL_osmesa_h = yes; then
  6953 else
  6954   { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  6955 See \`config.log' for more details." >&5
  6956 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  6957 See \`config.log' for more details." >&2;}
  6958    { (exit 1); exit 1; }; }
  6959 fi
  6962   HAVE_OSMESA='yes'
  6964 cat >>confdefs.h <<\_ACEOF
  6965 #define HAVE_OSMESA 1
  6966 _ACEOF
  6968 else
  6971    if test "x$APPLE_BUILD" != 'xyes'; then
  6973 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
  6974 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
  6975 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
  6976   $as_echo_n "(cached) " >&6
  6977 else
  6978   ac_check_lib_save_LIBS=$LIBS
  6979 LIBS="-lGL  $LIBS"
  6980 cat >conftest.$ac_ext <<_ACEOF
  6981 /* confdefs.h.  */
  6982 _ACEOF
  6983 cat confdefs.h >>conftest.$ac_ext
  6984 cat >>conftest.$ac_ext <<_ACEOF
  6985 /* end confdefs.h.  */
  6987 /* Override any GCC internal prototype to avoid an error.
  6988    Use char because int might match the return type of a GCC
  6989    builtin and then its argument prototype would still apply.  */
  6990 #ifdef __cplusplus
  6991 extern "C"
  6992 #endif
  6993 char glVertex3f ();
  6994 int
  6995 main ()
  6997 return glVertex3f ();
  6999   return 0;
  7001 _ACEOF
  7002 rm -f conftest.$ac_objext conftest$ac_exeext
  7003 if { (ac_try="$ac_link"
  7004 case "(($ac_try" in
  7005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7006   *) ac_try_echo=$ac_try;;
  7007 esac
  7008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7009 $as_echo "$ac_try_echo") >&5
  7010   (eval "$ac_link") 2>conftest.er1
  7011   ac_status=$?
  7012   grep -v '^ *+' conftest.er1 >conftest.err
  7013   rm -f conftest.er1
  7014   cat conftest.err >&5
  7015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7016   (exit $ac_status); } && {
  7017 	 test -z "$ac_c_werror_flag" ||
  7018 	 test ! -s conftest.err
  7019        } && test -s conftest$ac_exeext && {
  7020 	 test "$cross_compiling" = yes ||
  7021 	 $as_test_x conftest$ac_exeext
  7022        }; then
  7023   ac_cv_lib_GL_glVertex3f=yes
  7024 else
  7025   $as_echo "$as_me: failed program was:" >&5
  7026 sed 's/^/| /' conftest.$ac_ext >&5
  7028 	ac_cv_lib_GL_glVertex3f=no
  7029 fi
  7031 rm -rf conftest.dSYM
  7032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7033       conftest$ac_exeext conftest.$ac_ext
  7034 LIBS=$ac_check_lib_save_LIBS
  7035 fi
  7036 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
  7037 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
  7038 if test $ac_cv_lib_GL_glVertex3f = yes; then
  7039   cat >>confdefs.h <<_ACEOF
  7040 #define HAVE_LIBGL 1
  7041 _ACEOF
  7043   LIBS="-lGL $LIBS"
  7045 else
  7047           { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  7048 See \`config.log' for more details." >&5
  7049 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  7050 See \`config.log' for more details." >&2;}
  7051    { (exit 1); exit 1; }; }
  7052 fi
  7054       if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7055   { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  7056 $as_echo_n "checking for GL/gl.h... " >&6; }
  7057 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7058   $as_echo_n "(cached) " >&6
  7059 fi
  7060 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  7061 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  7062 else
  7063   # Is the header compilable?
  7064 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  7065 $as_echo_n "checking GL/gl.h usability... " >&6; }
  7066 cat >conftest.$ac_ext <<_ACEOF
  7067 /* confdefs.h.  */
  7068 _ACEOF
  7069 cat confdefs.h >>conftest.$ac_ext
  7070 cat >>conftest.$ac_ext <<_ACEOF
  7071 /* end confdefs.h.  */
  7072 $ac_includes_default
  7073 #include <GL/gl.h>
  7074 _ACEOF
  7075 rm -f conftest.$ac_objext
  7076 if { (ac_try="$ac_compile"
  7077 case "(($ac_try" in
  7078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7079   *) ac_try_echo=$ac_try;;
  7080 esac
  7081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7082 $as_echo "$ac_try_echo") >&5
  7083   (eval "$ac_compile") 2>conftest.er1
  7084   ac_status=$?
  7085   grep -v '^ *+' conftest.er1 >conftest.err
  7086   rm -f conftest.er1
  7087   cat conftest.err >&5
  7088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7089   (exit $ac_status); } && {
  7090 	 test -z "$ac_c_werror_flag" ||
  7091 	 test ! -s conftest.err
  7092        } && test -s conftest.$ac_objext; then
  7093   ac_header_compiler=yes
  7094 else
  7095   $as_echo "$as_me: failed program was:" >&5
  7096 sed 's/^/| /' conftest.$ac_ext >&5
  7098 	ac_header_compiler=no
  7099 fi
  7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7102 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7103 $as_echo "$ac_header_compiler" >&6; }
  7105 # Is the header present?
  7106 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  7107 $as_echo_n "checking GL/gl.h presence... " >&6; }
  7108 cat >conftest.$ac_ext <<_ACEOF
  7109 /* confdefs.h.  */
  7110 _ACEOF
  7111 cat confdefs.h >>conftest.$ac_ext
  7112 cat >>conftest.$ac_ext <<_ACEOF
  7113 /* end confdefs.h.  */
  7114 #include <GL/gl.h>
  7115 _ACEOF
  7116 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7117 case "(($ac_try" in
  7118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7119   *) ac_try_echo=$ac_try;;
  7120 esac
  7121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7122 $as_echo "$ac_try_echo") >&5
  7123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7124   ac_status=$?
  7125   grep -v '^ *+' conftest.er1 >conftest.err
  7126   rm -f conftest.er1
  7127   cat conftest.err >&5
  7128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7129   (exit $ac_status); } >/dev/null && {
  7130 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7131 	 test ! -s conftest.err
  7132        }; then
  7133   ac_header_preproc=yes
  7134 else
  7135   $as_echo "$as_me: failed program was:" >&5
  7136 sed 's/^/| /' conftest.$ac_ext >&5
  7138   ac_header_preproc=no
  7139 fi
  7141 rm -f conftest.err conftest.$ac_ext
  7142 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7143 $as_echo "$ac_header_preproc" >&6; }
  7145 # So?  What about this header?
  7146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7147   yes:no: )
  7148     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7149 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7150     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  7151 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  7152     ac_header_preproc=yes
  7153     ;;
  7154   no:yes:* )
  7155     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  7156 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  7157     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  7158 $as_echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  7159     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  7160 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  7161     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  7162 $as_echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7163     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  7164 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  7165     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  7166 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  7168     ;;
  7169 esac
  7170 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  7171 $as_echo_n "checking for GL/gl.h... " >&6; }
  7172 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7173   $as_echo_n "(cached) " >&6
  7174 else
  7175   ac_cv_header_GL_gl_h=$ac_header_preproc
  7176 fi
  7177 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  7178 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  7180 fi
  7181 if test $ac_cv_header_GL_gl_h = yes; then
  7183 else
  7185           { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  7186 See \`config.log' for more details." >&5
  7187 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  7188 See \`config.log' for more details." >&2;}
  7189    { (exit 1); exit 1; }; }
  7190 fi
  7193    fi
  7195    if test "x$HAVE_GTK_X11" = "xyes"; then
  7196       if test "x$APPLE_BUILD" = "xyes"; then
  7197          LIBS="$LIBS -L/usr/X11/lib -lGL"
  7198       fi
  7199       { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
  7200 $as_echo_n "checking for glXQueryVersion... " >&6; }
  7201 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
  7202   $as_echo_n "(cached) " >&6
  7203 else
  7204   cat >conftest.$ac_ext <<_ACEOF
  7205 /* confdefs.h.  */
  7206 _ACEOF
  7207 cat confdefs.h >>conftest.$ac_ext
  7208 cat >>conftest.$ac_ext <<_ACEOF
  7209 /* end confdefs.h.  */
  7210 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
  7211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7212 #define glXQueryVersion innocuous_glXQueryVersion
  7214 /* System header to define __stub macros and hopefully few prototypes,
  7215     which can conflict with char glXQueryVersion (); below.
  7216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7217     <limits.h> exists even on freestanding compilers.  */
  7219 #ifdef __STDC__
  7220 # include <limits.h>
  7221 #else
  7222 # include <assert.h>
  7223 #endif
  7225 #undef glXQueryVersion
  7227 /* Override any GCC internal prototype to avoid an error.
  7228    Use char because int might match the return type of a GCC
  7229    builtin and then its argument prototype would still apply.  */
  7230 #ifdef __cplusplus
  7231 extern "C"
  7232 #endif
  7233 char glXQueryVersion ();
  7234 /* The GNU C library defines this for functions which it implements
  7235     to always fail with ENOSYS.  Some functions are actually named
  7236     something starting with __ and the normal name is an alias.  */
  7237 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
  7238 choke me
  7239 #endif
  7241 int
  7242 main ()
  7244 return glXQueryVersion ();
  7246   return 0;
  7248 _ACEOF
  7249 rm -f conftest.$ac_objext conftest$ac_exeext
  7250 if { (ac_try="$ac_link"
  7251 case "(($ac_try" in
  7252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7253   *) ac_try_echo=$ac_try;;
  7254 esac
  7255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7256 $as_echo "$ac_try_echo") >&5
  7257   (eval "$ac_link") 2>conftest.er1
  7258   ac_status=$?
  7259   grep -v '^ *+' conftest.er1 >conftest.err
  7260   rm -f conftest.er1
  7261   cat conftest.err >&5
  7262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7263   (exit $ac_status); } && {
  7264 	 test -z "$ac_c_werror_flag" ||
  7265 	 test ! -s conftest.err
  7266        } && test -s conftest$ac_exeext && {
  7267 	 test "$cross_compiling" = yes ||
  7268 	 $as_test_x conftest$ac_exeext
  7269        }; then
  7270   ac_cv_func_glXQueryVersion=yes
  7271 else
  7272   $as_echo "$as_me: failed program was:" >&5
  7273 sed 's/^/| /' conftest.$ac_ext >&5
  7275 	ac_cv_func_glXQueryVersion=no
  7276 fi
  7278 rm -rf conftest.dSYM
  7279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7280       conftest$ac_exeext conftest.$ac_ext
  7281 fi
  7282 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
  7283 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
  7284 if test $ac_cv_func_glXQueryVersion = yes; then
  7286          HAVE_GLX='yes'
  7288 cat >>confdefs.h <<\_ACEOF
  7289 #define HAVE_GLX 1
  7290 _ACEOF
  7292 fi
  7294    elif test "x$HAVE_GTK_OSX" = "xyes"; then
  7295       { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
  7296 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
  7297 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
  7298   $as_echo_n "(cached) " >&6
  7299 else
  7300   cat >conftest.$ac_ext <<_ACEOF
  7301 /* confdefs.h.  */
  7302 _ACEOF
  7303 cat confdefs.h >>conftest.$ac_ext
  7304 cat >>conftest.$ac_ext <<_ACEOF
  7305 /* end confdefs.h.  */
  7306 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
  7307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7308 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
  7310 /* System header to define __stub macros and hopefully few prototypes,
  7311     which can conflict with char NSOpenGLGetVersion (); below.
  7312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7313     <limits.h> exists even on freestanding compilers.  */
  7315 #ifdef __STDC__
  7316 # include <limits.h>
  7317 #else
  7318 # include <assert.h>
  7319 #endif
  7321 #undef NSOpenGLGetVersion
  7323 /* Override any GCC internal prototype to avoid an error.
  7324    Use char because int might match the return type of a GCC
  7325    builtin and then its argument prototype would still apply.  */
  7326 #ifdef __cplusplus
  7327 extern "C"
  7328 #endif
  7329 char NSOpenGLGetVersion ();
  7330 /* The GNU C library defines this for functions which it implements
  7331     to always fail with ENOSYS.  Some functions are actually named
  7332     something starting with __ and the normal name is an alias.  */
  7333 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
  7334 choke me
  7335 #endif
  7337 int
  7338 main ()
  7340 return NSOpenGLGetVersion ();
  7342   return 0;
  7344 _ACEOF
  7345 rm -f conftest.$ac_objext conftest$ac_exeext
  7346 if { (ac_try="$ac_link"
  7347 case "(($ac_try" in
  7348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7349   *) ac_try_echo=$ac_try;;
  7350 esac
  7351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7352 $as_echo "$ac_try_echo") >&5
  7353   (eval "$ac_link") 2>conftest.er1
  7354   ac_status=$?
  7355   grep -v '^ *+' conftest.er1 >conftest.err
  7356   rm -f conftest.er1
  7357   cat conftest.err >&5
  7358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7359   (exit $ac_status); } && {
  7360 	 test -z "$ac_c_werror_flag" ||
  7361 	 test ! -s conftest.err
  7362        } && test -s conftest$ac_exeext && {
  7363 	 test "$cross_compiling" = yes ||
  7364 	 $as_test_x conftest$ac_exeext
  7365        }; then
  7366   ac_cv_func_NSOpenGLGetVersion=yes
  7367 else
  7368   $as_echo "$as_me: failed program was:" >&5
  7369 sed 's/^/| /' conftest.$ac_ext >&5
  7371 	ac_cv_func_NSOpenGLGetVersion=no
  7372 fi
  7374 rm -rf conftest.dSYM
  7375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7376       conftest$ac_exeext conftest.$ac_ext
  7377 fi
  7378 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
  7379 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
  7380 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
  7382          HAVE_NSGL='yes'
  7384 cat >>confdefs.h <<\_ACEOF
  7385 #define HAVE_NSGL 1
  7386 _ACEOF
  7388 fi
  7390    fi
  7393 fi
  7397 if test "x$HAVE_OSMESA" = "x" -a "x$HAVE_GLX" = "x" -a "x$HAVE_NSGL" = "x"; then
  7398    echo "Warning: Building with no video support"
  7399 fi
  7403 if test "x$HAVE_OSMESA" = "xyes"; then
  7404   VIDEO_OSMESA_TRUE=
  7405   VIDEO_OSMESA_FALSE='#'
  7406 else
  7407   VIDEO_OSMESA_TRUE='#'
  7408   VIDEO_OSMESA_FALSE=
  7409 fi
  7413 if test "x$HAVE_GLX" = "xyes"; then
  7414   VIDEO_GLX_TRUE=
  7415   VIDEO_GLX_FALSE='#'
  7416 else
  7417   VIDEO_GLX_TRUE='#'
  7418   VIDEO_GLX_FALSE=
  7419 fi
  7423 if test "x$HAVE_NSGL" = "xyes"; then
  7424   VIDEO_NSGL_TRUE=
  7425   VIDEO_NSGL_FALSE='#'
  7426 else
  7427   VIDEO_NSGL_TRUE='#'
  7428   VIDEO_NSGL_FALSE=
  7429 fi
  7432 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
  7433 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
  7434 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
  7435   $as_echo_n "(cached) " >&6
  7436 else
  7437   cat >conftest.$ac_ext <<_ACEOF
  7438 /* confdefs.h.  */
  7439 _ACEOF
  7440 cat confdefs.h >>conftest.$ac_ext
  7441 cat >>conftest.$ac_ext <<_ACEOF
  7442 /* end confdefs.h.  */
  7443 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
  7444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7445 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
  7447 /* System header to define __stub macros and hopefully few prototypes,
  7448     which can conflict with char glGenFramebuffersEXT (); below.
  7449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7450     <limits.h> exists even on freestanding compilers.  */
  7452 #ifdef __STDC__
  7453 # include <limits.h>
  7454 #else
  7455 # include <assert.h>
  7456 #endif
  7458 #undef glGenFramebuffersEXT
  7460 /* Override any GCC internal prototype to avoid an error.
  7461    Use char because int might match the return type of a GCC
  7462    builtin and then its argument prototype would still apply.  */
  7463 #ifdef __cplusplus
  7464 extern "C"
  7465 #endif
  7466 char glGenFramebuffersEXT ();
  7467 /* The GNU C library defines this for functions which it implements
  7468     to always fail with ENOSYS.  Some functions are actually named
  7469     something starting with __ and the normal name is an alias.  */
  7470 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
  7471 choke me
  7472 #endif
  7474 int
  7475 main ()
  7477 return glGenFramebuffersEXT ();
  7479   return 0;
  7481 _ACEOF
  7482 rm -f conftest.$ac_objext conftest$ac_exeext
  7483 if { (ac_try="$ac_link"
  7484 case "(($ac_try" in
  7485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7486   *) ac_try_echo=$ac_try;;
  7487 esac
  7488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7489 $as_echo "$ac_try_echo") >&5
  7490   (eval "$ac_link") 2>conftest.er1
  7491   ac_status=$?
  7492   grep -v '^ *+' conftest.er1 >conftest.err
  7493   rm -f conftest.er1
  7494   cat conftest.err >&5
  7495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496   (exit $ac_status); } && {
  7497 	 test -z "$ac_c_werror_flag" ||
  7498 	 test ! -s conftest.err
  7499        } && test -s conftest$ac_exeext && {
  7500 	 test "$cross_compiling" = yes ||
  7501 	 $as_test_x conftest$ac_exeext
  7502        }; then
  7503   ac_cv_func_glGenFramebuffersEXT=yes
  7504 else
  7505   $as_echo "$as_me: failed program was:" >&5
  7506 sed 's/^/| /' conftest.$ac_ext >&5
  7508 	ac_cv_func_glGenFramebuffersEXT=no
  7509 fi
  7511 rm -rf conftest.dSYM
  7512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7513       conftest$ac_exeext conftest.$ac_ext
  7514 fi
  7515 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
  7516 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
  7517 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
  7519 cat >>confdefs.h <<\_ACEOF
  7520 #define HAVE_OPENGL_FBO 1
  7521 _ACEOF
  7523 fi
  7525 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
  7526 $as_echo_n "checking for glCreateShader... " >&6; }
  7527 if test "${ac_cv_func_glCreateShader+set}" = set; then
  7528   $as_echo_n "(cached) " >&6
  7529 else
  7530   cat >conftest.$ac_ext <<_ACEOF
  7531 /* confdefs.h.  */
  7532 _ACEOF
  7533 cat confdefs.h >>conftest.$ac_ext
  7534 cat >>conftest.$ac_ext <<_ACEOF
  7535 /* end confdefs.h.  */
  7536 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
  7537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7538 #define glCreateShader innocuous_glCreateShader
  7540 /* System header to define __stub macros and hopefully few prototypes,
  7541     which can conflict with char glCreateShader (); below.
  7542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7543     <limits.h> exists even on freestanding compilers.  */
  7545 #ifdef __STDC__
  7546 # include <limits.h>
  7547 #else
  7548 # include <assert.h>
  7549 #endif
  7551 #undef glCreateShader
  7553 /* Override any GCC internal prototype to avoid an error.
  7554    Use char because int might match the return type of a GCC
  7555    builtin and then its argument prototype would still apply.  */
  7556 #ifdef __cplusplus
  7557 extern "C"
  7558 #endif
  7559 char glCreateShader ();
  7560 /* The GNU C library defines this for functions which it implements
  7561     to always fail with ENOSYS.  Some functions are actually named
  7562     something starting with __ and the normal name is an alias.  */
  7563 #if defined __stub_glCreateShader || defined __stub___glCreateShader
  7564 choke me
  7565 #endif
  7567 int
  7568 main ()
  7570 return glCreateShader ();
  7572   return 0;
  7574 _ACEOF
  7575 rm -f conftest.$ac_objext conftest$ac_exeext
  7576 if { (ac_try="$ac_link"
  7577 case "(($ac_try" in
  7578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7579   *) ac_try_echo=$ac_try;;
  7580 esac
  7581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7582 $as_echo "$ac_try_echo") >&5
  7583   (eval "$ac_link") 2>conftest.er1
  7584   ac_status=$?
  7585   grep -v '^ *+' conftest.er1 >conftest.err
  7586   rm -f conftest.er1
  7587   cat conftest.err >&5
  7588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7589   (exit $ac_status); } && {
  7590 	 test -z "$ac_c_werror_flag" ||
  7591 	 test ! -s conftest.err
  7592        } && test -s conftest$ac_exeext && {
  7593 	 test "$cross_compiling" = yes ||
  7594 	 $as_test_x conftest$ac_exeext
  7595        }; then
  7596   ac_cv_func_glCreateShader=yes
  7597 else
  7598   $as_echo "$as_me: failed program was:" >&5
  7599 sed 's/^/| /' conftest.$ac_ext >&5
  7601 	ac_cv_func_glCreateShader=no
  7602 fi
  7604 rm -rf conftest.dSYM
  7605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7606       conftest$ac_exeext conftest.$ac_ext
  7607 fi
  7608 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
  7609 $as_echo "$ac_cv_func_glCreateShader" >&6; }
  7610 if test $ac_cv_func_glCreateShader = yes; then
  7612 cat >>confdefs.h <<\_ACEOF
  7613 #define HAVE_OPENGL_SHADER 1
  7614 _ACEOF
  7616 fi
  7618 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
  7619 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
  7620 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
  7621   $as_echo_n "(cached) " >&6
  7622 else
  7623   cat >conftest.$ac_ext <<_ACEOF
  7624 /* confdefs.h.  */
  7625 _ACEOF
  7626 cat confdefs.h >>conftest.$ac_ext
  7627 cat >>conftest.$ac_ext <<_ACEOF
  7628 /* end confdefs.h.  */
  7629 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
  7630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7631 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
  7633 /* System header to define __stub macros and hopefully few prototypes,
  7634     which can conflict with char glCreateShaderObjectARB (); below.
  7635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7636     <limits.h> exists even on freestanding compilers.  */
  7638 #ifdef __STDC__
  7639 # include <limits.h>
  7640 #else
  7641 # include <assert.h>
  7642 #endif
  7644 #undef glCreateShaderObjectARB
  7646 /* Override any GCC internal prototype to avoid an error.
  7647    Use char because int might match the return type of a GCC
  7648    builtin and then its argument prototype would still apply.  */
  7649 #ifdef __cplusplus
  7650 extern "C"
  7651 #endif
  7652 char glCreateShaderObjectARB ();
  7653 /* The GNU C library defines this for functions which it implements
  7654     to always fail with ENOSYS.  Some functions are actually named
  7655     something starting with __ and the normal name is an alias.  */
  7656 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
  7657 choke me
  7658 #endif
  7660 int
  7661 main ()
  7663 return glCreateShaderObjectARB ();
  7665   return 0;
  7667 _ACEOF
  7668 rm -f conftest.$ac_objext conftest$ac_exeext
  7669 if { (ac_try="$ac_link"
  7670 case "(($ac_try" in
  7671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7672   *) ac_try_echo=$ac_try;;
  7673 esac
  7674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7675 $as_echo "$ac_try_echo") >&5
  7676   (eval "$ac_link") 2>conftest.er1
  7677   ac_status=$?
  7678   grep -v '^ *+' conftest.er1 >conftest.err
  7679   rm -f conftest.er1
  7680   cat conftest.err >&5
  7681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7682   (exit $ac_status); } && {
  7683 	 test -z "$ac_c_werror_flag" ||
  7684 	 test ! -s conftest.err
  7685        } && test -s conftest$ac_exeext && {
  7686 	 test "$cross_compiling" = yes ||
  7687 	 $as_test_x conftest$ac_exeext
  7688        }; then
  7689   ac_cv_func_glCreateShaderObjectARB=yes
  7690 else
  7691   $as_echo "$as_me: failed program was:" >&5
  7692 sed 's/^/| /' conftest.$ac_ext >&5
  7694 	ac_cv_func_glCreateShaderObjectARB=no
  7695 fi
  7697 rm -rf conftest.dSYM
  7698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7699       conftest$ac_exeext conftest.$ac_ext
  7700 fi
  7701 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
  7702 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
  7703 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
  7705 cat >>confdefs.h <<\_ACEOF
  7706 #define HAVE_OPENGL_SHADER_ARB 1
  7707 _ACEOF
  7709 fi
  7713 case $host_cpu in
  7714     i386|i486|i586|i686)
  7715 	SH4_TRANSLATOR="x86"
  7717 cat >>confdefs.h <<_ACEOF
  7718 #define SH4_TRANSLATOR TARGET_X86
  7719 _ACEOF
  7720 ;;
  7721     x86_64)
  7722 	SH4_TRANSLATOR="x86_64"
  7724 cat >>confdefs.h <<_ACEOF
  7725 #define SH4_TRANSLATOR TARGET_X86_64
  7726 _ACEOF
  7727 ;;
  7728     *)
  7729 	echo "Warning: No translator available for $host. Building emulation core only";;
  7730 esac
  7733 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
  7734   BUILD_SH4X86_TRUE=
  7735   BUILD_SH4X86_FALSE='#'
  7736 else
  7737   BUILD_SH4X86_TRUE='#'
  7738   BUILD_SH4X86_FALSE=
  7739 fi
  7743 if test "$SH4_TRANSLATOR" = "x86_64"; then
  7744   BUILD_X86_64_TRUE=
  7745   BUILD_X86_64_FALSE='#'
  7746 else
  7747   BUILD_X86_64_TRUE='#'
  7748   BUILD_X86_64_FALSE=
  7749 fi
  7753 pkg_failed=no
  7754 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
  7755 $as_echo_n "checking for PULSE... " >&6; }
  7757 if test -n "$PKG_CONFIG"; then
  7758     if test -n "$PULSE_CFLAGS"; then
  7759         pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
  7760     else
  7761         if test -n "$PKG_CONFIG" && \
  7762     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  7763   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  7764   ac_status=$?
  7765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7766   (exit $ac_status); }; then
  7767   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
  7768 else
  7769   pkg_failed=yes
  7770 fi
  7771     fi
  7772 else
  7773 	pkg_failed=untried
  7774 fi
  7775 if test -n "$PKG_CONFIG"; then
  7776     if test -n "$PULSE_LIBS"; then
  7777         pkg_cv_PULSE_LIBS="$PULSE_LIBS"
  7778     else
  7779         if test -n "$PKG_CONFIG" && \
  7780     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  7781   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  7782   ac_status=$?
  7783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7784   (exit $ac_status); }; then
  7785   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
  7786 else
  7787   pkg_failed=yes
  7788 fi
  7789     fi
  7790 else
  7791 	pkg_failed=untried
  7792 fi
  7796 if test $pkg_failed = yes; then
  7798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7799         _pkg_short_errors_supported=yes
  7800 else
  7801         _pkg_short_errors_supported=no
  7802 fi
  7803         if test $_pkg_short_errors_supported = yes; then
  7804 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
  7805         else
  7806 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
  7807         fi
  7808 	# Put the nasty error message in config.log where it belongs
  7809 	echo "$PULSE_PKG_ERRORS" >&5
  7811 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  7812 $as_echo "no" >&6; }
  7813                 true
  7814 elif test $pkg_failed = untried; then
  7815 	true
  7816 else
  7817 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
  7818 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
  7819         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7820 $as_echo "yes" >&6; }
  7822      HAVE_PULSE='yes'
  7824 cat >>confdefs.h <<\_ACEOF
  7825 #define HAVE_PULSE 1
  7826 _ACEOF
  7828 fi
  7831 if test "$HAVE_PULSE" = 'yes' ; then
  7832   AUDIO_PULSE_TRUE=
  7833   AUDIO_PULSE_FALSE='#'
  7834 else
  7835   AUDIO_PULSE_TRUE='#'
  7836   AUDIO_PULSE_FALSE=
  7837 fi
  7841 pkg_failed=no
  7842 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
  7843 $as_echo_n "checking for ESOUND... " >&6; }
  7845 if test -n "$PKG_CONFIG"; then
  7846     if test -n "$ESOUND_CFLAGS"; then
  7847         pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
  7848     else
  7849         if test -n "$PKG_CONFIG" && \
  7850     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  7851   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  7852   ac_status=$?
  7853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7854   (exit $ac_status); }; then
  7855   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  7856 else
  7857   pkg_failed=yes
  7858 fi
  7859     fi
  7860 else
  7861 	pkg_failed=untried
  7862 fi
  7863 if test -n "$PKG_CONFIG"; then
  7864     if test -n "$ESOUND_LIBS"; then
  7865         pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
  7866     else
  7867         if test -n "$PKG_CONFIG" && \
  7868     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  7869   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  7870   ac_status=$?
  7871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7872   (exit $ac_status); }; then
  7873   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  7874 else
  7875   pkg_failed=yes
  7876 fi
  7877     fi
  7878 else
  7879 	pkg_failed=untried
  7880 fi
  7884 if test $pkg_failed = yes; then
  7886 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7887         _pkg_short_errors_supported=yes
  7888 else
  7889         _pkg_short_errors_supported=no
  7890 fi
  7891         if test $_pkg_short_errors_supported = yes; then
  7892 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
  7893         else
  7894 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
  7895         fi
  7896 	# Put the nasty error message in config.log where it belongs
  7897 	echo "$ESOUND_PKG_ERRORS" >&5
  7899 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  7900 $as_echo "no" >&6; }
  7901                 true
  7902 elif test $pkg_failed = untried; then
  7903 	true
  7904 else
  7905 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
  7906 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
  7907         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7908 $as_echo "yes" >&6; }
  7910      HAVE_ESOUND='yes'
  7912 cat >>confdefs.h <<\_ACEOF
  7913 #define HAVE_ESOUND 1
  7914 _ACEOF
  7916 fi
  7919 if test "$HAVE_ESOUND" = 'yes' ; then
  7920   AUDIO_ESOUND_TRUE=
  7921   AUDIO_ESOUND_FALSE='#'
  7922 else
  7923   AUDIO_ESOUND_TRUE='#'
  7924   AUDIO_ESOUND_FALSE=
  7925 fi
  7929 pkg_failed=no
  7930 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
  7931 $as_echo_n "checking for ALSA... " >&6; }
  7933 if test -n "$PKG_CONFIG"; then
  7934     if test -n "$ALSA_CFLAGS"; then
  7935         pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
  7936     else
  7937         if test -n "$PKG_CONFIG" && \
  7938     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  7939   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  7940   ac_status=$?
  7941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7942   (exit $ac_status); }; then
  7943   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
  7944 else
  7945   pkg_failed=yes
  7946 fi
  7947     fi
  7948 else
  7949 	pkg_failed=untried
  7950 fi
  7951 if test -n "$PKG_CONFIG"; then
  7952     if test -n "$ALSA_LIBS"; then
  7953         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
  7954     else
  7955         if test -n "$PKG_CONFIG" && \
  7956     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  7957   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  7958   ac_status=$?
  7959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7960   (exit $ac_status); }; then
  7961   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
  7962 else
  7963   pkg_failed=yes
  7964 fi
  7965     fi
  7966 else
  7967 	pkg_failed=untried
  7968 fi
  7972 if test $pkg_failed = yes; then
  7974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7975         _pkg_short_errors_supported=yes
  7976 else
  7977         _pkg_short_errors_supported=no
  7978 fi
  7979         if test $_pkg_short_errors_supported = yes; then
  7980 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
  7981         else
  7982 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
  7983         fi
  7984 	# Put the nasty error message in config.log where it belongs
  7985 	echo "$ALSA_PKG_ERRORS" >&5
  7987 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  7988 $as_echo "no" >&6; }
  7989                 true
  7990 elif test $pkg_failed = untried; then
  7991 	true
  7992 else
  7993 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
  7994 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
  7995         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7996 $as_echo "yes" >&6; }
  7998      HAVE_ALSA='yes'
  8000 cat >>confdefs.h <<\_ACEOF
  8001 #define HAVE_ALSA 1
  8002 _ACEOF
  8004 fi
  8007 if test "$HAVE_ALSA" = 'yes' ; then
  8008   AUDIO_ALSA_TRUE=
  8009   AUDIO_ALSA_FALSE='#'
  8010 else
  8011   AUDIO_ALSA_TRUE='#'
  8012   AUDIO_ALSA_FALSE=
  8013 fi
  8016 if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
  8017    echo "Warning: Building without audio support"
  8018 fi
  8020 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  8021   { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  8022 $as_echo_n "checking for linux/cdrom.h... " >&6; }
  8023 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  8024   $as_echo_n "(cached) " >&6
  8025 fi
  8026 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  8027 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
  8028 else
  8029   # Is the header compilable?
  8030 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  8031 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
  8032 cat >conftest.$ac_ext <<_ACEOF
  8033 /* confdefs.h.  */
  8034 _ACEOF
  8035 cat confdefs.h >>conftest.$ac_ext
  8036 cat >>conftest.$ac_ext <<_ACEOF
  8037 /* end confdefs.h.  */
  8038 $ac_includes_default
  8039 #include <linux/cdrom.h>
  8040 _ACEOF
  8041 rm -f conftest.$ac_objext
  8042 if { (ac_try="$ac_compile"
  8043 case "(($ac_try" in
  8044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8045   *) ac_try_echo=$ac_try;;
  8046 esac
  8047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8048 $as_echo "$ac_try_echo") >&5
  8049   (eval "$ac_compile") 2>conftest.er1
  8050   ac_status=$?
  8051   grep -v '^ *+' conftest.er1 >conftest.err
  8052   rm -f conftest.er1
  8053   cat conftest.err >&5
  8054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8055   (exit $ac_status); } && {
  8056 	 test -z "$ac_c_werror_flag" ||
  8057 	 test ! -s conftest.err
  8058        } && test -s conftest.$ac_objext; then
  8059   ac_header_compiler=yes
  8060 else
  8061   $as_echo "$as_me: failed program was:" >&5
  8062 sed 's/^/| /' conftest.$ac_ext >&5
  8064 	ac_header_compiler=no
  8065 fi
  8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8068 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8069 $as_echo "$ac_header_compiler" >&6; }
  8071 # Is the header present?
  8072 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  8073 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
  8074 cat >conftest.$ac_ext <<_ACEOF
  8075 /* confdefs.h.  */
  8076 _ACEOF
  8077 cat confdefs.h >>conftest.$ac_ext
  8078 cat >>conftest.$ac_ext <<_ACEOF
  8079 /* end confdefs.h.  */
  8080 #include <linux/cdrom.h>
  8081 _ACEOF
  8082 if { (ac_try="$ac_cpp conftest.$ac_ext"
  8083 case "(($ac_try" in
  8084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8085   *) ac_try_echo=$ac_try;;
  8086 esac
  8087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8088 $as_echo "$ac_try_echo") >&5
  8089   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8090   ac_status=$?
  8091   grep -v '^ *+' conftest.er1 >conftest.err
  8092   rm -f conftest.er1
  8093   cat conftest.err >&5
  8094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8095   (exit $ac_status); } >/dev/null && {
  8096 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8097 	 test ! -s conftest.err
  8098        }; then
  8099   ac_header_preproc=yes
  8100 else
  8101   $as_echo "$as_me: failed program was:" >&5
  8102 sed 's/^/| /' conftest.$ac_ext >&5
  8104   ac_header_preproc=no
  8105 fi
  8107 rm -f conftest.err conftest.$ac_ext
  8108 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8109 $as_echo "$ac_header_preproc" >&6; }
  8111 # So?  What about this header?
  8112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8113   yes:no: )
  8114     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8115 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8116     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
  8117 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
  8118     ac_header_preproc=yes
  8119     ;;
  8120   no:yes:* )
  8121     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
  8122 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
  8123     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
  8124 $as_echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
  8125     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
  8126 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
  8127     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
  8128 $as_echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  8129     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
  8130 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
  8131     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
  8132 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
  8134     ;;
  8135 esac
  8136 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  8137 $as_echo_n "checking for linux/cdrom.h... " >&6; }
  8138 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  8139   $as_echo_n "(cached) " >&6
  8140 else
  8141   ac_cv_header_linux_cdrom_h=$ac_header_preproc
  8142 fi
  8143 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  8144 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
  8146 fi
  8147 if test $ac_cv_header_linux_cdrom_h = yes; then
  8148   HAVE_LINUX_CDROM_H=yes
  8149 else
  8151     echo "Linux CDROM support not found, building without it."
  8152 fi
  8157 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
  8158   CDROM_LINUX_TRUE=
  8159   CDROM_LINUX_FALSE='#'
  8160 else
  8161   CDROM_LINUX_TRUE='#'
  8162   CDROM_LINUX_FALSE=
  8163 fi
  8166 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  8167   { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  8168 $as_echo_n "checking for linux/joystick.h... " >&6; }
  8169 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  8170   $as_echo_n "(cached) " >&6
  8171 fi
  8172 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  8173 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
  8174 else
  8175   # Is the header compilable?
  8176 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
  8177 $as_echo_n "checking linux/joystick.h usability... " >&6; }
  8178 cat >conftest.$ac_ext <<_ACEOF
  8179 /* confdefs.h.  */
  8180 _ACEOF
  8181 cat confdefs.h >>conftest.$ac_ext
  8182 cat >>conftest.$ac_ext <<_ACEOF
  8183 /* end confdefs.h.  */
  8184 $ac_includes_default
  8185 #include <linux/joystick.h>
  8186 _ACEOF
  8187 rm -f conftest.$ac_objext
  8188 if { (ac_try="$ac_compile"
  8189 case "(($ac_try" in
  8190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8191   *) ac_try_echo=$ac_try;;
  8192 esac
  8193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8194 $as_echo "$ac_try_echo") >&5
  8195   (eval "$ac_compile") 2>conftest.er1
  8196   ac_status=$?
  8197   grep -v '^ *+' conftest.er1 >conftest.err
  8198   rm -f conftest.er1
  8199   cat conftest.err >&5
  8200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8201   (exit $ac_status); } && {
  8202 	 test -z "$ac_c_werror_flag" ||
  8203 	 test ! -s conftest.err
  8204        } && test -s conftest.$ac_objext; then
  8205   ac_header_compiler=yes
  8206 else
  8207   $as_echo "$as_me: failed program was:" >&5
  8208 sed 's/^/| /' conftest.$ac_ext >&5
  8210 	ac_header_compiler=no
  8211 fi
  8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8214 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8215 $as_echo "$ac_header_compiler" >&6; }
  8217 # Is the header present?
  8218 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
  8219 $as_echo_n "checking linux/joystick.h presence... " >&6; }
  8220 cat >conftest.$ac_ext <<_ACEOF
  8221 /* confdefs.h.  */
  8222 _ACEOF
  8223 cat confdefs.h >>conftest.$ac_ext
  8224 cat >>conftest.$ac_ext <<_ACEOF
  8225 /* end confdefs.h.  */
  8226 #include <linux/joystick.h>
  8227 _ACEOF
  8228 if { (ac_try="$ac_cpp conftest.$ac_ext"
  8229 case "(($ac_try" in
  8230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8231   *) ac_try_echo=$ac_try;;
  8232 esac
  8233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8234 $as_echo "$ac_try_echo") >&5
  8235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8236   ac_status=$?
  8237   grep -v '^ *+' conftest.er1 >conftest.err
  8238   rm -f conftest.er1
  8239   cat conftest.err >&5
  8240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8241   (exit $ac_status); } >/dev/null && {
  8242 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8243 	 test ! -s conftest.err
  8244        }; then
  8245   ac_header_preproc=yes
  8246 else
  8247   $as_echo "$as_me: failed program was:" >&5
  8248 sed 's/^/| /' conftest.$ac_ext >&5
  8250   ac_header_preproc=no
  8251 fi
  8253 rm -f conftest.err conftest.$ac_ext
  8254 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8255 $as_echo "$ac_header_preproc" >&6; }
  8257 # So?  What about this header?
  8258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8259   yes:no: )
  8260     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8261 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8262     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
  8263 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
  8264     ac_header_preproc=yes
  8265     ;;
  8266   no:yes:* )
  8267     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
  8268 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
  8269     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
  8270 $as_echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
  8271     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
  8272 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
  8273     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
  8274 $as_echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  8275     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
  8276 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
  8277     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
  8278 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
  8280     ;;
  8281 esac
  8282 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  8283 $as_echo_n "checking for linux/joystick.h... " >&6; }
  8284 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  8285   $as_echo_n "(cached) " >&6
  8286 else
  8287   ac_cv_header_linux_joystick_h=$ac_header_preproc
  8288 fi
  8289 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  8290 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
  8292 fi
  8293 if test $ac_cv_header_linux_joystick_h = yes; then
  8295     HAVE_LINUX_JOYSTICK_H=yes
  8297 cat >>confdefs.h <<\_ACEOF
  8298 #define HAVE_LINUX_JOYSTICK 1
  8299 _ACEOF
  8301 else
  8302    echo "Linux Joystick support not found, building without it."
  8303 fi
  8308 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
  8309   JOY_LINUX_TRUE=
  8310   JOY_LINUX_FALSE='#'
  8311 else
  8312   JOY_LINUX_TRUE='#'
  8313   JOY_LINUX_FALSE=
  8314 fi
  8317 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
  8318 set dummy sh-elf-gcc; ac_word=$2
  8319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8320 $as_echo_n "checking for $ac_word... " >&6; }
  8321 if test "${ac_cv_path_SHCC+set}" = set; then
  8322   $as_echo_n "(cached) " >&6
  8323 else
  8324   case $SHCC in
  8325   [\\/]* | ?:[\\/]*)
  8326   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
  8327   ;;
  8328   *)
  8329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8330 for as_dir in $PATH
  8331 do
  8332   IFS=$as_save_IFS
  8333   test -z "$as_dir" && as_dir=.
  8334   for ac_exec_ext in '' $ac_executable_extensions; do
  8335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8336     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
  8337     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8338     break 2
  8339   fi
  8340 done
  8341 done
  8342 IFS=$as_save_IFS
  8344   ;;
  8345 esac
  8346 fi
  8347 SHCC=$ac_cv_path_SHCC
  8348 if test -n "$SHCC"; then
  8349   { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
  8350 $as_echo "$SHCC" >&6; }
  8351 else
  8352   { $as_echo "$as_me:$LINENO: result: no" >&5
  8353 $as_echo "no" >&6; }
  8354 fi
  8357 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
  8358 set dummy sh-elf-ld; ac_word=$2
  8359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8360 $as_echo_n "checking for $ac_word... " >&6; }
  8361 if test "${ac_cv_path_SHLD+set}" = set; then
  8362   $as_echo_n "(cached) " >&6
  8363 else
  8364   case $SHLD in
  8365   [\\/]* | ?:[\\/]*)
  8366   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
  8367   ;;
  8368   *)
  8369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8370 for as_dir in $PATH
  8371 do
  8372   IFS=$as_save_IFS
  8373   test -z "$as_dir" && as_dir=.
  8374   for ac_exec_ext in '' $ac_executable_extensions; do
  8375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8376     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
  8377     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8378     break 2
  8379   fi
  8380 done
  8381 done
  8382 IFS=$as_save_IFS
  8384   ;;
  8385 esac
  8386 fi
  8387 SHLD=$ac_cv_path_SHLD
  8388 if test -n "$SHLD"; then
  8389   { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
  8390 $as_echo "$SHLD" >&6; }
  8391 else
  8392   { $as_echo "$as_me:$LINENO: result: no" >&5
  8393 $as_echo "no" >&6; }
  8394 fi
  8397 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
  8398 set dummy sh-elf-objcopy; ac_word=$2
  8399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8400 $as_echo_n "checking for $ac_word... " >&6; }
  8401 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
  8402   $as_echo_n "(cached) " >&6
  8403 else
  8404   case $SHOBJCOPY in
  8405   [\\/]* | ?:[\\/]*)
  8406   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
  8407   ;;
  8408   *)
  8409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8410 for as_dir in $PATH
  8411 do
  8412   IFS=$as_save_IFS
  8413   test -z "$as_dir" && as_dir=.
  8414   for ac_exec_ext in '' $ac_executable_extensions; do
  8415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8416     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  8417     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8418     break 2
  8419   fi
  8420 done
  8421 done
  8422 IFS=$as_save_IFS
  8424   ;;
  8425 esac
  8426 fi
  8427 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
  8428 if test -n "$SHOBJCOPY"; then
  8429   { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
  8430 $as_echo "$SHOBJCOPY" >&6; }
  8431 else
  8432   { $as_echo "$as_me:$LINENO: result: no" >&5
  8433 $as_echo "no" >&6; }
  8434 fi
  8437 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
  8438 set dummy arm-elf-gcc; ac_word=$2
  8439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8440 $as_echo_n "checking for $ac_word... " >&6; }
  8441 if test "${ac_cv_path_ARMCC+set}" = set; then
  8442   $as_echo_n "(cached) " >&6
  8443 else
  8444   case $ARMCC in
  8445   [\\/]* | ?:[\\/]*)
  8446   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
  8447   ;;
  8448   *)
  8449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8450 for as_dir in $PATH
  8451 do
  8452   IFS=$as_save_IFS
  8453   test -z "$as_dir" && as_dir=.
  8454   for ac_exec_ext in '' $ac_executable_extensions; do
  8455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8456     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
  8457     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8458     break 2
  8459   fi
  8460 done
  8461 done
  8462 IFS=$as_save_IFS
  8464   ;;
  8465 esac
  8466 fi
  8467 ARMCC=$ac_cv_path_ARMCC
  8468 if test -n "$ARMCC"; then
  8469   { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
  8470 $as_echo "$ARMCC" >&6; }
  8471 else
  8472   { $as_echo "$as_me:$LINENO: result: no" >&5
  8473 $as_echo "no" >&6; }
  8474 fi
  8477 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
  8478 set dummy arm-elf-ld; ac_word=$2
  8479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8480 $as_echo_n "checking for $ac_word... " >&6; }
  8481 if test "${ac_cv_path_ARMLD+set}" = set; then
  8482   $as_echo_n "(cached) " >&6
  8483 else
  8484   case $ARMLD in
  8485   [\\/]* | ?:[\\/]*)
  8486   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
  8487   ;;
  8488   *)
  8489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8490 for as_dir in $PATH
  8491 do
  8492   IFS=$as_save_IFS
  8493   test -z "$as_dir" && as_dir=.
  8494   for ac_exec_ext in '' $ac_executable_extensions; do
  8495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8496     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
  8497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8498     break 2
  8499   fi
  8500 done
  8501 done
  8502 IFS=$as_save_IFS
  8504   ;;
  8505 esac
  8506 fi
  8507 ARMLD=$ac_cv_path_ARMLD
  8508 if test -n "$ARMLD"; then
  8509   { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
  8510 $as_echo "$ARMLD" >&6; }
  8511 else
  8512   { $as_echo "$as_me:$LINENO: result: no" >&5
  8513 $as_echo "no" >&6; }
  8514 fi
  8517 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
  8518 set dummy arm-elf-objcopy; ac_word=$2
  8519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8520 $as_echo_n "checking for $ac_word... " >&6; }
  8521 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
  8522   $as_echo_n "(cached) " >&6
  8523 else
  8524   case $ARMOBJCOPY in
  8525   [\\/]* | ?:[\\/]*)
  8526   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
  8527   ;;
  8528   *)
  8529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8530 for as_dir in $PATH
  8531 do
  8532   IFS=$as_save_IFS
  8533   test -z "$as_dir" && as_dir=.
  8534   for ac_exec_ext in '' $ac_executable_extensions; do
  8535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8536     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  8537     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8538     break 2
  8539   fi
  8540 done
  8541 done
  8542 IFS=$as_save_IFS
  8544   ;;
  8545 esac
  8546 fi
  8547 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
  8548 if test -n "$ARMOBJCOPY"; then
  8549   { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
  8550 $as_echo "$ARMOBJCOPY" >&6; }
  8551 else
  8552   { $as_echo "$as_me:$LINENO: result: no" >&5
  8553 $as_echo "no" >&6; }
  8554 fi
  8558 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
  8559   BUILD_SH="no"
  8560   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
  8561 else
  8562   BUILD_SH="yes"
  8563 fi
  8564 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
  8565   BUILD_ARM="no"
  8566   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
  8567 else
  8568   BUILD_ARM="yes"
  8569 fi
  8572 if test "$BUILD_SH" = "yes"; then
  8573   BUILD_SYSTEST_TRUE=
  8574   BUILD_SYSTEST_FALSE='#'
  8575 else
  8576   BUILD_SYSTEST_TRUE='#'
  8577   BUILD_SYSTEST_FALSE=
  8578 fi
  8582 if test "$BUILD_ARM" = "yes"; then
  8583   BUILD_ARMTEST_TRUE=
  8584   BUILD_ARMTEST_FALSE='#'
  8585 else
  8586   BUILD_ARMTEST_TRUE='#'
  8587   BUILD_ARMTEST_FALSE=
  8588 fi
  8592 GETTEXT_PACKAGE=lxdream
  8595 cat >>confdefs.h <<_ACEOF
  8596 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  8597 _ACEOF
  8600 ALL_LINGUAS="de pt_BR"
  8603 for ac_header in locale.h
  8604 do
  8605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8607   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  8608 $as_echo_n "checking for $ac_header... " >&6; }
  8609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8610   $as_echo_n "(cached) " >&6
  8611 fi
  8612 ac_res=`eval 'as_val=${'$as_ac_Header'}
  8613 		 $as_echo "$as_val"'`
  8614 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  8615 $as_echo "$ac_res" >&6; }
  8616 else
  8617   # Is the header compilable?
  8618 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8619 $as_echo_n "checking $ac_header usability... " >&6; }
  8620 cat >conftest.$ac_ext <<_ACEOF
  8621 /* confdefs.h.  */
  8622 _ACEOF
  8623 cat confdefs.h >>conftest.$ac_ext
  8624 cat >>conftest.$ac_ext <<_ACEOF
  8625 /* end confdefs.h.  */
  8626 $ac_includes_default
  8627 #include <$ac_header>
  8628 _ACEOF
  8629 rm -f conftest.$ac_objext
  8630 if { (ac_try="$ac_compile"
  8631 case "(($ac_try" in
  8632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8633   *) ac_try_echo=$ac_try;;
  8634 esac
  8635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8636 $as_echo "$ac_try_echo") >&5
  8637   (eval "$ac_compile") 2>conftest.er1
  8638   ac_status=$?
  8639   grep -v '^ *+' conftest.er1 >conftest.err
  8640   rm -f conftest.er1
  8641   cat conftest.err >&5
  8642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8643   (exit $ac_status); } && {
  8644 	 test -z "$ac_c_werror_flag" ||
  8645 	 test ! -s conftest.err
  8646        } && test -s conftest.$ac_objext; then
  8647   ac_header_compiler=yes
  8648 else
  8649   $as_echo "$as_me: failed program was:" >&5
  8650 sed 's/^/| /' conftest.$ac_ext >&5
  8652 	ac_header_compiler=no
  8653 fi
  8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8656 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8657 $as_echo "$ac_header_compiler" >&6; }
  8659 # Is the header present?
  8660 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8661 $as_echo_n "checking $ac_header presence... " >&6; }
  8662 cat >conftest.$ac_ext <<_ACEOF
  8663 /* confdefs.h.  */
  8664 _ACEOF
  8665 cat confdefs.h >>conftest.$ac_ext
  8666 cat >>conftest.$ac_ext <<_ACEOF
  8667 /* end confdefs.h.  */
  8668 #include <$ac_header>
  8669 _ACEOF
  8670 if { (ac_try="$ac_cpp conftest.$ac_ext"
  8671 case "(($ac_try" in
  8672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8673   *) ac_try_echo=$ac_try;;
  8674 esac
  8675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8676 $as_echo "$ac_try_echo") >&5
  8677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8678   ac_status=$?
  8679   grep -v '^ *+' conftest.er1 >conftest.err
  8680   rm -f conftest.er1
  8681   cat conftest.err >&5
  8682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8683   (exit $ac_status); } >/dev/null && {
  8684 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8685 	 test ! -s conftest.err
  8686        }; then
  8687   ac_header_preproc=yes
  8688 else
  8689   $as_echo "$as_me: failed program was:" >&5
  8690 sed 's/^/| /' conftest.$ac_ext >&5
  8692   ac_header_preproc=no
  8693 fi
  8695 rm -f conftest.err conftest.$ac_ext
  8696 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8697 $as_echo "$ac_header_preproc" >&6; }
  8699 # So?  What about this header?
  8700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8701   yes:no: )
  8702     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8703 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8704     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8705 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8706     ac_header_preproc=yes
  8707     ;;
  8708   no:yes:* )
  8709     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8710 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8711     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  8712 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  8713     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8714 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8715     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  8716 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  8717     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8718 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8719     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8720 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8722     ;;
  8723 esac
  8724 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  8725 $as_echo_n "checking for $ac_header... " >&6; }
  8726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8727   $as_echo_n "(cached) " >&6
  8728 else
  8729   eval "$as_ac_Header=\$ac_header_preproc"
  8730 fi
  8731 ac_res=`eval 'as_val=${'$as_ac_Header'}
  8732 		 $as_echo "$as_val"'`
  8733 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  8734 $as_echo "$ac_res" >&6; }
  8736 fi
  8737 if test `eval 'as_val=${'$as_ac_Header'}
  8738 		 $as_echo "$as_val"'` = yes; then
  8739   cat >>confdefs.h <<_ACEOF
  8740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8741 _ACEOF
  8743 fi
  8745 done
  8747     if test $ac_cv_header_locale_h = yes; then
  8748     { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8749 $as_echo_n "checking for LC_MESSAGES... " >&6; }
  8750 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8751   $as_echo_n "(cached) " >&6
  8752 else
  8753   cat >conftest.$ac_ext <<_ACEOF
  8754 /* confdefs.h.  */
  8755 _ACEOF
  8756 cat confdefs.h >>conftest.$ac_ext
  8757 cat >>conftest.$ac_ext <<_ACEOF
  8758 /* end confdefs.h.  */
  8759 #include <locale.h>
  8760 int
  8761 main ()
  8763 return LC_MESSAGES
  8765   return 0;
  8767 _ACEOF
  8768 rm -f conftest.$ac_objext conftest$ac_exeext
  8769 if { (ac_try="$ac_link"
  8770 case "(($ac_try" in
  8771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8772   *) ac_try_echo=$ac_try;;
  8773 esac
  8774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8775 $as_echo "$ac_try_echo") >&5
  8776   (eval "$ac_link") 2>conftest.er1
  8777   ac_status=$?
  8778   grep -v '^ *+' conftest.er1 >conftest.err
  8779   rm -f conftest.er1
  8780   cat conftest.err >&5
  8781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8782   (exit $ac_status); } && {
  8783 	 test -z "$ac_c_werror_flag" ||
  8784 	 test ! -s conftest.err
  8785        } && test -s conftest$ac_exeext && {
  8786 	 test "$cross_compiling" = yes ||
  8787 	 $as_test_x conftest$ac_exeext
  8788        }; then
  8789   am_cv_val_LC_MESSAGES=yes
  8790 else
  8791   $as_echo "$as_me: failed program was:" >&5
  8792 sed 's/^/| /' conftest.$ac_ext >&5
  8794 	am_cv_val_LC_MESSAGES=no
  8795 fi
  8797 rm -rf conftest.dSYM
  8798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8799       conftest$ac_exeext conftest.$ac_ext
  8800 fi
  8801 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8802 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  8803     if test $am_cv_val_LC_MESSAGES = yes; then
  8805 cat >>confdefs.h <<\_ACEOF
  8806 #define HAVE_LC_MESSAGES 1
  8807 _ACEOF
  8809     fi
  8810   fi
  8811          USE_NLS=yes
  8814     gt_cv_have_gettext=no
  8816     CATOBJEXT=NONE
  8817     XGETTEXT=:
  8818     INTLLIBS=
  8820     if test "${ac_cv_header_libintl_h+set}" = set; then
  8821   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
  8822 $as_echo_n "checking for libintl.h... " >&6; }
  8823 if test "${ac_cv_header_libintl_h+set}" = set; then
  8824   $as_echo_n "(cached) " >&6
  8825 fi
  8826 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  8827 $as_echo "$ac_cv_header_libintl_h" >&6; }
  8828 else
  8829   # Is the header compilable?
  8830 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
  8831 $as_echo_n "checking libintl.h usability... " >&6; }
  8832 cat >conftest.$ac_ext <<_ACEOF
  8833 /* confdefs.h.  */
  8834 _ACEOF
  8835 cat confdefs.h >>conftest.$ac_ext
  8836 cat >>conftest.$ac_ext <<_ACEOF
  8837 /* end confdefs.h.  */
  8838 $ac_includes_default
  8839 #include <libintl.h>
  8840 _ACEOF
  8841 rm -f conftest.$ac_objext
  8842 if { (ac_try="$ac_compile"
  8843 case "(($ac_try" in
  8844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8845   *) ac_try_echo=$ac_try;;
  8846 esac
  8847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8848 $as_echo "$ac_try_echo") >&5
  8849   (eval "$ac_compile") 2>conftest.er1
  8850   ac_status=$?
  8851   grep -v '^ *+' conftest.er1 >conftest.err
  8852   rm -f conftest.er1
  8853   cat conftest.err >&5
  8854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8855   (exit $ac_status); } && {
  8856 	 test -z "$ac_c_werror_flag" ||
  8857 	 test ! -s conftest.err
  8858        } && test -s conftest.$ac_objext; then
  8859   ac_header_compiler=yes
  8860 else
  8861   $as_echo "$as_me: failed program was:" >&5
  8862 sed 's/^/| /' conftest.$ac_ext >&5
  8864 	ac_header_compiler=no
  8865 fi
  8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8869 $as_echo "$ac_header_compiler" >&6; }
  8871 # Is the header present?
  8872 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
  8873 $as_echo_n "checking libintl.h presence... " >&6; }
  8874 cat >conftest.$ac_ext <<_ACEOF
  8875 /* confdefs.h.  */
  8876 _ACEOF
  8877 cat confdefs.h >>conftest.$ac_ext
  8878 cat >>conftest.$ac_ext <<_ACEOF
  8879 /* end confdefs.h.  */
  8880 #include <libintl.h>
  8881 _ACEOF
  8882 if { (ac_try="$ac_cpp conftest.$ac_ext"
  8883 case "(($ac_try" in
  8884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8885   *) ac_try_echo=$ac_try;;
  8886 esac
  8887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8888 $as_echo "$ac_try_echo") >&5
  8889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8890   ac_status=$?
  8891   grep -v '^ *+' conftest.er1 >conftest.err
  8892   rm -f conftest.er1
  8893   cat conftest.err >&5
  8894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8895   (exit $ac_status); } >/dev/null && {
  8896 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8897 	 test ! -s conftest.err
  8898        }; then
  8899   ac_header_preproc=yes
  8900 else
  8901   $as_echo "$as_me: failed program was:" >&5
  8902 sed 's/^/| /' conftest.$ac_ext >&5
  8904   ac_header_preproc=no
  8905 fi
  8907 rm -f conftest.err conftest.$ac_ext
  8908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8909 $as_echo "$ac_header_preproc" >&6; }
  8911 # So?  What about this header?
  8912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8913   yes:no: )
  8914     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8915 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8916     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
  8917 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
  8918     ac_header_preproc=yes
  8919     ;;
  8920   no:yes:* )
  8921     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
  8922 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
  8923     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
  8924 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
  8925     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
  8926 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
  8927     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
  8928 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  8929     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
  8930 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
  8931     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
  8932 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
  8934     ;;
  8935 esac
  8936 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
  8937 $as_echo_n "checking for libintl.h... " >&6; }
  8938 if test "${ac_cv_header_libintl_h+set}" = set; then
  8939   $as_echo_n "(cached) " >&6
  8940 else
  8941   ac_cv_header_libintl_h=$ac_header_preproc
  8942 fi
  8943 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  8944 $as_echo "$ac_cv_header_libintl_h" >&6; }
  8946 fi
  8947 if test $ac_cv_header_libintl_h = yes; then
  8948   gt_cv_func_dgettext_libintl="no"
  8949       libintl_extra_libs=""
  8952       # First check in libc
  8954       { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
  8955 $as_echo_n "checking for ngettext in libc... " >&6; }
  8956 if test "${gt_cv_func_ngettext_libc+set}" = set; then
  8957   $as_echo_n "(cached) " >&6
  8958 else
  8959   cat >conftest.$ac_ext <<_ACEOF
  8960 /* confdefs.h.  */
  8961 _ACEOF
  8962 cat confdefs.h >>conftest.$ac_ext
  8963 cat >>conftest.$ac_ext <<_ACEOF
  8964 /* end confdefs.h.  */
  8966 #include <libintl.h>
  8968 int
  8969 main ()
  8971 return !ngettext ("","", 1)
  8973   return 0;
  8975 _ACEOF
  8976 rm -f conftest.$ac_objext conftest$ac_exeext
  8977 if { (ac_try="$ac_link"
  8978 case "(($ac_try" in
  8979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8980   *) ac_try_echo=$ac_try;;
  8981 esac
  8982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8983 $as_echo "$ac_try_echo") >&5
  8984   (eval "$ac_link") 2>conftest.er1
  8985   ac_status=$?
  8986   grep -v '^ *+' conftest.er1 >conftest.err
  8987   rm -f conftest.er1
  8988   cat conftest.err >&5
  8989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8990   (exit $ac_status); } && {
  8991 	 test -z "$ac_c_werror_flag" ||
  8992 	 test ! -s conftest.err
  8993        } && test -s conftest$ac_exeext && {
  8994 	 test "$cross_compiling" = yes ||
  8995 	 $as_test_x conftest$ac_exeext
  8996        }; then
  8997   gt_cv_func_ngettext_libc=yes
  8998 else
  8999   $as_echo "$as_me: failed program was:" >&5
  9000 sed 's/^/| /' conftest.$ac_ext >&5
  9002 	gt_cv_func_ngettext_libc=no
  9003 fi
  9005 rm -rf conftest.dSYM
  9006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9007       conftest$ac_exeext conftest.$ac_ext
  9009 fi
  9010 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
  9011 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
  9013       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  9014 	      { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
  9015 $as_echo_n "checking for dgettext in libc... " >&6; }
  9016 if test "${gt_cv_func_dgettext_libc+set}" = set; then
  9017   $as_echo_n "(cached) " >&6
  9018 else
  9019   cat >conftest.$ac_ext <<_ACEOF
  9020 /* confdefs.h.  */
  9021 _ACEOF
  9022 cat confdefs.h >>conftest.$ac_ext
  9023 cat >>conftest.$ac_ext <<_ACEOF
  9024 /* end confdefs.h.  */
  9026 #include <libintl.h>
  9028 int
  9029 main ()
  9031 return !dgettext ("","")
  9033   return 0;
  9035 _ACEOF
  9036 rm -f conftest.$ac_objext conftest$ac_exeext
  9037 if { (ac_try="$ac_link"
  9038 case "(($ac_try" in
  9039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9040   *) ac_try_echo=$ac_try;;
  9041 esac
  9042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9043 $as_echo "$ac_try_echo") >&5
  9044   (eval "$ac_link") 2>conftest.er1
  9045   ac_status=$?
  9046   grep -v '^ *+' conftest.er1 >conftest.err
  9047   rm -f conftest.er1
  9048   cat conftest.err >&5
  9049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9050   (exit $ac_status); } && {
  9051 	 test -z "$ac_c_werror_flag" ||
  9052 	 test ! -s conftest.err
  9053        } && test -s conftest$ac_exeext && {
  9054 	 test "$cross_compiling" = yes ||
  9055 	 $as_test_x conftest$ac_exeext
  9056        }; then
  9057   gt_cv_func_dgettext_libc=yes
  9058 else
  9059   $as_echo "$as_me: failed program was:" >&5
  9060 sed 's/^/| /' conftest.$ac_ext >&5
  9062 	gt_cv_func_dgettext_libc=no
  9063 fi
  9065 rm -rf conftest.dSYM
  9066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9067       conftest$ac_exeext conftest.$ac_ext
  9069 fi
  9070 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
  9071 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
  9072       fi
  9074       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  9076 for ac_func in bind_textdomain_codeset
  9077 do
  9078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9079 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9080 $as_echo_n "checking for $ac_func... " >&6; }
  9081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9082   $as_echo_n "(cached) " >&6
  9083 else
  9084   cat >conftest.$ac_ext <<_ACEOF
  9085 /* confdefs.h.  */
  9086 _ACEOF
  9087 cat confdefs.h >>conftest.$ac_ext
  9088 cat >>conftest.$ac_ext <<_ACEOF
  9089 /* end confdefs.h.  */
  9090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9092 #define $ac_func innocuous_$ac_func
  9094 /* System header to define __stub macros and hopefully few prototypes,
  9095     which can conflict with char $ac_func (); below.
  9096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9097     <limits.h> exists even on freestanding compilers.  */
  9099 #ifdef __STDC__
  9100 # include <limits.h>
  9101 #else
  9102 # include <assert.h>
  9103 #endif
  9105 #undef $ac_func
  9107 /* Override any GCC internal prototype to avoid an error.
  9108    Use char because int might match the return type of a GCC
  9109    builtin and then its argument prototype would still apply.  */
  9110 #ifdef __cplusplus
  9111 extern "C"
  9112 #endif
  9113 char $ac_func ();
  9114 /* The GNU C library defines this for functions which it implements
  9115     to always fail with ENOSYS.  Some functions are actually named
  9116     something starting with __ and the normal name is an alias.  */
  9117 #if defined __stub_$ac_func || defined __stub___$ac_func
  9118 choke me
  9119 #endif
  9121 int
  9122 main ()
  9124 return $ac_func ();
  9126   return 0;
  9128 _ACEOF
  9129 rm -f conftest.$ac_objext conftest$ac_exeext
  9130 if { (ac_try="$ac_link"
  9131 case "(($ac_try" in
  9132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9133   *) ac_try_echo=$ac_try;;
  9134 esac
  9135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9136 $as_echo "$ac_try_echo") >&5
  9137   (eval "$ac_link") 2>conftest.er1
  9138   ac_status=$?
  9139   grep -v '^ *+' conftest.er1 >conftest.err
  9140   rm -f conftest.er1
  9141   cat conftest.err >&5
  9142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9143   (exit $ac_status); } && {
  9144 	 test -z "$ac_c_werror_flag" ||
  9145 	 test ! -s conftest.err
  9146        } && test -s conftest$ac_exeext && {
  9147 	 test "$cross_compiling" = yes ||
  9148 	 $as_test_x conftest$ac_exeext
  9149        }; then
  9150   eval "$as_ac_var=yes"
  9151 else
  9152   $as_echo "$as_me: failed program was:" >&5
  9153 sed 's/^/| /' conftest.$ac_ext >&5
  9155 	eval "$as_ac_var=no"
  9156 fi
  9158 rm -rf conftest.dSYM
  9159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9160       conftest$ac_exeext conftest.$ac_ext
  9161 fi
  9162 ac_res=`eval 'as_val=${'$as_ac_var'}
  9163 		 $as_echo "$as_val"'`
  9164 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9165 $as_echo "$ac_res" >&6; }
  9166 if test `eval 'as_val=${'$as_ac_var'}
  9167 		 $as_echo "$as_val"'` = yes; then
  9168   cat >>confdefs.h <<_ACEOF
  9169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9170 _ACEOF
  9172 fi
  9173 done
  9175       fi
  9178       # If we don't have everything we want, check in libintl
  9180       if test "$gt_cv_func_dgettext_libc" != "yes" \
  9181 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
  9182          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  9184         { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
  9185 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
  9186 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
  9187   $as_echo_n "(cached) " >&6
  9188 else
  9189   ac_check_lib_save_LIBS=$LIBS
  9190 LIBS="-lintl  $LIBS"
  9191 cat >conftest.$ac_ext <<_ACEOF
  9192 /* confdefs.h.  */
  9193 _ACEOF
  9194 cat confdefs.h >>conftest.$ac_ext
  9195 cat >>conftest.$ac_ext <<_ACEOF
  9196 /* end confdefs.h.  */
  9198 /* Override any GCC internal prototype to avoid an error.
  9199    Use char because int might match the return type of a GCC
  9200    builtin and then its argument prototype would still apply.  */
  9201 #ifdef __cplusplus
  9202 extern "C"
  9203 #endif
  9204 char bindtextdomain ();
  9205 int
  9206 main ()
  9208 return bindtextdomain ();
  9210   return 0;
  9212 _ACEOF
  9213 rm -f conftest.$ac_objext conftest$ac_exeext
  9214 if { (ac_try="$ac_link"
  9215 case "(($ac_try" in
  9216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9217   *) ac_try_echo=$ac_try;;
  9218 esac
  9219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9220 $as_echo "$ac_try_echo") >&5
  9221   (eval "$ac_link") 2>conftest.er1
  9222   ac_status=$?
  9223   grep -v '^ *+' conftest.er1 >conftest.err
  9224   rm -f conftest.er1
  9225   cat conftest.err >&5
  9226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9227   (exit $ac_status); } && {
  9228 	 test -z "$ac_c_werror_flag" ||
  9229 	 test ! -s conftest.err
  9230        } && test -s conftest$ac_exeext && {
  9231 	 test "$cross_compiling" = yes ||
  9232 	 $as_test_x conftest$ac_exeext
  9233        }; then
  9234   ac_cv_lib_intl_bindtextdomain=yes
  9235 else
  9236   $as_echo "$as_me: failed program was:" >&5
  9237 sed 's/^/| /' conftest.$ac_ext >&5
  9239 	ac_cv_lib_intl_bindtextdomain=no
  9240 fi
  9242 rm -rf conftest.dSYM
  9243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9244       conftest$ac_exeext conftest.$ac_ext
  9245 LIBS=$ac_check_lib_save_LIBS
  9246 fi
  9247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
  9248 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
  9249 if test $ac_cv_lib_intl_bindtextdomain = yes; then
  9250   { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  9251 $as_echo_n "checking for ngettext in -lintl... " >&6; }
  9252 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  9253   $as_echo_n "(cached) " >&6
  9254 else
  9255   ac_check_lib_save_LIBS=$LIBS
  9256 LIBS="-lintl  $LIBS"
  9257 cat >conftest.$ac_ext <<_ACEOF
  9258 /* confdefs.h.  */
  9259 _ACEOF
  9260 cat confdefs.h >>conftest.$ac_ext
  9261 cat >>conftest.$ac_ext <<_ACEOF
  9262 /* end confdefs.h.  */
  9264 /* Override any GCC internal prototype to avoid an error.
  9265    Use char because int might match the return type of a GCC
  9266    builtin and then its argument prototype would still apply.  */
  9267 #ifdef __cplusplus
  9268 extern "C"
  9269 #endif
  9270 char ngettext ();
  9271 int
  9272 main ()
  9274 return ngettext ();
  9276   return 0;
  9278 _ACEOF
  9279 rm -f conftest.$ac_objext conftest$ac_exeext
  9280 if { (ac_try="$ac_link"
  9281 case "(($ac_try" in
  9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9283   *) ac_try_echo=$ac_try;;
  9284 esac
  9285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9286 $as_echo "$ac_try_echo") >&5
  9287   (eval "$ac_link") 2>conftest.er1
  9288   ac_status=$?
  9289   grep -v '^ *+' conftest.er1 >conftest.err
  9290   rm -f conftest.er1
  9291   cat conftest.err >&5
  9292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9293   (exit $ac_status); } && {
  9294 	 test -z "$ac_c_werror_flag" ||
  9295 	 test ! -s conftest.err
  9296        } && test -s conftest$ac_exeext && {
  9297 	 test "$cross_compiling" = yes ||
  9298 	 $as_test_x conftest$ac_exeext
  9299        }; then
  9300   ac_cv_lib_intl_ngettext=yes
  9301 else
  9302   $as_echo "$as_me: failed program was:" >&5
  9303 sed 's/^/| /' conftest.$ac_ext >&5
  9305 	ac_cv_lib_intl_ngettext=no
  9306 fi
  9308 rm -rf conftest.dSYM
  9309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9310       conftest$ac_exeext conftest.$ac_ext
  9311 LIBS=$ac_check_lib_save_LIBS
  9312 fi
  9313 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  9314 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
  9315 if test $ac_cv_lib_intl_ngettext = yes; then
  9316   { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
  9317 $as_echo_n "checking for dgettext in -lintl... " >&6; }
  9318 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
  9319   $as_echo_n "(cached) " >&6
  9320 else
  9321   ac_check_lib_save_LIBS=$LIBS
  9322 LIBS="-lintl  $LIBS"
  9323 cat >conftest.$ac_ext <<_ACEOF
  9324 /* confdefs.h.  */
  9325 _ACEOF
  9326 cat confdefs.h >>conftest.$ac_ext
  9327 cat >>conftest.$ac_ext <<_ACEOF
  9328 /* end confdefs.h.  */
  9330 /* Override any GCC internal prototype to avoid an error.
  9331    Use char because int might match the return type of a GCC
  9332    builtin and then its argument prototype would still apply.  */
  9333 #ifdef __cplusplus
  9334 extern "C"
  9335 #endif
  9336 char dgettext ();
  9337 int
  9338 main ()
  9340 return dgettext ();
  9342   return 0;
  9344 _ACEOF
  9345 rm -f conftest.$ac_objext conftest$ac_exeext
  9346 if { (ac_try="$ac_link"
  9347 case "(($ac_try" in
  9348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9349   *) ac_try_echo=$ac_try;;
  9350 esac
  9351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9352 $as_echo "$ac_try_echo") >&5
  9353   (eval "$ac_link") 2>conftest.er1
  9354   ac_status=$?
  9355   grep -v '^ *+' conftest.er1 >conftest.err
  9356   rm -f conftest.er1
  9357   cat conftest.err >&5
  9358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9359   (exit $ac_status); } && {
  9360 	 test -z "$ac_c_werror_flag" ||
  9361 	 test ! -s conftest.err
  9362        } && test -s conftest$ac_exeext && {
  9363 	 test "$cross_compiling" = yes ||
  9364 	 $as_test_x conftest$ac_exeext
  9365        }; then
  9366   ac_cv_lib_intl_dgettext=yes
  9367 else
  9368   $as_echo "$as_me: failed program was:" >&5
  9369 sed 's/^/| /' conftest.$ac_ext >&5
  9371 	ac_cv_lib_intl_dgettext=no
  9372 fi
  9374 rm -rf conftest.dSYM
  9375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9376       conftest$ac_exeext conftest.$ac_ext
  9377 LIBS=$ac_check_lib_save_LIBS
  9378 fi
  9379 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
  9380 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
  9381 if test $ac_cv_lib_intl_dgettext = yes; then
  9382   gt_cv_func_dgettext_libintl=yes
  9383 fi
  9385 fi
  9387 fi
  9390 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  9391 	  { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
  9392 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
  9393 	  { $as_echo "$as_me:$LINENO: result: " >&5
  9394 $as_echo "" >&6; }
  9395   	  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  9396 $as_echo_n "checking for ngettext in -lintl... " >&6; }
  9397 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  9398   $as_echo_n "(cached) " >&6
  9399 else
  9400   ac_check_lib_save_LIBS=$LIBS
  9401 LIBS="-lintl -liconv $LIBS"
  9402 cat >conftest.$ac_ext <<_ACEOF
  9403 /* confdefs.h.  */
  9404 _ACEOF
  9405 cat confdefs.h >>conftest.$ac_ext
  9406 cat >>conftest.$ac_ext <<_ACEOF
  9407 /* end confdefs.h.  */
  9409 /* Override any GCC internal prototype to avoid an error.
  9410    Use char because int might match the return type of a GCC
  9411    builtin and then its argument prototype would still apply.  */
  9412 #ifdef __cplusplus
  9413 extern "C"
  9414 #endif
  9415 char ngettext ();
  9416 int
  9417 main ()
  9419 return ngettext ();
  9421   return 0;
  9423 _ACEOF
  9424 rm -f conftest.$ac_objext conftest$ac_exeext
  9425 if { (ac_try="$ac_link"
  9426 case "(($ac_try" in
  9427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9428   *) ac_try_echo=$ac_try;;
  9429 esac
  9430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9431 $as_echo "$ac_try_echo") >&5
  9432   (eval "$ac_link") 2>conftest.er1
  9433   ac_status=$?
  9434   grep -v '^ *+' conftest.er1 >conftest.err
  9435   rm -f conftest.er1
  9436   cat conftest.err >&5
  9437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9438   (exit $ac_status); } && {
  9439 	 test -z "$ac_c_werror_flag" ||
  9440 	 test ! -s conftest.err
  9441        } && test -s conftest$ac_exeext && {
  9442 	 test "$cross_compiling" = yes ||
  9443 	 $as_test_x conftest$ac_exeext
  9444        }; then
  9445   ac_cv_lib_intl_ngettext=yes
  9446 else
  9447   $as_echo "$as_me: failed program was:" >&5
  9448 sed 's/^/| /' conftest.$ac_ext >&5
  9450 	ac_cv_lib_intl_ngettext=no
  9451 fi
  9453 rm -rf conftest.dSYM
  9454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9455       conftest$ac_exeext conftest.$ac_ext
  9456 LIBS=$ac_check_lib_save_LIBS
  9457 fi
  9458 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  9459 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
  9460 if test $ac_cv_lib_intl_ngettext = yes; then
  9461   { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
  9462 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
  9463 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
  9464   $as_echo_n "(cached) " >&6
  9465 else
  9466   ac_check_lib_save_LIBS=$LIBS
  9467 LIBS="-lintl -liconv $LIBS"
  9468 cat >conftest.$ac_ext <<_ACEOF
  9469 /* confdefs.h.  */
  9470 _ACEOF
  9471 cat confdefs.h >>conftest.$ac_ext
  9472 cat >>conftest.$ac_ext <<_ACEOF
  9473 /* end confdefs.h.  */
  9475 /* Override any GCC internal prototype to avoid an error.
  9476    Use char because int might match the return type of a GCC
  9477    builtin and then its argument prototype would still apply.  */
  9478 #ifdef __cplusplus
  9479 extern "C"
  9480 #endif
  9481 char dcgettext ();
  9482 int
  9483 main ()
  9485 return dcgettext ();
  9487   return 0;
  9489 _ACEOF
  9490 rm -f conftest.$ac_objext conftest$ac_exeext
  9491 if { (ac_try="$ac_link"
  9492 case "(($ac_try" in
  9493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9494   *) ac_try_echo=$ac_try;;
  9495 esac
  9496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9497 $as_echo "$ac_try_echo") >&5
  9498   (eval "$ac_link") 2>conftest.er1
  9499   ac_status=$?
  9500   grep -v '^ *+' conftest.er1 >conftest.err
  9501   rm -f conftest.er1
  9502   cat conftest.err >&5
  9503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9504   (exit $ac_status); } && {
  9505 	 test -z "$ac_c_werror_flag" ||
  9506 	 test ! -s conftest.err
  9507        } && test -s conftest$ac_exeext && {
  9508 	 test "$cross_compiling" = yes ||
  9509 	 $as_test_x conftest$ac_exeext
  9510        }; then
  9511   ac_cv_lib_intl_dcgettext=yes
  9512 else
  9513   $as_echo "$as_me: failed program was:" >&5
  9514 sed 's/^/| /' conftest.$ac_ext >&5
  9516 	ac_cv_lib_intl_dcgettext=no
  9517 fi
  9519 rm -rf conftest.dSYM
  9520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9521       conftest$ac_exeext conftest.$ac_ext
  9522 LIBS=$ac_check_lib_save_LIBS
  9523 fi
  9524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
  9525 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
  9526 if test $ac_cv_lib_intl_dcgettext = yes; then
  9527   gt_cv_func_dgettext_libintl=yes
  9528 			libintl_extra_libs=-liconv
  9529 else
  9531 fi
  9533 else
  9535 fi
  9537         fi
  9540         # If we found libintl, then check in it for bind_textdomain_codeset();
  9541         # we'll prefer libc if neither have bind_textdomain_codeset(),
  9542         # and both have dgettext and ngettext
  9544         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  9545           glib_save_LIBS="$LIBS"
  9546           LIBS="$LIBS -lintl $libintl_extra_libs"
  9547           unset ac_cv_func_bind_textdomain_codeset
  9549 for ac_func in bind_textdomain_codeset
  9550 do
  9551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9552 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9553 $as_echo_n "checking for $ac_func... " >&6; }
  9554 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9555   $as_echo_n "(cached) " >&6
  9556 else
  9557   cat >conftest.$ac_ext <<_ACEOF
  9558 /* confdefs.h.  */
  9559 _ACEOF
  9560 cat confdefs.h >>conftest.$ac_ext
  9561 cat >>conftest.$ac_ext <<_ACEOF
  9562 /* end confdefs.h.  */
  9563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9565 #define $ac_func innocuous_$ac_func
  9567 /* System header to define __stub macros and hopefully few prototypes,
  9568     which can conflict with char $ac_func (); below.
  9569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9570     <limits.h> exists even on freestanding compilers.  */
  9572 #ifdef __STDC__
  9573 # include <limits.h>
  9574 #else
  9575 # include <assert.h>
  9576 #endif
  9578 #undef $ac_func
  9580 /* Override any GCC internal prototype to avoid an error.
  9581    Use char because int might match the return type of a GCC
  9582    builtin and then its argument prototype would still apply.  */
  9583 #ifdef __cplusplus
  9584 extern "C"
  9585 #endif
  9586 char $ac_func ();
  9587 /* The GNU C library defines this for functions which it implements
  9588     to always fail with ENOSYS.  Some functions are actually named
  9589     something starting with __ and the normal name is an alias.  */
  9590 #if defined __stub_$ac_func || defined __stub___$ac_func
  9591 choke me
  9592 #endif
  9594 int
  9595 main ()
  9597 return $ac_func ();
  9599   return 0;
  9601 _ACEOF
  9602 rm -f conftest.$ac_objext conftest$ac_exeext
  9603 if { (ac_try="$ac_link"
  9604 case "(($ac_try" in
  9605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9606   *) ac_try_echo=$ac_try;;
  9607 esac
  9608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9609 $as_echo "$ac_try_echo") >&5
  9610   (eval "$ac_link") 2>conftest.er1
  9611   ac_status=$?
  9612   grep -v '^ *+' conftest.er1 >conftest.err
  9613   rm -f conftest.er1
  9614   cat conftest.err >&5
  9615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9616   (exit $ac_status); } && {
  9617 	 test -z "$ac_c_werror_flag" ||
  9618 	 test ! -s conftest.err
  9619        } && test -s conftest$ac_exeext && {
  9620 	 test "$cross_compiling" = yes ||
  9621 	 $as_test_x conftest$ac_exeext
  9622        }; then
  9623   eval "$as_ac_var=yes"
  9624 else
  9625   $as_echo "$as_me: failed program was:" >&5
  9626 sed 's/^/| /' conftest.$ac_ext >&5
  9628 	eval "$as_ac_var=no"
  9629 fi
  9631 rm -rf conftest.dSYM
  9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9633       conftest$ac_exeext conftest.$ac_ext
  9634 fi
  9635 ac_res=`eval 'as_val=${'$as_ac_var'}
  9636 		 $as_echo "$as_val"'`
  9637 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9638 $as_echo "$ac_res" >&6; }
  9639 if test `eval 'as_val=${'$as_ac_var'}
  9640 		 $as_echo "$as_val"'` = yes; then
  9641   cat >>confdefs.h <<_ACEOF
  9642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9643 _ACEOF
  9645 fi
  9646 done
  9648           LIBS="$glib_save_LIBS"
  9650           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
  9651             gt_cv_func_dgettext_libc=no
  9652           else
  9653             if test "$gt_cv_func_dgettext_libc" = "yes" \
  9654 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
  9655               gt_cv_func_dgettext_libintl=no
  9656             fi
  9657           fi
  9658         fi
  9659       fi
  9661       if test "$gt_cv_func_dgettext_libc" = "yes" \
  9662 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
  9663         gt_cv_have_gettext=yes
  9664       fi
  9666       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
  9667         INTLLIBS="-lintl $libintl_extra_libs"
  9668       fi
  9670       if test "$gt_cv_have_gettext" = "yes"; then
  9672 cat >>confdefs.h <<\_ACEOF
  9673 #define HAVE_GETTEXT 1
  9674 _ACEOF
  9676 	# Extract the first word of "msgfmt", so it can be a program name with args.
  9677 set dummy msgfmt; ac_word=$2
  9678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9679 $as_echo_n "checking for $ac_word... " >&6; }
  9680 if test "${ac_cv_path_MSGFMT+set}" = set; then
  9681   $as_echo_n "(cached) " >&6
  9682 else
  9683   case "$MSGFMT" in
  9684   /*)
  9685   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9686   ;;
  9687   *)
  9688   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  9689   for ac_dir in $PATH; do
  9690     test -z "$ac_dir" && ac_dir=.
  9691     if test -f $ac_dir/$ac_word; then
  9692       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  9693 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  9694 	break
  9695       fi
  9696     fi
  9697   done
  9698   IFS="$ac_save_ifs"
  9699   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  9700   ;;
  9701 esac
  9702 fi
  9703 MSGFMT="$ac_cv_path_MSGFMT"
  9704 if test "$MSGFMT" != "no"; then
  9705   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9706 $as_echo "$MSGFMT" >&6; }
  9707 else
  9708   { $as_echo "$as_me:$LINENO: result: no" >&5
  9709 $as_echo "no" >&6; }
  9710 fi
  9711 	if test "$MSGFMT" != "no"; then
  9712           glib_save_LIBS="$LIBS"
  9713           LIBS="$LIBS $INTLLIBS"
  9715 for ac_func in dcgettext
  9716 do
  9717 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9718 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9719 $as_echo_n "checking for $ac_func... " >&6; }
  9720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9721   $as_echo_n "(cached) " >&6
  9722 else
  9723   cat >conftest.$ac_ext <<_ACEOF
  9724 /* confdefs.h.  */
  9725 _ACEOF
  9726 cat confdefs.h >>conftest.$ac_ext
  9727 cat >>conftest.$ac_ext <<_ACEOF
  9728 /* end confdefs.h.  */
  9729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9731 #define $ac_func innocuous_$ac_func
  9733 /* System header to define __stub macros and hopefully few prototypes,
  9734     which can conflict with char $ac_func (); below.
  9735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9736     <limits.h> exists even on freestanding compilers.  */
  9738 #ifdef __STDC__
  9739 # include <limits.h>
  9740 #else
  9741 # include <assert.h>
  9742 #endif
  9744 #undef $ac_func
  9746 /* Override any GCC internal prototype to avoid an error.
  9747    Use char because int might match the return type of a GCC
  9748    builtin and then its argument prototype would still apply.  */
  9749 #ifdef __cplusplus
  9750 extern "C"
  9751 #endif
  9752 char $ac_func ();
  9753 /* The GNU C library defines this for functions which it implements
  9754     to always fail with ENOSYS.  Some functions are actually named
  9755     something starting with __ and the normal name is an alias.  */
  9756 #if defined __stub_$ac_func || defined __stub___$ac_func
  9757 choke me
  9758 #endif
  9760 int
  9761 main ()
  9763 return $ac_func ();
  9765   return 0;
  9767 _ACEOF
  9768 rm -f conftest.$ac_objext conftest$ac_exeext
  9769 if { (ac_try="$ac_link"
  9770 case "(($ac_try" in
  9771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9772   *) ac_try_echo=$ac_try;;
  9773 esac
  9774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9775 $as_echo "$ac_try_echo") >&5
  9776   (eval "$ac_link") 2>conftest.er1
  9777   ac_status=$?
  9778   grep -v '^ *+' conftest.er1 >conftest.err
  9779   rm -f conftest.er1
  9780   cat conftest.err >&5
  9781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9782   (exit $ac_status); } && {
  9783 	 test -z "$ac_c_werror_flag" ||
  9784 	 test ! -s conftest.err
  9785        } && test -s conftest$ac_exeext && {
  9786 	 test "$cross_compiling" = yes ||
  9787 	 $as_test_x conftest$ac_exeext
  9788        }; then
  9789   eval "$as_ac_var=yes"
  9790 else
  9791   $as_echo "$as_me: failed program was:" >&5
  9792 sed 's/^/| /' conftest.$ac_ext >&5
  9794 	eval "$as_ac_var=no"
  9795 fi
  9797 rm -rf conftest.dSYM
  9798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9799       conftest$ac_exeext conftest.$ac_ext
  9800 fi
  9801 ac_res=`eval 'as_val=${'$as_ac_var'}
  9802 		 $as_echo "$as_val"'`
  9803 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9804 $as_echo "$ac_res" >&6; }
  9805 if test `eval 'as_val=${'$as_ac_var'}
  9806 		 $as_echo "$as_val"'` = yes; then
  9807   cat >>confdefs.h <<_ACEOF
  9808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9809 _ACEOF
  9811 fi
  9812 done
  9814 	  MSGFMT_OPTS=
  9815 	  { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
  9816 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
  9817 	  cat >conftest.foo <<_ACEOF
  9819 msgid ""
  9820 msgstr ""
  9821 "Content-Type: text/plain; charset=UTF-8\n"
  9822 "Project-Id-Version: test 1.0\n"
  9823 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
  9824 "Last-Translator: test <foo@bar.xx>\n"
  9825 "Language-Team: C <LL@li.org>\n"
  9826 "MIME-Version: 1.0\n"
  9827 "Content-Transfer-Encoding: 8bit\n"
  9829 _ACEOF
  9830 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
  9831   (msgfmt -c -o /dev/null conftest.foo) 2>&5
  9832   ac_status=$?
  9833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9834   (exit $ac_status); }; then
  9835   MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
  9836 $as_echo "yes" >&6; }
  9837 else { $as_echo "$as_me:$LINENO: result: no" >&5
  9838 $as_echo "no" >&6; }
  9839 echo "$as_me: failed input was:" >&5
  9840 sed 's/^/| /' conftest.foo >&5
  9841 fi
  9843 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9844 set dummy gmsgfmt; ac_word=$2
  9845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9846 $as_echo_n "checking for $ac_word... " >&6; }
  9847 if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9848   $as_echo_n "(cached) " >&6
  9849 else
  9850   case $GMSGFMT in
  9851   [\\/]* | ?:[\\/]*)
  9852   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9853   ;;
  9854   *)
  9855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9856 for as_dir in $PATH
  9857 do
  9858   IFS=$as_save_IFS
  9859   test -z "$as_dir" && as_dir=.
  9860   for ac_exec_ext in '' $ac_executable_extensions; do
  9861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9862     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9863     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9864     break 2
  9865   fi
  9866 done
  9867 done
  9868 IFS=$as_save_IFS
  9870   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9871   ;;
  9872 esac
  9873 fi
  9874 GMSGFMT=$ac_cv_path_GMSGFMT
  9875 if test -n "$GMSGFMT"; then
  9876   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9877 $as_echo "$GMSGFMT" >&6; }
  9878 else
  9879   { $as_echo "$as_me:$LINENO: result: no" >&5
  9880 $as_echo "no" >&6; }
  9881 fi
  9884 	  # Extract the first word of "xgettext", so it can be a program name with args.
  9885 set dummy xgettext; ac_word=$2
  9886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9887 $as_echo_n "checking for $ac_word... " >&6; }
  9888 if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9889   $as_echo_n "(cached) " >&6
  9890 else
  9891   case "$XGETTEXT" in
  9892   /*)
  9893   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9894   ;;
  9895   *)
  9896   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  9897   for ac_dir in $PATH; do
  9898     test -z "$ac_dir" && ac_dir=.
  9899     if test -f $ac_dir/$ac_word; then
  9900       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  9901 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  9902 	break
  9903       fi
  9904     fi
  9905   done
  9906   IFS="$ac_save_ifs"
  9907   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9908   ;;
  9909 esac
  9910 fi
  9911 XGETTEXT="$ac_cv_path_XGETTEXT"
  9912 if test "$XGETTEXT" != ":"; then
  9913   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9914 $as_echo "$XGETTEXT" >&6; }
  9915 else
  9916   { $as_echo "$as_me:$LINENO: result: no" >&5
  9917 $as_echo "no" >&6; }
  9918 fi
  9920 	  cat >conftest.$ac_ext <<_ACEOF
  9921 /* confdefs.h.  */
  9922 _ACEOF
  9923 cat confdefs.h >>conftest.$ac_ext
  9924 cat >>conftest.$ac_ext <<_ACEOF
  9925 /* end confdefs.h.  */
  9927 int
  9928 main ()
  9930 extern int _nl_msg_cat_cntr;
  9931 			 return _nl_msg_cat_cntr
  9933   return 0;
  9935 _ACEOF
  9936 rm -f conftest.$ac_objext conftest$ac_exeext
  9937 if { (ac_try="$ac_link"
  9938 case "(($ac_try" in
  9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9940   *) ac_try_echo=$ac_try;;
  9941 esac
  9942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9943 $as_echo "$ac_try_echo") >&5
  9944   (eval "$ac_link") 2>conftest.er1
  9945   ac_status=$?
  9946   grep -v '^ *+' conftest.er1 >conftest.err
  9947   rm -f conftest.er1
  9948   cat conftest.err >&5
  9949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9950   (exit $ac_status); } && {
  9951 	 test -z "$ac_c_werror_flag" ||
  9952 	 test ! -s conftest.err
  9953        } && test -s conftest$ac_exeext && {
  9954 	 test "$cross_compiling" = yes ||
  9955 	 $as_test_x conftest$ac_exeext
  9956        }; then
  9957   CATOBJEXT=.gmo
  9958              DATADIRNAME=share
  9959 else
  9960   $as_echo "$as_me: failed program was:" >&5
  9961 sed 's/^/| /' conftest.$ac_ext >&5
  9963 	case $host in
  9964 	    *-*-solaris*)
  9965 	    	                	    	                { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
  9966 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
  9967 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
  9968   $as_echo_n "(cached) " >&6
  9969 else
  9970   cat >conftest.$ac_ext <<_ACEOF
  9971 /* confdefs.h.  */
  9972 _ACEOF
  9973 cat confdefs.h >>conftest.$ac_ext
  9974 cat >>conftest.$ac_ext <<_ACEOF
  9975 /* end confdefs.h.  */
  9976 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
  9977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9978 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
  9980 /* System header to define __stub macros and hopefully few prototypes,
  9981     which can conflict with char bind_textdomain_codeset (); below.
  9982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9983     <limits.h> exists even on freestanding compilers.  */
  9985 #ifdef __STDC__
  9986 # include <limits.h>
  9987 #else
  9988 # include <assert.h>
  9989 #endif
  9991 #undef bind_textdomain_codeset
  9993 /* Override any GCC internal prototype to avoid an error.
  9994    Use char because int might match the return type of a GCC
  9995    builtin and then its argument prototype would still apply.  */
  9996 #ifdef __cplusplus
  9997 extern "C"
  9998 #endif
  9999 char bind_textdomain_codeset ();
 10000 /* The GNU C library defines this for functions which it implements
 10001     to always fail with ENOSYS.  Some functions are actually named
 10002     something starting with __ and the normal name is an alias.  */
 10003 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 10004 choke me
 10005 #endif
 10007 int
 10008 main ()
 10010 return bind_textdomain_codeset ();
 10012   return 0;
 10014 _ACEOF
 10015 rm -f conftest.$ac_objext conftest$ac_exeext
 10016 if { (ac_try="$ac_link"
 10017 case "(($ac_try" in
 10018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10019   *) ac_try_echo=$ac_try;;
 10020 esac
 10021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10022 $as_echo "$ac_try_echo") >&5
 10023   (eval "$ac_link") 2>conftest.er1
 10024   ac_status=$?
 10025   grep -v '^ *+' conftest.er1 >conftest.err
 10026   rm -f conftest.er1
 10027   cat conftest.err >&5
 10028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10029   (exit $ac_status); } && {
 10030 	 test -z "$ac_c_werror_flag" ||
 10031 	 test ! -s conftest.err
 10032        } && test -s conftest$ac_exeext && {
 10033 	 test "$cross_compiling" = yes ||
 10034 	 $as_test_x conftest$ac_exeext
 10035        }; then
 10036   ac_cv_func_bind_textdomain_codeset=yes
 10037 else
 10038   $as_echo "$as_me: failed program was:" >&5
 10039 sed 's/^/| /' conftest.$ac_ext >&5
 10041 	ac_cv_func_bind_textdomain_codeset=no
 10042 fi
 10044 rm -rf conftest.dSYM
 10045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10046       conftest$ac_exeext conftest.$ac_ext
 10047 fi
 10048 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 10049 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
 10050 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 10051   CATOBJEXT=.gmo
 10052                DATADIRNAME=share
 10053 else
 10054   CATOBJEXT=.mo
 10055                DATADIRNAME=lib
 10056 fi
 10058 	    ;;
 10059 	    *)
 10060 	    CATOBJEXT=.mo
 10061             DATADIRNAME=lib
 10062 	    ;;
 10063 	    esac
 10064 fi
 10066 rm -rf conftest.dSYM
 10067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10068       conftest$ac_exeext conftest.$ac_ext
 10069           LIBS="$glib_save_LIBS"
 10070 	  INSTOBJEXT=.mo
 10071 	else
 10072 	  gt_cv_have_gettext=no
 10073 	fi
 10074       fi
 10076 fi
 10080     if test "$gt_cv_have_gettext" = "yes" ; then
 10082 cat >>confdefs.h <<\_ACEOF
 10083 #define ENABLE_NLS 1
 10084 _ACEOF
 10086     fi
 10088         if test "$XGETTEXT" != ":"; then
 10089                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 10090         : ;
 10091       else
 10092         { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 10093 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
 10094         XGETTEXT=":"
 10095       fi
 10096     fi
 10098     # We need to process the po/ directory.
 10099     POSUB=po
 10101     ac_config_commands="$ac_config_commands default-1"
 10104                 for lang in $ALL_LINGUAS; do
 10105       GMOFILES="$GMOFILES $lang.gmo"
 10106       POFILES="$POFILES $lang.po"
 10107     done
 10121    if test "$gt_cv_have_gettext" = "yes"; then
 10122      if test "x$ALL_LINGUAS" = "x"; then
 10123        LINGUAS=
 10124      else
 10125        { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 10126 $as_echo_n "checking for catalogs to be installed... " >&6; }
 10127        NEW_LINGUAS=
 10128        for presentlang in $ALL_LINGUAS; do
 10129          useit=no
 10130          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 10131            desiredlanguages="$LINGUAS"
 10132          else
 10133            desiredlanguages="$ALL_LINGUAS"
 10134          fi
 10135          for desiredlang in $desiredlanguages; do
 10136  	   # Use the presentlang catalog if desiredlang is
 10137            #   a. equal to presentlang, or
 10138            #   b. a variant of presentlang (because in this case,
 10139            #      presentlang can be used as a fallback for messages
 10140            #      which are not translated in the desiredlang catalog).
 10141            case "$desiredlang" in
 10142              "$presentlang"*) useit=yes;;
 10143            esac
 10144          done
 10145          if test $useit = yes; then
 10146            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 10147          fi
 10148        done
 10149        LINGUAS=$NEW_LINGUAS
 10150        { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
 10151 $as_echo "$LINGUAS" >&6; }
 10152      fi
 10154           if test -n "$LINGUAS"; then
 10155        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 10156      fi
 10157    fi
 10159             MKINSTALLDIRS=
 10160    if test -n "$ac_aux_dir"; then
 10161      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 10162    fi
 10163    if test -z "$MKINSTALLDIRS"; then
 10164      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 10165    fi
 10168          test -d po || mkdir po
 10169    if test "x$srcdir" != "x."; then
 10170      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 10171        posrcprefix="$srcdir/"
 10172      else
 10173        posrcprefix="../$srcdir/"
 10174      fi
 10175    else
 10176      posrcprefix="../"
 10177    fi
 10178    rm -f po/POTFILES
 10179    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 10180 	< $srcdir/po/POTFILES.in > po/POTFILES
 10183 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
 10185 cat >confcache <<\_ACEOF
 10186 # This file is a shell script that caches the results of configure
 10187 # tests run on this system so they can be shared between configure
 10188 # scripts and configure runs, see configure's option --config-cache.
 10189 # It is not useful on other systems.  If it contains results you don't
 10190 # want to keep, you may remove or edit it.
 10192 # config.status only pays attention to the cache file if you give it
 10193 # the --recheck option to rerun configure.
 10195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 10196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 10197 # following values.
 10199 _ACEOF
 10201 # The following way of writing the cache mishandles newlines in values,
 10202 # but we know of no workaround that is simple, portable, and efficient.
 10203 # So, we kill variables containing newlines.
 10204 # Ultrix sh set writes to stderr and can't be redirected directly,
 10205 # and sets the high bit in the cache file unless we assign to the vars.
 10207   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 10208     eval ac_val=\$$ac_var
 10209     case $ac_val in #(
 10210     *${as_nl}*)
 10211       case $ac_var in #(
 10212       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 10213 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 10214       esac
 10215       case $ac_var in #(
 10216       _ | IFS | as_nl) ;; #(
 10217       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 10218       *) $as_unset $ac_var ;;
 10219       esac ;;
 10220     esac
 10221   done
 10223   (set) 2>&1 |
 10224     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 10225     *${as_nl}ac_space=\ *)
 10226       # `set' does not quote correctly, so add quotes (double-quote
 10227       # substitution turns \\\\ into \\, and sed turns \\ into \).
 10228       sed -n \
 10229 	"s/'/'\\\\''/g;
 10230 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 10231       ;; #(
 10232     *)
 10233       # `set' quotes correctly as required by POSIX, so do not add quotes.
 10234       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 10235       ;;
 10236     esac |
 10237     sort
 10238 ) |
 10239   sed '
 10240      /^ac_cv_env_/b end
 10241      t clear
 10242      :clear
 10243      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 10244      t end
 10245      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 10246      :end' >>confcache
 10247 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 10248   if test -w "$cache_file"; then
 10249     test "x$cache_file" != "x/dev/null" &&
 10250       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 10251 $as_echo "$as_me: updating cache $cache_file" >&6;}
 10252     cat confcache >$cache_file
 10253   else
 10254     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 10255 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 10256   fi
 10257 fi
 10258 rm -f confcache
 10260 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 10261 # Let make expand exec_prefix.
 10262 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 10264 DEFS=-DHAVE_CONFIG_H
 10266 ac_libobjs=
 10267 ac_ltlibobjs=
 10268 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 10269   # 1. Remove the extension, and $U if already installed.
 10270   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 10271   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 10272   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 10273   #    will be set to the directory where LIBOBJS objects are built.
 10274   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 10275   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 10276 done
 10277 LIBOBJS=$ac_libobjs
 10279 LTLIBOBJS=$ac_ltlibobjs
 10282 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 10283   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 10284 Usually this means the macro was only invoked conditionally." >&5
 10285 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 10286 Usually this means the macro was only invoked conditionally." >&2;}
 10287    { (exit 1); exit 1; }; }
 10288 fi
 10289 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 10290   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 10291 Usually this means the macro was only invoked conditionally." >&5
 10292 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 10293 Usually this means the macro was only invoked conditionally." >&2;}
 10294    { (exit 1); exit 1; }; }
 10295 fi
 10296 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 10297   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 10298 Usually this means the macro was only invoked conditionally." >&5
 10299 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 10300 Usually this means the macro was only invoked conditionally." >&2;}
 10301    { (exit 1); exit 1; }; }
 10302 fi
 10303 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 10304   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 10305 Usually this means the macro was only invoked conditionally." >&5
 10306 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 10307 Usually this means the macro was only invoked conditionally." >&2;}
 10308    { (exit 1); exit 1; }; }
 10309 fi
 10310 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 10311   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 10312 Usually this means the macro was only invoked conditionally." >&5
 10313 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 10314 Usually this means the macro was only invoked conditionally." >&2;}
 10315    { (exit 1); exit 1; }; }
 10316 fi
 10317 if test -z "${GUI_CARBON_TRUE}" && test -z "${GUI_CARBON_FALSE}"; then
 10318   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_CARBON\" was never defined.
 10319 Usually this means the macro was only invoked conditionally." >&5
 10320 $as_echo "$as_me: error: conditional \"GUI_CARBON\" was never defined.
 10321 Usually this means the macro was only invoked conditionally." >&2;}
 10322    { (exit 1); exit 1; }; }
 10323 fi
 10324 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 10325   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 10326 Usually this means the macro was only invoked conditionally." >&5
 10327 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 10328 Usually this means the macro was only invoked conditionally." >&2;}
 10329    { (exit 1); exit 1; }; }
 10330 fi
 10331 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 10332   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 10333 Usually this means the macro was only invoked conditionally." >&5
 10334 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 10335 Usually this means the macro was only invoked conditionally." >&2;}
 10336    { (exit 1); exit 1; }; }
 10337 fi
 10338 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 10339   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 10340 Usually this means the macro was only invoked conditionally." >&5
 10341 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 10342 Usually this means the macro was only invoked conditionally." >&2;}
 10343    { (exit 1); exit 1; }; }
 10344 fi
 10345 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 10346   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 10347 Usually this means the macro was only invoked conditionally." >&5
 10348 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 10349 Usually this means the macro was only invoked conditionally." >&2;}
 10350    { (exit 1); exit 1; }; }
 10351 fi
 10352 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 10353   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 10354 Usually this means the macro was only invoked conditionally." >&5
 10355 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 10356 Usually this means the macro was only invoked conditionally." >&2;}
 10357    { (exit 1); exit 1; }; }
 10358 fi
 10359 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
 10360   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
 10361 Usually this means the macro was only invoked conditionally." >&5
 10362 $as_echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
 10363 Usually this means the macro was only invoked conditionally." >&2;}
 10364    { (exit 1); exit 1; }; }
 10365 fi
 10366 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 10367   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 10368 Usually this means the macro was only invoked conditionally." >&5
 10369 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 10370 Usually this means the macro was only invoked conditionally." >&2;}
 10371    { (exit 1); exit 1; }; }
 10372 fi
 10373 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 10374   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 10375 Usually this means the macro was only invoked conditionally." >&5
 10376 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 10377 Usually this means the macro was only invoked conditionally." >&2;}
 10378    { (exit 1); exit 1; }; }
 10379 fi
 10380 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 10381   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 10382 Usually this means the macro was only invoked conditionally." >&5
 10383 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 10384 Usually this means the macro was only invoked conditionally." >&2;}
 10385    { (exit 1); exit 1; }; }
 10386 fi
 10387 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 10388   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 10389 Usually this means the macro was only invoked conditionally." >&5
 10390 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 10391 Usually this means the macro was only invoked conditionally." >&2;}
 10392    { (exit 1); exit 1; }; }
 10393 fi
 10394 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 10395   { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 10396 Usually this means the macro was only invoked conditionally." >&5
 10397 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 10398 Usually this means the macro was only invoked conditionally." >&2;}
 10399    { (exit 1); exit 1; }; }
 10400 fi
 10401 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 10402   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 10403 Usually this means the macro was only invoked conditionally." >&5
 10404 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 10405 Usually this means the macro was only invoked conditionally." >&2;}
 10406    { (exit 1); exit 1; }; }
 10407 fi
 10408 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 10409   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 10410 Usually this means the macro was only invoked conditionally." >&5
 10411 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 10412 Usually this means the macro was only invoked conditionally." >&2;}
 10413    { (exit 1); exit 1; }; }
 10414 fi
 10416 : ${CONFIG_STATUS=./config.status}
 10417 ac_write_fail=0
 10418 ac_clean_files_save=$ac_clean_files
 10419 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 10420 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 10421 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 10422 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 10423 #! $SHELL
 10424 # Generated by $as_me.
 10425 # Run this file to recreate the current configuration.
 10426 # Compiler output produced by configure, useful for debugging
 10427 # configure, is in config.log if it exists.
 10429 debug=false
 10430 ac_cs_recheck=false
 10431 ac_cs_silent=false
 10432 SHELL=\${CONFIG_SHELL-$SHELL}
 10433 _ACEOF
 10435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 10436 ## --------------------- ##
 10437 ## M4sh Initialization.  ##
 10438 ## --------------------- ##
 10440 # Be more Bourne compatible
 10441 DUALCASE=1; export DUALCASE # for MKS sh
 10442 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 10443   emulate sh
 10444   NULLCMD=:
 10445   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 10446   # is contrary to our usage.  Disable this feature.
 10447   alias -g '${1+"$@"}'='"$@"'
 10448   setopt NO_GLOB_SUBST
 10449 else
 10450   case `(set -o) 2>/dev/null` in
 10451   *posix*) set -o posix ;;
 10452 esac
 10454 fi
 10459 # PATH needs CR
 10460 # Avoid depending upon Character Ranges.
 10461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 10462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 10463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 10464 as_cr_digits='0123456789'
 10465 as_cr_alnum=$as_cr_Letters$as_cr_digits
 10467 as_nl='
 10469 export as_nl
 10470 # Printing a long string crashes Solaris 7 /usr/bin/printf.
 10471 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 10472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 10473 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 10474 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 10475   as_echo='printf %s\n'
 10476   as_echo_n='printf %s'
 10477 else
 10478   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 10479     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 10480     as_echo_n='/usr/ucb/echo -n'
 10481   else
 10482     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 10483     as_echo_n_body='eval
 10484       arg=$1;
 10485       case $arg in
 10486       *"$as_nl"*)
 10487 	expr "X$arg" : "X\\(.*\\)$as_nl";
 10488 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 10489       esac;
 10490       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 10492     export as_echo_n_body
 10493     as_echo_n='sh -c $as_echo_n_body as_echo'
 10494   fi
 10495   export as_echo_body
 10496   as_echo='sh -c $as_echo_body as_echo'
 10497 fi
 10499 # The user is always right.
 10500 if test "${PATH_SEPARATOR+set}" != set; then
 10501   PATH_SEPARATOR=:
 10502   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 10503     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 10504       PATH_SEPARATOR=';'
 10506 fi
 10508 # Support unset when possible.
 10509 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 10510   as_unset=unset
 10511 else
 10512   as_unset=false
 10513 fi
 10516 # IFS
 10517 # We need space, tab and new line, in precisely that order.  Quoting is
 10518 # there to prevent editors from complaining about space-tab.
 10519 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 10520 # splitting by setting IFS to empty value.)
 10521 IFS=" ""	$as_nl"
 10523 # Find who we are.  Look in the path if we contain no directory separator.
 10524 case $0 in
 10525   *[\\/]* ) as_myself=$0 ;;
 10526   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10527 for as_dir in $PATH
 10528 do
 10529   IFS=$as_save_IFS
 10530   test -z "$as_dir" && as_dir=.
 10531   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 10532 done
 10533 IFS=$as_save_IFS
 10535      ;;
 10536 esac
 10537 # We did not find ourselves, most probably we were run as `sh COMMAND'
 10538 # in which case we are not to be found in the path.
 10539 if test "x$as_myself" = x; then
 10540   as_myself=$0
 10541 fi
 10542 if test ! -f "$as_myself"; then
 10543   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 10544   { (exit 1); exit 1; }
 10545 fi
 10547 # Work around bugs in pre-3.0 UWIN ksh.
 10548 for as_var in ENV MAIL MAILPATH
 10549 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 10550 done
 10551 PS1='$ '
 10552 PS2='> '
 10553 PS4='+ '
 10555 # NLS nuisances.
 10556 LC_ALL=C
 10557 export LC_ALL
 10558 LANGUAGE=C
 10559 export LANGUAGE
 10561 # Required to use basename.
 10562 if expr a : '\(a\)' >/dev/null 2>&1 &&
 10563    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 10564   as_expr=expr
 10565 else
 10566   as_expr=false
 10567 fi
 10569 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 10570   as_basename=basename
 10571 else
 10572   as_basename=false
 10573 fi
 10576 # Name of the executable.
 10577 as_me=`$as_basename -- "$0" ||
 10578 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 10579 	 X"$0" : 'X\(//\)$' \| \
 10580 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 10581 $as_echo X/"$0" |
 10582     sed '/^.*\/\([^/][^/]*\)\/*$/{
 10583 	    s//\1/
 10586 	  /^X\/\(\/\/\)$/{
 10587 	    s//\1/
 10590 	  /^X\/\(\/\).*/{
 10591 	    s//\1/
 10594 	  s/.*/./; q'`
 10596 # CDPATH.
 10597 $as_unset CDPATH
 10601   as_lineno_1=$LINENO
 10602   as_lineno_2=$LINENO
 10603   test "x$as_lineno_1" != "x$as_lineno_2" &&
 10604   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 10606   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 10607   # uniformly replaced by the line number.  The first 'sed' inserts a
 10608   # line-number line after each line using $LINENO; the second 'sed'
 10609   # does the real work.  The second script uses 'N' to pair each
 10610   # line-number line with the line containing $LINENO, and appends
 10611   # trailing '-' during substitution so that $LINENO is not a special
 10612   # case at line end.
 10613   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 10614   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 10615   # E. McMahon (1931-1989) for sed's syntax.  :-)
 10616   sed -n '
 10618     /[$]LINENO/=
 10619   ' <$as_myself |
 10620     sed '
 10621       s/[$]LINENO.*/&-/
 10622       t lineno
 10624       :lineno
 10626       :loop
 10627       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 10628       t loop
 10629       s/-\n.*//
 10630     ' >$as_me.lineno &&
 10631   chmod +x "$as_me.lineno" ||
 10632     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 10633    { (exit 1); exit 1; }; }
 10635   # Don't try to exec as it changes $[0], causing all sort of problems
 10636   # (the dirname of $[0] is not the place where we might find the
 10637   # original and so on.  Autoconf is especially sensitive to this).
 10638   . "./$as_me.lineno"
 10639   # Exit status is that of the last command.
 10640   exit
 10644 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 10645   as_dirname=dirname
 10646 else
 10647   as_dirname=false
 10648 fi
 10650 ECHO_C= ECHO_N= ECHO_T=
 10651 case `echo -n x` in
 10652 -n*)
 10653   case `echo 'x\c'` in
 10654   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 10655   *)   ECHO_C='\c';;
 10656   esac;;
 10657 *)
 10658   ECHO_N='-n';;
 10659 esac
 10660 if expr a : '\(a\)' >/dev/null 2>&1 &&
 10661    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 10662   as_expr=expr
 10663 else
 10664   as_expr=false
 10665 fi
 10667 rm -f conf$$ conf$$.exe conf$$.file
 10668 if test -d conf$$.dir; then
 10669   rm -f conf$$.dir/conf$$.file
 10670 else
 10671   rm -f conf$$.dir
 10672   mkdir conf$$.dir 2>/dev/null
 10673 fi
 10674 if (echo >conf$$.file) 2>/dev/null; then
 10675   if ln -s conf$$.file conf$$ 2>/dev/null; then
 10676     as_ln_s='ln -s'
 10677     # ... but there are two gotchas:
 10678     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 10679     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 10680     # In both cases, we have to default to `cp -p'.
 10681     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 10682       as_ln_s='cp -p'
 10683   elif ln conf$$.file conf$$ 2>/dev/null; then
 10684     as_ln_s=ln
 10685   else
 10686     as_ln_s='cp -p'
 10687   fi
 10688 else
 10689   as_ln_s='cp -p'
 10690 fi
 10691 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 10692 rmdir conf$$.dir 2>/dev/null
 10694 if mkdir -p . 2>/dev/null; then
 10695   as_mkdir_p=:
 10696 else
 10697   test -d ./-p && rmdir ./-p
 10698   as_mkdir_p=false
 10699 fi
 10701 if test -x / >/dev/null 2>&1; then
 10702   as_test_x='test -x'
 10703 else
 10704   if ls -dL / >/dev/null 2>&1; then
 10705     as_ls_L_option=L
 10706   else
 10707     as_ls_L_option=
 10708   fi
 10709   as_test_x='
 10710     eval sh -c '\''
 10711       if test -d "$1"; then
 10712 	test -d "$1/.";
 10713       else
 10714 	case $1 in
 10715 	-*)set "./$1";;
 10716 	esac;
 10717 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 10718 	???[sx]*):;;*)false;;esac;fi
 10719     '\'' sh
 10721 fi
 10722 as_executable_p=$as_test_x
 10724 # Sed expression to map a string onto a valid CPP name.
 10725 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 10727 # Sed expression to map a string onto a valid variable name.
 10728 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 10731 exec 6>&1
 10733 # Save the log message, to keep $[0] and so on meaningful, and to
 10734 # report actual input values of CONFIG_FILES etc. instead of their
 10735 # values after options handling.
 10736 ac_log="
 10737 This file was extended by $as_me, which was
 10738 generated by GNU Autoconf 2.62.  Invocation command line was
 10740   CONFIG_FILES    = $CONFIG_FILES
 10741   CONFIG_HEADERS  = $CONFIG_HEADERS
 10742   CONFIG_LINKS    = $CONFIG_LINKS
 10743   CONFIG_COMMANDS = $CONFIG_COMMANDS
 10744   $ $0 $@
 10746 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 10749 _ACEOF
 10751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 10752 # Files that config.status was made for.
 10753 config_files="$ac_config_files"
 10754 config_headers="$ac_config_headers"
 10755 config_commands="$ac_config_commands"
 10757 _ACEOF
 10759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 10760 ac_cs_usage="\
 10761 \`$as_me' instantiates files from templates according to the
 10762 current configuration.
 10764 Usage: $0 [OPTIONS] [FILE]...
 10766   -h, --help       print this help, then exit
 10767   -V, --version    print version number and configuration settings, then exit
 10768   -q, --quiet      do not print progress messages
 10769   -d, --debug      don't remove temporary files
 10770       --recheck    update $as_me by reconfiguring in the same conditions
 10771   --file=FILE[:TEMPLATE]
 10772                    instantiate the configuration file FILE
 10773   --header=FILE[:TEMPLATE]
 10774                    instantiate the configuration header FILE
 10776 Configuration files:
 10777 $config_files
 10779 Configuration headers:
 10780 $config_headers
 10782 Configuration commands:
 10783 $config_commands
 10785 Report bugs to <bug-autoconf@gnu.org>."
 10787 _ACEOF
 10788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 10789 ac_cs_version="\\
 10790 config.status
 10791 configured by $0, generated by GNU Autoconf 2.62,
 10792   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 10794 Copyright (C) 2008 Free Software Foundation, Inc.
 10795 This config.status script is free software; the Free Software Foundation
 10796 gives unlimited permission to copy, distribute and modify it."
 10798 ac_pwd='$ac_pwd'
 10799 srcdir='$srcdir'
 10800 INSTALL='$INSTALL'
 10801 AWK='$AWK'
 10802 test -n "\$AWK" || AWK=awk
 10803 _ACEOF
 10805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 10806 # The default lists apply if the user does not specify any file.
 10807 ac_need_defaults=:
 10808 while test $# != 0
 10809 do
 10810   case $1 in
 10811   --*=*)
 10812     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 10813     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 10814     ac_shift=:
 10815     ;;
 10816   *)
 10817     ac_option=$1
 10818     ac_optarg=$2
 10819     ac_shift=shift
 10820     ;;
 10821   esac
 10823   case $ac_option in
 10824   # Handling of the options.
 10825   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 10826     ac_cs_recheck=: ;;
 10827   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 10828     $as_echo "$ac_cs_version"; exit ;;
 10829   --debug | --debu | --deb | --de | --d | -d )
 10830     debug=: ;;
 10831   --file | --fil | --fi | --f )
 10832     $ac_shift
 10833     case $ac_optarg in
 10834     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 10835     esac
 10836     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 10837     ac_need_defaults=false;;
 10838   --header | --heade | --head | --hea )
 10839     $ac_shift
 10840     case $ac_optarg in
 10841     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 10842     esac
 10843     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 10844     ac_need_defaults=false;;
 10845   --he | --h)
 10846     # Conflict between --help and --header
 10847     { $as_echo "$as_me: error: ambiguous option: $1
 10848 Try \`$0 --help' for more information." >&2
 10849    { (exit 1); exit 1; }; };;
 10850   --help | --hel | -h )
 10851     $as_echo "$ac_cs_usage"; exit ;;
 10852   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 10853   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 10854     ac_cs_silent=: ;;
 10856   # This is an error.
 10857   -*) { $as_echo "$as_me: error: unrecognized option: $1
 10858 Try \`$0 --help' for more information." >&2
 10859    { (exit 1); exit 1; }; } ;;
 10861   *) ac_config_targets="$ac_config_targets $1"
 10862      ac_need_defaults=false ;;
 10864   esac
 10865   shift
 10866 done
 10868 ac_configure_extra_args=
 10870 if $ac_cs_silent; then
 10871   exec 6>/dev/null
 10872   ac_configure_extra_args="$ac_configure_extra_args --silent"
 10873 fi
 10875 _ACEOF
 10876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 10877 if \$ac_cs_recheck; then
 10878   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 10879   shift
 10880   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 10881   CONFIG_SHELL='$SHELL'
 10882   export CONFIG_SHELL
 10883   exec "\$@"
 10884 fi
 10886 _ACEOF
 10887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 10888 exec 5>>config.log
 10890   echo
 10891   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 10892 ## Running $as_me. ##
 10893 _ASBOX
 10894   $as_echo "$ac_log"
 10895 } >&5
 10897 _ACEOF
 10898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 10900 # INIT-COMMANDS
 10902 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 10905 _ACEOF
 10907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 10909 # Handling of arguments.
 10910 for ac_config_target in $ac_config_targets
 10911 do
 10912   case $ac_config_target in
 10913     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 10914     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 10915     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 10916     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 10917     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 10918     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 10919     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 10921   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 10922 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 10923    { (exit 1); exit 1; }; };;
 10924   esac
 10925 done
 10928 # If the user did not use the arguments to specify the items to instantiate,
 10929 # then the envvar interface is used.  Set only those that are not.
 10930 # We use the long form for the default assignment because of an extremely
 10931 # bizarre bug on SunOS 4.1.3.
 10932 if $ac_need_defaults; then
 10933   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 10934   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 10935   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 10936 fi
 10938 # Have a temporary directory for convenience.  Make it in the build tree
 10939 # simply because there is no reason against having it here, and in addition,
 10940 # creating and moving files from /tmp can sometimes cause problems.
 10941 # Hook for its removal unless debugging.
 10942 # Note that there is a small window in which the directory will not be cleaned:
 10943 # after its creation but before its name has been assigned to `$tmp'.
 10944 $debug ||
 10946   tmp=
 10947   trap 'exit_status=$?
 10948   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 10949 ' 0
 10950   trap '{ (exit 1); exit 1; }' 1 2 13 15
 10952 # Create a (secure) tmp directory for tmp files.
 10955   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 10956   test -n "$tmp" && test -d "$tmp"
 10957 }  ||
 10959   tmp=./conf$$-$RANDOM
 10960   (umask 077 && mkdir "$tmp")
 10961 } ||
 10963    $as_echo "$as_me: cannot create a temporary directory in ." >&2
 10964    { (exit 1); exit 1; }
 10967 # Set up the scripts for CONFIG_FILES section.
 10968 # No need to generate them if there are no CONFIG_FILES.
 10969 # This happens for instance with `./config.status config.h'.
 10970 if test -n "$CONFIG_FILES"; then
 10973 ac_cr='
 10975 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 10976 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 10977   ac_cs_awk_cr='\\r'
 10978 else
 10979   ac_cs_awk_cr=$ac_cr
 10980 fi
 10982 echo 'BEGIN {' >"$tmp/subs1.awk" &&
 10983 _ACEOF
 10987   echo "cat >conf$$subs.awk <<_ACEOF" &&
 10988   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 10989   echo "_ACEOF"
 10990 } >conf$$subs.sh ||
 10991   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 10992 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 10993    { (exit 1); exit 1; }; }
 10994 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 10995 ac_delim='%!_!# '
 10996 for ac_last_try in false false false false false :; do
 10997   . ./conf$$subs.sh ||
 10998     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 10999 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 11000    { (exit 1); exit 1; }; }
 11002   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
 11003     break
 11004   elif $ac_last_try; then
 11005     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 11006 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 11007    { (exit 1); exit 1; }; }
 11008   else
 11009     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 11010   fi
 11011 done
 11012 rm -f conf$$subs.sh
 11014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11015 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 11016 _ACEOF
 11017 sed -n '
 11019 s/^/S["/; s/!.*/"]=/
 11022 s/^[^!]*!//
 11023 :repl
 11024 t repl
 11025 s/'"$ac_delim"'$//
 11026 t delim
 11027 :nl
 11029 s/\(.\{148\}\).*/\1/
 11030 t more1
 11031 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 11034 b repl
 11035 :more1
 11036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 11039 s/.\{148\}//
 11040 t nl
 11041 :delim
 11043 s/\(.\{148\}\).*/\1/
 11044 t more2
 11045 s/["\\]/\\&/g; s/^/"/; s/$/"/
 11048 :more2
 11049 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 11052 s/.\{148\}//
 11053 t delim
 11054 ' <conf$$subs.awk | sed '
 11055 /^[^""]/{
 11057   s/\n//
 11059 ' >>$CONFIG_STATUS || ac_write_fail=1
 11060 rm -f conf$$subs.awk
 11061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11062 _ACAWK
 11063 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 11064   for (key in S) S_is_set[key] = 1
 11065   FS = ""
 11069   line = $ 0
 11070   nfields = split(line, field, "@")
 11071   substed = 0
 11072   len = length(field[1])
 11073   for (i = 2; i < nfields; i++) {
 11074     key = field[i]
 11075     keylen = length(key)
 11076     if (S_is_set[key]) {
 11077       value = S[key]
 11078       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 11079       len += length(value) + length(field[++i])
 11080       substed = 1
 11081     } else
 11082       len += 1 + keylen
 11085   print line
 11088 _ACAWK
 11089 _ACEOF
 11090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11091 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 11092   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 11093 else
 11094   cat
 11095 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 11096   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 11097 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
 11098    { (exit 1); exit 1; }; }
 11099 _ACEOF
 11101 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 11102 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 11103 # trailing colons and then remove the whole line if VPATH becomes empty
 11104 # (actually we leave an empty line to preserve line numbers).
 11105 if test "x$srcdir" = x.; then
 11106   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 11107 s/:*\$(srcdir):*/:/
 11108 s/:*\${srcdir}:*/:/
 11109 s/:*@srcdir@:*/:/
 11110 s/^\([^=]*=[	 ]*\):*/\1/
 11111 s/:*$//
 11112 s/^[^=]*=[	 ]*$//
 11113 }'
 11114 fi
 11116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11117 fi # test -n "$CONFIG_FILES"
 11119 # Set up the scripts for CONFIG_HEADERS section.
 11120 # No need to generate them if there are no CONFIG_HEADERS.
 11121 # This happens for instance with `./config.status Makefile'.
 11122 if test -n "$CONFIG_HEADERS"; then
 11123 cat >"$tmp/defines.awk" <<\_ACAWK ||
 11124 BEGIN {
 11125 _ACEOF
 11127 # Transform confdefs.h into an awk script `defines.awk', embedded as
 11128 # here-document in config.status, that substitutes the proper values into
 11129 # config.h.in to produce config.h.
 11131 # Create a delimiter string that does not exist in confdefs.h, to ease
 11132 # handling of long lines.
 11133 ac_delim='%!_!# '
 11134 for ac_last_try in false false :; do
 11135   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 11136   if test -z "$ac_t"; then
 11137     break
 11138   elif $ac_last_try; then
 11139     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 11140 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 11141    { (exit 1); exit 1; }; }
 11142   else
 11143     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 11144   fi
 11145 done
 11147 # For the awk script, D is an array of macro values keyed by name,
 11148 # likewise P contains macro parameters if any.  Preserve backslash
 11149 # newline sequences.
 11151 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 11152 sed -n '
 11153 s/.\{148\}/&'"$ac_delim"'/g
 11154 t rset
 11155 :rset
 11156 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 11157 t def
 11159 :def
 11160 s/\\$//
 11161 t bsnl
 11162 s/["\\]/\\&/g
 11163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 11164 D["\1"]=" \3"/p
 11165 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 11167 :bsnl
 11168 s/["\\]/\\&/g
 11169 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 11170 D["\1"]=" \3\\\\\\n"\\/p
 11171 t cont
 11172 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 11173 t cont
 11175 :cont
 11177 s/.\{148\}/&'"$ac_delim"'/g
 11178 t clear
 11179 :clear
 11180 s/\\$//
 11181 t bsnlc
 11182 s/["\\]/\\&/g; s/^/"/; s/$/"/p
 11184 :bsnlc
 11185 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 11186 b cont
 11187 ' <confdefs.h | sed '
 11188 s/'"$ac_delim"'/"\\\
 11189 "/g' >>$CONFIG_STATUS || ac_write_fail=1
 11191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11192   for (key in D) D_is_set[key] = 1
 11193   FS = ""
 11195 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 11196   line = \$ 0
 11197   split(line, arg, " ")
 11198   if (arg[1] == "#") {
 11199     defundef = arg[2]
 11200     mac1 = arg[3]
 11201   } else {
 11202     defundef = substr(arg[1], 2)
 11203     mac1 = arg[2]
 11205   split(mac1, mac2, "(") #)
 11206   macro = mac2[1]
 11207   if (D_is_set[macro]) {
 11208     # Preserve the white space surrounding the "#".
 11209     prefix = substr(line, 1, index(line, defundef) - 1)
 11210     print prefix "define", macro P[macro] D[macro]
 11211     next
 11212   } else {
 11213     # Replace #undef with comments.  This is necessary, for example,
 11214     # in the case of _POSIX_SOURCE, which is predefined and required
 11215     # on some systems where configure will not decide to define it.
 11216     if (defundef == "undef") {
 11217       print "/*", line, "*/"
 11218       next
 11222 { print }
 11223 _ACAWK
 11224 _ACEOF
 11225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11226   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 11227 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 11228    { (exit 1); exit 1; }; }
 11229 fi # test -n "$CONFIG_HEADERS"
 11232 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 11233 shift
 11234 for ac_tag
 11235 do
 11236   case $ac_tag in
 11237   :[FHLC]) ac_mode=$ac_tag; continue;;
 11238   esac
 11239   case $ac_mode$ac_tag in
 11240   :[FHL]*:*);;
 11241   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 11242 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 11243    { (exit 1); exit 1; }; };;
 11244   :[FH]-) ac_tag=-:-;;
 11245   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 11246   esac
 11247   ac_save_IFS=$IFS
 11248   IFS=:
 11249   set x $ac_tag
 11250   IFS=$ac_save_IFS
 11251   shift
 11252   ac_file=$1
 11253   shift
 11255   case $ac_mode in
 11256   :L) ac_source=$1;;
 11257   :[FH])
 11258     ac_file_inputs=
 11259     for ac_f
 11260     do
 11261       case $ac_f in
 11262       -) ac_f="$tmp/stdin";;
 11263       *) # Look for the file first in the build tree, then in the source tree
 11264 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 11265 	 # because $ac_f cannot contain `:'.
 11266 	 test -f "$ac_f" ||
 11267 	   case $ac_f in
 11268 	   [\\/$]*) false;;
 11269 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 11270 	   esac ||
 11271 	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 11272 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 11273    { (exit 1); exit 1; }; };;
 11274       esac
 11275       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 11276       ac_file_inputs="$ac_file_inputs '$ac_f'"
 11277     done
 11279     # Let's still pretend it is `configure' which instantiates (i.e., don't
 11280     # use $as_me), people would be surprised to read:
 11281     #    /* config.h.  Generated by config.status.  */
 11282     configure_input='Generated from '`
 11283 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 11284 	`' by configure.'
 11285     if test x"$ac_file" != x-; then
 11286       configure_input="$ac_file.  $configure_input"
 11287       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 11288 $as_echo "$as_me: creating $ac_file" >&6;}
 11289     fi
 11290     # Neutralize special characters interpreted by sed in replacement strings.
 11291     case $configure_input in #(
 11292     *\&* | *\|* | *\\* )
 11293        ac_sed_conf_input=`$as_echo "$configure_input" |
 11294        sed 's/[\\\\&|]/\\\\&/g'`;; #(
 11295     *) ac_sed_conf_input=$configure_input;;
 11296     esac
 11298     case $ac_tag in
 11299     *:-:* | *:-) cat >"$tmp/stdin" \
 11300       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 11301 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 11302    { (exit 1); exit 1; }; } ;;
 11303     esac
 11304     ;;
 11305   esac
 11307   ac_dir=`$as_dirname -- "$ac_file" ||
 11308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 11309 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 11310 	 X"$ac_file" : 'X\(//\)$' \| \
 11311 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 11312 $as_echo X"$ac_file" |
 11313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 11314 	    s//\1/
 11317 	  /^X\(\/\/\)[^/].*/{
 11318 	    s//\1/
 11321 	  /^X\(\/\/\)$/{
 11322 	    s//\1/
 11325 	  /^X\(\/\).*/{
 11326 	    s//\1/
 11329 	  s/.*/./; q'`
 11330   { as_dir="$ac_dir"
 11331   case $as_dir in #(
 11332   -*) as_dir=./$as_dir;;
 11333   esac
 11334   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 11335     as_dirs=
 11336     while :; do
 11337       case $as_dir in #(
 11338       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 11339       *) as_qdir=$as_dir;;
 11340       esac
 11341       as_dirs="'$as_qdir' $as_dirs"
 11342       as_dir=`$as_dirname -- "$as_dir" ||
 11343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 11344 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 11345 	 X"$as_dir" : 'X\(//\)$' \| \
 11346 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 11347 $as_echo X"$as_dir" |
 11348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 11349 	    s//\1/
 11352 	  /^X\(\/\/\)[^/].*/{
 11353 	    s//\1/
 11356 	  /^X\(\/\/\)$/{
 11357 	    s//\1/
 11360 	  /^X\(\/\).*/{
 11361 	    s//\1/
 11364 	  s/.*/./; q'`
 11365       test -d "$as_dir" && break
 11366     done
 11367     test -z "$as_dirs" || eval "mkdir $as_dirs"
 11368   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 11369 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 11370    { (exit 1); exit 1; }; }; }
 11371   ac_builddir=.
 11373 case "$ac_dir" in
 11374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 11375 *)
 11376   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 11377   # A ".." for each directory in $ac_dir_suffix.
 11378   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 11379   case $ac_top_builddir_sub in
 11380   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 11381   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 11382   esac ;;
 11383 esac
 11384 ac_abs_top_builddir=$ac_pwd
 11385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 11386 # for backward compatibility:
 11387 ac_top_builddir=$ac_top_build_prefix
 11389 case $srcdir in
 11390   .)  # We are building in place.
 11391     ac_srcdir=.
 11392     ac_top_srcdir=$ac_top_builddir_sub
 11393     ac_abs_top_srcdir=$ac_pwd ;;
 11394   [\\/]* | ?:[\\/]* )  # Absolute name.
 11395     ac_srcdir=$srcdir$ac_dir_suffix;
 11396     ac_top_srcdir=$srcdir
 11397     ac_abs_top_srcdir=$srcdir ;;
 11398   *) # Relative name.
 11399     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 11400     ac_top_srcdir=$ac_top_build_prefix$srcdir
 11401     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 11402 esac
 11403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 11406   case $ac_mode in
 11407   :F)
 11409   # CONFIG_FILE
 11412   case $INSTALL in
 11413   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 11414   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 11415   esac
 11416 _ACEOF
 11418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11419 # If the template does not know about datarootdir, expand it.
 11420 # FIXME: This hack should be removed a few years after 2.60.
 11421 ac_datarootdir_hack=; ac_datarootdir_seen=
 11423 ac_sed_dataroot='
 11424 /datarootdir/ {
 11428 /@datadir@/p
 11429 /@docdir@/p
 11430 /@infodir@/p
 11431 /@localedir@/p
 11432 /@mandir@/p
 11434 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 11435 *datarootdir*) ac_datarootdir_seen=yes;;
 11436 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 11437   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 11438 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 11439 _ACEOF
 11440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11441   ac_datarootdir_hack='
 11442   s&@datadir@&$datadir&g
 11443   s&@docdir@&$docdir&g
 11444   s&@infodir@&$infodir&g
 11445   s&@localedir@&$localedir&g
 11446   s&@mandir@&$mandir&g
 11447     s&\\\${datarootdir}&$datarootdir&g' ;;
 11448 esac
 11449 _ACEOF
 11451 # Neutralize VPATH when `$srcdir' = `.'.
 11452 # Shell code in configure.ac might set extrasub.
 11453 # FIXME: do we really want to maintain this feature?
 11454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11455 ac_sed_extra="$ac_vpsub
 11456 $extrasub
 11457 _ACEOF
 11458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11459 :t
 11460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 11461 s|@configure_input@|$ac_sed_conf_input|;t t
 11462 s&@top_builddir@&$ac_top_builddir_sub&;t t
 11463 s&@top_build_prefix@&$ac_top_build_prefix&;t t
 11464 s&@srcdir@&$ac_srcdir&;t t
 11465 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 11466 s&@top_srcdir@&$ac_top_srcdir&;t t
 11467 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 11468 s&@builddir@&$ac_builddir&;t t
 11469 s&@abs_builddir@&$ac_abs_builddir&;t t
 11470 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 11471 s&@INSTALL@&$ac_INSTALL&;t t
 11472 $ac_datarootdir_hack
 11474 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 11475   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 11476 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 11477    { (exit 1); exit 1; }; }
 11479 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 11480   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 11481   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 11482   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 11483 which seems to be undefined.  Please make sure it is defined." >&5
 11484 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 11485 which seems to be undefined.  Please make sure it is defined." >&2;}
 11487   rm -f "$tmp/stdin"
 11488   case $ac_file in
 11489   -) cat "$tmp/out" && rm -f "$tmp/out";;
 11490   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 11491   esac \
 11492   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 11493 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 11494    { (exit 1); exit 1; }; }
 11495  ;;
 11496   :H)
 11498   # CONFIG_HEADER
 11500   if test x"$ac_file" != x-; then
 11502       $as_echo "/* $configure_input  */" \
 11503       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 11504     } >"$tmp/config.h" \
 11505       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 11506 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 11507    { (exit 1); exit 1; }; }
 11508     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 11509       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 11510 $as_echo "$as_me: $ac_file is unchanged" >&6;}
 11511     else
 11512       rm -f "$ac_file"
 11513       mv "$tmp/config.h" "$ac_file" \
 11514 	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 11515 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 11516    { (exit 1); exit 1; }; }
 11517     fi
 11518   else
 11519     $as_echo "/* $configure_input  */" \
 11520       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 11521       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 11522 $as_echo "$as_me: error: could not create -" >&2;}
 11523    { (exit 1); exit 1; }; }
 11524   fi
 11525 # Compute "$ac_file"'s index in $config_headers.
 11526 _am_stamp_count=1
 11527 for _am_header in $config_headers :; do
 11528   case $_am_header in
 11529     "$ac_file" | "$ac_file":* )
 11530       break ;;
 11531     * )
 11532       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 11533   esac
 11534 done
 11535 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
 11536 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 11537 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 11538 	 X"$ac_file" : 'X\(//\)$' \| \
 11539 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 11540 $as_echo X"$ac_file" |
 11541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 11542 	    s//\1/
 11545 	  /^X\(\/\/\)[^/].*/{
 11546 	    s//\1/
 11549 	  /^X\(\/\/\)$/{
 11550 	    s//\1/
 11553 	  /^X\(\/\).*/{
 11554 	    s//\1/
 11557 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 11558  ;;
 11560   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 11561 $as_echo "$as_me: executing $ac_file commands" >&6;}
 11562  ;;
 11563   esac
 11566   case $ac_file$ac_mode in
 11567     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 11568   # Strip MF so we end up with the name of the file.
 11569   mf=`echo "$mf" | sed -e 's/:.*$//'`
 11570   # Check whether this is an Automake generated Makefile or not.
 11571   # We used to match only the files named `Makefile.in', but
 11572   # some people rename them; so instead we look at the file content.
 11573   # Grep'ing the first line is not enough: some people post-process
 11574   # each Makefile.in and add a new line on top of each file to say so.
 11575   # So let's grep whole file.
 11576   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 11577     dirpart=`$as_dirname -- "$mf" ||
 11578 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 11579 	 X"$mf" : 'X\(//\)[^/]' \| \
 11580 	 X"$mf" : 'X\(//\)$' \| \
 11581 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 11582 $as_echo X"$mf" |
 11583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 11584 	    s//\1/
 11587 	  /^X\(\/\/\)[^/].*/{
 11588 	    s//\1/
 11591 	  /^X\(\/\/\)$/{
 11592 	    s//\1/
 11595 	  /^X\(\/\).*/{
 11596 	    s//\1/
 11599 	  s/.*/./; q'`
 11600   else
 11601     continue
 11602   fi
 11603   # Extract the definition of DEPDIR, am__include, and am__quote
 11604   # from the Makefile without running `make'.
 11605   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 11606   test -z "$DEPDIR" && continue
 11607   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 11608   test -z "am__include" && continue
 11609   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 11610   # When using ansi2knr, U may be empty or an underscore; expand it
 11611   U=`sed -n 's/^U = //p' < "$mf"`
 11612   # Find all dependency output files, they are included files with
 11613   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 11614   # simplest approach to changing $(DEPDIR) to its actual value in the
 11615   # expansion.
 11616   for file in `sed -n "
 11617     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 11618        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 11619     # Make sure the directory exists.
 11620     test -f "$dirpart/$file" && continue
 11621     fdir=`$as_dirname -- "$file" ||
 11622 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 11623 	 X"$file" : 'X\(//\)[^/]' \| \
 11624 	 X"$file" : 'X\(//\)$' \| \
 11625 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 11626 $as_echo X"$file" |
 11627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 11628 	    s//\1/
 11631 	  /^X\(\/\/\)[^/].*/{
 11632 	    s//\1/
 11635 	  /^X\(\/\/\)$/{
 11636 	    s//\1/
 11639 	  /^X\(\/\).*/{
 11640 	    s//\1/
 11643 	  s/.*/./; q'`
 11644     { as_dir=$dirpart/$fdir
 11645   case $as_dir in #(
 11646   -*) as_dir=./$as_dir;;
 11647   esac
 11648   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 11649     as_dirs=
 11650     while :; do
 11651       case $as_dir in #(
 11652       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 11653       *) as_qdir=$as_dir;;
 11654       esac
 11655       as_dirs="'$as_qdir' $as_dirs"
 11656       as_dir=`$as_dirname -- "$as_dir" ||
 11657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 11658 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 11659 	 X"$as_dir" : 'X\(//\)$' \| \
 11660 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 11661 $as_echo X"$as_dir" |
 11662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 11663 	    s//\1/
 11666 	  /^X\(\/\/\)[^/].*/{
 11667 	    s//\1/
 11670 	  /^X\(\/\/\)$/{
 11671 	    s//\1/
 11674 	  /^X\(\/\).*/{
 11675 	    s//\1/
 11678 	  s/.*/./; q'`
 11679       test -d "$as_dir" && break
 11680     done
 11681     test -z "$as_dirs" || eval "mkdir $as_dirs"
 11682   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 11683 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 11684    { (exit 1); exit 1; }; }; }
 11685     # echo "creating $dirpart/$file"
 11686     echo '# dummy' > "$dirpart/$file"
 11687   done
 11688 done
 11689  ;;
 11690     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 11691         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 11692       esac ;;
 11694   esac
 11695 done # for ac_tag
 11698 { (exit 0); exit 0; }
 11699 _ACEOF
 11700 chmod +x $CONFIG_STATUS
 11701 ac_clean_files=$ac_clean_files_save
 11703 test $ac_write_fail = 0 ||
 11704   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 11705 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 11706    { (exit 1); exit 1; }; }
 11709 # configure is writing to config.log, and then calls config.status.
 11710 # config.status does its own redirection, appending to config.log.
 11711 # Unfortunately, on DOS this fails, as config.log is still kept open
 11712 # by configure, so config.status won't be able to write to it; its
 11713 # output is simply discarded.  So we exec the FD to /dev/null,
 11714 # effectively closing config.log, so it can be properly (re)opened and
 11715 # appended to by config.status.  When coming back to configure, we
 11716 # need to make the FD available again.
 11717 if test "$no_create" != yes; then
 11718   ac_cs_success=:
 11719   ac_config_status_args=
 11720   test "$silent" = yes &&
 11721     ac_config_status_args="$ac_config_status_args --quiet"
 11722   exec 5>/dev/null
 11723   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 11724   exec 5>>config.log
 11725   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 11726   # would make configure fail if this is the last instruction.
 11727   $ac_cs_success || { (exit 1); exit 1; }
 11728 fi
 11729 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 11730   { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
 11731 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
 11732 fi
.