Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1097:d4807997e450
prev1074:397d77b6e346
next1107:7b279d10f46f
author nkeynes
date Sun Feb 21 11:11:30 2010 +1000 (14 years ago)
permissions -rwxr-xr-x
last change Split BIOS vectors into separate functions, implement parts of sysinfo and
flashrom calls
view annotate diff log raw
     1 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.63.
     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='LTLIBOBJS
   639 LIBOBJS
   640 MKINSTALLDIRS
   641 POSUB
   642 POFILES
   643 PO_IN_DATADIR_FALSE
   644 PO_IN_DATADIR_TRUE
   645 INTLLIBS
   646 INSTOBJEXT
   647 GMOFILES
   648 DATADIRNAME
   649 CATOBJEXT
   650 CATALOGS
   651 XGETTEXT
   652 GMSGFMT
   653 MSGFMT_OPTS
   654 MSGFMT
   655 USE_NLS
   656 GETTEXT_PACKAGE
   657 LXDREAM_LIBS
   658 BUILD_ARMTEST_FALSE
   659 BUILD_ARMTEST_TRUE
   660 BUILD_SYSTEST_FALSE
   661 BUILD_SYSTEST_TRUE
   662 ARMOBJCOPY
   663 ARMLD
   664 ARMCC
   665 SHOBJCOPY
   666 SHLD
   667 SHCC
   668 INPUT_LIRC_FALSE
   669 INPUT_LIRC_TRUE
   670 JOY_LINUX_FALSE
   671 JOY_LINUX_TRUE
   672 CDROM_NONE_FALSE
   673 CDROM_NONE_TRUE
   674 CDROM_OSX_FALSE
   675 CDROM_OSX_TRUE
   676 CDROM_LINUX_FALSE
   677 CDROM_LINUX_TRUE
   678 AUDIO_ALSA_FALSE
   679 AUDIO_ALSA_TRUE
   680 ALSA_LIBS
   681 ALSA_CFLAGS
   682 AUDIO_ESOUND_FALSE
   683 AUDIO_ESOUND_TRUE
   684 ESOUND_LIBS
   685 ESOUND_CFLAGS
   686 AUDIO_PULSE_FALSE
   687 AUDIO_PULSE_TRUE
   688 PULSE_LIBS
   689 PULSE_CFLAGS
   690 AUDIO_SDL_FALSE
   691 AUDIO_SDL_TRUE
   692 SDL_LIBS
   693 SDL_CFLAGS
   694 AUDIO_OSX_FALSE
   695 AUDIO_OSX_TRUE
   696 BUILD_SH4X86_FALSE
   697 BUILD_SH4X86_TRUE
   698 VIDEO_NSGL_FALSE
   699 VIDEO_NSGL_TRUE
   700 VIDEO_GLX_FALSE
   701 VIDEO_GLX_TRUE
   702 VIDEO_OSMESA_FALSE
   703 VIDEO_OSMESA_TRUE
   704 GUI_GTK_FALSE
   705 GUI_GTK_TRUE
   706 GTK_LIBS
   707 GTK_CFLAGS
   708 GLIB_LIBS
   709 GLIB_CFLAGS
   710 LIBPNG_LIBS
   711 LIBPNG_CFLAGS
   712 PKG_CONFIG
   713 LXDREAMCPPFLAGS
   714 BUILD_SHARED_FALSE
   715 BUILD_SHARED_TRUE
   716 LXDREAMLDFLAGS
   717 PLUGINLDFLAGS
   718 PLUGINCFLAGS
   719 SOEXT
   720 GUI_COCOA_FALSE
   721 GUI_COCOA_TRUE
   722 POD2HTML
   723 POD2MAN
   724 am__fastdepOBJC_FALSE
   725 am__fastdepOBJC_TRUE
   726 OBJCDEPMODE
   727 host_os
   728 host_vendor
   729 host_cpu
   730 host
   731 build_os
   732 build_vendor
   733 build_cpu
   734 build
   735 EGREP
   736 GREP
   737 CPP
   738 CCASFLAGS
   739 CCAS
   740 SED
   741 ac_ct_OBJC
   742 OBJCFLAGS
   743 OBJC
   744 am__fastdepCC_FALSE
   745 am__fastdepCC_TRUE
   746 CCDEPMODE
   747 AMDEPBACKSLASH
   748 AMDEP_FALSE
   749 AMDEP_TRUE
   750 am__quote
   751 am__include
   752 DEPDIR
   753 OBJEXT
   754 EXEEXT
   755 ac_ct_CC
   756 CPPFLAGS
   757 LDFLAGS
   758 CFLAGS
   759 CC
   760 MAINT
   761 MAINTAINER_MODE_FALSE
   762 MAINTAINER_MODE_TRUE
   763 am__untar
   764 am__tar
   765 AMTAR
   766 am__leading_dot
   767 SET_MAKE
   768 AWK
   769 mkdir_p
   770 INSTALL_STRIP_PROGRAM
   771 STRIP
   772 install_sh
   773 MAKEINFO
   774 AUTOHEADER
   775 AUTOMAKE
   776 AUTOCONF
   777 ACLOCAL
   778 VERSION
   779 PACKAGE
   780 CYGPATH_W
   781 INSTALL_DATA
   782 INSTALL_SCRIPT
   783 INSTALL_PROGRAM
   784 target_alias
   785 host_alias
   786 build_alias
   787 LIBS
   788 ECHO_T
   789 ECHO_N
   790 ECHO_C
   791 DEFS
   792 mandir
   793 localedir
   794 libdir
   795 psdir
   796 pdfdir
   797 dvidir
   798 htmldir
   799 infodir
   800 docdir
   801 oldincludedir
   802 includedir
   803 localstatedir
   804 sharedstatedir
   805 sysconfdir
   806 datadir
   807 datarootdir
   808 libexecdir
   809 sbindir
   810 bindir
   811 program_transform_name
   812 prefix
   813 exec_prefix
   814 PACKAGE_BUGREPORT
   815 PACKAGE_STRING
   816 PACKAGE_VERSION
   817 PACKAGE_TARNAME
   818 PACKAGE_NAME
   819 PATH_SEPARATOR
   820 SHELL'
   821 ac_subst_files=''
   822 ac_user_opts='
   823 enable_option_checking
   824 enable_maintainer_mode
   825 enable_dependency_tracking
   826 enable_strict_warn
   827 enable_translator
   828 enable_optimized
   829 enable_shared
   830 enable_profiled
   831 enable_trace
   832 enable_watch
   833 enable_sh4stats
   834 with_osmesa
   835 with_gtk
   836 with_esd
   837 with_pulse
   838 with_sdl
   839 '
   840       ac_precious_vars='build_alias
   841 host_alias
   842 target_alias
   843 CC
   844 CFLAGS
   845 LDFLAGS
   846 LIBS
   847 CPPFLAGS
   848 OBJC
   849 OBJCFLAGS
   850 CCAS
   851 CCASFLAGS
   852 CPP
   853 PKG_CONFIG
   854 LIBPNG_CFLAGS
   855 LIBPNG_LIBS
   856 GLIB_CFLAGS
   857 GLIB_LIBS
   858 GTK_CFLAGS
   859 GTK_LIBS
   860 SDL_CFLAGS
   861 SDL_LIBS
   862 PULSE_CFLAGS
   863 PULSE_LIBS
   864 ESOUND_CFLAGS
   865 ESOUND_LIBS
   866 ALSA_CFLAGS
   867 ALSA_LIBS'
   870 # Initialize some variables set by options.
   871 ac_init_help=
   872 ac_init_version=false
   873 ac_unrecognized_opts=
   874 ac_unrecognized_sep=
   875 # The variables have the same names as the options, with
   876 # dashes changed to underlines.
   877 cache_file=/dev/null
   878 exec_prefix=NONE
   879 no_create=
   880 no_recursion=
   881 prefix=NONE
   882 program_prefix=NONE
   883 program_suffix=NONE
   884 program_transform_name=s,x,x,
   885 silent=
   886 site=
   887 srcdir=
   888 verbose=
   889 x_includes=NONE
   890 x_libraries=NONE
   892 # Installation directory options.
   893 # These are left unexpanded so users can "make install exec_prefix=/foo"
   894 # and all the variables that are supposed to be based on exec_prefix
   895 # by default will actually change.
   896 # Use braces instead of parens because sh, perl, etc. also accept them.
   897 # (The list follows the same order as the GNU Coding Standards.)
   898 bindir='${exec_prefix}/bin'
   899 sbindir='${exec_prefix}/sbin'
   900 libexecdir='${exec_prefix}/libexec'
   901 datarootdir='${prefix}/share'
   902 datadir='${datarootdir}'
   903 sysconfdir='${prefix}/etc'
   904 sharedstatedir='${prefix}/com'
   905 localstatedir='${prefix}/var'
   906 includedir='${prefix}/include'
   907 oldincludedir='/usr/include'
   908 docdir='${datarootdir}/doc/${PACKAGE}'
   909 infodir='${datarootdir}/info'
   910 htmldir='${docdir}'
   911 dvidir='${docdir}'
   912 pdfdir='${docdir}'
   913 psdir='${docdir}'
   914 libdir='${exec_prefix}/lib'
   915 localedir='${datarootdir}/locale'
   916 mandir='${datarootdir}/man'
   918 ac_prev=
   919 ac_dashdash=
   920 for ac_option
   921 do
   922   # If the previous option needs an argument, assign it.
   923   if test -n "$ac_prev"; then
   924     eval $ac_prev=\$ac_option
   925     ac_prev=
   926     continue
   927   fi
   929   case $ac_option in
   930   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   931   *)	ac_optarg=yes ;;
   932   esac
   934   # Accept the important Cygnus configure options, so we can diagnose typos.
   936   case $ac_dashdash$ac_option in
   937   --)
   938     ac_dashdash=yes ;;
   940   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   941     ac_prev=bindir ;;
   942   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   943     bindir=$ac_optarg ;;
   945   -build | --build | --buil | --bui | --bu)
   946     ac_prev=build_alias ;;
   947   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   948     build_alias=$ac_optarg ;;
   950   -cache-file | --cache-file | --cache-fil | --cache-fi \
   951   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   952     ac_prev=cache_file ;;
   953   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   954   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   955     cache_file=$ac_optarg ;;
   957   --config-cache | -C)
   958     cache_file=config.cache ;;
   960   -datadir | --datadir | --datadi | --datad)
   961     ac_prev=datadir ;;
   962   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   963     datadir=$ac_optarg ;;
   965   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   966   | --dataroo | --dataro | --datar)
   967     ac_prev=datarootdir ;;
   968   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   969   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   970     datarootdir=$ac_optarg ;;
   972   -disable-* | --disable-*)
   973     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   974     # Reject names that are not valid shell variable names.
   975     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   976       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   977    { (exit 1); exit 1; }; }
   978     ac_useropt_orig=$ac_useropt
   979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   980     case $ac_user_opts in
   981       *"
   982 "enable_$ac_useropt"
   983 "*) ;;
   984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   985 	 ac_unrecognized_sep=', ';;
   986     esac
   987     eval enable_$ac_useropt=no ;;
   989   -docdir | --docdir | --docdi | --doc | --do)
   990     ac_prev=docdir ;;
   991   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   992     docdir=$ac_optarg ;;
   994   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   995     ac_prev=dvidir ;;
   996   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   997     dvidir=$ac_optarg ;;
   999   -enable-* | --enable-*)
  1000     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1001     # Reject names that are not valid shell variable names.
  1002     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1003       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1004    { (exit 1); exit 1; }; }
  1005     ac_useropt_orig=$ac_useropt
  1006     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1007     case $ac_user_opts in
  1008       *"
  1009 "enable_$ac_useropt"
  1010 "*) ;;
  1011       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1012 	 ac_unrecognized_sep=', ';;
  1013     esac
  1014     eval enable_$ac_useropt=\$ac_optarg ;;
  1016   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1017   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1018   | --exec | --exe | --ex)
  1019     ac_prev=exec_prefix ;;
  1020   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1021   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1022   | --exec=* | --exe=* | --ex=*)
  1023     exec_prefix=$ac_optarg ;;
  1025   -gas | --gas | --ga | --g)
  1026     # Obsolete; use --with-gas.
  1027     with_gas=yes ;;
  1029   -help | --help | --hel | --he | -h)
  1030     ac_init_help=long ;;
  1031   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1032     ac_init_help=recursive ;;
  1033   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1034     ac_init_help=short ;;
  1036   -host | --host | --hos | --ho)
  1037     ac_prev=host_alias ;;
  1038   -host=* | --host=* | --hos=* | --ho=*)
  1039     host_alias=$ac_optarg ;;
  1041   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1042     ac_prev=htmldir ;;
  1043   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1044   | --ht=*)
  1045     htmldir=$ac_optarg ;;
  1047   -includedir | --includedir | --includedi | --included | --include \
  1048   | --includ | --inclu | --incl | --inc)
  1049     ac_prev=includedir ;;
  1050   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1051   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1052     includedir=$ac_optarg ;;
  1054   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1055     ac_prev=infodir ;;
  1056   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1057     infodir=$ac_optarg ;;
  1059   -libdir | --libdir | --libdi | --libd)
  1060     ac_prev=libdir ;;
  1061   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1062     libdir=$ac_optarg ;;
  1064   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1065   | --libexe | --libex | --libe)
  1066     ac_prev=libexecdir ;;
  1067   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1068   | --libexe=* | --libex=* | --libe=*)
  1069     libexecdir=$ac_optarg ;;
  1071   -localedir | --localedir | --localedi | --localed | --locale)
  1072     ac_prev=localedir ;;
  1073   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1074     localedir=$ac_optarg ;;
  1076   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1077   | --localstate | --localstat | --localsta | --localst | --locals)
  1078     ac_prev=localstatedir ;;
  1079   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1080   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1081     localstatedir=$ac_optarg ;;
  1083   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1084     ac_prev=mandir ;;
  1085   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1086     mandir=$ac_optarg ;;
  1088   -nfp | --nfp | --nf)
  1089     # Obsolete; use --without-fp.
  1090     with_fp=no ;;
  1092   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1093   | --no-cr | --no-c | -n)
  1094     no_create=yes ;;
  1096   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1097   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1098     no_recursion=yes ;;
  1100   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1101   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1102   | --oldin | --oldi | --old | --ol | --o)
  1103     ac_prev=oldincludedir ;;
  1104   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1105   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1106   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1107     oldincludedir=$ac_optarg ;;
  1109   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1110     ac_prev=prefix ;;
  1111   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1112     prefix=$ac_optarg ;;
  1114   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1115   | --program-pre | --program-pr | --program-p)
  1116     ac_prev=program_prefix ;;
  1117   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1118   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1119     program_prefix=$ac_optarg ;;
  1121   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1122   | --program-suf | --program-su | --program-s)
  1123     ac_prev=program_suffix ;;
  1124   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1125   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1126     program_suffix=$ac_optarg ;;
  1128   -program-transform-name | --program-transform-name \
  1129   | --program-transform-nam | --program-transform-na \
  1130   | --program-transform-n | --program-transform- \
  1131   | --program-transform | --program-transfor \
  1132   | --program-transfo | --program-transf \
  1133   | --program-trans | --program-tran \
  1134   | --progr-tra | --program-tr | --program-t)
  1135     ac_prev=program_transform_name ;;
  1136   -program-transform-name=* | --program-transform-name=* \
  1137   | --program-transform-nam=* | --program-transform-na=* \
  1138   | --program-transform-n=* | --program-transform-=* \
  1139   | --program-transform=* | --program-transfor=* \
  1140   | --program-transfo=* | --program-transf=* \
  1141   | --program-trans=* | --program-tran=* \
  1142   | --progr-tra=* | --program-tr=* | --program-t=*)
  1143     program_transform_name=$ac_optarg ;;
  1145   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1146     ac_prev=pdfdir ;;
  1147   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1148     pdfdir=$ac_optarg ;;
  1150   -psdir | --psdir | --psdi | --psd | --ps)
  1151     ac_prev=psdir ;;
  1152   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1153     psdir=$ac_optarg ;;
  1155   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1156   | -silent | --silent | --silen | --sile | --sil)
  1157     silent=yes ;;
  1159   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1160     ac_prev=sbindir ;;
  1161   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1162   | --sbi=* | --sb=*)
  1163     sbindir=$ac_optarg ;;
  1165   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1166   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1167   | --sharedst | --shareds | --shared | --share | --shar \
  1168   | --sha | --sh)
  1169     ac_prev=sharedstatedir ;;
  1170   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1171   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1172   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1173   | --sha=* | --sh=*)
  1174     sharedstatedir=$ac_optarg ;;
  1176   -site | --site | --sit)
  1177     ac_prev=site ;;
  1178   -site=* | --site=* | --sit=*)
  1179     site=$ac_optarg ;;
  1181   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1182     ac_prev=srcdir ;;
  1183   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1184     srcdir=$ac_optarg ;;
  1186   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1187   | --syscon | --sysco | --sysc | --sys | --sy)
  1188     ac_prev=sysconfdir ;;
  1189   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1190   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1191     sysconfdir=$ac_optarg ;;
  1193   -target | --target | --targe | --targ | --tar | --ta | --t)
  1194     ac_prev=target_alias ;;
  1195   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1196     target_alias=$ac_optarg ;;
  1198   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1199     verbose=yes ;;
  1201   -version | --version | --versio | --versi | --vers | -V)
  1202     ac_init_version=: ;;
  1204   -with-* | --with-*)
  1205     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1206     # Reject names that are not valid shell variable names.
  1207     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1208       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1209    { (exit 1); exit 1; }; }
  1210     ac_useropt_orig=$ac_useropt
  1211     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1212     case $ac_user_opts in
  1213       *"
  1214 "with_$ac_useropt"
  1215 "*) ;;
  1216       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1217 	 ac_unrecognized_sep=', ';;
  1218     esac
  1219     eval with_$ac_useropt=\$ac_optarg ;;
  1221   -without-* | --without-*)
  1222     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1223     # Reject names that are not valid shell variable names.
  1224     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1225       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1226    { (exit 1); exit 1; }; }
  1227     ac_useropt_orig=$ac_useropt
  1228     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1229     case $ac_user_opts in
  1230       *"
  1231 "with_$ac_useropt"
  1232 "*) ;;
  1233       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1234 	 ac_unrecognized_sep=', ';;
  1235     esac
  1236     eval with_$ac_useropt=no ;;
  1238   --x)
  1239     # Obsolete; use --with-x.
  1240     with_x=yes ;;
  1242   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1243   | --x-incl | --x-inc | --x-in | --x-i)
  1244     ac_prev=x_includes ;;
  1245   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1246   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1247     x_includes=$ac_optarg ;;
  1249   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1250   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1251     ac_prev=x_libraries ;;
  1252   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1253   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1254     x_libraries=$ac_optarg ;;
  1256   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1257 Try \`$0 --help' for more information." >&2
  1258    { (exit 1); exit 1; }; }
  1259     ;;
  1261   *=*)
  1262     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1263     # Reject names that are not valid shell variable names.
  1264     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1265       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1266    { (exit 1); exit 1; }; }
  1267     eval $ac_envvar=\$ac_optarg
  1268     export $ac_envvar ;;
  1270   *)
  1271     # FIXME: should be removed in autoconf 3.0.
  1272     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1273     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1274       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1275     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1276     ;;
  1278   esac
  1279 done
  1281 if test -n "$ac_prev"; then
  1282   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1283   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1284    { (exit 1); exit 1; }; }
  1285 fi
  1287 if test -n "$ac_unrecognized_opts"; then
  1288   case $enable_option_checking in
  1289     no) ;;
  1290     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1291    { (exit 1); exit 1; }; } ;;
  1292     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1293   esac
  1294 fi
  1296 # Check all directory arguments for consistency.
  1297 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1298 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1299 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1300 		libdir localedir mandir
  1301 do
  1302   eval ac_val=\$$ac_var
  1303   # Remove trailing slashes.
  1304   case $ac_val in
  1305     */ )
  1306       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1307       eval $ac_var=\$ac_val;;
  1308   esac
  1309   # Be sure to have absolute directory names.
  1310   case $ac_val in
  1311     [\\/$]* | ?:[\\/]* )  continue;;
  1312     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1313   esac
  1314   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1315    { (exit 1); exit 1; }; }
  1316 done
  1318 # There might be people who depend on the old broken behavior: `$host'
  1319 # used to hold the argument of --host etc.
  1320 # FIXME: To remove some day.
  1321 build=$build_alias
  1322 host=$host_alias
  1323 target=$target_alias
  1325 # FIXME: To remove some day.
  1326 if test "x$host_alias" != x; then
  1327   if test "x$build_alias" = x; then
  1328     cross_compiling=maybe
  1329     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1330     If a cross compiler is detected then cross compile mode will be used." >&2
  1331   elif test "x$build_alias" != "x$host_alias"; then
  1332     cross_compiling=yes
  1333   fi
  1334 fi
  1336 ac_tool_prefix=
  1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1339 test "$silent" = yes && exec 6>/dev/null
  1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1343 ac_ls_di=`ls -di .` &&
  1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1345   { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1346    { (exit 1); exit 1; }; }
  1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1348   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1349    { (exit 1); exit 1; }; }
  1352 # Find the source files, if location was not specified.
  1353 if test -z "$srcdir"; then
  1354   ac_srcdir_defaulted=yes
  1355   # Try the directory containing this script, then the parent directory.
  1356   ac_confdir=`$as_dirname -- "$as_myself" ||
  1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1358 	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1359 	 X"$as_myself" : 'X\(//\)$' \| \
  1360 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1361 $as_echo X"$as_myself" |
  1362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1363 	    s//\1/
  1366 	  /^X\(\/\/\)[^/].*/{
  1367 	    s//\1/
  1370 	  /^X\(\/\/\)$/{
  1371 	    s//\1/
  1374 	  /^X\(\/\).*/{
  1375 	    s//\1/
  1378 	  s/.*/./; q'`
  1379   srcdir=$ac_confdir
  1380   if test ! -r "$srcdir/$ac_unique_file"; then
  1381     srcdir=..
  1382   fi
  1383 else
  1384   ac_srcdir_defaulted=no
  1385 fi
  1386 if test ! -r "$srcdir/$ac_unique_file"; then
  1387   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1388   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1389    { (exit 1); exit 1; }; }
  1390 fi
  1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1392 ac_abs_confdir=`(
  1393 	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1394    { (exit 1); exit 1; }; }
  1395 	pwd)`
  1396 # When building in place, set srcdir=.
  1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1398   srcdir=.
  1399 fi
  1400 # Remove unnecessary trailing slashes from srcdir.
  1401 # Double slashes in file names in object file debugging info
  1402 # mess up M-x gdb in Emacs.
  1403 case $srcdir in
  1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1405 esac
  1406 for ac_var in $ac_precious_vars; do
  1407   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1408   eval ac_env_${ac_var}_value=\$${ac_var}
  1409   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1410   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1411 done
  1414 # Report the --help message.
  1416 if test "$ac_init_help" = "long"; then
  1417   # Omit some internal or obsolete options to make the list less imposing.
  1418   # This message is too long to be a string in the A/UX 3.1 sh.
  1419   cat <<_ACEOF
  1420 \`configure' configures this package to adapt to many kinds of systems.
  1422 Usage: $0 [OPTION]... [VAR=VALUE]...
  1424 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1425 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1427 Defaults for the options are specified in brackets.
  1429 Configuration:
  1430   -h, --help              display this help and exit
  1431       --help=short        display options specific to this package
  1432       --help=recursive    display the short help of all the included packages
  1433   -V, --version           display version information and exit
  1434   -q, --quiet, --silent   do not print \`checking...' messages
  1435       --cache-file=FILE   cache test results in FILE [disabled]
  1436   -C, --config-cache      alias for \`--cache-file=config.cache'
  1437   -n, --no-create         do not create output files
  1438       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1440 Installation directories:
  1441   --prefix=PREFIX         install architecture-independent files in PREFIX
  1442                           [$ac_default_prefix]
  1443   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1444                           [PREFIX]
  1446 By default, \`make install' will install all the files in
  1447 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1448 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1449 for instance \`--prefix=\$HOME'.
  1451 For better control, use the options below.
  1453 Fine tuning of the installation directories:
  1454   --bindir=DIR            user executables [EPREFIX/bin]
  1455   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1456   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1457   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1458   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1459   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1460   --libdir=DIR            object code libraries [EPREFIX/lib]
  1461   --includedir=DIR        C header files [PREFIX/include]
  1462   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1463   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1464   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1465   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1466   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1467   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1468   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1469   --htmldir=DIR           html documentation [DOCDIR]
  1470   --dvidir=DIR            dvi documentation [DOCDIR]
  1471   --pdfdir=DIR            pdf documentation [DOCDIR]
  1472   --psdir=DIR             ps documentation [DOCDIR]
  1473 _ACEOF
  1475   cat <<\_ACEOF
  1477 Program names:
  1478   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1479   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1480   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1482 System types:
  1483   --build=BUILD     configure for building on BUILD [guessed]
  1484   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1485 _ACEOF
  1486 fi
  1488 if test -n "$ac_init_help"; then
  1490   cat <<\_ACEOF
  1492 Optional Features:
  1493   --disable-option-checking  ignore unrecognized --enable/--with options
  1494   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1495   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1496   --enable-maintainer-mode  enable make rules and dependencies not useful
  1497 			  (and sometimes confusing) to the casual installer
  1498   --disable-dependency-tracking  speeds up one-time build
  1499   --enable-dependency-tracking   do not reject slow dependency extractors
  1500   --enable-strict-warn    Enable strict compilation warnings
  1501   --disable-translator    Disable the SH4 translator (Enabled by default)
  1502   --disable-optimized     Disable compile-time optimizations (Enabled by
  1503                           default)
  1504   --enable-shared         Build drivers as shared libraries (Enabled if
  1505                           available)
  1506   --enable-profiled       Enable profiling build
  1507   --enable-trace          Enable generation of IO traces (warning: hurts
  1508                           performance)
  1509   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1510                           performance)
  1511   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1513 Optional Packages:
  1514   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1515   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1516   --with-osmesa           Build with the osmesa GL library (software
  1517                           rendering)
  1518   --with-gtk              Build with the GTK UI. Default on X11 systems
  1519   --with-esd              Build with support for the ESounD audio system
  1520   --with-pulse            Build with support for the PulseAudio audio system
  1521   --with-sdl              Build with support for SDL audio
  1523 Some influential environment variables:
  1524   CC          C compiler command
  1525   CFLAGS      C compiler flags
  1526   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1527               nonstandard directory <lib dir>
  1528   LIBS        libraries to pass to the linker, e.g. -l<library>
  1529   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1530               you have headers in a nonstandard directory <include dir>
  1531   OBJC        Objective C compiler command
  1532   OBJCFLAGS   Objective C compiler flags
  1533   CCAS        assembler compiler command (defaults to CC)
  1534   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1535   CPP         C preprocessor
  1536   PKG_CONFIG  path to pkg-config utility
  1537   LIBPNG_CFLAGS
  1538               C compiler flags for LIBPNG, overriding pkg-config
  1539   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1540   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1541   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1542   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1543   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1544   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
  1545   SDL_LIBS    linker flags for SDL, overriding pkg-config
  1546   PULSE_CFLAGS
  1547               C compiler flags for PULSE, overriding pkg-config
  1548   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1549   ESOUND_CFLAGS
  1550               C compiler flags for ESOUND, overriding pkg-config
  1551   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1552   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1553   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1555 Use these variables to override the choices made by `configure' or to help
  1556 it to find libraries and programs with nonstandard names/locations.
  1558 _ACEOF
  1559 ac_status=$?
  1560 fi
  1562 if test "$ac_init_help" = "recursive"; then
  1563   # If there are subdirs, report their specific --help.
  1564   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1565     test -d "$ac_dir" ||
  1566       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1567       continue
  1568     ac_builddir=.
  1570 case "$ac_dir" in
  1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1572 *)
  1573   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1574   # A ".." for each directory in $ac_dir_suffix.
  1575   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1576   case $ac_top_builddir_sub in
  1577   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1578   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1579   esac ;;
  1580 esac
  1581 ac_abs_top_builddir=$ac_pwd
  1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1583 # for backward compatibility:
  1584 ac_top_builddir=$ac_top_build_prefix
  1586 case $srcdir in
  1587   .)  # We are building in place.
  1588     ac_srcdir=.
  1589     ac_top_srcdir=$ac_top_builddir_sub
  1590     ac_abs_top_srcdir=$ac_pwd ;;
  1591   [\\/]* | ?:[\\/]* )  # Absolute name.
  1592     ac_srcdir=$srcdir$ac_dir_suffix;
  1593     ac_top_srcdir=$srcdir
  1594     ac_abs_top_srcdir=$srcdir ;;
  1595   *) # Relative name.
  1596     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1597     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1598     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1599 esac
  1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1602     cd "$ac_dir" || { ac_status=$?; continue; }
  1603     # Check for guested configure.
  1604     if test -f "$ac_srcdir/configure.gnu"; then
  1605       echo &&
  1606       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1607     elif test -f "$ac_srcdir/configure"; then
  1608       echo &&
  1609       $SHELL "$ac_srcdir/configure" --help=recursive
  1610     else
  1611       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1612     fi || ac_status=$?
  1613     cd "$ac_pwd" || { ac_status=$?; break; }
  1614   done
  1615 fi
  1617 test -n "$ac_init_help" && exit $ac_status
  1618 if $ac_init_version; then
  1619   cat <<\_ACEOF
  1620 configure
  1621 generated by GNU Autoconf 2.63
  1623 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1624 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1625 This configure script is free software; the Free Software Foundation
  1626 gives unlimited permission to copy, distribute and modify it.
  1627 _ACEOF
  1628   exit
  1629 fi
  1630 cat >config.log <<_ACEOF
  1631 This file contains any messages produced by compilers while
  1632 running configure, to aid debugging if configure makes a mistake.
  1634 It was created by $as_me, which was
  1635 generated by GNU Autoconf 2.63.  Invocation command line was
  1637   $ $0 $@
  1639 _ACEOF
  1640 exec 5>>config.log
  1642 cat <<_ASUNAME
  1643 ## --------- ##
  1644 ## Platform. ##
  1645 ## --------- ##
  1647 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1648 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1649 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1650 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1651 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1653 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1654 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1656 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1657 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1658 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1659 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1660 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1661 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1662 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1664 _ASUNAME
  1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1667 for as_dir in $PATH
  1668 do
  1669   IFS=$as_save_IFS
  1670   test -z "$as_dir" && as_dir=.
  1671   $as_echo "PATH: $as_dir"
  1672 done
  1673 IFS=$as_save_IFS
  1675 } >&5
  1677 cat >&5 <<_ACEOF
  1680 ## ----------- ##
  1681 ## Core tests. ##
  1682 ## ----------- ##
  1684 _ACEOF
  1687 # Keep a trace of the command line.
  1688 # Strip out --no-create and --no-recursion so they do not pile up.
  1689 # Strip out --silent because we don't want to record it for future runs.
  1690 # Also quote any args containing shell meta-characters.
  1691 # Make two passes to allow for proper duplicate-argument suppression.
  1692 ac_configure_args=
  1693 ac_configure_args0=
  1694 ac_configure_args1=
  1695 ac_must_keep_next=false
  1696 for ac_pass in 1 2
  1697 do
  1698   for ac_arg
  1699   do
  1700     case $ac_arg in
  1701     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1702     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1703     | -silent | --silent | --silen | --sile | --sil)
  1704       continue ;;
  1705     *\'*)
  1706       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1707     esac
  1708     case $ac_pass in
  1709     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1710     2)
  1711       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1712       if test $ac_must_keep_next = true; then
  1713 	ac_must_keep_next=false # Got value, back to normal.
  1714       else
  1715 	case $ac_arg in
  1716 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1717 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1718 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1719 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1720 	    case "$ac_configure_args0 " in
  1721 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1722 	    esac
  1723 	    ;;
  1724 	  -* ) ac_must_keep_next=true ;;
  1725 	esac
  1726       fi
  1727       ac_configure_args="$ac_configure_args '$ac_arg'"
  1728       ;;
  1729     esac
  1730   done
  1731 done
  1732 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1733 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1735 # When interrupted or exit'd, cleanup temporary files, and complete
  1736 # config.log.  We remove comments because anyway the quotes in there
  1737 # would cause problems or look ugly.
  1738 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1739 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1740 trap 'exit_status=$?
  1741   # Save into config.log some information that might help in debugging.
  1743     echo
  1745     cat <<\_ASBOX
  1746 ## ---------------- ##
  1747 ## Cache variables. ##
  1748 ## ---------------- ##
  1749 _ASBOX
  1750     echo
  1751     # The following way of writing the cache mishandles newlines in values,
  1753   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1754     eval ac_val=\$$ac_var
  1755     case $ac_val in #(
  1756     *${as_nl}*)
  1757       case $ac_var in #(
  1758       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1759 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1760       esac
  1761       case $ac_var in #(
  1762       _ | IFS | as_nl) ;; #(
  1763       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1764       *) $as_unset $ac_var ;;
  1765       esac ;;
  1766     esac
  1767   done
  1768   (set) 2>&1 |
  1769     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1770     *${as_nl}ac_space=\ *)
  1771       sed -n \
  1772 	"s/'\''/'\''\\\\'\'''\''/g;
  1773 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1774       ;; #(
  1775     *)
  1776       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1777       ;;
  1778     esac |
  1779     sort
  1781     echo
  1783     cat <<\_ASBOX
  1784 ## ----------------- ##
  1785 ## Output variables. ##
  1786 ## ----------------- ##
  1787 _ASBOX
  1788     echo
  1789     for ac_var in $ac_subst_vars
  1790     do
  1791       eval ac_val=\$$ac_var
  1792       case $ac_val in
  1793       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1794       esac
  1795       $as_echo "$ac_var='\''$ac_val'\''"
  1796     done | sort
  1797     echo
  1799     if test -n "$ac_subst_files"; then
  1800       cat <<\_ASBOX
  1801 ## ------------------- ##
  1802 ## File substitutions. ##
  1803 ## ------------------- ##
  1804 _ASBOX
  1805       echo
  1806       for ac_var in $ac_subst_files
  1807       do
  1808 	eval ac_val=\$$ac_var
  1809 	case $ac_val in
  1810 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1811 	esac
  1812 	$as_echo "$ac_var='\''$ac_val'\''"
  1813       done | sort
  1814       echo
  1815     fi
  1817     if test -s confdefs.h; then
  1818       cat <<\_ASBOX
  1819 ## ----------- ##
  1820 ## confdefs.h. ##
  1821 ## ----------- ##
  1822 _ASBOX
  1823       echo
  1824       cat confdefs.h
  1825       echo
  1826     fi
  1827     test "$ac_signal" != 0 &&
  1828       $as_echo "$as_me: caught signal $ac_signal"
  1829     $as_echo "$as_me: exit $exit_status"
  1830   } >&5
  1831   rm -f core *.core core.conftest.* &&
  1832     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1833     exit $exit_status
  1834 ' 0
  1835 for ac_signal in 1 2 13 15; do
  1836   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1837 done
  1838 ac_signal=0
  1840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1841 rm -f -r conftest* confdefs.h
  1843 # Predefined preprocessor variables.
  1845 cat >>confdefs.h <<_ACEOF
  1846 #define PACKAGE_NAME "$PACKAGE_NAME"
  1847 _ACEOF
  1850 cat >>confdefs.h <<_ACEOF
  1851 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1852 _ACEOF
  1855 cat >>confdefs.h <<_ACEOF
  1856 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1857 _ACEOF
  1860 cat >>confdefs.h <<_ACEOF
  1861 #define PACKAGE_STRING "$PACKAGE_STRING"
  1862 _ACEOF
  1865 cat >>confdefs.h <<_ACEOF
  1866 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1867 _ACEOF
  1870 # Let the site file select an alternate cache file if it wants to.
  1871 # Prefer an explicitly selected file to automatically selected ones.
  1872 ac_site_file1=NONE
  1873 ac_site_file2=NONE
  1874 if test -n "$CONFIG_SITE"; then
  1875   ac_site_file1=$CONFIG_SITE
  1876 elif test "x$prefix" != xNONE; then
  1877   ac_site_file1=$prefix/share/config.site
  1878   ac_site_file2=$prefix/etc/config.site
  1879 else
  1880   ac_site_file1=$ac_default_prefix/share/config.site
  1881   ac_site_file2=$ac_default_prefix/etc/config.site
  1882 fi
  1883 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1884 do
  1885   test "x$ac_site_file" = xNONE && continue
  1886   if test -r "$ac_site_file"; then
  1887     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1888 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1889     sed 's/^/| /' "$ac_site_file" >&5
  1890     . "$ac_site_file"
  1891   fi
  1892 done
  1894 if test -r "$cache_file"; then
  1895   # Some versions of bash will fail to source /dev/null (special
  1896   # files actually), so we avoid doing that.
  1897   if test -f "$cache_file"; then
  1898     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1899 $as_echo "$as_me: loading cache $cache_file" >&6;}
  1900     case $cache_file in
  1901       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1902       *)                      . "./$cache_file";;
  1903     esac
  1904   fi
  1905 else
  1906   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1907 $as_echo "$as_me: creating cache $cache_file" >&6;}
  1908   >$cache_file
  1909 fi
  1911 # Check that the precious variables saved in the cache have kept the same
  1912 # value.
  1913 ac_cache_corrupted=false
  1914 for ac_var in $ac_precious_vars; do
  1915   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1916   eval ac_new_set=\$ac_env_${ac_var}_set
  1917   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1918   eval ac_new_val=\$ac_env_${ac_var}_value
  1919   case $ac_old_set,$ac_new_set in
  1920     set,)
  1921       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1922 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1923       ac_cache_corrupted=: ;;
  1924     ,set)
  1925       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1926 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1927       ac_cache_corrupted=: ;;
  1928     ,);;
  1929     *)
  1930       if test "x$ac_old_val" != "x$ac_new_val"; then
  1931 	# differences in whitespace do not lead to failure.
  1932 	ac_old_val_w=`echo x $ac_old_val`
  1933 	ac_new_val_w=`echo x $ac_new_val`
  1934 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1935 	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1936 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1937 	  ac_cache_corrupted=:
  1938 	else
  1939 	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1940 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1941 	  eval $ac_var=\$ac_old_val
  1942 	fi
  1943 	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
  1944 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  1945 	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
  1946 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  1947       fi;;
  1948   esac
  1949   # Pass precious variables to config.status.
  1950   if test "$ac_new_set" = set; then
  1951     case $ac_new_val in
  1952     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1953     *) ac_arg=$ac_var=$ac_new_val ;;
  1954     esac
  1955     case " $ac_configure_args " in
  1956       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1957       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1958     esac
  1959   fi
  1960 done
  1961 if $ac_cache_corrupted; then
  1962   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1964   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1965 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1966   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1967 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1968    { (exit 1); exit 1; }; }
  1969 fi
  1987 ac_ext=c
  1988 ac_cpp='$CPP $CPPFLAGS'
  1989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1994 am__api_version="1.9"
  1995 ac_aux_dir=
  1996 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1997   if test -f "$ac_dir/install-sh"; then
  1998     ac_aux_dir=$ac_dir
  1999     ac_install_sh="$ac_aux_dir/install-sh -c"
  2000     break
  2001   elif test -f "$ac_dir/install.sh"; then
  2002     ac_aux_dir=$ac_dir
  2003     ac_install_sh="$ac_aux_dir/install.sh -c"
  2004     break
  2005   elif test -f "$ac_dir/shtool"; then
  2006     ac_aux_dir=$ac_dir
  2007     ac_install_sh="$ac_aux_dir/shtool install -c"
  2008     break
  2009   fi
  2010 done
  2011 if test -z "$ac_aux_dir"; then
  2012   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2013 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2014    { (exit 1); exit 1; }; }
  2015 fi
  2017 # These three variables are undocumented and unsupported,
  2018 # and are intended to be withdrawn in a future Autoconf release.
  2019 # They can cause serious problems if a builder's source tree is in a directory
  2020 # whose full name contains unusual characters.
  2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2023 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2026 # Find a good install program.  We prefer a C program (faster),
  2027 # so one script is as good as another.  But avoid the broken or
  2028 # incompatible versions:
  2029 # SysV /etc/install, /usr/sbin/install
  2030 # SunOS /usr/etc/install
  2031 # IRIX /sbin/install
  2032 # AIX /bin/install
  2033 # AmigaOS /C/install, which installs bootblocks on floppy discs
  2034 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2035 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2036 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2037 # OS/2's system install, which has a completely different semantic
  2038 # ./install, which can be erroneously created by make from ./install.sh.
  2039 # Reject install programs that cannot install multiple files.
  2040 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2041 $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2042 if test -z "$INSTALL"; then
  2043 if test "${ac_cv_path_install+set}" = set; then
  2044   $as_echo_n "(cached) " >&6
  2045 else
  2046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2047 for as_dir in $PATH
  2048 do
  2049   IFS=$as_save_IFS
  2050   test -z "$as_dir" && as_dir=.
  2051   # Account for people who put trailing slashes in PATH elements.
  2052 case $as_dir/ in
  2053   ./ | .// | /cC/* | \
  2054   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2055   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2056   /usr/ucb/* ) ;;
  2057   *)
  2058     # OSF1 and SCO ODT 3.0 have their own names for install.
  2059     # Don't use installbsd from OSF since it installs stuff as root
  2060     # by default.
  2061     for ac_prog in ginstall scoinst install; do
  2062       for ac_exec_ext in '' $ac_executable_extensions; do
  2063 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2064 	  if test $ac_prog = install &&
  2065 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2066 	    # AIX install.  It has an incompatible calling convention.
  2068 	  elif test $ac_prog = install &&
  2069 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2070 	    # program-specific install script used by HP pwplus--don't use.
  2072 	  else
  2073 	    rm -rf conftest.one conftest.two conftest.dir
  2074 	    echo one > conftest.one
  2075 	    echo two > conftest.two
  2076 	    mkdir conftest.dir
  2077 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2078 	      test -s conftest.one && test -s conftest.two &&
  2079 	      test -s conftest.dir/conftest.one &&
  2080 	      test -s conftest.dir/conftest.two
  2081 	    then
  2082 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2083 	      break 3
  2084 	    fi
  2085 	  fi
  2086 	fi
  2087       done
  2088     done
  2089     ;;
  2090 esac
  2092 done
  2093 IFS=$as_save_IFS
  2095 rm -rf conftest.one conftest.two conftest.dir
  2097 fi
  2098   if test "${ac_cv_path_install+set}" = set; then
  2099     INSTALL=$ac_cv_path_install
  2100   else
  2101     # As a last resort, use the slow shell script.  Don't cache a
  2102     # value for INSTALL within a source directory, because that will
  2103     # break other packages using the cache if that directory is
  2104     # removed, or if the value is a relative name.
  2105     INSTALL=$ac_install_sh
  2106   fi
  2107 fi
  2108 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2109 $as_echo "$INSTALL" >&6; }
  2111 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2112 # It thinks the first close brace ends the variable substitution.
  2113 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2115 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2117 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2119 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2120 $as_echo_n "checking whether build environment is sane... " >&6; }
  2121 # Just in case
  2122 sleep 1
  2123 echo timestamp > conftest.file
  2124 # Do `set' in a subshell so we don't clobber the current shell's
  2125 # arguments.  Must try -L first in case configure is actually a
  2126 # symlink; some systems play weird games with the mod time of symlinks
  2127 # (eg FreeBSD returns the mod time of the symlink's containing
  2128 # directory).
  2129 if (
  2130    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2131    if test "$*" = "X"; then
  2132       # -L didn't work.
  2133       set X `ls -t $srcdir/configure conftest.file`
  2134    fi
  2135    rm -f conftest.file
  2136    if test "$*" != "X $srcdir/configure conftest.file" \
  2137       && test "$*" != "X conftest.file $srcdir/configure"; then
  2139       # If neither matched, then we have a broken ls.  This can happen
  2140       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2141       # broken ls alias from the environment.  This has actually
  2142       # happened.  Such a system could not be considered "sane".
  2143       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2144 alias in your environment" >&5
  2145 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2146 alias in your environment" >&2;}
  2147    { (exit 1); exit 1; }; }
  2148    fi
  2150    test "$2" = conftest.file
  2152 then
  2153    # Ok.
  2155 else
  2156    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2157 Check your system clock" >&5
  2158 $as_echo "$as_me: error: newly created file is older than distributed files!
  2159 Check your system clock" >&2;}
  2160    { (exit 1); exit 1; }; }
  2161 fi
  2162 { $as_echo "$as_me:$LINENO: result: yes" >&5
  2163 $as_echo "yes" >&6; }
  2164 test "$program_prefix" != NONE &&
  2165   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2166 # Use a double $ so make ignores it.
  2167 test "$program_suffix" != NONE &&
  2168   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2169 # Double any \ or $.
  2170 # By default was `s,x,x', remove it if useless.
  2171 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2172 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2174 # expand $ac_aux_dir to an absolute path
  2175 am_aux_dir=`cd $ac_aux_dir && pwd`
  2177 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2178 # Use eval to expand $SHELL
  2179 if eval "$MISSING --run true"; then
  2180   am_missing_run="$MISSING --run "
  2181 else
  2182   am_missing_run=
  2183   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2184 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2185 fi
  2187 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2188   # We used to keeping the `.' as first argument, in order to
  2189   # allow $(mkdir_p) to be used without argument.  As in
  2190   #   $(mkdir_p) $(somedir)
  2191   # where $(somedir) is conditionally defined.  However this is wrong
  2192   # for two reasons:
  2193   #  1. if the package is installed by a user who cannot write `.'
  2194   #     make install will fail,
  2195   #  2. the above comment should most certainly read
  2196   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2197   #     so it does not work when $(somedir) is undefined and
  2198   #     $(DESTDIR) is not.
  2199   #  To support the latter case, we have to write
  2200   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2201   #  so the `.' trick is pointless.
  2202   mkdir_p='mkdir -p --'
  2203 else
  2204   # On NextStep and OpenStep, the `mkdir' command does not
  2205   # recognize any option.  It will interpret all options as
  2206   # directories to create, and then abort because `.' already
  2207   # exists.
  2208   for d in ./-p ./--version;
  2209   do
  2210     test -d $d && rmdir $d
  2211   done
  2212   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2213   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2214     mkdir_p='$(mkinstalldirs)'
  2215   else
  2216     mkdir_p='$(install_sh) -d'
  2217   fi
  2218 fi
  2220 for ac_prog in gawk mawk nawk awk
  2221 do
  2222   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2223 set dummy $ac_prog; ac_word=$2
  2224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2225 $as_echo_n "checking for $ac_word... " >&6; }
  2226 if test "${ac_cv_prog_AWK+set}" = set; then
  2227   $as_echo_n "(cached) " >&6
  2228 else
  2229   if test -n "$AWK"; then
  2230   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2231 else
  2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2233 for as_dir in $PATH
  2234 do
  2235   IFS=$as_save_IFS
  2236   test -z "$as_dir" && as_dir=.
  2237   for ac_exec_ext in '' $ac_executable_extensions; do
  2238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2239     ac_cv_prog_AWK="$ac_prog"
  2240     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2241     break 2
  2242   fi
  2243 done
  2244 done
  2245 IFS=$as_save_IFS
  2247 fi
  2248 fi
  2249 AWK=$ac_cv_prog_AWK
  2250 if test -n "$AWK"; then
  2251   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2252 $as_echo "$AWK" >&6; }
  2253 else
  2254   { $as_echo "$as_me:$LINENO: result: no" >&5
  2255 $as_echo "no" >&6; }
  2256 fi
  2259   test -n "$AWK" && break
  2260 done
  2262 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2263 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2264 set x ${MAKE-make}
  2265 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2266 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2267   $as_echo_n "(cached) " >&6
  2268 else
  2269   cat >conftest.make <<\_ACEOF
  2270 SHELL = /bin/sh
  2271 all:
  2272 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2273 _ACEOF
  2274 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2275 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2276   *@@@%%%=?*=@@@%%%*)
  2277     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2278   *)
  2279     eval ac_cv_prog_make_${ac_make}_set=no;;
  2280 esac
  2281 rm -f conftest.make
  2282 fi
  2283 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2284   { $as_echo "$as_me:$LINENO: result: yes" >&5
  2285 $as_echo "yes" >&6; }
  2286   SET_MAKE=
  2287 else
  2288   { $as_echo "$as_me:$LINENO: result: no" >&5
  2289 $as_echo "no" >&6; }
  2290   SET_MAKE="MAKE=${MAKE-make}"
  2291 fi
  2293 rm -rf .tst 2>/dev/null
  2294 mkdir .tst 2>/dev/null
  2295 if test -d .tst; then
  2296   am__leading_dot=.
  2297 else
  2298   am__leading_dot=_
  2299 fi
  2300 rmdir .tst 2>/dev/null
  2302 # test to see if srcdir already configured
  2303 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2304    test -f $srcdir/config.status; then
  2305   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2306 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2307    { (exit 1); exit 1; }; }
  2308 fi
  2310 # test whether we have cygpath
  2311 if test -z "$CYGPATH_W"; then
  2312   if (cygpath --version) >/dev/null 2>/dev/null; then
  2313     CYGPATH_W='cygpath -w'
  2314   else
  2315     CYGPATH_W=echo
  2316   fi
  2317 fi
  2320 # Define the identity of the package.
  2321  PACKAGE=lxdream
  2322  VERSION=0.9.1
  2325 cat >>confdefs.h <<_ACEOF
  2326 #define PACKAGE "$PACKAGE"
  2327 _ACEOF
  2330 cat >>confdefs.h <<_ACEOF
  2331 #define VERSION "$VERSION"
  2332 _ACEOF
  2334 # Some tools Automake needs.
  2336 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2339 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2342 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2345 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2348 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2350 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2352 # Installed binaries are usually stripped using `strip' when the user
  2353 # run `make install-strip'.  However `strip' might not be the right
  2354 # tool to use in cross-compilation environments, therefore Automake
  2355 # will honor the `STRIP' environment variable to overrule this program.
  2356 if test "$cross_compiling" != no; then
  2357   if test -n "$ac_tool_prefix"; then
  2358   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2359 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2361 $as_echo_n "checking for $ac_word... " >&6; }
  2362 if test "${ac_cv_prog_STRIP+set}" = set; then
  2363   $as_echo_n "(cached) " >&6
  2364 else
  2365   if test -n "$STRIP"; then
  2366   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2367 else
  2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2369 for as_dir in $PATH
  2370 do
  2371   IFS=$as_save_IFS
  2372   test -z "$as_dir" && as_dir=.
  2373   for ac_exec_ext in '' $ac_executable_extensions; do
  2374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2375     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2376     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2377     break 2
  2378   fi
  2379 done
  2380 done
  2381 IFS=$as_save_IFS
  2383 fi
  2384 fi
  2385 STRIP=$ac_cv_prog_STRIP
  2386 if test -n "$STRIP"; then
  2387   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2388 $as_echo "$STRIP" >&6; }
  2389 else
  2390   { $as_echo "$as_me:$LINENO: result: no" >&5
  2391 $as_echo "no" >&6; }
  2392 fi
  2395 fi
  2396 if test -z "$ac_cv_prog_STRIP"; then
  2397   ac_ct_STRIP=$STRIP
  2398   # Extract the first word of "strip", so it can be a program name with args.
  2399 set dummy strip; ac_word=$2
  2400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2401 $as_echo_n "checking for $ac_word... " >&6; }
  2402 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2403   $as_echo_n "(cached) " >&6
  2404 else
  2405   if test -n "$ac_ct_STRIP"; then
  2406   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2407 else
  2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2409 for as_dir in $PATH
  2410 do
  2411   IFS=$as_save_IFS
  2412   test -z "$as_dir" && as_dir=.
  2413   for ac_exec_ext in '' $ac_executable_extensions; do
  2414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2415     ac_cv_prog_ac_ct_STRIP="strip"
  2416     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2417     break 2
  2418   fi
  2419 done
  2420 done
  2421 IFS=$as_save_IFS
  2423 fi
  2424 fi
  2425 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2426 if test -n "$ac_ct_STRIP"; then
  2427   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2428 $as_echo "$ac_ct_STRIP" >&6; }
  2429 else
  2430   { $as_echo "$as_me:$LINENO: result: no" >&5
  2431 $as_echo "no" >&6; }
  2432 fi
  2434   if test "x$ac_ct_STRIP" = x; then
  2435     STRIP=":"
  2436   else
  2437     case $cross_compiling:$ac_tool_warned in
  2438 yes:)
  2439 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2441 ac_tool_warned=yes ;;
  2442 esac
  2443     STRIP=$ac_ct_STRIP
  2444   fi
  2445 else
  2446   STRIP="$ac_cv_prog_STRIP"
  2447 fi
  2449 fi
  2450 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2452 # We need awk for the "check" target.  The system "awk" is bad on
  2453 # some platforms.
  2454 # Always define AMTAR for backward compatibility.
  2456 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2458 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2464 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2465 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2466     # Check whether --enable-maintainer-mode was given.
  2467 if test "${enable_maintainer_mode+set}" = set; then
  2468   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2469 else
  2470   USE_MAINTAINER_MODE=no
  2471 fi
  2473   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2474 $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2477 if test $USE_MAINTAINER_MODE = yes; then
  2478   MAINTAINER_MODE_TRUE=
  2479   MAINTAINER_MODE_FALSE='#'
  2480 else
  2481   MAINTAINER_MODE_TRUE='#'
  2482   MAINTAINER_MODE_FALSE=
  2483 fi
  2485   MAINT=$MAINTAINER_MODE_TRUE
  2488 ac_config_headers="$ac_config_headers config.h"
  2491 DEPDIR="${am__leading_dot}deps"
  2493 ac_config_commands="$ac_config_commands depfiles"
  2496 am_make=${MAKE-make}
  2497 cat > confinc << 'END'
  2498 am__doit:
  2499 	@echo done
  2500 .PHONY: am__doit
  2501 END
  2502 # If we don't find an include directive, just comment out the code.
  2503 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2504 $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2505 am__include="#"
  2506 am__quote=
  2507 _am_result=none
  2508 # First try GNU make style include.
  2509 echo "include confinc" > confmf
  2510 # We grep out `Entering directory' and `Leaving directory'
  2511 # messages which can occur if `w' ends up in MAKEFLAGS.
  2512 # In particular we don't look at `^make:' because GNU make might
  2513 # be invoked under some other name (usually "gmake"), in which
  2514 # case it prints its new name instead of `make'.
  2515 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2516    am__include=include
  2517    am__quote=
  2518    _am_result=GNU
  2519 fi
  2520 # Now try BSD make style include.
  2521 if test "$am__include" = "#"; then
  2522    echo '.include "confinc"' > confmf
  2523    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2524       am__include=.include
  2525       am__quote="\""
  2526       _am_result=BSD
  2527    fi
  2528 fi
  2531 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2532 $as_echo "$_am_result" >&6; }
  2533 rm -f confinc confmf
  2535 # Check whether --enable-dependency-tracking was given.
  2536 if test "${enable_dependency_tracking+set}" = set; then
  2537   enableval=$enable_dependency_tracking;
  2538 fi
  2540 if test "x$enable_dependency_tracking" != xno; then
  2541   am_depcomp="$ac_aux_dir/depcomp"
  2542   AMDEPBACKSLASH='\'
  2543 fi
  2546 if test "x$enable_dependency_tracking" != xno; then
  2547   AMDEP_TRUE=
  2548   AMDEP_FALSE='#'
  2549 else
  2550   AMDEP_TRUE='#'
  2551   AMDEP_FALSE=
  2552 fi
  2556 ac_ext=c
  2557 ac_cpp='$CPP $CPPFLAGS'
  2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2561 if test -n "$ac_tool_prefix"; then
  2562   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2563 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2565 $as_echo_n "checking for $ac_word... " >&6; }
  2566 if test "${ac_cv_prog_CC+set}" = set; then
  2567   $as_echo_n "(cached) " >&6
  2568 else
  2569   if test -n "$CC"; then
  2570   ac_cv_prog_CC="$CC" # Let the user override the test.
  2571 else
  2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2573 for as_dir in $PATH
  2574 do
  2575   IFS=$as_save_IFS
  2576   test -z "$as_dir" && as_dir=.
  2577   for ac_exec_ext in '' $ac_executable_extensions; do
  2578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2579     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2580     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2581     break 2
  2582   fi
  2583 done
  2584 done
  2585 IFS=$as_save_IFS
  2587 fi
  2588 fi
  2589 CC=$ac_cv_prog_CC
  2590 if test -n "$CC"; then
  2591   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2592 $as_echo "$CC" >&6; }
  2593 else
  2594   { $as_echo "$as_me:$LINENO: result: no" >&5
  2595 $as_echo "no" >&6; }
  2596 fi
  2599 fi
  2600 if test -z "$ac_cv_prog_CC"; then
  2601   ac_ct_CC=$CC
  2602   # Extract the first word of "gcc", so it can be a program name with args.
  2603 set dummy gcc; ac_word=$2
  2604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2605 $as_echo_n "checking for $ac_word... " >&6; }
  2606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2607   $as_echo_n "(cached) " >&6
  2608 else
  2609   if test -n "$ac_ct_CC"; then
  2610   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2611 else
  2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2613 for as_dir in $PATH
  2614 do
  2615   IFS=$as_save_IFS
  2616   test -z "$as_dir" && as_dir=.
  2617   for ac_exec_ext in '' $ac_executable_extensions; do
  2618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2619     ac_cv_prog_ac_ct_CC="gcc"
  2620     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2621     break 2
  2622   fi
  2623 done
  2624 done
  2625 IFS=$as_save_IFS
  2627 fi
  2628 fi
  2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2630 if test -n "$ac_ct_CC"; then
  2631   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2632 $as_echo "$ac_ct_CC" >&6; }
  2633 else
  2634   { $as_echo "$as_me:$LINENO: result: no" >&5
  2635 $as_echo "no" >&6; }
  2636 fi
  2638   if test "x$ac_ct_CC" = x; then
  2639     CC=""
  2640   else
  2641     case $cross_compiling:$ac_tool_warned in
  2642 yes:)
  2643 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2645 ac_tool_warned=yes ;;
  2646 esac
  2647     CC=$ac_ct_CC
  2648   fi
  2649 else
  2650   CC="$ac_cv_prog_CC"
  2651 fi
  2653 if test -z "$CC"; then
  2654           if test -n "$ac_tool_prefix"; then
  2655     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2656 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2658 $as_echo_n "checking for $ac_word... " >&6; }
  2659 if test "${ac_cv_prog_CC+set}" = set; then
  2660   $as_echo_n "(cached) " >&6
  2661 else
  2662   if test -n "$CC"; then
  2663   ac_cv_prog_CC="$CC" # Let the user override the test.
  2664 else
  2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2666 for as_dir in $PATH
  2667 do
  2668   IFS=$as_save_IFS
  2669   test -z "$as_dir" && as_dir=.
  2670   for ac_exec_ext in '' $ac_executable_extensions; do
  2671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2672     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2673     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2674     break 2
  2675   fi
  2676 done
  2677 done
  2678 IFS=$as_save_IFS
  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 fi
  2694 if test -z "$CC"; then
  2695   # Extract the first word of "cc", so it can be a program name with args.
  2696 set dummy cc; ac_word=$2
  2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2698 $as_echo_n "checking for $ac_word... " >&6; }
  2699 if test "${ac_cv_prog_CC+set}" = set; then
  2700   $as_echo_n "(cached) " >&6
  2701 else
  2702   if test -n "$CC"; then
  2703   ac_cv_prog_CC="$CC" # Let the user override the test.
  2704 else
  2705   ac_prog_rejected=no
  2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2707 for as_dir in $PATH
  2708 do
  2709   IFS=$as_save_IFS
  2710   test -z "$as_dir" && as_dir=.
  2711   for ac_exec_ext in '' $ac_executable_extensions; do
  2712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2713     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2714        ac_prog_rejected=yes
  2715        continue
  2716      fi
  2717     ac_cv_prog_CC="cc"
  2718     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2719     break 2
  2720   fi
  2721 done
  2722 done
  2723 IFS=$as_save_IFS
  2725 if test $ac_prog_rejected = yes; then
  2726   # We found a bogon in the path, so make sure we never use it.
  2727   set dummy $ac_cv_prog_CC
  2728   shift
  2729   if test $# != 0; then
  2730     # We chose a different compiler from the bogus one.
  2731     # However, it has the same basename, so the bogon will be chosen
  2732     # first if we set CC to just the basename; use the full file name.
  2733     shift
  2734     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2735   fi
  2736 fi
  2737 fi
  2738 fi
  2739 CC=$ac_cv_prog_CC
  2740 if test -n "$CC"; then
  2741   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2742 $as_echo "$CC" >&6; }
  2743 else
  2744   { $as_echo "$as_me:$LINENO: result: no" >&5
  2745 $as_echo "no" >&6; }
  2746 fi
  2749 fi
  2750 if test -z "$CC"; then
  2751   if test -n "$ac_tool_prefix"; then
  2752   for ac_prog in cl.exe
  2753   do
  2754     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2757 $as_echo_n "checking for $ac_word... " >&6; }
  2758 if test "${ac_cv_prog_CC+set}" = set; then
  2759   $as_echo_n "(cached) " >&6
  2760 else
  2761   if test -n "$CC"; then
  2762   ac_cv_prog_CC="$CC" # Let the user override the test.
  2763 else
  2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2765 for as_dir in $PATH
  2766 do
  2767   IFS=$as_save_IFS
  2768   test -z "$as_dir" && as_dir=.
  2769   for ac_exec_ext in '' $ac_executable_extensions; do
  2770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2771     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2772     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2773     break 2
  2774   fi
  2775 done
  2776 done
  2777 IFS=$as_save_IFS
  2779 fi
  2780 fi
  2781 CC=$ac_cv_prog_CC
  2782 if test -n "$CC"; then
  2783   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2784 $as_echo "$CC" >&6; }
  2785 else
  2786   { $as_echo "$as_me:$LINENO: result: no" >&5
  2787 $as_echo "no" >&6; }
  2788 fi
  2791     test -n "$CC" && break
  2792   done
  2793 fi
  2794 if test -z "$CC"; then
  2795   ac_ct_CC=$CC
  2796   for ac_prog in cl.exe
  2797 do
  2798   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2799 set dummy $ac_prog; ac_word=$2
  2800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2801 $as_echo_n "checking for $ac_word... " >&6; }
  2802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2803   $as_echo_n "(cached) " >&6
  2804 else
  2805   if test -n "$ac_ct_CC"; then
  2806   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2807 else
  2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2809 for as_dir in $PATH
  2810 do
  2811   IFS=$as_save_IFS
  2812   test -z "$as_dir" && as_dir=.
  2813   for ac_exec_ext in '' $ac_executable_extensions; do
  2814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2815     ac_cv_prog_ac_ct_CC="$ac_prog"
  2816     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2817     break 2
  2818   fi
  2819 done
  2820 done
  2821 IFS=$as_save_IFS
  2823 fi
  2824 fi
  2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2826 if test -n "$ac_ct_CC"; then
  2827   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2828 $as_echo "$ac_ct_CC" >&6; }
  2829 else
  2830   { $as_echo "$as_me:$LINENO: result: no" >&5
  2831 $as_echo "no" >&6; }
  2832 fi
  2835   test -n "$ac_ct_CC" && break
  2836 done
  2838   if test "x$ac_ct_CC" = x; then
  2839     CC=""
  2840   else
  2841     case $cross_compiling:$ac_tool_warned in
  2842 yes:)
  2843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2845 ac_tool_warned=yes ;;
  2846 esac
  2847     CC=$ac_ct_CC
  2848   fi
  2849 fi
  2851 fi
  2854 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2856 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2857 See \`config.log' for more details." >&5
  2858 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2859 See \`config.log' for more details." >&2;}
  2860    { (exit 1); exit 1; }; }; }
  2862 # Provide some information about the compiler.
  2863 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2864 set X $ac_compile
  2865 ac_compiler=$2
  2866 { (ac_try="$ac_compiler --version >&5"
  2867 case "(($ac_try" in
  2868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2869   *) ac_try_echo=$ac_try;;
  2870 esac
  2871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2872 $as_echo "$ac_try_echo") >&5
  2873   (eval "$ac_compiler --version >&5") 2>&5
  2874   ac_status=$?
  2875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2876   (exit $ac_status); }
  2877 { (ac_try="$ac_compiler -v >&5"
  2878 case "(($ac_try" in
  2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2880   *) ac_try_echo=$ac_try;;
  2881 esac
  2882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2883 $as_echo "$ac_try_echo") >&5
  2884   (eval "$ac_compiler -v >&5") 2>&5
  2885   ac_status=$?
  2886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2887   (exit $ac_status); }
  2888 { (ac_try="$ac_compiler -V >&5"
  2889 case "(($ac_try" in
  2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2891   *) ac_try_echo=$ac_try;;
  2892 esac
  2893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2894 $as_echo "$ac_try_echo") >&5
  2895   (eval "$ac_compiler -V >&5") 2>&5
  2896   ac_status=$?
  2897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2898   (exit $ac_status); }
  2900 cat >conftest.$ac_ext <<_ACEOF
  2901 /* confdefs.h.  */
  2902 _ACEOF
  2903 cat confdefs.h >>conftest.$ac_ext
  2904 cat >>conftest.$ac_ext <<_ACEOF
  2905 /* end confdefs.h.  */
  2907 int
  2908 main ()
  2912   return 0;
  2914 _ACEOF
  2915 ac_clean_files_save=$ac_clean_files
  2916 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2917 # Try to create an executable without -o first, disregard a.out.
  2918 # It will help us diagnose broken compilers, and finding out an intuition
  2919 # of exeext.
  2920 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2921 $as_echo_n "checking for C compiler default output file name... " >&6; }
  2922 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2924 # The possible output files:
  2925 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2927 ac_rmfiles=
  2928 for ac_file in $ac_files
  2929 do
  2930   case $ac_file in
  2931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2932     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2933   esac
  2934 done
  2935 rm -f $ac_rmfiles
  2937 if { (ac_try="$ac_link_default"
  2938 case "(($ac_try" in
  2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2940   *) ac_try_echo=$ac_try;;
  2941 esac
  2942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2943 $as_echo "$ac_try_echo") >&5
  2944   (eval "$ac_link_default") 2>&5
  2945   ac_status=$?
  2946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2947   (exit $ac_status); }; then
  2948   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2949 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2950 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2951 # so that the user can short-circuit this test for compilers unknown to
  2952 # Autoconf.
  2953 for ac_file in $ac_files ''
  2954 do
  2955   test -f "$ac_file" || continue
  2956   case $ac_file in
  2957     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2958 	;;
  2959     [ab].out )
  2960 	# We found the default executable, but exeext='' is most
  2961 	# certainly right.
  2962 	break;;
  2963     *.* )
  2964         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2965 	then :; else
  2966 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2967 	fi
  2968 	# We set ac_cv_exeext here because the later test for it is not
  2969 	# safe: cross compilers may not add the suffix if given an `-o'
  2970 	# argument, so we may need to know it at that point already.
  2971 	# Even if this section looks crufty: it has the advantage of
  2972 	# actually working.
  2973 	break;;
  2974     * )
  2975 	break;;
  2976   esac
  2977 done
  2978 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2980 else
  2981   ac_file=''
  2982 fi
  2984 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2985 $as_echo "$ac_file" >&6; }
  2986 if test -z "$ac_file"; then
  2987   $as_echo "$as_me: failed program was:" >&5
  2988 sed 's/^/| /' conftest.$ac_ext >&5
  2990 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2992 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2993 See \`config.log' for more details." >&5
  2994 $as_echo "$as_me: error: C compiler cannot create executables
  2995 See \`config.log' for more details." >&2;}
  2996    { (exit 77); exit 77; }; }; }
  2997 fi
  2999 ac_exeext=$ac_cv_exeext
  3001 # Check that the compiler produces executables we can run.  If not, either
  3002 # the compiler is broken, or we cross compile.
  3003 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3004 $as_echo_n "checking whether the C compiler works... " >&6; }
  3005 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3006 # If not cross compiling, check that we can run a simple program.
  3007 if test "$cross_compiling" != yes; then
  3008   if { ac_try='./$ac_file'
  3009   { (case "(($ac_try" in
  3010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3011   *) ac_try_echo=$ac_try;;
  3012 esac
  3013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3014 $as_echo "$ac_try_echo") >&5
  3015   (eval "$ac_try") 2>&5
  3016   ac_status=$?
  3017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3018   (exit $ac_status); }; }; then
  3019     cross_compiling=no
  3020   else
  3021     if test "$cross_compiling" = maybe; then
  3022 	cross_compiling=yes
  3023     else
  3024 	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3026 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3027 If you meant to cross compile, use \`--host'.
  3028 See \`config.log' for more details." >&5
  3029 $as_echo "$as_me: error: cannot run C compiled programs.
  3030 If you meant to cross compile, use \`--host'.
  3031 See \`config.log' for more details." >&2;}
  3032    { (exit 1); exit 1; }; }; }
  3033     fi
  3034   fi
  3035 fi
  3036 { $as_echo "$as_me:$LINENO: result: yes" >&5
  3037 $as_echo "yes" >&6; }
  3039 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3040 ac_clean_files=$ac_clean_files_save
  3041 # Check that the compiler produces executables we can run.  If not, either
  3042 # the compiler is broken, or we cross compile.
  3043 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3044 $as_echo_n "checking whether we are cross compiling... " >&6; }
  3045 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3046 $as_echo "$cross_compiling" >&6; }
  3048 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3049 $as_echo_n "checking for suffix of executables... " >&6; }
  3050 if { (ac_try="$ac_link"
  3051 case "(($ac_try" in
  3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3053   *) ac_try_echo=$ac_try;;
  3054 esac
  3055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3056 $as_echo "$ac_try_echo") >&5
  3057   (eval "$ac_link") 2>&5
  3058   ac_status=$?
  3059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3060   (exit $ac_status); }; then
  3061   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3062 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3063 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3064 # `rm'.
  3065 for ac_file in conftest.exe conftest conftest.*; do
  3066   test -f "$ac_file" || continue
  3067   case $ac_file in
  3068     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3069     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3070 	  break;;
  3071     * ) break;;
  3072   esac
  3073 done
  3074 else
  3075   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3077 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3078 See \`config.log' for more details." >&5
  3079 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3080 See \`config.log' for more details." >&2;}
  3081    { (exit 1); exit 1; }; }; }
  3082 fi
  3084 rm -f conftest$ac_cv_exeext
  3085 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3086 $as_echo "$ac_cv_exeext" >&6; }
  3088 rm -f conftest.$ac_ext
  3089 EXEEXT=$ac_cv_exeext
  3090 ac_exeext=$EXEEXT
  3091 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3092 $as_echo_n "checking for suffix of object files... " >&6; }
  3093 if test "${ac_cv_objext+set}" = set; then
  3094   $as_echo_n "(cached) " >&6
  3095 else
  3096   cat >conftest.$ac_ext <<_ACEOF
  3097 /* confdefs.h.  */
  3098 _ACEOF
  3099 cat confdefs.h >>conftest.$ac_ext
  3100 cat >>conftest.$ac_ext <<_ACEOF
  3101 /* end confdefs.h.  */
  3103 int
  3104 main ()
  3108   return 0;
  3110 _ACEOF
  3111 rm -f conftest.o conftest.obj
  3112 if { (ac_try="$ac_compile"
  3113 case "(($ac_try" in
  3114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3115   *) ac_try_echo=$ac_try;;
  3116 esac
  3117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3118 $as_echo "$ac_try_echo") >&5
  3119   (eval "$ac_compile") 2>&5
  3120   ac_status=$?
  3121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3122   (exit $ac_status); }; then
  3123   for ac_file in conftest.o conftest.obj conftest.*; do
  3124   test -f "$ac_file" || continue;
  3125   case $ac_file in
  3126     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3127     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3128        break;;
  3129   esac
  3130 done
  3131 else
  3132   $as_echo "$as_me: failed program was:" >&5
  3133 sed 's/^/| /' conftest.$ac_ext >&5
  3135 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3137 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3138 See \`config.log' for more details." >&5
  3139 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3140 See \`config.log' for more details." >&2;}
  3141    { (exit 1); exit 1; }; }; }
  3142 fi
  3144 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3145 fi
  3146 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3147 $as_echo "$ac_cv_objext" >&6; }
  3148 OBJEXT=$ac_cv_objext
  3149 ac_objext=$OBJEXT
  3150 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3151 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3152 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3153   $as_echo_n "(cached) " >&6
  3154 else
  3155   cat >conftest.$ac_ext <<_ACEOF
  3156 /* confdefs.h.  */
  3157 _ACEOF
  3158 cat confdefs.h >>conftest.$ac_ext
  3159 cat >>conftest.$ac_ext <<_ACEOF
  3160 /* end confdefs.h.  */
  3162 int
  3163 main ()
  3165 #ifndef __GNUC__
  3166        choke me
  3167 #endif
  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_compiler_gnu=yes
  3192 else
  3193   $as_echo "$as_me: failed program was:" >&5
  3194 sed 's/^/| /' conftest.$ac_ext >&5
  3196 	ac_compiler_gnu=no
  3197 fi
  3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3202 fi
  3203 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3205 if test $ac_compiler_gnu = yes; then
  3206   GCC=yes
  3207 else
  3208   GCC=
  3209 fi
  3210 ac_test_CFLAGS=${CFLAGS+set}
  3211 ac_save_CFLAGS=$CFLAGS
  3212 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3214 if test "${ac_cv_prog_cc_g+set}" = set; then
  3215   $as_echo_n "(cached) " >&6
  3216 else
  3217   ac_save_c_werror_flag=$ac_c_werror_flag
  3218    ac_c_werror_flag=yes
  3219    ac_cv_prog_cc_g=no
  3220    CFLAGS="-g"
  3221    cat >conftest.$ac_ext <<_ACEOF
  3222 /* confdefs.h.  */
  3223 _ACEOF
  3224 cat confdefs.h >>conftest.$ac_ext
  3225 cat >>conftest.$ac_ext <<_ACEOF
  3226 /* end confdefs.h.  */
  3228 int
  3229 main ()
  3233   return 0;
  3235 _ACEOF
  3236 rm -f conftest.$ac_objext
  3237 if { (ac_try="$ac_compile"
  3238 case "(($ac_try" in
  3239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3240   *) ac_try_echo=$ac_try;;
  3241 esac
  3242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3243 $as_echo "$ac_try_echo") >&5
  3244   (eval "$ac_compile") 2>conftest.er1
  3245   ac_status=$?
  3246   grep -v '^ *+' conftest.er1 >conftest.err
  3247   rm -f conftest.er1
  3248   cat conftest.err >&5
  3249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3250   (exit $ac_status); } && {
  3251 	 test -z "$ac_c_werror_flag" ||
  3252 	 test ! -s conftest.err
  3253        } && test -s conftest.$ac_objext; then
  3254   ac_cv_prog_cc_g=yes
  3255 else
  3256   $as_echo "$as_me: failed program was:" >&5
  3257 sed 's/^/| /' conftest.$ac_ext >&5
  3259 	CFLAGS=""
  3260       cat >conftest.$ac_ext <<_ACEOF
  3261 /* confdefs.h.  */
  3262 _ACEOF
  3263 cat confdefs.h >>conftest.$ac_ext
  3264 cat >>conftest.$ac_ext <<_ACEOF
  3265 /* end confdefs.h.  */
  3267 int
  3268 main ()
  3272   return 0;
  3274 _ACEOF
  3275 rm -f conftest.$ac_objext
  3276 if { (ac_try="$ac_compile"
  3277 case "(($ac_try" in
  3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3279   *) ac_try_echo=$ac_try;;
  3280 esac
  3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3282 $as_echo "$ac_try_echo") >&5
  3283   (eval "$ac_compile") 2>conftest.er1
  3284   ac_status=$?
  3285   grep -v '^ *+' conftest.er1 >conftest.err
  3286   rm -f conftest.er1
  3287   cat conftest.err >&5
  3288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3289   (exit $ac_status); } && {
  3290 	 test -z "$ac_c_werror_flag" ||
  3291 	 test ! -s conftest.err
  3292        } && test -s conftest.$ac_objext; then
  3294 else
  3295   $as_echo "$as_me: failed program was:" >&5
  3296 sed 's/^/| /' conftest.$ac_ext >&5
  3298 	ac_c_werror_flag=$ac_save_c_werror_flag
  3299 	 CFLAGS="-g"
  3300 	 cat >conftest.$ac_ext <<_ACEOF
  3301 /* confdefs.h.  */
  3302 _ACEOF
  3303 cat confdefs.h >>conftest.$ac_ext
  3304 cat >>conftest.$ac_ext <<_ACEOF
  3305 /* end confdefs.h.  */
  3307 int
  3308 main ()
  3312   return 0;
  3314 _ACEOF
  3315 rm -f conftest.$ac_objext
  3316 if { (ac_try="$ac_compile"
  3317 case "(($ac_try" in
  3318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3319   *) ac_try_echo=$ac_try;;
  3320 esac
  3321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3322 $as_echo "$ac_try_echo") >&5
  3323   (eval "$ac_compile") 2>conftest.er1
  3324   ac_status=$?
  3325   grep -v '^ *+' conftest.er1 >conftest.err
  3326   rm -f conftest.er1
  3327   cat conftest.err >&5
  3328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3329   (exit $ac_status); } && {
  3330 	 test -z "$ac_c_werror_flag" ||
  3331 	 test ! -s conftest.err
  3332        } && test -s conftest.$ac_objext; then
  3333   ac_cv_prog_cc_g=yes
  3334 else
  3335   $as_echo "$as_me: failed program was:" >&5
  3336 sed 's/^/| /' conftest.$ac_ext >&5
  3339 fi
  3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3342 fi
  3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3345 fi
  3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3348    ac_c_werror_flag=$ac_save_c_werror_flag
  3349 fi
  3350 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3351 $as_echo "$ac_cv_prog_cc_g" >&6; }
  3352 if test "$ac_test_CFLAGS" = set; then
  3353   CFLAGS=$ac_save_CFLAGS
  3354 elif test $ac_cv_prog_cc_g = yes; then
  3355   if test "$GCC" = yes; then
  3356     CFLAGS="-g -O2"
  3357   else
  3358     CFLAGS="-g"
  3359   fi
  3360 else
  3361   if test "$GCC" = yes; then
  3362     CFLAGS="-O2"
  3363   else
  3364     CFLAGS=
  3365   fi
  3366 fi
  3367 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3368 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3369 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3370   $as_echo_n "(cached) " >&6
  3371 else
  3372   ac_cv_prog_cc_c89=no
  3373 ac_save_CC=$CC
  3374 cat >conftest.$ac_ext <<_ACEOF
  3375 /* confdefs.h.  */
  3376 _ACEOF
  3377 cat confdefs.h >>conftest.$ac_ext
  3378 cat >>conftest.$ac_ext <<_ACEOF
  3379 /* end confdefs.h.  */
  3380 #include <stdarg.h>
  3381 #include <stdio.h>
  3382 #include <sys/types.h>
  3383 #include <sys/stat.h>
  3384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3385 struct buf { int x; };
  3386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3387 static char *e (p, i)
  3388      char **p;
  3389      int i;
  3391   return p[i];
  3393 static char *f (char * (*g) (char **, int), char **p, ...)
  3395   char *s;
  3396   va_list v;
  3397   va_start (v,p);
  3398   s = g (p, va_arg (v,int));
  3399   va_end (v);
  3400   return s;
  3403 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3404    function prototypes and stuff, but not '\xHH' hex character constants.
  3405    These don't provoke an error unfortunately, instead are silently treated
  3406    as 'x'.  The following induces an error, until -std is added to get
  3407    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3408    array size at least.  It's necessary to write '\x00'==0 to get something
  3409    that's true only with -std.  */
  3410 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3412 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3413    inside strings and character constants.  */
  3414 #define FOO(x) 'x'
  3415 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3417 int test (int i, double x);
  3418 struct s1 {int (*f) (int a);};
  3419 struct s2 {int (*f) (double a);};
  3420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3421 int argc;
  3422 char **argv;
  3423 int
  3424 main ()
  3426 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3428   return 0;
  3430 _ACEOF
  3431 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3432 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3433 do
  3434   CC="$ac_save_CC $ac_arg"
  3435   rm -f conftest.$ac_objext
  3436 if { (ac_try="$ac_compile"
  3437 case "(($ac_try" in
  3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3439   *) ac_try_echo=$ac_try;;
  3440 esac
  3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3442 $as_echo "$ac_try_echo") >&5
  3443   (eval "$ac_compile") 2>conftest.er1
  3444   ac_status=$?
  3445   grep -v '^ *+' conftest.er1 >conftest.err
  3446   rm -f conftest.er1
  3447   cat conftest.err >&5
  3448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3449   (exit $ac_status); } && {
  3450 	 test -z "$ac_c_werror_flag" ||
  3451 	 test ! -s conftest.err
  3452        } && test -s conftest.$ac_objext; then
  3453   ac_cv_prog_cc_c89=$ac_arg
  3454 else
  3455   $as_echo "$as_me: failed program was:" >&5
  3456 sed 's/^/| /' conftest.$ac_ext >&5
  3459 fi
  3461 rm -f core conftest.err conftest.$ac_objext
  3462   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3463 done
  3464 rm -f conftest.$ac_ext
  3465 CC=$ac_save_CC
  3467 fi
  3468 # AC_CACHE_VAL
  3469 case "x$ac_cv_prog_cc_c89" in
  3470   x)
  3471     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3472 $as_echo "none needed" >&6; } ;;
  3473   xno)
  3474     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3475 $as_echo "unsupported" >&6; } ;;
  3476   *)
  3477     CC="$CC $ac_cv_prog_cc_c89"
  3478     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3479 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3480 esac
  3483 ac_ext=c
  3484 ac_cpp='$CPP $CPPFLAGS'
  3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3489 depcc="$CC"   am_compiler_list=
  3491 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3492 $as_echo_n "checking dependency style of $depcc... " >&6; }
  3493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3494   $as_echo_n "(cached) " >&6
  3495 else
  3496   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3497   # We make a subdir and do the tests there.  Otherwise we can end up
  3498   # making bogus files that we don't know about and never remove.  For
  3499   # instance it was reported that on HP-UX the gcc test will end up
  3500   # making a dummy file named `D' -- because `-MD' means `put the output
  3501   # in D'.
  3502   mkdir conftest.dir
  3503   # Copy depcomp to subdir because otherwise we won't find it if we're
  3504   # using a relative directory.
  3505   cp "$am_depcomp" conftest.dir
  3506   cd conftest.dir
  3507   # We will build objects and dependencies in a subdirectory because
  3508   # it helps to detect inapplicable dependency modes.  For instance
  3509   # both Tru64's cc and ICC support -MD to output dependencies as a
  3510   # side effect of compilation, but ICC will put the dependencies in
  3511   # the current directory while Tru64 will put them in the object
  3512   # directory.
  3513   mkdir sub
  3515   am_cv_CC_dependencies_compiler_type=none
  3516   if test "$am_compiler_list" = ""; then
  3517      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3518   fi
  3519   for depmode in $am_compiler_list; do
  3520     # Setup a source with many dependencies, because some compilers
  3521     # like to wrap large dependency lists on column 80 (with \), and
  3522     # we should not choose a depcomp mode which is confused by this.
  3524     # We need to recreate these files for each test, as the compiler may
  3525     # overwrite some of them when testing with obscure command lines.
  3526     # This happens at least with the AIX C compiler.
  3527     : > sub/conftest.c
  3528     for i in 1 2 3 4 5 6; do
  3529       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3530       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3531       # Solaris 8's {/usr,}/bin/sh.
  3532       touch sub/conftst$i.h
  3533     done
  3534     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3536     case $depmode in
  3537     nosideeffect)
  3538       # after this tag, mechanisms are not by side-effect, so they'll
  3539       # only be used when explicitly requested
  3540       if test "x$enable_dependency_tracking" = xyes; then
  3541 	continue
  3542       else
  3543 	break
  3544       fi
  3545       ;;
  3546     none) break ;;
  3547     esac
  3548     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3549     # mode.  It turns out that the SunPro C++ compiler does not properly
  3550     # handle `-M -o', and we need to detect this.
  3551     if depmode=$depmode \
  3552        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3553        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3554        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3555          >/dev/null 2>conftest.err &&
  3556        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3557        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3558        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3559       # icc doesn't choke on unknown options, it will just issue warnings
  3560       # or remarks (even with -Werror).  So we grep stderr for any message
  3561       # that says an option was ignored or not supported.
  3562       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3563       #   icc: Command line warning: ignoring option '-M'; no argument required
  3564       # The diagnosis changed in icc 8.0:
  3565       #   icc: Command line remark: option '-MP' not supported
  3566       if (grep 'ignoring option' conftest.err ||
  3567           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3568         am_cv_CC_dependencies_compiler_type=$depmode
  3569         break
  3570       fi
  3571     fi
  3572   done
  3574   cd ..
  3575   rm -rf conftest.dir
  3576 else
  3577   am_cv_CC_dependencies_compiler_type=none
  3578 fi
  3580 fi
  3581 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3582 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3583 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3587 if
  3588   test "x$enable_dependency_tracking" != xno \
  3589   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3590   am__fastdepCC_TRUE=
  3591   am__fastdepCC_FALSE='#'
  3592 else
  3593   am__fastdepCC_TRUE='#'
  3594   am__fastdepCC_FALSE=
  3595 fi
  3600         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3601 $as_echo_n "checking for strerror in -lcposix... " >&6; }
  3602 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3603   $as_echo_n "(cached) " >&6
  3604 else
  3605   ac_check_lib_save_LIBS=$LIBS
  3606 LIBS="-lcposix  $LIBS"
  3607 cat >conftest.$ac_ext <<_ACEOF
  3608 /* confdefs.h.  */
  3609 _ACEOF
  3610 cat confdefs.h >>conftest.$ac_ext
  3611 cat >>conftest.$ac_ext <<_ACEOF
  3612 /* end confdefs.h.  */
  3614 /* Override any GCC internal prototype to avoid an error.
  3615    Use char because int might match the return type of a GCC
  3616    builtin and then its argument prototype would still apply.  */
  3617 #ifdef __cplusplus
  3618 extern "C"
  3619 #endif
  3620 char strerror ();
  3621 int
  3622 main ()
  3624 return strerror ();
  3626   return 0;
  3628 _ACEOF
  3629 rm -f conftest.$ac_objext conftest$ac_exeext
  3630 if { (ac_try="$ac_link"
  3631 case "(($ac_try" in
  3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3633   *) ac_try_echo=$ac_try;;
  3634 esac
  3635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3636 $as_echo "$ac_try_echo") >&5
  3637   (eval "$ac_link") 2>conftest.er1
  3638   ac_status=$?
  3639   grep -v '^ *+' conftest.er1 >conftest.err
  3640   rm -f conftest.er1
  3641   cat conftest.err >&5
  3642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3643   (exit $ac_status); } && {
  3644 	 test -z "$ac_c_werror_flag" ||
  3645 	 test ! -s conftest.err
  3646        } && test -s conftest$ac_exeext && {
  3647 	 test "$cross_compiling" = yes ||
  3648 	 $as_test_x conftest$ac_exeext
  3649        }; then
  3650   ac_cv_lib_cposix_strerror=yes
  3651 else
  3652   $as_echo "$as_me: failed program was:" >&5
  3653 sed 's/^/| /' conftest.$ac_ext >&5
  3655 	ac_cv_lib_cposix_strerror=no
  3656 fi
  3658 rm -rf conftest.dSYM
  3659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3660       conftest$ac_exeext conftest.$ac_ext
  3661 LIBS=$ac_check_lib_save_LIBS
  3662 fi
  3663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3664 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3665 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
  3666   LIBS="$LIBS -lcposix"
  3667 fi
  3671 ac_ext=c
  3672 ac_cpp='$CPP $CPPFLAGS'
  3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3676 if test -n "$ac_tool_prefix"; then
  3677   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3680 $as_echo_n "checking for $ac_word... " >&6; }
  3681 if test "${ac_cv_prog_CC+set}" = set; then
  3682   $as_echo_n "(cached) " >&6
  3683 else
  3684   if test -n "$CC"; then
  3685   ac_cv_prog_CC="$CC" # Let the user override the test.
  3686 else
  3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3688 for as_dir in $PATH
  3689 do
  3690   IFS=$as_save_IFS
  3691   test -z "$as_dir" && as_dir=.
  3692   for ac_exec_ext in '' $ac_executable_extensions; do
  3693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3694     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3695     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3696     break 2
  3697   fi
  3698 done
  3699 done
  3700 IFS=$as_save_IFS
  3702 fi
  3703 fi
  3704 CC=$ac_cv_prog_CC
  3705 if test -n "$CC"; then
  3706   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3707 $as_echo "$CC" >&6; }
  3708 else
  3709   { $as_echo "$as_me:$LINENO: result: no" >&5
  3710 $as_echo "no" >&6; }
  3711 fi
  3714 fi
  3715 if test -z "$ac_cv_prog_CC"; then
  3716   ac_ct_CC=$CC
  3717   # Extract the first word of "gcc", so it can be a program name with args.
  3718 set dummy gcc; ac_word=$2
  3719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3720 $as_echo_n "checking for $ac_word... " >&6; }
  3721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3722   $as_echo_n "(cached) " >&6
  3723 else
  3724   if test -n "$ac_ct_CC"; then
  3725   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3726 else
  3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3728 for as_dir in $PATH
  3729 do
  3730   IFS=$as_save_IFS
  3731   test -z "$as_dir" && as_dir=.
  3732   for ac_exec_ext in '' $ac_executable_extensions; do
  3733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3734     ac_cv_prog_ac_ct_CC="gcc"
  3735     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3736     break 2
  3737   fi
  3738 done
  3739 done
  3740 IFS=$as_save_IFS
  3742 fi
  3743 fi
  3744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3745 if test -n "$ac_ct_CC"; then
  3746   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3747 $as_echo "$ac_ct_CC" >&6; }
  3748 else
  3749   { $as_echo "$as_me:$LINENO: result: no" >&5
  3750 $as_echo "no" >&6; }
  3751 fi
  3753   if test "x$ac_ct_CC" = x; then
  3754     CC=""
  3755   else
  3756     case $cross_compiling:$ac_tool_warned in
  3757 yes:)
  3758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3760 ac_tool_warned=yes ;;
  3761 esac
  3762     CC=$ac_ct_CC
  3763   fi
  3764 else
  3765   CC="$ac_cv_prog_CC"
  3766 fi
  3768 if test -z "$CC"; then
  3769           if test -n "$ac_tool_prefix"; then
  3770     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3771 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3773 $as_echo_n "checking for $ac_word... " >&6; }
  3774 if test "${ac_cv_prog_CC+set}" = set; then
  3775   $as_echo_n "(cached) " >&6
  3776 else
  3777   if test -n "$CC"; then
  3778   ac_cv_prog_CC="$CC" # Let the user override the test.
  3779 else
  3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3781 for as_dir in $PATH
  3782 do
  3783   IFS=$as_save_IFS
  3784   test -z "$as_dir" && as_dir=.
  3785   for ac_exec_ext in '' $ac_executable_extensions; do
  3786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3787     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3788     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3789     break 2
  3790   fi
  3791 done
  3792 done
  3793 IFS=$as_save_IFS
  3795 fi
  3796 fi
  3797 CC=$ac_cv_prog_CC
  3798 if test -n "$CC"; then
  3799   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3800 $as_echo "$CC" >&6; }
  3801 else
  3802   { $as_echo "$as_me:$LINENO: result: no" >&5
  3803 $as_echo "no" >&6; }
  3804 fi
  3807   fi
  3808 fi
  3809 if test -z "$CC"; then
  3810   # Extract the first word of "cc", so it can be a program name with args.
  3811 set dummy cc; 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   ac_prog_rejected=no
  3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3822 for as_dir in $PATH
  3823 do
  3824   IFS=$as_save_IFS
  3825   test -z "$as_dir" && as_dir=.
  3826   for ac_exec_ext in '' $ac_executable_extensions; do
  3827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3828     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3829        ac_prog_rejected=yes
  3830        continue
  3831      fi
  3832     ac_cv_prog_CC="cc"
  3833     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3834     break 2
  3835   fi
  3836 done
  3837 done
  3838 IFS=$as_save_IFS
  3840 if test $ac_prog_rejected = yes; then
  3841   # We found a bogon in the path, so make sure we never use it.
  3842   set dummy $ac_cv_prog_CC
  3843   shift
  3844   if test $# != 0; then
  3845     # We chose a different compiler from the bogus one.
  3846     # However, it has the same basename, so the bogon will be chosen
  3847     # first if we set CC to just the basename; use the full file name.
  3848     shift
  3849     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3850   fi
  3851 fi
  3852 fi
  3853 fi
  3854 CC=$ac_cv_prog_CC
  3855 if test -n "$CC"; then
  3856   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3857 $as_echo "$CC" >&6; }
  3858 else
  3859   { $as_echo "$as_me:$LINENO: result: no" >&5
  3860 $as_echo "no" >&6; }
  3861 fi
  3864 fi
  3865 if test -z "$CC"; then
  3866   if test -n "$ac_tool_prefix"; then
  3867   for ac_prog in cl.exe
  3868   do
  3869     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3872 $as_echo_n "checking for $ac_word... " >&6; }
  3873 if test "${ac_cv_prog_CC+set}" = set; then
  3874   $as_echo_n "(cached) " >&6
  3875 else
  3876   if test -n "$CC"; then
  3877   ac_cv_prog_CC="$CC" # Let the user override the test.
  3878 else
  3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3880 for as_dir in $PATH
  3881 do
  3882   IFS=$as_save_IFS
  3883   test -z "$as_dir" && as_dir=.
  3884   for ac_exec_ext in '' $ac_executable_extensions; do
  3885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3886     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3887     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3888     break 2
  3889   fi
  3890 done
  3891 done
  3892 IFS=$as_save_IFS
  3894 fi
  3895 fi
  3896 CC=$ac_cv_prog_CC
  3897 if test -n "$CC"; then
  3898   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3899 $as_echo "$CC" >&6; }
  3900 else
  3901   { $as_echo "$as_me:$LINENO: result: no" >&5
  3902 $as_echo "no" >&6; }
  3903 fi
  3906     test -n "$CC" && break
  3907   done
  3908 fi
  3909 if test -z "$CC"; then
  3910   ac_ct_CC=$CC
  3911   for ac_prog in cl.exe
  3912 do
  3913   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3914 set dummy $ac_prog; ac_word=$2
  3915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3916 $as_echo_n "checking for $ac_word... " >&6; }
  3917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3918   $as_echo_n "(cached) " >&6
  3919 else
  3920   if test -n "$ac_ct_CC"; then
  3921   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3922 else
  3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3924 for as_dir in $PATH
  3925 do
  3926   IFS=$as_save_IFS
  3927   test -z "$as_dir" && as_dir=.
  3928   for ac_exec_ext in '' $ac_executable_extensions; do
  3929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3930     ac_cv_prog_ac_ct_CC="$ac_prog"
  3931     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3932     break 2
  3933   fi
  3934 done
  3935 done
  3936 IFS=$as_save_IFS
  3938 fi
  3939 fi
  3940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3941 if test -n "$ac_ct_CC"; then
  3942   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3943 $as_echo "$ac_ct_CC" >&6; }
  3944 else
  3945   { $as_echo "$as_me:$LINENO: result: no" >&5
  3946 $as_echo "no" >&6; }
  3947 fi
  3950   test -n "$ac_ct_CC" && break
  3951 done
  3953   if test "x$ac_ct_CC" = x; then
  3954     CC=""
  3955   else
  3956     case $cross_compiling:$ac_tool_warned in
  3957 yes:)
  3958 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3960 ac_tool_warned=yes ;;
  3961 esac
  3962     CC=$ac_ct_CC
  3963   fi
  3964 fi
  3966 fi
  3969 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3971 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3972 See \`config.log' for more details." >&5
  3973 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3974 See \`config.log' for more details." >&2;}
  3975    { (exit 1); exit 1; }; }; }
  3977 # Provide some information about the compiler.
  3978 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3979 set X $ac_compile
  3980 ac_compiler=$2
  3981 { (ac_try="$ac_compiler --version >&5"
  3982 case "(($ac_try" in
  3983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3984   *) ac_try_echo=$ac_try;;
  3985 esac
  3986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3987 $as_echo "$ac_try_echo") >&5
  3988   (eval "$ac_compiler --version >&5") 2>&5
  3989   ac_status=$?
  3990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3991   (exit $ac_status); }
  3992 { (ac_try="$ac_compiler -v >&5"
  3993 case "(($ac_try" in
  3994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3995   *) ac_try_echo=$ac_try;;
  3996 esac
  3997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3998 $as_echo "$ac_try_echo") >&5
  3999   (eval "$ac_compiler -v >&5") 2>&5
  4000   ac_status=$?
  4001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4002   (exit $ac_status); }
  4003 { (ac_try="$ac_compiler -V >&5"
  4004 case "(($ac_try" in
  4005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4006   *) ac_try_echo=$ac_try;;
  4007 esac
  4008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4009 $as_echo "$ac_try_echo") >&5
  4010   (eval "$ac_compiler -V >&5") 2>&5
  4011   ac_status=$?
  4012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4013   (exit $ac_status); }
  4015 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4016 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4018   $as_echo_n "(cached) " >&6
  4019 else
  4020   cat >conftest.$ac_ext <<_ACEOF
  4021 /* confdefs.h.  */
  4022 _ACEOF
  4023 cat confdefs.h >>conftest.$ac_ext
  4024 cat >>conftest.$ac_ext <<_ACEOF
  4025 /* end confdefs.h.  */
  4027 int
  4028 main ()
  4030 #ifndef __GNUC__
  4031        choke me
  4032 #endif
  4035   return 0;
  4037 _ACEOF
  4038 rm -f conftest.$ac_objext
  4039 if { (ac_try="$ac_compile"
  4040 case "(($ac_try" in
  4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4042   *) ac_try_echo=$ac_try;;
  4043 esac
  4044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4045 $as_echo "$ac_try_echo") >&5
  4046   (eval "$ac_compile") 2>conftest.er1
  4047   ac_status=$?
  4048   grep -v '^ *+' conftest.er1 >conftest.err
  4049   rm -f conftest.er1
  4050   cat conftest.err >&5
  4051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4052   (exit $ac_status); } && {
  4053 	 test -z "$ac_c_werror_flag" ||
  4054 	 test ! -s conftest.err
  4055        } && test -s conftest.$ac_objext; then
  4056   ac_compiler_gnu=yes
  4057 else
  4058   $as_echo "$as_me: failed program was:" >&5
  4059 sed 's/^/| /' conftest.$ac_ext >&5
  4061 	ac_compiler_gnu=no
  4062 fi
  4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4067 fi
  4068 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4070 if test $ac_compiler_gnu = yes; then
  4071   GCC=yes
  4072 else
  4073   GCC=
  4074 fi
  4075 ac_test_CFLAGS=${CFLAGS+set}
  4076 ac_save_CFLAGS=$CFLAGS
  4077 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4079 if test "${ac_cv_prog_cc_g+set}" = set; then
  4080   $as_echo_n "(cached) " >&6
  4081 else
  4082   ac_save_c_werror_flag=$ac_c_werror_flag
  4083    ac_c_werror_flag=yes
  4084    ac_cv_prog_cc_g=no
  4085    CFLAGS="-g"
  4086    cat >conftest.$ac_ext <<_ACEOF
  4087 /* confdefs.h.  */
  4088 _ACEOF
  4089 cat confdefs.h >>conftest.$ac_ext
  4090 cat >>conftest.$ac_ext <<_ACEOF
  4091 /* end confdefs.h.  */
  4093 int
  4094 main ()
  4098   return 0;
  4100 _ACEOF
  4101 rm -f conftest.$ac_objext
  4102 if { (ac_try="$ac_compile"
  4103 case "(($ac_try" in
  4104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4105   *) ac_try_echo=$ac_try;;
  4106 esac
  4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4108 $as_echo "$ac_try_echo") >&5
  4109   (eval "$ac_compile") 2>conftest.er1
  4110   ac_status=$?
  4111   grep -v '^ *+' conftest.er1 >conftest.err
  4112   rm -f conftest.er1
  4113   cat conftest.err >&5
  4114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4115   (exit $ac_status); } && {
  4116 	 test -z "$ac_c_werror_flag" ||
  4117 	 test ! -s conftest.err
  4118        } && test -s conftest.$ac_objext; then
  4119   ac_cv_prog_cc_g=yes
  4120 else
  4121   $as_echo "$as_me: failed program was:" >&5
  4122 sed 's/^/| /' conftest.$ac_ext >&5
  4124 	CFLAGS=""
  4125       cat >conftest.$ac_ext <<_ACEOF
  4126 /* confdefs.h.  */
  4127 _ACEOF
  4128 cat confdefs.h >>conftest.$ac_ext
  4129 cat >>conftest.$ac_ext <<_ACEOF
  4130 /* end confdefs.h.  */
  4132 int
  4133 main ()
  4137   return 0;
  4139 _ACEOF
  4140 rm -f conftest.$ac_objext
  4141 if { (ac_try="$ac_compile"
  4142 case "(($ac_try" in
  4143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4144   *) ac_try_echo=$ac_try;;
  4145 esac
  4146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4147 $as_echo "$ac_try_echo") >&5
  4148   (eval "$ac_compile") 2>conftest.er1
  4149   ac_status=$?
  4150   grep -v '^ *+' conftest.er1 >conftest.err
  4151   rm -f conftest.er1
  4152   cat conftest.err >&5
  4153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4154   (exit $ac_status); } && {
  4155 	 test -z "$ac_c_werror_flag" ||
  4156 	 test ! -s conftest.err
  4157        } && test -s conftest.$ac_objext; then
  4159 else
  4160   $as_echo "$as_me: failed program was:" >&5
  4161 sed 's/^/| /' conftest.$ac_ext >&5
  4163 	ac_c_werror_flag=$ac_save_c_werror_flag
  4164 	 CFLAGS="-g"
  4165 	 cat >conftest.$ac_ext <<_ACEOF
  4166 /* confdefs.h.  */
  4167 _ACEOF
  4168 cat confdefs.h >>conftest.$ac_ext
  4169 cat >>conftest.$ac_ext <<_ACEOF
  4170 /* end confdefs.h.  */
  4172 int
  4173 main ()
  4177   return 0;
  4179 _ACEOF
  4180 rm -f conftest.$ac_objext
  4181 if { (ac_try="$ac_compile"
  4182 case "(($ac_try" in
  4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4184   *) ac_try_echo=$ac_try;;
  4185 esac
  4186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4187 $as_echo "$ac_try_echo") >&5
  4188   (eval "$ac_compile") 2>conftest.er1
  4189   ac_status=$?
  4190   grep -v '^ *+' conftest.er1 >conftest.err
  4191   rm -f conftest.er1
  4192   cat conftest.err >&5
  4193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4194   (exit $ac_status); } && {
  4195 	 test -z "$ac_c_werror_flag" ||
  4196 	 test ! -s conftest.err
  4197        } && test -s conftest.$ac_objext; then
  4198   ac_cv_prog_cc_g=yes
  4199 else
  4200   $as_echo "$as_me: failed program was:" >&5
  4201 sed 's/^/| /' conftest.$ac_ext >&5
  4204 fi
  4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4207 fi
  4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4210 fi
  4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4213    ac_c_werror_flag=$ac_save_c_werror_flag
  4214 fi
  4215 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4216 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4217 if test "$ac_test_CFLAGS" = set; then
  4218   CFLAGS=$ac_save_CFLAGS
  4219 elif test $ac_cv_prog_cc_g = yes; then
  4220   if test "$GCC" = yes; then
  4221     CFLAGS="-g -O2"
  4222   else
  4223     CFLAGS="-g"
  4224   fi
  4225 else
  4226   if test "$GCC" = yes; then
  4227     CFLAGS="-O2"
  4228   else
  4229     CFLAGS=
  4230   fi
  4231 fi
  4232 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4233 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4234 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4235   $as_echo_n "(cached) " >&6
  4236 else
  4237   ac_cv_prog_cc_c89=no
  4238 ac_save_CC=$CC
  4239 cat >conftest.$ac_ext <<_ACEOF
  4240 /* confdefs.h.  */
  4241 _ACEOF
  4242 cat confdefs.h >>conftest.$ac_ext
  4243 cat >>conftest.$ac_ext <<_ACEOF
  4244 /* end confdefs.h.  */
  4245 #include <stdarg.h>
  4246 #include <stdio.h>
  4247 #include <sys/types.h>
  4248 #include <sys/stat.h>
  4249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4250 struct buf { int x; };
  4251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4252 static char *e (p, i)
  4253      char **p;
  4254      int i;
  4256   return p[i];
  4258 static char *f (char * (*g) (char **, int), char **p, ...)
  4260   char *s;
  4261   va_list v;
  4262   va_start (v,p);
  4263   s = g (p, va_arg (v,int));
  4264   va_end (v);
  4265   return s;
  4268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4269    function prototypes and stuff, but not '\xHH' hex character constants.
  4270    These don't provoke an error unfortunately, instead are silently treated
  4271    as 'x'.  The following induces an error, until -std is added to get
  4272    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4273    array size at least.  It's necessary to write '\x00'==0 to get something
  4274    that's true only with -std.  */
  4275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4278    inside strings and character constants.  */
  4279 #define FOO(x) 'x'
  4280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4282 int test (int i, double x);
  4283 struct s1 {int (*f) (int a);};
  4284 struct s2 {int (*f) (double a);};
  4285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4286 int argc;
  4287 char **argv;
  4288 int
  4289 main ()
  4291 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4293   return 0;
  4295 _ACEOF
  4296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4297 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4298 do
  4299   CC="$ac_save_CC $ac_arg"
  4300   rm -f conftest.$ac_objext
  4301 if { (ac_try="$ac_compile"
  4302 case "(($ac_try" in
  4303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4304   *) ac_try_echo=$ac_try;;
  4305 esac
  4306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4307 $as_echo "$ac_try_echo") >&5
  4308   (eval "$ac_compile") 2>conftest.er1
  4309   ac_status=$?
  4310   grep -v '^ *+' conftest.er1 >conftest.err
  4311   rm -f conftest.er1
  4312   cat conftest.err >&5
  4313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4314   (exit $ac_status); } && {
  4315 	 test -z "$ac_c_werror_flag" ||
  4316 	 test ! -s conftest.err
  4317        } && test -s conftest.$ac_objext; then
  4318   ac_cv_prog_cc_c89=$ac_arg
  4319 else
  4320   $as_echo "$as_me: failed program was:" >&5
  4321 sed 's/^/| /' conftest.$ac_ext >&5
  4324 fi
  4326 rm -f core conftest.err conftest.$ac_objext
  4327   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4328 done
  4329 rm -f conftest.$ac_ext
  4330 CC=$ac_save_CC
  4332 fi
  4333 # AC_CACHE_VAL
  4334 case "x$ac_cv_prog_cc_c89" in
  4335   x)
  4336     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4337 $as_echo "none needed" >&6; } ;;
  4338   xno)
  4339     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4340 $as_echo "unsupported" >&6; } ;;
  4341   *)
  4342     CC="$CC $ac_cv_prog_cc_c89"
  4343     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4344 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4345 esac
  4348 ac_ext=c
  4349 ac_cpp='$CPP $CPPFLAGS'
  4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4354 depcc="$CC"   am_compiler_list=
  4356 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4357 $as_echo_n "checking dependency style of $depcc... " >&6; }
  4358 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4359   $as_echo_n "(cached) " >&6
  4360 else
  4361   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4362   # We make a subdir and do the tests there.  Otherwise we can end up
  4363   # making bogus files that we don't know about and never remove.  For
  4364   # instance it was reported that on HP-UX the gcc test will end up
  4365   # making a dummy file named `D' -- because `-MD' means `put the output
  4366   # in D'.
  4367   mkdir conftest.dir
  4368   # Copy depcomp to subdir because otherwise we won't find it if we're
  4369   # using a relative directory.
  4370   cp "$am_depcomp" conftest.dir
  4371   cd conftest.dir
  4372   # We will build objects and dependencies in a subdirectory because
  4373   # it helps to detect inapplicable dependency modes.  For instance
  4374   # both Tru64's cc and ICC support -MD to output dependencies as a
  4375   # side effect of compilation, but ICC will put the dependencies in
  4376   # the current directory while Tru64 will put them in the object
  4377   # directory.
  4378   mkdir sub
  4380   am_cv_CC_dependencies_compiler_type=none
  4381   if test "$am_compiler_list" = ""; then
  4382      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4383   fi
  4384   for depmode in $am_compiler_list; do
  4385     # Setup a source with many dependencies, because some compilers
  4386     # like to wrap large dependency lists on column 80 (with \), and
  4387     # we should not choose a depcomp mode which is confused by this.
  4389     # We need to recreate these files for each test, as the compiler may
  4390     # overwrite some of them when testing with obscure command lines.
  4391     # This happens at least with the AIX C compiler.
  4392     : > sub/conftest.c
  4393     for i in 1 2 3 4 5 6; do
  4394       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4395       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4396       # Solaris 8's {/usr,}/bin/sh.
  4397       touch sub/conftst$i.h
  4398     done
  4399     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4401     case $depmode in
  4402     nosideeffect)
  4403       # after this tag, mechanisms are not by side-effect, so they'll
  4404       # only be used when explicitly requested
  4405       if test "x$enable_dependency_tracking" = xyes; then
  4406 	continue
  4407       else
  4408 	break
  4409       fi
  4410       ;;
  4411     none) break ;;
  4412     esac
  4413     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4414     # mode.  It turns out that the SunPro C++ compiler does not properly
  4415     # handle `-M -o', and we need to detect this.
  4416     if depmode=$depmode \
  4417        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4418        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4419        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4420          >/dev/null 2>conftest.err &&
  4421        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4422        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4423        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4424       # icc doesn't choke on unknown options, it will just issue warnings
  4425       # or remarks (even with -Werror).  So we grep stderr for any message
  4426       # that says an option was ignored or not supported.
  4427       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4428       #   icc: Command line warning: ignoring option '-M'; no argument required
  4429       # The diagnosis changed in icc 8.0:
  4430       #   icc: Command line remark: option '-MP' not supported
  4431       if (grep 'ignoring option' conftest.err ||
  4432           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4433         am_cv_CC_dependencies_compiler_type=$depmode
  4434         break
  4435       fi
  4436     fi
  4437   done
  4439   cd ..
  4440   rm -rf conftest.dir
  4441 else
  4442   am_cv_CC_dependencies_compiler_type=none
  4443 fi
  4445 fi
  4446 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4447 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4448 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4452 if
  4453   test "x$enable_dependency_tracking" != xno \
  4454   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4455   am__fastdepCC_TRUE=
  4456   am__fastdepCC_FALSE='#'
  4457 else
  4458   am__fastdepCC_TRUE='#'
  4459   am__fastdepCC_FALSE=
  4460 fi
  4463 ac_ext=c
  4464 ac_cpp='$CPP $CPPFLAGS'
  4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4468 if test -n "$ac_tool_prefix"; then
  4469   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4472 $as_echo_n "checking for $ac_word... " >&6; }
  4473 if test "${ac_cv_prog_CC+set}" = set; then
  4474   $as_echo_n "(cached) " >&6
  4475 else
  4476   if test -n "$CC"; then
  4477   ac_cv_prog_CC="$CC" # Let the user override the test.
  4478 else
  4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4480 for as_dir in $PATH
  4481 do
  4482   IFS=$as_save_IFS
  4483   test -z "$as_dir" && as_dir=.
  4484   for ac_exec_ext in '' $ac_executable_extensions; do
  4485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4486     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4487     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4488     break 2
  4489   fi
  4490 done
  4491 done
  4492 IFS=$as_save_IFS
  4494 fi
  4495 fi
  4496 CC=$ac_cv_prog_CC
  4497 if test -n "$CC"; then
  4498   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4499 $as_echo "$CC" >&6; }
  4500 else
  4501   { $as_echo "$as_me:$LINENO: result: no" >&5
  4502 $as_echo "no" >&6; }
  4503 fi
  4506 fi
  4507 if test -z "$ac_cv_prog_CC"; then
  4508   ac_ct_CC=$CC
  4509   # Extract the first word of "gcc", so it can be a program name with args.
  4510 set dummy gcc; 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_ac_ct_CC+set}" = set; then
  4514   $as_echo_n "(cached) " >&6
  4515 else
  4516   if test -n "$ac_ct_CC"; then
  4517   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
  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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4537 if test -n "$ac_ct_CC"; then
  4538   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4539 $as_echo "$ac_ct_CC" >&6; }
  4540 else
  4541   { $as_echo "$as_me:$LINENO: result: no" >&5
  4542 $as_echo "no" >&6; }
  4543 fi
  4545   if test "x$ac_ct_CC" = x; then
  4546     CC=""
  4547   else
  4548     case $cross_compiling:$ac_tool_warned in
  4549 yes:)
  4550 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4552 ac_tool_warned=yes ;;
  4553 esac
  4554     CC=$ac_ct_CC
  4555   fi
  4556 else
  4557   CC="$ac_cv_prog_CC"
  4558 fi
  4560 if test -z "$CC"; then
  4561           if test -n "$ac_tool_prefix"; then
  4562     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4563 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4565 $as_echo_n "checking for $ac_word... " >&6; }
  4566 if test "${ac_cv_prog_CC+set}" = set; then
  4567   $as_echo_n "(cached) " >&6
  4568 else
  4569   if test -n "$CC"; then
  4570   ac_cv_prog_CC="$CC" # Let the user override the test.
  4571 else
  4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4573 for as_dir in $PATH
  4574 do
  4575   IFS=$as_save_IFS
  4576   test -z "$as_dir" && as_dir=.
  4577   for ac_exec_ext in '' $ac_executable_extensions; do
  4578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4579     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4580     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4581     break 2
  4582   fi
  4583 done
  4584 done
  4585 IFS=$as_save_IFS
  4587 fi
  4588 fi
  4589 CC=$ac_cv_prog_CC
  4590 if test -n "$CC"; then
  4591   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4592 $as_echo "$CC" >&6; }
  4593 else
  4594   { $as_echo "$as_me:$LINENO: result: no" >&5
  4595 $as_echo "no" >&6; }
  4596 fi
  4599   fi
  4600 fi
  4601 if test -z "$CC"; then
  4602   # Extract the first word of "cc", so it can be a program name with args.
  4603 set dummy cc; ac_word=$2
  4604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4605 $as_echo_n "checking for $ac_word... " >&6; }
  4606 if test "${ac_cv_prog_CC+set}" = set; then
  4607   $as_echo_n "(cached) " >&6
  4608 else
  4609   if test -n "$CC"; then
  4610   ac_cv_prog_CC="$CC" # Let the user override the test.
  4611 else
  4612   ac_prog_rejected=no
  4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4614 for as_dir in $PATH
  4615 do
  4616   IFS=$as_save_IFS
  4617   test -z "$as_dir" && as_dir=.
  4618   for ac_exec_ext in '' $ac_executable_extensions; do
  4619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4620     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4621        ac_prog_rejected=yes
  4622        continue
  4623      fi
  4624     ac_cv_prog_CC="cc"
  4625     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4626     break 2
  4627   fi
  4628 done
  4629 done
  4630 IFS=$as_save_IFS
  4632 if test $ac_prog_rejected = yes; then
  4633   # We found a bogon in the path, so make sure we never use it.
  4634   set dummy $ac_cv_prog_CC
  4635   shift
  4636   if test $# != 0; then
  4637     # We chose a different compiler from the bogus one.
  4638     # However, it has the same basename, so the bogon will be chosen
  4639     # first if we set CC to just the basename; use the full file name.
  4640     shift
  4641     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4642   fi
  4643 fi
  4644 fi
  4645 fi
  4646 CC=$ac_cv_prog_CC
  4647 if test -n "$CC"; then
  4648   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4649 $as_echo "$CC" >&6; }
  4650 else
  4651   { $as_echo "$as_me:$LINENO: result: no" >&5
  4652 $as_echo "no" >&6; }
  4653 fi
  4656 fi
  4657 if test -z "$CC"; then
  4658   if test -n "$ac_tool_prefix"; then
  4659   for ac_prog in cl.exe
  4660   do
  4661     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4664 $as_echo_n "checking for $ac_word... " >&6; }
  4665 if test "${ac_cv_prog_CC+set}" = set; then
  4666   $as_echo_n "(cached) " >&6
  4667 else
  4668   if test -n "$CC"; then
  4669   ac_cv_prog_CC="$CC" # Let the user override the test.
  4670 else
  4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4672 for as_dir in $PATH
  4673 do
  4674   IFS=$as_save_IFS
  4675   test -z "$as_dir" && as_dir=.
  4676   for ac_exec_ext in '' $ac_executable_extensions; do
  4677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4678     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4679     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4680     break 2
  4681   fi
  4682 done
  4683 done
  4684 IFS=$as_save_IFS
  4686 fi
  4687 fi
  4688 CC=$ac_cv_prog_CC
  4689 if test -n "$CC"; then
  4690   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4691 $as_echo "$CC" >&6; }
  4692 else
  4693   { $as_echo "$as_me:$LINENO: result: no" >&5
  4694 $as_echo "no" >&6; }
  4695 fi
  4698     test -n "$CC" && break
  4699   done
  4700 fi
  4701 if test -z "$CC"; then
  4702   ac_ct_CC=$CC
  4703   for ac_prog in cl.exe
  4704 do
  4705   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4706 set dummy $ac_prog; ac_word=$2
  4707 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4708 $as_echo_n "checking for $ac_word... " >&6; }
  4709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4710   $as_echo_n "(cached) " >&6
  4711 else
  4712   if test -n "$ac_ct_CC"; then
  4713   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4714 else
  4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4716 for as_dir in $PATH
  4717 do
  4718   IFS=$as_save_IFS
  4719   test -z "$as_dir" && as_dir=.
  4720   for ac_exec_ext in '' $ac_executable_extensions; do
  4721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4722     ac_cv_prog_ac_ct_CC="$ac_prog"
  4723     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4724     break 2
  4725   fi
  4726 done
  4727 done
  4728 IFS=$as_save_IFS
  4730 fi
  4731 fi
  4732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4733 if test -n "$ac_ct_CC"; then
  4734   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4735 $as_echo "$ac_ct_CC" >&6; }
  4736 else
  4737   { $as_echo "$as_me:$LINENO: result: no" >&5
  4738 $as_echo "no" >&6; }
  4739 fi
  4742   test -n "$ac_ct_CC" && break
  4743 done
  4745   if test "x$ac_ct_CC" = x; then
  4746     CC=""
  4747   else
  4748     case $cross_compiling:$ac_tool_warned in
  4749 yes:)
  4750 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4752 ac_tool_warned=yes ;;
  4753 esac
  4754     CC=$ac_ct_CC
  4755   fi
  4756 fi
  4758 fi
  4761 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4763 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4764 See \`config.log' for more details." >&5
  4765 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  4766 See \`config.log' for more details." >&2;}
  4767    { (exit 1); exit 1; }; }; }
  4769 # Provide some information about the compiler.
  4770 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  4771 set X $ac_compile
  4772 ac_compiler=$2
  4773 { (ac_try="$ac_compiler --version >&5"
  4774 case "(($ac_try" in
  4775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4776   *) ac_try_echo=$ac_try;;
  4777 esac
  4778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4779 $as_echo "$ac_try_echo") >&5
  4780   (eval "$ac_compiler --version >&5") 2>&5
  4781   ac_status=$?
  4782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4783   (exit $ac_status); }
  4784 { (ac_try="$ac_compiler -v >&5"
  4785 case "(($ac_try" in
  4786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4787   *) ac_try_echo=$ac_try;;
  4788 esac
  4789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4790 $as_echo "$ac_try_echo") >&5
  4791   (eval "$ac_compiler -v >&5") 2>&5
  4792   ac_status=$?
  4793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4794   (exit $ac_status); }
  4795 { (ac_try="$ac_compiler -V >&5"
  4796 case "(($ac_try" in
  4797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4798   *) ac_try_echo=$ac_try;;
  4799 esac
  4800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4801 $as_echo "$ac_try_echo") >&5
  4802   (eval "$ac_compiler -V >&5") 2>&5
  4803   ac_status=$?
  4804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4805   (exit $ac_status); }
  4807 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4808 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4809 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4810   $as_echo_n "(cached) " >&6
  4811 else
  4812   cat >conftest.$ac_ext <<_ACEOF
  4813 /* confdefs.h.  */
  4814 _ACEOF
  4815 cat confdefs.h >>conftest.$ac_ext
  4816 cat >>conftest.$ac_ext <<_ACEOF
  4817 /* end confdefs.h.  */
  4819 int
  4820 main ()
  4822 #ifndef __GNUC__
  4823        choke me
  4824 #endif
  4827   return 0;
  4829 _ACEOF
  4830 rm -f conftest.$ac_objext
  4831 if { (ac_try="$ac_compile"
  4832 case "(($ac_try" in
  4833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4834   *) ac_try_echo=$ac_try;;
  4835 esac
  4836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4837 $as_echo "$ac_try_echo") >&5
  4838   (eval "$ac_compile") 2>conftest.er1
  4839   ac_status=$?
  4840   grep -v '^ *+' conftest.er1 >conftest.err
  4841   rm -f conftest.er1
  4842   cat conftest.err >&5
  4843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4844   (exit $ac_status); } && {
  4845 	 test -z "$ac_c_werror_flag" ||
  4846 	 test ! -s conftest.err
  4847        } && test -s conftest.$ac_objext; then
  4848   ac_compiler_gnu=yes
  4849 else
  4850   $as_echo "$as_me: failed program was:" >&5
  4851 sed 's/^/| /' conftest.$ac_ext >&5
  4853 	ac_compiler_gnu=no
  4854 fi
  4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4859 fi
  4860 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4861 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4862 if test $ac_compiler_gnu = yes; then
  4863   GCC=yes
  4864 else
  4865   GCC=
  4866 fi
  4867 ac_test_CFLAGS=${CFLAGS+set}
  4868 ac_save_CFLAGS=$CFLAGS
  4869 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4870 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4871 if test "${ac_cv_prog_cc_g+set}" = set; then
  4872   $as_echo_n "(cached) " >&6
  4873 else
  4874   ac_save_c_werror_flag=$ac_c_werror_flag
  4875    ac_c_werror_flag=yes
  4876    ac_cv_prog_cc_g=no
  4877    CFLAGS="-g"
  4878    cat >conftest.$ac_ext <<_ACEOF
  4879 /* confdefs.h.  */
  4880 _ACEOF
  4881 cat confdefs.h >>conftest.$ac_ext
  4882 cat >>conftest.$ac_ext <<_ACEOF
  4883 /* end confdefs.h.  */
  4885 int
  4886 main ()
  4890   return 0;
  4892 _ACEOF
  4893 rm -f conftest.$ac_objext
  4894 if { (ac_try="$ac_compile"
  4895 case "(($ac_try" in
  4896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4897   *) ac_try_echo=$ac_try;;
  4898 esac
  4899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4900 $as_echo "$ac_try_echo") >&5
  4901   (eval "$ac_compile") 2>conftest.er1
  4902   ac_status=$?
  4903   grep -v '^ *+' conftest.er1 >conftest.err
  4904   rm -f conftest.er1
  4905   cat conftest.err >&5
  4906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4907   (exit $ac_status); } && {
  4908 	 test -z "$ac_c_werror_flag" ||
  4909 	 test ! -s conftest.err
  4910        } && test -s conftest.$ac_objext; then
  4911   ac_cv_prog_cc_g=yes
  4912 else
  4913   $as_echo "$as_me: failed program was:" >&5
  4914 sed 's/^/| /' conftest.$ac_ext >&5
  4916 	CFLAGS=""
  4917       cat >conftest.$ac_ext <<_ACEOF
  4918 /* confdefs.h.  */
  4919 _ACEOF
  4920 cat confdefs.h >>conftest.$ac_ext
  4921 cat >>conftest.$ac_ext <<_ACEOF
  4922 /* end confdefs.h.  */
  4924 int
  4925 main ()
  4929   return 0;
  4931 _ACEOF
  4932 rm -f conftest.$ac_objext
  4933 if { (ac_try="$ac_compile"
  4934 case "(($ac_try" in
  4935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4936   *) ac_try_echo=$ac_try;;
  4937 esac
  4938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4939 $as_echo "$ac_try_echo") >&5
  4940   (eval "$ac_compile") 2>conftest.er1
  4941   ac_status=$?
  4942   grep -v '^ *+' conftest.er1 >conftest.err
  4943   rm -f conftest.er1
  4944   cat conftest.err >&5
  4945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946   (exit $ac_status); } && {
  4947 	 test -z "$ac_c_werror_flag" ||
  4948 	 test ! -s conftest.err
  4949        } && test -s conftest.$ac_objext; then
  4951 else
  4952   $as_echo "$as_me: failed program was:" >&5
  4953 sed 's/^/| /' conftest.$ac_ext >&5
  4955 	ac_c_werror_flag=$ac_save_c_werror_flag
  4956 	 CFLAGS="-g"
  4957 	 cat >conftest.$ac_ext <<_ACEOF
  4958 /* confdefs.h.  */
  4959 _ACEOF
  4960 cat confdefs.h >>conftest.$ac_ext
  4961 cat >>conftest.$ac_ext <<_ACEOF
  4962 /* end confdefs.h.  */
  4964 int
  4965 main ()
  4969   return 0;
  4971 _ACEOF
  4972 rm -f conftest.$ac_objext
  4973 if { (ac_try="$ac_compile"
  4974 case "(($ac_try" in
  4975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4976   *) ac_try_echo=$ac_try;;
  4977 esac
  4978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4979 $as_echo "$ac_try_echo") >&5
  4980   (eval "$ac_compile") 2>conftest.er1
  4981   ac_status=$?
  4982   grep -v '^ *+' conftest.er1 >conftest.err
  4983   rm -f conftest.er1
  4984   cat conftest.err >&5
  4985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4986   (exit $ac_status); } && {
  4987 	 test -z "$ac_c_werror_flag" ||
  4988 	 test ! -s conftest.err
  4989        } && test -s conftest.$ac_objext; then
  4990   ac_cv_prog_cc_g=yes
  4991 else
  4992   $as_echo "$as_me: failed program was:" >&5
  4993 sed 's/^/| /' conftest.$ac_ext >&5
  4996 fi
  4998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4999 fi
  5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5002 fi
  5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5005    ac_c_werror_flag=$ac_save_c_werror_flag
  5006 fi
  5007 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5008 $as_echo "$ac_cv_prog_cc_g" >&6; }
  5009 if test "$ac_test_CFLAGS" = set; then
  5010   CFLAGS=$ac_save_CFLAGS
  5011 elif test $ac_cv_prog_cc_g = yes; then
  5012   if test "$GCC" = yes; then
  5013     CFLAGS="-g -O2"
  5014   else
  5015     CFLAGS="-g"
  5016   fi
  5017 else
  5018   if test "$GCC" = yes; then
  5019     CFLAGS="-O2"
  5020   else
  5021     CFLAGS=
  5022   fi
  5023 fi
  5024 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5025 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5026 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5027   $as_echo_n "(cached) " >&6
  5028 else
  5029   ac_cv_prog_cc_c89=no
  5030 ac_save_CC=$CC
  5031 cat >conftest.$ac_ext <<_ACEOF
  5032 /* confdefs.h.  */
  5033 _ACEOF
  5034 cat confdefs.h >>conftest.$ac_ext
  5035 cat >>conftest.$ac_ext <<_ACEOF
  5036 /* end confdefs.h.  */
  5037 #include <stdarg.h>
  5038 #include <stdio.h>
  5039 #include <sys/types.h>
  5040 #include <sys/stat.h>
  5041 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5042 struct buf { int x; };
  5043 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5044 static char *e (p, i)
  5045      char **p;
  5046      int i;
  5048   return p[i];
  5050 static char *f (char * (*g) (char **, int), char **p, ...)
  5052   char *s;
  5053   va_list v;
  5054   va_start (v,p);
  5055   s = g (p, va_arg (v,int));
  5056   va_end (v);
  5057   return s;
  5060 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5061    function prototypes and stuff, but not '\xHH' hex character constants.
  5062    These don't provoke an error unfortunately, instead are silently treated
  5063    as 'x'.  The following induces an error, until -std is added to get
  5064    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5065    array size at least.  It's necessary to write '\x00'==0 to get something
  5066    that's true only with -std.  */
  5067 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5069 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5070    inside strings and character constants.  */
  5071 #define FOO(x) 'x'
  5072 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5074 int test (int i, double x);
  5075 struct s1 {int (*f) (int a);};
  5076 struct s2 {int (*f) (double a);};
  5077 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5078 int argc;
  5079 char **argv;
  5080 int
  5081 main ()
  5083 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5085   return 0;
  5087 _ACEOF
  5088 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5089 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5090 do
  5091   CC="$ac_save_CC $ac_arg"
  5092   rm -f conftest.$ac_objext
  5093 if { (ac_try="$ac_compile"
  5094 case "(($ac_try" in
  5095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5096   *) ac_try_echo=$ac_try;;
  5097 esac
  5098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5099 $as_echo "$ac_try_echo") >&5
  5100   (eval "$ac_compile") 2>conftest.er1
  5101   ac_status=$?
  5102   grep -v '^ *+' conftest.er1 >conftest.err
  5103   rm -f conftest.er1
  5104   cat conftest.err >&5
  5105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5106   (exit $ac_status); } && {
  5107 	 test -z "$ac_c_werror_flag" ||
  5108 	 test ! -s conftest.err
  5109        } && test -s conftest.$ac_objext; then
  5110   ac_cv_prog_cc_c89=$ac_arg
  5111 else
  5112   $as_echo "$as_me: failed program was:" >&5
  5113 sed 's/^/| /' conftest.$ac_ext >&5
  5116 fi
  5118 rm -f core conftest.err conftest.$ac_objext
  5119   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5120 done
  5121 rm -f conftest.$ac_ext
  5122 CC=$ac_save_CC
  5124 fi
  5125 # AC_CACHE_VAL
  5126 case "x$ac_cv_prog_cc_c89" in
  5127   x)
  5128     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5129 $as_echo "none needed" >&6; } ;;
  5130   xno)
  5131     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5132 $as_echo "unsupported" >&6; } ;;
  5133   *)
  5134     CC="$CC $ac_cv_prog_cc_c89"
  5135     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5136 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5137 esac
  5140 ac_ext=c
  5141 ac_cpp='$CPP $CPPFLAGS'
  5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5146 depcc="$CC"   am_compiler_list=
  5148 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5149 $as_echo_n "checking dependency style of $depcc... " >&6; }
  5150 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5151   $as_echo_n "(cached) " >&6
  5152 else
  5153   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5154   # We make a subdir and do the tests there.  Otherwise we can end up
  5155   # making bogus files that we don't know about and never remove.  For
  5156   # instance it was reported that on HP-UX the gcc test will end up
  5157   # making a dummy file named `D' -- because `-MD' means `put the output
  5158   # in D'.
  5159   mkdir conftest.dir
  5160   # Copy depcomp to subdir because otherwise we won't find it if we're
  5161   # using a relative directory.
  5162   cp "$am_depcomp" conftest.dir
  5163   cd conftest.dir
  5164   # We will build objects and dependencies in a subdirectory because
  5165   # it helps to detect inapplicable dependency modes.  For instance
  5166   # both Tru64's cc and ICC support -MD to output dependencies as a
  5167   # side effect of compilation, but ICC will put the dependencies in
  5168   # the current directory while Tru64 will put them in the object
  5169   # directory.
  5170   mkdir sub
  5172   am_cv_CC_dependencies_compiler_type=none
  5173   if test "$am_compiler_list" = ""; then
  5174      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5175   fi
  5176   for depmode in $am_compiler_list; do
  5177     # Setup a source with many dependencies, because some compilers
  5178     # like to wrap large dependency lists on column 80 (with \), and
  5179     # we should not choose a depcomp mode which is confused by this.
  5181     # We need to recreate these files for each test, as the compiler may
  5182     # overwrite some of them when testing with obscure command lines.
  5183     # This happens at least with the AIX C compiler.
  5184     : > sub/conftest.c
  5185     for i in 1 2 3 4 5 6; do
  5186       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5187       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5188       # Solaris 8's {/usr,}/bin/sh.
  5189       touch sub/conftst$i.h
  5190     done
  5191     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5193     case $depmode in
  5194     nosideeffect)
  5195       # after this tag, mechanisms are not by side-effect, so they'll
  5196       # only be used when explicitly requested
  5197       if test "x$enable_dependency_tracking" = xyes; then
  5198 	continue
  5199       else
  5200 	break
  5201       fi
  5202       ;;
  5203     none) break ;;
  5204     esac
  5205     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5206     # mode.  It turns out that the SunPro C++ compiler does not properly
  5207     # handle `-M -o', and we need to detect this.
  5208     if depmode=$depmode \
  5209        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5210        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5211        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5212          >/dev/null 2>conftest.err &&
  5213        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5214        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5215        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5216       # icc doesn't choke on unknown options, it will just issue warnings
  5217       # or remarks (even with -Werror).  So we grep stderr for any message
  5218       # that says an option was ignored or not supported.
  5219       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5220       #   icc: Command line warning: ignoring option '-M'; no argument required
  5221       # The diagnosis changed in icc 8.0:
  5222       #   icc: Command line remark: option '-MP' not supported
  5223       if (grep 'ignoring option' conftest.err ||
  5224           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5225         am_cv_CC_dependencies_compiler_type=$depmode
  5226         break
  5227       fi
  5228     fi
  5229   done
  5231   cd ..
  5232   rm -rf conftest.dir
  5233 else
  5234   am_cv_CC_dependencies_compiler_type=none
  5235 fi
  5237 fi
  5238 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5239 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5240 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5244 if
  5245   test "x$enable_dependency_tracking" != xno \
  5246   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5247   am__fastdepCC_TRUE=
  5248   am__fastdepCC_FALSE='#'
  5249 else
  5250   am__fastdepCC_TRUE='#'
  5251   am__fastdepCC_FALSE=
  5252 fi
  5256 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5258 ac_ext=m
  5259 ac_cpp='$OBJCPP $CPPFLAGS'
  5260 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5261 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5262 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  5263 if test -n "$ac_tool_prefix"; then
  5264   for ac_prog in gcc objcc objc cc CC
  5265   do
  5266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5269 $as_echo_n "checking for $ac_word... " >&6; }
  5270 if test "${ac_cv_prog_OBJC+set}" = set; then
  5271   $as_echo_n "(cached) " >&6
  5272 else
  5273   if test -n "$OBJC"; then
  5274   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  5275 else
  5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5277 for as_dir in $PATH
  5278 do
  5279   IFS=$as_save_IFS
  5280   test -z "$as_dir" && as_dir=.
  5281   for ac_exec_ext in '' $ac_executable_extensions; do
  5282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5283     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  5284     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5285     break 2
  5286   fi
  5287 done
  5288 done
  5289 IFS=$as_save_IFS
  5291 fi
  5292 fi
  5293 OBJC=$ac_cv_prog_OBJC
  5294 if test -n "$OBJC"; then
  5295   { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
  5296 $as_echo "$OBJC" >&6; }
  5297 else
  5298   { $as_echo "$as_me:$LINENO: result: no" >&5
  5299 $as_echo "no" >&6; }
  5300 fi
  5303     test -n "$OBJC" && break
  5304   done
  5305 fi
  5306 if test -z "$OBJC"; then
  5307   ac_ct_OBJC=$OBJC
  5308   for ac_prog in gcc objcc objc cc CC
  5309 do
  5310   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5311 set dummy $ac_prog; ac_word=$2
  5312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5313 $as_echo_n "checking for $ac_word... " >&6; }
  5314 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  5315   $as_echo_n "(cached) " >&6
  5316 else
  5317   if test -n "$ac_ct_OBJC"; then
  5318   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  5319 else
  5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5321 for as_dir in $PATH
  5322 do
  5323   IFS=$as_save_IFS
  5324   test -z "$as_dir" && as_dir=.
  5325   for ac_exec_ext in '' $ac_executable_extensions; do
  5326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5327     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  5328     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5329     break 2
  5330   fi
  5331 done
  5332 done
  5333 IFS=$as_save_IFS
  5335 fi
  5336 fi
  5337 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  5338 if test -n "$ac_ct_OBJC"; then
  5339   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  5340 $as_echo "$ac_ct_OBJC" >&6; }
  5341 else
  5342   { $as_echo "$as_me:$LINENO: result: no" >&5
  5343 $as_echo "no" >&6; }
  5344 fi
  5347   test -n "$ac_ct_OBJC" && break
  5348 done
  5350   if test "x$ac_ct_OBJC" = x; then
  5351     OBJC="gcc"
  5352   else
  5353     case $cross_compiling:$ac_tool_warned in
  5354 yes:)
  5355 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5357 ac_tool_warned=yes ;;
  5358 esac
  5359     OBJC=$ac_ct_OBJC
  5360   fi
  5361 fi
  5363 # Provide some information about the compiler.
  5364 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  5365 set X $ac_compile
  5366 ac_compiler=$2
  5367 { (ac_try="$ac_compiler --version >&5"
  5368 case "(($ac_try" in
  5369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5370   *) ac_try_echo=$ac_try;;
  5371 esac
  5372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5373 $as_echo "$ac_try_echo") >&5
  5374   (eval "$ac_compiler --version >&5") 2>&5
  5375   ac_status=$?
  5376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5377   (exit $ac_status); }
  5378 { (ac_try="$ac_compiler -v >&5"
  5379 case "(($ac_try" in
  5380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5381   *) ac_try_echo=$ac_try;;
  5382 esac
  5383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5384 $as_echo "$ac_try_echo") >&5
  5385   (eval "$ac_compiler -v >&5") 2>&5
  5386   ac_status=$?
  5387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5388   (exit $ac_status); }
  5389 { (ac_try="$ac_compiler -V >&5"
  5390 case "(($ac_try" in
  5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5392   *) ac_try_echo=$ac_try;;
  5393 esac
  5394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5395 $as_echo "$ac_try_echo") >&5
  5396   (eval "$ac_compiler -V >&5") 2>&5
  5397   ac_status=$?
  5398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5399   (exit $ac_status); }
  5401 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  5402 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
  5403 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  5404   $as_echo_n "(cached) " >&6
  5405 else
  5406   cat >conftest.$ac_ext <<_ACEOF
  5407 /* confdefs.h.  */
  5408 _ACEOF
  5409 cat confdefs.h >>conftest.$ac_ext
  5410 cat >>conftest.$ac_ext <<_ACEOF
  5411 /* end confdefs.h.  */
  5413 int
  5414 main ()
  5416 #ifndef __GNUC__
  5417        choke me
  5418 #endif
  5421   return 0;
  5423 _ACEOF
  5424 rm -f conftest.$ac_objext
  5425 if { (ac_try="$ac_compile"
  5426 case "(($ac_try" in
  5427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5428   *) ac_try_echo=$ac_try;;
  5429 esac
  5430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5431 $as_echo "$ac_try_echo") >&5
  5432   (eval "$ac_compile") 2>conftest.er1
  5433   ac_status=$?
  5434   grep -v '^ *+' conftest.er1 >conftest.err
  5435   rm -f conftest.er1
  5436   cat conftest.err >&5
  5437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5438   (exit $ac_status); } && {
  5439 	 test -z "$ac_objc_werror_flag" ||
  5440 	 test ! -s conftest.err
  5441        } && test -s conftest.$ac_objext; then
  5442   ac_compiler_gnu=yes
  5443 else
  5444   $as_echo "$as_me: failed program was:" >&5
  5445 sed 's/^/| /' conftest.$ac_ext >&5
  5447 	ac_compiler_gnu=no
  5448 fi
  5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5451 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  5453 fi
  5454 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  5455 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
  5456 if test $ac_compiler_gnu = yes; then
  5457   GOBJC=yes
  5458 else
  5459   GOBJC=
  5460 fi
  5461 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  5462 ac_save_OBJCFLAGS=$OBJCFLAGS
  5463 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  5464 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
  5465 if test "${ac_cv_prog_objc_g+set}" = set; then
  5466   $as_echo_n "(cached) " >&6
  5467 else
  5468   ac_save_objc_werror_flag=$ac_objc_werror_flag
  5469    ac_objc_werror_flag=yes
  5470    ac_cv_prog_objc_g=no
  5471    OBJCFLAGS="-g"
  5472    cat >conftest.$ac_ext <<_ACEOF
  5473 /* confdefs.h.  */
  5474 _ACEOF
  5475 cat confdefs.h >>conftest.$ac_ext
  5476 cat >>conftest.$ac_ext <<_ACEOF
  5477 /* end confdefs.h.  */
  5479 int
  5480 main ()
  5484   return 0;
  5486 _ACEOF
  5487 rm -f conftest.$ac_objext
  5488 if { (ac_try="$ac_compile"
  5489 case "(($ac_try" in
  5490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5491   *) ac_try_echo=$ac_try;;
  5492 esac
  5493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5494 $as_echo "$ac_try_echo") >&5
  5495   (eval "$ac_compile") 2>conftest.er1
  5496   ac_status=$?
  5497   grep -v '^ *+' conftest.er1 >conftest.err
  5498   rm -f conftest.er1
  5499   cat conftest.err >&5
  5500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5501   (exit $ac_status); } && {
  5502 	 test -z "$ac_objc_werror_flag" ||
  5503 	 test ! -s conftest.err
  5504        } && test -s conftest.$ac_objext; then
  5505   ac_cv_prog_objc_g=yes
  5506 else
  5507   $as_echo "$as_me: failed program was:" >&5
  5508 sed 's/^/| /' conftest.$ac_ext >&5
  5510 	OBJCFLAGS=""
  5511       cat >conftest.$ac_ext <<_ACEOF
  5512 /* confdefs.h.  */
  5513 _ACEOF
  5514 cat confdefs.h >>conftest.$ac_ext
  5515 cat >>conftest.$ac_ext <<_ACEOF
  5516 /* end confdefs.h.  */
  5518 int
  5519 main ()
  5523   return 0;
  5525 _ACEOF
  5526 rm -f conftest.$ac_objext
  5527 if { (ac_try="$ac_compile"
  5528 case "(($ac_try" in
  5529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5530   *) ac_try_echo=$ac_try;;
  5531 esac
  5532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5533 $as_echo "$ac_try_echo") >&5
  5534   (eval "$ac_compile") 2>conftest.er1
  5535   ac_status=$?
  5536   grep -v '^ *+' conftest.er1 >conftest.err
  5537   rm -f conftest.er1
  5538   cat conftest.err >&5
  5539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5540   (exit $ac_status); } && {
  5541 	 test -z "$ac_objc_werror_flag" ||
  5542 	 test ! -s conftest.err
  5543        } && test -s conftest.$ac_objext; then
  5545 else
  5546   $as_echo "$as_me: failed program was:" >&5
  5547 sed 's/^/| /' conftest.$ac_ext >&5
  5549 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  5550 	 OBJCFLAGS="-g"
  5551 	 cat >conftest.$ac_ext <<_ACEOF
  5552 /* confdefs.h.  */
  5553 _ACEOF
  5554 cat confdefs.h >>conftest.$ac_ext
  5555 cat >>conftest.$ac_ext <<_ACEOF
  5556 /* end confdefs.h.  */
  5558 int
  5559 main ()
  5563   return 0;
  5565 _ACEOF
  5566 rm -f conftest.$ac_objext
  5567 if { (ac_try="$ac_compile"
  5568 case "(($ac_try" in
  5569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5570   *) ac_try_echo=$ac_try;;
  5571 esac
  5572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5573 $as_echo "$ac_try_echo") >&5
  5574   (eval "$ac_compile") 2>conftest.er1
  5575   ac_status=$?
  5576   grep -v '^ *+' conftest.er1 >conftest.err
  5577   rm -f conftest.er1
  5578   cat conftest.err >&5
  5579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5580   (exit $ac_status); } && {
  5581 	 test -z "$ac_objc_werror_flag" ||
  5582 	 test ! -s conftest.err
  5583        } && test -s conftest.$ac_objext; then
  5584   ac_cv_prog_objc_g=yes
  5585 else
  5586   $as_echo "$as_me: failed program was:" >&5
  5587 sed 's/^/| /' conftest.$ac_ext >&5
  5590 fi
  5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5593 fi
  5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5596 fi
  5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5599    ac_objc_werror_flag=$ac_save_objc_werror_flag
  5600 fi
  5601 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  5602 $as_echo "$ac_cv_prog_objc_g" >&6; }
  5603 if test "$ac_test_OBJCFLAGS" = set; then
  5604   OBJCFLAGS=$ac_save_OBJCFLAGS
  5605 elif test $ac_cv_prog_objc_g = yes; then
  5606   if test "$GOBJC" = yes; then
  5607     OBJCFLAGS="-g -O2"
  5608   else
  5609     OBJCFLAGS="-g"
  5610   fi
  5611 else
  5612   if test "$GOBJC" = yes; then
  5613     OBJCFLAGS="-O2"
  5614   else
  5615     OBJCFLAGS=
  5616   fi
  5617 fi
  5618 ac_ext=c
  5619 ac_cpp='$CPP $CPPFLAGS'
  5620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5624 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  5625 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5626 if test "${ac_cv_path_SED+set}" = set; then
  5627   $as_echo_n "(cached) " >&6
  5628 else
  5629             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5630      for ac_i in 1 2 3 4 5 6 7; do
  5631        ac_script="$ac_script$as_nl$ac_script"
  5632      done
  5633      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5634      $as_unset ac_script || ac_script=
  5635      if test -z "$SED"; then
  5636   ac_path_SED_found=false
  5637   # Loop through the user's path and test for each of PROGNAME-LIST
  5638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5639 for as_dir in $PATH
  5640 do
  5641   IFS=$as_save_IFS
  5642   test -z "$as_dir" && as_dir=.
  5643   for ac_prog in sed gsed; do
  5644     for ac_exec_ext in '' $ac_executable_extensions; do
  5645       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5646       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5647 # Check for GNU ac_path_SED and select it if it is found.
  5648   # Check for GNU $ac_path_SED
  5649 case `"$ac_path_SED" --version 2>&1` in
  5650 *GNU*)
  5651   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5652 *)
  5653   ac_count=0
  5654   $as_echo_n 0123456789 >"conftest.in"
  5655   while :
  5656   do
  5657     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5658     mv "conftest.tmp" "conftest.in"
  5659     cp "conftest.in" "conftest.nl"
  5660     $as_echo '' >> "conftest.nl"
  5661     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5662     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5663     ac_count=`expr $ac_count + 1`
  5664     if test $ac_count -gt ${ac_path_SED_max-0}; then
  5665       # Best one so far, save it but keep looking for a better one
  5666       ac_cv_path_SED="$ac_path_SED"
  5667       ac_path_SED_max=$ac_count
  5668     fi
  5669     # 10*(2^10) chars as input seems more than enough
  5670     test $ac_count -gt 10 && break
  5671   done
  5672   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5673 esac
  5675       $ac_path_SED_found && break 3
  5676     done
  5677   done
  5678 done
  5679 IFS=$as_save_IFS
  5680   if test -z "$ac_cv_path_SED"; then
  5681     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  5682 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  5683    { (exit 1); exit 1; }; }
  5684   fi
  5685 else
  5686   ac_cv_path_SED=$SED
  5687 fi
  5689 fi
  5690 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  5691 $as_echo "$ac_cv_path_SED" >&6; }
  5692  SED="$ac_cv_path_SED"
  5693   rm -f conftest.sed
  5695 # By default we simply use the C compiler to build assembly code.
  5697 test "${CCAS+set}" = set || CCAS=$CC
  5698 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5702 ac_ext=c
  5703 ac_cpp='$CPP $CPPFLAGS'
  5704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5707 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5708 $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5709 # On Suns, sometimes $CPP names a directory.
  5710 if test -n "$CPP" && test -d "$CPP"; then
  5711   CPP=
  5712 fi
  5713 if test -z "$CPP"; then
  5714   if test "${ac_cv_prog_CPP+set}" = set; then
  5715   $as_echo_n "(cached) " >&6
  5716 else
  5717       # Double quotes because CPP needs to be expanded
  5718     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5719     do
  5720       ac_preproc_ok=false
  5721 for ac_c_preproc_warn_flag in '' yes
  5722 do
  5723   # Use a header file that comes with gcc, so configuring glibc
  5724   # with a fresh cross-compiler works.
  5725   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5726   # <limits.h> exists even on freestanding compilers.
  5727   # On the NeXT, cc -E runs the code through the compiler's parser,
  5728   # not just through cpp. "Syntax error" is here to catch this case.
  5729   cat >conftest.$ac_ext <<_ACEOF
  5730 /* confdefs.h.  */
  5731 _ACEOF
  5732 cat confdefs.h >>conftest.$ac_ext
  5733 cat >>conftest.$ac_ext <<_ACEOF
  5734 /* end confdefs.h.  */
  5735 #ifdef __STDC__
  5736 # include <limits.h>
  5737 #else
  5738 # include <assert.h>
  5739 #endif
  5740 		     Syntax error
  5741 _ACEOF
  5742 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5743 case "(($ac_try" in
  5744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5745   *) ac_try_echo=$ac_try;;
  5746 esac
  5747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5748 $as_echo "$ac_try_echo") >&5
  5749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5750   ac_status=$?
  5751   grep -v '^ *+' conftest.er1 >conftest.err
  5752   rm -f conftest.er1
  5753   cat conftest.err >&5
  5754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5755   (exit $ac_status); } >/dev/null && {
  5756 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5757 	 test ! -s conftest.err
  5758        }; then
  5760 else
  5761   $as_echo "$as_me: failed program was:" >&5
  5762 sed 's/^/| /' conftest.$ac_ext >&5
  5764   # Broken: fails on valid input.
  5765 continue
  5766 fi
  5768 rm -f conftest.err conftest.$ac_ext
  5770   # OK, works on sane cases.  Now check whether nonexistent headers
  5771   # can be detected and how.
  5772   cat >conftest.$ac_ext <<_ACEOF
  5773 /* confdefs.h.  */
  5774 _ACEOF
  5775 cat confdefs.h >>conftest.$ac_ext
  5776 cat >>conftest.$ac_ext <<_ACEOF
  5777 /* end confdefs.h.  */
  5778 #include <ac_nonexistent.h>
  5779 _ACEOF
  5780 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5781 case "(($ac_try" in
  5782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5783   *) ac_try_echo=$ac_try;;
  5784 esac
  5785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5786 $as_echo "$ac_try_echo") >&5
  5787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5788   ac_status=$?
  5789   grep -v '^ *+' conftest.er1 >conftest.err
  5790   rm -f conftest.er1
  5791   cat conftest.err >&5
  5792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5793   (exit $ac_status); } >/dev/null && {
  5794 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5795 	 test ! -s conftest.err
  5796        }; then
  5797   # Broken: success on invalid input.
  5798 continue
  5799 else
  5800   $as_echo "$as_me: failed program was:" >&5
  5801 sed 's/^/| /' conftest.$ac_ext >&5
  5803   # Passes both tests.
  5804 ac_preproc_ok=:
  5805 break
  5806 fi
  5808 rm -f conftest.err conftest.$ac_ext
  5810 done
  5811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5812 rm -f conftest.err conftest.$ac_ext
  5813 if $ac_preproc_ok; then
  5814   break
  5815 fi
  5817     done
  5818     ac_cv_prog_CPP=$CPP
  5820 fi
  5821   CPP=$ac_cv_prog_CPP
  5822 else
  5823   ac_cv_prog_CPP=$CPP
  5824 fi
  5825 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5826 $as_echo "$CPP" >&6; }
  5827 ac_preproc_ok=false
  5828 for ac_c_preproc_warn_flag in '' yes
  5829 do
  5830   # Use a header file that comes with gcc, so configuring glibc
  5831   # with a fresh cross-compiler works.
  5832   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5833   # <limits.h> exists even on freestanding compilers.
  5834   # On the NeXT, cc -E runs the code through the compiler's parser,
  5835   # not just through cpp. "Syntax error" is here to catch this case.
  5836   cat >conftest.$ac_ext <<_ACEOF
  5837 /* confdefs.h.  */
  5838 _ACEOF
  5839 cat confdefs.h >>conftest.$ac_ext
  5840 cat >>conftest.$ac_ext <<_ACEOF
  5841 /* end confdefs.h.  */
  5842 #ifdef __STDC__
  5843 # include <limits.h>
  5844 #else
  5845 # include <assert.h>
  5846 #endif
  5847 		     Syntax error
  5848 _ACEOF
  5849 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5850 case "(($ac_try" in
  5851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5852   *) ac_try_echo=$ac_try;;
  5853 esac
  5854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5855 $as_echo "$ac_try_echo") >&5
  5856   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5857   ac_status=$?
  5858   grep -v '^ *+' conftest.er1 >conftest.err
  5859   rm -f conftest.er1
  5860   cat conftest.err >&5
  5861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5862   (exit $ac_status); } >/dev/null && {
  5863 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5864 	 test ! -s conftest.err
  5865        }; then
  5867 else
  5868   $as_echo "$as_me: failed program was:" >&5
  5869 sed 's/^/| /' conftest.$ac_ext >&5
  5871   # Broken: fails on valid input.
  5872 continue
  5873 fi
  5875 rm -f conftest.err conftest.$ac_ext
  5877   # OK, works on sane cases.  Now check whether nonexistent headers
  5878   # can be detected and how.
  5879   cat >conftest.$ac_ext <<_ACEOF
  5880 /* confdefs.h.  */
  5881 _ACEOF
  5882 cat confdefs.h >>conftest.$ac_ext
  5883 cat >>conftest.$ac_ext <<_ACEOF
  5884 /* end confdefs.h.  */
  5885 #include <ac_nonexistent.h>
  5886 _ACEOF
  5887 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5888 case "(($ac_try" in
  5889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5890   *) ac_try_echo=$ac_try;;
  5891 esac
  5892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5893 $as_echo "$ac_try_echo") >&5
  5894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5895   ac_status=$?
  5896   grep -v '^ *+' conftest.er1 >conftest.err
  5897   rm -f conftest.er1
  5898   cat conftest.err >&5
  5899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5900   (exit $ac_status); } >/dev/null && {
  5901 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5902 	 test ! -s conftest.err
  5903        }; then
  5904   # Broken: success on invalid input.
  5905 continue
  5906 else
  5907   $as_echo "$as_me: failed program was:" >&5
  5908 sed 's/^/| /' conftest.$ac_ext >&5
  5910   # Passes both tests.
  5911 ac_preproc_ok=:
  5912 break
  5913 fi
  5915 rm -f conftest.err conftest.$ac_ext
  5917 done
  5918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5919 rm -f conftest.err conftest.$ac_ext
  5920 if $ac_preproc_ok; then
  5922 else
  5923   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5925 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5926 See \`config.log' for more details." >&5
  5927 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5928 See \`config.log' for more details." >&2;}
  5929    { (exit 1); exit 1; }; }; }
  5930 fi
  5932 ac_ext=c
  5933 ac_cpp='$CPP $CPPFLAGS'
  5934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5939 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5940 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5941 if test "${ac_cv_path_GREP+set}" = set; then
  5942   $as_echo_n "(cached) " >&6
  5943 else
  5944   if test -z "$GREP"; then
  5945   ac_path_GREP_found=false
  5946   # Loop through the user's path and test for each of PROGNAME-LIST
  5947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5949 do
  5950   IFS=$as_save_IFS
  5951   test -z "$as_dir" && as_dir=.
  5952   for ac_prog in grep ggrep; do
  5953     for ac_exec_ext in '' $ac_executable_extensions; do
  5954       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5955       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5956 # Check for GNU ac_path_GREP and select it if it is found.
  5957   # Check for GNU $ac_path_GREP
  5958 case `"$ac_path_GREP" --version 2>&1` in
  5959 *GNU*)
  5960   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5961 *)
  5962   ac_count=0
  5963   $as_echo_n 0123456789 >"conftest.in"
  5964   while :
  5965   do
  5966     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5967     mv "conftest.tmp" "conftest.in"
  5968     cp "conftest.in" "conftest.nl"
  5969     $as_echo 'GREP' >> "conftest.nl"
  5970     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5971     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5972     ac_count=`expr $ac_count + 1`
  5973     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5974       # Best one so far, save it but keep looking for a better one
  5975       ac_cv_path_GREP="$ac_path_GREP"
  5976       ac_path_GREP_max=$ac_count
  5977     fi
  5978     # 10*(2^10) chars as input seems more than enough
  5979     test $ac_count -gt 10 && break
  5980   done
  5981   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5982 esac
  5984       $ac_path_GREP_found && break 3
  5985     done
  5986   done
  5987 done
  5988 IFS=$as_save_IFS
  5989   if test -z "$ac_cv_path_GREP"; then
  5990     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5991 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5992    { (exit 1); exit 1; }; }
  5993   fi
  5994 else
  5995   ac_cv_path_GREP=$GREP
  5996 fi
  5998 fi
  5999 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  6000 $as_echo "$ac_cv_path_GREP" >&6; }
  6001  GREP="$ac_cv_path_GREP"
  6004 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  6005 $as_echo_n "checking for egrep... " >&6; }
  6006 if test "${ac_cv_path_EGREP+set}" = set; then
  6007   $as_echo_n "(cached) " >&6
  6008 else
  6009   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6010    then ac_cv_path_EGREP="$GREP -E"
  6011    else
  6012      if test -z "$EGREP"; then
  6013   ac_path_EGREP_found=false
  6014   # Loop through the user's path and test for each of PROGNAME-LIST
  6015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6017 do
  6018   IFS=$as_save_IFS
  6019   test -z "$as_dir" && as_dir=.
  6020   for ac_prog in egrep; do
  6021     for ac_exec_ext in '' $ac_executable_extensions; do
  6022       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  6023       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  6024 # Check for GNU ac_path_EGREP and select it if it is found.
  6025   # Check for GNU $ac_path_EGREP
  6026 case `"$ac_path_EGREP" --version 2>&1` in
  6027 *GNU*)
  6028   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6029 *)
  6030   ac_count=0
  6031   $as_echo_n 0123456789 >"conftest.in"
  6032   while :
  6033   do
  6034     cat "conftest.in" "conftest.in" >"conftest.tmp"
  6035     mv "conftest.tmp" "conftest.in"
  6036     cp "conftest.in" "conftest.nl"
  6037     $as_echo 'EGREP' >> "conftest.nl"
  6038     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6039     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6040     ac_count=`expr $ac_count + 1`
  6041     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6042       # Best one so far, save it but keep looking for a better one
  6043       ac_cv_path_EGREP="$ac_path_EGREP"
  6044       ac_path_EGREP_max=$ac_count
  6045     fi
  6046     # 10*(2^10) chars as input seems more than enough
  6047     test $ac_count -gt 10 && break
  6048   done
  6049   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6050 esac
  6052       $ac_path_EGREP_found && break 3
  6053     done
  6054   done
  6055 done
  6056 IFS=$as_save_IFS
  6057   if test -z "$ac_cv_path_EGREP"; then
  6058     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  6059 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  6060    { (exit 1); exit 1; }; }
  6061   fi
  6062 else
  6063   ac_cv_path_EGREP=$EGREP
  6064 fi
  6066    fi
  6067 fi
  6068 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  6069 $as_echo "$ac_cv_path_EGREP" >&6; }
  6070  EGREP="$ac_cv_path_EGREP"
  6073 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6074 $as_echo_n "checking for ANSI C header files... " >&6; }
  6075 if test "${ac_cv_header_stdc+set}" = set; then
  6076   $as_echo_n "(cached) " >&6
  6077 else
  6078   cat >conftest.$ac_ext <<_ACEOF
  6079 /* confdefs.h.  */
  6080 _ACEOF
  6081 cat confdefs.h >>conftest.$ac_ext
  6082 cat >>conftest.$ac_ext <<_ACEOF
  6083 /* end confdefs.h.  */
  6084 #include <stdlib.h>
  6085 #include <stdarg.h>
  6086 #include <string.h>
  6087 #include <float.h>
  6089 int
  6090 main ()
  6094   return 0;
  6096 _ACEOF
  6097 rm -f conftest.$ac_objext
  6098 if { (ac_try="$ac_compile"
  6099 case "(($ac_try" in
  6100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6101   *) ac_try_echo=$ac_try;;
  6102 esac
  6103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6104 $as_echo "$ac_try_echo") >&5
  6105   (eval "$ac_compile") 2>conftest.er1
  6106   ac_status=$?
  6107   grep -v '^ *+' conftest.er1 >conftest.err
  6108   rm -f conftest.er1
  6109   cat conftest.err >&5
  6110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6111   (exit $ac_status); } && {
  6112 	 test -z "$ac_c_werror_flag" ||
  6113 	 test ! -s conftest.err
  6114        } && test -s conftest.$ac_objext; then
  6115   ac_cv_header_stdc=yes
  6116 else
  6117   $as_echo "$as_me: failed program was:" >&5
  6118 sed 's/^/| /' conftest.$ac_ext >&5
  6120 	ac_cv_header_stdc=no
  6121 fi
  6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6125 if test $ac_cv_header_stdc = yes; then
  6126   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6127   cat >conftest.$ac_ext <<_ACEOF
  6128 /* confdefs.h.  */
  6129 _ACEOF
  6130 cat confdefs.h >>conftest.$ac_ext
  6131 cat >>conftest.$ac_ext <<_ACEOF
  6132 /* end confdefs.h.  */
  6133 #include <string.h>
  6135 _ACEOF
  6136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6137   $EGREP "memchr" >/dev/null 2>&1; then
  6139 else
  6140   ac_cv_header_stdc=no
  6141 fi
  6142 rm -f conftest*
  6144 fi
  6146 if test $ac_cv_header_stdc = yes; then
  6147   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6148   cat >conftest.$ac_ext <<_ACEOF
  6149 /* confdefs.h.  */
  6150 _ACEOF
  6151 cat confdefs.h >>conftest.$ac_ext
  6152 cat >>conftest.$ac_ext <<_ACEOF
  6153 /* end confdefs.h.  */
  6154 #include <stdlib.h>
  6156 _ACEOF
  6157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6158   $EGREP "free" >/dev/null 2>&1; then
  6160 else
  6161   ac_cv_header_stdc=no
  6162 fi
  6163 rm -f conftest*
  6165 fi
  6167 if test $ac_cv_header_stdc = yes; then
  6168   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6169   if test "$cross_compiling" = yes; then
  6171 else
  6172   cat >conftest.$ac_ext <<_ACEOF
  6173 /* confdefs.h.  */
  6174 _ACEOF
  6175 cat confdefs.h >>conftest.$ac_ext
  6176 cat >>conftest.$ac_ext <<_ACEOF
  6177 /* end confdefs.h.  */
  6178 #include <ctype.h>
  6179 #include <stdlib.h>
  6180 #if ((' ' & 0x0FF) == 0x020)
  6181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6183 #else
  6184 # define ISLOWER(c) \
  6185 		   (('a' <= (c) && (c) <= 'i') \
  6186 		     || ('j' <= (c) && (c) <= 'r') \
  6187 		     || ('s' <= (c) && (c) <= 'z'))
  6188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6189 #endif
  6191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6192 int
  6193 main ()
  6195   int i;
  6196   for (i = 0; i < 256; i++)
  6197     if (XOR (islower (i), ISLOWER (i))
  6198 	|| toupper (i) != TOUPPER (i))
  6199       return 2;
  6200   return 0;
  6202 _ACEOF
  6203 rm -f conftest$ac_exeext
  6204 if { (ac_try="$ac_link"
  6205 case "(($ac_try" in
  6206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6207   *) ac_try_echo=$ac_try;;
  6208 esac
  6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6210 $as_echo "$ac_try_echo") >&5
  6211   (eval "$ac_link") 2>&5
  6212   ac_status=$?
  6213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6215   { (case "(($ac_try" in
  6216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6217   *) ac_try_echo=$ac_try;;
  6218 esac
  6219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6220 $as_echo "$ac_try_echo") >&5
  6221   (eval "$ac_try") 2>&5
  6222   ac_status=$?
  6223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6224   (exit $ac_status); }; }; then
  6226 else
  6227   $as_echo "$as_me: program exited with status $ac_status" >&5
  6228 $as_echo "$as_me: failed program was:" >&5
  6229 sed 's/^/| /' conftest.$ac_ext >&5
  6231 ( exit $ac_status )
  6232 ac_cv_header_stdc=no
  6233 fi
  6234 rm -rf conftest.dSYM
  6235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6236 fi
  6239 fi
  6240 fi
  6241 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6242 $as_echo "$ac_cv_header_stdc" >&6; }
  6243 if test $ac_cv_header_stdc = yes; then
  6245 cat >>confdefs.h <<\_ACEOF
  6246 #define STDC_HEADERS 1
  6247 _ACEOF
  6249 fi
  6251 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6262 		  inttypes.h stdint.h unistd.h
  6263 do
  6264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6266 $as_echo_n "checking for $ac_header... " >&6; }
  6267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6268   $as_echo_n "(cached) " >&6
  6269 else
  6270   cat >conftest.$ac_ext <<_ACEOF
  6271 /* confdefs.h.  */
  6272 _ACEOF
  6273 cat confdefs.h >>conftest.$ac_ext
  6274 cat >>conftest.$ac_ext <<_ACEOF
  6275 /* end confdefs.h.  */
  6276 $ac_includes_default
  6278 #include <$ac_header>
  6279 _ACEOF
  6280 rm -f conftest.$ac_objext
  6281 if { (ac_try="$ac_compile"
  6282 case "(($ac_try" in
  6283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6284   *) ac_try_echo=$ac_try;;
  6285 esac
  6286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6287 $as_echo "$ac_try_echo") >&5
  6288   (eval "$ac_compile") 2>conftest.er1
  6289   ac_status=$?
  6290   grep -v '^ *+' conftest.er1 >conftest.err
  6291   rm -f conftest.er1
  6292   cat conftest.err >&5
  6293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6294   (exit $ac_status); } && {
  6295 	 test -z "$ac_c_werror_flag" ||
  6296 	 test ! -s conftest.err
  6297        } && test -s conftest.$ac_objext; then
  6298   eval "$as_ac_Header=yes"
  6299 else
  6300   $as_echo "$as_me: failed program was:" >&5
  6301 sed 's/^/| /' conftest.$ac_ext >&5
  6303 	eval "$as_ac_Header=no"
  6304 fi
  6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6307 fi
  6308 ac_res=`eval 'as_val=${'$as_ac_Header'}
  6309 		 $as_echo "$as_val"'`
  6310 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6311 $as_echo "$ac_res" >&6; }
  6312 as_val=`eval 'as_val=${'$as_ac_Header'}
  6313 		 $as_echo "$as_val"'`
  6314    if test "x$as_val" = x""yes; then
  6315   cat >>confdefs.h <<_ACEOF
  6316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6317 _ACEOF
  6319 fi
  6321 done
  6324 # The cast to long int works around a bug in the HP C Compiler
  6325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6327 # This bug is HP SR number 8606223364.
  6328 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
  6329 $as_echo_n "checking size of void *... " >&6; }
  6330 if test "${ac_cv_sizeof_void_p+set}" = set; then
  6331   $as_echo_n "(cached) " >&6
  6332 else
  6333   if test "$cross_compiling" = yes; then
  6334   # Depending upon the size, compute the lo and hi bounds.
  6335 cat >conftest.$ac_ext <<_ACEOF
  6336 /* confdefs.h.  */
  6337 _ACEOF
  6338 cat confdefs.h >>conftest.$ac_ext
  6339 cat >>conftest.$ac_ext <<_ACEOF
  6340 /* end confdefs.h.  */
  6341 $ac_includes_default
  6342 int
  6343 main ()
  6345 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
  6346 test_array [0] = 0
  6349   return 0;
  6351 _ACEOF
  6352 rm -f conftest.$ac_objext
  6353 if { (ac_try="$ac_compile"
  6354 case "(($ac_try" in
  6355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6356   *) ac_try_echo=$ac_try;;
  6357 esac
  6358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6359 $as_echo "$ac_try_echo") >&5
  6360   (eval "$ac_compile") 2>conftest.er1
  6361   ac_status=$?
  6362   grep -v '^ *+' conftest.er1 >conftest.err
  6363   rm -f conftest.er1
  6364   cat conftest.err >&5
  6365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6366   (exit $ac_status); } && {
  6367 	 test -z "$ac_c_werror_flag" ||
  6368 	 test ! -s conftest.err
  6369        } && test -s conftest.$ac_objext; then
  6370   ac_lo=0 ac_mid=0
  6371   while :; do
  6372     cat >conftest.$ac_ext <<_ACEOF
  6373 /* confdefs.h.  */
  6374 _ACEOF
  6375 cat confdefs.h >>conftest.$ac_ext
  6376 cat >>conftest.$ac_ext <<_ACEOF
  6377 /* end confdefs.h.  */
  6378 $ac_includes_default
  6379 int
  6380 main ()
  6382 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  6383 test_array [0] = 0
  6386   return 0;
  6388 _ACEOF
  6389 rm -f conftest.$ac_objext
  6390 if { (ac_try="$ac_compile"
  6391 case "(($ac_try" in
  6392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6393   *) ac_try_echo=$ac_try;;
  6394 esac
  6395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6396 $as_echo "$ac_try_echo") >&5
  6397   (eval "$ac_compile") 2>conftest.er1
  6398   ac_status=$?
  6399   grep -v '^ *+' conftest.er1 >conftest.err
  6400   rm -f conftest.er1
  6401   cat conftest.err >&5
  6402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6403   (exit $ac_status); } && {
  6404 	 test -z "$ac_c_werror_flag" ||
  6405 	 test ! -s conftest.err
  6406        } && test -s conftest.$ac_objext; then
  6407   ac_hi=$ac_mid; break
  6408 else
  6409   $as_echo "$as_me: failed program was:" >&5
  6410 sed 's/^/| /' conftest.$ac_ext >&5
  6412 	ac_lo=`expr $ac_mid + 1`
  6413 			if test $ac_lo -le $ac_mid; then
  6414 			  ac_lo= ac_hi=
  6415 			  break
  6416 			fi
  6417 			ac_mid=`expr 2 '*' $ac_mid + 1`
  6418 fi
  6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6421   done
  6422 else
  6423   $as_echo "$as_me: failed program was:" >&5
  6424 sed 's/^/| /' conftest.$ac_ext >&5
  6426 	cat >conftest.$ac_ext <<_ACEOF
  6427 /* confdefs.h.  */
  6428 _ACEOF
  6429 cat confdefs.h >>conftest.$ac_ext
  6430 cat >>conftest.$ac_ext <<_ACEOF
  6431 /* end confdefs.h.  */
  6432 $ac_includes_default
  6433 int
  6434 main ()
  6436 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
  6437 test_array [0] = 0
  6440   return 0;
  6442 _ACEOF
  6443 rm -f conftest.$ac_objext
  6444 if { (ac_try="$ac_compile"
  6445 case "(($ac_try" in
  6446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6447   *) ac_try_echo=$ac_try;;
  6448 esac
  6449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6450 $as_echo "$ac_try_echo") >&5
  6451   (eval "$ac_compile") 2>conftest.er1
  6452   ac_status=$?
  6453   grep -v '^ *+' conftest.er1 >conftest.err
  6454   rm -f conftest.er1
  6455   cat conftest.err >&5
  6456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6457   (exit $ac_status); } && {
  6458 	 test -z "$ac_c_werror_flag" ||
  6459 	 test ! -s conftest.err
  6460        } && test -s conftest.$ac_objext; then
  6461   ac_hi=-1 ac_mid=-1
  6462   while :; do
  6463     cat >conftest.$ac_ext <<_ACEOF
  6464 /* confdefs.h.  */
  6465 _ACEOF
  6466 cat confdefs.h >>conftest.$ac_ext
  6467 cat >>conftest.$ac_ext <<_ACEOF
  6468 /* end confdefs.h.  */
  6469 $ac_includes_default
  6470 int
  6471 main ()
  6473 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
  6474 test_array [0] = 0
  6477   return 0;
  6479 _ACEOF
  6480 rm -f conftest.$ac_objext
  6481 if { (ac_try="$ac_compile"
  6482 case "(($ac_try" in
  6483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6484   *) ac_try_echo=$ac_try;;
  6485 esac
  6486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6487 $as_echo "$ac_try_echo") >&5
  6488   (eval "$ac_compile") 2>conftest.er1
  6489   ac_status=$?
  6490   grep -v '^ *+' conftest.er1 >conftest.err
  6491   rm -f conftest.er1
  6492   cat conftest.err >&5
  6493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6494   (exit $ac_status); } && {
  6495 	 test -z "$ac_c_werror_flag" ||
  6496 	 test ! -s conftest.err
  6497        } && test -s conftest.$ac_objext; then
  6498   ac_lo=$ac_mid; break
  6499 else
  6500   $as_echo "$as_me: failed program was:" >&5
  6501 sed 's/^/| /' conftest.$ac_ext >&5
  6503 	ac_hi=`expr '(' $ac_mid ')' - 1`
  6504 			if test $ac_mid -le $ac_hi; then
  6505 			  ac_lo= ac_hi=
  6506 			  break
  6507 			fi
  6508 			ac_mid=`expr 2 '*' $ac_mid`
  6509 fi
  6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6512   done
  6513 else
  6514   $as_echo "$as_me: failed program was:" >&5
  6515 sed 's/^/| /' conftest.$ac_ext >&5
  6517 	ac_lo= ac_hi=
  6518 fi
  6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6521 fi
  6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6524 # Binary search between lo and hi bounds.
  6525 while test "x$ac_lo" != "x$ac_hi"; do
  6526   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6527   cat >conftest.$ac_ext <<_ACEOF
  6528 /* confdefs.h.  */
  6529 _ACEOF
  6530 cat confdefs.h >>conftest.$ac_ext
  6531 cat >>conftest.$ac_ext <<_ACEOF
  6532 /* end confdefs.h.  */
  6533 $ac_includes_default
  6534 int
  6535 main ()
  6537 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  6538 test_array [0] = 0
  6541   return 0;
  6543 _ACEOF
  6544 rm -f conftest.$ac_objext
  6545 if { (ac_try="$ac_compile"
  6546 case "(($ac_try" in
  6547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6548   *) ac_try_echo=$ac_try;;
  6549 esac
  6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6551 $as_echo "$ac_try_echo") >&5
  6552   (eval "$ac_compile") 2>conftest.er1
  6553   ac_status=$?
  6554   grep -v '^ *+' conftest.er1 >conftest.err
  6555   rm -f conftest.er1
  6556   cat conftest.err >&5
  6557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6558   (exit $ac_status); } && {
  6559 	 test -z "$ac_c_werror_flag" ||
  6560 	 test ! -s conftest.err
  6561        } && test -s conftest.$ac_objext; then
  6562   ac_hi=$ac_mid
  6563 else
  6564   $as_echo "$as_me: failed program was:" >&5
  6565 sed 's/^/| /' conftest.$ac_ext >&5
  6567 	ac_lo=`expr '(' $ac_mid ')' + 1`
  6568 fi
  6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6571 done
  6572 case $ac_lo in
  6573 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  6574 '') if test "$ac_cv_type_void_p" = yes; then
  6575      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6577 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6578 See \`config.log' for more details." >&5
  6579 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6580 See \`config.log' for more details." >&2;}
  6581    { (exit 77); exit 77; }; }; }
  6582    else
  6583      ac_cv_sizeof_void_p=0
  6584    fi ;;
  6585 esac
  6586 else
  6587   cat >conftest.$ac_ext <<_ACEOF
  6588 /* confdefs.h.  */
  6589 _ACEOF
  6590 cat confdefs.h >>conftest.$ac_ext
  6591 cat >>conftest.$ac_ext <<_ACEOF
  6592 /* end confdefs.h.  */
  6593 $ac_includes_default
  6594 static long int longval () { return (long int) (sizeof (void *)); }
  6595 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
  6596 #include <stdio.h>
  6597 #include <stdlib.h>
  6598 int
  6599 main ()
  6602   FILE *f = fopen ("conftest.val", "w");
  6603   if (! f)
  6604     return 1;
  6605   if (((long int) (sizeof (void *))) < 0)
  6607       long int i = longval ();
  6608       if (i != ((long int) (sizeof (void *))))
  6609 	return 1;
  6610       fprintf (f, "%ld", i);
  6612   else
  6614       unsigned long int i = ulongval ();
  6615       if (i != ((long int) (sizeof (void *))))
  6616 	return 1;
  6617       fprintf (f, "%lu", i);
  6619   /* Do not output a trailing newline, as this causes \r\n confusion
  6620      on some platforms.  */
  6621   return ferror (f) || fclose (f) != 0;
  6624   return 0;
  6626 _ACEOF
  6627 rm -f conftest$ac_exeext
  6628 if { (ac_try="$ac_link"
  6629 case "(($ac_try" in
  6630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6631   *) ac_try_echo=$ac_try;;
  6632 esac
  6633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6634 $as_echo "$ac_try_echo") >&5
  6635   (eval "$ac_link") 2>&5
  6636   ac_status=$?
  6637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6639   { (case "(($ac_try" in
  6640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6641   *) ac_try_echo=$ac_try;;
  6642 esac
  6643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6644 $as_echo "$ac_try_echo") >&5
  6645   (eval "$ac_try") 2>&5
  6646   ac_status=$?
  6647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6648   (exit $ac_status); }; }; then
  6649   ac_cv_sizeof_void_p=`cat conftest.val`
  6650 else
  6651   $as_echo "$as_me: program exited with status $ac_status" >&5
  6652 $as_echo "$as_me: failed program was:" >&5
  6653 sed 's/^/| /' conftest.$ac_ext >&5
  6655 ( exit $ac_status )
  6656 if test "$ac_cv_type_void_p" = yes; then
  6657      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6659 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6660 See \`config.log' for more details." >&5
  6661 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6662 See \`config.log' for more details." >&2;}
  6663    { (exit 77); exit 77; }; }; }
  6664    else
  6665      ac_cv_sizeof_void_p=0
  6666    fi
  6667 fi
  6668 rm -rf conftest.dSYM
  6669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6670 fi
  6671 rm -f conftest.val
  6672 fi
  6673 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  6674 $as_echo "$ac_cv_sizeof_void_p" >&6; }
  6678 cat >>confdefs.h <<_ACEOF
  6679 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  6680 _ACEOF
  6683 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6684 $as_echo_n "checking for ANSI C header files... " >&6; }
  6685 if test "${ac_cv_header_stdc+set}" = set; then
  6686   $as_echo_n "(cached) " >&6
  6687 else
  6688   cat >conftest.$ac_ext <<_ACEOF
  6689 /* confdefs.h.  */
  6690 _ACEOF
  6691 cat confdefs.h >>conftest.$ac_ext
  6692 cat >>conftest.$ac_ext <<_ACEOF
  6693 /* end confdefs.h.  */
  6694 #include <stdlib.h>
  6695 #include <stdarg.h>
  6696 #include <string.h>
  6697 #include <float.h>
  6699 int
  6700 main ()
  6704   return 0;
  6706 _ACEOF
  6707 rm -f conftest.$ac_objext
  6708 if { (ac_try="$ac_compile"
  6709 case "(($ac_try" in
  6710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6711   *) ac_try_echo=$ac_try;;
  6712 esac
  6713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6714 $as_echo "$ac_try_echo") >&5
  6715   (eval "$ac_compile") 2>conftest.er1
  6716   ac_status=$?
  6717   grep -v '^ *+' conftest.er1 >conftest.err
  6718   rm -f conftest.er1
  6719   cat conftest.err >&5
  6720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6721   (exit $ac_status); } && {
  6722 	 test -z "$ac_c_werror_flag" ||
  6723 	 test ! -s conftest.err
  6724        } && test -s conftest.$ac_objext; then
  6725   ac_cv_header_stdc=yes
  6726 else
  6727   $as_echo "$as_me: failed program was:" >&5
  6728 sed 's/^/| /' conftest.$ac_ext >&5
  6730 	ac_cv_header_stdc=no
  6731 fi
  6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6735 if test $ac_cv_header_stdc = yes; then
  6736   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6737   cat >conftest.$ac_ext <<_ACEOF
  6738 /* confdefs.h.  */
  6739 _ACEOF
  6740 cat confdefs.h >>conftest.$ac_ext
  6741 cat >>conftest.$ac_ext <<_ACEOF
  6742 /* end confdefs.h.  */
  6743 #include <string.h>
  6745 _ACEOF
  6746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6747   $EGREP "memchr" >/dev/null 2>&1; then
  6749 else
  6750   ac_cv_header_stdc=no
  6751 fi
  6752 rm -f conftest*
  6754 fi
  6756 if test $ac_cv_header_stdc = yes; then
  6757   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6758   cat >conftest.$ac_ext <<_ACEOF
  6759 /* confdefs.h.  */
  6760 _ACEOF
  6761 cat confdefs.h >>conftest.$ac_ext
  6762 cat >>conftest.$ac_ext <<_ACEOF
  6763 /* end confdefs.h.  */
  6764 #include <stdlib.h>
  6766 _ACEOF
  6767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6768   $EGREP "free" >/dev/null 2>&1; then
  6770 else
  6771   ac_cv_header_stdc=no
  6772 fi
  6773 rm -f conftest*
  6775 fi
  6777 if test $ac_cv_header_stdc = yes; then
  6778   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6779   if test "$cross_compiling" = yes; then
  6781 else
  6782   cat >conftest.$ac_ext <<_ACEOF
  6783 /* confdefs.h.  */
  6784 _ACEOF
  6785 cat confdefs.h >>conftest.$ac_ext
  6786 cat >>conftest.$ac_ext <<_ACEOF
  6787 /* end confdefs.h.  */
  6788 #include <ctype.h>
  6789 #include <stdlib.h>
  6790 #if ((' ' & 0x0FF) == 0x020)
  6791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6793 #else
  6794 # define ISLOWER(c) \
  6795 		   (('a' <= (c) && (c) <= 'i') \
  6796 		     || ('j' <= (c) && (c) <= 'r') \
  6797 		     || ('s' <= (c) && (c) <= 'z'))
  6798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6799 #endif
  6801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6802 int
  6803 main ()
  6805   int i;
  6806   for (i = 0; i < 256; i++)
  6807     if (XOR (islower (i), ISLOWER (i))
  6808 	|| toupper (i) != TOUPPER (i))
  6809       return 2;
  6810   return 0;
  6812 _ACEOF
  6813 rm -f conftest$ac_exeext
  6814 if { (ac_try="$ac_link"
  6815 case "(($ac_try" in
  6816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6817   *) ac_try_echo=$ac_try;;
  6818 esac
  6819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6820 $as_echo "$ac_try_echo") >&5
  6821   (eval "$ac_link") 2>&5
  6822   ac_status=$?
  6823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6825   { (case "(($ac_try" in
  6826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6827   *) ac_try_echo=$ac_try;;
  6828 esac
  6829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6830 $as_echo "$ac_try_echo") >&5
  6831   (eval "$ac_try") 2>&5
  6832   ac_status=$?
  6833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6834   (exit $ac_status); }; }; then
  6836 else
  6837   $as_echo "$as_me: program exited with status $ac_status" >&5
  6838 $as_echo "$as_me: failed program was:" >&5
  6839 sed 's/^/| /' conftest.$ac_ext >&5
  6841 ( exit $ac_status )
  6842 ac_cv_header_stdc=no
  6843 fi
  6844 rm -rf conftest.dSYM
  6845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6846 fi
  6849 fi
  6850 fi
  6851 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6852 $as_echo "$ac_cv_header_stdc" >&6; }
  6853 if test $ac_cv_header_stdc = yes; then
  6855 cat >>confdefs.h <<\_ACEOF
  6856 #define STDC_HEADERS 1
  6857 _ACEOF
  6859 fi
  6861 # Make sure we can run config.sub.
  6862 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6863   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6864 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6865    { (exit 1); exit 1; }; }
  6867 { $as_echo "$as_me:$LINENO: checking build system type" >&5
  6868 $as_echo_n "checking build system type... " >&6; }
  6869 if test "${ac_cv_build+set}" = set; then
  6870   $as_echo_n "(cached) " >&6
  6871 else
  6872   ac_build_alias=$build_alias
  6873 test "x$ac_build_alias" = x &&
  6874   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6875 test "x$ac_build_alias" = x &&
  6876   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6877 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6878    { (exit 1); exit 1; }; }
  6879 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6880   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6881 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6882    { (exit 1); exit 1; }; }
  6884 fi
  6885 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6886 $as_echo "$ac_cv_build" >&6; }
  6887 case $ac_cv_build in
  6888 *-*-*) ;;
  6889 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6890 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  6891    { (exit 1); exit 1; }; };;
  6892 esac
  6893 build=$ac_cv_build
  6894 ac_save_IFS=$IFS; IFS='-'
  6895 set x $ac_cv_build
  6896 shift
  6897 build_cpu=$1
  6898 build_vendor=$2
  6899 shift; shift
  6900 # Remember, the first character of IFS is used to create $*,
  6901 # except with old shells:
  6902 build_os=$*
  6903 IFS=$ac_save_IFS
  6904 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6907 { $as_echo "$as_me:$LINENO: checking host system type" >&5
  6908 $as_echo_n "checking host system type... " >&6; }
  6909 if test "${ac_cv_host+set}" = set; then
  6910   $as_echo_n "(cached) " >&6
  6911 else
  6912   if test "x$host_alias" = x; then
  6913   ac_cv_host=$ac_cv_build
  6914 else
  6915   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6916     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6917 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6918    { (exit 1); exit 1; }; }
  6919 fi
  6921 fi
  6922 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6923 $as_echo "$ac_cv_host" >&6; }
  6924 case $ac_cv_host in
  6925 *-*-*) ;;
  6926 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6927 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  6928    { (exit 1); exit 1; }; };;
  6929 esac
  6930 host=$ac_cv_host
  6931 ac_save_IFS=$IFS; IFS='-'
  6932 set x $ac_cv_host
  6933 shift
  6934 host_cpu=$1
  6935 host_vendor=$2
  6936 shift; shift
  6937 # Remember, the first character of IFS is used to create $*,
  6938 # except with old shells:
  6939 host_os=$*
  6940 IFS=$ac_save_IFS
  6941 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6946 depcc="$OBJC" am_compiler_list='gcc3 gcc'
  6948 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6949 $as_echo_n "checking dependency style of $depcc... " >&6; }
  6950 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
  6951   $as_echo_n "(cached) " >&6
  6952 else
  6953   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6954   # We make a subdir and do the tests there.  Otherwise we can end up
  6955   # making bogus files that we don't know about and never remove.  For
  6956   # instance it was reported that on HP-UX the gcc test will end up
  6957   # making a dummy file named `D' -- because `-MD' means `put the output
  6958   # in D'.
  6959   mkdir conftest.dir
  6960   # Copy depcomp to subdir because otherwise we won't find it if we're
  6961   # using a relative directory.
  6962   cp "$am_depcomp" conftest.dir
  6963   cd conftest.dir
  6964   # We will build objects and dependencies in a subdirectory because
  6965   # it helps to detect inapplicable dependency modes.  For instance
  6966   # both Tru64's cc and ICC support -MD to output dependencies as a
  6967   # side effect of compilation, but ICC will put the dependencies in
  6968   # the current directory while Tru64 will put them in the object
  6969   # directory.
  6970   mkdir sub
  6972   am_cv_OBJC_dependencies_compiler_type=none
  6973   if test "$am_compiler_list" = ""; then
  6974      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6975   fi
  6976   for depmode in $am_compiler_list; do
  6977     # Setup a source with many dependencies, because some compilers
  6978     # like to wrap large dependency lists on column 80 (with \), and
  6979     # we should not choose a depcomp mode which is confused by this.
  6981     # We need to recreate these files for each test, as the compiler may
  6982     # overwrite some of them when testing with obscure command lines.
  6983     # This happens at least with the AIX C compiler.
  6984     : > sub/conftest.c
  6985     for i in 1 2 3 4 5 6; do
  6986       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6987       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6988       # Solaris 8's {/usr,}/bin/sh.
  6989       touch sub/conftst$i.h
  6990     done
  6991     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6993     case $depmode in
  6994     nosideeffect)
  6995       # after this tag, mechanisms are not by side-effect, so they'll
  6996       # only be used when explicitly requested
  6997       if test "x$enable_dependency_tracking" = xyes; then
  6998 	continue
  6999       else
  7000 	break
  7001       fi
  7002       ;;
  7003     none) break ;;
  7004     esac
  7005     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7006     # mode.  It turns out that the SunPro C++ compiler does not properly
  7007     # handle `-M -o', and we need to detect this.
  7008     if depmode=$depmode \
  7009        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  7010        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7011        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  7012          >/dev/null 2>conftest.err &&
  7013        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7014        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  7015        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7016       # icc doesn't choke on unknown options, it will just issue warnings
  7017       # or remarks (even with -Werror).  So we grep stderr for any message
  7018       # that says an option was ignored or not supported.
  7019       # When given -MP, icc 7.0 and 7.1 complain thusly:
  7020       #   icc: Command line warning: ignoring option '-M'; no argument required
  7021       # The diagnosis changed in icc 8.0:
  7022       #   icc: Command line remark: option '-MP' not supported
  7023       if (grep 'ignoring option' conftest.err ||
  7024           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7025         am_cv_OBJC_dependencies_compiler_type=$depmode
  7026         break
  7027       fi
  7028     fi
  7029   done
  7031   cd ..
  7032   rm -rf conftest.dir
  7033 else
  7034   am_cv_OBJC_dependencies_compiler_type=none
  7035 fi
  7037 fi
  7038 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
  7039 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
  7040 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
  7044 if
  7045   test "x$enable_dependency_tracking" != xno \
  7046   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  7047   am__fastdepOBJC_TRUE=
  7048   am__fastdepOBJC_FALSE='#'
  7049 else
  7050   am__fastdepOBJC_TRUE='#'
  7051   am__fastdepOBJC_FALSE=
  7052 fi
  7056 # Extract the first word of "pod2man", so it can be a program name with args.
  7057 set dummy pod2man; ac_word=$2
  7058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7059 $as_echo_n "checking for $ac_word... " >&6; }
  7060 if test "${ac_cv_path_POD2MAN+set}" = set; then
  7061   $as_echo_n "(cached) " >&6
  7062 else
  7063   case $POD2MAN in
  7064   [\\/]* | ?:[\\/]*)
  7065   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  7066   ;;
  7067   *)
  7068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7069 for as_dir in $PATH
  7070 do
  7071   IFS=$as_save_IFS
  7072   test -z "$as_dir" && as_dir=.
  7073   for ac_exec_ext in '' $ac_executable_extensions; do
  7074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7075     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  7076     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7077     break 2
  7078   fi
  7079 done
  7080 done
  7081 IFS=$as_save_IFS
  7083   ;;
  7084 esac
  7085 fi
  7086 POD2MAN=$ac_cv_path_POD2MAN
  7087 if test -n "$POD2MAN"; then
  7088   { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
  7089 $as_echo "$POD2MAN" >&6; }
  7090 else
  7091   { $as_echo "$as_me:$LINENO: result: no" >&5
  7092 $as_echo "no" >&6; }
  7093 fi
  7096 # Extract the first word of "pod2html", so it can be a program name with args.
  7097 set dummy pod2html; ac_word=$2
  7098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7099 $as_echo_n "checking for $ac_word... " >&6; }
  7100 if test "${ac_cv_path_POD2HTML+set}" = set; then
  7101   $as_echo_n "(cached) " >&6
  7102 else
  7103   case $POD2HTML in
  7104   [\\/]* | ?:[\\/]*)
  7105   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  7106   ;;
  7107   *)
  7108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7109 for as_dir in $PATH
  7110 do
  7111   IFS=$as_save_IFS
  7112   test -z "$as_dir" && as_dir=.
  7113   for ac_exec_ext in '' $ac_executable_extensions; do
  7114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7115     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  7116     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7117     break 2
  7118   fi
  7119 done
  7120 done
  7121 IFS=$as_save_IFS
  7123   ;;
  7124 esac
  7125 fi
  7126 POD2HTML=$ac_cv_path_POD2HTML
  7127 if test -n "$POD2HTML"; then
  7128   { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
  7129 $as_echo "$POD2HTML" >&6; }
  7130 else
  7131   { $as_echo "$as_me:$LINENO: result: no" >&5
  7132 $as_echo "no" >&6; }
  7133 fi
  7138 # Check whether --enable-strict-warn was given.
  7139 if test "${enable_strict_warn+set}" = set; then
  7140   enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
  7141       enable_strictwarn=yes
  7142     fi
  7143 fi
  7145 # Check whether --enable-translator was given.
  7146 if test "${enable_translator+set}" = set; then
  7147   enableval=$enable_translator; true
  7148 else
  7149   enable_translator=yes
  7150 fi
  7152 # Check whether --enable-optimized was given.
  7153 if test "${enable_optimized+set}" = set; then
  7154   enableval=$enable_optimized; true
  7155 else
  7156   enable_optimized=yes
  7157 fi
  7159 # Check whether --enable-shared was given.
  7160 if test "${enable_shared+set}" = set; then
  7161   enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
  7162 else
  7163   enable_shared=cond
  7164 fi
  7166 # Check whether --enable-profiled was given.
  7167 if test "${enable_profiled+set}" = set; then
  7168   enableval=$enable_profiled; if test "$enableval" == "yes"; then
  7169       enable_profiled=yes;
  7170     fi
  7171 fi
  7173 # Check whether --enable-trace was given.
  7174 if test "${enable_trace+set}" = set; then
  7175   enableval=$enable_trace; if test "$enableval" == "yes"; then
  7177 cat >>confdefs.h <<\_ACEOF
  7178 #define ENABLE_TRACE_IO 1
  7179 _ACEOF
  7181     fi
  7182 fi
  7184 # Check whether --enable-watch was given.
  7185 if test "${enable_watch+set}" = set; then
  7186   enableval=$enable_watch; if test "$enableval" == "yes"; then
  7188 cat >>confdefs.h <<\_ACEOF
  7189 #define ENABLE_WATCH 1
  7190 _ACEOF
  7192    fi
  7193 fi
  7195 # Check whether --enable-sh4stats was given.
  7196 if test "${enable_sh4stats+set}" = set; then
  7197   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  7199 cat >>confdefs.h <<\_ACEOF
  7200 #define ENABLE_SH4STATS 1
  7201 _ACEOF
  7203     fi
  7204 fi
  7207 # Check whether --with-osmesa was given.
  7208 if test "${with_osmesa+set}" = set; then
  7209   withval=$with_osmesa;
  7210 else
  7211   with_osmesa=no
  7212 fi
  7215 # Check whether --with-gtk was given.
  7216 if test "${with_gtk+set}" = set; then
  7217   withval=$with_gtk; with_gtk=yes
  7218 else
  7219   with_gtk=x11
  7220 fi
  7223 # Check whether --with-esd was given.
  7224 if test "${with_esd+set}" = set; then
  7225   withval=$with_esd;
  7226 fi
  7229 # Check whether --with-pulse was given.
  7230 if test "${with_pulse+set}" = set; then
  7231   withval=$with_pulse;
  7232 fi
  7235 # Check whether --with-sdl was given.
  7236 if test "${with_sdl+set}" = set; then
  7237   withval=$with_sdl;
  7238 fi
  7245 ac_ext=m
  7246 ac_cpp='$OBJCPP $CPPFLAGS'
  7247 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7248 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7249 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  7250 if test -n "$ac_tool_prefix"; then
  7251   for ac_prog in gcc objcc objc cc CC
  7252   do
  7253     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7256 $as_echo_n "checking for $ac_word... " >&6; }
  7257 if test "${ac_cv_prog_OBJC+set}" = set; then
  7258   $as_echo_n "(cached) " >&6
  7259 else
  7260   if test -n "$OBJC"; then
  7261   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  7262 else
  7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7264 for as_dir in $PATH
  7265 do
  7266   IFS=$as_save_IFS
  7267   test -z "$as_dir" && as_dir=.
  7268   for ac_exec_ext in '' $ac_executable_extensions; do
  7269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7270     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  7271     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7272     break 2
  7273   fi
  7274 done
  7275 done
  7276 IFS=$as_save_IFS
  7278 fi
  7279 fi
  7280 OBJC=$ac_cv_prog_OBJC
  7281 if test -n "$OBJC"; then
  7282   { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
  7283 $as_echo "$OBJC" >&6; }
  7284 else
  7285   { $as_echo "$as_me:$LINENO: result: no" >&5
  7286 $as_echo "no" >&6; }
  7287 fi
  7290     test -n "$OBJC" && break
  7291   done
  7292 fi
  7293 if test -z "$OBJC"; then
  7294   ac_ct_OBJC=$OBJC
  7295   for ac_prog in gcc objcc objc cc CC
  7296 do
  7297   # Extract the first word of "$ac_prog", so it can be a program name with args.
  7298 set dummy $ac_prog; ac_word=$2
  7299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7300 $as_echo_n "checking for $ac_word... " >&6; }
  7301 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  7302   $as_echo_n "(cached) " >&6
  7303 else
  7304   if test -n "$ac_ct_OBJC"; then
  7305   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  7306 else
  7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7308 for as_dir in $PATH
  7309 do
  7310   IFS=$as_save_IFS
  7311   test -z "$as_dir" && as_dir=.
  7312   for ac_exec_ext in '' $ac_executable_extensions; do
  7313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7314     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  7315     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7316     break 2
  7317   fi
  7318 done
  7319 done
  7320 IFS=$as_save_IFS
  7322 fi
  7323 fi
  7324 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  7325 if test -n "$ac_ct_OBJC"; then
  7326   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  7327 $as_echo "$ac_ct_OBJC" >&6; }
  7328 else
  7329   { $as_echo "$as_me:$LINENO: result: no" >&5
  7330 $as_echo "no" >&6; }
  7331 fi
  7334   test -n "$ac_ct_OBJC" && break
  7335 done
  7337   if test "x$ac_ct_OBJC" = x; then
  7338     OBJC="gcc"
  7339   else
  7340     case $cross_compiling:$ac_tool_warned in
  7341 yes:)
  7342 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7344 ac_tool_warned=yes ;;
  7345 esac
  7346     OBJC=$ac_ct_OBJC
  7347   fi
  7348 fi
  7350 # Provide some information about the compiler.
  7351 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  7352 set X $ac_compile
  7353 ac_compiler=$2
  7354 { (ac_try="$ac_compiler --version >&5"
  7355 case "(($ac_try" in
  7356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7357   *) ac_try_echo=$ac_try;;
  7358 esac
  7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7360 $as_echo "$ac_try_echo") >&5
  7361   (eval "$ac_compiler --version >&5") 2>&5
  7362   ac_status=$?
  7363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364   (exit $ac_status); }
  7365 { (ac_try="$ac_compiler -v >&5"
  7366 case "(($ac_try" in
  7367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7368   *) ac_try_echo=$ac_try;;
  7369 esac
  7370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7371 $as_echo "$ac_try_echo") >&5
  7372   (eval "$ac_compiler -v >&5") 2>&5
  7373   ac_status=$?
  7374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7375   (exit $ac_status); }
  7376 { (ac_try="$ac_compiler -V >&5"
  7377 case "(($ac_try" in
  7378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7379   *) ac_try_echo=$ac_try;;
  7380 esac
  7381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7382 $as_echo "$ac_try_echo") >&5
  7383   (eval "$ac_compiler -V >&5") 2>&5
  7384   ac_status=$?
  7385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7386   (exit $ac_status); }
  7388 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  7389 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
  7390 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  7391   $as_echo_n "(cached) " >&6
  7392 else
  7393   cat >conftest.$ac_ext <<_ACEOF
  7394 /* confdefs.h.  */
  7395 _ACEOF
  7396 cat confdefs.h >>conftest.$ac_ext
  7397 cat >>conftest.$ac_ext <<_ACEOF
  7398 /* end confdefs.h.  */
  7400 int
  7401 main ()
  7403 #ifndef __GNUC__
  7404        choke me
  7405 #endif
  7408   return 0;
  7410 _ACEOF
  7411 rm -f conftest.$ac_objext
  7412 if { (ac_try="$ac_compile"
  7413 case "(($ac_try" in
  7414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7415   *) ac_try_echo=$ac_try;;
  7416 esac
  7417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7418 $as_echo "$ac_try_echo") >&5
  7419   (eval "$ac_compile") 2>conftest.er1
  7420   ac_status=$?
  7421   grep -v '^ *+' conftest.er1 >conftest.err
  7422   rm -f conftest.er1
  7423   cat conftest.err >&5
  7424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7425   (exit $ac_status); } && {
  7426 	 test -z "$ac_objc_werror_flag" ||
  7427 	 test ! -s conftest.err
  7428        } && test -s conftest.$ac_objext; then
  7429   ac_compiler_gnu=yes
  7430 else
  7431   $as_echo "$as_me: failed program was:" >&5
  7432 sed 's/^/| /' conftest.$ac_ext >&5
  7434 	ac_compiler_gnu=no
  7435 fi
  7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7438 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  7440 fi
  7441 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  7442 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
  7443 if test $ac_compiler_gnu = yes; then
  7444   GOBJC=yes
  7445 else
  7446   GOBJC=
  7447 fi
  7448 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  7449 ac_save_OBJCFLAGS=$OBJCFLAGS
  7450 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  7451 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
  7452 if test "${ac_cv_prog_objc_g+set}" = set; then
  7453   $as_echo_n "(cached) " >&6
  7454 else
  7455   ac_save_objc_werror_flag=$ac_objc_werror_flag
  7456    ac_objc_werror_flag=yes
  7457    ac_cv_prog_objc_g=no
  7458    OBJCFLAGS="-g"
  7459    cat >conftest.$ac_ext <<_ACEOF
  7460 /* confdefs.h.  */
  7461 _ACEOF
  7462 cat confdefs.h >>conftest.$ac_ext
  7463 cat >>conftest.$ac_ext <<_ACEOF
  7464 /* end confdefs.h.  */
  7466 int
  7467 main ()
  7471   return 0;
  7473 _ACEOF
  7474 rm -f conftest.$ac_objext
  7475 if { (ac_try="$ac_compile"
  7476 case "(($ac_try" in
  7477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7478   *) ac_try_echo=$ac_try;;
  7479 esac
  7480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7481 $as_echo "$ac_try_echo") >&5
  7482   (eval "$ac_compile") 2>conftest.er1
  7483   ac_status=$?
  7484   grep -v '^ *+' conftest.er1 >conftest.err
  7485   rm -f conftest.er1
  7486   cat conftest.err >&5
  7487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7488   (exit $ac_status); } && {
  7489 	 test -z "$ac_objc_werror_flag" ||
  7490 	 test ! -s conftest.err
  7491        } && test -s conftest.$ac_objext; then
  7492   ac_cv_prog_objc_g=yes
  7493 else
  7494   $as_echo "$as_me: failed program was:" >&5
  7495 sed 's/^/| /' conftest.$ac_ext >&5
  7497 	OBJCFLAGS=""
  7498       cat >conftest.$ac_ext <<_ACEOF
  7499 /* confdefs.h.  */
  7500 _ACEOF
  7501 cat confdefs.h >>conftest.$ac_ext
  7502 cat >>conftest.$ac_ext <<_ACEOF
  7503 /* end confdefs.h.  */
  7505 int
  7506 main ()
  7510   return 0;
  7512 _ACEOF
  7513 rm -f conftest.$ac_objext
  7514 if { (ac_try="$ac_compile"
  7515 case "(($ac_try" in
  7516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7517   *) ac_try_echo=$ac_try;;
  7518 esac
  7519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7520 $as_echo "$ac_try_echo") >&5
  7521   (eval "$ac_compile") 2>conftest.er1
  7522   ac_status=$?
  7523   grep -v '^ *+' conftest.er1 >conftest.err
  7524   rm -f conftest.er1
  7525   cat conftest.err >&5
  7526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7527   (exit $ac_status); } && {
  7528 	 test -z "$ac_objc_werror_flag" ||
  7529 	 test ! -s conftest.err
  7530        } && test -s conftest.$ac_objext; then
  7532 else
  7533   $as_echo "$as_me: failed program was:" >&5
  7534 sed 's/^/| /' conftest.$ac_ext >&5
  7536 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  7537 	 OBJCFLAGS="-g"
  7538 	 cat >conftest.$ac_ext <<_ACEOF
  7539 /* confdefs.h.  */
  7540 _ACEOF
  7541 cat confdefs.h >>conftest.$ac_ext
  7542 cat >>conftest.$ac_ext <<_ACEOF
  7543 /* end confdefs.h.  */
  7545 int
  7546 main ()
  7550   return 0;
  7552 _ACEOF
  7553 rm -f conftest.$ac_objext
  7554 if { (ac_try="$ac_compile"
  7555 case "(($ac_try" in
  7556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7557   *) ac_try_echo=$ac_try;;
  7558 esac
  7559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7560 $as_echo "$ac_try_echo") >&5
  7561   (eval "$ac_compile") 2>conftest.er1
  7562   ac_status=$?
  7563   grep -v '^ *+' conftest.er1 >conftest.err
  7564   rm -f conftest.er1
  7565   cat conftest.err >&5
  7566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7567   (exit $ac_status); } && {
  7568 	 test -z "$ac_objc_werror_flag" ||
  7569 	 test ! -s conftest.err
  7570        } && test -s conftest.$ac_objext; then
  7571   ac_cv_prog_objc_g=yes
  7572 else
  7573   $as_echo "$as_me: failed program was:" >&5
  7574 sed 's/^/| /' conftest.$ac_ext >&5
  7577 fi
  7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7580 fi
  7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7583 fi
  7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7586    ac_objc_werror_flag=$ac_save_objc_werror_flag
  7587 fi
  7588 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  7589 $as_echo "$ac_cv_prog_objc_g" >&6; }
  7590 if test "$ac_test_OBJCFLAGS" = set; then
  7591   OBJCFLAGS=$ac_save_OBJCFLAGS
  7592 elif test $ac_cv_prog_objc_g = yes; then
  7593   if test "$GOBJC" = yes; then
  7594     OBJCFLAGS="-g -O2"
  7595   else
  7596     OBJCFLAGS="-g"
  7597   fi
  7598 else
  7599   if test "$GOBJC" = yes; then
  7600     OBJCFLAGS="-O2"
  7601   else
  7602     OBJCFLAGS=
  7603   fi
  7604 fi
  7605 ac_ext=c
  7606 ac_cpp='$CPP $CPPFLAGS'
  7607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7611 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
  7612 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
  7613 ac_ext=m
  7614 ac_cpp='$OBJCPP $CPPFLAGS'
  7615 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7616 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7617 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  7618 cat >conftest.$ac_ext <<_ACEOF
  7619 /* confdefs.h.  */
  7620 _ACEOF
  7621 cat confdefs.h >>conftest.$ac_ext
  7622 cat >>conftest.$ac_ext <<_ACEOF
  7623 /* end confdefs.h.  */
  7624 @interface Foo @end
  7625 int
  7626 main ()
  7630   return 0;
  7632 _ACEOF
  7633 rm -f conftest.$ac_objext
  7634 if { (ac_try="$ac_compile"
  7635 case "(($ac_try" in
  7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7637   *) ac_try_echo=$ac_try;;
  7638 esac
  7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7640 $as_echo "$ac_try_echo") >&5
  7641   (eval "$ac_compile") 2>conftest.er1
  7642   ac_status=$?
  7643   grep -v '^ *+' conftest.er1 >conftest.err
  7644   rm -f conftest.er1
  7645   cat conftest.err >&5
  7646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7647   (exit $ac_status); } && {
  7648 	 test -z "$ac_objc_werror_flag" ||
  7649 	 test ! -s conftest.err
  7650        } && test -s conftest.$ac_objext; then
  7651   { $as_echo "$as_me:$LINENO: result: yes" >&5
  7652 $as_echo "yes" >&6; }
  7654    { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  7655 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
  7656 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  7657   $as_echo_n "(cached) " >&6
  7658 else
  7659   cat >conftest.$ac_ext <<_ACEOF
  7660 /* confdefs.h.  */
  7661 _ACEOF
  7662 cat confdefs.h >>conftest.$ac_ext
  7663 cat >>conftest.$ac_ext <<_ACEOF
  7664 /* end confdefs.h.  */
  7665 $ac_includes_default
  7667 #include <Cocoa/Cocoa.h>
  7668 _ACEOF
  7669 rm -f conftest.$ac_objext
  7670 if { (ac_try="$ac_compile"
  7671 case "(($ac_try" in
  7672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7673   *) ac_try_echo=$ac_try;;
  7674 esac
  7675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7676 $as_echo "$ac_try_echo") >&5
  7677   (eval "$ac_compile") 2>conftest.er1
  7678   ac_status=$?
  7679   grep -v '^ *+' conftest.er1 >conftest.err
  7680   rm -f conftest.er1
  7681   cat conftest.err >&5
  7682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7683   (exit $ac_status); } && {
  7684 	 test -z "$ac_objc_werror_flag" ||
  7685 	 test ! -s conftest.err
  7686        } && test -s conftest.$ac_objext; then
  7687   ac_cv_header_Cocoa_Cocoa_h=yes
  7688 else
  7689   $as_echo "$as_me: failed program was:" >&5
  7690 sed 's/^/| /' conftest.$ac_ext >&5
  7692 	ac_cv_header_Cocoa_Cocoa_h=no
  7693 fi
  7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7696 fi
  7697 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  7698 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  7699 if test "x$ac_cv_header_Cocoa_Cocoa_h" = x""yes; then
  7701       HAVE_COCOA='yes'
  7702       APPLE_BUILD='yes'
  7703       LIBS="$LIBS -framework AppKit -framework Carbon"
  7704       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"
  7705       LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
  7706       LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
  7708 cat >>confdefs.h <<\_ACEOF
  7709 #define HAVE_COCOA 1
  7710 _ACEOF
  7713 cat >>confdefs.h <<\_ACEOF
  7714 #define APPLE_BUILD 1
  7715 _ACEOF
  7717       if test "x$with_gtk" = "xx11"; then
  7718         with_gtk=no
  7719       fi
  7721 fi
  7726 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
  7727 $as_echo_n "checking OBJC version... " >&6; }
  7728 if test -n "$OBJC"; then
  7729   _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
  7730   if test -n "$_GOBJC_VERSION"; then
  7731     { $as_echo "$as_me:$LINENO: result: GCC" >&5
  7732 $as_echo "GCC" >&6; }
  7733       OBJCOPT="-O2 -msse2 -mfpmath=sse"
  7734                      OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
  7735   else
  7736     { $as_echo "$as_me:$LINENO: result: Unknown" >&5
  7737 $as_echo "Unknown" >&6; }
  7738       OBJCOPT="-O2"
  7739   fi
  7740 else
  7741   { $as_echo "$as_me:$LINENO: result: None" >&5
  7742 $as_echo "None" >&6; }
  7744 fi
  7747 else
  7748   $as_echo "$as_me: failed program was:" >&5
  7749 sed 's/^/| /' conftest.$ac_ext >&5
  7751 	{ $as_echo "$as_me:$LINENO: result: No" >&5
  7752 $as_echo "No" >&6; }
  7754 fi
  7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
  7757 ac_ext=c
  7758 ac_cpp='$CPP $CPPFLAGS'
  7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7767 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  7768   GUI_COCOA_TRUE=
  7769   GUI_COCOA_FALSE='#'
  7770 else
  7771   GUI_COCOA_TRUE='#'
  7772   GUI_COCOA_FALSE=
  7773 fi
  7775 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
  7777 cat >>confdefs.h <<\_ACEOF
  7778 #define OSX_BUNDLE 1
  7779 _ACEOF
  7781 fi
  7783 CFLAGS="-g -fexceptions"
  7784 OBJCFLAGS="-g -fexceptions"
  7786 cat >>confdefs.h <<\_ACEOF
  7787 #define HAVE_EXCEPTIONS 1
  7788 _ACEOF
  7791 STDCFLAG="-std=c99"
  7793 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
  7794 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
  7795 { $as_echo "$as_me:$LINENO: checking CC version" >&5
  7796 $as_echo_n "checking CC version... " >&6; }
  7797 if test -n "$_ICC_VERSION"; then
  7798    { $as_echo "$as_me:$LINENO: result: ICC" >&5
  7799 $as_echo "ICC" >&6; }
  7800      CCOPT="$CFLAGS -fast"
  7801                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  7802 elif test -n "$_GCC_VERSION"; then
  7803    { $as_echo "$as_me:$LINENO: result: GCC" >&5
  7804 $as_echo "GCC" >&6; }
  7805      CCOPT="-O2 -msse2 -mfpmath=sse"
  7806                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  7807 else
  7808    { $as_echo "$as_me:$LINENO: result: Unknown" >&5
  7809 $as_echo "Unknown" >&6; }
  7810      CCOPT="$CFLAGS -O2"
  7811 fi
  7814 if test "x$enable_optimized" = "xyes"; then
  7815    CFLAGS="$CFLAGS $CCOPT"
  7816    OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
  7817    if test "x$enable_profiled" != "xyes"; then
  7818               CFLAGS="$CFLAGS -fomit-frame-pointer"
  7819        OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
  7820    fi
  7821 else
  7822    CFLAGS="$CFLAGS -g3"
  7823    OBJCFLAGS="$OBJCFLAGS -g3"
  7824 fi
  7826 if test "x$enable_profiled" = "xyes"; then
  7827    CFLAGS="$CFLAGS -pg"
  7828    LDFLAGS="$LDFLAGS -pg";
  7829    OBJCFLAGS="$OBJCFLAGS -pg";
  7830 fi
  7832 if test "x$enable_strictwarn" = "xyes"; then
  7833    CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
  7834    OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
  7835 fi
  7837 if test "x$enable_shared" != "xno"; then
  7839 cat >>confdefs.h <<\_ACEOF
  7840 #define ENABLE_SHARED 1
  7841 _ACEOF
  7843    if test "x$APPLE_BUILD" = "xyes"; then
  7844       SOEXT="dylib"
  7845       PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
  7846    else
  7847       SOEXT="so"
  7848       PLUGINLDFLAGS="-shared"
  7849    fi
  7850    PLUGINCFLAGS="-fPIC"
  7852    if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7853   { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  7854 $as_echo_n "checking for dlfcn.h... " >&6; }
  7855 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7856   $as_echo_n "(cached) " >&6
  7857 fi
  7858 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  7859 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
  7860 else
  7861   # Is the header compilable?
  7862 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
  7863 $as_echo_n "checking dlfcn.h usability... " >&6; }
  7864 cat >conftest.$ac_ext <<_ACEOF
  7865 /* confdefs.h.  */
  7866 _ACEOF
  7867 cat confdefs.h >>conftest.$ac_ext
  7868 cat >>conftest.$ac_ext <<_ACEOF
  7869 /* end confdefs.h.  */
  7870 $ac_includes_default
  7871 #include <dlfcn.h>
  7872 _ACEOF
  7873 rm -f conftest.$ac_objext
  7874 if { (ac_try="$ac_compile"
  7875 case "(($ac_try" in
  7876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7877   *) ac_try_echo=$ac_try;;
  7878 esac
  7879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7880 $as_echo "$ac_try_echo") >&5
  7881   (eval "$ac_compile") 2>conftest.er1
  7882   ac_status=$?
  7883   grep -v '^ *+' conftest.er1 >conftest.err
  7884   rm -f conftest.er1
  7885   cat conftest.err >&5
  7886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7887   (exit $ac_status); } && {
  7888 	 test -z "$ac_c_werror_flag" ||
  7889 	 test ! -s conftest.err
  7890        } && test -s conftest.$ac_objext; then
  7891   ac_header_compiler=yes
  7892 else
  7893   $as_echo "$as_me: failed program was:" >&5
  7894 sed 's/^/| /' conftest.$ac_ext >&5
  7896 	ac_header_compiler=no
  7897 fi
  7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7900 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7901 $as_echo "$ac_header_compiler" >&6; }
  7903 # Is the header present?
  7904 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
  7905 $as_echo_n "checking dlfcn.h presence... " >&6; }
  7906 cat >conftest.$ac_ext <<_ACEOF
  7907 /* confdefs.h.  */
  7908 _ACEOF
  7909 cat confdefs.h >>conftest.$ac_ext
  7910 cat >>conftest.$ac_ext <<_ACEOF
  7911 /* end confdefs.h.  */
  7912 #include <dlfcn.h>
  7913 _ACEOF
  7914 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7915 case "(($ac_try" in
  7916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7917   *) ac_try_echo=$ac_try;;
  7918 esac
  7919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7920 $as_echo "$ac_try_echo") >&5
  7921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7922   ac_status=$?
  7923   grep -v '^ *+' conftest.er1 >conftest.err
  7924   rm -f conftest.er1
  7925   cat conftest.err >&5
  7926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7927   (exit $ac_status); } >/dev/null && {
  7928 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7929 	 test ! -s conftest.err
  7930        }; then
  7931   ac_header_preproc=yes
  7932 else
  7933   $as_echo "$as_me: failed program was:" >&5
  7934 sed 's/^/| /' conftest.$ac_ext >&5
  7936   ac_header_preproc=no
  7937 fi
  7939 rm -f conftest.err conftest.$ac_ext
  7940 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7941 $as_echo "$ac_header_preproc" >&6; }
  7943 # So?  What about this header?
  7944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7945   yes:no: )
  7946     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7947 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7948     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
  7949 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
  7950     ac_header_preproc=yes
  7951     ;;
  7952   no:yes:* )
  7953     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
  7954 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
  7955     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
  7956 $as_echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
  7957     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
  7958 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
  7959     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
  7960 $as_echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7961     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
  7962 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
  7963     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
  7964 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
  7966     ;;
  7967 esac
  7968 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  7969 $as_echo_n "checking for dlfcn.h... " >&6; }
  7970 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7971   $as_echo_n "(cached) " >&6
  7972 else
  7973   ac_cv_header_dlfcn_h=$ac_header_preproc
  7974 fi
  7975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  7976 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
  7978 fi
  7979 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
  7981       { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  7982 $as_echo_n "checking for library containing dlopen... " >&6; }
  7983 if test "${ac_cv_search_dlopen+set}" = set; then
  7984   $as_echo_n "(cached) " >&6
  7985 else
  7986   ac_func_search_save_LIBS=$LIBS
  7987 cat >conftest.$ac_ext <<_ACEOF
  7988 /* confdefs.h.  */
  7989 _ACEOF
  7990 cat confdefs.h >>conftest.$ac_ext
  7991 cat >>conftest.$ac_ext <<_ACEOF
  7992 /* end confdefs.h.  */
  7994 /* Override any GCC internal prototype to avoid an error.
  7995    Use char because int might match the return type of a GCC
  7996    builtin and then its argument prototype would still apply.  */
  7997 #ifdef __cplusplus
  7998 extern "C"
  7999 #endif
  8000 char dlopen ();
  8001 int
  8002 main ()
  8004 return dlopen ();
  8006   return 0;
  8008 _ACEOF
  8009 for ac_lib in '' dl; do
  8010   if test -z "$ac_lib"; then
  8011     ac_res="none required"
  8012   else
  8013     ac_res=-l$ac_lib
  8014     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  8015   fi
  8016   rm -f conftest.$ac_objext conftest$ac_exeext
  8017 if { (ac_try="$ac_link"
  8018 case "(($ac_try" in
  8019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8020   *) ac_try_echo=$ac_try;;
  8021 esac
  8022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8023 $as_echo "$ac_try_echo") >&5
  8024   (eval "$ac_link") 2>conftest.er1
  8025   ac_status=$?
  8026   grep -v '^ *+' conftest.er1 >conftest.err
  8027   rm -f conftest.er1
  8028   cat conftest.err >&5
  8029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8030   (exit $ac_status); } && {
  8031 	 test -z "$ac_c_werror_flag" ||
  8032 	 test ! -s conftest.err
  8033        } && test -s conftest$ac_exeext && {
  8034 	 test "$cross_compiling" = yes ||
  8035 	 $as_test_x conftest$ac_exeext
  8036        }; then
  8037   ac_cv_search_dlopen=$ac_res
  8038 else
  8039   $as_echo "$as_me: failed program was:" >&5
  8040 sed 's/^/| /' conftest.$ac_ext >&5
  8043 fi
  8045 rm -rf conftest.dSYM
  8046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8047       conftest$ac_exeext
  8048   if test "${ac_cv_search_dlopen+set}" = set; then
  8049   break
  8050 fi
  8051 done
  8052 if test "${ac_cv_search_dlopen+set}" = set; then
  8054 else
  8055   ac_cv_search_dlopen=no
  8056 fi
  8057 rm conftest.$ac_ext
  8058 LIBS=$ac_func_search_save_LIBS
  8059 fi
  8060 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
  8061 $as_echo "$ac_cv_search_dlopen" >&6; }
  8062 ac_res=$ac_cv_search_dlopen
  8063 if test "$ac_res" != no; then
  8064   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8065   have_dlopen=yes
  8066 fi
  8068 fi
  8071    if test "x$have_dlopen" != "xyes"; then
  8072       if test "x$enable_shared" == "xyes"; then
  8073          { { $as_echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
  8074 $as_echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
  8075    { (exit 1); exit 1; }; }
  8076       else
  8077          { $as_echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
  8078 $as_echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
  8079       fi
  8080    fi
  8082    { $as_echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
  8083 $as_echo_n "checking if linker accepts -rdynamic... " >&6; }
  8084    old_LDFLAGS="$LDFLAGS"
  8085    LDFLAGS="$LDFLAGS -rdynamic"
  8086    cat >conftest.$ac_ext <<_ACEOF
  8087 int main(){ return 0; }
  8088 _ACEOF
  8089 rm -f conftest.$ac_objext conftest$ac_exeext
  8090 if { (ac_try="$ac_link"
  8091 case "(($ac_try" in
  8092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8093   *) ac_try_echo=$ac_try;;
  8094 esac
  8095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8096 $as_echo "$ac_try_echo") >&5
  8097   (eval "$ac_link") 2>conftest.er1
  8098   ac_status=$?
  8099   grep -v '^ *+' conftest.er1 >conftest.err
  8100   rm -f conftest.er1
  8101   cat conftest.err >&5
  8102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8103   (exit $ac_status); } && {
  8104 	 test -z "$ac_c_werror_flag" ||
  8105 	 test ! -s conftest.err
  8106        } && test -s conftest$ac_exeext && {
  8107 	 test "$cross_compiling" = yes ||
  8108 	 $as_test_x conftest$ac_exeext
  8109        }; then
  8111      LXDREAMLDFLAGS="-rdynamic"
  8112      { $as_echo "$as_me:$LINENO: result: yes" >&5
  8113 $as_echo "yes" >&6; }
  8115 else
  8116   $as_echo "$as_me: failed program was:" >&5
  8117 sed 's/^/| /' conftest.$ac_ext >&5
  8120      LXDREAMLDFLAGS=""
  8121      { $as_echo "$as_me:$LINENO: result: no" >&5
  8122 $as_echo "no" >&6; }
  8123 fi
  8125 rm -rf conftest.dSYM
  8126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8127       conftest$ac_exeext conftest.$ac_ext
  8128    LDFLAGS="$old_LDFLAGS"
  8134 fi
  8137 if test "x$have_dlopen" = "xyes"; then
  8138   BUILD_SHARED_TRUE=
  8139   BUILD_SHARED_FALSE='#'
  8140 else
  8141   BUILD_SHARED_TRUE='#'
  8142   BUILD_SHARED_FALSE=
  8143 fi
  8147 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
  8148 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
  8149 if test "$cross_compiling" = yes; then
  8150   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8152 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  8153 See \`config.log' for more details." >&5
  8154 $as_echo "$as_me: error: cannot run test program while cross compiling
  8155 See \`config.log' for more details." >&2;}
  8156    { (exit 1); exit 1; }; }; }
  8157 else
  8158   cat >conftest.$ac_ext <<_ACEOF
  8160   /* confdefs.h.  */
  8161 _ACEOF
  8162 cat confdefs.h >>conftest.$ac_ext
  8163 cat >>conftest.$ac_ext <<_ACEOF
  8164 /* end confdefs.h.  */
  8166 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
  8168 int main(int argc, char *argv[])
  8170    return foo( 1, 2 ) == 3 ? 0 : 1;
  8172 _ACEOF
  8173 rm -f conftest$ac_exeext
  8174 if { (ac_try="$ac_link"
  8175 case "(($ac_try" in
  8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8177   *) ac_try_echo=$ac_try;;
  8178 esac
  8179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8180 $as_echo "$ac_try_echo") >&5
  8181   (eval "$ac_link") 2>&5
  8182   ac_status=$?
  8183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8185   { (case "(($ac_try" in
  8186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8187   *) ac_try_echo=$ac_try;;
  8188 esac
  8189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8190 $as_echo "$ac_try_echo") >&5
  8191   (eval "$ac_try") 2>&5
  8192   ac_status=$?
  8193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8194   (exit $ac_status); }; }; then
  8196    { $as_echo "$as_me:$LINENO: result: yes" >&5
  8197 $as_echo "yes" >&6; }
  8200 cat >>confdefs.h <<\_ACEOF
  8201 #define HAVE_FASTCALL 1
  8202 _ACEOF
  8205 else
  8206   $as_echo "$as_me: program exited with status $ac_status" >&5
  8207 $as_echo "$as_me: failed program was:" >&5
  8208 sed 's/^/| /' conftest.$ac_ext >&5
  8210 ( exit $ac_status )
  8212    { $as_echo "$as_me:$LINENO: result: no" >&5
  8213 $as_echo "no" >&6; }
  8215 fi
  8216 rm -rf conftest.dSYM
  8217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8218 fi
  8223 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
  8224 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
  8225 if test "$cross_compiling" = yes; then
  8226   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8228 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  8229 See \`config.log' for more details." >&5
  8230 $as_echo "$as_me: error: cannot run test program while cross compiling
  8231 See \`config.log' for more details." >&2;}
  8232    { (exit 1); exit 1; }; }; }
  8233 else
  8234   cat >conftest.$ac_ext <<_ACEOF
  8236   /* confdefs.h.  */
  8237 _ACEOF
  8238 cat confdefs.h >>conftest.$ac_ext
  8239 cat >>conftest.$ac_ext <<_ACEOF
  8240 /* end confdefs.h.  */
  8242 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
  8243 int __attribute__((noinline)) foo( int arg, void *exc )
  8245     if( arg < 2 ) {
  8246         *(((void **)__builtin_frame_address(0))+1) = exc;
  8248     return 0;
  8251 int main(int argc, char *argv[])
  8253    goto *first_arg(&&start, &&except);
  8255 start:
  8256    return foo( argc, &&except ) + 1;
  8258 except:
  8259    return 0;
  8261 _ACEOF
  8262 rm -f conftest$ac_exeext
  8263 if { (ac_try="$ac_link"
  8264 case "(($ac_try" in
  8265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8266   *) ac_try_echo=$ac_try;;
  8267 esac
  8268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8269 $as_echo "$ac_try_echo") >&5
  8270   (eval "$ac_link") 2>&5
  8271   ac_status=$?
  8272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8274   { (case "(($ac_try" in
  8275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8276   *) ac_try_echo=$ac_try;;
  8277 esac
  8278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8279 $as_echo "$ac_try_echo") >&5
  8280   (eval "$ac_try") 2>&5
  8281   ac_status=$?
  8282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8283   (exit $ac_status); }; }; then
  8285    { $as_echo "$as_me:$LINENO: result: yes" >&5
  8286 $as_echo "yes" >&6; }
  8289 cat >>confdefs.h <<\_ACEOF
  8290 #define HAVE_FRAME_ADDRESS 1
  8291 _ACEOF
  8294 else
  8295   $as_echo "$as_me: program exited with status $ac_status" >&5
  8296 $as_echo "$as_me: failed program was:" >&5
  8297 sed 's/^/| /' conftest.$ac_ext >&5
  8299 ( exit $ac_status )
  8301    { $as_echo "$as_me:$LINENO: result: no" >&5
  8302 $as_echo "no" >&6; }
  8303     { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
  8304 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
  8305 fi
  8306 rm -rf conftest.dSYM
  8307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8308 fi
  8314 { $as_echo "$as_me:$LINENO: checking for library containing listen" >&5
  8315 $as_echo_n "checking for library containing listen... " >&6; }
  8316 if test "${ac_cv_search_listen+set}" = set; then
  8317   $as_echo_n "(cached) " >&6
  8318 else
  8319   ac_func_search_save_LIBS=$LIBS
  8320 cat >conftest.$ac_ext <<_ACEOF
  8321 /* confdefs.h.  */
  8322 _ACEOF
  8323 cat confdefs.h >>conftest.$ac_ext
  8324 cat >>conftest.$ac_ext <<_ACEOF
  8325 /* end confdefs.h.  */
  8327 /* Override any GCC internal prototype to avoid an error.
  8328    Use char because int might match the return type of a GCC
  8329    builtin and then its argument prototype would still apply.  */
  8330 #ifdef __cplusplus
  8331 extern "C"
  8332 #endif
  8333 char listen ();
  8334 int
  8335 main ()
  8337 return listen ();
  8339   return 0;
  8341 _ACEOF
  8342 for ac_lib in '' socket; do
  8343   if test -z "$ac_lib"; then
  8344     ac_res="none required"
  8345   else
  8346     ac_res=-l$ac_lib
  8347     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  8348   fi
  8349   rm -f conftest.$ac_objext conftest$ac_exeext
  8350 if { (ac_try="$ac_link"
  8351 case "(($ac_try" in
  8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8353   *) ac_try_echo=$ac_try;;
  8354 esac
  8355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8356 $as_echo "$ac_try_echo") >&5
  8357   (eval "$ac_link") 2>conftest.er1
  8358   ac_status=$?
  8359   grep -v '^ *+' conftest.er1 >conftest.err
  8360   rm -f conftest.er1
  8361   cat conftest.err >&5
  8362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8363   (exit $ac_status); } && {
  8364 	 test -z "$ac_c_werror_flag" ||
  8365 	 test ! -s conftest.err
  8366        } && test -s conftest$ac_exeext && {
  8367 	 test "$cross_compiling" = yes ||
  8368 	 $as_test_x conftest$ac_exeext
  8369        }; then
  8370   ac_cv_search_listen=$ac_res
  8371 else
  8372   $as_echo "$as_me: failed program was:" >&5
  8373 sed 's/^/| /' conftest.$ac_ext >&5
  8376 fi
  8378 rm -rf conftest.dSYM
  8379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8380       conftest$ac_exeext
  8381   if test "${ac_cv_search_listen+set}" = set; then
  8382   break
  8383 fi
  8384 done
  8385 if test "${ac_cv_search_listen+set}" = set; then
  8387 else
  8388   ac_cv_search_listen=no
  8389 fi
  8390 rm conftest.$ac_ext
  8391 LIBS=$ac_func_search_save_LIBS
  8392 fi
  8393 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
  8394 $as_echo "$ac_cv_search_listen" >&6; }
  8395 ac_res=$ac_cv_search_listen
  8396 if test "$ac_res" != no; then
  8397   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8399 fi
  8401 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
  8402 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
  8403 if test "${ac_cv_search_inet_ntoa+set}" = set; then
  8404   $as_echo_n "(cached) " >&6
  8405 else
  8406   ac_func_search_save_LIBS=$LIBS
  8407 cat >conftest.$ac_ext <<_ACEOF
  8408 /* confdefs.h.  */
  8409 _ACEOF
  8410 cat confdefs.h >>conftest.$ac_ext
  8411 cat >>conftest.$ac_ext <<_ACEOF
  8412 /* end confdefs.h.  */
  8414 /* Override any GCC internal prototype to avoid an error.
  8415    Use char because int might match the return type of a GCC
  8416    builtin and then its argument prototype would still apply.  */
  8417 #ifdef __cplusplus
  8418 extern "C"
  8419 #endif
  8420 char inet_ntoa ();
  8421 int
  8422 main ()
  8424 return inet_ntoa ();
  8426   return 0;
  8428 _ACEOF
  8429 for ac_lib in '' nsl; do
  8430   if test -z "$ac_lib"; then
  8431     ac_res="none required"
  8432   else
  8433     ac_res=-l$ac_lib
  8434     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  8435   fi
  8436   rm -f conftest.$ac_objext conftest$ac_exeext
  8437 if { (ac_try="$ac_link"
  8438 case "(($ac_try" in
  8439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8440   *) ac_try_echo=$ac_try;;
  8441 esac
  8442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8443 $as_echo "$ac_try_echo") >&5
  8444   (eval "$ac_link") 2>conftest.er1
  8445   ac_status=$?
  8446   grep -v '^ *+' conftest.er1 >conftest.err
  8447   rm -f conftest.er1
  8448   cat conftest.err >&5
  8449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8450   (exit $ac_status); } && {
  8451 	 test -z "$ac_c_werror_flag" ||
  8452 	 test ! -s conftest.err
  8453        } && test -s conftest$ac_exeext && {
  8454 	 test "$cross_compiling" = yes ||
  8455 	 $as_test_x conftest$ac_exeext
  8456        }; then
  8457   ac_cv_search_inet_ntoa=$ac_res
  8458 else
  8459   $as_echo "$as_me: failed program was:" >&5
  8460 sed 's/^/| /' conftest.$ac_ext >&5
  8463 fi
  8465 rm -rf conftest.dSYM
  8466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8467       conftest$ac_exeext
  8468   if test "${ac_cv_search_inet_ntoa+set}" = set; then
  8469   break
  8470 fi
  8471 done
  8472 if test "${ac_cv_search_inet_ntoa+set}" = set; then
  8474 else
  8475   ac_cv_search_inet_ntoa=no
  8476 fi
  8477 rm conftest.$ac_ext
  8478 LIBS=$ac_func_search_save_LIBS
  8479 fi
  8480 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
  8481 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
  8482 ac_res=$ac_cv_search_inet_ntoa
  8483 if test "$ac_res" != no; then
  8484   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8486 fi
  8491 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  8492 	if test -n "$ac_tool_prefix"; then
  8493   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  8494 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  8495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8496 $as_echo_n "checking for $ac_word... " >&6; }
  8497 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  8498   $as_echo_n "(cached) " >&6
  8499 else
  8500   case $PKG_CONFIG in
  8501   [\\/]* | ?:[\\/]*)
  8502   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  8503   ;;
  8504   *)
  8505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8506 for as_dir in $PATH
  8507 do
  8508   IFS=$as_save_IFS
  8509   test -z "$as_dir" && as_dir=.
  8510   for ac_exec_ext in '' $ac_executable_extensions; do
  8511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8512     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8513     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8514     break 2
  8515   fi
  8516 done
  8517 done
  8518 IFS=$as_save_IFS
  8520   ;;
  8521 esac
  8522 fi
  8523 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  8524 if test -n "$PKG_CONFIG"; then
  8525   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  8526 $as_echo "$PKG_CONFIG" >&6; }
  8527 else
  8528   { $as_echo "$as_me:$LINENO: result: no" >&5
  8529 $as_echo "no" >&6; }
  8530 fi
  8533 fi
  8534 if test -z "$ac_cv_path_PKG_CONFIG"; then
  8535   ac_pt_PKG_CONFIG=$PKG_CONFIG
  8536   # Extract the first word of "pkg-config", so it can be a program name with args.
  8537 set dummy pkg-config; ac_word=$2
  8538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8539 $as_echo_n "checking for $ac_word... " >&6; }
  8540 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  8541   $as_echo_n "(cached) " >&6
  8542 else
  8543   case $ac_pt_PKG_CONFIG in
  8544   [\\/]* | ?:[\\/]*)
  8545   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  8546   ;;
  8547   *)
  8548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8549 for as_dir in $PATH
  8550 do
  8551   IFS=$as_save_IFS
  8552   test -z "$as_dir" && as_dir=.
  8553   for ac_exec_ext in '' $ac_executable_extensions; do
  8554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8555     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8556     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8557     break 2
  8558   fi
  8559 done
  8560 done
  8561 IFS=$as_save_IFS
  8563   ;;
  8564 esac
  8565 fi
  8566 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  8567 if test -n "$ac_pt_PKG_CONFIG"; then
  8568   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  8569 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  8570 else
  8571   { $as_echo "$as_me:$LINENO: result: no" >&5
  8572 $as_echo "no" >&6; }
  8573 fi
  8575   if test "x$ac_pt_PKG_CONFIG" = x; then
  8576     PKG_CONFIG=""
  8577   else
  8578     case $cross_compiling:$ac_tool_warned in
  8579 yes:)
  8580 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8582 ac_tool_warned=yes ;;
  8583 esac
  8584     PKG_CONFIG=$ac_pt_PKG_CONFIG
  8585   fi
  8586 else
  8587   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  8588 fi
  8590 fi
  8591 if test -n "$PKG_CONFIG"; then
  8592 	_pkg_min_version=0.9.0
  8593 	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  8594 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  8595 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  8596 		{ $as_echo "$as_me:$LINENO: result: yes" >&5
  8597 $as_echo "yes" >&6; }
  8598 	else
  8599 		{ $as_echo "$as_me:$LINENO: result: no" >&5
  8600 $as_echo "no" >&6; }
  8601 		PKG_CONFIG=""
  8602 	fi
  8604 fi
  8606 pkg_failed=no
  8607 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
  8608 $as_echo_n "checking for LIBPNG... " >&6; }
  8610 if test -n "$LIBPNG_CFLAGS"; then
  8611     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  8612  elif test -n "$PKG_CONFIG"; then
  8613     if test -n "$PKG_CONFIG" && \
  8614     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  8615   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  8616   ac_status=$?
  8617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8618   (exit $ac_status); }; then
  8619   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  8620 else
  8621   pkg_failed=yes
  8622 fi
  8623  else
  8624     pkg_failed=untried
  8625 fi
  8626 if test -n "$LIBPNG_LIBS"; then
  8627     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  8628  elif test -n "$PKG_CONFIG"; then
  8629     if test -n "$PKG_CONFIG" && \
  8630     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  8631   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  8632   ac_status=$?
  8633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8634   (exit $ac_status); }; then
  8635   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  8636 else
  8637   pkg_failed=yes
  8638 fi
  8639  else
  8640     pkg_failed=untried
  8641 fi
  8645 if test $pkg_failed = yes; then
  8647 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8648         _pkg_short_errors_supported=yes
  8649 else
  8650         _pkg_short_errors_supported=no
  8651 fi
  8652         if test $_pkg_short_errors_supported = yes; then
  8653 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
  8654         else
  8655 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
  8656         fi
  8657 	# Put the nasty error message in config.log where it belongs
  8658 	echo "$LIBPNG_PKG_ERRORS" >&5
  8660 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  8662 $LIBPNG_PKG_ERRORS
  8664 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8665 installed software in a non-standard prefix.
  8667 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8668 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8669 See the pkg-config man page for more details.
  8670 " >&5
  8671 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
  8673 $LIBPNG_PKG_ERRORS
  8675 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8676 installed software in a non-standard prefix.
  8678 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8679 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8680 See the pkg-config man page for more details.
  8681 " >&2;}
  8682    { (exit 1); exit 1; }; }
  8683 elif test $pkg_failed = untried; then
  8684 	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8686 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  8687 is in your PATH or set the PKG_CONFIG environment variable to the full
  8688 path to pkg-config.
  8690 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8691 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8692 See the pkg-config man page for more details.
  8694 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8695 See \`config.log' for more details." >&5
  8696 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  8697 is in your PATH or set the PKG_CONFIG environment variable to the full
  8698 path to pkg-config.
  8700 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8701 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8702 See the pkg-config man page for more details.
  8704 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8705 See \`config.log' for more details." >&2;}
  8706    { (exit 1); exit 1; }; }; }
  8707 else
  8708 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  8709 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  8710         { $as_echo "$as_me:$LINENO: result: yes" >&5
  8711 $as_echo "yes" >&6; }
  8713 fi
  8716 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  8717 $as_echo_n "checking for uncompress in -lz... " >&6; }
  8718 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  8719   $as_echo_n "(cached) " >&6
  8720 else
  8721   ac_check_lib_save_LIBS=$LIBS
  8722 LIBS="-lz  $LIBS"
  8723 cat >conftest.$ac_ext <<_ACEOF
  8724 /* confdefs.h.  */
  8725 _ACEOF
  8726 cat confdefs.h >>conftest.$ac_ext
  8727 cat >>conftest.$ac_ext <<_ACEOF
  8728 /* end confdefs.h.  */
  8730 /* Override any GCC internal prototype to avoid an error.
  8731    Use char because int might match the return type of a GCC
  8732    builtin and then its argument prototype would still apply.  */
  8733 #ifdef __cplusplus
  8734 extern "C"
  8735 #endif
  8736 char uncompress ();
  8737 int
  8738 main ()
  8740 return uncompress ();
  8742   return 0;
  8744 _ACEOF
  8745 rm -f conftest.$ac_objext conftest$ac_exeext
  8746 if { (ac_try="$ac_link"
  8747 case "(($ac_try" in
  8748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8749   *) ac_try_echo=$ac_try;;
  8750 esac
  8751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8752 $as_echo "$ac_try_echo") >&5
  8753   (eval "$ac_link") 2>conftest.er1
  8754   ac_status=$?
  8755   grep -v '^ *+' conftest.er1 >conftest.err
  8756   rm -f conftest.er1
  8757   cat conftest.err >&5
  8758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8759   (exit $ac_status); } && {
  8760 	 test -z "$ac_c_werror_flag" ||
  8761 	 test ! -s conftest.err
  8762        } && test -s conftest$ac_exeext && {
  8763 	 test "$cross_compiling" = yes ||
  8764 	 $as_test_x conftest$ac_exeext
  8765        }; then
  8766   ac_cv_lib_z_uncompress=yes
  8767 else
  8768   $as_echo "$as_me: failed program was:" >&5
  8769 sed 's/^/| /' conftest.$ac_ext >&5
  8771 	ac_cv_lib_z_uncompress=no
  8772 fi
  8774 rm -rf conftest.dSYM
  8775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8776       conftest$ac_exeext conftest.$ac_ext
  8777 LIBS=$ac_check_lib_save_LIBS
  8778 fi
  8779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  8780 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
  8781 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
  8782   cat >>confdefs.h <<_ACEOF
  8783 #define HAVE_LIBZ 1
  8784 _ACEOF
  8786   LIBS="-lz $LIBS"
  8788 else
  8790     echo "Zlib (libz.so) could not be found, but is required."
  8791     exit 1
  8792 fi
  8795 if test "x$with_gtk" = "xno"; then
  8797 pkg_failed=no
  8798 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
  8799 $as_echo_n "checking for GLIB... " >&6; }
  8801 if test -n "$GLIB_CFLAGS"; then
  8802     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
  8803  elif test -n "$PKG_CONFIG"; then
  8804     if test -n "$PKG_CONFIG" && \
  8805     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  8806   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  8807   ac_status=$?
  8808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8809   (exit $ac_status); }; then
  8810   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
  8811 else
  8812   pkg_failed=yes
  8813 fi
  8814  else
  8815     pkg_failed=untried
  8816 fi
  8817 if test -n "$GLIB_LIBS"; then
  8818     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
  8819  elif test -n "$PKG_CONFIG"; then
  8820     if test -n "$PKG_CONFIG" && \
  8821     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  8822   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  8823   ac_status=$?
  8824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8825   (exit $ac_status); }; then
  8826   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
  8827 else
  8828   pkg_failed=yes
  8829 fi
  8830  else
  8831     pkg_failed=untried
  8832 fi
  8836 if test $pkg_failed = yes; then
  8838 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8839         _pkg_short_errors_supported=yes
  8840 else
  8841         _pkg_short_errors_supported=no
  8842 fi
  8843         if test $_pkg_short_errors_supported = yes; then
  8844 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
  8845         else
  8846 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
  8847         fi
  8848 	# Put the nasty error message in config.log where it belongs
  8849 	echo "$GLIB_PKG_ERRORS" >&5
  8851 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
  8853 $GLIB_PKG_ERRORS
  8855 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8856 installed software in a non-standard prefix.
  8858 Alternatively, you may set the environment variables GLIB_CFLAGS
  8859 and GLIB_LIBS to avoid the need to call pkg-config.
  8860 See the pkg-config man page for more details.
  8861 " >&5
  8862 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
  8864 $GLIB_PKG_ERRORS
  8866 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8867 installed software in a non-standard prefix.
  8869 Alternatively, you may set the environment variables GLIB_CFLAGS
  8870 and GLIB_LIBS to avoid the need to call pkg-config.
  8871 See the pkg-config man page for more details.
  8872 " >&2;}
  8873    { (exit 1); exit 1; }; }
  8874 elif test $pkg_failed = untried; then
  8875 	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8877 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  8878 is in your PATH or set the PKG_CONFIG environment variable to the full
  8879 path to pkg-config.
  8881 Alternatively, you may set the environment variables GLIB_CFLAGS
  8882 and GLIB_LIBS to avoid the need to call pkg-config.
  8883 See the pkg-config man page for more details.
  8885 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8886 See \`config.log' for more details." >&5
  8887 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  8888 is in your PATH or set the PKG_CONFIG environment variable to the full
  8889 path to pkg-config.
  8891 Alternatively, you may set the environment variables GLIB_CFLAGS
  8892 and GLIB_LIBS to avoid the need to call pkg-config.
  8893 See the pkg-config man page for more details.
  8895 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8896 See \`config.log' for more details." >&2;}
  8897    { (exit 1); exit 1; }; }; }
  8898 else
  8899 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
  8900 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
  8901         { $as_echo "$as_me:$LINENO: result: yes" >&5
  8902 $as_echo "yes" >&6; }
  8904 fi
  8905 else
  8907 pkg_failed=no
  8908 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
  8909 $as_echo_n "checking for GTK... " >&6; }
  8911 if test -n "$GTK_CFLAGS"; then
  8912     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  8913  elif test -n "$PKG_CONFIG"; then
  8914     if test -n "$PKG_CONFIG" && \
  8915     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  8916   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  8917   ac_status=$?
  8918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8919   (exit $ac_status); }; then
  8920   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  8921 else
  8922   pkg_failed=yes
  8923 fi
  8924  else
  8925     pkg_failed=untried
  8926 fi
  8927 if test -n "$GTK_LIBS"; then
  8928     pkg_cv_GTK_LIBS="$GTK_LIBS"
  8929  elif test -n "$PKG_CONFIG"; then
  8930     if test -n "$PKG_CONFIG" && \
  8931     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  8932   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  8933   ac_status=$?
  8934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8935   (exit $ac_status); }; then
  8936   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  8937 else
  8938   pkg_failed=yes
  8939 fi
  8940  else
  8941     pkg_failed=untried
  8942 fi
  8946 if test $pkg_failed = yes; then
  8948 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8949         _pkg_short_errors_supported=yes
  8950 else
  8951         _pkg_short_errors_supported=no
  8952 fi
  8953         if test $_pkg_short_errors_supported = yes; then
  8954 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
  8955         else
  8956 	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
  8957         fi
  8958 	# Put the nasty error message in config.log where it belongs
  8959 	echo "$GTK_PKG_ERRORS" >&5
  8961 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  8963 $GTK_PKG_ERRORS
  8965 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8966 installed software in a non-standard prefix.
  8968 Alternatively, you may set the environment variables GTK_CFLAGS
  8969 and GTK_LIBS to avoid the need to call pkg-config.
  8970 See the pkg-config man page for more details.
  8971 " >&5
  8972 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  8974 $GTK_PKG_ERRORS
  8976 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8977 installed software in a non-standard prefix.
  8979 Alternatively, you may set the environment variables GTK_CFLAGS
  8980 and GTK_LIBS to avoid the need to call pkg-config.
  8981 See the pkg-config man page for more details.
  8982 " >&2;}
  8983    { (exit 1); exit 1; }; }
  8984 elif test $pkg_failed = untried; then
  8985 	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8987 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  8988 is in your PATH or set the PKG_CONFIG environment variable to the full
  8989 path to pkg-config.
  8991 Alternatively, you may set the environment variables GTK_CFLAGS
  8992 and GTK_LIBS to avoid the need to call pkg-config.
  8993 See the pkg-config man page for more details.
  8995 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8996 See \`config.log' for more details." >&5
  8997 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  8998 is in your PATH or set the PKG_CONFIG environment variable to the full
  8999 path to pkg-config.
  9001 Alternatively, you may set the environment variables GTK_CFLAGS
  9002 and GTK_LIBS to avoid the need to call pkg-config.
  9003 See the pkg-config man page for more details.
  9005 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9006 See \`config.log' for more details." >&2;}
  9007    { (exit 1); exit 1; }; }; }
  9008 else
  9009 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  9010 	GTK_LIBS=$pkg_cv_GTK_LIBS
  9011         { $as_echo "$as_me:$LINENO: result: yes" >&5
  9012 $as_echo "yes" >&6; }
  9014        HAVE_GTK='yes'
  9016 cat >>confdefs.h <<\_ACEOF
  9017 #define HAVE_GTK 1
  9018 _ACEOF
  9021 fi
  9023       LIBS="$LIBS $GTK_LIBS"
  9024    { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
  9025 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
  9026 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
  9027   $as_echo_n "(cached) " >&6
  9028 else
  9029   cat >conftest.$ac_ext <<_ACEOF
  9030 /* confdefs.h.  */
  9031 _ACEOF
  9032 cat confdefs.h >>conftest.$ac_ext
  9033 cat >>conftest.$ac_ext <<_ACEOF
  9034 /* end confdefs.h.  */
  9035 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
  9036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9037 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
  9039 /* System header to define __stub macros and hopefully few prototypes,
  9040     which can conflict with char gdk_x11_display_get_xdisplay (); below.
  9041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9042     <limits.h> exists even on freestanding compilers.  */
  9044 #ifdef __STDC__
  9045 # include <limits.h>
  9046 #else
  9047 # include <assert.h>
  9048 #endif
  9050 #undef gdk_x11_display_get_xdisplay
  9052 /* Override any GCC internal prototype to avoid an error.
  9053    Use char because int might match the return type of a GCC
  9054    builtin and then its argument prototype would still apply.  */
  9055 #ifdef __cplusplus
  9056 extern "C"
  9057 #endif
  9058 char gdk_x11_display_get_xdisplay ();
  9059 /* The GNU C library defines this for functions which it implements
  9060     to always fail with ENOSYS.  Some functions are actually named
  9061     something starting with __ and the normal name is an alias.  */
  9062 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
  9063 choke me
  9064 #endif
  9066 int
  9067 main ()
  9069 return gdk_x11_display_get_xdisplay ();
  9071   return 0;
  9073 _ACEOF
  9074 rm -f conftest.$ac_objext conftest$ac_exeext
  9075 if { (ac_try="$ac_link"
  9076 case "(($ac_try" in
  9077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9078   *) ac_try_echo=$ac_try;;
  9079 esac
  9080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9081 $as_echo "$ac_try_echo") >&5
  9082   (eval "$ac_link") 2>conftest.er1
  9083   ac_status=$?
  9084   grep -v '^ *+' conftest.er1 >conftest.err
  9085   rm -f conftest.er1
  9086   cat conftest.err >&5
  9087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9088   (exit $ac_status); } && {
  9089 	 test -z "$ac_c_werror_flag" ||
  9090 	 test ! -s conftest.err
  9091        } && test -s conftest$ac_exeext && {
  9092 	 test "$cross_compiling" = yes ||
  9093 	 $as_test_x conftest$ac_exeext
  9094        }; then
  9095   ac_cv_func_gdk_x11_display_get_xdisplay=yes
  9096 else
  9097   $as_echo "$as_me: failed program was:" >&5
  9098 sed 's/^/| /' conftest.$ac_ext >&5
  9100 	ac_cv_func_gdk_x11_display_get_xdisplay=no
  9101 fi
  9103 rm -rf conftest.dSYM
  9104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9105       conftest$ac_exeext conftest.$ac_ext
  9106 fi
  9107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
  9108 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
  9109 if test "x$ac_cv_func_gdk_x11_display_get_xdisplay" = x""yes; then
  9111       HAVE_GTK_X11='yes'
  9113 cat >>confdefs.h <<\_ACEOF
  9114 #define HAVE_GTK_X11 1
  9115 _ACEOF
  9117 fi
  9119    { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
  9120 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
  9121 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
  9122   $as_echo_n "(cached) " >&6
  9123 else
  9124   cat >conftest.$ac_ext <<_ACEOF
  9125 /* confdefs.h.  */
  9126 _ACEOF
  9127 cat confdefs.h >>conftest.$ac_ext
  9128 cat >>conftest.$ac_ext <<_ACEOF
  9129 /* end confdefs.h.  */
  9130 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
  9131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9132 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
  9134 /* System header to define __stub macros and hopefully few prototypes,
  9135     which can conflict with char gdk_quartz_window_get_nsview (); below.
  9136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9137     <limits.h> exists even on freestanding compilers.  */
  9139 #ifdef __STDC__
  9140 # include <limits.h>
  9141 #else
  9142 # include <assert.h>
  9143 #endif
  9145 #undef gdk_quartz_window_get_nsview
  9147 /* Override any GCC internal prototype to avoid an error.
  9148    Use char because int might match the return type of a GCC
  9149    builtin and then its argument prototype would still apply.  */
  9150 #ifdef __cplusplus
  9151 extern "C"
  9152 #endif
  9153 char gdk_quartz_window_get_nsview ();
  9154 /* The GNU C library defines this for functions which it implements
  9155     to always fail with ENOSYS.  Some functions are actually named
  9156     something starting with __ and the normal name is an alias.  */
  9157 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
  9158 choke me
  9159 #endif
  9161 int
  9162 main ()
  9164 return gdk_quartz_window_get_nsview ();
  9166   return 0;
  9168 _ACEOF
  9169 rm -f conftest.$ac_objext conftest$ac_exeext
  9170 if { (ac_try="$ac_link"
  9171 case "(($ac_try" in
  9172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9173   *) ac_try_echo=$ac_try;;
  9174 esac
  9175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9176 $as_echo "$ac_try_echo") >&5
  9177   (eval "$ac_link") 2>conftest.er1
  9178   ac_status=$?
  9179   grep -v '^ *+' conftest.er1 >conftest.err
  9180   rm -f conftest.er1
  9181   cat conftest.err >&5
  9182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9183   (exit $ac_status); } && {
  9184 	 test -z "$ac_c_werror_flag" ||
  9185 	 test ! -s conftest.err
  9186        } && test -s conftest$ac_exeext && {
  9187 	 test "$cross_compiling" = yes ||
  9188 	 $as_test_x conftest$ac_exeext
  9189        }; then
  9190   ac_cv_func_gdk_quartz_window_get_nsview=yes
  9191 else
  9192   $as_echo "$as_me: failed program was:" >&5
  9193 sed 's/^/| /' conftest.$ac_ext >&5
  9195 	ac_cv_func_gdk_quartz_window_get_nsview=no
  9196 fi
  9198 rm -rf conftest.dSYM
  9199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9200       conftest$ac_exeext conftest.$ac_ext
  9201 fi
  9202 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
  9203 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
  9204 if test "x$ac_cv_func_gdk_quartz_window_get_nsview" = x""yes; then
  9206       HAVE_GTK_OSX='yes'
  9208 cat >>confdefs.h <<\_ACEOF
  9209 #define HAVE_GTK_OSX 1
  9210 _ACEOF
  9212 fi
  9214 fi
  9218 if test "$HAVE_GTK" = 'yes'; then
  9219   GUI_GTK_TRUE=
  9220   GUI_GTK_FALSE='#'
  9221 else
  9222   GUI_GTK_TRUE='#'
  9223   GUI_GTK_FALSE=
  9224 fi
  9227 if test "x$with_osmesa" != xno; then
  9231 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  9232 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
  9233 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  9234   $as_echo_n "(cached) " >&6
  9235 else
  9236   ac_check_lib_save_LIBS=$LIBS
  9237 LIBS="-lOSMesa  $LIBS"
  9238 cat >conftest.$ac_ext <<_ACEOF
  9239 /* confdefs.h.  */
  9240 _ACEOF
  9241 cat confdefs.h >>conftest.$ac_ext
  9242 cat >>conftest.$ac_ext <<_ACEOF
  9243 /* end confdefs.h.  */
  9245 /* Override any GCC internal prototype to avoid an error.
  9246    Use char because int might match the return type of a GCC
  9247    builtin and then its argument prototype would still apply.  */
  9248 #ifdef __cplusplus
  9249 extern "C"
  9250 #endif
  9251 char OSMesaCreateContext ();
  9252 int
  9253 main ()
  9255 return OSMesaCreateContext ();
  9257   return 0;
  9259 _ACEOF
  9260 rm -f conftest.$ac_objext conftest$ac_exeext
  9261 if { (ac_try="$ac_link"
  9262 case "(($ac_try" in
  9263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9264   *) ac_try_echo=$ac_try;;
  9265 esac
  9266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9267 $as_echo "$ac_try_echo") >&5
  9268   (eval "$ac_link") 2>conftest.er1
  9269   ac_status=$?
  9270   grep -v '^ *+' conftest.er1 >conftest.err
  9271   rm -f conftest.er1
  9272   cat conftest.err >&5
  9273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9274   (exit $ac_status); } && {
  9275 	 test -z "$ac_c_werror_flag" ||
  9276 	 test ! -s conftest.err
  9277        } && test -s conftest$ac_exeext && {
  9278 	 test "$cross_compiling" = yes ||
  9279 	 $as_test_x conftest$ac_exeext
  9280        }; then
  9281   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  9282 else
  9283   $as_echo "$as_me: failed program was:" >&5
  9284 sed 's/^/| /' conftest.$ac_ext >&5
  9286 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  9287 fi
  9289 rm -rf conftest.dSYM
  9290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9291       conftest$ac_exeext conftest.$ac_ext
  9292 LIBS=$ac_check_lib_save_LIBS
  9293 fi
  9294 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  9295 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  9296 if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = x""yes; then
  9297   cat >>confdefs.h <<_ACEOF
  9298 #define HAVE_LIBOSMESA 1
  9299 _ACEOF
  9301   LIBS="-lOSMesa $LIBS"
  9303 else
  9304   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  9305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9306 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  9307 See \`config.log' for more details." >&5
  9308 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  9309 See \`config.log' for more details." >&2;}
  9310    { (exit 1); exit 1; }; }; }
  9311 fi
  9313   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  9314   { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  9315 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  9316 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  9317   $as_echo_n "(cached) " >&6
  9318 fi
  9319 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  9320 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  9321 else
  9322   # Is the header compilable?
  9323 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  9324 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
  9325 cat >conftest.$ac_ext <<_ACEOF
  9326 /* confdefs.h.  */
  9327 _ACEOF
  9328 cat confdefs.h >>conftest.$ac_ext
  9329 cat >>conftest.$ac_ext <<_ACEOF
  9330 /* end confdefs.h.  */
  9331 $ac_includes_default
  9332 #include <GL/osmesa.h>
  9333 _ACEOF
  9334 rm -f conftest.$ac_objext
  9335 if { (ac_try="$ac_compile"
  9336 case "(($ac_try" in
  9337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9338   *) ac_try_echo=$ac_try;;
  9339 esac
  9340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9341 $as_echo "$ac_try_echo") >&5
  9342   (eval "$ac_compile") 2>conftest.er1
  9343   ac_status=$?
  9344   grep -v '^ *+' conftest.er1 >conftest.err
  9345   rm -f conftest.er1
  9346   cat conftest.err >&5
  9347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9348   (exit $ac_status); } && {
  9349 	 test -z "$ac_c_werror_flag" ||
  9350 	 test ! -s conftest.err
  9351        } && test -s conftest.$ac_objext; then
  9352   ac_header_compiler=yes
  9353 else
  9354   $as_echo "$as_me: failed program was:" >&5
  9355 sed 's/^/| /' conftest.$ac_ext >&5
  9357 	ac_header_compiler=no
  9358 fi
  9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9361 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9362 $as_echo "$ac_header_compiler" >&6; }
  9364 # Is the header present?
  9365 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  9366 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
  9367 cat >conftest.$ac_ext <<_ACEOF
  9368 /* confdefs.h.  */
  9369 _ACEOF
  9370 cat confdefs.h >>conftest.$ac_ext
  9371 cat >>conftest.$ac_ext <<_ACEOF
  9372 /* end confdefs.h.  */
  9373 #include <GL/osmesa.h>
  9374 _ACEOF
  9375 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9376 case "(($ac_try" in
  9377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9378   *) ac_try_echo=$ac_try;;
  9379 esac
  9380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9381 $as_echo "$ac_try_echo") >&5
  9382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9383   ac_status=$?
  9384   grep -v '^ *+' conftest.er1 >conftest.err
  9385   rm -f conftest.er1
  9386   cat conftest.err >&5
  9387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9388   (exit $ac_status); } >/dev/null && {
  9389 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9390 	 test ! -s conftest.err
  9391        }; then
  9392   ac_header_preproc=yes
  9393 else
  9394   $as_echo "$as_me: failed program was:" >&5
  9395 sed 's/^/| /' conftest.$ac_ext >&5
  9397   ac_header_preproc=no
  9398 fi
  9400 rm -f conftest.err conftest.$ac_ext
  9401 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9402 $as_echo "$ac_header_preproc" >&6; }
  9404 # So?  What about this header?
  9405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9406   yes:no: )
  9407     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9408 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9409     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  9410 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  9411     ac_header_preproc=yes
  9412     ;;
  9413   no:yes:* )
  9414     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  9415 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  9416     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  9417 $as_echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  9418     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  9419 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  9420     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  9421 $as_echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9422     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  9423 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  9424     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  9425 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  9427     ;;
  9428 esac
  9429 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  9430 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  9431 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  9432   $as_echo_n "(cached) " >&6
  9433 else
  9434   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  9435 fi
  9436 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  9437 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  9439 fi
  9440 if test "x$ac_cv_header_GL_osmesa_h" = x""yes; then
  9442 else
  9443   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  9444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9445 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  9446 See \`config.log' for more details." >&5
  9447 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  9448 See \`config.log' for more details." >&2;}
  9449    { (exit 1); exit 1; }; }; }
  9450 fi
  9453   HAVE_OSMESA='yes'
  9454   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
  9456 cat >>confdefs.h <<\_ACEOF
  9457 #define HAVE_OSMESA 1
  9458 _ACEOF
  9460 else
  9463    if test "x$APPLE_BUILD" != 'xyes'; then
  9465 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
  9466 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
  9467 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
  9468   $as_echo_n "(cached) " >&6
  9469 else
  9470   ac_check_lib_save_LIBS=$LIBS
  9471 LIBS="-lGL  $LIBS"
  9472 cat >conftest.$ac_ext <<_ACEOF
  9473 /* confdefs.h.  */
  9474 _ACEOF
  9475 cat confdefs.h >>conftest.$ac_ext
  9476 cat >>conftest.$ac_ext <<_ACEOF
  9477 /* end confdefs.h.  */
  9479 /* Override any GCC internal prototype to avoid an error.
  9480    Use char because int might match the return type of a GCC
  9481    builtin and then its argument prototype would still apply.  */
  9482 #ifdef __cplusplus
  9483 extern "C"
  9484 #endif
  9485 char glVertex3f ();
  9486 int
  9487 main ()
  9489 return glVertex3f ();
  9491   return 0;
  9493 _ACEOF
  9494 rm -f conftest.$ac_objext conftest$ac_exeext
  9495 if { (ac_try="$ac_link"
  9496 case "(($ac_try" in
  9497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9498   *) ac_try_echo=$ac_try;;
  9499 esac
  9500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9501 $as_echo "$ac_try_echo") >&5
  9502   (eval "$ac_link") 2>conftest.er1
  9503   ac_status=$?
  9504   grep -v '^ *+' conftest.er1 >conftest.err
  9505   rm -f conftest.er1
  9506   cat conftest.err >&5
  9507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9508   (exit $ac_status); } && {
  9509 	 test -z "$ac_c_werror_flag" ||
  9510 	 test ! -s conftest.err
  9511        } && test -s conftest$ac_exeext && {
  9512 	 test "$cross_compiling" = yes ||
  9513 	 $as_test_x conftest$ac_exeext
  9514        }; then
  9515   ac_cv_lib_GL_glVertex3f=yes
  9516 else
  9517   $as_echo "$as_me: failed program was:" >&5
  9518 sed 's/^/| /' conftest.$ac_ext >&5
  9520 	ac_cv_lib_GL_glVertex3f=no
  9521 fi
  9523 rm -rf conftest.dSYM
  9524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9525       conftest$ac_exeext conftest.$ac_ext
  9526 LIBS=$ac_check_lib_save_LIBS
  9527 fi
  9528 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
  9529 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
  9530 if test "x$ac_cv_lib_GL_glVertex3f" = x""yes; then
  9531   cat >>confdefs.h <<_ACEOF
  9532 #define HAVE_LIBGL 1
  9533 _ACEOF
  9535   LIBS="-lGL $LIBS"
  9537 else
  9539           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  9540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9541 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  9542 See \`config.log' for more details." >&5
  9543 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  9544 See \`config.log' for more details." >&2;}
  9545    { (exit 1); exit 1; }; }; }
  9546 fi
  9548       if test "${ac_cv_header_GL_gl_h+set}" = set; then
  9549   { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  9550 $as_echo_n "checking for GL/gl.h... " >&6; }
  9551 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  9552   $as_echo_n "(cached) " >&6
  9553 fi
  9554 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  9555 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  9556 else
  9557   # Is the header compilable?
  9558 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  9559 $as_echo_n "checking GL/gl.h usability... " >&6; }
  9560 cat >conftest.$ac_ext <<_ACEOF
  9561 /* confdefs.h.  */
  9562 _ACEOF
  9563 cat confdefs.h >>conftest.$ac_ext
  9564 cat >>conftest.$ac_ext <<_ACEOF
  9565 /* end confdefs.h.  */
  9566 $ac_includes_default
  9567 #include <GL/gl.h>
  9568 _ACEOF
  9569 rm -f conftest.$ac_objext
  9570 if { (ac_try="$ac_compile"
  9571 case "(($ac_try" in
  9572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9573   *) ac_try_echo=$ac_try;;
  9574 esac
  9575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9576 $as_echo "$ac_try_echo") >&5
  9577   (eval "$ac_compile") 2>conftest.er1
  9578   ac_status=$?
  9579   grep -v '^ *+' conftest.er1 >conftest.err
  9580   rm -f conftest.er1
  9581   cat conftest.err >&5
  9582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9583   (exit $ac_status); } && {
  9584 	 test -z "$ac_c_werror_flag" ||
  9585 	 test ! -s conftest.err
  9586        } && test -s conftest.$ac_objext; then
  9587   ac_header_compiler=yes
  9588 else
  9589   $as_echo "$as_me: failed program was:" >&5
  9590 sed 's/^/| /' conftest.$ac_ext >&5
  9592 	ac_header_compiler=no
  9593 fi
  9595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9596 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9597 $as_echo "$ac_header_compiler" >&6; }
  9599 # Is the header present?
  9600 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  9601 $as_echo_n "checking GL/gl.h presence... " >&6; }
  9602 cat >conftest.$ac_ext <<_ACEOF
  9603 /* confdefs.h.  */
  9604 _ACEOF
  9605 cat confdefs.h >>conftest.$ac_ext
  9606 cat >>conftest.$ac_ext <<_ACEOF
  9607 /* end confdefs.h.  */
  9608 #include <GL/gl.h>
  9609 _ACEOF
  9610 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9611 case "(($ac_try" in
  9612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9613   *) ac_try_echo=$ac_try;;
  9614 esac
  9615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9616 $as_echo "$ac_try_echo") >&5
  9617   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9618   ac_status=$?
  9619   grep -v '^ *+' conftest.er1 >conftest.err
  9620   rm -f conftest.er1
  9621   cat conftest.err >&5
  9622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9623   (exit $ac_status); } >/dev/null && {
  9624 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9625 	 test ! -s conftest.err
  9626        }; then
  9627   ac_header_preproc=yes
  9628 else
  9629   $as_echo "$as_me: failed program was:" >&5
  9630 sed 's/^/| /' conftest.$ac_ext >&5
  9632   ac_header_preproc=no
  9633 fi
  9635 rm -f conftest.err conftest.$ac_ext
  9636 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9637 $as_echo "$ac_header_preproc" >&6; }
  9639 # So?  What about this header?
  9640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9641   yes:no: )
  9642     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9643 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9644     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  9645 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  9646     ac_header_preproc=yes
  9647     ;;
  9648   no:yes:* )
  9649     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  9650 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  9651     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  9652 $as_echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  9653     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  9654 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  9655     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  9656 $as_echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9657     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  9658 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  9659     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  9660 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  9662     ;;
  9663 esac
  9664 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  9665 $as_echo_n "checking for GL/gl.h... " >&6; }
  9666 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  9667   $as_echo_n "(cached) " >&6
  9668 else
  9669   ac_cv_header_GL_gl_h=$ac_header_preproc
  9670 fi
  9671 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  9672 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  9674 fi
  9675 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
  9677 else
  9679           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  9680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9681 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  9682 See \`config.log' for more details." >&5
  9683 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  9684 See \`config.log' for more details." >&2;}
  9685    { (exit 1); exit 1; }; }; }
  9686 fi
  9689    else
  9690       { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
  9691 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
  9692 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
  9693   $as_echo_n "(cached) " >&6
  9694 else
  9695   cat >conftest.$ac_ext <<_ACEOF
  9696 /* confdefs.h.  */
  9697 _ACEOF
  9698 cat confdefs.h >>conftest.$ac_ext
  9699 cat >>conftest.$ac_ext <<_ACEOF
  9700 /* end confdefs.h.  */
  9701 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
  9702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9703 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
  9705 /* System header to define __stub macros and hopefully few prototypes,
  9706     which can conflict with char NSOpenGLGetVersion (); below.
  9707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9708     <limits.h> exists even on freestanding compilers.  */
  9710 #ifdef __STDC__
  9711 # include <limits.h>
  9712 #else
  9713 # include <assert.h>
  9714 #endif
  9716 #undef NSOpenGLGetVersion
  9718 /* Override any GCC internal prototype to avoid an error.
  9719    Use char because int might match the return type of a GCC
  9720    builtin and then its argument prototype would still apply.  */
  9721 #ifdef __cplusplus
  9722 extern "C"
  9723 #endif
  9724 char NSOpenGLGetVersion ();
  9725 /* The GNU C library defines this for functions which it implements
  9726     to always fail with ENOSYS.  Some functions are actually named
  9727     something starting with __ and the normal name is an alias.  */
  9728 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
  9729 choke me
  9730 #endif
  9732 int
  9733 main ()
  9735 return NSOpenGLGetVersion ();
  9737   return 0;
  9739 _ACEOF
  9740 rm -f conftest.$ac_objext conftest$ac_exeext
  9741 if { (ac_try="$ac_link"
  9742 case "(($ac_try" in
  9743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9744   *) ac_try_echo=$ac_try;;
  9745 esac
  9746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9747 $as_echo "$ac_try_echo") >&5
  9748   (eval "$ac_link") 2>conftest.er1
  9749   ac_status=$?
  9750   grep -v '^ *+' conftest.er1 >conftest.err
  9751   rm -f conftest.er1
  9752   cat conftest.err >&5
  9753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9754   (exit $ac_status); } && {
  9755 	 test -z "$ac_c_werror_flag" ||
  9756 	 test ! -s conftest.err
  9757        } && test -s conftest$ac_exeext && {
  9758 	 test "$cross_compiling" = yes ||
  9759 	 $as_test_x conftest$ac_exeext
  9760        }; then
  9761   ac_cv_func_NSOpenGLGetVersion=yes
  9762 else
  9763   $as_echo "$as_me: failed program was:" >&5
  9764 sed 's/^/| /' conftest.$ac_ext >&5
  9766 	ac_cv_func_NSOpenGLGetVersion=no
  9767 fi
  9769 rm -rf conftest.dSYM
  9770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9771       conftest$ac_exeext conftest.$ac_ext
  9772 fi
  9773 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
  9774 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
  9775 if test "x$ac_cv_func_NSOpenGLGetVersion" = x""yes; then
  9777          HAVE_NSGL='yes'
  9778          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
  9780 cat >>confdefs.h <<\_ACEOF
  9781 #define HAVE_NSGL 1
  9782 _ACEOF
  9784 fi
  9786    fi
  9788    if test "x$HAVE_GTK_X11" = "xyes"; then
  9789       if test "x$APPLE_BUILD" = "xyes"; then
  9790          LIBS="$LIBS -L/usr/X11/lib -lGL"
  9791       fi
  9792       { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
  9793 $as_echo_n "checking for glXQueryVersion... " >&6; }
  9794 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
  9795   $as_echo_n "(cached) " >&6
  9796 else
  9797   cat >conftest.$ac_ext <<_ACEOF
  9798 /* confdefs.h.  */
  9799 _ACEOF
  9800 cat confdefs.h >>conftest.$ac_ext
  9801 cat >>conftest.$ac_ext <<_ACEOF
  9802 /* end confdefs.h.  */
  9803 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
  9804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9805 #define glXQueryVersion innocuous_glXQueryVersion
  9807 /* System header to define __stub macros and hopefully few prototypes,
  9808     which can conflict with char glXQueryVersion (); below.
  9809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9810     <limits.h> exists even on freestanding compilers.  */
  9812 #ifdef __STDC__
  9813 # include <limits.h>
  9814 #else
  9815 # include <assert.h>
  9816 #endif
  9818 #undef glXQueryVersion
  9820 /* Override any GCC internal prototype to avoid an error.
  9821    Use char because int might match the return type of a GCC
  9822    builtin and then its argument prototype would still apply.  */
  9823 #ifdef __cplusplus
  9824 extern "C"
  9825 #endif
  9826 char glXQueryVersion ();
  9827 /* The GNU C library defines this for functions which it implements
  9828     to always fail with ENOSYS.  Some functions are actually named
  9829     something starting with __ and the normal name is an alias.  */
  9830 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
  9831 choke me
  9832 #endif
  9834 int
  9835 main ()
  9837 return glXQueryVersion ();
  9839   return 0;
  9841 _ACEOF
  9842 rm -f conftest.$ac_objext conftest$ac_exeext
  9843 if { (ac_try="$ac_link"
  9844 case "(($ac_try" in
  9845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9846   *) ac_try_echo=$ac_try;;
  9847 esac
  9848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9849 $as_echo "$ac_try_echo") >&5
  9850   (eval "$ac_link") 2>conftest.er1
  9851   ac_status=$?
  9852   grep -v '^ *+' conftest.er1 >conftest.err
  9853   rm -f conftest.er1
  9854   cat conftest.err >&5
  9855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9856   (exit $ac_status); } && {
  9857 	 test -z "$ac_c_werror_flag" ||
  9858 	 test ! -s conftest.err
  9859        } && test -s conftest$ac_exeext && {
  9860 	 test "$cross_compiling" = yes ||
  9861 	 $as_test_x conftest$ac_exeext
  9862        }; then
  9863   ac_cv_func_glXQueryVersion=yes
  9864 else
  9865   $as_echo "$as_me: failed program was:" >&5
  9866 sed 's/^/| /' conftest.$ac_ext >&5
  9868 	ac_cv_func_glXQueryVersion=no
  9869 fi
  9871 rm -rf conftest.dSYM
  9872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9873       conftest$ac_exeext conftest.$ac_ext
  9874 fi
  9875 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
  9876 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
  9877 if test "x$ac_cv_func_glXQueryVersion" = x""yes; then
  9879          HAVE_GLX='yes'
  9880          VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
  9882 cat >>confdefs.h <<\_ACEOF
  9883 #define HAVE_GLX 1
  9884 _ACEOF
  9886 fi
  9888    fi
  9891 fi
  9898 if test "x$HAVE_OSMESA" = "xyes"; then
  9899   VIDEO_OSMESA_TRUE=
  9900   VIDEO_OSMESA_FALSE='#'
  9901 else
  9902   VIDEO_OSMESA_TRUE='#'
  9903   VIDEO_OSMESA_FALSE=
  9904 fi
  9908 if test "x$HAVE_GLX" = "xyes"; then
  9909   VIDEO_GLX_TRUE=
  9910   VIDEO_GLX_FALSE='#'
  9911 else
  9912   VIDEO_GLX_TRUE='#'
  9913   VIDEO_GLX_FALSE=
  9914 fi
  9918 if test "x$HAVE_NSGL" = "xyes"; then
  9919   VIDEO_NSGL_TRUE=
  9920   VIDEO_NSGL_FALSE='#'
  9921 else
  9922   VIDEO_NSGL_TRUE='#'
  9923   VIDEO_NSGL_FALSE=
  9924 fi
  9927 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
  9928 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
  9929 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
  9930   $as_echo_n "(cached) " >&6
  9931 else
  9932   cat >conftest.$ac_ext <<_ACEOF
  9933 /* confdefs.h.  */
  9934 _ACEOF
  9935 cat confdefs.h >>conftest.$ac_ext
  9936 cat >>conftest.$ac_ext <<_ACEOF
  9937 /* end confdefs.h.  */
  9938 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
  9939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9940 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
  9942 /* System header to define __stub macros and hopefully few prototypes,
  9943     which can conflict with char glGenFramebuffersEXT (); below.
  9944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9945     <limits.h> exists even on freestanding compilers.  */
  9947 #ifdef __STDC__
  9948 # include <limits.h>
  9949 #else
  9950 # include <assert.h>
  9951 #endif
  9953 #undef glGenFramebuffersEXT
  9955 /* Override any GCC internal prototype to avoid an error.
  9956    Use char because int might match the return type of a GCC
  9957    builtin and then its argument prototype would still apply.  */
  9958 #ifdef __cplusplus
  9959 extern "C"
  9960 #endif
  9961 char glGenFramebuffersEXT ();
  9962 /* The GNU C library defines this for functions which it implements
  9963     to always fail with ENOSYS.  Some functions are actually named
  9964     something starting with __ and the normal name is an alias.  */
  9965 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
  9966 choke me
  9967 #endif
  9969 int
  9970 main ()
  9972 return glGenFramebuffersEXT ();
  9974   return 0;
  9976 _ACEOF
  9977 rm -f conftest.$ac_objext conftest$ac_exeext
  9978 if { (ac_try="$ac_link"
  9979 case "(($ac_try" in
  9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9981   *) ac_try_echo=$ac_try;;
  9982 esac
  9983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9984 $as_echo "$ac_try_echo") >&5
  9985   (eval "$ac_link") 2>conftest.er1
  9986   ac_status=$?
  9987   grep -v '^ *+' conftest.er1 >conftest.err
  9988   rm -f conftest.er1
  9989   cat conftest.err >&5
  9990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9991   (exit $ac_status); } && {
  9992 	 test -z "$ac_c_werror_flag" ||
  9993 	 test ! -s conftest.err
  9994        } && test -s conftest$ac_exeext && {
  9995 	 test "$cross_compiling" = yes ||
  9996 	 $as_test_x conftest$ac_exeext
  9997        }; then
  9998   ac_cv_func_glGenFramebuffersEXT=yes
  9999 else
 10000   $as_echo "$as_me: failed program was:" >&5
 10001 sed 's/^/| /' conftest.$ac_ext >&5
 10003 	ac_cv_func_glGenFramebuffersEXT=no
 10004 fi
 10006 rm -rf conftest.dSYM
 10007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10008       conftest$ac_exeext conftest.$ac_ext
 10009 fi
 10010 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
 10011 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
 10012 if test "x$ac_cv_func_glGenFramebuffersEXT" = x""yes; then
 10014 cat >>confdefs.h <<\_ACEOF
 10015 #define HAVE_OPENGL_FBO 1
 10016 _ACEOF
 10018 fi
 10020 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
 10021 $as_echo_n "checking for glCreateShader... " >&6; }
 10022 if test "${ac_cv_func_glCreateShader+set}" = set; then
 10023   $as_echo_n "(cached) " >&6
 10024 else
 10025   cat >conftest.$ac_ext <<_ACEOF
 10026 /* confdefs.h.  */
 10027 _ACEOF
 10028 cat confdefs.h >>conftest.$ac_ext
 10029 cat >>conftest.$ac_ext <<_ACEOF
 10030 /* end confdefs.h.  */
 10031 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
 10032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10033 #define glCreateShader innocuous_glCreateShader
 10035 /* System header to define __stub macros and hopefully few prototypes,
 10036     which can conflict with char glCreateShader (); below.
 10037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10038     <limits.h> exists even on freestanding compilers.  */
 10040 #ifdef __STDC__
 10041 # include <limits.h>
 10042 #else
 10043 # include <assert.h>
 10044 #endif
 10046 #undef glCreateShader
 10048 /* Override any GCC internal prototype to avoid an error.
 10049    Use char because int might match the return type of a GCC
 10050    builtin and then its argument prototype would still apply.  */
 10051 #ifdef __cplusplus
 10052 extern "C"
 10053 #endif
 10054 char glCreateShader ();
 10055 /* The GNU C library defines this for functions which it implements
 10056     to always fail with ENOSYS.  Some functions are actually named
 10057     something starting with __ and the normal name is an alias.  */
 10058 #if defined __stub_glCreateShader || defined __stub___glCreateShader
 10059 choke me
 10060 #endif
 10062 int
 10063 main ()
 10065 return glCreateShader ();
 10067   return 0;
 10069 _ACEOF
 10070 rm -f conftest.$ac_objext conftest$ac_exeext
 10071 if { (ac_try="$ac_link"
 10072 case "(($ac_try" in
 10073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10074   *) ac_try_echo=$ac_try;;
 10075 esac
 10076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10077 $as_echo "$ac_try_echo") >&5
 10078   (eval "$ac_link") 2>conftest.er1
 10079   ac_status=$?
 10080   grep -v '^ *+' conftest.er1 >conftest.err
 10081   rm -f conftest.er1
 10082   cat conftest.err >&5
 10083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10084   (exit $ac_status); } && {
 10085 	 test -z "$ac_c_werror_flag" ||
 10086 	 test ! -s conftest.err
 10087        } && test -s conftest$ac_exeext && {
 10088 	 test "$cross_compiling" = yes ||
 10089 	 $as_test_x conftest$ac_exeext
 10090        }; then
 10091   ac_cv_func_glCreateShader=yes
 10092 else
 10093   $as_echo "$as_me: failed program was:" >&5
 10094 sed 's/^/| /' conftest.$ac_ext >&5
 10096 	ac_cv_func_glCreateShader=no
 10097 fi
 10099 rm -rf conftest.dSYM
 10100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10101       conftest$ac_exeext conftest.$ac_ext
 10102 fi
 10103 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
 10104 $as_echo "$ac_cv_func_glCreateShader" >&6; }
 10105 if test "x$ac_cv_func_glCreateShader" = x""yes; then
 10107 cat >>confdefs.h <<\_ACEOF
 10108 #define HAVE_OPENGL_SHADER 1
 10109 _ACEOF
 10111 fi
 10113 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
 10114 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
 10115 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
 10116   $as_echo_n "(cached) " >&6
 10117 else
 10118   cat >conftest.$ac_ext <<_ACEOF
 10119 /* confdefs.h.  */
 10120 _ACEOF
 10121 cat confdefs.h >>conftest.$ac_ext
 10122 cat >>conftest.$ac_ext <<_ACEOF
 10123 /* end confdefs.h.  */
 10124 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
 10125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10126 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
 10128 /* System header to define __stub macros and hopefully few prototypes,
 10129     which can conflict with char glCreateShaderObjectARB (); below.
 10130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10131     <limits.h> exists even on freestanding compilers.  */
 10133 #ifdef __STDC__
 10134 # include <limits.h>
 10135 #else
 10136 # include <assert.h>
 10137 #endif
 10139 #undef glCreateShaderObjectARB
 10141 /* Override any GCC internal prototype to avoid an error.
 10142    Use char because int might match the return type of a GCC
 10143    builtin and then its argument prototype would still apply.  */
 10144 #ifdef __cplusplus
 10145 extern "C"
 10146 #endif
 10147 char glCreateShaderObjectARB ();
 10148 /* The GNU C library defines this for functions which it implements
 10149     to always fail with ENOSYS.  Some functions are actually named
 10150     something starting with __ and the normal name is an alias.  */
 10151 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
 10152 choke me
 10153 #endif
 10155 int
 10156 main ()
 10158 return glCreateShaderObjectARB ();
 10160   return 0;
 10162 _ACEOF
 10163 rm -f conftest.$ac_objext conftest$ac_exeext
 10164 if { (ac_try="$ac_link"
 10165 case "(($ac_try" in
 10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10167   *) ac_try_echo=$ac_try;;
 10168 esac
 10169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10170 $as_echo "$ac_try_echo") >&5
 10171   (eval "$ac_link") 2>conftest.er1
 10172   ac_status=$?
 10173   grep -v '^ *+' conftest.er1 >conftest.err
 10174   rm -f conftest.er1
 10175   cat conftest.err >&5
 10176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10177   (exit $ac_status); } && {
 10178 	 test -z "$ac_c_werror_flag" ||
 10179 	 test ! -s conftest.err
 10180        } && test -s conftest$ac_exeext && {
 10181 	 test "$cross_compiling" = yes ||
 10182 	 $as_test_x conftest$ac_exeext
 10183        }; then
 10184   ac_cv_func_glCreateShaderObjectARB=yes
 10185 else
 10186   $as_echo "$as_me: failed program was:" >&5
 10187 sed 's/^/| /' conftest.$ac_ext >&5
 10189 	ac_cv_func_glCreateShaderObjectARB=no
 10190 fi
 10192 rm -rf conftest.dSYM
 10193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10194       conftest$ac_exeext conftest.$ac_ext
 10195 fi
 10196 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
 10197 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
 10198 if test "x$ac_cv_func_glCreateShaderObjectARB" = x""yes; then
 10200 cat >>confdefs.h <<\_ACEOF
 10201 #define HAVE_OPENGL_SHADER_ARB 1
 10202 _ACEOF
 10204 fi
 10206 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
 10207 $as_echo_n "checking for glClampColorARB... " >&6; }
 10208 if test "${ac_cv_func_glClampColorARB+set}" = set; then
 10209   $as_echo_n "(cached) " >&6
 10210 else
 10211   cat >conftest.$ac_ext <<_ACEOF
 10212 /* confdefs.h.  */
 10213 _ACEOF
 10214 cat confdefs.h >>conftest.$ac_ext
 10215 cat >>conftest.$ac_ext <<_ACEOF
 10216 /* end confdefs.h.  */
 10217 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
 10218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10219 #define glClampColorARB innocuous_glClampColorARB
 10221 /* System header to define __stub macros and hopefully few prototypes,
 10222     which can conflict with char glClampColorARB (); below.
 10223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10224     <limits.h> exists even on freestanding compilers.  */
 10226 #ifdef __STDC__
 10227 # include <limits.h>
 10228 #else
 10229 # include <assert.h>
 10230 #endif
 10232 #undef glClampColorARB
 10234 /* Override any GCC internal prototype to avoid an error.
 10235    Use char because int might match the return type of a GCC
 10236    builtin and then its argument prototype would still apply.  */
 10237 #ifdef __cplusplus
 10238 extern "C"
 10239 #endif
 10240 char glClampColorARB ();
 10241 /* The GNU C library defines this for functions which it implements
 10242     to always fail with ENOSYS.  Some functions are actually named
 10243     something starting with __ and the normal name is an alias.  */
 10244 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
 10245 choke me
 10246 #endif
 10248 int
 10249 main ()
 10251 return glClampColorARB ();
 10253   return 0;
 10255 _ACEOF
 10256 rm -f conftest.$ac_objext conftest$ac_exeext
 10257 if { (ac_try="$ac_link"
 10258 case "(($ac_try" in
 10259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10260   *) ac_try_echo=$ac_try;;
 10261 esac
 10262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10263 $as_echo "$ac_try_echo") >&5
 10264   (eval "$ac_link") 2>conftest.er1
 10265   ac_status=$?
 10266   grep -v '^ *+' conftest.er1 >conftest.err
 10267   rm -f conftest.er1
 10268   cat conftest.err >&5
 10269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10270   (exit $ac_status); } && {
 10271 	 test -z "$ac_c_werror_flag" ||
 10272 	 test ! -s conftest.err
 10273        } && test -s conftest$ac_exeext && {
 10274 	 test "$cross_compiling" = yes ||
 10275 	 $as_test_x conftest$ac_exeext
 10276        }; then
 10277   ac_cv_func_glClampColorARB=yes
 10278 else
 10279   $as_echo "$as_me: failed program was:" >&5
 10280 sed 's/^/| /' conftest.$ac_ext >&5
 10282 	ac_cv_func_glClampColorARB=no
 10283 fi
 10285 rm -rf conftest.dSYM
 10286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10287       conftest$ac_exeext conftest.$ac_ext
 10288 fi
 10289 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
 10290 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
 10291 if test "x$ac_cv_func_glClampColorARB" = x""yes; then
 10293 cat >>confdefs.h <<\_ACEOF
 10294 #define HAVE_OPENGL_CLAMP_COLOR 1
 10295 _ACEOF
 10297 fi
 10302 if test "x$enable_translator" != "xno"; then
 10303     case $host_cpu in
 10304         i386|i486|i586|i686|x86_64)
 10305 	    SH4_TRANSLATOR="x86"
 10307 cat >>confdefs.h <<_ACEOF
 10308 #define SH4_TRANSLATOR TARGET_X86
 10309 _ACEOF
 10310 ;;
 10311     esac
 10312 fi
 10315 if test "$SH4_TRANSLATOR" = "x86"; then
 10316   BUILD_SH4X86_TRUE=
 10317   BUILD_SH4X86_FALSE='#'
 10318 else
 10319   BUILD_SH4X86_TRUE='#'
 10320   BUILD_SH4X86_FALSE=
 10321 fi
 10324 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 10325   { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 10326 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
 10327 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 10328   $as_echo_n "(cached) " >&6
 10329 fi
 10330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 10331 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 10332 else
 10333   # Is the header compilable?
 10334 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 10335 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
 10336 cat >conftest.$ac_ext <<_ACEOF
 10337 /* confdefs.h.  */
 10338 _ACEOF
 10339 cat confdefs.h >>conftest.$ac_ext
 10340 cat >>conftest.$ac_ext <<_ACEOF
 10341 /* end confdefs.h.  */
 10342 $ac_includes_default
 10343 #include <CoreAudio/CoreAudio.h>
 10344 _ACEOF
 10345 rm -f conftest.$ac_objext
 10346 if { (ac_try="$ac_compile"
 10347 case "(($ac_try" in
 10348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10349   *) ac_try_echo=$ac_try;;
 10350 esac
 10351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10352 $as_echo "$ac_try_echo") >&5
 10353   (eval "$ac_compile") 2>conftest.er1
 10354   ac_status=$?
 10355   grep -v '^ *+' conftest.er1 >conftest.err
 10356   rm -f conftest.er1
 10357   cat conftest.err >&5
 10358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10359   (exit $ac_status); } && {
 10360 	 test -z "$ac_c_werror_flag" ||
 10361 	 test ! -s conftest.err
 10362        } && test -s conftest.$ac_objext; then
 10363   ac_header_compiler=yes
 10364 else
 10365   $as_echo "$as_me: failed program was:" >&5
 10366 sed 's/^/| /' conftest.$ac_ext >&5
 10368 	ac_header_compiler=no
 10369 fi
 10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10372 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10373 $as_echo "$ac_header_compiler" >&6; }
 10375 # Is the header present?
 10376 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 10377 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
 10378 cat >conftest.$ac_ext <<_ACEOF
 10379 /* confdefs.h.  */
 10380 _ACEOF
 10381 cat confdefs.h >>conftest.$ac_ext
 10382 cat >>conftest.$ac_ext <<_ACEOF
 10383 /* end confdefs.h.  */
 10384 #include <CoreAudio/CoreAudio.h>
 10385 _ACEOF
 10386 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10387 case "(($ac_try" in
 10388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10389   *) ac_try_echo=$ac_try;;
 10390 esac
 10391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10392 $as_echo "$ac_try_echo") >&5
 10393   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10394   ac_status=$?
 10395   grep -v '^ *+' conftest.er1 >conftest.err
 10396   rm -f conftest.er1
 10397   cat conftest.err >&5
 10398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10399   (exit $ac_status); } >/dev/null && {
 10400 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10401 	 test ! -s conftest.err
 10402        }; then
 10403   ac_header_preproc=yes
 10404 else
 10405   $as_echo "$as_me: failed program was:" >&5
 10406 sed 's/^/| /' conftest.$ac_ext >&5
 10408   ac_header_preproc=no
 10409 fi
 10411 rm -f conftest.err conftest.$ac_ext
 10412 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10413 $as_echo "$ac_header_preproc" >&6; }
 10415 # So?  What about this header?
 10416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10417   yes:no: )
 10418     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 10419 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10420     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 10421 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 10422     ac_header_preproc=yes
 10423     ;;
 10424   no:yes:* )
 10425     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 10426 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 10427     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 10428 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 10429     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 10430 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 10431     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 10432 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 10433     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 10434 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 10435     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 10436 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 10438     ;;
 10439 esac
 10440 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 10441 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
 10442 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 10443   $as_echo_n "(cached) " >&6
 10444 else
 10445   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 10446 fi
 10447 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 10448 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 10450 fi
 10451 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then
 10453      HAVE_CORE_AUDIO=yes
 10454      LIBS="$LIBS -framework CoreAudio"
 10455      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
 10457 cat >>confdefs.h <<\_ACEOF
 10458 #define HAVE_CORE_AUDIO 1
 10459 _ACEOF
 10461 else
 10462   true
 10463 fi
 10468 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
 10469   AUDIO_OSX_TRUE=
 10470   AUDIO_OSX_FALSE='#'
 10471 else
 10472   AUDIO_OSX_TRUE='#'
 10473   AUDIO_OSX_FALSE=
 10474 fi
 10477 if test "x$with_sdl" != "xno"; then
 10479 pkg_failed=no
 10480 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
 10481 $as_echo_n "checking for SDL... " >&6; }
 10483 if test -n "$SDL_CFLAGS"; then
 10484     pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
 10485  elif test -n "$PKG_CONFIG"; then
 10486     if test -n "$PKG_CONFIG" && \
 10487     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 10488   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 10489   ac_status=$?
 10490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10491   (exit $ac_status); }; then
 10492   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
 10493 else
 10494   pkg_failed=yes
 10495 fi
 10496  else
 10497     pkg_failed=untried
 10498 fi
 10499 if test -n "$SDL_LIBS"; then
 10500     pkg_cv_SDL_LIBS="$SDL_LIBS"
 10501  elif test -n "$PKG_CONFIG"; then
 10502     if test -n "$PKG_CONFIG" && \
 10503     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 10504   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 10505   ac_status=$?
 10506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10507   (exit $ac_status); }; then
 10508   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
 10509 else
 10510   pkg_failed=yes
 10511 fi
 10512  else
 10513     pkg_failed=untried
 10514 fi
 10518 if test $pkg_failed = yes; then
 10520 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10521         _pkg_short_errors_supported=yes
 10522 else
 10523         _pkg_short_errors_supported=no
 10524 fi
 10525         if test $_pkg_short_errors_supported = yes; then
 10526 	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
 10527         else
 10528 	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
 10529         fi
 10530 	# Put the nasty error message in config.log where it belongs
 10531 	echo "$SDL_PKG_ERRORS" >&5
 10533 	{ $as_echo "$as_me:$LINENO: result: no" >&5
 10534 $as_echo "no" >&6; }
 10536       if test "x$with_sdl" = "xyes"; then
 10537          { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10539 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 10540 See \`config.log' for more details." >&5
 10541 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
 10542 See \`config.log' for more details." >&2;}
 10543    { (exit 1); exit 1; }; }; }
 10544       fi
 10546 elif test $pkg_failed = untried; then
 10548       if test "x$with_sdl" = "xyes"; then
 10549          { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10551 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 10552 See \`config.log' for more details." >&5
 10553 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
 10554 See \`config.log' for more details." >&2;}
 10555    { (exit 1); exit 1; }; }; }
 10556       fi
 10558 else
 10559 	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
 10560 	SDL_LIBS=$pkg_cv_SDL_LIBS
 10561         { $as_echo "$as_me:$LINENO: result: yes" >&5
 10562 $as_echo "yes" >&6; }
 10564        HAVE_SDL='yes'
 10565        AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
 10567 cat >>confdefs.h <<\_ACEOF
 10568 #define HAVE_SDL 1
 10569 _ACEOF
 10572 fi
 10573 fi
 10576 if test "$HAVE_SDL" = 'yes' ; then
 10577   AUDIO_SDL_TRUE=
 10578   AUDIO_SDL_FALSE='#'
 10579 else
 10580   AUDIO_SDL_TRUE='#'
 10581   AUDIO_SDL_FALSE=
 10582 fi
 10585 if test "x$with_pulse" != "xno"; then
 10587 pkg_failed=no
 10588 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
 10589 $as_echo_n "checking for PULSE... " >&6; }
 10591 if test -n "$PULSE_CFLAGS"; then
 10592     pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
 10593  elif test -n "$PKG_CONFIG"; then
 10594     if test -n "$PKG_CONFIG" && \
 10595     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 10596   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 10597   ac_status=$?
 10598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10599   (exit $ac_status); }; then
 10600   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
 10601 else
 10602   pkg_failed=yes
 10603 fi
 10604  else
 10605     pkg_failed=untried
 10606 fi
 10607 if test -n "$PULSE_LIBS"; then
 10608     pkg_cv_PULSE_LIBS="$PULSE_LIBS"
 10609  elif test -n "$PKG_CONFIG"; then
 10610     if test -n "$PKG_CONFIG" && \
 10611     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 10612   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 10613   ac_status=$?
 10614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10615   (exit $ac_status); }; then
 10616   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
 10617 else
 10618   pkg_failed=yes
 10619 fi
 10620  else
 10621     pkg_failed=untried
 10622 fi
 10626 if test $pkg_failed = yes; then
 10628 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10629         _pkg_short_errors_supported=yes
 10630 else
 10631         _pkg_short_errors_supported=no
 10632 fi
 10633         if test $_pkg_short_errors_supported = yes; then
 10634 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
 10635         else
 10636 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
 10637         fi
 10638 	# Put the nasty error message in config.log where it belongs
 10639 	echo "$PULSE_PKG_ERRORS" >&5
 10641 	{ $as_echo "$as_me:$LINENO: result: no" >&5
 10642 $as_echo "no" >&6; }
 10644        if test "x$with_pulse" = "xyes"; then
 10645           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10647 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 10648 See \`config.log' for more details." >&5
 10649 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 10650 See \`config.log' for more details." >&2;}
 10651    { (exit 1); exit 1; }; }; }
 10652        fi
 10654 elif test $pkg_failed = untried; then
 10656        if test "x$with_pulse" = "xyes"; then
 10657           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10659 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 10660 See \`config.log' for more details." >&5
 10661 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 10662 See \`config.log' for more details." >&2;}
 10663    { (exit 1); exit 1; }; }; }
 10664        fi
 10666 else
 10667 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
 10668 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
 10669         { $as_echo "$as_me:$LINENO: result: yes" >&5
 10670 $as_echo "yes" >&6; }
 10672        HAVE_PULSE='yes'
 10673        AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
 10675 cat >>confdefs.h <<\_ACEOF
 10676 #define HAVE_PULSE 1
 10677 _ACEOF
 10680 fi
 10681 fi
 10684 if test "$HAVE_PULSE" = 'yes' ; then
 10685   AUDIO_PULSE_TRUE=
 10686   AUDIO_PULSE_FALSE='#'
 10687 else
 10688   AUDIO_PULSE_TRUE='#'
 10689   AUDIO_PULSE_FALSE=
 10690 fi
 10693 if test "x$with_esd" != "xno"; then
 10695 pkg_failed=no
 10696 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
 10697 $as_echo_n "checking for ESOUND... " >&6; }
 10699 if test -n "$ESOUND_CFLAGS"; then
 10700     pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
 10701  elif test -n "$PKG_CONFIG"; then
 10702     if test -n "$PKG_CONFIG" && \
 10703     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 10704   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 10705   ac_status=$?
 10706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10707   (exit $ac_status); }; then
 10708   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
 10709 else
 10710   pkg_failed=yes
 10711 fi
 10712  else
 10713     pkg_failed=untried
 10714 fi
 10715 if test -n "$ESOUND_LIBS"; then
 10716     pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
 10717  elif test -n "$PKG_CONFIG"; then
 10718     if test -n "$PKG_CONFIG" && \
 10719     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 10720   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 10721   ac_status=$?
 10722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10723   (exit $ac_status); }; then
 10724   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
 10725 else
 10726   pkg_failed=yes
 10727 fi
 10728  else
 10729     pkg_failed=untried
 10730 fi
 10734 if test $pkg_failed = yes; then
 10736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10737         _pkg_short_errors_supported=yes
 10738 else
 10739         _pkg_short_errors_supported=no
 10740 fi
 10741         if test $_pkg_short_errors_supported = yes; then
 10742 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
 10743         else
 10744 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
 10745         fi
 10746 	# Put the nasty error message in config.log where it belongs
 10747 	echo "$ESOUND_PKG_ERRORS" >&5
 10749 	{ $as_echo "$as_me:$LINENO: result: no" >&5
 10750 $as_echo "no" >&6; }
 10752        if test "x$with_esd" = "xyes"; then
 10753           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10755 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 10756 See \`config.log' for more details." >&5
 10757 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
 10758 See \`config.log' for more details." >&2;}
 10759    { (exit 1); exit 1; }; }; }
 10760        fi
 10762 elif test $pkg_failed = untried; then
 10764        if test "x$with_esd" = "xyes"; then
 10765           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10767 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 10768 See \`config.log' for more details." >&5
 10769 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
 10770 See \`config.log' for more details." >&2;}
 10771    { (exit 1); exit 1; }; }; }
 10772        fi
 10774 else
 10775 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
 10776 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
 10777         { $as_echo "$as_me:$LINENO: result: yes" >&5
 10778 $as_echo "yes" >&6; }
 10780        HAVE_ESOUND='yes'
 10781        AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
 10783 cat >>confdefs.h <<\_ACEOF
 10784 #define HAVE_ESOUND 1
 10785 _ACEOF
 10788 fi
 10789 fi
 10792 if test "$HAVE_ESOUND" = 'yes' ; then
 10793   AUDIO_ESOUND_TRUE=
 10794   AUDIO_ESOUND_FALSE='#'
 10795 else
 10796   AUDIO_ESOUND_TRUE='#'
 10797   AUDIO_ESOUND_FALSE=
 10798 fi
 10802 pkg_failed=no
 10803 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
 10804 $as_echo_n "checking for ALSA... " >&6; }
 10806 if test -n "$ALSA_CFLAGS"; then
 10807     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 10808  elif test -n "$PKG_CONFIG"; then
 10809     if test -n "$PKG_CONFIG" && \
 10810     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 10811   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 10812   ac_status=$?
 10813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10814   (exit $ac_status); }; then
 10815   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
 10816 else
 10817   pkg_failed=yes
 10818 fi
 10819  else
 10820     pkg_failed=untried
 10821 fi
 10822 if test -n "$ALSA_LIBS"; then
 10823     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 10824  elif test -n "$PKG_CONFIG"; then
 10825     if test -n "$PKG_CONFIG" && \
 10826     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 10827   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 10828   ac_status=$?
 10829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10830   (exit $ac_status); }; then
 10831   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
 10832 else
 10833   pkg_failed=yes
 10834 fi
 10835  else
 10836     pkg_failed=untried
 10837 fi
 10841 if test $pkg_failed = yes; then
 10843 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10844         _pkg_short_errors_supported=yes
 10845 else
 10846         _pkg_short_errors_supported=no
 10847 fi
 10848         if test $_pkg_short_errors_supported = yes; then
 10849 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
 10850         else
 10851 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
 10852         fi
 10853 	# Put the nasty error message in config.log where it belongs
 10854 	echo "$ALSA_PKG_ERRORS" >&5
 10856 	{ $as_echo "$as_me:$LINENO: result: no" >&5
 10857 $as_echo "no" >&6; }
 10858                 true
 10859 elif test $pkg_failed = untried; then
 10860 	true
 10861 else
 10862 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
 10863 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
 10864         { $as_echo "$as_me:$LINENO: result: yes" >&5
 10865 $as_echo "yes" >&6; }
 10867      HAVE_ALSA='yes'
 10868      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
 10870 cat >>confdefs.h <<\_ACEOF
 10871 #define HAVE_ALSA 1
 10872 _ACEOF
 10874 fi
 10877 if test "$HAVE_ALSA" = 'yes' ; then
 10878   AUDIO_ALSA_TRUE=
 10879   AUDIO_ALSA_FALSE='#'
 10880 else
 10881   AUDIO_ALSA_TRUE='#'
 10882   AUDIO_ALSA_FALSE=
 10883 fi
 10887 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 10888   { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 10889 $as_echo_n "checking for linux/cdrom.h... " >&6; }
 10890 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 10891   $as_echo_n "(cached) " >&6
 10892 fi
 10893 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 10894 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
 10895 else
 10896   # Is the header compilable?
 10897 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
 10898 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
 10899 cat >conftest.$ac_ext <<_ACEOF
 10900 /* confdefs.h.  */
 10901 _ACEOF
 10902 cat confdefs.h >>conftest.$ac_ext
 10903 cat >>conftest.$ac_ext <<_ACEOF
 10904 /* end confdefs.h.  */
 10905 $ac_includes_default
 10906 #include <linux/cdrom.h>
 10907 _ACEOF
 10908 rm -f conftest.$ac_objext
 10909 if { (ac_try="$ac_compile"
 10910 case "(($ac_try" in
 10911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10912   *) ac_try_echo=$ac_try;;
 10913 esac
 10914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10915 $as_echo "$ac_try_echo") >&5
 10916   (eval "$ac_compile") 2>conftest.er1
 10917   ac_status=$?
 10918   grep -v '^ *+' conftest.er1 >conftest.err
 10919   rm -f conftest.er1
 10920   cat conftest.err >&5
 10921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10922   (exit $ac_status); } && {
 10923 	 test -z "$ac_c_werror_flag" ||
 10924 	 test ! -s conftest.err
 10925        } && test -s conftest.$ac_objext; then
 10926   ac_header_compiler=yes
 10927 else
 10928   $as_echo "$as_me: failed program was:" >&5
 10929 sed 's/^/| /' conftest.$ac_ext >&5
 10931 	ac_header_compiler=no
 10932 fi
 10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10935 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10936 $as_echo "$ac_header_compiler" >&6; }
 10938 # Is the header present?
 10939 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
 10940 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
 10941 cat >conftest.$ac_ext <<_ACEOF
 10942 /* confdefs.h.  */
 10943 _ACEOF
 10944 cat confdefs.h >>conftest.$ac_ext
 10945 cat >>conftest.$ac_ext <<_ACEOF
 10946 /* end confdefs.h.  */
 10947 #include <linux/cdrom.h>
 10948 _ACEOF
 10949 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10950 case "(($ac_try" in
 10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10952   *) ac_try_echo=$ac_try;;
 10953 esac
 10954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10955 $as_echo "$ac_try_echo") >&5
 10956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10957   ac_status=$?
 10958   grep -v '^ *+' conftest.er1 >conftest.err
 10959   rm -f conftest.er1
 10960   cat conftest.err >&5
 10961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10962   (exit $ac_status); } >/dev/null && {
 10963 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10964 	 test ! -s conftest.err
 10965        }; then
 10966   ac_header_preproc=yes
 10967 else
 10968   $as_echo "$as_me: failed program was:" >&5
 10969 sed 's/^/| /' conftest.$ac_ext >&5
 10971   ac_header_preproc=no
 10972 fi
 10974 rm -f conftest.err conftest.$ac_ext
 10975 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10976 $as_echo "$ac_header_preproc" >&6; }
 10978 # So?  What about this header?
 10979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10980   yes:no: )
 10981     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
 10982 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10983     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
 10984 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
 10985     ac_header_preproc=yes
 10986     ;;
 10987   no:yes:* )
 10988     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
 10989 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
 10990     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
 10991 $as_echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
 10992     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
 10993 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
 10994     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
 10995 $as_echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 10996     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
 10997 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
 10998     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
 10999 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
 11001     ;;
 11002 esac
 11003 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 11004 $as_echo_n "checking for linux/cdrom.h... " >&6; }
 11005 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 11006   $as_echo_n "(cached) " >&6
 11007 else
 11008   ac_cv_header_linux_cdrom_h=$ac_header_preproc
 11009 fi
 11010 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 11011 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
 11013 fi
 11014 if test "x$ac_cv_header_linux_cdrom_h" = x""yes; then
 11016      CDROM_DRIVER=linux
 11017           { $as_echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
 11018 $as_echo_n "checking C99 compliant kernel headers... " >&6; }
 11019      old_CFLAGS="$CFLAGS"
 11020      CFLAGS="$CFLAGS $STDCFLAG"
 11021      cat >conftest.$ac_ext <<_ACEOF
 11022 /* confdefs.h.  */
 11023 _ACEOF
 11024 cat confdefs.h >>conftest.$ac_ext
 11025 cat >>conftest.$ac_ext <<_ACEOF
 11026 /* end confdefs.h.  */
 11027 #include <linux/cdrom.h>
 11028 int
 11029 main ()
 11033   return 0;
 11035 _ACEOF
 11036 rm -f conftest.$ac_objext
 11037 if { (ac_try="$ac_compile"
 11038 case "(($ac_try" in
 11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11040   *) ac_try_echo=$ac_try;;
 11041 esac
 11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11043 $as_echo "$ac_try_echo") >&5
 11044   (eval "$ac_compile") 2>conftest.er1
 11045   ac_status=$?
 11046   grep -v '^ *+' conftest.er1 >conftest.err
 11047   rm -f conftest.er1
 11048   cat conftest.err >&5
 11049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11050   (exit $ac_status); } && {
 11051 	 test -z "$ac_c_werror_flag" ||
 11052 	 test ! -s conftest.err
 11053        } && test -s conftest.$ac_objext; then
 11054   { $as_echo "$as_me:$LINENO: result: Yes" >&5
 11055 $as_echo "Yes" >&6; }
 11056 else
 11057   $as_echo "$as_me: failed program was:" >&5
 11058 sed 's/^/| /' conftest.$ac_ext >&5
 11061         { $as_echo "$as_me:$LINENO: result: No" >&5
 11062 $as_echo "No" >&6; }
 11063         STDCFLAG="-std=gnu99"
 11064 fi
 11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11067      CFLAGS="$old_CFLAGS"
 11069 else
 11070   true
 11071 fi
 11074 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 11075   { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 11076 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
 11077 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 11078   $as_echo_n "(cached) " >&6
 11079 fi
 11080 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 11081 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 11082 else
 11083   # Is the header compilable?
 11084 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
 11085 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
 11086 cat >conftest.$ac_ext <<_ACEOF
 11087 /* confdefs.h.  */
 11088 _ACEOF
 11089 cat confdefs.h >>conftest.$ac_ext
 11090 cat >>conftest.$ac_ext <<_ACEOF
 11091 /* end confdefs.h.  */
 11092 $ac_includes_default
 11093 #include <IOKit/IOKitLib.h>
 11094 _ACEOF
 11095 rm -f conftest.$ac_objext
 11096 if { (ac_try="$ac_compile"
 11097 case "(($ac_try" in
 11098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11099   *) ac_try_echo=$ac_try;;
 11100 esac
 11101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11102 $as_echo "$ac_try_echo") >&5
 11103   (eval "$ac_compile") 2>conftest.er1
 11104   ac_status=$?
 11105   grep -v '^ *+' conftest.er1 >conftest.err
 11106   rm -f conftest.er1
 11107   cat conftest.err >&5
 11108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11109   (exit $ac_status); } && {
 11110 	 test -z "$ac_c_werror_flag" ||
 11111 	 test ! -s conftest.err
 11112        } && test -s conftest.$ac_objext; then
 11113   ac_header_compiler=yes
 11114 else
 11115   $as_echo "$as_me: failed program was:" >&5
 11116 sed 's/^/| /' conftest.$ac_ext >&5
 11118 	ac_header_compiler=no
 11119 fi
 11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11122 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11123 $as_echo "$ac_header_compiler" >&6; }
 11125 # Is the header present?
 11126 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
 11127 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
 11128 cat >conftest.$ac_ext <<_ACEOF
 11129 /* confdefs.h.  */
 11130 _ACEOF
 11131 cat confdefs.h >>conftest.$ac_ext
 11132 cat >>conftest.$ac_ext <<_ACEOF
 11133 /* end confdefs.h.  */
 11134 #include <IOKit/IOKitLib.h>
 11135 _ACEOF
 11136 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11137 case "(($ac_try" in
 11138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11139   *) ac_try_echo=$ac_try;;
 11140 esac
 11141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11142 $as_echo "$ac_try_echo") >&5
 11143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11144   ac_status=$?
 11145   grep -v '^ *+' conftest.er1 >conftest.err
 11146   rm -f conftest.er1
 11147   cat conftest.err >&5
 11148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11149   (exit $ac_status); } >/dev/null && {
 11150 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11151 	 test ! -s conftest.err
 11152        }; then
 11153   ac_header_preproc=yes
 11154 else
 11155   $as_echo "$as_me: failed program was:" >&5
 11156 sed 's/^/| /' conftest.$ac_ext >&5
 11158   ac_header_preproc=no
 11159 fi
 11161 rm -f conftest.err conftest.$ac_ext
 11162 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11163 $as_echo "$ac_header_preproc" >&6; }
 11165 # So?  What about this header?
 11166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11167   yes:no: )
 11168     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11169 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11170     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
 11171 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
 11172     ac_header_preproc=yes
 11173     ;;
 11174   no:yes:* )
 11175     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
 11176 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
 11177     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&5
 11178 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&2;}
 11179     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
 11180 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
 11181     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&5
 11182 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11183     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
 11184 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
 11185     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
 11186 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
 11188     ;;
 11189 esac
 11190 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 11191 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
 11192 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 11193   $as_echo_n "(cached) " >&6
 11194 else
 11195   ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
 11196 fi
 11197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 11198 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 11200 fi
 11201 if test "x$ac_cv_header_IOKit_IOKitLib_h" = x""yes; then
 11203      CDROM_DRIVER=osx
 11204      LIBS="$LIBS -framework IOKit"
 11205 else
 11206   true
 11207 fi
 11212 if test "x$CDROM_DRIVER" = "xlinux"; then
 11213   CDROM_LINUX_TRUE=
 11214   CDROM_LINUX_FALSE='#'
 11215 else
 11216   CDROM_LINUX_TRUE='#'
 11217   CDROM_LINUX_FALSE=
 11218 fi
 11222 if test "x$CDROM_DRIVER" = "xosx"; then
 11223   CDROM_OSX_TRUE=
 11224   CDROM_OSX_FALSE='#'
 11225 else
 11226   CDROM_OSX_TRUE='#'
 11227   CDROM_OSX_FALSE=
 11228 fi
 11232 if test "x$CDROM_DRIVER" = "x"; then
 11233   CDROM_NONE_TRUE=
 11234   CDROM_NONE_FALSE='#'
 11235 else
 11236   CDROM_NONE_TRUE='#'
 11237   CDROM_NONE_FALSE=
 11238 fi
 11240 if test "x$CDROM_DRIVER" = "xlinux"; then
 11242 cat >>confdefs.h <<\_ACEOF
 11243 #define HAVE_LINUX_CDROM 1
 11244 _ACEOF
 11246 fi
 11248 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 11249   { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 11250 $as_echo_n "checking for linux/joystick.h... " >&6; }
 11251 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 11252   $as_echo_n "(cached) " >&6
 11253 fi
 11254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 11255 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
 11256 else
 11257   # Is the header compilable?
 11258 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
 11259 $as_echo_n "checking linux/joystick.h usability... " >&6; }
 11260 cat >conftest.$ac_ext <<_ACEOF
 11261 /* confdefs.h.  */
 11262 _ACEOF
 11263 cat confdefs.h >>conftest.$ac_ext
 11264 cat >>conftest.$ac_ext <<_ACEOF
 11265 /* end confdefs.h.  */
 11266 $ac_includes_default
 11267 #include <linux/joystick.h>
 11268 _ACEOF
 11269 rm -f conftest.$ac_objext
 11270 if { (ac_try="$ac_compile"
 11271 case "(($ac_try" in
 11272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11273   *) ac_try_echo=$ac_try;;
 11274 esac
 11275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11276 $as_echo "$ac_try_echo") >&5
 11277   (eval "$ac_compile") 2>conftest.er1
 11278   ac_status=$?
 11279   grep -v '^ *+' conftest.er1 >conftest.err
 11280   rm -f conftest.er1
 11281   cat conftest.err >&5
 11282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11283   (exit $ac_status); } && {
 11284 	 test -z "$ac_c_werror_flag" ||
 11285 	 test ! -s conftest.err
 11286        } && test -s conftest.$ac_objext; then
 11287   ac_header_compiler=yes
 11288 else
 11289   $as_echo "$as_me: failed program was:" >&5
 11290 sed 's/^/| /' conftest.$ac_ext >&5
 11292 	ac_header_compiler=no
 11293 fi
 11295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11296 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11297 $as_echo "$ac_header_compiler" >&6; }
 11299 # Is the header present?
 11300 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
 11301 $as_echo_n "checking linux/joystick.h presence... " >&6; }
 11302 cat >conftest.$ac_ext <<_ACEOF
 11303 /* confdefs.h.  */
 11304 _ACEOF
 11305 cat confdefs.h >>conftest.$ac_ext
 11306 cat >>conftest.$ac_ext <<_ACEOF
 11307 /* end confdefs.h.  */
 11308 #include <linux/joystick.h>
 11309 _ACEOF
 11310 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11311 case "(($ac_try" in
 11312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11313   *) ac_try_echo=$ac_try;;
 11314 esac
 11315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11316 $as_echo "$ac_try_echo") >&5
 11317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11318   ac_status=$?
 11319   grep -v '^ *+' conftest.er1 >conftest.err
 11320   rm -f conftest.er1
 11321   cat conftest.err >&5
 11322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11323   (exit $ac_status); } >/dev/null && {
 11324 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11325 	 test ! -s conftest.err
 11326        }; then
 11327   ac_header_preproc=yes
 11328 else
 11329   $as_echo "$as_me: failed program was:" >&5
 11330 sed 's/^/| /' conftest.$ac_ext >&5
 11332   ac_header_preproc=no
 11333 fi
 11335 rm -f conftest.err conftest.$ac_ext
 11336 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11337 $as_echo "$ac_header_preproc" >&6; }
 11339 # So?  What about this header?
 11340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11341   yes:no: )
 11342     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11343 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11344     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
 11345 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
 11346     ac_header_preproc=yes
 11347     ;;
 11348   no:yes:* )
 11349     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
 11350 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
 11351     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
 11352 $as_echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
 11353     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
 11354 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
 11355     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
 11356 $as_echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11357     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
 11358 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
 11359     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
 11360 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
 11362     ;;
 11363 esac
 11364 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 11365 $as_echo_n "checking for linux/joystick.h... " >&6; }
 11366 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 11367   $as_echo_n "(cached) " >&6
 11368 else
 11369   ac_cv_header_linux_joystick_h=$ac_header_preproc
 11370 fi
 11371 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 11372 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
 11374 fi
 11375 if test "x$ac_cv_header_linux_joystick_h" = x""yes; then
 11377     HAVE_LINUX_JOYSTICK_H=yes
 11379 cat >>confdefs.h <<\_ACEOF
 11380 #define HAVE_LINUX_JOYSTICK 1
 11381 _ACEOF
 11383     INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
 11384 else
 11385    echo "Linux Joystick support not found, building without it."
 11386 fi
 11391 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
 11392   JOY_LINUX_TRUE=
 11393   JOY_LINUX_FALSE='#'
 11394 else
 11395   JOY_LINUX_TRUE='#'
 11396   JOY_LINUX_FALSE=
 11397 fi
 11400 if test "x$with_lirc" != "xno"; then
 11401     if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 11402   { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 11403 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
 11404 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 11405   $as_echo_n "(cached) " >&6
 11406 fi
 11407 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 11408 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
 11409 else
 11410   # Is the header compilable?
 11411 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
 11412 $as_echo_n "checking lirc/lirc_client.h usability... " >&6; }
 11413 cat >conftest.$ac_ext <<_ACEOF
 11414 /* confdefs.h.  */
 11415 _ACEOF
 11416 cat confdefs.h >>conftest.$ac_ext
 11417 cat >>conftest.$ac_ext <<_ACEOF
 11418 /* end confdefs.h.  */
 11419 $ac_includes_default
 11420 #include <lirc/lirc_client.h>
 11421 _ACEOF
 11422 rm -f conftest.$ac_objext
 11423 if { (ac_try="$ac_compile"
 11424 case "(($ac_try" in
 11425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11426   *) ac_try_echo=$ac_try;;
 11427 esac
 11428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11429 $as_echo "$ac_try_echo") >&5
 11430   (eval "$ac_compile") 2>conftest.er1
 11431   ac_status=$?
 11432   grep -v '^ *+' conftest.er1 >conftest.err
 11433   rm -f conftest.er1
 11434   cat conftest.err >&5
 11435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11436   (exit $ac_status); } && {
 11437 	 test -z "$ac_c_werror_flag" ||
 11438 	 test ! -s conftest.err
 11439        } && test -s conftest.$ac_objext; then
 11440   ac_header_compiler=yes
 11441 else
 11442   $as_echo "$as_me: failed program was:" >&5
 11443 sed 's/^/| /' conftest.$ac_ext >&5
 11445 	ac_header_compiler=no
 11446 fi
 11448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11449 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11450 $as_echo "$ac_header_compiler" >&6; }
 11452 # Is the header present?
 11453 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
 11454 $as_echo_n "checking lirc/lirc_client.h presence... " >&6; }
 11455 cat >conftest.$ac_ext <<_ACEOF
 11456 /* confdefs.h.  */
 11457 _ACEOF
 11458 cat confdefs.h >>conftest.$ac_ext
 11459 cat >>conftest.$ac_ext <<_ACEOF
 11460 /* end confdefs.h.  */
 11461 #include <lirc/lirc_client.h>
 11462 _ACEOF
 11463 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11464 case "(($ac_try" in
 11465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11466   *) ac_try_echo=$ac_try;;
 11467 esac
 11468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11469 $as_echo "$ac_try_echo") >&5
 11470   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11471   ac_status=$?
 11472   grep -v '^ *+' conftest.er1 >conftest.err
 11473   rm -f conftest.er1
 11474   cat conftest.err >&5
 11475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11476   (exit $ac_status); } >/dev/null && {
 11477 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11478 	 test ! -s conftest.err
 11479        }; then
 11480   ac_header_preproc=yes
 11481 else
 11482   $as_echo "$as_me: failed program was:" >&5
 11483 sed 's/^/| /' conftest.$ac_ext >&5
 11485   ac_header_preproc=no
 11486 fi
 11488 rm -f conftest.err conftest.$ac_ext
 11489 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11490 $as_echo "$ac_header_preproc" >&6; }
 11492 # So?  What about this header?
 11493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11494   yes:no: )
 11495     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11496 $as_echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11497     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
 11498 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
 11499     ac_header_preproc=yes
 11500     ;;
 11501   no:yes:* )
 11502     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
 11503 $as_echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
 11504     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&5
 11505 $as_echo "$as_me: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&2;}
 11506     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
 11507 $as_echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
 11508     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&5
 11509 $as_echo "$as_me: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11510     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
 11511 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
 11512     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
 11513 $as_echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
 11515     ;;
 11516 esac
 11517 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 11518 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
 11519 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 11520   $as_echo_n "(cached) " >&6
 11521 else
 11522   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
 11523 fi
 11524 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 11525 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
 11527 fi
 11528 if test "x$ac_cv_header_lirc_lirc_client_h" = x""yes; then
 11530         HAVE_LIRC_CLIENT_H=yes
 11532 cat >>confdefs.h <<\_ACEOF
 11533 #define HAVE_LIRC 1
 11534 _ACEOF
 11536         INPUT_DRIVERS="$INPUT_DRIVERS lirc"
 11538 else
 11539    echo "LIRC support not found, building without it."
 11540 fi
 11543 fi
 11546 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
 11547   INPUT_LIRC_TRUE=
 11548   INPUT_LIRC_FALSE='#'
 11549 else
 11550   INPUT_LIRC_TRUE='#'
 11551   INPUT_LIRC_FALSE=
 11552 fi
 11555 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
 11556 set dummy sh-elf-gcc; ac_word=$2
 11557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11558 $as_echo_n "checking for $ac_word... " >&6; }
 11559 if test "${ac_cv_path_SHCC+set}" = set; then
 11560   $as_echo_n "(cached) " >&6
 11561 else
 11562   case $SHCC in
 11563   [\\/]* | ?:[\\/]*)
 11564   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
 11565   ;;
 11566   *)
 11567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11568 for as_dir in $PATH
 11569 do
 11570   IFS=$as_save_IFS
 11571   test -z "$as_dir" && as_dir=.
 11572   for ac_exec_ext in '' $ac_executable_extensions; do
 11573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11574     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
 11575     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11576     break 2
 11577   fi
 11578 done
 11579 done
 11580 IFS=$as_save_IFS
 11582   ;;
 11583 esac
 11584 fi
 11585 SHCC=$ac_cv_path_SHCC
 11586 if test -n "$SHCC"; then
 11587   { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
 11588 $as_echo "$SHCC" >&6; }
 11589 else
 11590   { $as_echo "$as_me:$LINENO: result: no" >&5
 11591 $as_echo "no" >&6; }
 11592 fi
 11595 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
 11596 set dummy sh-elf-ld; ac_word=$2
 11597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11598 $as_echo_n "checking for $ac_word... " >&6; }
 11599 if test "${ac_cv_path_SHLD+set}" = set; then
 11600   $as_echo_n "(cached) " >&6
 11601 else
 11602   case $SHLD in
 11603   [\\/]* | ?:[\\/]*)
 11604   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
 11605   ;;
 11606   *)
 11607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11608 for as_dir in $PATH
 11609 do
 11610   IFS=$as_save_IFS
 11611   test -z "$as_dir" && as_dir=.
 11612   for ac_exec_ext in '' $ac_executable_extensions; do
 11613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11614     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
 11615     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11616     break 2
 11617   fi
 11618 done
 11619 done
 11620 IFS=$as_save_IFS
 11622   ;;
 11623 esac
 11624 fi
 11625 SHLD=$ac_cv_path_SHLD
 11626 if test -n "$SHLD"; then
 11627   { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
 11628 $as_echo "$SHLD" >&6; }
 11629 else
 11630   { $as_echo "$as_me:$LINENO: result: no" >&5
 11631 $as_echo "no" >&6; }
 11632 fi
 11635 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
 11636 set dummy sh-elf-objcopy; ac_word=$2
 11637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11638 $as_echo_n "checking for $ac_word... " >&6; }
 11639 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
 11640   $as_echo_n "(cached) " >&6
 11641 else
 11642   case $SHOBJCOPY in
 11643   [\\/]* | ?:[\\/]*)
 11644   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
 11645   ;;
 11646   *)
 11647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11648 for as_dir in $PATH
 11649 do
 11650   IFS=$as_save_IFS
 11651   test -z "$as_dir" && as_dir=.
 11652   for ac_exec_ext in '' $ac_executable_extensions; do
 11653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11654     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 11655     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11656     break 2
 11657   fi
 11658 done
 11659 done
 11660 IFS=$as_save_IFS
 11662   ;;
 11663 esac
 11664 fi
 11665 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
 11666 if test -n "$SHOBJCOPY"; then
 11667   { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
 11668 $as_echo "$SHOBJCOPY" >&6; }
 11669 else
 11670   { $as_echo "$as_me:$LINENO: result: no" >&5
 11671 $as_echo "no" >&6; }
 11672 fi
 11675 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
 11676 set dummy arm-elf-gcc; ac_word=$2
 11677 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11678 $as_echo_n "checking for $ac_word... " >&6; }
 11679 if test "${ac_cv_path_ARMCC+set}" = set; then
 11680   $as_echo_n "(cached) " >&6
 11681 else
 11682   case $ARMCC in
 11683   [\\/]* | ?:[\\/]*)
 11684   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
 11685   ;;
 11686   *)
 11687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11688 for as_dir in $PATH
 11689 do
 11690   IFS=$as_save_IFS
 11691   test -z "$as_dir" && as_dir=.
 11692   for ac_exec_ext in '' $ac_executable_extensions; do
 11693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11694     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
 11695     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11696     break 2
 11697   fi
 11698 done
 11699 done
 11700 IFS=$as_save_IFS
 11702   ;;
 11703 esac
 11704 fi
 11705 ARMCC=$ac_cv_path_ARMCC
 11706 if test -n "$ARMCC"; then
 11707   { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
 11708 $as_echo "$ARMCC" >&6; }
 11709 else
 11710   { $as_echo "$as_me:$LINENO: result: no" >&5
 11711 $as_echo "no" >&6; }
 11712 fi
 11715 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
 11716 set dummy arm-elf-ld; ac_word=$2
 11717 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11718 $as_echo_n "checking for $ac_word... " >&6; }
 11719 if test "${ac_cv_path_ARMLD+set}" = set; then
 11720   $as_echo_n "(cached) " >&6
 11721 else
 11722   case $ARMLD in
 11723   [\\/]* | ?:[\\/]*)
 11724   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
 11725   ;;
 11726   *)
 11727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11728 for as_dir in $PATH
 11729 do
 11730   IFS=$as_save_IFS
 11731   test -z "$as_dir" && as_dir=.
 11732   for ac_exec_ext in '' $ac_executable_extensions; do
 11733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11734     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
 11735     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11736     break 2
 11737   fi
 11738 done
 11739 done
 11740 IFS=$as_save_IFS
 11742   ;;
 11743 esac
 11744 fi
 11745 ARMLD=$ac_cv_path_ARMLD
 11746 if test -n "$ARMLD"; then
 11747   { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
 11748 $as_echo "$ARMLD" >&6; }
 11749 else
 11750   { $as_echo "$as_me:$LINENO: result: no" >&5
 11751 $as_echo "no" >&6; }
 11752 fi
 11755 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
 11756 set dummy arm-elf-objcopy; ac_word=$2
 11757 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11758 $as_echo_n "checking for $ac_word... " >&6; }
 11759 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
 11760   $as_echo_n "(cached) " >&6
 11761 else
 11762   case $ARMOBJCOPY in
 11763   [\\/]* | ?:[\\/]*)
 11764   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
 11765   ;;
 11766   *)
 11767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11768 for as_dir in $PATH
 11769 do
 11770   IFS=$as_save_IFS
 11771   test -z "$as_dir" && as_dir=.
 11772   for ac_exec_ext in '' $ac_executable_extensions; do
 11773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11774     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 11775     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11776     break 2
 11777   fi
 11778 done
 11779 done
 11780 IFS=$as_save_IFS
 11782   ;;
 11783 esac
 11784 fi
 11785 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
 11786 if test -n "$ARMOBJCOPY"; then
 11787   { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
 11788 $as_echo "$ARMOBJCOPY" >&6; }
 11789 else
 11790   { $as_echo "$as_me:$LINENO: result: no" >&5
 11791 $as_echo "no" >&6; }
 11792 fi
 11796 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
 11797   BUILD_SH="no"
 11798   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
 11799 else
 11800   BUILD_SH="yes"
 11801 fi
 11802 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
 11803   BUILD_ARM="no"
 11804   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
 11805 else
 11806   BUILD_ARM="yes"
 11807 fi
 11810 if test "$BUILD_SH" = "yes"; then
 11811   BUILD_SYSTEST_TRUE=
 11812   BUILD_SYSTEST_FALSE='#'
 11813 else
 11814   BUILD_SYSTEST_TRUE='#'
 11815   BUILD_SYSTEST_FALSE=
 11816 fi
 11820 if test "$BUILD_ARM" = "yes"; then
 11821   BUILD_ARMTEST_TRUE=
 11822   BUILD_ARMTEST_FALSE='#'
 11823 else
 11824   BUILD_ARMTEST_TRUE='#'
 11825   BUILD_ARMTEST_FALSE=
 11826 fi
 11829 CFLAGS="$CFLAGS $STDCFLAG"
 11831 GETTEXT_PACKAGE=lxdream
 11832 LXDREAM_LIBS="$LIBS"
 11833 LIBS=""
 11837 cat >>confdefs.h <<_ACEOF
 11838 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 11839 _ACEOF
 11842 ALL_LINGUAS="de es it pt_BR"
 11845 for ac_header in locale.h
 11846 do
 11847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 11848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 11849   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 11850 $as_echo_n "checking for $ac_header... " >&6; }
 11851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 11852   $as_echo_n "(cached) " >&6
 11853 fi
 11854 ac_res=`eval 'as_val=${'$as_ac_Header'}
 11855 		 $as_echo "$as_val"'`
 11856 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 11857 $as_echo "$ac_res" >&6; }
 11858 else
 11859   # Is the header compilable?
 11860 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 11861 $as_echo_n "checking $ac_header usability... " >&6; }
 11862 cat >conftest.$ac_ext <<_ACEOF
 11863 /* confdefs.h.  */
 11864 _ACEOF
 11865 cat confdefs.h >>conftest.$ac_ext
 11866 cat >>conftest.$ac_ext <<_ACEOF
 11867 /* end confdefs.h.  */
 11868 $ac_includes_default
 11869 #include <$ac_header>
 11870 _ACEOF
 11871 rm -f conftest.$ac_objext
 11872 if { (ac_try="$ac_compile"
 11873 case "(($ac_try" in
 11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11875   *) ac_try_echo=$ac_try;;
 11876 esac
 11877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11878 $as_echo "$ac_try_echo") >&5
 11879   (eval "$ac_compile") 2>conftest.er1
 11880   ac_status=$?
 11881   grep -v '^ *+' conftest.er1 >conftest.err
 11882   rm -f conftest.er1
 11883   cat conftest.err >&5
 11884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11885   (exit $ac_status); } && {
 11886 	 test -z "$ac_c_werror_flag" ||
 11887 	 test ! -s conftest.err
 11888        } && test -s conftest.$ac_objext; then
 11889   ac_header_compiler=yes
 11890 else
 11891   $as_echo "$as_me: failed program was:" >&5
 11892 sed 's/^/| /' conftest.$ac_ext >&5
 11894 	ac_header_compiler=no
 11895 fi
 11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11898 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11899 $as_echo "$ac_header_compiler" >&6; }
 11901 # Is the header present?
 11902 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 11903 $as_echo_n "checking $ac_header presence... " >&6; }
 11904 cat >conftest.$ac_ext <<_ACEOF
 11905 /* confdefs.h.  */
 11906 _ACEOF
 11907 cat confdefs.h >>conftest.$ac_ext
 11908 cat >>conftest.$ac_ext <<_ACEOF
 11909 /* end confdefs.h.  */
 11910 #include <$ac_header>
 11911 _ACEOF
 11912 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11913 case "(($ac_try" in
 11914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11915   *) ac_try_echo=$ac_try;;
 11916 esac
 11917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11918 $as_echo "$ac_try_echo") >&5
 11919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11920   ac_status=$?
 11921   grep -v '^ *+' conftest.er1 >conftest.err
 11922   rm -f conftest.er1
 11923   cat conftest.err >&5
 11924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11925   (exit $ac_status); } >/dev/null && {
 11926 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11927 	 test ! -s conftest.err
 11928        }; then
 11929   ac_header_preproc=yes
 11930 else
 11931   $as_echo "$as_me: failed program was:" >&5
 11932 sed 's/^/| /' conftest.$ac_ext >&5
 11934   ac_header_preproc=no
 11935 fi
 11937 rm -f conftest.err conftest.$ac_ext
 11938 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11939 $as_echo "$ac_header_preproc" >&6; }
 11941 # So?  What about this header?
 11942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11943   yes:no: )
 11944     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 11945 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11946     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 11947 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 11948     ac_header_preproc=yes
 11949     ;;
 11950   no:yes:* )
 11951     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 11952 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 11953     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 11954 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 11955     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 11956 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 11957     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 11958 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 11959     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 11960 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 11961     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 11962 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 11964     ;;
 11965 esac
 11966 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 11967 $as_echo_n "checking for $ac_header... " >&6; }
 11968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 11969   $as_echo_n "(cached) " >&6
 11970 else
 11971   eval "$as_ac_Header=\$ac_header_preproc"
 11972 fi
 11973 ac_res=`eval 'as_val=${'$as_ac_Header'}
 11974 		 $as_echo "$as_val"'`
 11975 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 11976 $as_echo "$ac_res" >&6; }
 11978 fi
 11979 as_val=`eval 'as_val=${'$as_ac_Header'}
 11980 		 $as_echo "$as_val"'`
 11981    if test "x$as_val" = x""yes; then
 11982   cat >>confdefs.h <<_ACEOF
 11983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 11984 _ACEOF
 11986 fi
 11988 done
 11990     if test $ac_cv_header_locale_h = yes; then
 11991     { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 11992 $as_echo_n "checking for LC_MESSAGES... " >&6; }
 11993 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 11994   $as_echo_n "(cached) " >&6
 11995 else
 11996   cat >conftest.$ac_ext <<_ACEOF
 11997 /* confdefs.h.  */
 11998 _ACEOF
 11999 cat confdefs.h >>conftest.$ac_ext
 12000 cat >>conftest.$ac_ext <<_ACEOF
 12001 /* end confdefs.h.  */
 12002 #include <locale.h>
 12003 int
 12004 main ()
 12006 return LC_MESSAGES
 12008   return 0;
 12010 _ACEOF
 12011 rm -f conftest.$ac_objext conftest$ac_exeext
 12012 if { (ac_try="$ac_link"
 12013 case "(($ac_try" in
 12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12015   *) ac_try_echo=$ac_try;;
 12016 esac
 12017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12018 $as_echo "$ac_try_echo") >&5
 12019   (eval "$ac_link") 2>conftest.er1
 12020   ac_status=$?
 12021   grep -v '^ *+' conftest.er1 >conftest.err
 12022   rm -f conftest.er1
 12023   cat conftest.err >&5
 12024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12025   (exit $ac_status); } && {
 12026 	 test -z "$ac_c_werror_flag" ||
 12027 	 test ! -s conftest.err
 12028        } && test -s conftest$ac_exeext && {
 12029 	 test "$cross_compiling" = yes ||
 12030 	 $as_test_x conftest$ac_exeext
 12031        }; then
 12032   am_cv_val_LC_MESSAGES=yes
 12033 else
 12034   $as_echo "$as_me: failed program was:" >&5
 12035 sed 's/^/| /' conftest.$ac_ext >&5
 12037 	am_cv_val_LC_MESSAGES=no
 12038 fi
 12040 rm -rf conftest.dSYM
 12041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12042       conftest$ac_exeext conftest.$ac_ext
 12043 fi
 12044 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 12045 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
 12046     if test $am_cv_val_LC_MESSAGES = yes; then
 12048 cat >>confdefs.h <<\_ACEOF
 12049 #define HAVE_LC_MESSAGES 1
 12050 _ACEOF
 12052     fi
 12053   fi
 12054      USE_NLS=yes
 12057     gt_cv_have_gettext=no
 12059     CATOBJEXT=NONE
 12060     XGETTEXT=:
 12061     INTLLIBS=
 12063     if test "${ac_cv_header_libintl_h+set}" = set; then
 12064   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
 12065 $as_echo_n "checking for libintl.h... " >&6; }
 12066 if test "${ac_cv_header_libintl_h+set}" = set; then
 12067   $as_echo_n "(cached) " >&6
 12068 fi
 12069 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 12070 $as_echo "$ac_cv_header_libintl_h" >&6; }
 12071 else
 12072   # Is the header compilable?
 12073 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
 12074 $as_echo_n "checking libintl.h usability... " >&6; }
 12075 cat >conftest.$ac_ext <<_ACEOF
 12076 /* confdefs.h.  */
 12077 _ACEOF
 12078 cat confdefs.h >>conftest.$ac_ext
 12079 cat >>conftest.$ac_ext <<_ACEOF
 12080 /* end confdefs.h.  */
 12081 $ac_includes_default
 12082 #include <libintl.h>
 12083 _ACEOF
 12084 rm -f conftest.$ac_objext
 12085 if { (ac_try="$ac_compile"
 12086 case "(($ac_try" in
 12087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12088   *) ac_try_echo=$ac_try;;
 12089 esac
 12090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12091 $as_echo "$ac_try_echo") >&5
 12092   (eval "$ac_compile") 2>conftest.er1
 12093   ac_status=$?
 12094   grep -v '^ *+' conftest.er1 >conftest.err
 12095   rm -f conftest.er1
 12096   cat conftest.err >&5
 12097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12098   (exit $ac_status); } && {
 12099 	 test -z "$ac_c_werror_flag" ||
 12100 	 test ! -s conftest.err
 12101        } && test -s conftest.$ac_objext; then
 12102   ac_header_compiler=yes
 12103 else
 12104   $as_echo "$as_me: failed program was:" >&5
 12105 sed 's/^/| /' conftest.$ac_ext >&5
 12107 	ac_header_compiler=no
 12108 fi
 12110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 12111 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 12112 $as_echo "$ac_header_compiler" >&6; }
 12114 # Is the header present?
 12115 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
 12116 $as_echo_n "checking libintl.h presence... " >&6; }
 12117 cat >conftest.$ac_ext <<_ACEOF
 12118 /* confdefs.h.  */
 12119 _ACEOF
 12120 cat confdefs.h >>conftest.$ac_ext
 12121 cat >>conftest.$ac_ext <<_ACEOF
 12122 /* end confdefs.h.  */
 12123 #include <libintl.h>
 12124 _ACEOF
 12125 if { (ac_try="$ac_cpp conftest.$ac_ext"
 12126 case "(($ac_try" in
 12127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12128   *) ac_try_echo=$ac_try;;
 12129 esac
 12130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12131 $as_echo "$ac_try_echo") >&5
 12132   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 12133   ac_status=$?
 12134   grep -v '^ *+' conftest.er1 >conftest.err
 12135   rm -f conftest.er1
 12136   cat conftest.err >&5
 12137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12138   (exit $ac_status); } >/dev/null && {
 12139 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 12140 	 test ! -s conftest.err
 12141        }; then
 12142   ac_header_preproc=yes
 12143 else
 12144   $as_echo "$as_me: failed program was:" >&5
 12145 sed 's/^/| /' conftest.$ac_ext >&5
 12147   ac_header_preproc=no
 12148 fi
 12150 rm -f conftest.err conftest.$ac_ext
 12151 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 12152 $as_echo "$ac_header_preproc" >&6; }
 12154 # So?  What about this header?
 12155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 12156   yes:no: )
 12157     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 12158 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 12159     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 12160 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 12161     ac_header_preproc=yes
 12162     ;;
 12163   no:yes:* )
 12164     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 12165 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 12166     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 12167 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 12168     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 12169 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 12170     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 12171 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 12172     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 12173 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 12174     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 12175 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 12177     ;;
 12178 esac
 12179 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
 12180 $as_echo_n "checking for libintl.h... " >&6; }
 12181 if test "${ac_cv_header_libintl_h+set}" = set; then
 12182   $as_echo_n "(cached) " >&6
 12183 else
 12184   ac_cv_header_libintl_h=$ac_header_preproc
 12185 fi
 12186 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 12187 $as_echo "$ac_cv_header_libintl_h" >&6; }
 12189 fi
 12190 if test "x$ac_cv_header_libintl_h" = x""yes; then
 12191   gt_cv_func_dgettext_libintl="no"
 12192       libintl_extra_libs=""
 12195       # First check in libc
 12197       { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 12198 $as_echo_n "checking for ngettext in libc... " >&6; }
 12199 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 12200   $as_echo_n "(cached) " >&6
 12201 else
 12202   cat >conftest.$ac_ext <<_ACEOF
 12203 /* confdefs.h.  */
 12204 _ACEOF
 12205 cat confdefs.h >>conftest.$ac_ext
 12206 cat >>conftest.$ac_ext <<_ACEOF
 12207 /* end confdefs.h.  */
 12209 #include <libintl.h>
 12211 int
 12212 main ()
 12214 return !ngettext ("","", 1)
 12216   return 0;
 12218 _ACEOF
 12219 rm -f conftest.$ac_objext conftest$ac_exeext
 12220 if { (ac_try="$ac_link"
 12221 case "(($ac_try" in
 12222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12223   *) ac_try_echo=$ac_try;;
 12224 esac
 12225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12226 $as_echo "$ac_try_echo") >&5
 12227   (eval "$ac_link") 2>conftest.er1
 12228   ac_status=$?
 12229   grep -v '^ *+' conftest.er1 >conftest.err
 12230   rm -f conftest.er1
 12231   cat conftest.err >&5
 12232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12233   (exit $ac_status); } && {
 12234 	 test -z "$ac_c_werror_flag" ||
 12235 	 test ! -s conftest.err
 12236        } && test -s conftest$ac_exeext && {
 12237 	 test "$cross_compiling" = yes ||
 12238 	 $as_test_x conftest$ac_exeext
 12239        }; then
 12240   gt_cv_func_ngettext_libc=yes
 12241 else
 12242   $as_echo "$as_me: failed program was:" >&5
 12243 sed 's/^/| /' conftest.$ac_ext >&5
 12245 	gt_cv_func_ngettext_libc=no
 12246 fi
 12248 rm -rf conftest.dSYM
 12249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12250       conftest$ac_exeext conftest.$ac_ext
 12252 fi
 12253 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 12254 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
 12256       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 12257 	      { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 12258 $as_echo_n "checking for dgettext in libc... " >&6; }
 12259 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 12260   $as_echo_n "(cached) " >&6
 12261 else
 12262   cat >conftest.$ac_ext <<_ACEOF
 12263 /* confdefs.h.  */
 12264 _ACEOF
 12265 cat confdefs.h >>conftest.$ac_ext
 12266 cat >>conftest.$ac_ext <<_ACEOF
 12267 /* end confdefs.h.  */
 12269 #include <libintl.h>
 12271 int
 12272 main ()
 12274 return !dgettext ("","")
 12276   return 0;
 12278 _ACEOF
 12279 rm -f conftest.$ac_objext conftest$ac_exeext
 12280 if { (ac_try="$ac_link"
 12281 case "(($ac_try" in
 12282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12283   *) ac_try_echo=$ac_try;;
 12284 esac
 12285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12286 $as_echo "$ac_try_echo") >&5
 12287   (eval "$ac_link") 2>conftest.er1
 12288   ac_status=$?
 12289   grep -v '^ *+' conftest.er1 >conftest.err
 12290   rm -f conftest.er1
 12291   cat conftest.err >&5
 12292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12293   (exit $ac_status); } && {
 12294 	 test -z "$ac_c_werror_flag" ||
 12295 	 test ! -s conftest.err
 12296        } && test -s conftest$ac_exeext && {
 12297 	 test "$cross_compiling" = yes ||
 12298 	 $as_test_x conftest$ac_exeext
 12299        }; then
 12300   gt_cv_func_dgettext_libc=yes
 12301 else
 12302   $as_echo "$as_me: failed program was:" >&5
 12303 sed 's/^/| /' conftest.$ac_ext >&5
 12305 	gt_cv_func_dgettext_libc=no
 12306 fi
 12308 rm -rf conftest.dSYM
 12309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12310       conftest$ac_exeext conftest.$ac_ext
 12312 fi
 12313 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 12314 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
 12315       fi
 12317       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 12319 for ac_func in bind_textdomain_codeset
 12320 do
 12321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 12322 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 12323 $as_echo_n "checking for $ac_func... " >&6; }
 12324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 12325   $as_echo_n "(cached) " >&6
 12326 else
 12327   cat >conftest.$ac_ext <<_ACEOF
 12328 /* confdefs.h.  */
 12329 _ACEOF
 12330 cat confdefs.h >>conftest.$ac_ext
 12331 cat >>conftest.$ac_ext <<_ACEOF
 12332 /* end confdefs.h.  */
 12333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 12334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12335 #define $ac_func innocuous_$ac_func
 12337 /* System header to define __stub macros and hopefully few prototypes,
 12338     which can conflict with char $ac_func (); below.
 12339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12340     <limits.h> exists even on freestanding compilers.  */
 12342 #ifdef __STDC__
 12343 # include <limits.h>
 12344 #else
 12345 # include <assert.h>
 12346 #endif
 12348 #undef $ac_func
 12350 /* Override any GCC internal prototype to avoid an error.
 12351    Use char because int might match the return type of a GCC
 12352    builtin and then its argument prototype would still apply.  */
 12353 #ifdef __cplusplus
 12354 extern "C"
 12355 #endif
 12356 char $ac_func ();
 12357 /* The GNU C library defines this for functions which it implements
 12358     to always fail with ENOSYS.  Some functions are actually named
 12359     something starting with __ and the normal name is an alias.  */
 12360 #if defined __stub_$ac_func || defined __stub___$ac_func
 12361 choke me
 12362 #endif
 12364 int
 12365 main ()
 12367 return $ac_func ();
 12369   return 0;
 12371 _ACEOF
 12372 rm -f conftest.$ac_objext conftest$ac_exeext
 12373 if { (ac_try="$ac_link"
 12374 case "(($ac_try" in
 12375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12376   *) ac_try_echo=$ac_try;;
 12377 esac
 12378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12379 $as_echo "$ac_try_echo") >&5
 12380   (eval "$ac_link") 2>conftest.er1
 12381   ac_status=$?
 12382   grep -v '^ *+' conftest.er1 >conftest.err
 12383   rm -f conftest.er1
 12384   cat conftest.err >&5
 12385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12386   (exit $ac_status); } && {
 12387 	 test -z "$ac_c_werror_flag" ||
 12388 	 test ! -s conftest.err
 12389        } && test -s conftest$ac_exeext && {
 12390 	 test "$cross_compiling" = yes ||
 12391 	 $as_test_x conftest$ac_exeext
 12392        }; then
 12393   eval "$as_ac_var=yes"
 12394 else
 12395   $as_echo "$as_me: failed program was:" >&5
 12396 sed 's/^/| /' conftest.$ac_ext >&5
 12398 	eval "$as_ac_var=no"
 12399 fi
 12401 rm -rf conftest.dSYM
 12402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12403       conftest$ac_exeext conftest.$ac_ext
 12404 fi
 12405 ac_res=`eval 'as_val=${'$as_ac_var'}
 12406 		 $as_echo "$as_val"'`
 12407 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 12408 $as_echo "$ac_res" >&6; }
 12409 as_val=`eval 'as_val=${'$as_ac_var'}
 12410 		 $as_echo "$as_val"'`
 12411    if test "x$as_val" = x""yes; then
 12412   cat >>confdefs.h <<_ACEOF
 12413 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 12414 _ACEOF
 12416 fi
 12417 done
 12419       fi
 12422       # If we don't have everything we want, check in libintl
 12424       if test "$gt_cv_func_dgettext_libc" != "yes" \
 12425 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 12426          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 12428         { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 12429 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
 12430 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 12431   $as_echo_n "(cached) " >&6
 12432 else
 12433   ac_check_lib_save_LIBS=$LIBS
 12434 LIBS="-lintl  $LIBS"
 12435 cat >conftest.$ac_ext <<_ACEOF
 12436 /* confdefs.h.  */
 12437 _ACEOF
 12438 cat confdefs.h >>conftest.$ac_ext
 12439 cat >>conftest.$ac_ext <<_ACEOF
 12440 /* end confdefs.h.  */
 12442 /* Override any GCC internal prototype to avoid an error.
 12443    Use char because int might match the return type of a GCC
 12444    builtin and then its argument prototype would still apply.  */
 12445 #ifdef __cplusplus
 12446 extern "C"
 12447 #endif
 12448 char bindtextdomain ();
 12449 int
 12450 main ()
 12452 return bindtextdomain ();
 12454   return 0;
 12456 _ACEOF
 12457 rm -f conftest.$ac_objext conftest$ac_exeext
 12458 if { (ac_try="$ac_link"
 12459 case "(($ac_try" in
 12460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12461   *) ac_try_echo=$ac_try;;
 12462 esac
 12463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12464 $as_echo "$ac_try_echo") >&5
 12465   (eval "$ac_link") 2>conftest.er1
 12466   ac_status=$?
 12467   grep -v '^ *+' conftest.er1 >conftest.err
 12468   rm -f conftest.er1
 12469   cat conftest.err >&5
 12470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12471   (exit $ac_status); } && {
 12472 	 test -z "$ac_c_werror_flag" ||
 12473 	 test ! -s conftest.err
 12474        } && test -s conftest$ac_exeext && {
 12475 	 test "$cross_compiling" = yes ||
 12476 	 $as_test_x conftest$ac_exeext
 12477        }; then
 12478   ac_cv_lib_intl_bindtextdomain=yes
 12479 else
 12480   $as_echo "$as_me: failed program was:" >&5
 12481 sed 's/^/| /' conftest.$ac_ext >&5
 12483 	ac_cv_lib_intl_bindtextdomain=no
 12484 fi
 12486 rm -rf conftest.dSYM
 12487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12488       conftest$ac_exeext conftest.$ac_ext
 12489 LIBS=$ac_check_lib_save_LIBS
 12490 fi
 12491 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 12492 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
 12493 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
 12494   { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 12495 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 12496 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 12497   $as_echo_n "(cached) " >&6
 12498 else
 12499   ac_check_lib_save_LIBS=$LIBS
 12500 LIBS="-lintl  $LIBS"
 12501 cat >conftest.$ac_ext <<_ACEOF
 12502 /* confdefs.h.  */
 12503 _ACEOF
 12504 cat confdefs.h >>conftest.$ac_ext
 12505 cat >>conftest.$ac_ext <<_ACEOF
 12506 /* end confdefs.h.  */
 12508 /* Override any GCC internal prototype to avoid an error.
 12509    Use char because int might match the return type of a GCC
 12510    builtin and then its argument prototype would still apply.  */
 12511 #ifdef __cplusplus
 12512 extern "C"
 12513 #endif
 12514 char ngettext ();
 12515 int
 12516 main ()
 12518 return ngettext ();
 12520   return 0;
 12522 _ACEOF
 12523 rm -f conftest.$ac_objext conftest$ac_exeext
 12524 if { (ac_try="$ac_link"
 12525 case "(($ac_try" in
 12526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12527   *) ac_try_echo=$ac_try;;
 12528 esac
 12529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12530 $as_echo "$ac_try_echo") >&5
 12531   (eval "$ac_link") 2>conftest.er1
 12532   ac_status=$?
 12533   grep -v '^ *+' conftest.er1 >conftest.err
 12534   rm -f conftest.er1
 12535   cat conftest.err >&5
 12536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12537   (exit $ac_status); } && {
 12538 	 test -z "$ac_c_werror_flag" ||
 12539 	 test ! -s conftest.err
 12540        } && test -s conftest$ac_exeext && {
 12541 	 test "$cross_compiling" = yes ||
 12542 	 $as_test_x conftest$ac_exeext
 12543        }; then
 12544   ac_cv_lib_intl_ngettext=yes
 12545 else
 12546   $as_echo "$as_me: failed program was:" >&5
 12547 sed 's/^/| /' conftest.$ac_ext >&5
 12549 	ac_cv_lib_intl_ngettext=no
 12550 fi
 12552 rm -rf conftest.dSYM
 12553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12554       conftest$ac_exeext conftest.$ac_ext
 12555 LIBS=$ac_check_lib_save_LIBS
 12556 fi
 12557 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 12558 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 12559 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
 12560   { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 12561 $as_echo_n "checking for dgettext in -lintl... " >&6; }
 12562 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 12563   $as_echo_n "(cached) " >&6
 12564 else
 12565   ac_check_lib_save_LIBS=$LIBS
 12566 LIBS="-lintl  $LIBS"
 12567 cat >conftest.$ac_ext <<_ACEOF
 12568 /* confdefs.h.  */
 12569 _ACEOF
 12570 cat confdefs.h >>conftest.$ac_ext
 12571 cat >>conftest.$ac_ext <<_ACEOF
 12572 /* end confdefs.h.  */
 12574 /* Override any GCC internal prototype to avoid an error.
 12575    Use char because int might match the return type of a GCC
 12576    builtin and then its argument prototype would still apply.  */
 12577 #ifdef __cplusplus
 12578 extern "C"
 12579 #endif
 12580 char dgettext ();
 12581 int
 12582 main ()
 12584 return dgettext ();
 12586   return 0;
 12588 _ACEOF
 12589 rm -f conftest.$ac_objext conftest$ac_exeext
 12590 if { (ac_try="$ac_link"
 12591 case "(($ac_try" in
 12592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12593   *) ac_try_echo=$ac_try;;
 12594 esac
 12595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12596 $as_echo "$ac_try_echo") >&5
 12597   (eval "$ac_link") 2>conftest.er1
 12598   ac_status=$?
 12599   grep -v '^ *+' conftest.er1 >conftest.err
 12600   rm -f conftest.er1
 12601   cat conftest.err >&5
 12602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12603   (exit $ac_status); } && {
 12604 	 test -z "$ac_c_werror_flag" ||
 12605 	 test ! -s conftest.err
 12606        } && test -s conftest$ac_exeext && {
 12607 	 test "$cross_compiling" = yes ||
 12608 	 $as_test_x conftest$ac_exeext
 12609        }; then
 12610   ac_cv_lib_intl_dgettext=yes
 12611 else
 12612   $as_echo "$as_me: failed program was:" >&5
 12613 sed 's/^/| /' conftest.$ac_ext >&5
 12615 	ac_cv_lib_intl_dgettext=no
 12616 fi
 12618 rm -rf conftest.dSYM
 12619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12620       conftest$ac_exeext conftest.$ac_ext
 12621 LIBS=$ac_check_lib_save_LIBS
 12622 fi
 12623 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 12624 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
 12625 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
 12626   gt_cv_func_dgettext_libintl=yes
 12627 fi
 12629 fi
 12631 fi
 12634 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 12635 	  { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 12636 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
 12637 	  { $as_echo "$as_me:$LINENO: result: " >&5
 12638 $as_echo "" >&6; }
 12639   	  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 12640 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 12641 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 12642   $as_echo_n "(cached) " >&6
 12643 else
 12644   ac_check_lib_save_LIBS=$LIBS
 12645 LIBS="-lintl -liconv $LIBS"
 12646 cat >conftest.$ac_ext <<_ACEOF
 12647 /* confdefs.h.  */
 12648 _ACEOF
 12649 cat confdefs.h >>conftest.$ac_ext
 12650 cat >>conftest.$ac_ext <<_ACEOF
 12651 /* end confdefs.h.  */
 12653 /* Override any GCC internal prototype to avoid an error.
 12654    Use char because int might match the return type of a GCC
 12655    builtin and then its argument prototype would still apply.  */
 12656 #ifdef __cplusplus
 12657 extern "C"
 12658 #endif
 12659 char ngettext ();
 12660 int
 12661 main ()
 12663 return ngettext ();
 12665   return 0;
 12667 _ACEOF
 12668 rm -f conftest.$ac_objext conftest$ac_exeext
 12669 if { (ac_try="$ac_link"
 12670 case "(($ac_try" in
 12671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12672   *) ac_try_echo=$ac_try;;
 12673 esac
 12674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12675 $as_echo "$ac_try_echo") >&5
 12676   (eval "$ac_link") 2>conftest.er1
 12677   ac_status=$?
 12678   grep -v '^ *+' conftest.er1 >conftest.err
 12679   rm -f conftest.er1
 12680   cat conftest.err >&5
 12681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12682   (exit $ac_status); } && {
 12683 	 test -z "$ac_c_werror_flag" ||
 12684 	 test ! -s conftest.err
 12685        } && test -s conftest$ac_exeext && {
 12686 	 test "$cross_compiling" = yes ||
 12687 	 $as_test_x conftest$ac_exeext
 12688        }; then
 12689   ac_cv_lib_intl_ngettext=yes
 12690 else
 12691   $as_echo "$as_me: failed program was:" >&5
 12692 sed 's/^/| /' conftest.$ac_ext >&5
 12694 	ac_cv_lib_intl_ngettext=no
 12695 fi
 12697 rm -rf conftest.dSYM
 12698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12699       conftest$ac_exeext conftest.$ac_ext
 12700 LIBS=$ac_check_lib_save_LIBS
 12701 fi
 12702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 12703 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 12704 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
 12705   { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 12706 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
 12707 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 12708   $as_echo_n "(cached) " >&6
 12709 else
 12710   ac_check_lib_save_LIBS=$LIBS
 12711 LIBS="-lintl -liconv $LIBS"
 12712 cat >conftest.$ac_ext <<_ACEOF
 12713 /* confdefs.h.  */
 12714 _ACEOF
 12715 cat confdefs.h >>conftest.$ac_ext
 12716 cat >>conftest.$ac_ext <<_ACEOF
 12717 /* end confdefs.h.  */
 12719 /* Override any GCC internal prototype to avoid an error.
 12720    Use char because int might match the return type of a GCC
 12721    builtin and then its argument prototype would still apply.  */
 12722 #ifdef __cplusplus
 12723 extern "C"
 12724 #endif
 12725 char dcgettext ();
 12726 int
 12727 main ()
 12729 return dcgettext ();
 12731   return 0;
 12733 _ACEOF
 12734 rm -f conftest.$ac_objext conftest$ac_exeext
 12735 if { (ac_try="$ac_link"
 12736 case "(($ac_try" in
 12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12738   *) ac_try_echo=$ac_try;;
 12739 esac
 12740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12741 $as_echo "$ac_try_echo") >&5
 12742   (eval "$ac_link") 2>conftest.er1
 12743   ac_status=$?
 12744   grep -v '^ *+' conftest.er1 >conftest.err
 12745   rm -f conftest.er1
 12746   cat conftest.err >&5
 12747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12748   (exit $ac_status); } && {
 12749 	 test -z "$ac_c_werror_flag" ||
 12750 	 test ! -s conftest.err
 12751        } && test -s conftest$ac_exeext && {
 12752 	 test "$cross_compiling" = yes ||
 12753 	 $as_test_x conftest$ac_exeext
 12754        }; then
 12755   ac_cv_lib_intl_dcgettext=yes
 12756 else
 12757   $as_echo "$as_me: failed program was:" >&5
 12758 sed 's/^/| /' conftest.$ac_ext >&5
 12760 	ac_cv_lib_intl_dcgettext=no
 12761 fi
 12763 rm -rf conftest.dSYM
 12764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12765       conftest$ac_exeext conftest.$ac_ext
 12766 LIBS=$ac_check_lib_save_LIBS
 12767 fi
 12768 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 12769 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
 12770 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
 12771   gt_cv_func_dgettext_libintl=yes
 12772 			libintl_extra_libs=-liconv
 12773 else
 12775 fi
 12777 else
 12779 fi
 12781         fi
 12784         # If we found libintl, then check in it for bind_textdomain_codeset();
 12785         # we'll prefer libc if neither have bind_textdomain_codeset(),
 12786         # and both have dgettext and ngettext
 12788         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 12789           glib_save_LIBS="$LIBS"
 12790           LIBS="$LIBS -lintl $libintl_extra_libs"
 12791           unset ac_cv_func_bind_textdomain_codeset
 12793 for ac_func in bind_textdomain_codeset
 12794 do
 12795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 12796 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 12797 $as_echo_n "checking for $ac_func... " >&6; }
 12798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 12799   $as_echo_n "(cached) " >&6
 12800 else
 12801   cat >conftest.$ac_ext <<_ACEOF
 12802 /* confdefs.h.  */
 12803 _ACEOF
 12804 cat confdefs.h >>conftest.$ac_ext
 12805 cat >>conftest.$ac_ext <<_ACEOF
 12806 /* end confdefs.h.  */
 12807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 12808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12809 #define $ac_func innocuous_$ac_func
 12811 /* System header to define __stub macros and hopefully few prototypes,
 12812     which can conflict with char $ac_func (); below.
 12813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12814     <limits.h> exists even on freestanding compilers.  */
 12816 #ifdef __STDC__
 12817 # include <limits.h>
 12818 #else
 12819 # include <assert.h>
 12820 #endif
 12822 #undef $ac_func
 12824 /* Override any GCC internal prototype to avoid an error.
 12825    Use char because int might match the return type of a GCC
 12826    builtin and then its argument prototype would still apply.  */
 12827 #ifdef __cplusplus
 12828 extern "C"
 12829 #endif
 12830 char $ac_func ();
 12831 /* The GNU C library defines this for functions which it implements
 12832     to always fail with ENOSYS.  Some functions are actually named
 12833     something starting with __ and the normal name is an alias.  */
 12834 #if defined __stub_$ac_func || defined __stub___$ac_func
 12835 choke me
 12836 #endif
 12838 int
 12839 main ()
 12841 return $ac_func ();
 12843   return 0;
 12845 _ACEOF
 12846 rm -f conftest.$ac_objext conftest$ac_exeext
 12847 if { (ac_try="$ac_link"
 12848 case "(($ac_try" in
 12849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12850   *) ac_try_echo=$ac_try;;
 12851 esac
 12852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12853 $as_echo "$ac_try_echo") >&5
 12854   (eval "$ac_link") 2>conftest.er1
 12855   ac_status=$?
 12856   grep -v '^ *+' conftest.er1 >conftest.err
 12857   rm -f conftest.er1
 12858   cat conftest.err >&5
 12859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12860   (exit $ac_status); } && {
 12861 	 test -z "$ac_c_werror_flag" ||
 12862 	 test ! -s conftest.err
 12863        } && test -s conftest$ac_exeext && {
 12864 	 test "$cross_compiling" = yes ||
 12865 	 $as_test_x conftest$ac_exeext
 12866        }; then
 12867   eval "$as_ac_var=yes"
 12868 else
 12869   $as_echo "$as_me: failed program was:" >&5
 12870 sed 's/^/| /' conftest.$ac_ext >&5
 12872 	eval "$as_ac_var=no"
 12873 fi
 12875 rm -rf conftest.dSYM
 12876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12877       conftest$ac_exeext conftest.$ac_ext
 12878 fi
 12879 ac_res=`eval 'as_val=${'$as_ac_var'}
 12880 		 $as_echo "$as_val"'`
 12881 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 12882 $as_echo "$ac_res" >&6; }
 12883 as_val=`eval 'as_val=${'$as_ac_var'}
 12884 		 $as_echo "$as_val"'`
 12885    if test "x$as_val" = x""yes; then
 12886   cat >>confdefs.h <<_ACEOF
 12887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 12888 _ACEOF
 12890 fi
 12891 done
 12893           LIBS="$glib_save_LIBS"
 12895           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 12896             gt_cv_func_dgettext_libc=no
 12897           else
 12898             if test "$gt_cv_func_dgettext_libc" = "yes" \
 12899 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 12900               gt_cv_func_dgettext_libintl=no
 12901             fi
 12902           fi
 12903         fi
 12904       fi
 12906       if test "$gt_cv_func_dgettext_libc" = "yes" \
 12907 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 12908         gt_cv_have_gettext=yes
 12909       fi
 12911       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 12912         INTLLIBS="-lintl $libintl_extra_libs"
 12913       fi
 12915       if test "$gt_cv_have_gettext" = "yes"; then
 12917 cat >>confdefs.h <<\_ACEOF
 12918 #define HAVE_GETTEXT 1
 12919 _ACEOF
 12921 	# Extract the first word of "msgfmt", so it can be a program name with args.
 12922 set dummy msgfmt; ac_word=$2
 12923 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 12924 $as_echo_n "checking for $ac_word... " >&6; }
 12925 if test "${ac_cv_path_MSGFMT+set}" = set; then
 12926   $as_echo_n "(cached) " >&6
 12927 else
 12928   case "$MSGFMT" in
 12929   /*)
 12930   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 12931   ;;
 12932   *)
 12933   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 12934   for ac_dir in $PATH; do
 12935     test -z "$ac_dir" && ac_dir=.
 12936     if test -f $ac_dir/$ac_word; then
 12937       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 12938 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 12939 	break
 12940       fi
 12941     fi
 12942   done
 12943   IFS="$ac_save_ifs"
 12944   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 12945   ;;
 12946 esac
 12947 fi
 12948 MSGFMT="$ac_cv_path_MSGFMT"
 12949 if test "$MSGFMT" != "no"; then
 12950   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
 12951 $as_echo "$MSGFMT" >&6; }
 12952 else
 12953   { $as_echo "$as_me:$LINENO: result: no" >&5
 12954 $as_echo "no" >&6; }
 12955 fi
 12956 	if test "$MSGFMT" != "no"; then
 12957           glib_save_LIBS="$LIBS"
 12958           LIBS="$LIBS $INTLLIBS"
 12960 for ac_func in dcgettext
 12961 do
 12962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 12963 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 12964 $as_echo_n "checking for $ac_func... " >&6; }
 12965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 12966   $as_echo_n "(cached) " >&6
 12967 else
 12968   cat >conftest.$ac_ext <<_ACEOF
 12969 /* confdefs.h.  */
 12970 _ACEOF
 12971 cat confdefs.h >>conftest.$ac_ext
 12972 cat >>conftest.$ac_ext <<_ACEOF
 12973 /* end confdefs.h.  */
 12974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 12975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12976 #define $ac_func innocuous_$ac_func
 12978 /* System header to define __stub macros and hopefully few prototypes,
 12979     which can conflict with char $ac_func (); below.
 12980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12981     <limits.h> exists even on freestanding compilers.  */
 12983 #ifdef __STDC__
 12984 # include <limits.h>
 12985 #else
 12986 # include <assert.h>
 12987 #endif
 12989 #undef $ac_func
 12991 /* Override any GCC internal prototype to avoid an error.
 12992    Use char because int might match the return type of a GCC
 12993    builtin and then its argument prototype would still apply.  */
 12994 #ifdef __cplusplus
 12995 extern "C"
 12996 #endif
 12997 char $ac_func ();
 12998 /* The GNU C library defines this for functions which it implements
 12999     to always fail with ENOSYS.  Some functions are actually named
 13000     something starting with __ and the normal name is an alias.  */
 13001 #if defined __stub_$ac_func || defined __stub___$ac_func
 13002 choke me
 13003 #endif
 13005 int
 13006 main ()
 13008 return $ac_func ();
 13010   return 0;
 13012 _ACEOF
 13013 rm -f conftest.$ac_objext conftest$ac_exeext
 13014 if { (ac_try="$ac_link"
 13015 case "(($ac_try" in
 13016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13017   *) ac_try_echo=$ac_try;;
 13018 esac
 13019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 13020 $as_echo "$ac_try_echo") >&5
 13021   (eval "$ac_link") 2>conftest.er1
 13022   ac_status=$?
 13023   grep -v '^ *+' conftest.er1 >conftest.err
 13024   rm -f conftest.er1
 13025   cat conftest.err >&5
 13026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13027   (exit $ac_status); } && {
 13028 	 test -z "$ac_c_werror_flag" ||
 13029 	 test ! -s conftest.err
 13030        } && test -s conftest$ac_exeext && {
 13031 	 test "$cross_compiling" = yes ||
 13032 	 $as_test_x conftest$ac_exeext
 13033        }; then
 13034   eval "$as_ac_var=yes"
 13035 else
 13036   $as_echo "$as_me: failed program was:" >&5
 13037 sed 's/^/| /' conftest.$ac_ext >&5
 13039 	eval "$as_ac_var=no"
 13040 fi
 13042 rm -rf conftest.dSYM
 13043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13044       conftest$ac_exeext conftest.$ac_ext
 13045 fi
 13046 ac_res=`eval 'as_val=${'$as_ac_var'}
 13047 		 $as_echo "$as_val"'`
 13048 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 13049 $as_echo "$ac_res" >&6; }
 13050 as_val=`eval 'as_val=${'$as_ac_var'}
 13051 		 $as_echo "$as_val"'`
 13052    if test "x$as_val" = x""yes; then
 13053   cat >>confdefs.h <<_ACEOF
 13054 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 13055 _ACEOF
 13057 fi
 13058 done
 13060 	  MSGFMT_OPTS=
 13061 	  { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 13062 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
 13063 	  cat >conftest.foo <<_ACEOF
 13065 msgid ""
 13066 msgstr ""
 13067 "Content-Type: text/plain; charset=UTF-8\n"
 13068 "Project-Id-Version: test 1.0\n"
 13069 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 13070 "Last-Translator: test <foo@bar.xx>\n"
 13071 "Language-Team: C <LL@li.org>\n"
 13072 "MIME-Version: 1.0\n"
 13073 "Content-Transfer-Encoding: 8bit\n"
 13075 _ACEOF
 13076 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
 13077   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 13078   ac_status=$?
 13079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13080   (exit $ac_status); }; then
 13081   MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
 13082 $as_echo "yes" >&6; }
 13083 else { $as_echo "$as_me:$LINENO: result: no" >&5
 13084 $as_echo "no" >&6; }
 13085 echo "$as_me: failed input was:" >&5
 13086 sed 's/^/| /' conftest.foo >&5
 13087 fi
 13089 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 13090 set dummy gmsgfmt; ac_word=$2
 13091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 13092 $as_echo_n "checking for $ac_word... " >&6; }
 13093 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 13094   $as_echo_n "(cached) " >&6
 13095 else
 13096   case $GMSGFMT in
 13097   [\\/]* | ?:[\\/]*)
 13098   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 13099   ;;
 13100   *)
 13101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13102 for as_dir in $PATH
 13103 do
 13104   IFS=$as_save_IFS
 13105   test -z "$as_dir" && as_dir=.
 13106   for ac_exec_ext in '' $ac_executable_extensions; do
 13107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 13108     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 13109     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 13110     break 2
 13111   fi
 13112 done
 13113 done
 13114 IFS=$as_save_IFS
 13116   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 13117   ;;
 13118 esac
 13119 fi
 13120 GMSGFMT=$ac_cv_path_GMSGFMT
 13121 if test -n "$GMSGFMT"; then
 13122   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 13123 $as_echo "$GMSGFMT" >&6; }
 13124 else
 13125   { $as_echo "$as_me:$LINENO: result: no" >&5
 13126 $as_echo "no" >&6; }
 13127 fi
 13130 	  # Extract the first word of "xgettext", so it can be a program name with args.
 13131 set dummy xgettext; ac_word=$2
 13132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 13133 $as_echo_n "checking for $ac_word... " >&6; }
 13134 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 13135   $as_echo_n "(cached) " >&6
 13136 else
 13137   case "$XGETTEXT" in
 13138   /*)
 13139   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 13140   ;;
 13141   *)
 13142   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 13143   for ac_dir in $PATH; do
 13144     test -z "$ac_dir" && ac_dir=.
 13145     if test -f $ac_dir/$ac_word; then
 13146       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 13147 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 13148 	break
 13149       fi
 13150     fi
 13151   done
 13152   IFS="$ac_save_ifs"
 13153   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 13154   ;;
 13155 esac
 13156 fi
 13157 XGETTEXT="$ac_cv_path_XGETTEXT"
 13158 if test "$XGETTEXT" != ":"; then
 13159   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 13160 $as_echo "$XGETTEXT" >&6; }
 13161 else
 13162   { $as_echo "$as_me:$LINENO: result: no" >&5
 13163 $as_echo "no" >&6; }
 13164 fi
 13166 	  cat >conftest.$ac_ext <<_ACEOF
 13167 /* confdefs.h.  */
 13168 _ACEOF
 13169 cat confdefs.h >>conftest.$ac_ext
 13170 cat >>conftest.$ac_ext <<_ACEOF
 13171 /* end confdefs.h.  */
 13173 int
 13174 main ()
 13176 extern int _nl_msg_cat_cntr;
 13177 			 return _nl_msg_cat_cntr
 13179   return 0;
 13181 _ACEOF
 13182 rm -f conftest.$ac_objext conftest$ac_exeext
 13183 if { (ac_try="$ac_link"
 13184 case "(($ac_try" in
 13185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13186   *) ac_try_echo=$ac_try;;
 13187 esac
 13188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 13189 $as_echo "$ac_try_echo") >&5
 13190   (eval "$ac_link") 2>conftest.er1
 13191   ac_status=$?
 13192   grep -v '^ *+' conftest.er1 >conftest.err
 13193   rm -f conftest.er1
 13194   cat conftest.err >&5
 13195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13196   (exit $ac_status); } && {
 13197 	 test -z "$ac_c_werror_flag" ||
 13198 	 test ! -s conftest.err
 13199        } && test -s conftest$ac_exeext && {
 13200 	 test "$cross_compiling" = yes ||
 13201 	 $as_test_x conftest$ac_exeext
 13202        }; then
 13203   CATOBJEXT=.gmo
 13204              DATADIRNAME=share
 13205 else
 13206   $as_echo "$as_me: failed program was:" >&5
 13207 sed 's/^/| /' conftest.$ac_ext >&5
 13209 	case $host in
 13210 	    *-*-solaris*)
 13211 	    	                	    	                { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 13212 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
 13213 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 13214   $as_echo_n "(cached) " >&6
 13215 else
 13216   cat >conftest.$ac_ext <<_ACEOF
 13217 /* confdefs.h.  */
 13218 _ACEOF
 13219 cat confdefs.h >>conftest.$ac_ext
 13220 cat >>conftest.$ac_ext <<_ACEOF
 13221 /* end confdefs.h.  */
 13222 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 13223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 13224 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 13226 /* System header to define __stub macros and hopefully few prototypes,
 13227     which can conflict with char bind_textdomain_codeset (); below.
 13228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 13229     <limits.h> exists even on freestanding compilers.  */
 13231 #ifdef __STDC__
 13232 # include <limits.h>
 13233 #else
 13234 # include <assert.h>
 13235 #endif
 13237 #undef bind_textdomain_codeset
 13239 /* Override any GCC internal prototype to avoid an error.
 13240    Use char because int might match the return type of a GCC
 13241    builtin and then its argument prototype would still apply.  */
 13242 #ifdef __cplusplus
 13243 extern "C"
 13244 #endif
 13245 char bind_textdomain_codeset ();
 13246 /* The GNU C library defines this for functions which it implements
 13247     to always fail with ENOSYS.  Some functions are actually named
 13248     something starting with __ and the normal name is an alias.  */
 13249 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 13250 choke me
 13251 #endif
 13253 int
 13254 main ()
 13256 return bind_textdomain_codeset ();
 13258   return 0;
 13260 _ACEOF
 13261 rm -f conftest.$ac_objext conftest$ac_exeext
 13262 if { (ac_try="$ac_link"
 13263 case "(($ac_try" in
 13264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13265   *) ac_try_echo=$ac_try;;
 13266 esac
 13267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 13268 $as_echo "$ac_try_echo") >&5
 13269   (eval "$ac_link") 2>conftest.er1
 13270   ac_status=$?
 13271   grep -v '^ *+' conftest.er1 >conftest.err
 13272   rm -f conftest.er1
 13273   cat conftest.err >&5
 13274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13275   (exit $ac_status); } && {
 13276 	 test -z "$ac_c_werror_flag" ||
 13277 	 test ! -s conftest.err
 13278        } && test -s conftest$ac_exeext && {
 13279 	 test "$cross_compiling" = yes ||
 13280 	 $as_test_x conftest$ac_exeext
 13281        }; then
 13282   ac_cv_func_bind_textdomain_codeset=yes
 13283 else
 13284   $as_echo "$as_me: failed program was:" >&5
 13285 sed 's/^/| /' conftest.$ac_ext >&5
 13287 	ac_cv_func_bind_textdomain_codeset=no
 13288 fi
 13290 rm -rf conftest.dSYM
 13291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13292       conftest$ac_exeext conftest.$ac_ext
 13293 fi
 13294 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 13295 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
 13296 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
 13297   CATOBJEXT=.gmo
 13298                DATADIRNAME=share
 13299 else
 13300   CATOBJEXT=.mo
 13301                DATADIRNAME=lib
 13302 fi
 13304 	    ;;
 13305 	    *)
 13306 	    CATOBJEXT=.mo
 13307             DATADIRNAME=lib
 13308 	    ;;
 13309 	    esac
 13310 fi
 13312 rm -rf conftest.dSYM
 13313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13314       conftest$ac_exeext conftest.$ac_ext
 13315           LIBS="$glib_save_LIBS"
 13316 	  INSTOBJEXT=.mo
 13317 	else
 13318 	  gt_cv_have_gettext=no
 13319 	fi
 13320       fi
 13322 fi
 13326     if test "$gt_cv_have_gettext" = "yes" ; then
 13328 cat >>confdefs.h <<\_ACEOF
 13329 #define ENABLE_NLS 1
 13330 _ACEOF
 13332     fi
 13334         if test "$XGETTEXT" != ":"; then
 13335                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 13336         : ;
 13337       else
 13338         { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 13339 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
 13340         XGETTEXT=":"
 13341       fi
 13342     fi
 13344     # We need to process the po/ directory.
 13345     POSUB=po
 13347     ac_config_commands="$ac_config_commands default-1"
 13350                 for lang in $ALL_LINGUAS; do
 13351       GMOFILES="$GMOFILES $lang.gmo"
 13352       POFILES="$POFILES $lang.po"
 13353     done
 13367    if test "$gt_cv_have_gettext" = "yes"; then
 13368      if test "x$ALL_LINGUAS" = "x"; then
 13369        LINGUAS=
 13370      else
 13371        { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 13372 $as_echo_n "checking for catalogs to be installed... " >&6; }
 13373        NEW_LINGUAS=
 13374        for presentlang in $ALL_LINGUAS; do
 13375          useit=no
 13376          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 13377            desiredlanguages="$LINGUAS"
 13378          else
 13379            desiredlanguages="$ALL_LINGUAS"
 13380          fi
 13381          for desiredlang in $desiredlanguages; do
 13382  	   # Use the presentlang catalog if desiredlang is
 13383            #   a. equal to presentlang, or
 13384            #   b. a variant of presentlang (because in this case,
 13385            #      presentlang can be used as a fallback for messages
 13386            #      which are not translated in the desiredlang catalog).
 13387            case "$desiredlang" in
 13388              "$presentlang"*) useit=yes;;
 13389            esac
 13390          done
 13391          if test $useit = yes; then
 13392            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 13393          fi
 13394        done
 13395        LINGUAS=$NEW_LINGUAS
 13396        { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
 13397 $as_echo "$LINGUAS" >&6; }
 13398      fi
 13400           if test -n "$LINGUAS"; then
 13401        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 13402      fi
 13403    fi
 13405             MKINSTALLDIRS=
 13406    if test -n "$ac_aux_dir"; then
 13407      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 13408    fi
 13409    if test -z "$MKINSTALLDIRS"; then
 13410      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 13411    fi
 13414          test -d po || mkdir po
 13415    if test "x$srcdir" != "x."; then
 13416      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 13417        posrcprefix="$srcdir/"
 13418      else
 13419        posrcprefix="../$srcdir/"
 13420      fi
 13421    else
 13422      posrcprefix="../"
 13423    fi
 13424    rm -f po/POTFILES
 13425    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 13426 	< $srcdir/po/POTFILES.in > po/POTFILES
 13429 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
 13431 cat >confcache <<\_ACEOF
 13432 # This file is a shell script that caches the results of configure
 13433 # tests run on this system so they can be shared between configure
 13434 # scripts and configure runs, see configure's option --config-cache.
 13435 # It is not useful on other systems.  If it contains results you don't
 13436 # want to keep, you may remove or edit it.
 13438 # config.status only pays attention to the cache file if you give it
 13439 # the --recheck option to rerun configure.
 13441 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 13442 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 13443 # following values.
 13445 _ACEOF
 13447 # The following way of writing the cache mishandles newlines in values,
 13448 # but we know of no workaround that is simple, portable, and efficient.
 13449 # So, we kill variables containing newlines.
 13450 # Ultrix sh set writes to stderr and can't be redirected directly,
 13451 # and sets the high bit in the cache file unless we assign to the vars.
 13453   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 13454     eval ac_val=\$$ac_var
 13455     case $ac_val in #(
 13456     *${as_nl}*)
 13457       case $ac_var in #(
 13458       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 13459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 13460       esac
 13461       case $ac_var in #(
 13462       _ | IFS | as_nl) ;; #(
 13463       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 13464       *) $as_unset $ac_var ;;
 13465       esac ;;
 13466     esac
 13467   done
 13469   (set) 2>&1 |
 13470     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 13471     *${as_nl}ac_space=\ *)
 13472       # `set' does not quote correctly, so add quotes (double-quote
 13473       # substitution turns \\\\ into \\, and sed turns \\ into \).
 13474       sed -n \
 13475 	"s/'/'\\\\''/g;
 13476 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 13477       ;; #(
 13478     *)
 13479       # `set' quotes correctly as required by POSIX, so do not add quotes.
 13480       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 13481       ;;
 13482     esac |
 13483     sort
 13484 ) |
 13485   sed '
 13486      /^ac_cv_env_/b end
 13487      t clear
 13488      :clear
 13489      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 13490      t end
 13491      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 13492      :end' >>confcache
 13493 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 13494   if test -w "$cache_file"; then
 13495     test "x$cache_file" != "x/dev/null" &&
 13496       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 13497 $as_echo "$as_me: updating cache $cache_file" >&6;}
 13498     cat confcache >$cache_file
 13499   else
 13500     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 13501 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 13502   fi
 13503 fi
 13504 rm -f confcache
 13506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 13507 # Let make expand exec_prefix.
 13508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 13510 DEFS=-DHAVE_CONFIG_H
 13512 ac_libobjs=
 13513 ac_ltlibobjs=
 13514 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 13515   # 1. Remove the extension, and $U if already installed.
 13516   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 13517   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 13518   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 13519   #    will be set to the directory where LIBOBJS objects are built.
 13520   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 13521   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 13522 done
 13523 LIBOBJS=$ac_libobjs
 13525 LTLIBOBJS=$ac_ltlibobjs
 13528 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 13529   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 13530 Usually this means the macro was only invoked conditionally." >&5
 13531 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 13532 Usually this means the macro was only invoked conditionally." >&2;}
 13533    { (exit 1); exit 1; }; }
 13534 fi
 13535 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 13536   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 13537 Usually this means the macro was only invoked conditionally." >&5
 13538 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 13539 Usually this means the macro was only invoked conditionally." >&2;}
 13540    { (exit 1); exit 1; }; }
 13541 fi
 13542 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 13543   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 13544 Usually this means the macro was only invoked conditionally." >&5
 13545 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 13546 Usually this means the macro was only invoked conditionally." >&2;}
 13547    { (exit 1); exit 1; }; }
 13548 fi
 13549 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 13550   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 13551 Usually this means the macro was only invoked conditionally." >&5
 13552 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 13553 Usually this means the macro was only invoked conditionally." >&2;}
 13554    { (exit 1); exit 1; }; }
 13555 fi
 13556 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 13557   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 13558 Usually this means the macro was only invoked conditionally." >&5
 13559 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 13560 Usually this means the macro was only invoked conditionally." >&2;}
 13561    { (exit 1); exit 1; }; }
 13562 fi
 13563 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
 13564   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
 13565 Usually this means the macro was only invoked conditionally." >&5
 13566 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
 13567 Usually this means the macro was only invoked conditionally." >&2;}
 13568    { (exit 1); exit 1; }; }
 13569 fi
 13570 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 13571   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 13572 Usually this means the macro was only invoked conditionally." >&5
 13573 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 13574 Usually this means the macro was only invoked conditionally." >&2;}
 13575    { (exit 1); exit 1; }; }
 13576 fi
 13577 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
 13578   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
 13579 Usually this means the macro was only invoked conditionally." >&5
 13580 $as_echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
 13581 Usually this means the macro was only invoked conditionally." >&2;}
 13582    { (exit 1); exit 1; }; }
 13583 fi
 13584 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 13585   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 13586 Usually this means the macro was only invoked conditionally." >&5
 13587 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 13588 Usually this means the macro was only invoked conditionally." >&2;}
 13589    { (exit 1); exit 1; }; }
 13590 fi
 13591 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 13592   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 13593 Usually this means the macro was only invoked conditionally." >&5
 13594 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 13595 Usually this means the macro was only invoked conditionally." >&2;}
 13596    { (exit 1); exit 1; }; }
 13597 fi
 13598 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 13599   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 13600 Usually this means the macro was only invoked conditionally." >&5
 13601 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 13602 Usually this means the macro was only invoked conditionally." >&2;}
 13603    { (exit 1); exit 1; }; }
 13604 fi
 13605 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 13606   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 13607 Usually this means the macro was only invoked conditionally." >&5
 13608 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 13609 Usually this means the macro was only invoked conditionally." >&2;}
 13610    { (exit 1); exit 1; }; }
 13611 fi
 13612 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 13613   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 13614 Usually this means the macro was only invoked conditionally." >&5
 13615 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 13616 Usually this means the macro was only invoked conditionally." >&2;}
 13617    { (exit 1); exit 1; }; }
 13618 fi
 13619 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 13620   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 13621 Usually this means the macro was only invoked conditionally." >&5
 13622 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
 13623 Usually this means the macro was only invoked conditionally." >&2;}
 13624    { (exit 1); exit 1; }; }
 13625 fi
 13626 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
 13627   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
 13628 Usually this means the macro was only invoked conditionally." >&5
 13629 $as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
 13630 Usually this means the macro was only invoked conditionally." >&2;}
 13631    { (exit 1); exit 1; }; }
 13632 fi
 13633 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 13634   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 13635 Usually this means the macro was only invoked conditionally." >&5
 13636 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 13637 Usually this means the macro was only invoked conditionally." >&2;}
 13638    { (exit 1); exit 1; }; }
 13639 fi
 13640 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 13641   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 13642 Usually this means the macro was only invoked conditionally." >&5
 13643 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 13644 Usually this means the macro was only invoked conditionally." >&2;}
 13645    { (exit 1); exit 1; }; }
 13646 fi
 13647 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 13648   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 13649 Usually this means the macro was only invoked conditionally." >&5
 13650 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 13651 Usually this means the macro was only invoked conditionally." >&2;}
 13652    { (exit 1); exit 1; }; }
 13653 fi
 13654 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 13655   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 13656 Usually this means the macro was only invoked conditionally." >&5
 13657 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 13658 Usually this means the macro was only invoked conditionally." >&2;}
 13659    { (exit 1); exit 1; }; }
 13660 fi
 13661 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
 13662   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
 13663 Usually this means the macro was only invoked conditionally." >&5
 13664 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
 13665 Usually this means the macro was only invoked conditionally." >&2;}
 13666    { (exit 1); exit 1; }; }
 13667 fi
 13668 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
 13669   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
 13670 Usually this means the macro was only invoked conditionally." >&5
 13671 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
 13672 Usually this means the macro was only invoked conditionally." >&2;}
 13673    { (exit 1); exit 1; }; }
 13674 fi
 13675 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 13676   { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 13677 Usually this means the macro was only invoked conditionally." >&5
 13678 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 13679 Usually this means the macro was only invoked conditionally." >&2;}
 13680    { (exit 1); exit 1; }; }
 13681 fi
 13682 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
 13683   { { $as_echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
 13684 Usually this means the macro was only invoked conditionally." >&5
 13685 $as_echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
 13686 Usually this means the macro was only invoked conditionally." >&2;}
 13687    { (exit 1); exit 1; }; }
 13688 fi
 13689 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 13690   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 13691 Usually this means the macro was only invoked conditionally." >&5
 13692 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 13693 Usually this means the macro was only invoked conditionally." >&2;}
 13694    { (exit 1); exit 1; }; }
 13695 fi
 13696 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 13697   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 13698 Usually this means the macro was only invoked conditionally." >&5
 13699 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 13700 Usually this means the macro was only invoked conditionally." >&2;}
 13701    { (exit 1); exit 1; }; }
 13702 fi
 13704 : ${CONFIG_STATUS=./config.status}
 13705 ac_write_fail=0
 13706 ac_clean_files_save=$ac_clean_files
 13707 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 13708 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 13709 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 13710 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 13711 #! $SHELL
 13712 # Generated by $as_me.
 13713 # Run this file to recreate the current configuration.
 13714 # Compiler output produced by configure, useful for debugging
 13715 # configure, is in config.log if it exists.
 13717 debug=false
 13718 ac_cs_recheck=false
 13719 ac_cs_silent=false
 13720 SHELL=\${CONFIG_SHELL-$SHELL}
 13721 _ACEOF
 13723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 13724 ## --------------------- ##
 13725 ## M4sh Initialization.  ##
 13726 ## --------------------- ##
 13728 # Be more Bourne compatible
 13729 DUALCASE=1; export DUALCASE # for MKS sh
 13730 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 13731   emulate sh
 13732   NULLCMD=:
 13733   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 13734   # is contrary to our usage.  Disable this feature.
 13735   alias -g '${1+"$@"}'='"$@"'
 13736   setopt NO_GLOB_SUBST
 13737 else
 13738   case `(set -o) 2>/dev/null` in
 13739   *posix*) set -o posix ;;
 13740 esac
 13742 fi
 13747 # PATH needs CR
 13748 # Avoid depending upon Character Ranges.
 13749 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 13750 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 13751 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 13752 as_cr_digits='0123456789'
 13753 as_cr_alnum=$as_cr_Letters$as_cr_digits
 13755 as_nl='
 13757 export as_nl
 13758 # Printing a long string crashes Solaris 7 /usr/bin/printf.
 13759 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 13760 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 13761 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 13762 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 13763   as_echo='printf %s\n'
 13764   as_echo_n='printf %s'
 13765 else
 13766   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 13767     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 13768     as_echo_n='/usr/ucb/echo -n'
 13769   else
 13770     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 13771     as_echo_n_body='eval
 13772       arg=$1;
 13773       case $arg in
 13774       *"$as_nl"*)
 13775 	expr "X$arg" : "X\\(.*\\)$as_nl";
 13776 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 13777       esac;
 13778       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 13780     export as_echo_n_body
 13781     as_echo_n='sh -c $as_echo_n_body as_echo'
 13782   fi
 13783   export as_echo_body
 13784   as_echo='sh -c $as_echo_body as_echo'
 13785 fi
 13787 # The user is always right.
 13788 if test "${PATH_SEPARATOR+set}" != set; then
 13789   PATH_SEPARATOR=:
 13790   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 13791     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 13792       PATH_SEPARATOR=';'
 13794 fi
 13796 # Support unset when possible.
 13797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 13798   as_unset=unset
 13799 else
 13800   as_unset=false
 13801 fi
 13804 # IFS
 13805 # We need space, tab and new line, in precisely that order.  Quoting is
 13806 # there to prevent editors from complaining about space-tab.
 13807 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 13808 # splitting by setting IFS to empty value.)
 13809 IFS=" ""	$as_nl"
 13811 # Find who we are.  Look in the path if we contain no directory separator.
 13812 case $0 in
 13813   *[\\/]* ) as_myself=$0 ;;
 13814   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13815 for as_dir in $PATH
 13816 do
 13817   IFS=$as_save_IFS
 13818   test -z "$as_dir" && as_dir=.
 13819   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 13820 done
 13821 IFS=$as_save_IFS
 13823      ;;
 13824 esac
 13825 # We did not find ourselves, most probably we were run as `sh COMMAND'
 13826 # in which case we are not to be found in the path.
 13827 if test "x$as_myself" = x; then
 13828   as_myself=$0
 13829 fi
 13830 if test ! -f "$as_myself"; then
 13831   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 13832   { (exit 1); exit 1; }
 13833 fi
 13835 # Work around bugs in pre-3.0 UWIN ksh.
 13836 for as_var in ENV MAIL MAILPATH
 13837 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 13838 done
 13839 PS1='$ '
 13840 PS2='> '
 13841 PS4='+ '
 13843 # NLS nuisances.
 13844 LC_ALL=C
 13845 export LC_ALL
 13846 LANGUAGE=C
 13847 export LANGUAGE
 13849 # Required to use basename.
 13850 if expr a : '\(a\)' >/dev/null 2>&1 &&
 13851    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 13852   as_expr=expr
 13853 else
 13854   as_expr=false
 13855 fi
 13857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 13858   as_basename=basename
 13859 else
 13860   as_basename=false
 13861 fi
 13864 # Name of the executable.
 13865 as_me=`$as_basename -- "$0" ||
 13866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 13867 	 X"$0" : 'X\(//\)$' \| \
 13868 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 13869 $as_echo X/"$0" |
 13870     sed '/^.*\/\([^/][^/]*\)\/*$/{
 13871 	    s//\1/
 13874 	  /^X\/\(\/\/\)$/{
 13875 	    s//\1/
 13878 	  /^X\/\(\/\).*/{
 13879 	    s//\1/
 13882 	  s/.*/./; q'`
 13884 # CDPATH.
 13885 $as_unset CDPATH
 13889   as_lineno_1=$LINENO
 13890   as_lineno_2=$LINENO
 13891   test "x$as_lineno_1" != "x$as_lineno_2" &&
 13892   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 13894   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 13895   # uniformly replaced by the line number.  The first 'sed' inserts a
 13896   # line-number line after each line using $LINENO; the second 'sed'
 13897   # does the real work.  The second script uses 'N' to pair each
 13898   # line-number line with the line containing $LINENO, and appends
 13899   # trailing '-' during substitution so that $LINENO is not a special
 13900   # case at line end.
 13901   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 13902   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 13903   # E. McMahon (1931-1989) for sed's syntax.  :-)
 13904   sed -n '
 13906     /[$]LINENO/=
 13907   ' <$as_myself |
 13908     sed '
 13909       s/[$]LINENO.*/&-/
 13910       t lineno
 13912       :lineno
 13914       :loop
 13915       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 13916       t loop
 13917       s/-\n.*//
 13918     ' >$as_me.lineno &&
 13919   chmod +x "$as_me.lineno" ||
 13920     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 13921    { (exit 1); exit 1; }; }
 13923   # Don't try to exec as it changes $[0], causing all sort of problems
 13924   # (the dirname of $[0] is not the place where we might find the
 13925   # original and so on.  Autoconf is especially sensitive to this).
 13926   . "./$as_me.lineno"
 13927   # Exit status is that of the last command.
 13928   exit
 13932 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 13933   as_dirname=dirname
 13934 else
 13935   as_dirname=false
 13936 fi
 13938 ECHO_C= ECHO_N= ECHO_T=
 13939 case `echo -n x` in
 13940 -n*)
 13941   case `echo 'x\c'` in
 13942   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 13943   *)   ECHO_C='\c';;
 13944   esac;;
 13945 *)
 13946   ECHO_N='-n';;
 13947 esac
 13948 if expr a : '\(a\)' >/dev/null 2>&1 &&
 13949    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 13950   as_expr=expr
 13951 else
 13952   as_expr=false
 13953 fi
 13955 rm -f conf$$ conf$$.exe conf$$.file
 13956 if test -d conf$$.dir; then
 13957   rm -f conf$$.dir/conf$$.file
 13958 else
 13959   rm -f conf$$.dir
 13960   mkdir conf$$.dir 2>/dev/null
 13961 fi
 13962 if (echo >conf$$.file) 2>/dev/null; then
 13963   if ln -s conf$$.file conf$$ 2>/dev/null; then
 13964     as_ln_s='ln -s'
 13965     # ... but there are two gotchas:
 13966     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 13967     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 13968     # In both cases, we have to default to `cp -p'.
 13969     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 13970       as_ln_s='cp -p'
 13971   elif ln conf$$.file conf$$ 2>/dev/null; then
 13972     as_ln_s=ln
 13973   else
 13974     as_ln_s='cp -p'
 13975   fi
 13976 else
 13977   as_ln_s='cp -p'
 13978 fi
 13979 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 13980 rmdir conf$$.dir 2>/dev/null
 13982 if mkdir -p . 2>/dev/null; then
 13983   as_mkdir_p=:
 13984 else
 13985   test -d ./-p && rmdir ./-p
 13986   as_mkdir_p=false
 13987 fi
 13989 if test -x / >/dev/null 2>&1; then
 13990   as_test_x='test -x'
 13991 else
 13992   if ls -dL / >/dev/null 2>&1; then
 13993     as_ls_L_option=L
 13994   else
 13995     as_ls_L_option=
 13996   fi
 13997   as_test_x='
 13998     eval sh -c '\''
 13999       if test -d "$1"; then
 14000 	test -d "$1/.";
 14001       else
 14002 	case $1 in
 14003 	-*)set "./$1";;
 14004 	esac;
 14005 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 14006 	???[sx]*):;;*)false;;esac;fi
 14007     '\'' sh
 14009 fi
 14010 as_executable_p=$as_test_x
 14012 # Sed expression to map a string onto a valid CPP name.
 14013 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 14015 # Sed expression to map a string onto a valid variable name.
 14016 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 14019 exec 6>&1
 14021 # Save the log message, to keep $[0] and so on meaningful, and to
 14022 # report actual input values of CONFIG_FILES etc. instead of their
 14023 # values after options handling.
 14024 ac_log="
 14025 This file was extended by $as_me, which was
 14026 generated by GNU Autoconf 2.63.  Invocation command line was
 14028   CONFIG_FILES    = $CONFIG_FILES
 14029   CONFIG_HEADERS  = $CONFIG_HEADERS
 14030   CONFIG_LINKS    = $CONFIG_LINKS
 14031   CONFIG_COMMANDS = $CONFIG_COMMANDS
 14032   $ $0 $@
 14034 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 14037 _ACEOF
 14039 case $ac_config_files in *"
 14040 "*) set x $ac_config_files; shift; ac_config_files=$*;;
 14041 esac
 14043 case $ac_config_headers in *"
 14044 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 14045 esac
 14048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14049 # Files that config.status was made for.
 14050 config_files="$ac_config_files"
 14051 config_headers="$ac_config_headers"
 14052 config_commands="$ac_config_commands"
 14054 _ACEOF
 14056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14057 ac_cs_usage="\
 14058 \`$as_me' instantiates files from templates according to the
 14059 current configuration.
 14061 Usage: $0 [OPTION]... [FILE]...
 14063   -h, --help       print this help, then exit
 14064   -V, --version    print version number and configuration settings, then exit
 14065   -q, --quiet, --silent
 14066                    do not print progress messages
 14067   -d, --debug      don't remove temporary files
 14068       --recheck    update $as_me by reconfiguring in the same conditions
 14069       --file=FILE[:TEMPLATE]
 14070                    instantiate the configuration file FILE
 14071       --header=FILE[:TEMPLATE]
 14072                    instantiate the configuration header FILE
 14074 Configuration files:
 14075 $config_files
 14077 Configuration headers:
 14078 $config_headers
 14080 Configuration commands:
 14081 $config_commands
 14083 Report bugs to <bug-autoconf@gnu.org>."
 14085 _ACEOF
 14086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14087 ac_cs_version="\\
 14088 config.status
 14089 configured by $0, generated by GNU Autoconf 2.63,
 14090   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 14092 Copyright (C) 2008 Free Software Foundation, Inc.
 14093 This config.status script is free software; the Free Software Foundation
 14094 gives unlimited permission to copy, distribute and modify it."
 14096 ac_pwd='$ac_pwd'
 14097 srcdir='$srcdir'
 14098 INSTALL='$INSTALL'
 14099 AWK='$AWK'
 14100 test -n "\$AWK" || AWK=awk
 14101 _ACEOF
 14103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14104 # The default lists apply if the user does not specify any file.
 14105 ac_need_defaults=:
 14106 while test $# != 0
 14107 do
 14108   case $1 in
 14109   --*=*)
 14110     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 14111     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 14112     ac_shift=:
 14113     ;;
 14114   *)
 14115     ac_option=$1
 14116     ac_optarg=$2
 14117     ac_shift=shift
 14118     ;;
 14119   esac
 14121   case $ac_option in
 14122   # Handling of the options.
 14123   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 14124     ac_cs_recheck=: ;;
 14125   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 14126     $as_echo "$ac_cs_version"; exit ;;
 14127   --debug | --debu | --deb | --de | --d | -d )
 14128     debug=: ;;
 14129   --file | --fil | --fi | --f )
 14130     $ac_shift
 14131     case $ac_optarg in
 14132     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 14133     esac
 14134     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 14135     ac_need_defaults=false;;
 14136   --header | --heade | --head | --hea )
 14137     $ac_shift
 14138     case $ac_optarg in
 14139     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 14140     esac
 14141     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 14142     ac_need_defaults=false;;
 14143   --he | --h)
 14144     # Conflict between --help and --header
 14145     { $as_echo "$as_me: error: ambiguous option: $1
 14146 Try \`$0 --help' for more information." >&2
 14147    { (exit 1); exit 1; }; };;
 14148   --help | --hel | -h )
 14149     $as_echo "$ac_cs_usage"; exit ;;
 14150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 14151   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 14152     ac_cs_silent=: ;;
 14154   # This is an error.
 14155   -*) { $as_echo "$as_me: error: unrecognized option: $1
 14156 Try \`$0 --help' for more information." >&2
 14157    { (exit 1); exit 1; }; } ;;
 14159   *) ac_config_targets="$ac_config_targets $1"
 14160      ac_need_defaults=false ;;
 14162   esac
 14163   shift
 14164 done
 14166 ac_configure_extra_args=
 14168 if $ac_cs_silent; then
 14169   exec 6>/dev/null
 14170   ac_configure_extra_args="$ac_configure_extra_args --silent"
 14171 fi
 14173 _ACEOF
 14174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14175 if \$ac_cs_recheck; then
 14176   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 14177   shift
 14178   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 14179   CONFIG_SHELL='$SHELL'
 14180   export CONFIG_SHELL
 14181   exec "\$@"
 14182 fi
 14184 _ACEOF
 14185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14186 exec 5>>config.log
 14188   echo
 14189   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 14190 ## Running $as_me. ##
 14191 _ASBOX
 14192   $as_echo "$ac_log"
 14193 } >&5
 14195 _ACEOF
 14196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14198 # INIT-COMMANDS
 14200 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 14203 _ACEOF
 14205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14207 # Handling of arguments.
 14208 for ac_config_target in $ac_config_targets
 14209 do
 14210   case $ac_config_target in
 14211     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 14212     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 14213     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 14214     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 14215     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 14216     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 14217     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 14218     "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
 14220   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 14221 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 14222    { (exit 1); exit 1; }; };;
 14223   esac
 14224 done
 14227 # If the user did not use the arguments to specify the items to instantiate,
 14228 # then the envvar interface is used.  Set only those that are not.
 14229 # We use the long form for the default assignment because of an extremely
 14230 # bizarre bug on SunOS 4.1.3.
 14231 if $ac_need_defaults; then
 14232   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 14233   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 14234   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 14235 fi
 14237 # Have a temporary directory for convenience.  Make it in the build tree
 14238 # simply because there is no reason against having it here, and in addition,
 14239 # creating and moving files from /tmp can sometimes cause problems.
 14240 # Hook for its removal unless debugging.
 14241 # Note that there is a small window in which the directory will not be cleaned:
 14242 # after its creation but before its name has been assigned to `$tmp'.
 14243 $debug ||
 14245   tmp=
 14246   trap 'exit_status=$?
 14247   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 14248 ' 0
 14249   trap '{ (exit 1); exit 1; }' 1 2 13 15
 14251 # Create a (secure) tmp directory for tmp files.
 14254   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 14255   test -n "$tmp" && test -d "$tmp"
 14256 }  ||
 14258   tmp=./conf$$-$RANDOM
 14259   (umask 077 && mkdir "$tmp")
 14260 } ||
 14262    $as_echo "$as_me: cannot create a temporary directory in ." >&2
 14263    { (exit 1); exit 1; }
 14266 # Set up the scripts for CONFIG_FILES section.
 14267 # No need to generate them if there are no CONFIG_FILES.
 14268 # This happens for instance with `./config.status config.h'.
 14269 if test -n "$CONFIG_FILES"; then
 14272 ac_cr='
 14274 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 14275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 14276   ac_cs_awk_cr='\\r'
 14277 else
 14278   ac_cs_awk_cr=$ac_cr
 14279 fi
 14281 echo 'BEGIN {' >"$tmp/subs1.awk" &&
 14282 _ACEOF
 14286   echo "cat >conf$$subs.awk <<_ACEOF" &&
 14287   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 14288   echo "_ACEOF"
 14289 } >conf$$subs.sh ||
 14290   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 14291 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 14292    { (exit 1); exit 1; }; }
 14293 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 14294 ac_delim='%!_!# '
 14295 for ac_last_try in false false false false false :; do
 14296   . ./conf$$subs.sh ||
 14297     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 14298 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 14299    { (exit 1); exit 1; }; }
 14301   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 14302   if test $ac_delim_n = $ac_delim_num; then
 14303     break
 14304   elif $ac_last_try; then
 14305     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 14306 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 14307    { (exit 1); exit 1; }; }
 14308   else
 14309     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 14310   fi
 14311 done
 14312 rm -f conf$$subs.sh
 14314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14315 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 14316 _ACEOF
 14317 sed -n '
 14319 s/^/S["/; s/!.*/"]=/
 14322 s/^[^!]*!//
 14323 :repl
 14324 t repl
 14325 s/'"$ac_delim"'$//
 14326 t delim
 14327 :nl
 14329 s/\(.\{148\}\).*/\1/
 14330 t more1
 14331 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 14334 b repl
 14335 :more1
 14336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 14339 s/.\{148\}//
 14340 t nl
 14341 :delim
 14343 s/\(.\{148\}\).*/\1/
 14344 t more2
 14345 s/["\\]/\\&/g; s/^/"/; s/$/"/
 14348 :more2
 14349 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 14352 s/.\{148\}//
 14353 t delim
 14354 ' <conf$$subs.awk | sed '
 14355 /^[^""]/{
 14357   s/\n//
 14359 ' >>$CONFIG_STATUS || ac_write_fail=1
 14360 rm -f conf$$subs.awk
 14361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14362 _ACAWK
 14363 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 14364   for (key in S) S_is_set[key] = 1
 14365   FS = ""
 14369   line = $ 0
 14370   nfields = split(line, field, "@")
 14371   substed = 0
 14372   len = length(field[1])
 14373   for (i = 2; i < nfields; i++) {
 14374     key = field[i]
 14375     keylen = length(key)
 14376     if (S_is_set[key]) {
 14377       value = S[key]
 14378       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 14379       len += length(value) + length(field[++i])
 14380       substed = 1
 14381     } else
 14382       len += 1 + keylen
 14385   print line
 14388 _ACAWK
 14389 _ACEOF
 14390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14391 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 14392   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 14393 else
 14394   cat
 14395 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 14396   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 14397 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
 14398    { (exit 1); exit 1; }; }
 14399 _ACEOF
 14401 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 14402 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 14403 # trailing colons and then remove the whole line if VPATH becomes empty
 14404 # (actually we leave an empty line to preserve line numbers).
 14405 if test "x$srcdir" = x.; then
 14406   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 14407 s/:*\$(srcdir):*/:/
 14408 s/:*\${srcdir}:*/:/
 14409 s/:*@srcdir@:*/:/
 14410 s/^\([^=]*=[	 ]*\):*/\1/
 14411 s/:*$//
 14412 s/^[^=]*=[	 ]*$//
 14413 }'
 14414 fi
 14416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14417 fi # test -n "$CONFIG_FILES"
 14419 # Set up the scripts for CONFIG_HEADERS section.
 14420 # No need to generate them if there are no CONFIG_HEADERS.
 14421 # This happens for instance with `./config.status Makefile'.
 14422 if test -n "$CONFIG_HEADERS"; then
 14423 cat >"$tmp/defines.awk" <<\_ACAWK ||
 14424 BEGIN {
 14425 _ACEOF
 14427 # Transform confdefs.h into an awk script `defines.awk', embedded as
 14428 # here-document in config.status, that substitutes the proper values into
 14429 # config.h.in to produce config.h.
 14431 # Create a delimiter string that does not exist in confdefs.h, to ease
 14432 # handling of long lines.
 14433 ac_delim='%!_!# '
 14434 for ac_last_try in false false :; do
 14435   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 14436   if test -z "$ac_t"; then
 14437     break
 14438   elif $ac_last_try; then
 14439     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 14440 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 14441    { (exit 1); exit 1; }; }
 14442   else
 14443     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 14444   fi
 14445 done
 14447 # For the awk script, D is an array of macro values keyed by name,
 14448 # likewise P contains macro parameters if any.  Preserve backslash
 14449 # newline sequences.
 14451 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 14452 sed -n '
 14453 s/.\{148\}/&'"$ac_delim"'/g
 14454 t rset
 14455 :rset
 14456 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 14457 t def
 14459 :def
 14460 s/\\$//
 14461 t bsnl
 14462 s/["\\]/\\&/g
 14463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 14464 D["\1"]=" \3"/p
 14465 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 14467 :bsnl
 14468 s/["\\]/\\&/g
 14469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 14470 D["\1"]=" \3\\\\\\n"\\/p
 14471 t cont
 14472 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 14473 t cont
 14475 :cont
 14477 s/.\{148\}/&'"$ac_delim"'/g
 14478 t clear
 14479 :clear
 14480 s/\\$//
 14481 t bsnlc
 14482 s/["\\]/\\&/g; s/^/"/; s/$/"/p
 14484 :bsnlc
 14485 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 14486 b cont
 14487 ' <confdefs.h | sed '
 14488 s/'"$ac_delim"'/"\\\
 14489 "/g' >>$CONFIG_STATUS || ac_write_fail=1
 14491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14492   for (key in D) D_is_set[key] = 1
 14493   FS = ""
 14495 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 14496   line = \$ 0
 14497   split(line, arg, " ")
 14498   if (arg[1] == "#") {
 14499     defundef = arg[2]
 14500     mac1 = arg[3]
 14501   } else {
 14502     defundef = substr(arg[1], 2)
 14503     mac1 = arg[2]
 14505   split(mac1, mac2, "(") #)
 14506   macro = mac2[1]
 14507   prefix = substr(line, 1, index(line, defundef) - 1)
 14508   if (D_is_set[macro]) {
 14509     # Preserve the white space surrounding the "#".
 14510     print prefix "define", macro P[macro] D[macro]
 14511     next
 14512   } else {
 14513     # Replace #undef with comments.  This is necessary, for example,
 14514     # in the case of _POSIX_SOURCE, which is predefined and required
 14515     # on some systems where configure will not decide to define it.
 14516     if (defundef == "undef") {
 14517       print "/*", prefix defundef, macro, "*/"
 14518       next
 14522 { print }
 14523 _ACAWK
 14524 _ACEOF
 14525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14526   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 14527 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 14528    { (exit 1); exit 1; }; }
 14529 fi # test -n "$CONFIG_HEADERS"
 14532 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 14533 shift
 14534 for ac_tag
 14535 do
 14536   case $ac_tag in
 14537   :[FHLC]) ac_mode=$ac_tag; continue;;
 14538   esac
 14539   case $ac_mode$ac_tag in
 14540   :[FHL]*:*);;
 14541   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 14542 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 14543    { (exit 1); exit 1; }; };;
 14544   :[FH]-) ac_tag=-:-;;
 14545   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 14546   esac
 14547   ac_save_IFS=$IFS
 14548   IFS=:
 14549   set x $ac_tag
 14550   IFS=$ac_save_IFS
 14551   shift
 14552   ac_file=$1
 14553   shift
 14555   case $ac_mode in
 14556   :L) ac_source=$1;;
 14557   :[FH])
 14558     ac_file_inputs=
 14559     for ac_f
 14560     do
 14561       case $ac_f in
 14562       -) ac_f="$tmp/stdin";;
 14563       *) # Look for the file first in the build tree, then in the source tree
 14564 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 14565 	 # because $ac_f cannot contain `:'.
 14566 	 test -f "$ac_f" ||
 14567 	   case $ac_f in
 14568 	   [\\/$]*) false;;
 14569 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 14570 	   esac ||
 14571 	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 14572 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 14573    { (exit 1); exit 1; }; };;
 14574       esac
 14575       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 14576       ac_file_inputs="$ac_file_inputs '$ac_f'"
 14577     done
 14579     # Let's still pretend it is `configure' which instantiates (i.e., don't
 14580     # use $as_me), people would be surprised to read:
 14581     #    /* config.h.  Generated by config.status.  */
 14582     configure_input='Generated from '`
 14583 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 14584 	`' by configure.'
 14585     if test x"$ac_file" != x-; then
 14586       configure_input="$ac_file.  $configure_input"
 14587       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 14588 $as_echo "$as_me: creating $ac_file" >&6;}
 14589     fi
 14590     # Neutralize special characters interpreted by sed in replacement strings.
 14591     case $configure_input in #(
 14592     *\&* | *\|* | *\\* )
 14593        ac_sed_conf_input=`$as_echo "$configure_input" |
 14594        sed 's/[\\\\&|]/\\\\&/g'`;; #(
 14595     *) ac_sed_conf_input=$configure_input;;
 14596     esac
 14598     case $ac_tag in
 14599     *:-:* | *:-) cat >"$tmp/stdin" \
 14600       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 14601 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 14602    { (exit 1); exit 1; }; } ;;
 14603     esac
 14604     ;;
 14605   esac
 14607   ac_dir=`$as_dirname -- "$ac_file" ||
 14608 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14609 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 14610 	 X"$ac_file" : 'X\(//\)$' \| \
 14611 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 14612 $as_echo X"$ac_file" |
 14613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14614 	    s//\1/
 14617 	  /^X\(\/\/\)[^/].*/{
 14618 	    s//\1/
 14621 	  /^X\(\/\/\)$/{
 14622 	    s//\1/
 14625 	  /^X\(\/\).*/{
 14626 	    s//\1/
 14629 	  s/.*/./; q'`
 14630   { as_dir="$ac_dir"
 14631   case $as_dir in #(
 14632   -*) as_dir=./$as_dir;;
 14633   esac
 14634   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 14635     as_dirs=
 14636     while :; do
 14637       case $as_dir in #(
 14638       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 14639       *) as_qdir=$as_dir;;
 14640       esac
 14641       as_dirs="'$as_qdir' $as_dirs"
 14642       as_dir=`$as_dirname -- "$as_dir" ||
 14643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14644 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 14645 	 X"$as_dir" : 'X\(//\)$' \| \
 14646 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 14647 $as_echo X"$as_dir" |
 14648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14649 	    s//\1/
 14652 	  /^X\(\/\/\)[^/].*/{
 14653 	    s//\1/
 14656 	  /^X\(\/\/\)$/{
 14657 	    s//\1/
 14660 	  /^X\(\/\).*/{
 14661 	    s//\1/
 14664 	  s/.*/./; q'`
 14665       test -d "$as_dir" && break
 14666     done
 14667     test -z "$as_dirs" || eval "mkdir $as_dirs"
 14668   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 14669 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 14670    { (exit 1); exit 1; }; }; }
 14671   ac_builddir=.
 14673 case "$ac_dir" in
 14674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 14675 *)
 14676   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 14677   # A ".." for each directory in $ac_dir_suffix.
 14678   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 14679   case $ac_top_builddir_sub in
 14680   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 14681   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 14682   esac ;;
 14683 esac
 14684 ac_abs_top_builddir=$ac_pwd
 14685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 14686 # for backward compatibility:
 14687 ac_top_builddir=$ac_top_build_prefix
 14689 case $srcdir in
 14690   .)  # We are building in place.
 14691     ac_srcdir=.
 14692     ac_top_srcdir=$ac_top_builddir_sub
 14693     ac_abs_top_srcdir=$ac_pwd ;;
 14694   [\\/]* | ?:[\\/]* )  # Absolute name.
 14695     ac_srcdir=$srcdir$ac_dir_suffix;
 14696     ac_top_srcdir=$srcdir
 14697     ac_abs_top_srcdir=$srcdir ;;
 14698   *) # Relative name.
 14699     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 14700     ac_top_srcdir=$ac_top_build_prefix$srcdir
 14701     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 14702 esac
 14703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 14706   case $ac_mode in
 14707   :F)
 14709   # CONFIG_FILE
 14712   case $INSTALL in
 14713   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 14714   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 14715   esac
 14716 _ACEOF
 14718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14719 # If the template does not know about datarootdir, expand it.
 14720 # FIXME: This hack should be removed a few years after 2.60.
 14721 ac_datarootdir_hack=; ac_datarootdir_seen=
 14723 ac_sed_dataroot='
 14724 /datarootdir/ {
 14728 /@datadir@/p
 14729 /@docdir@/p
 14730 /@infodir@/p
 14731 /@localedir@/p
 14732 /@mandir@/p
 14734 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 14735 *datarootdir*) ac_datarootdir_seen=yes;;
 14736 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 14737   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 14738 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 14739 _ACEOF
 14740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14741   ac_datarootdir_hack='
 14742   s&@datadir@&$datadir&g
 14743   s&@docdir@&$docdir&g
 14744   s&@infodir@&$infodir&g
 14745   s&@localedir@&$localedir&g
 14746   s&@mandir@&$mandir&g
 14747     s&\\\${datarootdir}&$datarootdir&g' ;;
 14748 esac
 14749 _ACEOF
 14751 # Neutralize VPATH when `$srcdir' = `.'.
 14752 # Shell code in configure.ac might set extrasub.
 14753 # FIXME: do we really want to maintain this feature?
 14754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14755 ac_sed_extra="$ac_vpsub
 14756 $extrasub
 14757 _ACEOF
 14758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14759 :t
 14760 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 14761 s|@configure_input@|$ac_sed_conf_input|;t t
 14762 s&@top_builddir@&$ac_top_builddir_sub&;t t
 14763 s&@top_build_prefix@&$ac_top_build_prefix&;t t
 14764 s&@srcdir@&$ac_srcdir&;t t
 14765 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 14766 s&@top_srcdir@&$ac_top_srcdir&;t t
 14767 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 14768 s&@builddir@&$ac_builddir&;t t
 14769 s&@abs_builddir@&$ac_abs_builddir&;t t
 14770 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 14771 s&@INSTALL@&$ac_INSTALL&;t t
 14772 $ac_datarootdir_hack
 14774 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 14775   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 14776 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 14777    { (exit 1); exit 1; }; }
 14779 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 14780   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 14781   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 14782   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 14783 which seems to be undefined.  Please make sure it is defined." >&5
 14784 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 14785 which seems to be undefined.  Please make sure it is defined." >&2;}
 14787   rm -f "$tmp/stdin"
 14788   case $ac_file in
 14789   -) cat "$tmp/out" && rm -f "$tmp/out";;
 14790   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 14791   esac \
 14792   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 14793 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 14794    { (exit 1); exit 1; }; }
 14795  ;;
 14796   :H)
 14798   # CONFIG_HEADER
 14800   if test x"$ac_file" != x-; then
 14802       $as_echo "/* $configure_input  */" \
 14803       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 14804     } >"$tmp/config.h" \
 14805       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 14806 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 14807    { (exit 1); exit 1; }; }
 14808     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 14809       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 14810 $as_echo "$as_me: $ac_file is unchanged" >&6;}
 14811     else
 14812       rm -f "$ac_file"
 14813       mv "$tmp/config.h" "$ac_file" \
 14814 	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 14815 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 14816    { (exit 1); exit 1; }; }
 14817     fi
 14818   else
 14819     $as_echo "/* $configure_input  */" \
 14820       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 14821       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 14822 $as_echo "$as_me: error: could not create -" >&2;}
 14823    { (exit 1); exit 1; }; }
 14824   fi
 14825 # Compute "$ac_file"'s index in $config_headers.
 14826 _am_stamp_count=1
 14827 for _am_header in $config_headers :; do
 14828   case $_am_header in
 14829     "$ac_file" | "$ac_file":* )
 14830       break ;;
 14831     * )
 14832       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 14833   esac
 14834 done
 14835 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
 14836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14837 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 14838 	 X"$ac_file" : 'X\(//\)$' \| \
 14839 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 14840 $as_echo X"$ac_file" |
 14841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14842 	    s//\1/
 14845 	  /^X\(\/\/\)[^/].*/{
 14846 	    s//\1/
 14849 	  /^X\(\/\/\)$/{
 14850 	    s//\1/
 14853 	  /^X\(\/\).*/{
 14854 	    s//\1/
 14857 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 14858  ;;
 14860   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 14861 $as_echo "$as_me: executing $ac_file commands" >&6;}
 14862  ;;
 14863   esac
 14866   case $ac_file$ac_mode in
 14867     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 14868   # Strip MF so we end up with the name of the file.
 14869   mf=`echo "$mf" | sed -e 's/:.*$//'`
 14870   # Check whether this is an Automake generated Makefile or not.
 14871   # We used to match only the files named `Makefile.in', but
 14872   # some people rename them; so instead we look at the file content.
 14873   # Grep'ing the first line is not enough: some people post-process
 14874   # each Makefile.in and add a new line on top of each file to say so.
 14875   # So let's grep whole file.
 14876   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 14877     dirpart=`$as_dirname -- "$mf" ||
 14878 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14879 	 X"$mf" : 'X\(//\)[^/]' \| \
 14880 	 X"$mf" : 'X\(//\)$' \| \
 14881 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 14882 $as_echo X"$mf" |
 14883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14884 	    s//\1/
 14887 	  /^X\(\/\/\)[^/].*/{
 14888 	    s//\1/
 14891 	  /^X\(\/\/\)$/{
 14892 	    s//\1/
 14895 	  /^X\(\/\).*/{
 14896 	    s//\1/
 14899 	  s/.*/./; q'`
 14900   else
 14901     continue
 14902   fi
 14903   # Extract the definition of DEPDIR, am__include, and am__quote
 14904   # from the Makefile without running `make'.
 14905   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 14906   test -z "$DEPDIR" && continue
 14907   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 14908   test -z "am__include" && continue
 14909   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 14910   # When using ansi2knr, U may be empty or an underscore; expand it
 14911   U=`sed -n 's/^U = //p' < "$mf"`
 14912   # Find all dependency output files, they are included files with
 14913   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 14914   # simplest approach to changing $(DEPDIR) to its actual value in the
 14915   # expansion.
 14916   for file in `sed -n "
 14917     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 14918        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 14919     # Make sure the directory exists.
 14920     test -f "$dirpart/$file" && continue
 14921     fdir=`$as_dirname -- "$file" ||
 14922 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14923 	 X"$file" : 'X\(//\)[^/]' \| \
 14924 	 X"$file" : 'X\(//\)$' \| \
 14925 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 14926 $as_echo X"$file" |
 14927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14928 	    s//\1/
 14931 	  /^X\(\/\/\)[^/].*/{
 14932 	    s//\1/
 14935 	  /^X\(\/\/\)$/{
 14936 	    s//\1/
 14939 	  /^X\(\/\).*/{
 14940 	    s//\1/
 14943 	  s/.*/./; q'`
 14944     { as_dir=$dirpart/$fdir
 14945   case $as_dir in #(
 14946   -*) as_dir=./$as_dir;;
 14947   esac
 14948   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 14949     as_dirs=
 14950     while :; do
 14951       case $as_dir in #(
 14952       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 14953       *) as_qdir=$as_dir;;
 14954       esac
 14955       as_dirs="'$as_qdir' $as_dirs"
 14956       as_dir=`$as_dirname -- "$as_dir" ||
 14957 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14958 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 14959 	 X"$as_dir" : 'X\(//\)$' \| \
 14960 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 14961 $as_echo X"$as_dir" |
 14962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14963 	    s//\1/
 14966 	  /^X\(\/\/\)[^/].*/{
 14967 	    s//\1/
 14970 	  /^X\(\/\/\)$/{
 14971 	    s//\1/
 14974 	  /^X\(\/\).*/{
 14975 	    s//\1/
 14978 	  s/.*/./; q'`
 14979       test -d "$as_dir" && break
 14980     done
 14981     test -z "$as_dirs" || eval "mkdir $as_dirs"
 14982   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 14983 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 14984    { (exit 1); exit 1; }; }; }
 14985     # echo "creating $dirpart/$file"
 14986     echo '# dummy' > "$dirpart/$file"
 14987   done
 14988 done
 14989  ;;
 14990     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 14991         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 14992       esac ;;
 14994   esac
 14995 done # for ac_tag
 14998 { (exit 0); exit 0; }
 14999 _ACEOF
 15000 chmod +x $CONFIG_STATUS
 15001 ac_clean_files=$ac_clean_files_save
 15003 test $ac_write_fail = 0 ||
 15004   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 15005 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 15006    { (exit 1); exit 1; }; }
 15009 # configure is writing to config.log, and then calls config.status.
 15010 # config.status does its own redirection, appending to config.log.
 15011 # Unfortunately, on DOS this fails, as config.log is still kept open
 15012 # by configure, so config.status won't be able to write to it; its
 15013 # output is simply discarded.  So we exec the FD to /dev/null,
 15014 # effectively closing config.log, so it can be properly (re)opened and
 15015 # appended to by config.status.  When coming back to configure, we
 15016 # need to make the FD available again.
 15017 if test "$no_create" != yes; then
 15018   ac_cs_success=:
 15019   ac_config_status_args=
 15020   test "$silent" = yes &&
 15021     ac_config_status_args="$ac_config_status_args --quiet"
 15022   exec 5>/dev/null
 15023   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 15024   exec 5>>config.log
 15025   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 15026   # would make configure fail if this is the last instruction.
 15027   $ac_cs_success || { (exit 1); exit 1; }
 15028 fi
 15029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 15030   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 15031 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 15032 fi
 15034 { as_dir=test/sh4
 15035   case $as_dir in #(
 15036   -*) as_dir=./$as_dir;;
 15037   esac
 15038   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 15039     as_dirs=
 15040     while :; do
 15041       case $as_dir in #(
 15042       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 15043       *) as_qdir=$as_dir;;
 15044       esac
 15045       as_dirs="'$as_qdir' $as_dirs"
 15046       as_dir=`$as_dirname -- "$as_dir" ||
 15047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 15048 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 15049 	 X"$as_dir" : 'X\(//\)$' \| \
 15050 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 15051 $as_echo X"$as_dir" |
 15052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 15053 	    s//\1/
 15056 	  /^X\(\/\/\)[^/].*/{
 15057 	    s//\1/
 15060 	  /^X\(\/\/\)$/{
 15061 	    s//\1/
 15064 	  /^X\(\/\).*/{
 15065 	    s//\1/
 15068 	  s/.*/./; q'`
 15069       test -d "$as_dir" && break
 15070     done
 15071     test -z "$as_dirs" || eval "mkdir $as_dirs"
 15072   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 15073 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 15074    { (exit 1); exit 1; }; }; }
 15077 echo
 15078 echo "Configuration complete"
 15079 echo
 15081 if test "x$HAVE_GTK" = x; then
 15082   if test "x$HAVE_COCOA" = x; then
 15083      echo "  User interface: none"
 15084   else
 15085      echo "  User interface: Cocoa"
 15086   fi
 15087 else
 15088   echo "  User interface: GTK"
 15089 fi
 15091 if test "x$SH4_TRANSLATOR" = "x"; then
 15092   echo "  SH4 translator: None (emulation core only)"
 15093 else
 15094   echo "  SH4 translator: $SH4_TRANSLATOR"
 15095 fi
 15097 if test "x$VIDEO_DRIVERS" = "x"; then
 15098    echo "  Video drivers: none (no supported GL found)"
 15099 else
 15100    echo "  Video drivers: $VIDEO_DRIVERS"
 15101 fi
 15103 if test "x$AUDIO_DRIVERS" = "x"; then
 15104    echo "  Audio drivers: none (no supported output devices found)"
 15105 else
 15106    echo "  Audio drivers: $AUDIO_DRIVERS"
 15107 fi
 15109 if test "x$INPUT_DRIVERS" = "x"; then
 15110    echo "  Input drivers: none (no supported input devices found)"
 15111 else
 15112    echo "  Input drivers: $INPUT_DRIVERS"
 15113 fi
 15115 if test "x$CDROM_DRIVER" = "x"; then
 15116    echo "  CD-ROM driver: none (no supported cd-rom devices found)"
 15117 else
 15118    echo "  CD-ROM driver:  $CDROM_DRIVER"
 15119 fi
.