Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1024:c67f2d61ab97
prev1015:ad448bedc48a
next1029:7138bbb9537c
author nkeynes
date Sat Jun 13 07:04:24 2009 +0000 (14 years ago)
permissions -rwxr-xr-x
last change Fix cpu_desc_t initializer (not that we really use this one)
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 BUILD_ARMTEST_FALSE
   658 BUILD_ARMTEST_TRUE
   659 BUILD_SYSTEST_FALSE
   660 BUILD_SYSTEST_TRUE
   661 ARMOBJCOPY
   662 ARMLD
   663 ARMCC
   664 SHOBJCOPY
   665 SHLD
   666 SHCC
   667 INPUT_LIRC_FALSE
   668 INPUT_LIRC_TRUE
   669 JOY_LINUX_FALSE
   670 JOY_LINUX_TRUE
   671 CDROM_NONE_FALSE
   672 CDROM_NONE_TRUE
   673 CDROM_OSX_FALSE
   674 CDROM_OSX_TRUE
   675 CDROM_LINUX_FALSE
   676 CDROM_LINUX_TRUE
   677 AUDIO_ALSA_FALSE
   678 AUDIO_ALSA_TRUE
   679 ALSA_LIBS
   680 ALSA_CFLAGS
   681 AUDIO_ESOUND_FALSE
   682 AUDIO_ESOUND_TRUE
   683 ESOUND_LIBS
   684 ESOUND_CFLAGS
   685 AUDIO_PULSE_FALSE
   686 AUDIO_PULSE_TRUE
   687 PULSE_LIBS
   688 PULSE_CFLAGS
   689 AUDIO_SDL_FALSE
   690 AUDIO_SDL_TRUE
   691 SDL_LIBS
   692 SDL_CFLAGS
   693 AUDIO_OSX_FALSE
   694 AUDIO_OSX_TRUE
   695 BUILD_SH4X86_FALSE
   696 BUILD_SH4X86_TRUE
   697 VIDEO_NSGL_FALSE
   698 VIDEO_NSGL_TRUE
   699 VIDEO_GLX_FALSE
   700 VIDEO_GLX_TRUE
   701 VIDEO_OSMESA_FALSE
   702 VIDEO_OSMESA_TRUE
   703 GUI_GTK_FALSE
   704 GUI_GTK_TRUE
   705 GTK_LIBS
   706 GTK_CFLAGS
   707 GLIB_LIBS
   708 GLIB_CFLAGS
   709 LIBPNG_LIBS
   710 LIBPNG_CFLAGS
   711 PKG_CONFIG
   712 LXDREAMCPPFLAGS
   713 BUILD_SHARED_FALSE
   714 BUILD_SHARED_TRUE
   715 LXDREAMLDFLAGS
   716 PLUGINLDFLAGS
   717 PLUGINCFLAGS
   718 SOEXT
   719 GUI_COCOA_FALSE
   720 GUI_COCOA_TRUE
   721 POD2HTML
   722 POD2MAN
   723 am__fastdepOBJC_FALSE
   724 am__fastdepOBJC_TRUE
   725 OBJCDEPMODE
   726 host_os
   727 host_vendor
   728 host_cpu
   729 host
   730 build_os
   731 build_vendor
   732 build_cpu
   733 build
   734 EGREP
   735 GREP
   736 CPP
   737 CCASFLAGS
   738 CCAS
   739 SED
   740 ac_ct_OBJC
   741 OBJCFLAGS
   742 OBJC
   743 am__fastdepCC_FALSE
   744 am__fastdepCC_TRUE
   745 CCDEPMODE
   746 AMDEPBACKSLASH
   747 AMDEP_FALSE
   748 AMDEP_TRUE
   749 am__quote
   750 am__include
   751 DEPDIR
   752 OBJEXT
   753 EXEEXT
   754 ac_ct_CC
   755 CPPFLAGS
   756 LDFLAGS
   757 CFLAGS
   758 CC
   759 MAINT
   760 MAINTAINER_MODE_FALSE
   761 MAINTAINER_MODE_TRUE
   762 am__untar
   763 am__tar
   764 AMTAR
   765 am__leading_dot
   766 SET_MAKE
   767 AWK
   768 mkdir_p
   769 INSTALL_STRIP_PROGRAM
   770 STRIP
   771 install_sh
   772 MAKEINFO
   773 AUTOHEADER
   774 AUTOMAKE
   775 AUTOCONF
   776 ACLOCAL
   777 VERSION
   778 PACKAGE
   779 CYGPATH_W
   780 INSTALL_DATA
   781 INSTALL_SCRIPT
   782 INSTALL_PROGRAM
   783 target_alias
   784 host_alias
   785 build_alias
   786 LIBS
   787 ECHO_T
   788 ECHO_N
   789 ECHO_C
   790 DEFS
   791 mandir
   792 localedir
   793 libdir
   794 psdir
   795 pdfdir
   796 dvidir
   797 htmldir
   798 infodir
   799 docdir
   800 oldincludedir
   801 includedir
   802 localstatedir
   803 sharedstatedir
   804 sysconfdir
   805 datadir
   806 datarootdir
   807 libexecdir
   808 sbindir
   809 bindir
   810 program_transform_name
   811 prefix
   812 exec_prefix
   813 PACKAGE_BUGREPORT
   814 PACKAGE_STRING
   815 PACKAGE_VERSION
   816 PACKAGE_TARNAME
   817 PACKAGE_NAME
   818 PATH_SEPARATOR
   819 SHELL'
   820 ac_subst_files=''
   821 ac_user_opts='
   822 enable_option_checking
   823 enable_maintainer_mode
   824 enable_dependency_tracking
   825 enable_strict_warn
   826 enable_translator
   827 enable_optimized
   828 enable_shared
   829 enable_profiled
   830 enable_trace
   831 enable_watch
   832 enable_sh4stats
   833 with_osmesa
   834 with_gtk
   835 with_esd
   836 with_pulse
   837 with_sdl
   838 '
   839       ac_precious_vars='build_alias
   840 host_alias
   841 target_alias
   842 CC
   843 CFLAGS
   844 LDFLAGS
   845 LIBS
   846 CPPFLAGS
   847 OBJC
   848 OBJCFLAGS
   849 CCAS
   850 CCASFLAGS
   851 CPP
   852 PKG_CONFIG
   853 LIBPNG_CFLAGS
   854 LIBPNG_LIBS
   855 GLIB_CFLAGS
   856 GLIB_LIBS
   857 GTK_CFLAGS
   858 GTK_LIBS
   859 SDL_CFLAGS
   860 SDL_LIBS
   861 PULSE_CFLAGS
   862 PULSE_LIBS
   863 ESOUND_CFLAGS
   864 ESOUND_LIBS
   865 ALSA_CFLAGS
   866 ALSA_LIBS'
   869 # Initialize some variables set by options.
   870 ac_init_help=
   871 ac_init_version=false
   872 ac_unrecognized_opts=
   873 ac_unrecognized_sep=
   874 # The variables have the same names as the options, with
   875 # dashes changed to underlines.
   876 cache_file=/dev/null
   877 exec_prefix=NONE
   878 no_create=
   879 no_recursion=
   880 prefix=NONE
   881 program_prefix=NONE
   882 program_suffix=NONE
   883 program_transform_name=s,x,x,
   884 silent=
   885 site=
   886 srcdir=
   887 verbose=
   888 x_includes=NONE
   889 x_libraries=NONE
   891 # Installation directory options.
   892 # These are left unexpanded so users can "make install exec_prefix=/foo"
   893 # and all the variables that are supposed to be based on exec_prefix
   894 # by default will actually change.
   895 # Use braces instead of parens because sh, perl, etc. also accept them.
   896 # (The list follows the same order as the GNU Coding Standards.)
   897 bindir='${exec_prefix}/bin'
   898 sbindir='${exec_prefix}/sbin'
   899 libexecdir='${exec_prefix}/libexec'
   900 datarootdir='${prefix}/share'
   901 datadir='${datarootdir}'
   902 sysconfdir='${prefix}/etc'
   903 sharedstatedir='${prefix}/com'
   904 localstatedir='${prefix}/var'
   905 includedir='${prefix}/include'
   906 oldincludedir='/usr/include'
   907 docdir='${datarootdir}/doc/${PACKAGE}'
   908 infodir='${datarootdir}/info'
   909 htmldir='${docdir}'
   910 dvidir='${docdir}'
   911 pdfdir='${docdir}'
   912 psdir='${docdir}'
   913 libdir='${exec_prefix}/lib'
   914 localedir='${datarootdir}/locale'
   915 mandir='${datarootdir}/man'
   917 ac_prev=
   918 ac_dashdash=
   919 for ac_option
   920 do
   921   # If the previous option needs an argument, assign it.
   922   if test -n "$ac_prev"; then
   923     eval $ac_prev=\$ac_option
   924     ac_prev=
   925     continue
   926   fi
   928   case $ac_option in
   929   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   930   *)	ac_optarg=yes ;;
   931   esac
   933   # Accept the important Cygnus configure options, so we can diagnose typos.
   935   case $ac_dashdash$ac_option in
   936   --)
   937     ac_dashdash=yes ;;
   939   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   940     ac_prev=bindir ;;
   941   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   942     bindir=$ac_optarg ;;
   944   -build | --build | --buil | --bui | --bu)
   945     ac_prev=build_alias ;;
   946   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   947     build_alias=$ac_optarg ;;
   949   -cache-file | --cache-file | --cache-fil | --cache-fi \
   950   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   951     ac_prev=cache_file ;;
   952   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   953   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   954     cache_file=$ac_optarg ;;
   956   --config-cache | -C)
   957     cache_file=config.cache ;;
   959   -datadir | --datadir | --datadi | --datad)
   960     ac_prev=datadir ;;
   961   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   962     datadir=$ac_optarg ;;
   964   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   965   | --dataroo | --dataro | --datar)
   966     ac_prev=datarootdir ;;
   967   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   968   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   969     datarootdir=$ac_optarg ;;
   971   -disable-* | --disable-*)
   972     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   973     # Reject names that are not valid shell variable names.
   974     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   975       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   976    { (exit 1); exit 1; }; }
   977     ac_useropt_orig=$ac_useropt
   978     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   979     case $ac_user_opts in
   980       *"
   981 "enable_$ac_useropt"
   982 "*) ;;
   983       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   984 	 ac_unrecognized_sep=', ';;
   985     esac
   986     eval enable_$ac_useropt=no ;;
   988   -docdir | --docdir | --docdi | --doc | --do)
   989     ac_prev=docdir ;;
   990   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   991     docdir=$ac_optarg ;;
   993   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   994     ac_prev=dvidir ;;
   995   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   996     dvidir=$ac_optarg ;;
   998   -enable-* | --enable-*)
   999     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1000     # Reject names that are not valid shell variable names.
  1001     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1002       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1003    { (exit 1); exit 1; }; }
  1004     ac_useropt_orig=$ac_useropt
  1005     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1006     case $ac_user_opts in
  1007       *"
  1008 "enable_$ac_useropt"
  1009 "*) ;;
  1010       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1011 	 ac_unrecognized_sep=', ';;
  1012     esac
  1013     eval enable_$ac_useropt=\$ac_optarg ;;
  1015   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1016   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1017   | --exec | --exe | --ex)
  1018     ac_prev=exec_prefix ;;
  1019   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1020   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1021   | --exec=* | --exe=* | --ex=*)
  1022     exec_prefix=$ac_optarg ;;
  1024   -gas | --gas | --ga | --g)
  1025     # Obsolete; use --with-gas.
  1026     with_gas=yes ;;
  1028   -help | --help | --hel | --he | -h)
  1029     ac_init_help=long ;;
  1030   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1031     ac_init_help=recursive ;;
  1032   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1033     ac_init_help=short ;;
  1035   -host | --host | --hos | --ho)
  1036     ac_prev=host_alias ;;
  1037   -host=* | --host=* | --hos=* | --ho=*)
  1038     host_alias=$ac_optarg ;;
  1040   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1041     ac_prev=htmldir ;;
  1042   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1043   | --ht=*)
  1044     htmldir=$ac_optarg ;;
  1046   -includedir | --includedir | --includedi | --included | --include \
  1047   | --includ | --inclu | --incl | --inc)
  1048     ac_prev=includedir ;;
  1049   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1050   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1051     includedir=$ac_optarg ;;
  1053   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1054     ac_prev=infodir ;;
  1055   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1056     infodir=$ac_optarg ;;
  1058   -libdir | --libdir | --libdi | --libd)
  1059     ac_prev=libdir ;;
  1060   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1061     libdir=$ac_optarg ;;
  1063   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1064   | --libexe | --libex | --libe)
  1065     ac_prev=libexecdir ;;
  1066   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1067   | --libexe=* | --libex=* | --libe=*)
  1068     libexecdir=$ac_optarg ;;
  1070   -localedir | --localedir | --localedi | --localed | --locale)
  1071     ac_prev=localedir ;;
  1072   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1073     localedir=$ac_optarg ;;
  1075   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1076   | --localstate | --localstat | --localsta | --localst | --locals)
  1077     ac_prev=localstatedir ;;
  1078   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1079   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1080     localstatedir=$ac_optarg ;;
  1082   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1083     ac_prev=mandir ;;
  1084   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1085     mandir=$ac_optarg ;;
  1087   -nfp | --nfp | --nf)
  1088     # Obsolete; use --without-fp.
  1089     with_fp=no ;;
  1091   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1092   | --no-cr | --no-c | -n)
  1093     no_create=yes ;;
  1095   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1096   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1097     no_recursion=yes ;;
  1099   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1100   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1101   | --oldin | --oldi | --old | --ol | --o)
  1102     ac_prev=oldincludedir ;;
  1103   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1104   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1105   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1106     oldincludedir=$ac_optarg ;;
  1108   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1109     ac_prev=prefix ;;
  1110   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1111     prefix=$ac_optarg ;;
  1113   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1114   | --program-pre | --program-pr | --program-p)
  1115     ac_prev=program_prefix ;;
  1116   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1117   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1118     program_prefix=$ac_optarg ;;
  1120   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1121   | --program-suf | --program-su | --program-s)
  1122     ac_prev=program_suffix ;;
  1123   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1124   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1125     program_suffix=$ac_optarg ;;
  1127   -program-transform-name | --program-transform-name \
  1128   | --program-transform-nam | --program-transform-na \
  1129   | --program-transform-n | --program-transform- \
  1130   | --program-transform | --program-transfor \
  1131   | --program-transfo | --program-transf \
  1132   | --program-trans | --program-tran \
  1133   | --progr-tra | --program-tr | --program-t)
  1134     ac_prev=program_transform_name ;;
  1135   -program-transform-name=* | --program-transform-name=* \
  1136   | --program-transform-nam=* | --program-transform-na=* \
  1137   | --program-transform-n=* | --program-transform-=* \
  1138   | --program-transform=* | --program-transfor=* \
  1139   | --program-transfo=* | --program-transf=* \
  1140   | --program-trans=* | --program-tran=* \
  1141   | --progr-tra=* | --program-tr=* | --program-t=*)
  1142     program_transform_name=$ac_optarg ;;
  1144   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1145     ac_prev=pdfdir ;;
  1146   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1147     pdfdir=$ac_optarg ;;
  1149   -psdir | --psdir | --psdi | --psd | --ps)
  1150     ac_prev=psdir ;;
  1151   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1152     psdir=$ac_optarg ;;
  1154   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1155   | -silent | --silent | --silen | --sile | --sil)
  1156     silent=yes ;;
  1158   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1159     ac_prev=sbindir ;;
  1160   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1161   | --sbi=* | --sb=*)
  1162     sbindir=$ac_optarg ;;
  1164   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1165   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1166   | --sharedst | --shareds | --shared | --share | --shar \
  1167   | --sha | --sh)
  1168     ac_prev=sharedstatedir ;;
  1169   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1170   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1171   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1172   | --sha=* | --sh=*)
  1173     sharedstatedir=$ac_optarg ;;
  1175   -site | --site | --sit)
  1176     ac_prev=site ;;
  1177   -site=* | --site=* | --sit=*)
  1178     site=$ac_optarg ;;
  1180   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1181     ac_prev=srcdir ;;
  1182   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1183     srcdir=$ac_optarg ;;
  1185   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1186   | --syscon | --sysco | --sysc | --sys | --sy)
  1187     ac_prev=sysconfdir ;;
  1188   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1189   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1190     sysconfdir=$ac_optarg ;;
  1192   -target | --target | --targe | --targ | --tar | --ta | --t)
  1193     ac_prev=target_alias ;;
  1194   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1195     target_alias=$ac_optarg ;;
  1197   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1198     verbose=yes ;;
  1200   -version | --version | --versio | --versi | --vers | -V)
  1201     ac_init_version=: ;;
  1203   -with-* | --with-*)
  1204     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1205     # Reject names that are not valid shell variable names.
  1206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1207       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1208    { (exit 1); exit 1; }; }
  1209     ac_useropt_orig=$ac_useropt
  1210     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1211     case $ac_user_opts in
  1212       *"
  1213 "with_$ac_useropt"
  1214 "*) ;;
  1215       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1216 	 ac_unrecognized_sep=', ';;
  1217     esac
  1218     eval with_$ac_useropt=\$ac_optarg ;;
  1220   -without-* | --without-*)
  1221     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1222     # Reject names that are not valid shell variable names.
  1223     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1224       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1225    { (exit 1); exit 1; }; }
  1226     ac_useropt_orig=$ac_useropt
  1227     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1228     case $ac_user_opts in
  1229       *"
  1230 "with_$ac_useropt"
  1231 "*) ;;
  1232       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1233 	 ac_unrecognized_sep=', ';;
  1234     esac
  1235     eval with_$ac_useropt=no ;;
  1237   --x)
  1238     # Obsolete; use --with-x.
  1239     with_x=yes ;;
  1241   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1242   | --x-incl | --x-inc | --x-in | --x-i)
  1243     ac_prev=x_includes ;;
  1244   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1245   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1246     x_includes=$ac_optarg ;;
  1248   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1249   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1250     ac_prev=x_libraries ;;
  1251   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1252   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1253     x_libraries=$ac_optarg ;;
  1255   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1256 Try \`$0 --help' for more information." >&2
  1257    { (exit 1); exit 1; }; }
  1258     ;;
  1260   *=*)
  1261     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1262     # Reject names that are not valid shell variable names.
  1263     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1264       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1265    { (exit 1); exit 1; }; }
  1266     eval $ac_envvar=\$ac_optarg
  1267     export $ac_envvar ;;
  1269   *)
  1270     # FIXME: should be removed in autoconf 3.0.
  1271     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1272     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1273       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1274     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1275     ;;
  1277   esac
  1278 done
  1280 if test -n "$ac_prev"; then
  1281   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1282   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1283    { (exit 1); exit 1; }; }
  1284 fi
  1286 if test -n "$ac_unrecognized_opts"; then
  1287   case $enable_option_checking in
  1288     no) ;;
  1289     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1290    { (exit 1); exit 1; }; } ;;
  1291     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1292   esac
  1293 fi
  1295 # Check all directory arguments for consistency.
  1296 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1297 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1298 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1299 		libdir localedir mandir
  1300 do
  1301   eval ac_val=\$$ac_var
  1302   # Remove trailing slashes.
  1303   case $ac_val in
  1304     */ )
  1305       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1306       eval $ac_var=\$ac_val;;
  1307   esac
  1308   # Be sure to have absolute directory names.
  1309   case $ac_val in
  1310     [\\/$]* | ?:[\\/]* )  continue;;
  1311     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1312   esac
  1313   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1314    { (exit 1); exit 1; }; }
  1315 done
  1317 # There might be people who depend on the old broken behavior: `$host'
  1318 # used to hold the argument of --host etc.
  1319 # FIXME: To remove some day.
  1320 build=$build_alias
  1321 host=$host_alias
  1322 target=$target_alias
  1324 # FIXME: To remove some day.
  1325 if test "x$host_alias" != x; then
  1326   if test "x$build_alias" = x; then
  1327     cross_compiling=maybe
  1328     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1329     If a cross compiler is detected then cross compile mode will be used." >&2
  1330   elif test "x$build_alias" != "x$host_alias"; then
  1331     cross_compiling=yes
  1332   fi
  1333 fi
  1335 ac_tool_prefix=
  1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1338 test "$silent" = yes && exec 6>/dev/null
  1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1342 ac_ls_di=`ls -di .` &&
  1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1344   { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1345    { (exit 1); exit 1; }; }
  1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1347   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1348    { (exit 1); exit 1; }; }
  1351 # Find the source files, if location was not specified.
  1352 if test -z "$srcdir"; then
  1353   ac_srcdir_defaulted=yes
  1354   # Try the directory containing this script, then the parent directory.
  1355   ac_confdir=`$as_dirname -- "$as_myself" ||
  1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1357 	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1358 	 X"$as_myself" : 'X\(//\)$' \| \
  1359 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1360 $as_echo X"$as_myself" |
  1361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1362 	    s//\1/
  1365 	  /^X\(\/\/\)[^/].*/{
  1366 	    s//\1/
  1369 	  /^X\(\/\/\)$/{
  1370 	    s//\1/
  1373 	  /^X\(\/\).*/{
  1374 	    s//\1/
  1377 	  s/.*/./; q'`
  1378   srcdir=$ac_confdir
  1379   if test ! -r "$srcdir/$ac_unique_file"; then
  1380     srcdir=..
  1381   fi
  1382 else
  1383   ac_srcdir_defaulted=no
  1384 fi
  1385 if test ! -r "$srcdir/$ac_unique_file"; then
  1386   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1387   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1388    { (exit 1); exit 1; }; }
  1389 fi
  1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1391 ac_abs_confdir=`(
  1392 	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1393    { (exit 1); exit 1; }; }
  1394 	pwd)`
  1395 # When building in place, set srcdir=.
  1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1397   srcdir=.
  1398 fi
  1399 # Remove unnecessary trailing slashes from srcdir.
  1400 # Double slashes in file names in object file debugging info
  1401 # mess up M-x gdb in Emacs.
  1402 case $srcdir in
  1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1404 esac
  1405 for ac_var in $ac_precious_vars; do
  1406   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1407   eval ac_env_${ac_var}_value=\$${ac_var}
  1408   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1409   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1410 done
  1413 # Report the --help message.
  1415 if test "$ac_init_help" = "long"; then
  1416   # Omit some internal or obsolete options to make the list less imposing.
  1417   # This message is too long to be a string in the A/UX 3.1 sh.
  1418   cat <<_ACEOF
  1419 \`configure' configures this package to adapt to many kinds of systems.
  1421 Usage: $0 [OPTION]... [VAR=VALUE]...
  1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1424 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1426 Defaults for the options are specified in brackets.
  1428 Configuration:
  1429   -h, --help              display this help and exit
  1430       --help=short        display options specific to this package
  1431       --help=recursive    display the short help of all the included packages
  1432   -V, --version           display version information and exit
  1433   -q, --quiet, --silent   do not print \`checking...' messages
  1434       --cache-file=FILE   cache test results in FILE [disabled]
  1435   -C, --config-cache      alias for \`--cache-file=config.cache'
  1436   -n, --no-create         do not create output files
  1437       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1439 Installation directories:
  1440   --prefix=PREFIX         install architecture-independent files in PREFIX
  1441                           [$ac_default_prefix]
  1442   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1443                           [PREFIX]
  1445 By default, \`make install' will install all the files in
  1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1448 for instance \`--prefix=\$HOME'.
  1450 For better control, use the options below.
  1452 Fine tuning of the installation directories:
  1453   --bindir=DIR            user executables [EPREFIX/bin]
  1454   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1455   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1456   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1457   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1458   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1459   --libdir=DIR            object code libraries [EPREFIX/lib]
  1460   --includedir=DIR        C header files [PREFIX/include]
  1461   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1462   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1463   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1464   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1465   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1466   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1467   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1468   --htmldir=DIR           html documentation [DOCDIR]
  1469   --dvidir=DIR            dvi documentation [DOCDIR]
  1470   --pdfdir=DIR            pdf documentation [DOCDIR]
  1471   --psdir=DIR             ps documentation [DOCDIR]
  1472 _ACEOF
  1474   cat <<\_ACEOF
  1476 Program names:
  1477   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1478   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1479   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1481 System types:
  1482   --build=BUILD     configure for building on BUILD [guessed]
  1483   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1484 _ACEOF
  1485 fi
  1487 if test -n "$ac_init_help"; then
  1489   cat <<\_ACEOF
  1491 Optional Features:
  1492   --disable-option-checking  ignore unrecognized --enable/--with options
  1493   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1494   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1495   --enable-maintainer-mode  enable make rules and dependencies not useful
  1496 			  (and sometimes confusing) to the casual installer
  1497   --disable-dependency-tracking  speeds up one-time build
  1498   --enable-dependency-tracking   do not reject slow dependency extractors
  1499   --enable-strict-warn    Enable strict compilation warnings
  1500   --disable-translator    Disable the SH4 translator (Enabled by default)
  1501   --disable-optimized     Disable compile-time optimizations (Enabled by
  1502                           default)
  1503   --enable-shared         Build drivers as shared libraries (Enabled if
  1504                           available)
  1505   --enable-profiled       Enable profiling build
  1506   --enable-trace          Enable generation of IO traces (warning: hurts
  1507                           performance)
  1508   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1509                           performance)
  1510   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1512 Optional Packages:
  1513   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1514   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1515   --with-osmesa           Build with the osmesa GL library (software
  1516                           rendering)
  1517   --with-gtk              Build with the GTK UI. Default on X11 systems
  1518   --with-esd              Build with support for the ESounD audio system
  1519   --with-pulse            Build with support for the PulseAudio audio system
  1520   --with-sdl              Build with support for SDL audio
  1522 Some influential environment variables:
  1523   CC          C compiler command
  1524   CFLAGS      C compiler flags
  1525   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1526               nonstandard directory <lib dir>
  1527   LIBS        libraries to pass to the linker, e.g. -l<library>
  1528   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1529               you have headers in a nonstandard directory <include dir>
  1530   OBJC        Objective C compiler command
  1531   OBJCFLAGS   Objective C compiler flags
  1532   CCAS        assembler compiler command (defaults to CC)
  1533   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1534   CPP         C preprocessor
  1535   PKG_CONFIG  path to pkg-config utility
  1536   LIBPNG_CFLAGS
  1537               C compiler flags for LIBPNG, overriding pkg-config
  1538   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1539   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1540   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1541   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1542   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1543   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
  1544   SDL_LIBS    linker flags for SDL, overriding pkg-config
  1545   PULSE_CFLAGS
  1546               C compiler flags for PULSE, overriding pkg-config
  1547   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1548   ESOUND_CFLAGS
  1549               C compiler flags for ESOUND, overriding pkg-config
  1550   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1551   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1552   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1554 Use these variables to override the choices made by `configure' or to help
  1555 it to find libraries and programs with nonstandard names/locations.
  1557 _ACEOF
  1558 ac_status=$?
  1559 fi
  1561 if test "$ac_init_help" = "recursive"; then
  1562   # If there are subdirs, report their specific --help.
  1563   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1564     test -d "$ac_dir" ||
  1565       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1566       continue
  1567     ac_builddir=.
  1569 case "$ac_dir" in
  1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1571 *)
  1572   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1573   # A ".." for each directory in $ac_dir_suffix.
  1574   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1575   case $ac_top_builddir_sub in
  1576   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1577   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1578   esac ;;
  1579 esac
  1580 ac_abs_top_builddir=$ac_pwd
  1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1582 # for backward compatibility:
  1583 ac_top_builddir=$ac_top_build_prefix
  1585 case $srcdir in
  1586   .)  # We are building in place.
  1587     ac_srcdir=.
  1588     ac_top_srcdir=$ac_top_builddir_sub
  1589     ac_abs_top_srcdir=$ac_pwd ;;
  1590   [\\/]* | ?:[\\/]* )  # Absolute name.
  1591     ac_srcdir=$srcdir$ac_dir_suffix;
  1592     ac_top_srcdir=$srcdir
  1593     ac_abs_top_srcdir=$srcdir ;;
  1594   *) # Relative name.
  1595     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1596     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1597     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1598 esac
  1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1601     cd "$ac_dir" || { ac_status=$?; continue; }
  1602     # Check for guested configure.
  1603     if test -f "$ac_srcdir/configure.gnu"; then
  1604       echo &&
  1605       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1606     elif test -f "$ac_srcdir/configure"; then
  1607       echo &&
  1608       $SHELL "$ac_srcdir/configure" --help=recursive
  1609     else
  1610       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1611     fi || ac_status=$?
  1612     cd "$ac_pwd" || { ac_status=$?; break; }
  1613   done
  1614 fi
  1616 test -n "$ac_init_help" && exit $ac_status
  1617 if $ac_init_version; then
  1618   cat <<\_ACEOF
  1619 configure
  1620 generated by GNU Autoconf 2.63
  1622 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1623 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1624 This configure script is free software; the Free Software Foundation
  1625 gives unlimited permission to copy, distribute and modify it.
  1626 _ACEOF
  1627   exit
  1628 fi
  1629 cat >config.log <<_ACEOF
  1630 This file contains any messages produced by compilers while
  1631 running configure, to aid debugging if configure makes a mistake.
  1633 It was created by $as_me, which was
  1634 generated by GNU Autoconf 2.63.  Invocation command line was
  1636   $ $0 $@
  1638 _ACEOF
  1639 exec 5>>config.log
  1641 cat <<_ASUNAME
  1642 ## --------- ##
  1643 ## Platform. ##
  1644 ## --------- ##
  1646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1647 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1648 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1649 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1650 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1653 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1655 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1656 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1658 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1659 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1660 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1661 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1663 _ASUNAME
  1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1666 for as_dir in $PATH
  1667 do
  1668   IFS=$as_save_IFS
  1669   test -z "$as_dir" && as_dir=.
  1670   $as_echo "PATH: $as_dir"
  1671 done
  1672 IFS=$as_save_IFS
  1674 } >&5
  1676 cat >&5 <<_ACEOF
  1679 ## ----------- ##
  1680 ## Core tests. ##
  1681 ## ----------- ##
  1683 _ACEOF
  1686 # Keep a trace of the command line.
  1687 # Strip out --no-create and --no-recursion so they do not pile up.
  1688 # Strip out --silent because we don't want to record it for future runs.
  1689 # Also quote any args containing shell meta-characters.
  1690 # Make two passes to allow for proper duplicate-argument suppression.
  1691 ac_configure_args=
  1692 ac_configure_args0=
  1693 ac_configure_args1=
  1694 ac_must_keep_next=false
  1695 for ac_pass in 1 2
  1696 do
  1697   for ac_arg
  1698   do
  1699     case $ac_arg in
  1700     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1701     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1702     | -silent | --silent | --silen | --sile | --sil)
  1703       continue ;;
  1704     *\'*)
  1705       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1706     esac
  1707     case $ac_pass in
  1708     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1709     2)
  1710       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1711       if test $ac_must_keep_next = true; then
  1712 	ac_must_keep_next=false # Got value, back to normal.
  1713       else
  1714 	case $ac_arg in
  1715 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1716 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1717 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1718 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1719 	    case "$ac_configure_args0 " in
  1720 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1721 	    esac
  1722 	    ;;
  1723 	  -* ) ac_must_keep_next=true ;;
  1724 	esac
  1725       fi
  1726       ac_configure_args="$ac_configure_args '$ac_arg'"
  1727       ;;
  1728     esac
  1729   done
  1730 done
  1731 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1732 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1734 # When interrupted or exit'd, cleanup temporary files, and complete
  1735 # config.log.  We remove comments because anyway the quotes in there
  1736 # would cause problems or look ugly.
  1737 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1739 trap 'exit_status=$?
  1740   # Save into config.log some information that might help in debugging.
  1742     echo
  1744     cat <<\_ASBOX
  1745 ## ---------------- ##
  1746 ## Cache variables. ##
  1747 ## ---------------- ##
  1748 _ASBOX
  1749     echo
  1750     # The following way of writing the cache mishandles newlines in values,
  1752   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1753     eval ac_val=\$$ac_var
  1754     case $ac_val in #(
  1755     *${as_nl}*)
  1756       case $ac_var in #(
  1757       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1759       esac
  1760       case $ac_var in #(
  1761       _ | IFS | as_nl) ;; #(
  1762       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1763       *) $as_unset $ac_var ;;
  1764       esac ;;
  1765     esac
  1766   done
  1767   (set) 2>&1 |
  1768     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1769     *${as_nl}ac_space=\ *)
  1770       sed -n \
  1771 	"s/'\''/'\''\\\\'\'''\''/g;
  1772 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1773       ;; #(
  1774     *)
  1775       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1776       ;;
  1777     esac |
  1778     sort
  1780     echo
  1782     cat <<\_ASBOX
  1783 ## ----------------- ##
  1784 ## Output variables. ##
  1785 ## ----------------- ##
  1786 _ASBOX
  1787     echo
  1788     for ac_var in $ac_subst_vars
  1789     do
  1790       eval ac_val=\$$ac_var
  1791       case $ac_val in
  1792       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1793       esac
  1794       $as_echo "$ac_var='\''$ac_val'\''"
  1795     done | sort
  1796     echo
  1798     if test -n "$ac_subst_files"; then
  1799       cat <<\_ASBOX
  1800 ## ------------------- ##
  1801 ## File substitutions. ##
  1802 ## ------------------- ##
  1803 _ASBOX
  1804       echo
  1805       for ac_var in $ac_subst_files
  1806       do
  1807 	eval ac_val=\$$ac_var
  1808 	case $ac_val in
  1809 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1810 	esac
  1811 	$as_echo "$ac_var='\''$ac_val'\''"
  1812       done | sort
  1813       echo
  1814     fi
  1816     if test -s confdefs.h; then
  1817       cat <<\_ASBOX
  1818 ## ----------- ##
  1819 ## confdefs.h. ##
  1820 ## ----------- ##
  1821 _ASBOX
  1822       echo
  1823       cat confdefs.h
  1824       echo
  1825     fi
  1826     test "$ac_signal" != 0 &&
  1827       $as_echo "$as_me: caught signal $ac_signal"
  1828     $as_echo "$as_me: exit $exit_status"
  1829   } >&5
  1830   rm -f core *.core core.conftest.* &&
  1831     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1832     exit $exit_status
  1833 ' 0
  1834 for ac_signal in 1 2 13 15; do
  1835   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1836 done
  1837 ac_signal=0
  1839 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1840 rm -f -r conftest* confdefs.h
  1842 # Predefined preprocessor variables.
  1844 cat >>confdefs.h <<_ACEOF
  1845 #define PACKAGE_NAME "$PACKAGE_NAME"
  1846 _ACEOF
  1849 cat >>confdefs.h <<_ACEOF
  1850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1851 _ACEOF
  1854 cat >>confdefs.h <<_ACEOF
  1855 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1856 _ACEOF
  1859 cat >>confdefs.h <<_ACEOF
  1860 #define PACKAGE_STRING "$PACKAGE_STRING"
  1861 _ACEOF
  1864 cat >>confdefs.h <<_ACEOF
  1865 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1866 _ACEOF
  1869 # Let the site file select an alternate cache file if it wants to.
  1870 # Prefer an explicitly selected file to automatically selected ones.
  1871 ac_site_file1=NONE
  1872 ac_site_file2=NONE
  1873 if test -n "$CONFIG_SITE"; then
  1874   ac_site_file1=$CONFIG_SITE
  1875 elif test "x$prefix" != xNONE; then
  1876   ac_site_file1=$prefix/share/config.site
  1877   ac_site_file2=$prefix/etc/config.site
  1878 else
  1879   ac_site_file1=$ac_default_prefix/share/config.site
  1880   ac_site_file2=$ac_default_prefix/etc/config.site
  1881 fi
  1882 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1883 do
  1884   test "x$ac_site_file" = xNONE && continue
  1885   if test -r "$ac_site_file"; then
  1886     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1887 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1888     sed 's/^/| /' "$ac_site_file" >&5
  1889     . "$ac_site_file"
  1890   fi
  1891 done
  1893 if test -r "$cache_file"; then
  1894   # Some versions of bash will fail to source /dev/null (special
  1895   # files actually), so we avoid doing that.
  1896   if test -f "$cache_file"; then
  1897     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1898 $as_echo "$as_me: loading cache $cache_file" >&6;}
  1899     case $cache_file in
  1900       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1901       *)                      . "./$cache_file";;
  1902     esac
  1903   fi
  1904 else
  1905   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1906 $as_echo "$as_me: creating cache $cache_file" >&6;}
  1907   >$cache_file
  1908 fi
  1910 # Check that the precious variables saved in the cache have kept the same
  1911 # value.
  1912 ac_cache_corrupted=false
  1913 for ac_var in $ac_precious_vars; do
  1914   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1915   eval ac_new_set=\$ac_env_${ac_var}_set
  1916   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1917   eval ac_new_val=\$ac_env_${ac_var}_value
  1918   case $ac_old_set,$ac_new_set in
  1919     set,)
  1920       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1921 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1922       ac_cache_corrupted=: ;;
  1923     ,set)
  1924       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1925 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1926       ac_cache_corrupted=: ;;
  1927     ,);;
  1928     *)
  1929       if test "x$ac_old_val" != "x$ac_new_val"; then
  1930 	# differences in whitespace do not lead to failure.
  1931 	ac_old_val_w=`echo x $ac_old_val`
  1932 	ac_new_val_w=`echo x $ac_new_val`
  1933 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1934 	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1935 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1936 	  ac_cache_corrupted=:
  1937 	else
  1938 	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1939 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1940 	  eval $ac_var=\$ac_old_val
  1941 	fi
  1942 	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
  1943 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  1944 	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
  1945 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  1946       fi;;
  1947   esac
  1948   # Pass precious variables to config.status.
  1949   if test "$ac_new_set" = set; then
  1950     case $ac_new_val in
  1951     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1952     *) ac_arg=$ac_var=$ac_new_val ;;
  1953     esac
  1954     case " $ac_configure_args " in
  1955       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1956       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1957     esac
  1958   fi
  1959 done
  1960 if $ac_cache_corrupted; then
  1961   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1963   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1964 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1965   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1966 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1967    { (exit 1); exit 1; }; }
  1968 fi
  1986 ac_ext=c
  1987 ac_cpp='$CPP $CPPFLAGS'
  1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1993 am__api_version="1.9"
  1994 ac_aux_dir=
  1995 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1996   if test -f "$ac_dir/install-sh"; then
  1997     ac_aux_dir=$ac_dir
  1998     ac_install_sh="$ac_aux_dir/install-sh -c"
  1999     break
  2000   elif test -f "$ac_dir/install.sh"; then
  2001     ac_aux_dir=$ac_dir
  2002     ac_install_sh="$ac_aux_dir/install.sh -c"
  2003     break
  2004   elif test -f "$ac_dir/shtool"; then
  2005     ac_aux_dir=$ac_dir
  2006     ac_install_sh="$ac_aux_dir/shtool install -c"
  2007     break
  2008   fi
  2009 done
  2010 if test -z "$ac_aux_dir"; then
  2011   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2012 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2013    { (exit 1); exit 1; }; }
  2014 fi
  2016 # These three variables are undocumented and unsupported,
  2017 # and are intended to be withdrawn in a future Autoconf release.
  2018 # They can cause serious problems if a builder's source tree is in a directory
  2019 # whose full name contains unusual characters.
  2020 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2021 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2022 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2025 # Find a good install program.  We prefer a C program (faster),
  2026 # so one script is as good as another.  But avoid the broken or
  2027 # incompatible versions:
  2028 # SysV /etc/install, /usr/sbin/install
  2029 # SunOS /usr/etc/install
  2030 # IRIX /sbin/install
  2031 # AIX /bin/install
  2032 # AmigaOS /C/install, which installs bootblocks on floppy discs
  2033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2036 # OS/2's system install, which has a completely different semantic
  2037 # ./install, which can be erroneously created by make from ./install.sh.
  2038 # Reject install programs that cannot install multiple files.
  2039 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2040 $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2041 if test -z "$INSTALL"; then
  2042 if test "${ac_cv_path_install+set}" = set; then
  2043   $as_echo_n "(cached) " >&6
  2044 else
  2045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2046 for as_dir in $PATH
  2047 do
  2048   IFS=$as_save_IFS
  2049   test -z "$as_dir" && as_dir=.
  2050   # Account for people who put trailing slashes in PATH elements.
  2051 case $as_dir/ in
  2052   ./ | .// | /cC/* | \
  2053   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2054   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2055   /usr/ucb/* ) ;;
  2056   *)
  2057     # OSF1 and SCO ODT 3.0 have their own names for install.
  2058     # Don't use installbsd from OSF since it installs stuff as root
  2059     # by default.
  2060     for ac_prog in ginstall scoinst install; do
  2061       for ac_exec_ext in '' $ac_executable_extensions; do
  2062 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2063 	  if test $ac_prog = install &&
  2064 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2065 	    # AIX install.  It has an incompatible calling convention.
  2067 	  elif test $ac_prog = install &&
  2068 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2069 	    # program-specific install script used by HP pwplus--don't use.
  2071 	  else
  2072 	    rm -rf conftest.one conftest.two conftest.dir
  2073 	    echo one > conftest.one
  2074 	    echo two > conftest.two
  2075 	    mkdir conftest.dir
  2076 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2077 	      test -s conftest.one && test -s conftest.two &&
  2078 	      test -s conftest.dir/conftest.one &&
  2079 	      test -s conftest.dir/conftest.two
  2080 	    then
  2081 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2082 	      break 3
  2083 	    fi
  2084 	  fi
  2085 	fi
  2086       done
  2087     done
  2088     ;;
  2089 esac
  2091 done
  2092 IFS=$as_save_IFS
  2094 rm -rf conftest.one conftest.two conftest.dir
  2096 fi
  2097   if test "${ac_cv_path_install+set}" = set; then
  2098     INSTALL=$ac_cv_path_install
  2099   else
  2100     # As a last resort, use the slow shell script.  Don't cache a
  2101     # value for INSTALL within a source directory, because that will
  2102     # break other packages using the cache if that directory is
  2103     # removed, or if the value is a relative name.
  2104     INSTALL=$ac_install_sh
  2105   fi
  2106 fi
  2107 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2108 $as_echo "$INSTALL" >&6; }
  2110 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2111 # It thinks the first close brace ends the variable substitution.
  2112 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2114 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2116 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2118 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2119 $as_echo_n "checking whether build environment is sane... " >&6; }
  2120 # Just in case
  2121 sleep 1
  2122 echo timestamp > conftest.file
  2123 # Do `set' in a subshell so we don't clobber the current shell's
  2124 # arguments.  Must try -L first in case configure is actually a
  2125 # symlink; some systems play weird games with the mod time of symlinks
  2126 # (eg FreeBSD returns the mod time of the symlink's containing
  2127 # directory).
  2128 if (
  2129    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2130    if test "$*" = "X"; then
  2131       # -L didn't work.
  2132       set X `ls -t $srcdir/configure conftest.file`
  2133    fi
  2134    rm -f conftest.file
  2135    if test "$*" != "X $srcdir/configure conftest.file" \
  2136       && test "$*" != "X conftest.file $srcdir/configure"; then
  2138       # If neither matched, then we have a broken ls.  This can happen
  2139       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2140       # broken ls alias from the environment.  This has actually
  2141       # happened.  Such a system could not be considered "sane".
  2142       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2143 alias in your environment" >&5
  2144 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2145 alias in your environment" >&2;}
  2146    { (exit 1); exit 1; }; }
  2147    fi
  2149    test "$2" = conftest.file
  2151 then
  2152    # Ok.
  2154 else
  2155    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2156 Check your system clock" >&5
  2157 $as_echo "$as_me: error: newly created file is older than distributed files!
  2158 Check your system clock" >&2;}
  2159    { (exit 1); exit 1; }; }
  2160 fi
  2161 { $as_echo "$as_me:$LINENO: result: yes" >&5
  2162 $as_echo "yes" >&6; }
  2163 test "$program_prefix" != NONE &&
  2164   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2165 # Use a double $ so make ignores it.
  2166 test "$program_suffix" != NONE &&
  2167   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2168 # Double any \ or $.
  2169 # By default was `s,x,x', remove it if useless.
  2170 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2171 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2173 # expand $ac_aux_dir to an absolute path
  2174 am_aux_dir=`cd $ac_aux_dir && pwd`
  2176 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2177 # Use eval to expand $SHELL
  2178 if eval "$MISSING --run true"; then
  2179   am_missing_run="$MISSING --run "
  2180 else
  2181   am_missing_run=
  2182   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2183 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2184 fi
  2186 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2187   # We used to keeping the `.' as first argument, in order to
  2188   # allow $(mkdir_p) to be used without argument.  As in
  2189   #   $(mkdir_p) $(somedir)
  2190   # where $(somedir) is conditionally defined.  However this is wrong
  2191   # for two reasons:
  2192   #  1. if the package is installed by a user who cannot write `.'
  2193   #     make install will fail,
  2194   #  2. the above comment should most certainly read
  2195   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2196   #     so it does not work when $(somedir) is undefined and
  2197   #     $(DESTDIR) is not.
  2198   #  To support the latter case, we have to write
  2199   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2200   #  so the `.' trick is pointless.
  2201   mkdir_p='mkdir -p --'
  2202 else
  2203   # On NextStep and OpenStep, the `mkdir' command does not
  2204   # recognize any option.  It will interpret all options as
  2205   # directories to create, and then abort because `.' already
  2206   # exists.
  2207   for d in ./-p ./--version;
  2208   do
  2209     test -d $d && rmdir $d
  2210   done
  2211   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2212   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2213     mkdir_p='$(mkinstalldirs)'
  2214   else
  2215     mkdir_p='$(install_sh) -d'
  2216   fi
  2217 fi
  2219 for ac_prog in gawk mawk nawk awk
  2220 do
  2221   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2222 set dummy $ac_prog; ac_word=$2
  2223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2224 $as_echo_n "checking for $ac_word... " >&6; }
  2225 if test "${ac_cv_prog_AWK+set}" = set; then
  2226   $as_echo_n "(cached) " >&6
  2227 else
  2228   if test -n "$AWK"; then
  2229   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2230 else
  2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2232 for as_dir in $PATH
  2233 do
  2234   IFS=$as_save_IFS
  2235   test -z "$as_dir" && as_dir=.
  2236   for ac_exec_ext in '' $ac_executable_extensions; do
  2237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2238     ac_cv_prog_AWK="$ac_prog"
  2239     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2240     break 2
  2241   fi
  2242 done
  2243 done
  2244 IFS=$as_save_IFS
  2246 fi
  2247 fi
  2248 AWK=$ac_cv_prog_AWK
  2249 if test -n "$AWK"; then
  2250   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2251 $as_echo "$AWK" >&6; }
  2252 else
  2253   { $as_echo "$as_me:$LINENO: result: no" >&5
  2254 $as_echo "no" >&6; }
  2255 fi
  2258   test -n "$AWK" && break
  2259 done
  2261 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2262 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2263 set x ${MAKE-make}
  2264 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2265 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2266   $as_echo_n "(cached) " >&6
  2267 else
  2268   cat >conftest.make <<\_ACEOF
  2269 SHELL = /bin/sh
  2270 all:
  2271 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2272 _ACEOF
  2273 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2274 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2275   *@@@%%%=?*=@@@%%%*)
  2276     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2277   *)
  2278     eval ac_cv_prog_make_${ac_make}_set=no;;
  2279 esac
  2280 rm -f conftest.make
  2281 fi
  2282 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2283   { $as_echo "$as_me:$LINENO: result: yes" >&5
  2284 $as_echo "yes" >&6; }
  2285   SET_MAKE=
  2286 else
  2287   { $as_echo "$as_me:$LINENO: result: no" >&5
  2288 $as_echo "no" >&6; }
  2289   SET_MAKE="MAKE=${MAKE-make}"
  2290 fi
  2292 rm -rf .tst 2>/dev/null
  2293 mkdir .tst 2>/dev/null
  2294 if test -d .tst; then
  2295   am__leading_dot=.
  2296 else
  2297   am__leading_dot=_
  2298 fi
  2299 rmdir .tst 2>/dev/null
  2301 # test to see if srcdir already configured
  2302 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2303    test -f $srcdir/config.status; then
  2304   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2305 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2306    { (exit 1); exit 1; }; }
  2307 fi
  2309 # test whether we have cygpath
  2310 if test -z "$CYGPATH_W"; then
  2311   if (cygpath --version) >/dev/null 2>/dev/null; then
  2312     CYGPATH_W='cygpath -w'
  2313   else
  2314     CYGPATH_W=echo
  2315   fi
  2316 fi
  2319 # Define the identity of the package.
  2320  PACKAGE=lxdream
  2321  VERSION=0.9
  2324 cat >>confdefs.h <<_ACEOF
  2325 #define PACKAGE "$PACKAGE"
  2326 _ACEOF
  2329 cat >>confdefs.h <<_ACEOF
  2330 #define VERSION "$VERSION"
  2331 _ACEOF
  2333 # Some tools Automake needs.
  2335 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2338 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2341 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2344 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2347 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2349 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2351 # Installed binaries are usually stripped using `strip' when the user
  2352 # run `make install-strip'.  However `strip' might not be the right
  2353 # tool to use in cross-compilation environments, therefore Automake
  2354 # will honor the `STRIP' environment variable to overrule this program.
  2355 if test "$cross_compiling" != no; then
  2356   if test -n "$ac_tool_prefix"; then
  2357   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2358 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2360 $as_echo_n "checking for $ac_word... " >&6; }
  2361 if test "${ac_cv_prog_STRIP+set}" = set; then
  2362   $as_echo_n "(cached) " >&6
  2363 else
  2364   if test -n "$STRIP"; then
  2365   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2366 else
  2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2368 for as_dir in $PATH
  2369 do
  2370   IFS=$as_save_IFS
  2371   test -z "$as_dir" && as_dir=.
  2372   for ac_exec_ext in '' $ac_executable_extensions; do
  2373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2374     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2375     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2376     break 2
  2377   fi
  2378 done
  2379 done
  2380 IFS=$as_save_IFS
  2382 fi
  2383 fi
  2384 STRIP=$ac_cv_prog_STRIP
  2385 if test -n "$STRIP"; then
  2386   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2387 $as_echo "$STRIP" >&6; }
  2388 else
  2389   { $as_echo "$as_me:$LINENO: result: no" >&5
  2390 $as_echo "no" >&6; }
  2391 fi
  2394 fi
  2395 if test -z "$ac_cv_prog_STRIP"; then
  2396   ac_ct_STRIP=$STRIP
  2397   # Extract the first word of "strip", so it can be a program name with args.
  2398 set dummy strip; ac_word=$2
  2399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2400 $as_echo_n "checking for $ac_word... " >&6; }
  2401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2402   $as_echo_n "(cached) " >&6
  2403 else
  2404   if test -n "$ac_ct_STRIP"; then
  2405   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2406 else
  2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2408 for as_dir in $PATH
  2409 do
  2410   IFS=$as_save_IFS
  2411   test -z "$as_dir" && as_dir=.
  2412   for ac_exec_ext in '' $ac_executable_extensions; do
  2413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2414     ac_cv_prog_ac_ct_STRIP="strip"
  2415     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2416     break 2
  2417   fi
  2418 done
  2419 done
  2420 IFS=$as_save_IFS
  2422 fi
  2423 fi
  2424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2425 if test -n "$ac_ct_STRIP"; then
  2426   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2427 $as_echo "$ac_ct_STRIP" >&6; }
  2428 else
  2429   { $as_echo "$as_me:$LINENO: result: no" >&5
  2430 $as_echo "no" >&6; }
  2431 fi
  2433   if test "x$ac_ct_STRIP" = x; then
  2434     STRIP=":"
  2435   else
  2436     case $cross_compiling:$ac_tool_warned in
  2437 yes:)
  2438 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2440 ac_tool_warned=yes ;;
  2441 esac
  2442     STRIP=$ac_ct_STRIP
  2443   fi
  2444 else
  2445   STRIP="$ac_cv_prog_STRIP"
  2446 fi
  2448 fi
  2449 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2451 # We need awk for the "check" target.  The system "awk" is bad on
  2452 # some platforms.
  2453 # Always define AMTAR for backward compatibility.
  2455 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2457 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2463 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2464 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2465     # Check whether --enable-maintainer-mode was given.
  2466 if test "${enable_maintainer_mode+set}" = set; then
  2467   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2468 else
  2469   USE_MAINTAINER_MODE=no
  2470 fi
  2472   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2473 $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2476 if test $USE_MAINTAINER_MODE = yes; then
  2477   MAINTAINER_MODE_TRUE=
  2478   MAINTAINER_MODE_FALSE='#'
  2479 else
  2480   MAINTAINER_MODE_TRUE='#'
  2481   MAINTAINER_MODE_FALSE=
  2482 fi
  2484   MAINT=$MAINTAINER_MODE_TRUE
  2487 ac_config_headers="$ac_config_headers config.h"
  2490 DEPDIR="${am__leading_dot}deps"
  2492 ac_config_commands="$ac_config_commands depfiles"
  2495 am_make=${MAKE-make}
  2496 cat > confinc << 'END'
  2497 am__doit:
  2498 	@echo done
  2499 .PHONY: am__doit
  2500 END
  2501 # If we don't find an include directive, just comment out the code.
  2502 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2503 $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2504 am__include="#"
  2505 am__quote=
  2506 _am_result=none
  2507 # First try GNU make style include.
  2508 echo "include confinc" > confmf
  2509 # We grep out `Entering directory' and `Leaving directory'
  2510 # messages which can occur if `w' ends up in MAKEFLAGS.
  2511 # In particular we don't look at `^make:' because GNU make might
  2512 # be invoked under some other name (usually "gmake"), in which
  2513 # case it prints its new name instead of `make'.
  2514 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2515    am__include=include
  2516    am__quote=
  2517    _am_result=GNU
  2518 fi
  2519 # Now try BSD make style include.
  2520 if test "$am__include" = "#"; then
  2521    echo '.include "confinc"' > confmf
  2522    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2523       am__include=.include
  2524       am__quote="\""
  2525       _am_result=BSD
  2526    fi
  2527 fi
  2530 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2531 $as_echo "$_am_result" >&6; }
  2532 rm -f confinc confmf
  2534 # Check whether --enable-dependency-tracking was given.
  2535 if test "${enable_dependency_tracking+set}" = set; then
  2536   enableval=$enable_dependency_tracking;
  2537 fi
  2539 if test "x$enable_dependency_tracking" != xno; then
  2540   am_depcomp="$ac_aux_dir/depcomp"
  2541   AMDEPBACKSLASH='\'
  2542 fi
  2545 if test "x$enable_dependency_tracking" != xno; then
  2546   AMDEP_TRUE=
  2547   AMDEP_FALSE='#'
  2548 else
  2549   AMDEP_TRUE='#'
  2550   AMDEP_FALSE=
  2551 fi
  2555 ac_ext=c
  2556 ac_cpp='$CPP $CPPFLAGS'
  2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2560 if test -n "$ac_tool_prefix"; then
  2561   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2564 $as_echo_n "checking for $ac_word... " >&6; }
  2565 if test "${ac_cv_prog_CC+set}" = set; then
  2566   $as_echo_n "(cached) " >&6
  2567 else
  2568   if test -n "$CC"; then
  2569   ac_cv_prog_CC="$CC" # Let the user override the test.
  2570 else
  2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2572 for as_dir in $PATH
  2573 do
  2574   IFS=$as_save_IFS
  2575   test -z "$as_dir" && as_dir=.
  2576   for ac_exec_ext in '' $ac_executable_extensions; do
  2577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2578     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2579     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2580     break 2
  2581   fi
  2582 done
  2583 done
  2584 IFS=$as_save_IFS
  2586 fi
  2587 fi
  2588 CC=$ac_cv_prog_CC
  2589 if test -n "$CC"; then
  2590   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2591 $as_echo "$CC" >&6; }
  2592 else
  2593   { $as_echo "$as_me:$LINENO: result: no" >&5
  2594 $as_echo "no" >&6; }
  2595 fi
  2598 fi
  2599 if test -z "$ac_cv_prog_CC"; then
  2600   ac_ct_CC=$CC
  2601   # Extract the first word of "gcc", so it can be a program name with args.
  2602 set dummy gcc; ac_word=$2
  2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2604 $as_echo_n "checking for $ac_word... " >&6; }
  2605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2606   $as_echo_n "(cached) " >&6
  2607 else
  2608   if test -n "$ac_ct_CC"; then
  2609   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2610 else
  2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2612 for as_dir in $PATH
  2613 do
  2614   IFS=$as_save_IFS
  2615   test -z "$as_dir" && as_dir=.
  2616   for ac_exec_ext in '' $ac_executable_extensions; do
  2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2618     ac_cv_prog_ac_ct_CC="gcc"
  2619     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2620     break 2
  2621   fi
  2622 done
  2623 done
  2624 IFS=$as_save_IFS
  2626 fi
  2627 fi
  2628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2629 if test -n "$ac_ct_CC"; then
  2630   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2631 $as_echo "$ac_ct_CC" >&6; }
  2632 else
  2633   { $as_echo "$as_me:$LINENO: result: no" >&5
  2634 $as_echo "no" >&6; }
  2635 fi
  2637   if test "x$ac_ct_CC" = x; then
  2638     CC=""
  2639   else
  2640     case $cross_compiling:$ac_tool_warned in
  2641 yes:)
  2642 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2644 ac_tool_warned=yes ;;
  2645 esac
  2646     CC=$ac_ct_CC
  2647   fi
  2648 else
  2649   CC="$ac_cv_prog_CC"
  2650 fi
  2652 if test -z "$CC"; then
  2653           if test -n "$ac_tool_prefix"; then
  2654     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2655 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2657 $as_echo_n "checking for $ac_word... " >&6; }
  2658 if test "${ac_cv_prog_CC+set}" = set; then
  2659   $as_echo_n "(cached) " >&6
  2660 else
  2661   if test -n "$CC"; then
  2662   ac_cv_prog_CC="$CC" # Let the user override the test.
  2663 else
  2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2665 for as_dir in $PATH
  2666 do
  2667   IFS=$as_save_IFS
  2668   test -z "$as_dir" && as_dir=.
  2669   for ac_exec_ext in '' $ac_executable_extensions; do
  2670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2671     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2672     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2673     break 2
  2674   fi
  2675 done
  2676 done
  2677 IFS=$as_save_IFS
  2679 fi
  2680 fi
  2681 CC=$ac_cv_prog_CC
  2682 if test -n "$CC"; then
  2683   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2684 $as_echo "$CC" >&6; }
  2685 else
  2686   { $as_echo "$as_me:$LINENO: result: no" >&5
  2687 $as_echo "no" >&6; }
  2688 fi
  2691   fi
  2692 fi
  2693 if test -z "$CC"; then
  2694   # Extract the first word of "cc", so it can be a program name with args.
  2695 set dummy cc; ac_word=$2
  2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2697 $as_echo_n "checking for $ac_word... " >&6; }
  2698 if test "${ac_cv_prog_CC+set}" = set; then
  2699   $as_echo_n "(cached) " >&6
  2700 else
  2701   if test -n "$CC"; then
  2702   ac_cv_prog_CC="$CC" # Let the user override the test.
  2703 else
  2704   ac_prog_rejected=no
  2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2706 for as_dir in $PATH
  2707 do
  2708   IFS=$as_save_IFS
  2709   test -z "$as_dir" && as_dir=.
  2710   for ac_exec_ext in '' $ac_executable_extensions; do
  2711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2712     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2713        ac_prog_rejected=yes
  2714        continue
  2715      fi
  2716     ac_cv_prog_CC="cc"
  2717     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2718     break 2
  2719   fi
  2720 done
  2721 done
  2722 IFS=$as_save_IFS
  2724 if test $ac_prog_rejected = yes; then
  2725   # We found a bogon in the path, so make sure we never use it.
  2726   set dummy $ac_cv_prog_CC
  2727   shift
  2728   if test $# != 0; then
  2729     # We chose a different compiler from the bogus one.
  2730     # However, it has the same basename, so the bogon will be chosen
  2731     # first if we set CC to just the basename; use the full file name.
  2732     shift
  2733     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2734   fi
  2735 fi
  2736 fi
  2737 fi
  2738 CC=$ac_cv_prog_CC
  2739 if test -n "$CC"; then
  2740   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2741 $as_echo "$CC" >&6; }
  2742 else
  2743   { $as_echo "$as_me:$LINENO: result: no" >&5
  2744 $as_echo "no" >&6; }
  2745 fi
  2748 fi
  2749 if test -z "$CC"; then
  2750   if test -n "$ac_tool_prefix"; then
  2751   for ac_prog in cl.exe
  2752   do
  2753     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2756 $as_echo_n "checking for $ac_word... " >&6; }
  2757 if test "${ac_cv_prog_CC+set}" = set; then
  2758   $as_echo_n "(cached) " >&6
  2759 else
  2760   if test -n "$CC"; then
  2761   ac_cv_prog_CC="$CC" # Let the user override the test.
  2762 else
  2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2764 for as_dir in $PATH
  2765 do
  2766   IFS=$as_save_IFS
  2767   test -z "$as_dir" && as_dir=.
  2768   for ac_exec_ext in '' $ac_executable_extensions; do
  2769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2770     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2771     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2772     break 2
  2773   fi
  2774 done
  2775 done
  2776 IFS=$as_save_IFS
  2778 fi
  2779 fi
  2780 CC=$ac_cv_prog_CC
  2781 if test -n "$CC"; then
  2782   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2783 $as_echo "$CC" >&6; }
  2784 else
  2785   { $as_echo "$as_me:$LINENO: result: no" >&5
  2786 $as_echo "no" >&6; }
  2787 fi
  2790     test -n "$CC" && break
  2791   done
  2792 fi
  2793 if test -z "$CC"; then
  2794   ac_ct_CC=$CC
  2795   for ac_prog in cl.exe
  2796 do
  2797   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2798 set dummy $ac_prog; ac_word=$2
  2799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2800 $as_echo_n "checking for $ac_word... " >&6; }
  2801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2802   $as_echo_n "(cached) " >&6
  2803 else
  2804   if test -n "$ac_ct_CC"; then
  2805   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2806 else
  2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2808 for as_dir in $PATH
  2809 do
  2810   IFS=$as_save_IFS
  2811   test -z "$as_dir" && as_dir=.
  2812   for ac_exec_ext in '' $ac_executable_extensions; do
  2813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2814     ac_cv_prog_ac_ct_CC="$ac_prog"
  2815     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2816     break 2
  2817   fi
  2818 done
  2819 done
  2820 IFS=$as_save_IFS
  2822 fi
  2823 fi
  2824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2825 if test -n "$ac_ct_CC"; then
  2826   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2827 $as_echo "$ac_ct_CC" >&6; }
  2828 else
  2829   { $as_echo "$as_me:$LINENO: result: no" >&5
  2830 $as_echo "no" >&6; }
  2831 fi
  2834   test -n "$ac_ct_CC" && break
  2835 done
  2837   if test "x$ac_ct_CC" = x; then
  2838     CC=""
  2839   else
  2840     case $cross_compiling:$ac_tool_warned in
  2841 yes:)
  2842 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2844 ac_tool_warned=yes ;;
  2845 esac
  2846     CC=$ac_ct_CC
  2847   fi
  2848 fi
  2850 fi
  2853 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2855 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2856 See \`config.log' for more details." >&5
  2857 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2858 See \`config.log' for more details." >&2;}
  2859    { (exit 1); exit 1; }; }; }
  2861 # Provide some information about the compiler.
  2862 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2863 set X $ac_compile
  2864 ac_compiler=$2
  2865 { (ac_try="$ac_compiler --version >&5"
  2866 case "(($ac_try" in
  2867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2868   *) ac_try_echo=$ac_try;;
  2869 esac
  2870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2871 $as_echo "$ac_try_echo") >&5
  2872   (eval "$ac_compiler --version >&5") 2>&5
  2873   ac_status=$?
  2874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2875   (exit $ac_status); }
  2876 { (ac_try="$ac_compiler -v >&5"
  2877 case "(($ac_try" in
  2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2879   *) ac_try_echo=$ac_try;;
  2880 esac
  2881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2882 $as_echo "$ac_try_echo") >&5
  2883   (eval "$ac_compiler -v >&5") 2>&5
  2884   ac_status=$?
  2885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2886   (exit $ac_status); }
  2887 { (ac_try="$ac_compiler -V >&5"
  2888 case "(($ac_try" in
  2889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2890   *) ac_try_echo=$ac_try;;
  2891 esac
  2892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2893 $as_echo "$ac_try_echo") >&5
  2894   (eval "$ac_compiler -V >&5") 2>&5
  2895   ac_status=$?
  2896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2897   (exit $ac_status); }
  2899 cat >conftest.$ac_ext <<_ACEOF
  2900 /* confdefs.h.  */
  2901 _ACEOF
  2902 cat confdefs.h >>conftest.$ac_ext
  2903 cat >>conftest.$ac_ext <<_ACEOF
  2904 /* end confdefs.h.  */
  2906 int
  2907 main ()
  2911   return 0;
  2913 _ACEOF
  2914 ac_clean_files_save=$ac_clean_files
  2915 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2916 # Try to create an executable without -o first, disregard a.out.
  2917 # It will help us diagnose broken compilers, and finding out an intuition
  2918 # of exeext.
  2919 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2920 $as_echo_n "checking for C compiler default output file name... " >&6; }
  2921 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2923 # The possible output files:
  2924 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2926 ac_rmfiles=
  2927 for ac_file in $ac_files
  2928 do
  2929   case $ac_file in
  2930     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2931     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2932   esac
  2933 done
  2934 rm -f $ac_rmfiles
  2936 if { (ac_try="$ac_link_default"
  2937 case "(($ac_try" in
  2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2939   *) ac_try_echo=$ac_try;;
  2940 esac
  2941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2942 $as_echo "$ac_try_echo") >&5
  2943   (eval "$ac_link_default") 2>&5
  2944   ac_status=$?
  2945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2946   (exit $ac_status); }; then
  2947   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2948 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2949 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2950 # so that the user can short-circuit this test for compilers unknown to
  2951 # Autoconf.
  2952 for ac_file in $ac_files ''
  2953 do
  2954   test -f "$ac_file" || continue
  2955   case $ac_file in
  2956     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2957 	;;
  2958     [ab].out )
  2959 	# We found the default executable, but exeext='' is most
  2960 	# certainly right.
  2961 	break;;
  2962     *.* )
  2963         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2964 	then :; else
  2965 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2966 	fi
  2967 	# We set ac_cv_exeext here because the later test for it is not
  2968 	# safe: cross compilers may not add the suffix if given an `-o'
  2969 	# argument, so we may need to know it at that point already.
  2970 	# Even if this section looks crufty: it has the advantage of
  2971 	# actually working.
  2972 	break;;
  2973     * )
  2974 	break;;
  2975   esac
  2976 done
  2977 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2979 else
  2980   ac_file=''
  2981 fi
  2983 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2984 $as_echo "$ac_file" >&6; }
  2985 if test -z "$ac_file"; then
  2986   $as_echo "$as_me: failed program was:" >&5
  2987 sed 's/^/| /' conftest.$ac_ext >&5
  2989 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2991 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2992 See \`config.log' for more details." >&5
  2993 $as_echo "$as_me: error: C compiler cannot create executables
  2994 See \`config.log' for more details." >&2;}
  2995    { (exit 77); exit 77; }; }; }
  2996 fi
  2998 ac_exeext=$ac_cv_exeext
  3000 # Check that the compiler produces executables we can run.  If not, either
  3001 # the compiler is broken, or we cross compile.
  3002 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3003 $as_echo_n "checking whether the C compiler works... " >&6; }
  3004 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3005 # If not cross compiling, check that we can run a simple program.
  3006 if test "$cross_compiling" != yes; then
  3007   if { ac_try='./$ac_file'
  3008   { (case "(($ac_try" in
  3009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3010   *) ac_try_echo=$ac_try;;
  3011 esac
  3012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3013 $as_echo "$ac_try_echo") >&5
  3014   (eval "$ac_try") 2>&5
  3015   ac_status=$?
  3016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3017   (exit $ac_status); }; }; then
  3018     cross_compiling=no
  3019   else
  3020     if test "$cross_compiling" = maybe; then
  3021 	cross_compiling=yes
  3022     else
  3023 	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3025 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3026 If you meant to cross compile, use \`--host'.
  3027 See \`config.log' for more details." >&5
  3028 $as_echo "$as_me: error: cannot run C compiled programs.
  3029 If you meant to cross compile, use \`--host'.
  3030 See \`config.log' for more details." >&2;}
  3031    { (exit 1); exit 1; }; }; }
  3032     fi
  3033   fi
  3034 fi
  3035 { $as_echo "$as_me:$LINENO: result: yes" >&5
  3036 $as_echo "yes" >&6; }
  3038 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3039 ac_clean_files=$ac_clean_files_save
  3040 # Check that the compiler produces executables we can run.  If not, either
  3041 # the compiler is broken, or we cross compile.
  3042 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3043 $as_echo_n "checking whether we are cross compiling... " >&6; }
  3044 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3045 $as_echo "$cross_compiling" >&6; }
  3047 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3048 $as_echo_n "checking for suffix of executables... " >&6; }
  3049 if { (ac_try="$ac_link"
  3050 case "(($ac_try" in
  3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3052   *) ac_try_echo=$ac_try;;
  3053 esac
  3054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3055 $as_echo "$ac_try_echo") >&5
  3056   (eval "$ac_link") 2>&5
  3057   ac_status=$?
  3058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3059   (exit $ac_status); }; then
  3060   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3061 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3062 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3063 # `rm'.
  3064 for ac_file in conftest.exe conftest conftest.*; do
  3065   test -f "$ac_file" || continue
  3066   case $ac_file in
  3067     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3068     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3069 	  break;;
  3070     * ) break;;
  3071   esac
  3072 done
  3073 else
  3074   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3076 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3077 See \`config.log' for more details." >&5
  3078 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3079 See \`config.log' for more details." >&2;}
  3080    { (exit 1); exit 1; }; }; }
  3081 fi
  3083 rm -f conftest$ac_cv_exeext
  3084 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3085 $as_echo "$ac_cv_exeext" >&6; }
  3087 rm -f conftest.$ac_ext
  3088 EXEEXT=$ac_cv_exeext
  3089 ac_exeext=$EXEEXT
  3090 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3091 $as_echo_n "checking for suffix of object files... " >&6; }
  3092 if test "${ac_cv_objext+set}" = set; then
  3093   $as_echo_n "(cached) " >&6
  3094 else
  3095   cat >conftest.$ac_ext <<_ACEOF
  3096 /* confdefs.h.  */
  3097 _ACEOF
  3098 cat confdefs.h >>conftest.$ac_ext
  3099 cat >>conftest.$ac_ext <<_ACEOF
  3100 /* end confdefs.h.  */
  3102 int
  3103 main ()
  3107   return 0;
  3109 _ACEOF
  3110 rm -f conftest.o conftest.obj
  3111 if { (ac_try="$ac_compile"
  3112 case "(($ac_try" in
  3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3114   *) ac_try_echo=$ac_try;;
  3115 esac
  3116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3117 $as_echo "$ac_try_echo") >&5
  3118   (eval "$ac_compile") 2>&5
  3119   ac_status=$?
  3120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3121   (exit $ac_status); }; then
  3122   for ac_file in conftest.o conftest.obj conftest.*; do
  3123   test -f "$ac_file" || continue;
  3124   case $ac_file in
  3125     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3126     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3127        break;;
  3128   esac
  3129 done
  3130 else
  3131   $as_echo "$as_me: failed program was:" >&5
  3132 sed 's/^/| /' conftest.$ac_ext >&5
  3134 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3136 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3137 See \`config.log' for more details." >&5
  3138 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3139 See \`config.log' for more details." >&2;}
  3140    { (exit 1); exit 1; }; }; }
  3141 fi
  3143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3144 fi
  3145 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3146 $as_echo "$ac_cv_objext" >&6; }
  3147 OBJEXT=$ac_cv_objext
  3148 ac_objext=$OBJEXT
  3149 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3150 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3152   $as_echo_n "(cached) " >&6
  3153 else
  3154   cat >conftest.$ac_ext <<_ACEOF
  3155 /* confdefs.h.  */
  3156 _ACEOF
  3157 cat confdefs.h >>conftest.$ac_ext
  3158 cat >>conftest.$ac_ext <<_ACEOF
  3159 /* end confdefs.h.  */
  3161 int
  3162 main ()
  3164 #ifndef __GNUC__
  3165        choke me
  3166 #endif
  3169   return 0;
  3171 _ACEOF
  3172 rm -f conftest.$ac_objext
  3173 if { (ac_try="$ac_compile"
  3174 case "(($ac_try" in
  3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3176   *) ac_try_echo=$ac_try;;
  3177 esac
  3178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3179 $as_echo "$ac_try_echo") >&5
  3180   (eval "$ac_compile") 2>conftest.er1
  3181   ac_status=$?
  3182   grep -v '^ *+' conftest.er1 >conftest.err
  3183   rm -f conftest.er1
  3184   cat conftest.err >&5
  3185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3186   (exit $ac_status); } && {
  3187 	 test -z "$ac_c_werror_flag" ||
  3188 	 test ! -s conftest.err
  3189        } && test -s conftest.$ac_objext; then
  3190   ac_compiler_gnu=yes
  3191 else
  3192   $as_echo "$as_me: failed program was:" >&5
  3193 sed 's/^/| /' conftest.$ac_ext >&5
  3195 	ac_compiler_gnu=no
  3196 fi
  3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3201 fi
  3202 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3204 if test $ac_compiler_gnu = yes; then
  3205   GCC=yes
  3206 else
  3207   GCC=
  3208 fi
  3209 ac_test_CFLAGS=${CFLAGS+set}
  3210 ac_save_CFLAGS=$CFLAGS
  3211 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3213 if test "${ac_cv_prog_cc_g+set}" = set; then
  3214   $as_echo_n "(cached) " >&6
  3215 else
  3216   ac_save_c_werror_flag=$ac_c_werror_flag
  3217    ac_c_werror_flag=yes
  3218    ac_cv_prog_cc_g=no
  3219    CFLAGS="-g"
  3220    cat >conftest.$ac_ext <<_ACEOF
  3221 /* confdefs.h.  */
  3222 _ACEOF
  3223 cat confdefs.h >>conftest.$ac_ext
  3224 cat >>conftest.$ac_ext <<_ACEOF
  3225 /* end confdefs.h.  */
  3227 int
  3228 main ()
  3232   return 0;
  3234 _ACEOF
  3235 rm -f conftest.$ac_objext
  3236 if { (ac_try="$ac_compile"
  3237 case "(($ac_try" in
  3238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3239   *) ac_try_echo=$ac_try;;
  3240 esac
  3241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3242 $as_echo "$ac_try_echo") >&5
  3243   (eval "$ac_compile") 2>conftest.er1
  3244   ac_status=$?
  3245   grep -v '^ *+' conftest.er1 >conftest.err
  3246   rm -f conftest.er1
  3247   cat conftest.err >&5
  3248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3249   (exit $ac_status); } && {
  3250 	 test -z "$ac_c_werror_flag" ||
  3251 	 test ! -s conftest.err
  3252        } && test -s conftest.$ac_objext; then
  3253   ac_cv_prog_cc_g=yes
  3254 else
  3255   $as_echo "$as_me: failed program was:" >&5
  3256 sed 's/^/| /' conftest.$ac_ext >&5
  3258 	CFLAGS=""
  3259       cat >conftest.$ac_ext <<_ACEOF
  3260 /* confdefs.h.  */
  3261 _ACEOF
  3262 cat confdefs.h >>conftest.$ac_ext
  3263 cat >>conftest.$ac_ext <<_ACEOF
  3264 /* end confdefs.h.  */
  3266 int
  3267 main ()
  3271   return 0;
  3273 _ACEOF
  3274 rm -f conftest.$ac_objext
  3275 if { (ac_try="$ac_compile"
  3276 case "(($ac_try" in
  3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3278   *) ac_try_echo=$ac_try;;
  3279 esac
  3280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3281 $as_echo "$ac_try_echo") >&5
  3282   (eval "$ac_compile") 2>conftest.er1
  3283   ac_status=$?
  3284   grep -v '^ *+' conftest.er1 >conftest.err
  3285   rm -f conftest.er1
  3286   cat conftest.err >&5
  3287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3288   (exit $ac_status); } && {
  3289 	 test -z "$ac_c_werror_flag" ||
  3290 	 test ! -s conftest.err
  3291        } && test -s conftest.$ac_objext; then
  3293 else
  3294   $as_echo "$as_me: failed program was:" >&5
  3295 sed 's/^/| /' conftest.$ac_ext >&5
  3297 	ac_c_werror_flag=$ac_save_c_werror_flag
  3298 	 CFLAGS="-g"
  3299 	 cat >conftest.$ac_ext <<_ACEOF
  3300 /* confdefs.h.  */
  3301 _ACEOF
  3302 cat confdefs.h >>conftest.$ac_ext
  3303 cat >>conftest.$ac_ext <<_ACEOF
  3304 /* end confdefs.h.  */
  3306 int
  3307 main ()
  3311   return 0;
  3313 _ACEOF
  3314 rm -f conftest.$ac_objext
  3315 if { (ac_try="$ac_compile"
  3316 case "(($ac_try" in
  3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3318   *) ac_try_echo=$ac_try;;
  3319 esac
  3320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3321 $as_echo "$ac_try_echo") >&5
  3322   (eval "$ac_compile") 2>conftest.er1
  3323   ac_status=$?
  3324   grep -v '^ *+' conftest.er1 >conftest.err
  3325   rm -f conftest.er1
  3326   cat conftest.err >&5
  3327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3328   (exit $ac_status); } && {
  3329 	 test -z "$ac_c_werror_flag" ||
  3330 	 test ! -s conftest.err
  3331        } && test -s conftest.$ac_objext; then
  3332   ac_cv_prog_cc_g=yes
  3333 else
  3334   $as_echo "$as_me: failed program was:" >&5
  3335 sed 's/^/| /' conftest.$ac_ext >&5
  3338 fi
  3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3341 fi
  3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3344 fi
  3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3347    ac_c_werror_flag=$ac_save_c_werror_flag
  3348 fi
  3349 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3350 $as_echo "$ac_cv_prog_cc_g" >&6; }
  3351 if test "$ac_test_CFLAGS" = set; then
  3352   CFLAGS=$ac_save_CFLAGS
  3353 elif test $ac_cv_prog_cc_g = yes; then
  3354   if test "$GCC" = yes; then
  3355     CFLAGS="-g -O2"
  3356   else
  3357     CFLAGS="-g"
  3358   fi
  3359 else
  3360   if test "$GCC" = yes; then
  3361     CFLAGS="-O2"
  3362   else
  3363     CFLAGS=
  3364   fi
  3365 fi
  3366 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3367 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3368 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3369   $as_echo_n "(cached) " >&6
  3370 else
  3371   ac_cv_prog_cc_c89=no
  3372 ac_save_CC=$CC
  3373 cat >conftest.$ac_ext <<_ACEOF
  3374 /* confdefs.h.  */
  3375 _ACEOF
  3376 cat confdefs.h >>conftest.$ac_ext
  3377 cat >>conftest.$ac_ext <<_ACEOF
  3378 /* end confdefs.h.  */
  3379 #include <stdarg.h>
  3380 #include <stdio.h>
  3381 #include <sys/types.h>
  3382 #include <sys/stat.h>
  3383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3384 struct buf { int x; };
  3385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3386 static char *e (p, i)
  3387      char **p;
  3388      int i;
  3390   return p[i];
  3392 static char *f (char * (*g) (char **, int), char **p, ...)
  3394   char *s;
  3395   va_list v;
  3396   va_start (v,p);
  3397   s = g (p, va_arg (v,int));
  3398   va_end (v);
  3399   return s;
  3402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3403    function prototypes and stuff, but not '\xHH' hex character constants.
  3404    These don't provoke an error unfortunately, instead are silently treated
  3405    as 'x'.  The following induces an error, until -std is added to get
  3406    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3407    array size at least.  It's necessary to write '\x00'==0 to get something
  3408    that's true only with -std.  */
  3409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3411 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3412    inside strings and character constants.  */
  3413 #define FOO(x) 'x'
  3414 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3416 int test (int i, double x);
  3417 struct s1 {int (*f) (int a);};
  3418 struct s2 {int (*f) (double a);};
  3419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3420 int argc;
  3421 char **argv;
  3422 int
  3423 main ()
  3425 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3427   return 0;
  3429 _ACEOF
  3430 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3431 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3432 do
  3433   CC="$ac_save_CC $ac_arg"
  3434   rm -f conftest.$ac_objext
  3435 if { (ac_try="$ac_compile"
  3436 case "(($ac_try" in
  3437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3438   *) ac_try_echo=$ac_try;;
  3439 esac
  3440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3441 $as_echo "$ac_try_echo") >&5
  3442   (eval "$ac_compile") 2>conftest.er1
  3443   ac_status=$?
  3444   grep -v '^ *+' conftest.er1 >conftest.err
  3445   rm -f conftest.er1
  3446   cat conftest.err >&5
  3447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3448   (exit $ac_status); } && {
  3449 	 test -z "$ac_c_werror_flag" ||
  3450 	 test ! -s conftest.err
  3451        } && test -s conftest.$ac_objext; then
  3452   ac_cv_prog_cc_c89=$ac_arg
  3453 else
  3454   $as_echo "$as_me: failed program was:" >&5
  3455 sed 's/^/| /' conftest.$ac_ext >&5
  3458 fi
  3460 rm -f core conftest.err conftest.$ac_objext
  3461   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3462 done
  3463 rm -f conftest.$ac_ext
  3464 CC=$ac_save_CC
  3466 fi
  3467 # AC_CACHE_VAL
  3468 case "x$ac_cv_prog_cc_c89" in
  3469   x)
  3470     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3471 $as_echo "none needed" >&6; } ;;
  3472   xno)
  3473     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3474 $as_echo "unsupported" >&6; } ;;
  3475   *)
  3476     CC="$CC $ac_cv_prog_cc_c89"
  3477     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3478 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3479 esac
  3482 ac_ext=c
  3483 ac_cpp='$CPP $CPPFLAGS'
  3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3488 depcc="$CC"   am_compiler_list=
  3490 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3491 $as_echo_n "checking dependency style of $depcc... " >&6; }
  3492 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3493   $as_echo_n "(cached) " >&6
  3494 else
  3495   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3496   # We make a subdir and do the tests there.  Otherwise we can end up
  3497   # making bogus files that we don't know about and never remove.  For
  3498   # instance it was reported that on HP-UX the gcc test will end up
  3499   # making a dummy file named `D' -- because `-MD' means `put the output
  3500   # in D'.
  3501   mkdir conftest.dir
  3502   # Copy depcomp to subdir because otherwise we won't find it if we're
  3503   # using a relative directory.
  3504   cp "$am_depcomp" conftest.dir
  3505   cd conftest.dir
  3506   # We will build objects and dependencies in a subdirectory because
  3507   # it helps to detect inapplicable dependency modes.  For instance
  3508   # both Tru64's cc and ICC support -MD to output dependencies as a
  3509   # side effect of compilation, but ICC will put the dependencies in
  3510   # the current directory while Tru64 will put them in the object
  3511   # directory.
  3512   mkdir sub
  3514   am_cv_CC_dependencies_compiler_type=none
  3515   if test "$am_compiler_list" = ""; then
  3516      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3517   fi
  3518   for depmode in $am_compiler_list; do
  3519     # Setup a source with many dependencies, because some compilers
  3520     # like to wrap large dependency lists on column 80 (with \), and
  3521     # we should not choose a depcomp mode which is confused by this.
  3523     # We need to recreate these files for each test, as the compiler may
  3524     # overwrite some of them when testing with obscure command lines.
  3525     # This happens at least with the AIX C compiler.
  3526     : > sub/conftest.c
  3527     for i in 1 2 3 4 5 6; do
  3528       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3529       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3530       # Solaris 8's {/usr,}/bin/sh.
  3531       touch sub/conftst$i.h
  3532     done
  3533     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3535     case $depmode in
  3536     nosideeffect)
  3537       # after this tag, mechanisms are not by side-effect, so they'll
  3538       # only be used when explicitly requested
  3539       if test "x$enable_dependency_tracking" = xyes; then
  3540 	continue
  3541       else
  3542 	break
  3543       fi
  3544       ;;
  3545     none) break ;;
  3546     esac
  3547     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3548     # mode.  It turns out that the SunPro C++ compiler does not properly
  3549     # handle `-M -o', and we need to detect this.
  3550     if depmode=$depmode \
  3551        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3552        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3553        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3554          >/dev/null 2>conftest.err &&
  3555        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3556        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3557        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3558       # icc doesn't choke on unknown options, it will just issue warnings
  3559       # or remarks (even with -Werror).  So we grep stderr for any message
  3560       # that says an option was ignored or not supported.
  3561       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3562       #   icc: Command line warning: ignoring option '-M'; no argument required
  3563       # The diagnosis changed in icc 8.0:
  3564       #   icc: Command line remark: option '-MP' not supported
  3565       if (grep 'ignoring option' conftest.err ||
  3566           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3567         am_cv_CC_dependencies_compiler_type=$depmode
  3568         break
  3569       fi
  3570     fi
  3571   done
  3573   cd ..
  3574   rm -rf conftest.dir
  3575 else
  3576   am_cv_CC_dependencies_compiler_type=none
  3577 fi
  3579 fi
  3580 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3581 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3582 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3586 if
  3587   test "x$enable_dependency_tracking" != xno \
  3588   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3589   am__fastdepCC_TRUE=
  3590   am__fastdepCC_FALSE='#'
  3591 else
  3592   am__fastdepCC_TRUE='#'
  3593   am__fastdepCC_FALSE=
  3594 fi
  3598 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3599 $as_echo_n "checking for library containing strerror... " >&6; }
  3600 if test "${ac_cv_search_strerror+set}" = set; then
  3601   $as_echo_n "(cached) " >&6
  3602 else
  3603   ac_func_search_save_LIBS=$LIBS
  3604 cat >conftest.$ac_ext <<_ACEOF
  3605 /* confdefs.h.  */
  3606 _ACEOF
  3607 cat confdefs.h >>conftest.$ac_ext
  3608 cat >>conftest.$ac_ext <<_ACEOF
  3609 /* end confdefs.h.  */
  3611 /* Override any GCC internal prototype to avoid an error.
  3612    Use char because int might match the return type of a GCC
  3613    builtin and then its argument prototype would still apply.  */
  3614 #ifdef __cplusplus
  3615 extern "C"
  3616 #endif
  3617 char strerror ();
  3618 int
  3619 main ()
  3621 return strerror ();
  3623   return 0;
  3625 _ACEOF
  3626 for ac_lib in '' cposix; do
  3627   if test -z "$ac_lib"; then
  3628     ac_res="none required"
  3629   else
  3630     ac_res=-l$ac_lib
  3631     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  3632   fi
  3633   rm -f conftest.$ac_objext conftest$ac_exeext
  3634 if { (ac_try="$ac_link"
  3635 case "(($ac_try" in
  3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3637   *) ac_try_echo=$ac_try;;
  3638 esac
  3639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3640 $as_echo "$ac_try_echo") >&5
  3641   (eval "$ac_link") 2>conftest.er1
  3642   ac_status=$?
  3643   grep -v '^ *+' conftest.er1 >conftest.err
  3644   rm -f conftest.er1
  3645   cat conftest.err >&5
  3646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3647   (exit $ac_status); } && {
  3648 	 test -z "$ac_c_werror_flag" ||
  3649 	 test ! -s conftest.err
  3650        } && test -s conftest$ac_exeext && {
  3651 	 test "$cross_compiling" = yes ||
  3652 	 $as_test_x conftest$ac_exeext
  3653        }; then
  3654   ac_cv_search_strerror=$ac_res
  3655 else
  3656   $as_echo "$as_me: failed program was:" >&5
  3657 sed 's/^/| /' conftest.$ac_ext >&5
  3660 fi
  3662 rm -rf conftest.dSYM
  3663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3664       conftest$ac_exeext
  3665   if test "${ac_cv_search_strerror+set}" = set; then
  3666   break
  3667 fi
  3668 done
  3669 if test "${ac_cv_search_strerror+set}" = set; then
  3671 else
  3672   ac_cv_search_strerror=no
  3673 fi
  3674 rm conftest.$ac_ext
  3675 LIBS=$ac_func_search_save_LIBS
  3676 fi
  3677 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3678 $as_echo "$ac_cv_search_strerror" >&6; }
  3679 ac_res=$ac_cv_search_strerror
  3680 if test "$ac_res" != no; then
  3681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3683 fi
  3685 ac_ext=c
  3686 ac_cpp='$CPP $CPPFLAGS'
  3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3690 if test -n "$ac_tool_prefix"; then
  3691   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3694 $as_echo_n "checking for $ac_word... " >&6; }
  3695 if test "${ac_cv_prog_CC+set}" = set; then
  3696   $as_echo_n "(cached) " >&6
  3697 else
  3698   if test -n "$CC"; then
  3699   ac_cv_prog_CC="$CC" # Let the user override the test.
  3700 else
  3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3702 for as_dir in $PATH
  3703 do
  3704   IFS=$as_save_IFS
  3705   test -z "$as_dir" && as_dir=.
  3706   for ac_exec_ext in '' $ac_executable_extensions; do
  3707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3708     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3709     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3710     break 2
  3711   fi
  3712 done
  3713 done
  3714 IFS=$as_save_IFS
  3716 fi
  3717 fi
  3718 CC=$ac_cv_prog_CC
  3719 if test -n "$CC"; then
  3720   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3721 $as_echo "$CC" >&6; }
  3722 else
  3723   { $as_echo "$as_me:$LINENO: result: no" >&5
  3724 $as_echo "no" >&6; }
  3725 fi
  3728 fi
  3729 if test -z "$ac_cv_prog_CC"; then
  3730   ac_ct_CC=$CC
  3731   # Extract the first word of "gcc", so it can be a program name with args.
  3732 set dummy gcc; ac_word=$2
  3733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3734 $as_echo_n "checking for $ac_word... " >&6; }
  3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3736   $as_echo_n "(cached) " >&6
  3737 else
  3738   if test -n "$ac_ct_CC"; then
  3739   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3740 else
  3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3742 for as_dir in $PATH
  3743 do
  3744   IFS=$as_save_IFS
  3745   test -z "$as_dir" && as_dir=.
  3746   for ac_exec_ext in '' $ac_executable_extensions; do
  3747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3748     ac_cv_prog_ac_ct_CC="gcc"
  3749     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3750     break 2
  3751   fi
  3752 done
  3753 done
  3754 IFS=$as_save_IFS
  3756 fi
  3757 fi
  3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3759 if test -n "$ac_ct_CC"; then
  3760   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3761 $as_echo "$ac_ct_CC" >&6; }
  3762 else
  3763   { $as_echo "$as_me:$LINENO: result: no" >&5
  3764 $as_echo "no" >&6; }
  3765 fi
  3767   if test "x$ac_ct_CC" = x; then
  3768     CC=""
  3769   else
  3770     case $cross_compiling:$ac_tool_warned in
  3771 yes:)
  3772 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3774 ac_tool_warned=yes ;;
  3775 esac
  3776     CC=$ac_ct_CC
  3777   fi
  3778 else
  3779   CC="$ac_cv_prog_CC"
  3780 fi
  3782 if test -z "$CC"; then
  3783           if test -n "$ac_tool_prefix"; then
  3784     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3785 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3787 $as_echo_n "checking for $ac_word... " >&6; }
  3788 if test "${ac_cv_prog_CC+set}" = set; then
  3789   $as_echo_n "(cached) " >&6
  3790 else
  3791   if test -n "$CC"; then
  3792   ac_cv_prog_CC="$CC" # Let the user override the test.
  3793 else
  3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3795 for as_dir in $PATH
  3796 do
  3797   IFS=$as_save_IFS
  3798   test -z "$as_dir" && as_dir=.
  3799   for ac_exec_ext in '' $ac_executable_extensions; do
  3800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3801     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3802     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3803     break 2
  3804   fi
  3805 done
  3806 done
  3807 IFS=$as_save_IFS
  3809 fi
  3810 fi
  3811 CC=$ac_cv_prog_CC
  3812 if test -n "$CC"; then
  3813   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3814 $as_echo "$CC" >&6; }
  3815 else
  3816   { $as_echo "$as_me:$LINENO: result: no" >&5
  3817 $as_echo "no" >&6; }
  3818 fi
  3821   fi
  3822 fi
  3823 if test -z "$CC"; then
  3824   # Extract the first word of "cc", so it can be a program name with args.
  3825 set dummy cc; ac_word=$2
  3826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3827 $as_echo_n "checking for $ac_word... " >&6; }
  3828 if test "${ac_cv_prog_CC+set}" = set; then
  3829   $as_echo_n "(cached) " >&6
  3830 else
  3831   if test -n "$CC"; then
  3832   ac_cv_prog_CC="$CC" # Let the user override the test.
  3833 else
  3834   ac_prog_rejected=no
  3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3836 for as_dir in $PATH
  3837 do
  3838   IFS=$as_save_IFS
  3839   test -z "$as_dir" && as_dir=.
  3840   for ac_exec_ext in '' $ac_executable_extensions; do
  3841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3842     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3843        ac_prog_rejected=yes
  3844        continue
  3845      fi
  3846     ac_cv_prog_CC="cc"
  3847     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3848     break 2
  3849   fi
  3850 done
  3851 done
  3852 IFS=$as_save_IFS
  3854 if test $ac_prog_rejected = yes; then
  3855   # We found a bogon in the path, so make sure we never use it.
  3856   set dummy $ac_cv_prog_CC
  3857   shift
  3858   if test $# != 0; then
  3859     # We chose a different compiler from the bogus one.
  3860     # However, it has the same basename, so the bogon will be chosen
  3861     # first if we set CC to just the basename; use the full file name.
  3862     shift
  3863     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3864   fi
  3865 fi
  3866 fi
  3867 fi
  3868 CC=$ac_cv_prog_CC
  3869 if test -n "$CC"; then
  3870   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3871 $as_echo "$CC" >&6; }
  3872 else
  3873   { $as_echo "$as_me:$LINENO: result: no" >&5
  3874 $as_echo "no" >&6; }
  3875 fi
  3878 fi
  3879 if test -z "$CC"; then
  3880   if test -n "$ac_tool_prefix"; then
  3881   for ac_prog in cl.exe
  3882   do
  3883     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3885 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3886 $as_echo_n "checking for $ac_word... " >&6; }
  3887 if test "${ac_cv_prog_CC+set}" = set; then
  3888   $as_echo_n "(cached) " >&6
  3889 else
  3890   if test -n "$CC"; then
  3891   ac_cv_prog_CC="$CC" # Let the user override the test.
  3892 else
  3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3894 for as_dir in $PATH
  3895 do
  3896   IFS=$as_save_IFS
  3897   test -z "$as_dir" && as_dir=.
  3898   for ac_exec_ext in '' $ac_executable_extensions; do
  3899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3900     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3901     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3902     break 2
  3903   fi
  3904 done
  3905 done
  3906 IFS=$as_save_IFS
  3908 fi
  3909 fi
  3910 CC=$ac_cv_prog_CC
  3911 if test -n "$CC"; then
  3912   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3913 $as_echo "$CC" >&6; }
  3914 else
  3915   { $as_echo "$as_me:$LINENO: result: no" >&5
  3916 $as_echo "no" >&6; }
  3917 fi
  3920     test -n "$CC" && break
  3921   done
  3922 fi
  3923 if test -z "$CC"; then
  3924   ac_ct_CC=$CC
  3925   for ac_prog in cl.exe
  3926 do
  3927   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3928 set dummy $ac_prog; ac_word=$2
  3929 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3930 $as_echo_n "checking for $ac_word... " >&6; }
  3931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3932   $as_echo_n "(cached) " >&6
  3933 else
  3934   if test -n "$ac_ct_CC"; then
  3935   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3936 else
  3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3938 for as_dir in $PATH
  3939 do
  3940   IFS=$as_save_IFS
  3941   test -z "$as_dir" && as_dir=.
  3942   for ac_exec_ext in '' $ac_executable_extensions; do
  3943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3944     ac_cv_prog_ac_ct_CC="$ac_prog"
  3945     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3946     break 2
  3947   fi
  3948 done
  3949 done
  3950 IFS=$as_save_IFS
  3952 fi
  3953 fi
  3954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3955 if test -n "$ac_ct_CC"; then
  3956   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3957 $as_echo "$ac_ct_CC" >&6; }
  3958 else
  3959   { $as_echo "$as_me:$LINENO: result: no" >&5
  3960 $as_echo "no" >&6; }
  3961 fi
  3964   test -n "$ac_ct_CC" && break
  3965 done
  3967   if test "x$ac_ct_CC" = x; then
  3968     CC=""
  3969   else
  3970     case $cross_compiling:$ac_tool_warned in
  3971 yes:)
  3972 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3974 ac_tool_warned=yes ;;
  3975 esac
  3976     CC=$ac_ct_CC
  3977   fi
  3978 fi
  3980 fi
  3983 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3985 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3986 See \`config.log' for more details." >&5
  3987 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3988 See \`config.log' for more details." >&2;}
  3989    { (exit 1); exit 1; }; }; }
  3991 # Provide some information about the compiler.
  3992 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3993 set X $ac_compile
  3994 ac_compiler=$2
  3995 { (ac_try="$ac_compiler --version >&5"
  3996 case "(($ac_try" in
  3997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3998   *) ac_try_echo=$ac_try;;
  3999 esac
  4000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4001 $as_echo "$ac_try_echo") >&5
  4002   (eval "$ac_compiler --version >&5") 2>&5
  4003   ac_status=$?
  4004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4005   (exit $ac_status); }
  4006 { (ac_try="$ac_compiler -v >&5"
  4007 case "(($ac_try" in
  4008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4009   *) ac_try_echo=$ac_try;;
  4010 esac
  4011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4012 $as_echo "$ac_try_echo") >&5
  4013   (eval "$ac_compiler -v >&5") 2>&5
  4014   ac_status=$?
  4015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4016   (exit $ac_status); }
  4017 { (ac_try="$ac_compiler -V >&5"
  4018 case "(($ac_try" in
  4019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4020   *) ac_try_echo=$ac_try;;
  4021 esac
  4022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4023 $as_echo "$ac_try_echo") >&5
  4024   (eval "$ac_compiler -V >&5") 2>&5
  4025   ac_status=$?
  4026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4027   (exit $ac_status); }
  4029 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4030 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4031 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4032   $as_echo_n "(cached) " >&6
  4033 else
  4034   cat >conftest.$ac_ext <<_ACEOF
  4035 /* confdefs.h.  */
  4036 _ACEOF
  4037 cat confdefs.h >>conftest.$ac_ext
  4038 cat >>conftest.$ac_ext <<_ACEOF
  4039 /* end confdefs.h.  */
  4041 int
  4042 main ()
  4044 #ifndef __GNUC__
  4045        choke me
  4046 #endif
  4049   return 0;
  4051 _ACEOF
  4052 rm -f conftest.$ac_objext
  4053 if { (ac_try="$ac_compile"
  4054 case "(($ac_try" in
  4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4056   *) ac_try_echo=$ac_try;;
  4057 esac
  4058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4059 $as_echo "$ac_try_echo") >&5
  4060   (eval "$ac_compile") 2>conftest.er1
  4061   ac_status=$?
  4062   grep -v '^ *+' conftest.er1 >conftest.err
  4063   rm -f conftest.er1
  4064   cat conftest.err >&5
  4065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4066   (exit $ac_status); } && {
  4067 	 test -z "$ac_c_werror_flag" ||
  4068 	 test ! -s conftest.err
  4069        } && test -s conftest.$ac_objext; then
  4070   ac_compiler_gnu=yes
  4071 else
  4072   $as_echo "$as_me: failed program was:" >&5
  4073 sed 's/^/| /' conftest.$ac_ext >&5
  4075 	ac_compiler_gnu=no
  4076 fi
  4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4079 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4081 fi
  4082 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4083 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4084 if test $ac_compiler_gnu = yes; then
  4085   GCC=yes
  4086 else
  4087   GCC=
  4088 fi
  4089 ac_test_CFLAGS=${CFLAGS+set}
  4090 ac_save_CFLAGS=$CFLAGS
  4091 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4092 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4093 if test "${ac_cv_prog_cc_g+set}" = set; then
  4094   $as_echo_n "(cached) " >&6
  4095 else
  4096   ac_save_c_werror_flag=$ac_c_werror_flag
  4097    ac_c_werror_flag=yes
  4098    ac_cv_prog_cc_g=no
  4099    CFLAGS="-g"
  4100    cat >conftest.$ac_ext <<_ACEOF
  4101 /* confdefs.h.  */
  4102 _ACEOF
  4103 cat confdefs.h >>conftest.$ac_ext
  4104 cat >>conftest.$ac_ext <<_ACEOF
  4105 /* end confdefs.h.  */
  4107 int
  4108 main ()
  4112   return 0;
  4114 _ACEOF
  4115 rm -f conftest.$ac_objext
  4116 if { (ac_try="$ac_compile"
  4117 case "(($ac_try" in
  4118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4119   *) ac_try_echo=$ac_try;;
  4120 esac
  4121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4122 $as_echo "$ac_try_echo") >&5
  4123   (eval "$ac_compile") 2>conftest.er1
  4124   ac_status=$?
  4125   grep -v '^ *+' conftest.er1 >conftest.err
  4126   rm -f conftest.er1
  4127   cat conftest.err >&5
  4128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4129   (exit $ac_status); } && {
  4130 	 test -z "$ac_c_werror_flag" ||
  4131 	 test ! -s conftest.err
  4132        } && test -s conftest.$ac_objext; then
  4133   ac_cv_prog_cc_g=yes
  4134 else
  4135   $as_echo "$as_me: failed program was:" >&5
  4136 sed 's/^/| /' conftest.$ac_ext >&5
  4138 	CFLAGS=""
  4139       cat >conftest.$ac_ext <<_ACEOF
  4140 /* confdefs.h.  */
  4141 _ACEOF
  4142 cat confdefs.h >>conftest.$ac_ext
  4143 cat >>conftest.$ac_ext <<_ACEOF
  4144 /* end confdefs.h.  */
  4146 int
  4147 main ()
  4151   return 0;
  4153 _ACEOF
  4154 rm -f conftest.$ac_objext
  4155 if { (ac_try="$ac_compile"
  4156 case "(($ac_try" in
  4157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4158   *) ac_try_echo=$ac_try;;
  4159 esac
  4160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4161 $as_echo "$ac_try_echo") >&5
  4162   (eval "$ac_compile") 2>conftest.er1
  4163   ac_status=$?
  4164   grep -v '^ *+' conftest.er1 >conftest.err
  4165   rm -f conftest.er1
  4166   cat conftest.err >&5
  4167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4168   (exit $ac_status); } && {
  4169 	 test -z "$ac_c_werror_flag" ||
  4170 	 test ! -s conftest.err
  4171        } && test -s conftest.$ac_objext; then
  4173 else
  4174   $as_echo "$as_me: failed program was:" >&5
  4175 sed 's/^/| /' conftest.$ac_ext >&5
  4177 	ac_c_werror_flag=$ac_save_c_werror_flag
  4178 	 CFLAGS="-g"
  4179 	 cat >conftest.$ac_ext <<_ACEOF
  4180 /* confdefs.h.  */
  4181 _ACEOF
  4182 cat confdefs.h >>conftest.$ac_ext
  4183 cat >>conftest.$ac_ext <<_ACEOF
  4184 /* end confdefs.h.  */
  4186 int
  4187 main ()
  4191   return 0;
  4193 _ACEOF
  4194 rm -f conftest.$ac_objext
  4195 if { (ac_try="$ac_compile"
  4196 case "(($ac_try" in
  4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4198   *) ac_try_echo=$ac_try;;
  4199 esac
  4200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4201 $as_echo "$ac_try_echo") >&5
  4202   (eval "$ac_compile") 2>conftest.er1
  4203   ac_status=$?
  4204   grep -v '^ *+' conftest.er1 >conftest.err
  4205   rm -f conftest.er1
  4206   cat conftest.err >&5
  4207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4208   (exit $ac_status); } && {
  4209 	 test -z "$ac_c_werror_flag" ||
  4210 	 test ! -s conftest.err
  4211        } && test -s conftest.$ac_objext; then
  4212   ac_cv_prog_cc_g=yes
  4213 else
  4214   $as_echo "$as_me: failed program was:" >&5
  4215 sed 's/^/| /' conftest.$ac_ext >&5
  4218 fi
  4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4221 fi
  4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4224 fi
  4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4227    ac_c_werror_flag=$ac_save_c_werror_flag
  4228 fi
  4229 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4230 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4231 if test "$ac_test_CFLAGS" = set; then
  4232   CFLAGS=$ac_save_CFLAGS
  4233 elif test $ac_cv_prog_cc_g = yes; then
  4234   if test "$GCC" = yes; then
  4235     CFLAGS="-g -O2"
  4236   else
  4237     CFLAGS="-g"
  4238   fi
  4239 else
  4240   if test "$GCC" = yes; then
  4241     CFLAGS="-O2"
  4242   else
  4243     CFLAGS=
  4244   fi
  4245 fi
  4246 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4247 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4248 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4249   $as_echo_n "(cached) " >&6
  4250 else
  4251   ac_cv_prog_cc_c89=no
  4252 ac_save_CC=$CC
  4253 cat >conftest.$ac_ext <<_ACEOF
  4254 /* confdefs.h.  */
  4255 _ACEOF
  4256 cat confdefs.h >>conftest.$ac_ext
  4257 cat >>conftest.$ac_ext <<_ACEOF
  4258 /* end confdefs.h.  */
  4259 #include <stdarg.h>
  4260 #include <stdio.h>
  4261 #include <sys/types.h>
  4262 #include <sys/stat.h>
  4263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4264 struct buf { int x; };
  4265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4266 static char *e (p, i)
  4267      char **p;
  4268      int i;
  4270   return p[i];
  4272 static char *f (char * (*g) (char **, int), char **p, ...)
  4274   char *s;
  4275   va_list v;
  4276   va_start (v,p);
  4277   s = g (p, va_arg (v,int));
  4278   va_end (v);
  4279   return s;
  4282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4283    function prototypes and stuff, but not '\xHH' hex character constants.
  4284    These don't provoke an error unfortunately, instead are silently treated
  4285    as 'x'.  The following induces an error, until -std is added to get
  4286    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4287    array size at least.  It's necessary to write '\x00'==0 to get something
  4288    that's true only with -std.  */
  4289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4292    inside strings and character constants.  */
  4293 #define FOO(x) 'x'
  4294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4296 int test (int i, double x);
  4297 struct s1 {int (*f) (int a);};
  4298 struct s2 {int (*f) (double a);};
  4299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4300 int argc;
  4301 char **argv;
  4302 int
  4303 main ()
  4305 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4307   return 0;
  4309 _ACEOF
  4310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4311 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4312 do
  4313   CC="$ac_save_CC $ac_arg"
  4314   rm -f conftest.$ac_objext
  4315 if { (ac_try="$ac_compile"
  4316 case "(($ac_try" in
  4317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4318   *) ac_try_echo=$ac_try;;
  4319 esac
  4320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4321 $as_echo "$ac_try_echo") >&5
  4322   (eval "$ac_compile") 2>conftest.er1
  4323   ac_status=$?
  4324   grep -v '^ *+' conftest.er1 >conftest.err
  4325   rm -f conftest.er1
  4326   cat conftest.err >&5
  4327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328   (exit $ac_status); } && {
  4329 	 test -z "$ac_c_werror_flag" ||
  4330 	 test ! -s conftest.err
  4331        } && test -s conftest.$ac_objext; then
  4332   ac_cv_prog_cc_c89=$ac_arg
  4333 else
  4334   $as_echo "$as_me: failed program was:" >&5
  4335 sed 's/^/| /' conftest.$ac_ext >&5
  4338 fi
  4340 rm -f core conftest.err conftest.$ac_objext
  4341   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4342 done
  4343 rm -f conftest.$ac_ext
  4344 CC=$ac_save_CC
  4346 fi
  4347 # AC_CACHE_VAL
  4348 case "x$ac_cv_prog_cc_c89" in
  4349   x)
  4350     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4351 $as_echo "none needed" >&6; } ;;
  4352   xno)
  4353     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4354 $as_echo "unsupported" >&6; } ;;
  4355   *)
  4356     CC="$CC $ac_cv_prog_cc_c89"
  4357     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4358 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4359 esac
  4362 ac_ext=c
  4363 ac_cpp='$CPP $CPPFLAGS'
  4364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4368 depcc="$CC"   am_compiler_list=
  4370 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4371 $as_echo_n "checking dependency style of $depcc... " >&6; }
  4372 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4373   $as_echo_n "(cached) " >&6
  4374 else
  4375   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4376   # We make a subdir and do the tests there.  Otherwise we can end up
  4377   # making bogus files that we don't know about and never remove.  For
  4378   # instance it was reported that on HP-UX the gcc test will end up
  4379   # making a dummy file named `D' -- because `-MD' means `put the output
  4380   # in D'.
  4381   mkdir conftest.dir
  4382   # Copy depcomp to subdir because otherwise we won't find it if we're
  4383   # using a relative directory.
  4384   cp "$am_depcomp" conftest.dir
  4385   cd conftest.dir
  4386   # We will build objects and dependencies in a subdirectory because
  4387   # it helps to detect inapplicable dependency modes.  For instance
  4388   # both Tru64's cc and ICC support -MD to output dependencies as a
  4389   # side effect of compilation, but ICC will put the dependencies in
  4390   # the current directory while Tru64 will put them in the object
  4391   # directory.
  4392   mkdir sub
  4394   am_cv_CC_dependencies_compiler_type=none
  4395   if test "$am_compiler_list" = ""; then
  4396      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4397   fi
  4398   for depmode in $am_compiler_list; do
  4399     # Setup a source with many dependencies, because some compilers
  4400     # like to wrap large dependency lists on column 80 (with \), and
  4401     # we should not choose a depcomp mode which is confused by this.
  4403     # We need to recreate these files for each test, as the compiler may
  4404     # overwrite some of them when testing with obscure command lines.
  4405     # This happens at least with the AIX C compiler.
  4406     : > sub/conftest.c
  4407     for i in 1 2 3 4 5 6; do
  4408       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4409       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4410       # Solaris 8's {/usr,}/bin/sh.
  4411       touch sub/conftst$i.h
  4412     done
  4413     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4415     case $depmode in
  4416     nosideeffect)
  4417       # after this tag, mechanisms are not by side-effect, so they'll
  4418       # only be used when explicitly requested
  4419       if test "x$enable_dependency_tracking" = xyes; then
  4420 	continue
  4421       else
  4422 	break
  4423       fi
  4424       ;;
  4425     none) break ;;
  4426     esac
  4427     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4428     # mode.  It turns out that the SunPro C++ compiler does not properly
  4429     # handle `-M -o', and we need to detect this.
  4430     if depmode=$depmode \
  4431        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4432        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4433        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4434          >/dev/null 2>conftest.err &&
  4435        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4436        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4437        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4438       # icc doesn't choke on unknown options, it will just issue warnings
  4439       # or remarks (even with -Werror).  So we grep stderr for any message
  4440       # that says an option was ignored or not supported.
  4441       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4442       #   icc: Command line warning: ignoring option '-M'; no argument required
  4443       # The diagnosis changed in icc 8.0:
  4444       #   icc: Command line remark: option '-MP' not supported
  4445       if (grep 'ignoring option' conftest.err ||
  4446           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4447         am_cv_CC_dependencies_compiler_type=$depmode
  4448         break
  4449       fi
  4450     fi
  4451   done
  4453   cd ..
  4454   rm -rf conftest.dir
  4455 else
  4456   am_cv_CC_dependencies_compiler_type=none
  4457 fi
  4459 fi
  4460 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4461 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4462 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4466 if
  4467   test "x$enable_dependency_tracking" != xno \
  4468   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4469   am__fastdepCC_TRUE=
  4470   am__fastdepCC_FALSE='#'
  4471 else
  4472   am__fastdepCC_TRUE='#'
  4473   am__fastdepCC_FALSE=
  4474 fi
  4477 ac_ext=c
  4478 ac_cpp='$CPP $CPPFLAGS'
  4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4482 if test -n "$ac_tool_prefix"; then
  4483   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4486 $as_echo_n "checking for $ac_word... " >&6; }
  4487 if test "${ac_cv_prog_CC+set}" = set; then
  4488   $as_echo_n "(cached) " >&6
  4489 else
  4490   if test -n "$CC"; then
  4491   ac_cv_prog_CC="$CC" # Let the user override the test.
  4492 else
  4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4494 for as_dir in $PATH
  4495 do
  4496   IFS=$as_save_IFS
  4497   test -z "$as_dir" && as_dir=.
  4498   for ac_exec_ext in '' $ac_executable_extensions; do
  4499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4500     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4501     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4502     break 2
  4503   fi
  4504 done
  4505 done
  4506 IFS=$as_save_IFS
  4508 fi
  4509 fi
  4510 CC=$ac_cv_prog_CC
  4511 if test -n "$CC"; then
  4512   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4513 $as_echo "$CC" >&6; }
  4514 else
  4515   { $as_echo "$as_me:$LINENO: result: no" >&5
  4516 $as_echo "no" >&6; }
  4517 fi
  4520 fi
  4521 if test -z "$ac_cv_prog_CC"; then
  4522   ac_ct_CC=$CC
  4523   # Extract the first word of "gcc", so it can be a program name with args.
  4524 set dummy gcc; ac_word=$2
  4525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4526 $as_echo_n "checking for $ac_word... " >&6; }
  4527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4528   $as_echo_n "(cached) " >&6
  4529 else
  4530   if test -n "$ac_ct_CC"; then
  4531   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4532 else
  4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4534 for as_dir in $PATH
  4535 do
  4536   IFS=$as_save_IFS
  4537   test -z "$as_dir" && as_dir=.
  4538   for ac_exec_ext in '' $ac_executable_extensions; do
  4539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4540     ac_cv_prog_ac_ct_CC="gcc"
  4541     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4542     break 2
  4543   fi
  4544 done
  4545 done
  4546 IFS=$as_save_IFS
  4548 fi
  4549 fi
  4550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4551 if test -n "$ac_ct_CC"; then
  4552   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4553 $as_echo "$ac_ct_CC" >&6; }
  4554 else
  4555   { $as_echo "$as_me:$LINENO: result: no" >&5
  4556 $as_echo "no" >&6; }
  4557 fi
  4559   if test "x$ac_ct_CC" = x; then
  4560     CC=""
  4561   else
  4562     case $cross_compiling:$ac_tool_warned in
  4563 yes:)
  4564 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4566 ac_tool_warned=yes ;;
  4567 esac
  4568     CC=$ac_ct_CC
  4569   fi
  4570 else
  4571   CC="$ac_cv_prog_CC"
  4572 fi
  4574 if test -z "$CC"; then
  4575           if test -n "$ac_tool_prefix"; then
  4576     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4577 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4579 $as_echo_n "checking for $ac_word... " >&6; }
  4580 if test "${ac_cv_prog_CC+set}" = set; then
  4581   $as_echo_n "(cached) " >&6
  4582 else
  4583   if test -n "$CC"; then
  4584   ac_cv_prog_CC="$CC" # Let the user override the test.
  4585 else
  4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4587 for as_dir in $PATH
  4588 do
  4589   IFS=$as_save_IFS
  4590   test -z "$as_dir" && as_dir=.
  4591   for ac_exec_ext in '' $ac_executable_extensions; do
  4592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4593     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4594     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4595     break 2
  4596   fi
  4597 done
  4598 done
  4599 IFS=$as_save_IFS
  4601 fi
  4602 fi
  4603 CC=$ac_cv_prog_CC
  4604 if test -n "$CC"; then
  4605   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4606 $as_echo "$CC" >&6; }
  4607 else
  4608   { $as_echo "$as_me:$LINENO: result: no" >&5
  4609 $as_echo "no" >&6; }
  4610 fi
  4613   fi
  4614 fi
  4615 if test -z "$CC"; then
  4616   # Extract the first word of "cc", so it can be a program name with args.
  4617 set dummy cc; ac_word=$2
  4618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4619 $as_echo_n "checking for $ac_word... " >&6; }
  4620 if test "${ac_cv_prog_CC+set}" = set; then
  4621   $as_echo_n "(cached) " >&6
  4622 else
  4623   if test -n "$CC"; then
  4624   ac_cv_prog_CC="$CC" # Let the user override the test.
  4625 else
  4626   ac_prog_rejected=no
  4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4628 for as_dir in $PATH
  4629 do
  4630   IFS=$as_save_IFS
  4631   test -z "$as_dir" && as_dir=.
  4632   for ac_exec_ext in '' $ac_executable_extensions; do
  4633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4634     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4635        ac_prog_rejected=yes
  4636        continue
  4637      fi
  4638     ac_cv_prog_CC="cc"
  4639     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4640     break 2
  4641   fi
  4642 done
  4643 done
  4644 IFS=$as_save_IFS
  4646 if test $ac_prog_rejected = yes; then
  4647   # We found a bogon in the path, so make sure we never use it.
  4648   set dummy $ac_cv_prog_CC
  4649   shift
  4650   if test $# != 0; then
  4651     # We chose a different compiler from the bogus one.
  4652     # However, it has the same basename, so the bogon will be chosen
  4653     # first if we set CC to just the basename; use the full file name.
  4654     shift
  4655     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4656   fi
  4657 fi
  4658 fi
  4659 fi
  4660 CC=$ac_cv_prog_CC
  4661 if test -n "$CC"; then
  4662   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4663 $as_echo "$CC" >&6; }
  4664 else
  4665   { $as_echo "$as_me:$LINENO: result: no" >&5
  4666 $as_echo "no" >&6; }
  4667 fi
  4670 fi
  4671 if test -z "$CC"; then
  4672   if test -n "$ac_tool_prefix"; then
  4673   for ac_prog in cl.exe
  4674   do
  4675     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4677 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4678 $as_echo_n "checking for $ac_word... " >&6; }
  4679 if test "${ac_cv_prog_CC+set}" = set; then
  4680   $as_echo_n "(cached) " >&6
  4681 else
  4682   if test -n "$CC"; then
  4683   ac_cv_prog_CC="$CC" # Let the user override the test.
  4684 else
  4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4686 for as_dir in $PATH
  4687 do
  4688   IFS=$as_save_IFS
  4689   test -z "$as_dir" && as_dir=.
  4690   for ac_exec_ext in '' $ac_executable_extensions; do
  4691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4692     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4693     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4694     break 2
  4695   fi
  4696 done
  4697 done
  4698 IFS=$as_save_IFS
  4700 fi
  4701 fi
  4702 CC=$ac_cv_prog_CC
  4703 if test -n "$CC"; then
  4704   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4705 $as_echo "$CC" >&6; }
  4706 else
  4707   { $as_echo "$as_me:$LINENO: result: no" >&5
  4708 $as_echo "no" >&6; }
  4709 fi
  4712     test -n "$CC" && break
  4713   done
  4714 fi
  4715 if test -z "$CC"; then
  4716   ac_ct_CC=$CC
  4717   for ac_prog in cl.exe
  4718 do
  4719   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4720 set dummy $ac_prog; ac_word=$2
  4721 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4722 $as_echo_n "checking for $ac_word... " >&6; }
  4723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4724   $as_echo_n "(cached) " >&6
  4725 else
  4726   if test -n "$ac_ct_CC"; then
  4727   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4728 else
  4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4730 for as_dir in $PATH
  4731 do
  4732   IFS=$as_save_IFS
  4733   test -z "$as_dir" && as_dir=.
  4734   for ac_exec_ext in '' $ac_executable_extensions; do
  4735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4736     ac_cv_prog_ac_ct_CC="$ac_prog"
  4737     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4738     break 2
  4739   fi
  4740 done
  4741 done
  4742 IFS=$as_save_IFS
  4744 fi
  4745 fi
  4746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4747 if test -n "$ac_ct_CC"; then
  4748   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4749 $as_echo "$ac_ct_CC" >&6; }
  4750 else
  4751   { $as_echo "$as_me:$LINENO: result: no" >&5
  4752 $as_echo "no" >&6; }
  4753 fi
  4756   test -n "$ac_ct_CC" && break
  4757 done
  4759   if test "x$ac_ct_CC" = x; then
  4760     CC=""
  4761   else
  4762     case $cross_compiling:$ac_tool_warned in
  4763 yes:)
  4764 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4766 ac_tool_warned=yes ;;
  4767 esac
  4768     CC=$ac_ct_CC
  4769   fi
  4770 fi
  4772 fi
  4775 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4777 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4778 See \`config.log' for more details." >&5
  4779 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  4780 See \`config.log' for more details." >&2;}
  4781    { (exit 1); exit 1; }; }; }
  4783 # Provide some information about the compiler.
  4784 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  4785 set X $ac_compile
  4786 ac_compiler=$2
  4787 { (ac_try="$ac_compiler --version >&5"
  4788 case "(($ac_try" in
  4789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4790   *) ac_try_echo=$ac_try;;
  4791 esac
  4792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4793 $as_echo "$ac_try_echo") >&5
  4794   (eval "$ac_compiler --version >&5") 2>&5
  4795   ac_status=$?
  4796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4797   (exit $ac_status); }
  4798 { (ac_try="$ac_compiler -v >&5"
  4799 case "(($ac_try" in
  4800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4801   *) ac_try_echo=$ac_try;;
  4802 esac
  4803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4804 $as_echo "$ac_try_echo") >&5
  4805   (eval "$ac_compiler -v >&5") 2>&5
  4806   ac_status=$?
  4807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4808   (exit $ac_status); }
  4809 { (ac_try="$ac_compiler -V >&5"
  4810 case "(($ac_try" in
  4811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4812   *) ac_try_echo=$ac_try;;
  4813 esac
  4814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4815 $as_echo "$ac_try_echo") >&5
  4816   (eval "$ac_compiler -V >&5") 2>&5
  4817   ac_status=$?
  4818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4819   (exit $ac_status); }
  4821 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4822 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4823 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4824   $as_echo_n "(cached) " >&6
  4825 else
  4826   cat >conftest.$ac_ext <<_ACEOF
  4827 /* confdefs.h.  */
  4828 _ACEOF
  4829 cat confdefs.h >>conftest.$ac_ext
  4830 cat >>conftest.$ac_ext <<_ACEOF
  4831 /* end confdefs.h.  */
  4833 int
  4834 main ()
  4836 #ifndef __GNUC__
  4837        choke me
  4838 #endif
  4841   return 0;
  4843 _ACEOF
  4844 rm -f conftest.$ac_objext
  4845 if { (ac_try="$ac_compile"
  4846 case "(($ac_try" in
  4847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4848   *) ac_try_echo=$ac_try;;
  4849 esac
  4850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4851 $as_echo "$ac_try_echo") >&5
  4852   (eval "$ac_compile") 2>conftest.er1
  4853   ac_status=$?
  4854   grep -v '^ *+' conftest.er1 >conftest.err
  4855   rm -f conftest.er1
  4856   cat conftest.err >&5
  4857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4858   (exit $ac_status); } && {
  4859 	 test -z "$ac_c_werror_flag" ||
  4860 	 test ! -s conftest.err
  4861        } && test -s conftest.$ac_objext; then
  4862   ac_compiler_gnu=yes
  4863 else
  4864   $as_echo "$as_me: failed program was:" >&5
  4865 sed 's/^/| /' conftest.$ac_ext >&5
  4867 	ac_compiler_gnu=no
  4868 fi
  4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4871 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4873 fi
  4874 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4875 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4876 if test $ac_compiler_gnu = yes; then
  4877   GCC=yes
  4878 else
  4879   GCC=
  4880 fi
  4881 ac_test_CFLAGS=${CFLAGS+set}
  4882 ac_save_CFLAGS=$CFLAGS
  4883 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4884 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4885 if test "${ac_cv_prog_cc_g+set}" = set; then
  4886   $as_echo_n "(cached) " >&6
  4887 else
  4888   ac_save_c_werror_flag=$ac_c_werror_flag
  4889    ac_c_werror_flag=yes
  4890    ac_cv_prog_cc_g=no
  4891    CFLAGS="-g"
  4892    cat >conftest.$ac_ext <<_ACEOF
  4893 /* confdefs.h.  */
  4894 _ACEOF
  4895 cat confdefs.h >>conftest.$ac_ext
  4896 cat >>conftest.$ac_ext <<_ACEOF
  4897 /* end confdefs.h.  */
  4899 int
  4900 main ()
  4904   return 0;
  4906 _ACEOF
  4907 rm -f conftest.$ac_objext
  4908 if { (ac_try="$ac_compile"
  4909 case "(($ac_try" in
  4910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4911   *) ac_try_echo=$ac_try;;
  4912 esac
  4913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4914 $as_echo "$ac_try_echo") >&5
  4915   (eval "$ac_compile") 2>conftest.er1
  4916   ac_status=$?
  4917   grep -v '^ *+' conftest.er1 >conftest.err
  4918   rm -f conftest.er1
  4919   cat conftest.err >&5
  4920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4921   (exit $ac_status); } && {
  4922 	 test -z "$ac_c_werror_flag" ||
  4923 	 test ! -s conftest.err
  4924        } && test -s conftest.$ac_objext; then
  4925   ac_cv_prog_cc_g=yes
  4926 else
  4927   $as_echo "$as_me: failed program was:" >&5
  4928 sed 's/^/| /' conftest.$ac_ext >&5
  4930 	CFLAGS=""
  4931       cat >conftest.$ac_ext <<_ACEOF
  4932 /* confdefs.h.  */
  4933 _ACEOF
  4934 cat confdefs.h >>conftest.$ac_ext
  4935 cat >>conftest.$ac_ext <<_ACEOF
  4936 /* end confdefs.h.  */
  4938 int
  4939 main ()
  4943   return 0;
  4945 _ACEOF
  4946 rm -f conftest.$ac_objext
  4947 if { (ac_try="$ac_compile"
  4948 case "(($ac_try" in
  4949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4950   *) ac_try_echo=$ac_try;;
  4951 esac
  4952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4953 $as_echo "$ac_try_echo") >&5
  4954   (eval "$ac_compile") 2>conftest.er1
  4955   ac_status=$?
  4956   grep -v '^ *+' conftest.er1 >conftest.err
  4957   rm -f conftest.er1
  4958   cat conftest.err >&5
  4959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4960   (exit $ac_status); } && {
  4961 	 test -z "$ac_c_werror_flag" ||
  4962 	 test ! -s conftest.err
  4963        } && test -s conftest.$ac_objext; then
  4965 else
  4966   $as_echo "$as_me: failed program was:" >&5
  4967 sed 's/^/| /' conftest.$ac_ext >&5
  4969 	ac_c_werror_flag=$ac_save_c_werror_flag
  4970 	 CFLAGS="-g"
  4971 	 cat >conftest.$ac_ext <<_ACEOF
  4972 /* confdefs.h.  */
  4973 _ACEOF
  4974 cat confdefs.h >>conftest.$ac_ext
  4975 cat >>conftest.$ac_ext <<_ACEOF
  4976 /* end confdefs.h.  */
  4978 int
  4979 main ()
  4983   return 0;
  4985 _ACEOF
  4986 rm -f conftest.$ac_objext
  4987 if { (ac_try="$ac_compile"
  4988 case "(($ac_try" in
  4989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4990   *) ac_try_echo=$ac_try;;
  4991 esac
  4992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4993 $as_echo "$ac_try_echo") >&5
  4994   (eval "$ac_compile") 2>conftest.er1
  4995   ac_status=$?
  4996   grep -v '^ *+' conftest.er1 >conftest.err
  4997   rm -f conftest.er1
  4998   cat conftest.err >&5
  4999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5000   (exit $ac_status); } && {
  5001 	 test -z "$ac_c_werror_flag" ||
  5002 	 test ! -s conftest.err
  5003        } && test -s conftest.$ac_objext; then
  5004   ac_cv_prog_cc_g=yes
  5005 else
  5006   $as_echo "$as_me: failed program was:" >&5
  5007 sed 's/^/| /' conftest.$ac_ext >&5
  5010 fi
  5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5013 fi
  5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5016 fi
  5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5019    ac_c_werror_flag=$ac_save_c_werror_flag
  5020 fi
  5021 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5022 $as_echo "$ac_cv_prog_cc_g" >&6; }
  5023 if test "$ac_test_CFLAGS" = set; then
  5024   CFLAGS=$ac_save_CFLAGS
  5025 elif test $ac_cv_prog_cc_g = yes; then
  5026   if test "$GCC" = yes; then
  5027     CFLAGS="-g -O2"
  5028   else
  5029     CFLAGS="-g"
  5030   fi
  5031 else
  5032   if test "$GCC" = yes; then
  5033     CFLAGS="-O2"
  5034   else
  5035     CFLAGS=
  5036   fi
  5037 fi
  5038 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5039 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5040 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5041   $as_echo_n "(cached) " >&6
  5042 else
  5043   ac_cv_prog_cc_c89=no
  5044 ac_save_CC=$CC
  5045 cat >conftest.$ac_ext <<_ACEOF
  5046 /* confdefs.h.  */
  5047 _ACEOF
  5048 cat confdefs.h >>conftest.$ac_ext
  5049 cat >>conftest.$ac_ext <<_ACEOF
  5050 /* end confdefs.h.  */
  5051 #include <stdarg.h>
  5052 #include <stdio.h>
  5053 #include <sys/types.h>
  5054 #include <sys/stat.h>
  5055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5056 struct buf { int x; };
  5057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5058 static char *e (p, i)
  5059      char **p;
  5060      int i;
  5062   return p[i];
  5064 static char *f (char * (*g) (char **, int), char **p, ...)
  5066   char *s;
  5067   va_list v;
  5068   va_start (v,p);
  5069   s = g (p, va_arg (v,int));
  5070   va_end (v);
  5071   return s;
  5074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5075    function prototypes and stuff, but not '\xHH' hex character constants.
  5076    These don't provoke an error unfortunately, instead are silently treated
  5077    as 'x'.  The following induces an error, until -std is added to get
  5078    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5079    array size at least.  It's necessary to write '\x00'==0 to get something
  5080    that's true only with -std.  */
  5081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5083 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5084    inside strings and character constants.  */
  5085 #define FOO(x) 'x'
  5086 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5088 int test (int i, double x);
  5089 struct s1 {int (*f) (int a);};
  5090 struct s2 {int (*f) (double a);};
  5091 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5092 int argc;
  5093 char **argv;
  5094 int
  5095 main ()
  5097 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5099   return 0;
  5101 _ACEOF
  5102 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5103 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5104 do
  5105   CC="$ac_save_CC $ac_arg"
  5106   rm -f conftest.$ac_objext
  5107 if { (ac_try="$ac_compile"
  5108 case "(($ac_try" in
  5109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5110   *) ac_try_echo=$ac_try;;
  5111 esac
  5112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5113 $as_echo "$ac_try_echo") >&5
  5114   (eval "$ac_compile") 2>conftest.er1
  5115   ac_status=$?
  5116   grep -v '^ *+' conftest.er1 >conftest.err
  5117   rm -f conftest.er1
  5118   cat conftest.err >&5
  5119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5120   (exit $ac_status); } && {
  5121 	 test -z "$ac_c_werror_flag" ||
  5122 	 test ! -s conftest.err
  5123        } && test -s conftest.$ac_objext; then
  5124   ac_cv_prog_cc_c89=$ac_arg
  5125 else
  5126   $as_echo "$as_me: failed program was:" >&5
  5127 sed 's/^/| /' conftest.$ac_ext >&5
  5130 fi
  5132 rm -f core conftest.err conftest.$ac_objext
  5133   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5134 done
  5135 rm -f conftest.$ac_ext
  5136 CC=$ac_save_CC
  5138 fi
  5139 # AC_CACHE_VAL
  5140 case "x$ac_cv_prog_cc_c89" in
  5141   x)
  5142     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5143 $as_echo "none needed" >&6; } ;;
  5144   xno)
  5145     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5146 $as_echo "unsupported" >&6; } ;;
  5147   *)
  5148     CC="$CC $ac_cv_prog_cc_c89"
  5149     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5150 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5151 esac
  5154 ac_ext=c
  5155 ac_cpp='$CPP $CPPFLAGS'
  5156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5160 depcc="$CC"   am_compiler_list=
  5162 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5163 $as_echo_n "checking dependency style of $depcc... " >&6; }
  5164 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5165   $as_echo_n "(cached) " >&6
  5166 else
  5167   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5168   # We make a subdir and do the tests there.  Otherwise we can end up
  5169   # making bogus files that we don't know about and never remove.  For
  5170   # instance it was reported that on HP-UX the gcc test will end up
  5171   # making a dummy file named `D' -- because `-MD' means `put the output
  5172   # in D'.
  5173   mkdir conftest.dir
  5174   # Copy depcomp to subdir because otherwise we won't find it if we're
  5175   # using a relative directory.
  5176   cp "$am_depcomp" conftest.dir
  5177   cd conftest.dir
  5178   # We will build objects and dependencies in a subdirectory because
  5179   # it helps to detect inapplicable dependency modes.  For instance
  5180   # both Tru64's cc and ICC support -MD to output dependencies as a
  5181   # side effect of compilation, but ICC will put the dependencies in
  5182   # the current directory while Tru64 will put them in the object
  5183   # directory.
  5184   mkdir sub
  5186   am_cv_CC_dependencies_compiler_type=none
  5187   if test "$am_compiler_list" = ""; then
  5188      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5189   fi
  5190   for depmode in $am_compiler_list; do
  5191     # Setup a source with many dependencies, because some compilers
  5192     # like to wrap large dependency lists on column 80 (with \), and
  5193     # we should not choose a depcomp mode which is confused by this.
  5195     # We need to recreate these files for each test, as the compiler may
  5196     # overwrite some of them when testing with obscure command lines.
  5197     # This happens at least with the AIX C compiler.
  5198     : > sub/conftest.c
  5199     for i in 1 2 3 4 5 6; do
  5200       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5201       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5202       # Solaris 8's {/usr,}/bin/sh.
  5203       touch sub/conftst$i.h
  5204     done
  5205     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5207     case $depmode in
  5208     nosideeffect)
  5209       # after this tag, mechanisms are not by side-effect, so they'll
  5210       # only be used when explicitly requested
  5211       if test "x$enable_dependency_tracking" = xyes; then
  5212 	continue
  5213       else
  5214 	break
  5215       fi
  5216       ;;
  5217     none) break ;;
  5218     esac
  5219     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5220     # mode.  It turns out that the SunPro C++ compiler does not properly
  5221     # handle `-M -o', and we need to detect this.
  5222     if depmode=$depmode \
  5223        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5224        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5225        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5226          >/dev/null 2>conftest.err &&
  5227        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5228        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5229        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5230       # icc doesn't choke on unknown options, it will just issue warnings
  5231       # or remarks (even with -Werror).  So we grep stderr for any message
  5232       # that says an option was ignored or not supported.
  5233       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5234       #   icc: Command line warning: ignoring option '-M'; no argument required
  5235       # The diagnosis changed in icc 8.0:
  5236       #   icc: Command line remark: option '-MP' not supported
  5237       if (grep 'ignoring option' conftest.err ||
  5238           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5239         am_cv_CC_dependencies_compiler_type=$depmode
  5240         break
  5241       fi
  5242     fi
  5243   done
  5245   cd ..
  5246   rm -rf conftest.dir
  5247 else
  5248   am_cv_CC_dependencies_compiler_type=none
  5249 fi
  5251 fi
  5252 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5253 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5254 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5258 if
  5259   test "x$enable_dependency_tracking" != xno \
  5260   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5261   am__fastdepCC_TRUE=
  5262   am__fastdepCC_FALSE='#'
  5263 else
  5264   am__fastdepCC_TRUE='#'
  5265   am__fastdepCC_FALSE=
  5266 fi
  5270 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5272 ac_ext=m
  5273 ac_cpp='$OBJCPP $CPPFLAGS'
  5274 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5275 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5276 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  5277 if test -n "$ac_tool_prefix"; then
  5278   for ac_prog in gcc objcc objc cc CC
  5279   do
  5280     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5283 $as_echo_n "checking for $ac_word... " >&6; }
  5284 if test "${ac_cv_prog_OBJC+set}" = set; then
  5285   $as_echo_n "(cached) " >&6
  5286 else
  5287   if test -n "$OBJC"; then
  5288   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  5289 else
  5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5291 for as_dir in $PATH
  5292 do
  5293   IFS=$as_save_IFS
  5294   test -z "$as_dir" && as_dir=.
  5295   for ac_exec_ext in '' $ac_executable_extensions; do
  5296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5297     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  5298     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5299     break 2
  5300   fi
  5301 done
  5302 done
  5303 IFS=$as_save_IFS
  5305 fi
  5306 fi
  5307 OBJC=$ac_cv_prog_OBJC
  5308 if test -n "$OBJC"; then
  5309   { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
  5310 $as_echo "$OBJC" >&6; }
  5311 else
  5312   { $as_echo "$as_me:$LINENO: result: no" >&5
  5313 $as_echo "no" >&6; }
  5314 fi
  5317     test -n "$OBJC" && break
  5318   done
  5319 fi
  5320 if test -z "$OBJC"; then
  5321   ac_ct_OBJC=$OBJC
  5322   for ac_prog in gcc objcc objc cc CC
  5323 do
  5324   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5325 set dummy $ac_prog; ac_word=$2
  5326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5327 $as_echo_n "checking for $ac_word... " >&6; }
  5328 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  5329   $as_echo_n "(cached) " >&6
  5330 else
  5331   if test -n "$ac_ct_OBJC"; then
  5332   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  5333 else
  5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5335 for as_dir in $PATH
  5336 do
  5337   IFS=$as_save_IFS
  5338   test -z "$as_dir" && as_dir=.
  5339   for ac_exec_ext in '' $ac_executable_extensions; do
  5340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5341     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  5342     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5343     break 2
  5344   fi
  5345 done
  5346 done
  5347 IFS=$as_save_IFS
  5349 fi
  5350 fi
  5351 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  5352 if test -n "$ac_ct_OBJC"; then
  5353   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  5354 $as_echo "$ac_ct_OBJC" >&6; }
  5355 else
  5356   { $as_echo "$as_me:$LINENO: result: no" >&5
  5357 $as_echo "no" >&6; }
  5358 fi
  5361   test -n "$ac_ct_OBJC" && break
  5362 done
  5364   if test "x$ac_ct_OBJC" = x; then
  5365     OBJC="gcc"
  5366   else
  5367     case $cross_compiling:$ac_tool_warned in
  5368 yes:)
  5369 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5371 ac_tool_warned=yes ;;
  5372 esac
  5373     OBJC=$ac_ct_OBJC
  5374   fi
  5375 fi
  5377 # Provide some information about the compiler.
  5378 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  5379 set X $ac_compile
  5380 ac_compiler=$2
  5381 { (ac_try="$ac_compiler --version >&5"
  5382 case "(($ac_try" in
  5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5384   *) ac_try_echo=$ac_try;;
  5385 esac
  5386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5387 $as_echo "$ac_try_echo") >&5
  5388   (eval "$ac_compiler --version >&5") 2>&5
  5389   ac_status=$?
  5390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5391   (exit $ac_status); }
  5392 { (ac_try="$ac_compiler -v >&5"
  5393 case "(($ac_try" in
  5394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5395   *) ac_try_echo=$ac_try;;
  5396 esac
  5397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5398 $as_echo "$ac_try_echo") >&5
  5399   (eval "$ac_compiler -v >&5") 2>&5
  5400   ac_status=$?
  5401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5402   (exit $ac_status); }
  5403 { (ac_try="$ac_compiler -V >&5"
  5404 case "(($ac_try" in
  5405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5406   *) ac_try_echo=$ac_try;;
  5407 esac
  5408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5409 $as_echo "$ac_try_echo") >&5
  5410   (eval "$ac_compiler -V >&5") 2>&5
  5411   ac_status=$?
  5412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5413   (exit $ac_status); }
  5415 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  5416 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
  5417 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  5418   $as_echo_n "(cached) " >&6
  5419 else
  5420   cat >conftest.$ac_ext <<_ACEOF
  5421 /* confdefs.h.  */
  5422 _ACEOF
  5423 cat confdefs.h >>conftest.$ac_ext
  5424 cat >>conftest.$ac_ext <<_ACEOF
  5425 /* end confdefs.h.  */
  5427 int
  5428 main ()
  5430 #ifndef __GNUC__
  5431        choke me
  5432 #endif
  5435   return 0;
  5437 _ACEOF
  5438 rm -f conftest.$ac_objext
  5439 if { (ac_try="$ac_compile"
  5440 case "(($ac_try" in
  5441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5442   *) ac_try_echo=$ac_try;;
  5443 esac
  5444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5445 $as_echo "$ac_try_echo") >&5
  5446   (eval "$ac_compile") 2>conftest.er1
  5447   ac_status=$?
  5448   grep -v '^ *+' conftest.er1 >conftest.err
  5449   rm -f conftest.er1
  5450   cat conftest.err >&5
  5451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5452   (exit $ac_status); } && {
  5453 	 test -z "$ac_objc_werror_flag" ||
  5454 	 test ! -s conftest.err
  5455        } && test -s conftest.$ac_objext; then
  5456   ac_compiler_gnu=yes
  5457 else
  5458   $as_echo "$as_me: failed program was:" >&5
  5459 sed 's/^/| /' conftest.$ac_ext >&5
  5461 	ac_compiler_gnu=no
  5462 fi
  5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5465 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  5467 fi
  5468 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  5469 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
  5470 if test $ac_compiler_gnu = yes; then
  5471   GOBJC=yes
  5472 else
  5473   GOBJC=
  5474 fi
  5475 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  5476 ac_save_OBJCFLAGS=$OBJCFLAGS
  5477 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  5478 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
  5479 if test "${ac_cv_prog_objc_g+set}" = set; then
  5480   $as_echo_n "(cached) " >&6
  5481 else
  5482   ac_save_objc_werror_flag=$ac_objc_werror_flag
  5483    ac_objc_werror_flag=yes
  5484    ac_cv_prog_objc_g=no
  5485    OBJCFLAGS="-g"
  5486    cat >conftest.$ac_ext <<_ACEOF
  5487 /* confdefs.h.  */
  5488 _ACEOF
  5489 cat confdefs.h >>conftest.$ac_ext
  5490 cat >>conftest.$ac_ext <<_ACEOF
  5491 /* end confdefs.h.  */
  5493 int
  5494 main ()
  5498   return 0;
  5500 _ACEOF
  5501 rm -f conftest.$ac_objext
  5502 if { (ac_try="$ac_compile"
  5503 case "(($ac_try" in
  5504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5505   *) ac_try_echo=$ac_try;;
  5506 esac
  5507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5508 $as_echo "$ac_try_echo") >&5
  5509   (eval "$ac_compile") 2>conftest.er1
  5510   ac_status=$?
  5511   grep -v '^ *+' conftest.er1 >conftest.err
  5512   rm -f conftest.er1
  5513   cat conftest.err >&5
  5514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5515   (exit $ac_status); } && {
  5516 	 test -z "$ac_objc_werror_flag" ||
  5517 	 test ! -s conftest.err
  5518        } && test -s conftest.$ac_objext; then
  5519   ac_cv_prog_objc_g=yes
  5520 else
  5521   $as_echo "$as_me: failed program was:" >&5
  5522 sed 's/^/| /' conftest.$ac_ext >&5
  5524 	OBJCFLAGS=""
  5525       cat >conftest.$ac_ext <<_ACEOF
  5526 /* confdefs.h.  */
  5527 _ACEOF
  5528 cat confdefs.h >>conftest.$ac_ext
  5529 cat >>conftest.$ac_ext <<_ACEOF
  5530 /* end confdefs.h.  */
  5532 int
  5533 main ()
  5537   return 0;
  5539 _ACEOF
  5540 rm -f conftest.$ac_objext
  5541 if { (ac_try="$ac_compile"
  5542 case "(($ac_try" in
  5543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5544   *) ac_try_echo=$ac_try;;
  5545 esac
  5546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5547 $as_echo "$ac_try_echo") >&5
  5548   (eval "$ac_compile") 2>conftest.er1
  5549   ac_status=$?
  5550   grep -v '^ *+' conftest.er1 >conftest.err
  5551   rm -f conftest.er1
  5552   cat conftest.err >&5
  5553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5554   (exit $ac_status); } && {
  5555 	 test -z "$ac_objc_werror_flag" ||
  5556 	 test ! -s conftest.err
  5557        } && test -s conftest.$ac_objext; then
  5559 else
  5560   $as_echo "$as_me: failed program was:" >&5
  5561 sed 's/^/| /' conftest.$ac_ext >&5
  5563 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  5564 	 OBJCFLAGS="-g"
  5565 	 cat >conftest.$ac_ext <<_ACEOF
  5566 /* confdefs.h.  */
  5567 _ACEOF
  5568 cat confdefs.h >>conftest.$ac_ext
  5569 cat >>conftest.$ac_ext <<_ACEOF
  5570 /* end confdefs.h.  */
  5572 int
  5573 main ()
  5577   return 0;
  5579 _ACEOF
  5580 rm -f conftest.$ac_objext
  5581 if { (ac_try="$ac_compile"
  5582 case "(($ac_try" in
  5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5584   *) ac_try_echo=$ac_try;;
  5585 esac
  5586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5587 $as_echo "$ac_try_echo") >&5
  5588   (eval "$ac_compile") 2>conftest.er1
  5589   ac_status=$?
  5590   grep -v '^ *+' conftest.er1 >conftest.err
  5591   rm -f conftest.er1
  5592   cat conftest.err >&5
  5593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5594   (exit $ac_status); } && {
  5595 	 test -z "$ac_objc_werror_flag" ||
  5596 	 test ! -s conftest.err
  5597        } && test -s conftest.$ac_objext; then
  5598   ac_cv_prog_objc_g=yes
  5599 else
  5600   $as_echo "$as_me: failed program was:" >&5
  5601 sed 's/^/| /' conftest.$ac_ext >&5
  5604 fi
  5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5607 fi
  5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5610 fi
  5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5613    ac_objc_werror_flag=$ac_save_objc_werror_flag
  5614 fi
  5615 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  5616 $as_echo "$ac_cv_prog_objc_g" >&6; }
  5617 if test "$ac_test_OBJCFLAGS" = set; then
  5618   OBJCFLAGS=$ac_save_OBJCFLAGS
  5619 elif test $ac_cv_prog_objc_g = yes; then
  5620   if test "$GOBJC" = yes; then
  5621     OBJCFLAGS="-g -O2"
  5622   else
  5623     OBJCFLAGS="-g"
  5624   fi
  5625 else
  5626   if test "$GOBJC" = yes; then
  5627     OBJCFLAGS="-O2"
  5628   else
  5629     OBJCFLAGS=
  5630   fi
  5631 fi
  5632 ac_ext=c
  5633 ac_cpp='$CPP $CPPFLAGS'
  5634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5638 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  5639 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5640 if test "${ac_cv_path_SED+set}" = set; then
  5641   $as_echo_n "(cached) " >&6
  5642 else
  5643             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5644      for ac_i in 1 2 3 4 5 6 7; do
  5645        ac_script="$ac_script$as_nl$ac_script"
  5646      done
  5647      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5648      $as_unset ac_script || ac_script=
  5649      if test -z "$SED"; then
  5650   ac_path_SED_found=false
  5651   # Loop through the user's path and test for each of PROGNAME-LIST
  5652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5653 for as_dir in $PATH
  5654 do
  5655   IFS=$as_save_IFS
  5656   test -z "$as_dir" && as_dir=.
  5657   for ac_prog in sed gsed; do
  5658     for ac_exec_ext in '' $ac_executable_extensions; do
  5659       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5660       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5661 # Check for GNU ac_path_SED and select it if it is found.
  5662   # Check for GNU $ac_path_SED
  5663 case `"$ac_path_SED" --version 2>&1` in
  5664 *GNU*)
  5665   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5666 *)
  5667   ac_count=0
  5668   $as_echo_n 0123456789 >"conftest.in"
  5669   while :
  5670   do
  5671     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5672     mv "conftest.tmp" "conftest.in"
  5673     cp "conftest.in" "conftest.nl"
  5674     $as_echo '' >> "conftest.nl"
  5675     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5676     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5677     ac_count=`expr $ac_count + 1`
  5678     if test $ac_count -gt ${ac_path_SED_max-0}; then
  5679       # Best one so far, save it but keep looking for a better one
  5680       ac_cv_path_SED="$ac_path_SED"
  5681       ac_path_SED_max=$ac_count
  5682     fi
  5683     # 10*(2^10) chars as input seems more than enough
  5684     test $ac_count -gt 10 && break
  5685   done
  5686   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5687 esac
  5689       $ac_path_SED_found && break 3
  5690     done
  5691   done
  5692 done
  5693 IFS=$as_save_IFS
  5694   if test -z "$ac_cv_path_SED"; then
  5695     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  5696 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  5697    { (exit 1); exit 1; }; }
  5698   fi
  5699 else
  5700   ac_cv_path_SED=$SED
  5701 fi
  5703 fi
  5704 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  5705 $as_echo "$ac_cv_path_SED" >&6; }
  5706  SED="$ac_cv_path_SED"
  5707   rm -f conftest.sed
  5709 # By default we simply use the C compiler to build assembly code.
  5711 test "${CCAS+set}" = set || CCAS=$CC
  5712 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5716 ac_ext=c
  5717 ac_cpp='$CPP $CPPFLAGS'
  5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5721 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5722 $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5723 # On Suns, sometimes $CPP names a directory.
  5724 if test -n "$CPP" && test -d "$CPP"; then
  5725   CPP=
  5726 fi
  5727 if test -z "$CPP"; then
  5728   if test "${ac_cv_prog_CPP+set}" = set; then
  5729   $as_echo_n "(cached) " >&6
  5730 else
  5731       # Double quotes because CPP needs to be expanded
  5732     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5733     do
  5734       ac_preproc_ok=false
  5735 for ac_c_preproc_warn_flag in '' yes
  5736 do
  5737   # Use a header file that comes with gcc, so configuring glibc
  5738   # with a fresh cross-compiler works.
  5739   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5740   # <limits.h> exists even on freestanding compilers.
  5741   # On the NeXT, cc -E runs the code through the compiler's parser,
  5742   # not just through cpp. "Syntax error" is here to catch this case.
  5743   cat >conftest.$ac_ext <<_ACEOF
  5744 /* confdefs.h.  */
  5745 _ACEOF
  5746 cat confdefs.h >>conftest.$ac_ext
  5747 cat >>conftest.$ac_ext <<_ACEOF
  5748 /* end confdefs.h.  */
  5749 #ifdef __STDC__
  5750 # include <limits.h>
  5751 #else
  5752 # include <assert.h>
  5753 #endif
  5754 		     Syntax error
  5755 _ACEOF
  5756 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5757 case "(($ac_try" in
  5758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5759   *) ac_try_echo=$ac_try;;
  5760 esac
  5761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5762 $as_echo "$ac_try_echo") >&5
  5763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5764   ac_status=$?
  5765   grep -v '^ *+' conftest.er1 >conftest.err
  5766   rm -f conftest.er1
  5767   cat conftest.err >&5
  5768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5769   (exit $ac_status); } >/dev/null && {
  5770 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5771 	 test ! -s conftest.err
  5772        }; then
  5774 else
  5775   $as_echo "$as_me: failed program was:" >&5
  5776 sed 's/^/| /' conftest.$ac_ext >&5
  5778   # Broken: fails on valid input.
  5779 continue
  5780 fi
  5782 rm -f conftest.err conftest.$ac_ext
  5784   # OK, works on sane cases.  Now check whether nonexistent headers
  5785   # can be detected and how.
  5786   cat >conftest.$ac_ext <<_ACEOF
  5787 /* confdefs.h.  */
  5788 _ACEOF
  5789 cat confdefs.h >>conftest.$ac_ext
  5790 cat >>conftest.$ac_ext <<_ACEOF
  5791 /* end confdefs.h.  */
  5792 #include <ac_nonexistent.h>
  5793 _ACEOF
  5794 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5795 case "(($ac_try" in
  5796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5797   *) ac_try_echo=$ac_try;;
  5798 esac
  5799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5800 $as_echo "$ac_try_echo") >&5
  5801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5802   ac_status=$?
  5803   grep -v '^ *+' conftest.er1 >conftest.err
  5804   rm -f conftest.er1
  5805   cat conftest.err >&5
  5806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5807   (exit $ac_status); } >/dev/null && {
  5808 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5809 	 test ! -s conftest.err
  5810        }; then
  5811   # Broken: success on invalid input.
  5812 continue
  5813 else
  5814   $as_echo "$as_me: failed program was:" >&5
  5815 sed 's/^/| /' conftest.$ac_ext >&5
  5817   # Passes both tests.
  5818 ac_preproc_ok=:
  5819 break
  5820 fi
  5822 rm -f conftest.err conftest.$ac_ext
  5824 done
  5825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5826 rm -f conftest.err conftest.$ac_ext
  5827 if $ac_preproc_ok; then
  5828   break
  5829 fi
  5831     done
  5832     ac_cv_prog_CPP=$CPP
  5834 fi
  5835   CPP=$ac_cv_prog_CPP
  5836 else
  5837   ac_cv_prog_CPP=$CPP
  5838 fi
  5839 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5840 $as_echo "$CPP" >&6; }
  5841 ac_preproc_ok=false
  5842 for ac_c_preproc_warn_flag in '' yes
  5843 do
  5844   # Use a header file that comes with gcc, so configuring glibc
  5845   # with a fresh cross-compiler works.
  5846   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5847   # <limits.h> exists even on freestanding compilers.
  5848   # On the NeXT, cc -E runs the code through the compiler's parser,
  5849   # not just through cpp. "Syntax error" is here to catch this case.
  5850   cat >conftest.$ac_ext <<_ACEOF
  5851 /* confdefs.h.  */
  5852 _ACEOF
  5853 cat confdefs.h >>conftest.$ac_ext
  5854 cat >>conftest.$ac_ext <<_ACEOF
  5855 /* end confdefs.h.  */
  5856 #ifdef __STDC__
  5857 # include <limits.h>
  5858 #else
  5859 # include <assert.h>
  5860 #endif
  5861 		     Syntax error
  5862 _ACEOF
  5863 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5864 case "(($ac_try" in
  5865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5866   *) ac_try_echo=$ac_try;;
  5867 esac
  5868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5869 $as_echo "$ac_try_echo") >&5
  5870   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5871   ac_status=$?
  5872   grep -v '^ *+' conftest.er1 >conftest.err
  5873   rm -f conftest.er1
  5874   cat conftest.err >&5
  5875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5876   (exit $ac_status); } >/dev/null && {
  5877 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5878 	 test ! -s conftest.err
  5879        }; then
  5881 else
  5882   $as_echo "$as_me: failed program was:" >&5
  5883 sed 's/^/| /' conftest.$ac_ext >&5
  5885   # Broken: fails on valid input.
  5886 continue
  5887 fi
  5889 rm -f conftest.err conftest.$ac_ext
  5891   # OK, works on sane cases.  Now check whether nonexistent headers
  5892   # can be detected and how.
  5893   cat >conftest.$ac_ext <<_ACEOF
  5894 /* confdefs.h.  */
  5895 _ACEOF
  5896 cat confdefs.h >>conftest.$ac_ext
  5897 cat >>conftest.$ac_ext <<_ACEOF
  5898 /* end confdefs.h.  */
  5899 #include <ac_nonexistent.h>
  5900 _ACEOF
  5901 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5902 case "(($ac_try" in
  5903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5904   *) ac_try_echo=$ac_try;;
  5905 esac
  5906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5907 $as_echo "$ac_try_echo") >&5
  5908   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5909   ac_status=$?
  5910   grep -v '^ *+' conftest.er1 >conftest.err
  5911   rm -f conftest.er1
  5912   cat conftest.err >&5
  5913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5914   (exit $ac_status); } >/dev/null && {
  5915 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5916 	 test ! -s conftest.err
  5917        }; then
  5918   # Broken: success on invalid input.
  5919 continue
  5920 else
  5921   $as_echo "$as_me: failed program was:" >&5
  5922 sed 's/^/| /' conftest.$ac_ext >&5
  5924   # Passes both tests.
  5925 ac_preproc_ok=:
  5926 break
  5927 fi
  5929 rm -f conftest.err conftest.$ac_ext
  5931 done
  5932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5933 rm -f conftest.err conftest.$ac_ext
  5934 if $ac_preproc_ok; then
  5936 else
  5937   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5939 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5940 See \`config.log' for more details." >&5
  5941 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5942 See \`config.log' for more details." >&2;}
  5943    { (exit 1); exit 1; }; }; }
  5944 fi
  5946 ac_ext=c
  5947 ac_cpp='$CPP $CPPFLAGS'
  5948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5953 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5954 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5955 if test "${ac_cv_path_GREP+set}" = set; then
  5956   $as_echo_n "(cached) " >&6
  5957 else
  5958   if test -z "$GREP"; then
  5959   ac_path_GREP_found=false
  5960   # Loop through the user's path and test for each of PROGNAME-LIST
  5961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5963 do
  5964   IFS=$as_save_IFS
  5965   test -z "$as_dir" && as_dir=.
  5966   for ac_prog in grep ggrep; do
  5967     for ac_exec_ext in '' $ac_executable_extensions; do
  5968       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5969       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5970 # Check for GNU ac_path_GREP and select it if it is found.
  5971   # Check for GNU $ac_path_GREP
  5972 case `"$ac_path_GREP" --version 2>&1` in
  5973 *GNU*)
  5974   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5975 *)
  5976   ac_count=0
  5977   $as_echo_n 0123456789 >"conftest.in"
  5978   while :
  5979   do
  5980     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5981     mv "conftest.tmp" "conftest.in"
  5982     cp "conftest.in" "conftest.nl"
  5983     $as_echo 'GREP' >> "conftest.nl"
  5984     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5985     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5986     ac_count=`expr $ac_count + 1`
  5987     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5988       # Best one so far, save it but keep looking for a better one
  5989       ac_cv_path_GREP="$ac_path_GREP"
  5990       ac_path_GREP_max=$ac_count
  5991     fi
  5992     # 10*(2^10) chars as input seems more than enough
  5993     test $ac_count -gt 10 && break
  5994   done
  5995   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5996 esac
  5998       $ac_path_GREP_found && break 3
  5999     done
  6000   done
  6001 done
  6002 IFS=$as_save_IFS
  6003   if test -z "$ac_cv_path_GREP"; then
  6004     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  6005 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  6006    { (exit 1); exit 1; }; }
  6007   fi
  6008 else
  6009   ac_cv_path_GREP=$GREP
  6010 fi
  6012 fi
  6013 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  6014 $as_echo "$ac_cv_path_GREP" >&6; }
  6015  GREP="$ac_cv_path_GREP"
  6018 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  6019 $as_echo_n "checking for egrep... " >&6; }
  6020 if test "${ac_cv_path_EGREP+set}" = set; then
  6021   $as_echo_n "(cached) " >&6
  6022 else
  6023   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6024    then ac_cv_path_EGREP="$GREP -E"
  6025    else
  6026      if test -z "$EGREP"; then
  6027   ac_path_EGREP_found=false
  6028   # Loop through the user's path and test for each of PROGNAME-LIST
  6029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6031 do
  6032   IFS=$as_save_IFS
  6033   test -z "$as_dir" && as_dir=.
  6034   for ac_prog in egrep; do
  6035     for ac_exec_ext in '' $ac_executable_extensions; do
  6036       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  6037       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  6038 # Check for GNU ac_path_EGREP and select it if it is found.
  6039   # Check for GNU $ac_path_EGREP
  6040 case `"$ac_path_EGREP" --version 2>&1` in
  6041 *GNU*)
  6042   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6043 *)
  6044   ac_count=0
  6045   $as_echo_n 0123456789 >"conftest.in"
  6046   while :
  6047   do
  6048     cat "conftest.in" "conftest.in" >"conftest.tmp"
  6049     mv "conftest.tmp" "conftest.in"
  6050     cp "conftest.in" "conftest.nl"
  6051     $as_echo 'EGREP' >> "conftest.nl"
  6052     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6053     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6054     ac_count=`expr $ac_count + 1`
  6055     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6056       # Best one so far, save it but keep looking for a better one
  6057       ac_cv_path_EGREP="$ac_path_EGREP"
  6058       ac_path_EGREP_max=$ac_count
  6059     fi
  6060     # 10*(2^10) chars as input seems more than enough
  6061     test $ac_count -gt 10 && break
  6062   done
  6063   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6064 esac
  6066       $ac_path_EGREP_found && break 3
  6067     done
  6068   done
  6069 done
  6070 IFS=$as_save_IFS
  6071   if test -z "$ac_cv_path_EGREP"; then
  6072     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  6073 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  6074    { (exit 1); exit 1; }; }
  6075   fi
  6076 else
  6077   ac_cv_path_EGREP=$EGREP
  6078 fi
  6080    fi
  6081 fi
  6082 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  6083 $as_echo "$ac_cv_path_EGREP" >&6; }
  6084  EGREP="$ac_cv_path_EGREP"
  6087 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6088 $as_echo_n "checking for ANSI C header files... " >&6; }
  6089 if test "${ac_cv_header_stdc+set}" = set; then
  6090   $as_echo_n "(cached) " >&6
  6091 else
  6092   cat >conftest.$ac_ext <<_ACEOF
  6093 /* confdefs.h.  */
  6094 _ACEOF
  6095 cat confdefs.h >>conftest.$ac_ext
  6096 cat >>conftest.$ac_ext <<_ACEOF
  6097 /* end confdefs.h.  */
  6098 #include <stdlib.h>
  6099 #include <stdarg.h>
  6100 #include <string.h>
  6101 #include <float.h>
  6103 int
  6104 main ()
  6108   return 0;
  6110 _ACEOF
  6111 rm -f conftest.$ac_objext
  6112 if { (ac_try="$ac_compile"
  6113 case "(($ac_try" in
  6114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6115   *) ac_try_echo=$ac_try;;
  6116 esac
  6117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6118 $as_echo "$ac_try_echo") >&5
  6119   (eval "$ac_compile") 2>conftest.er1
  6120   ac_status=$?
  6121   grep -v '^ *+' conftest.er1 >conftest.err
  6122   rm -f conftest.er1
  6123   cat conftest.err >&5
  6124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6125   (exit $ac_status); } && {
  6126 	 test -z "$ac_c_werror_flag" ||
  6127 	 test ! -s conftest.err
  6128        } && test -s conftest.$ac_objext; then
  6129   ac_cv_header_stdc=yes
  6130 else
  6131   $as_echo "$as_me: failed program was:" >&5
  6132 sed 's/^/| /' conftest.$ac_ext >&5
  6134 	ac_cv_header_stdc=no
  6135 fi
  6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6139 if test $ac_cv_header_stdc = yes; then
  6140   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6141   cat >conftest.$ac_ext <<_ACEOF
  6142 /* confdefs.h.  */
  6143 _ACEOF
  6144 cat confdefs.h >>conftest.$ac_ext
  6145 cat >>conftest.$ac_ext <<_ACEOF
  6146 /* end confdefs.h.  */
  6147 #include <string.h>
  6149 _ACEOF
  6150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6151   $EGREP "memchr" >/dev/null 2>&1; then
  6153 else
  6154   ac_cv_header_stdc=no
  6155 fi
  6156 rm -f conftest*
  6158 fi
  6160 if test $ac_cv_header_stdc = yes; then
  6161   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6162   cat >conftest.$ac_ext <<_ACEOF
  6163 /* confdefs.h.  */
  6164 _ACEOF
  6165 cat confdefs.h >>conftest.$ac_ext
  6166 cat >>conftest.$ac_ext <<_ACEOF
  6167 /* end confdefs.h.  */
  6168 #include <stdlib.h>
  6170 _ACEOF
  6171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6172   $EGREP "free" >/dev/null 2>&1; then
  6174 else
  6175   ac_cv_header_stdc=no
  6176 fi
  6177 rm -f conftest*
  6179 fi
  6181 if test $ac_cv_header_stdc = yes; then
  6182   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6183   if test "$cross_compiling" = yes; then
  6185 else
  6186   cat >conftest.$ac_ext <<_ACEOF
  6187 /* confdefs.h.  */
  6188 _ACEOF
  6189 cat confdefs.h >>conftest.$ac_ext
  6190 cat >>conftest.$ac_ext <<_ACEOF
  6191 /* end confdefs.h.  */
  6192 #include <ctype.h>
  6193 #include <stdlib.h>
  6194 #if ((' ' & 0x0FF) == 0x020)
  6195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6197 #else
  6198 # define ISLOWER(c) \
  6199 		   (('a' <= (c) && (c) <= 'i') \
  6200 		     || ('j' <= (c) && (c) <= 'r') \
  6201 		     || ('s' <= (c) && (c) <= 'z'))
  6202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6203 #endif
  6205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6206 int
  6207 main ()
  6209   int i;
  6210   for (i = 0; i < 256; i++)
  6211     if (XOR (islower (i), ISLOWER (i))
  6212 	|| toupper (i) != TOUPPER (i))
  6213       return 2;
  6214   return 0;
  6216 _ACEOF
  6217 rm -f conftest$ac_exeext
  6218 if { (ac_try="$ac_link"
  6219 case "(($ac_try" in
  6220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6221   *) ac_try_echo=$ac_try;;
  6222 esac
  6223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6224 $as_echo "$ac_try_echo") >&5
  6225   (eval "$ac_link") 2>&5
  6226   ac_status=$?
  6227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6229   { (case "(($ac_try" in
  6230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6231   *) ac_try_echo=$ac_try;;
  6232 esac
  6233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6234 $as_echo "$ac_try_echo") >&5
  6235   (eval "$ac_try") 2>&5
  6236   ac_status=$?
  6237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6238   (exit $ac_status); }; }; then
  6240 else
  6241   $as_echo "$as_me: program exited with status $ac_status" >&5
  6242 $as_echo "$as_me: failed program was:" >&5
  6243 sed 's/^/| /' conftest.$ac_ext >&5
  6245 ( exit $ac_status )
  6246 ac_cv_header_stdc=no
  6247 fi
  6248 rm -rf conftest.dSYM
  6249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6250 fi
  6253 fi
  6254 fi
  6255 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6256 $as_echo "$ac_cv_header_stdc" >&6; }
  6257 if test $ac_cv_header_stdc = yes; then
  6259 cat >>confdefs.h <<\_ACEOF
  6260 #define STDC_HEADERS 1
  6261 _ACEOF
  6263 fi
  6265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6276 		  inttypes.h stdint.h unistd.h
  6277 do
  6278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6279 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6280 $as_echo_n "checking for $ac_header... " >&6; }
  6281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6282   $as_echo_n "(cached) " >&6
  6283 else
  6284   cat >conftest.$ac_ext <<_ACEOF
  6285 /* confdefs.h.  */
  6286 _ACEOF
  6287 cat confdefs.h >>conftest.$ac_ext
  6288 cat >>conftest.$ac_ext <<_ACEOF
  6289 /* end confdefs.h.  */
  6290 $ac_includes_default
  6292 #include <$ac_header>
  6293 _ACEOF
  6294 rm -f conftest.$ac_objext
  6295 if { (ac_try="$ac_compile"
  6296 case "(($ac_try" in
  6297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6298   *) ac_try_echo=$ac_try;;
  6299 esac
  6300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6301 $as_echo "$ac_try_echo") >&5
  6302   (eval "$ac_compile") 2>conftest.er1
  6303   ac_status=$?
  6304   grep -v '^ *+' conftest.er1 >conftest.err
  6305   rm -f conftest.er1
  6306   cat conftest.err >&5
  6307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6308   (exit $ac_status); } && {
  6309 	 test -z "$ac_c_werror_flag" ||
  6310 	 test ! -s conftest.err
  6311        } && test -s conftest.$ac_objext; then
  6312   eval "$as_ac_Header=yes"
  6313 else
  6314   $as_echo "$as_me: failed program was:" >&5
  6315 sed 's/^/| /' conftest.$ac_ext >&5
  6317 	eval "$as_ac_Header=no"
  6318 fi
  6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6321 fi
  6322 ac_res=`eval 'as_val=${'$as_ac_Header'}
  6323 		 $as_echo "$as_val"'`
  6324 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6325 $as_echo "$ac_res" >&6; }
  6326 as_val=`eval 'as_val=${'$as_ac_Header'}
  6327 		 $as_echo "$as_val"'`
  6328    if test "x$as_val" = x""yes; then
  6329   cat >>confdefs.h <<_ACEOF
  6330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6331 _ACEOF
  6333 fi
  6335 done
  6338 # The cast to long int works around a bug in the HP C Compiler
  6339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6341 # This bug is HP SR number 8606223364.
  6342 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
  6343 $as_echo_n "checking size of void *... " >&6; }
  6344 if test "${ac_cv_sizeof_void_p+set}" = set; then
  6345   $as_echo_n "(cached) " >&6
  6346 else
  6347   if test "$cross_compiling" = yes; then
  6348   # Depending upon the size, compute the lo and hi bounds.
  6349 cat >conftest.$ac_ext <<_ACEOF
  6350 /* confdefs.h.  */
  6351 _ACEOF
  6352 cat confdefs.h >>conftest.$ac_ext
  6353 cat >>conftest.$ac_ext <<_ACEOF
  6354 /* end confdefs.h.  */
  6355 $ac_includes_default
  6356 int
  6357 main ()
  6359 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
  6360 test_array [0] = 0
  6363   return 0;
  6365 _ACEOF
  6366 rm -f conftest.$ac_objext
  6367 if { (ac_try="$ac_compile"
  6368 case "(($ac_try" in
  6369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6370   *) ac_try_echo=$ac_try;;
  6371 esac
  6372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6373 $as_echo "$ac_try_echo") >&5
  6374   (eval "$ac_compile") 2>conftest.er1
  6375   ac_status=$?
  6376   grep -v '^ *+' conftest.er1 >conftest.err
  6377   rm -f conftest.er1
  6378   cat conftest.err >&5
  6379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6380   (exit $ac_status); } && {
  6381 	 test -z "$ac_c_werror_flag" ||
  6382 	 test ! -s conftest.err
  6383        } && test -s conftest.$ac_objext; then
  6384   ac_lo=0 ac_mid=0
  6385   while :; do
  6386     cat >conftest.$ac_ext <<_ACEOF
  6387 /* confdefs.h.  */
  6388 _ACEOF
  6389 cat confdefs.h >>conftest.$ac_ext
  6390 cat >>conftest.$ac_ext <<_ACEOF
  6391 /* end confdefs.h.  */
  6392 $ac_includes_default
  6393 int
  6394 main ()
  6396 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  6397 test_array [0] = 0
  6400   return 0;
  6402 _ACEOF
  6403 rm -f conftest.$ac_objext
  6404 if { (ac_try="$ac_compile"
  6405 case "(($ac_try" in
  6406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6407   *) ac_try_echo=$ac_try;;
  6408 esac
  6409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6410 $as_echo "$ac_try_echo") >&5
  6411   (eval "$ac_compile") 2>conftest.er1
  6412   ac_status=$?
  6413   grep -v '^ *+' conftest.er1 >conftest.err
  6414   rm -f conftest.er1
  6415   cat conftest.err >&5
  6416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6417   (exit $ac_status); } && {
  6418 	 test -z "$ac_c_werror_flag" ||
  6419 	 test ! -s conftest.err
  6420        } && test -s conftest.$ac_objext; then
  6421   ac_hi=$ac_mid; break
  6422 else
  6423   $as_echo "$as_me: failed program was:" >&5
  6424 sed 's/^/| /' conftest.$ac_ext >&5
  6426 	ac_lo=`expr $ac_mid + 1`
  6427 			if test $ac_lo -le $ac_mid; then
  6428 			  ac_lo= ac_hi=
  6429 			  break
  6430 			fi
  6431 			ac_mid=`expr 2 '*' $ac_mid + 1`
  6432 fi
  6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6435   done
  6436 else
  6437   $as_echo "$as_me: failed program was:" >&5
  6438 sed 's/^/| /' conftest.$ac_ext >&5
  6440 	cat >conftest.$ac_ext <<_ACEOF
  6441 /* confdefs.h.  */
  6442 _ACEOF
  6443 cat confdefs.h >>conftest.$ac_ext
  6444 cat >>conftest.$ac_ext <<_ACEOF
  6445 /* end confdefs.h.  */
  6446 $ac_includes_default
  6447 int
  6448 main ()
  6450 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
  6451 test_array [0] = 0
  6454   return 0;
  6456 _ACEOF
  6457 rm -f conftest.$ac_objext
  6458 if { (ac_try="$ac_compile"
  6459 case "(($ac_try" in
  6460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6461   *) ac_try_echo=$ac_try;;
  6462 esac
  6463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6464 $as_echo "$ac_try_echo") >&5
  6465   (eval "$ac_compile") 2>conftest.er1
  6466   ac_status=$?
  6467   grep -v '^ *+' conftest.er1 >conftest.err
  6468   rm -f conftest.er1
  6469   cat conftest.err >&5
  6470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6471   (exit $ac_status); } && {
  6472 	 test -z "$ac_c_werror_flag" ||
  6473 	 test ! -s conftest.err
  6474        } && test -s conftest.$ac_objext; then
  6475   ac_hi=-1 ac_mid=-1
  6476   while :; do
  6477     cat >conftest.$ac_ext <<_ACEOF
  6478 /* confdefs.h.  */
  6479 _ACEOF
  6480 cat confdefs.h >>conftest.$ac_ext
  6481 cat >>conftest.$ac_ext <<_ACEOF
  6482 /* end confdefs.h.  */
  6483 $ac_includes_default
  6484 int
  6485 main ()
  6487 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
  6488 test_array [0] = 0
  6491   return 0;
  6493 _ACEOF
  6494 rm -f conftest.$ac_objext
  6495 if { (ac_try="$ac_compile"
  6496 case "(($ac_try" in
  6497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6498   *) ac_try_echo=$ac_try;;
  6499 esac
  6500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6501 $as_echo "$ac_try_echo") >&5
  6502   (eval "$ac_compile") 2>conftest.er1
  6503   ac_status=$?
  6504   grep -v '^ *+' conftest.er1 >conftest.err
  6505   rm -f conftest.er1
  6506   cat conftest.err >&5
  6507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6508   (exit $ac_status); } && {
  6509 	 test -z "$ac_c_werror_flag" ||
  6510 	 test ! -s conftest.err
  6511        } && test -s conftest.$ac_objext; then
  6512   ac_lo=$ac_mid; break
  6513 else
  6514   $as_echo "$as_me: failed program was:" >&5
  6515 sed 's/^/| /' conftest.$ac_ext >&5
  6517 	ac_hi=`expr '(' $ac_mid ')' - 1`
  6518 			if test $ac_mid -le $ac_hi; then
  6519 			  ac_lo= ac_hi=
  6520 			  break
  6521 			fi
  6522 			ac_mid=`expr 2 '*' $ac_mid`
  6523 fi
  6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6526   done
  6527 else
  6528   $as_echo "$as_me: failed program was:" >&5
  6529 sed 's/^/| /' conftest.$ac_ext >&5
  6531 	ac_lo= ac_hi=
  6532 fi
  6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6535 fi
  6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6538 # Binary search between lo and hi bounds.
  6539 while test "x$ac_lo" != "x$ac_hi"; do
  6540   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6541   cat >conftest.$ac_ext <<_ACEOF
  6542 /* confdefs.h.  */
  6543 _ACEOF
  6544 cat confdefs.h >>conftest.$ac_ext
  6545 cat >>conftest.$ac_ext <<_ACEOF
  6546 /* end confdefs.h.  */
  6547 $ac_includes_default
  6548 int
  6549 main ()
  6551 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  6552 test_array [0] = 0
  6555   return 0;
  6557 _ACEOF
  6558 rm -f conftest.$ac_objext
  6559 if { (ac_try="$ac_compile"
  6560 case "(($ac_try" in
  6561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6562   *) ac_try_echo=$ac_try;;
  6563 esac
  6564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6565 $as_echo "$ac_try_echo") >&5
  6566   (eval "$ac_compile") 2>conftest.er1
  6567   ac_status=$?
  6568   grep -v '^ *+' conftest.er1 >conftest.err
  6569   rm -f conftest.er1
  6570   cat conftest.err >&5
  6571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6572   (exit $ac_status); } && {
  6573 	 test -z "$ac_c_werror_flag" ||
  6574 	 test ! -s conftest.err
  6575        } && test -s conftest.$ac_objext; then
  6576   ac_hi=$ac_mid
  6577 else
  6578   $as_echo "$as_me: failed program was:" >&5
  6579 sed 's/^/| /' conftest.$ac_ext >&5
  6581 	ac_lo=`expr '(' $ac_mid ')' + 1`
  6582 fi
  6584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6585 done
  6586 case $ac_lo in
  6587 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  6588 '') if test "$ac_cv_type_void_p" = yes; then
  6589      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6591 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6592 See \`config.log' for more details." >&5
  6593 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6594 See \`config.log' for more details." >&2;}
  6595    { (exit 77); exit 77; }; }; }
  6596    else
  6597      ac_cv_sizeof_void_p=0
  6598    fi ;;
  6599 esac
  6600 else
  6601   cat >conftest.$ac_ext <<_ACEOF
  6602 /* confdefs.h.  */
  6603 _ACEOF
  6604 cat confdefs.h >>conftest.$ac_ext
  6605 cat >>conftest.$ac_ext <<_ACEOF
  6606 /* end confdefs.h.  */
  6607 $ac_includes_default
  6608 static long int longval () { return (long int) (sizeof (void *)); }
  6609 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
  6610 #include <stdio.h>
  6611 #include <stdlib.h>
  6612 int
  6613 main ()
  6616   FILE *f = fopen ("conftest.val", "w");
  6617   if (! f)
  6618     return 1;
  6619   if (((long int) (sizeof (void *))) < 0)
  6621       long int i = longval ();
  6622       if (i != ((long int) (sizeof (void *))))
  6623 	return 1;
  6624       fprintf (f, "%ld", i);
  6626   else
  6628       unsigned long int i = ulongval ();
  6629       if (i != ((long int) (sizeof (void *))))
  6630 	return 1;
  6631       fprintf (f, "%lu", i);
  6633   /* Do not output a trailing newline, as this causes \r\n confusion
  6634      on some platforms.  */
  6635   return ferror (f) || fclose (f) != 0;
  6638   return 0;
  6640 _ACEOF
  6641 rm -f conftest$ac_exeext
  6642 if { (ac_try="$ac_link"
  6643 case "(($ac_try" in
  6644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6645   *) ac_try_echo=$ac_try;;
  6646 esac
  6647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6648 $as_echo "$ac_try_echo") >&5
  6649   (eval "$ac_link") 2>&5
  6650   ac_status=$?
  6651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6653   { (case "(($ac_try" in
  6654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6655   *) ac_try_echo=$ac_try;;
  6656 esac
  6657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6658 $as_echo "$ac_try_echo") >&5
  6659   (eval "$ac_try") 2>&5
  6660   ac_status=$?
  6661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6662   (exit $ac_status); }; }; then
  6663   ac_cv_sizeof_void_p=`cat conftest.val`
  6664 else
  6665   $as_echo "$as_me: program exited with status $ac_status" >&5
  6666 $as_echo "$as_me: failed program was:" >&5
  6667 sed 's/^/| /' conftest.$ac_ext >&5
  6669 ( exit $ac_status )
  6670 if test "$ac_cv_type_void_p" = yes; then
  6671      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6673 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6674 See \`config.log' for more details." >&5
  6675 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6676 See \`config.log' for more details." >&2;}
  6677    { (exit 77); exit 77; }; }; }
  6678    else
  6679      ac_cv_sizeof_void_p=0
  6680    fi
  6681 fi
  6682 rm -rf conftest.dSYM
  6683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6684 fi
  6685 rm -f conftest.val
  6686 fi
  6687 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  6688 $as_echo "$ac_cv_sizeof_void_p" >&6; }
  6692 cat >>confdefs.h <<_ACEOF
  6693 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  6694 _ACEOF
  6697 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6698 $as_echo_n "checking for ANSI C header files... " >&6; }
  6699 if test "${ac_cv_header_stdc+set}" = set; then
  6700   $as_echo_n "(cached) " >&6
  6701 else
  6702   cat >conftest.$ac_ext <<_ACEOF
  6703 /* confdefs.h.  */
  6704 _ACEOF
  6705 cat confdefs.h >>conftest.$ac_ext
  6706 cat >>conftest.$ac_ext <<_ACEOF
  6707 /* end confdefs.h.  */
  6708 #include <stdlib.h>
  6709 #include <stdarg.h>
  6710 #include <string.h>
  6711 #include <float.h>
  6713 int
  6714 main ()
  6718   return 0;
  6720 _ACEOF
  6721 rm -f conftest.$ac_objext
  6722 if { (ac_try="$ac_compile"
  6723 case "(($ac_try" in
  6724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6725   *) ac_try_echo=$ac_try;;
  6726 esac
  6727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6728 $as_echo "$ac_try_echo") >&5
  6729   (eval "$ac_compile") 2>conftest.er1
  6730   ac_status=$?
  6731   grep -v '^ *+' conftest.er1 >conftest.err
  6732   rm -f conftest.er1
  6733   cat conftest.err >&5
  6734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6735   (exit $ac_status); } && {
  6736 	 test -z "$ac_c_werror_flag" ||
  6737 	 test ! -s conftest.err
  6738        } && test -s conftest.$ac_objext; then
  6739   ac_cv_header_stdc=yes
  6740 else
  6741   $as_echo "$as_me: failed program was:" >&5
  6742 sed 's/^/| /' conftest.$ac_ext >&5
  6744 	ac_cv_header_stdc=no
  6745 fi
  6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6749 if test $ac_cv_header_stdc = yes; then
  6750   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6751   cat >conftest.$ac_ext <<_ACEOF
  6752 /* confdefs.h.  */
  6753 _ACEOF
  6754 cat confdefs.h >>conftest.$ac_ext
  6755 cat >>conftest.$ac_ext <<_ACEOF
  6756 /* end confdefs.h.  */
  6757 #include <string.h>
  6759 _ACEOF
  6760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6761   $EGREP "memchr" >/dev/null 2>&1; then
  6763 else
  6764   ac_cv_header_stdc=no
  6765 fi
  6766 rm -f conftest*
  6768 fi
  6770 if test $ac_cv_header_stdc = yes; then
  6771   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6772   cat >conftest.$ac_ext <<_ACEOF
  6773 /* confdefs.h.  */
  6774 _ACEOF
  6775 cat confdefs.h >>conftest.$ac_ext
  6776 cat >>conftest.$ac_ext <<_ACEOF
  6777 /* end confdefs.h.  */
  6778 #include <stdlib.h>
  6780 _ACEOF
  6781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6782   $EGREP "free" >/dev/null 2>&1; then
  6784 else
  6785   ac_cv_header_stdc=no
  6786 fi
  6787 rm -f conftest*
  6789 fi
  6791 if test $ac_cv_header_stdc = yes; then
  6792   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6793   if test "$cross_compiling" = yes; then
  6795 else
  6796   cat >conftest.$ac_ext <<_ACEOF
  6797 /* confdefs.h.  */
  6798 _ACEOF
  6799 cat confdefs.h >>conftest.$ac_ext
  6800 cat >>conftest.$ac_ext <<_ACEOF
  6801 /* end confdefs.h.  */
  6802 #include <ctype.h>
  6803 #include <stdlib.h>
  6804 #if ((' ' & 0x0FF) == 0x020)
  6805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6807 #else
  6808 # define ISLOWER(c) \
  6809 		   (('a' <= (c) && (c) <= 'i') \
  6810 		     || ('j' <= (c) && (c) <= 'r') \
  6811 		     || ('s' <= (c) && (c) <= 'z'))
  6812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6813 #endif
  6815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6816 int
  6817 main ()
  6819   int i;
  6820   for (i = 0; i < 256; i++)
  6821     if (XOR (islower (i), ISLOWER (i))
  6822 	|| toupper (i) != TOUPPER (i))
  6823       return 2;
  6824   return 0;
  6826 _ACEOF
  6827 rm -f conftest$ac_exeext
  6828 if { (ac_try="$ac_link"
  6829 case "(($ac_try" in
  6830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6831   *) ac_try_echo=$ac_try;;
  6832 esac
  6833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6834 $as_echo "$ac_try_echo") >&5
  6835   (eval "$ac_link") 2>&5
  6836   ac_status=$?
  6837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6839   { (case "(($ac_try" in
  6840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6841   *) ac_try_echo=$ac_try;;
  6842 esac
  6843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6844 $as_echo "$ac_try_echo") >&5
  6845   (eval "$ac_try") 2>&5
  6846   ac_status=$?
  6847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6848   (exit $ac_status); }; }; then
  6850 else
  6851   $as_echo "$as_me: program exited with status $ac_status" >&5
  6852 $as_echo "$as_me: failed program was:" >&5
  6853 sed 's/^/| /' conftest.$ac_ext >&5
  6855 ( exit $ac_status )
  6856 ac_cv_header_stdc=no
  6857 fi
  6858 rm -rf conftest.dSYM
  6859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6860 fi
  6863 fi
  6864 fi
  6865 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6866 $as_echo "$ac_cv_header_stdc" >&6; }
  6867 if test $ac_cv_header_stdc = yes; then
  6869 cat >>confdefs.h <<\_ACEOF
  6870 #define STDC_HEADERS 1
  6871 _ACEOF
  6873 fi
  6875 # Make sure we can run config.sub.
  6876 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6877   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6878 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6879    { (exit 1); exit 1; }; }
  6881 { $as_echo "$as_me:$LINENO: checking build system type" >&5
  6882 $as_echo_n "checking build system type... " >&6; }
  6883 if test "${ac_cv_build+set}" = set; then
  6884   $as_echo_n "(cached) " >&6
  6885 else
  6886   ac_build_alias=$build_alias
  6887 test "x$ac_build_alias" = x &&
  6888   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6889 test "x$ac_build_alias" = x &&
  6890   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6891 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6892    { (exit 1); exit 1; }; }
  6893 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6894   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6895 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6896    { (exit 1); exit 1; }; }
  6898 fi
  6899 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6900 $as_echo "$ac_cv_build" >&6; }
  6901 case $ac_cv_build in
  6902 *-*-*) ;;
  6903 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6904 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  6905    { (exit 1); exit 1; }; };;
  6906 esac
  6907 build=$ac_cv_build
  6908 ac_save_IFS=$IFS; IFS='-'
  6909 set x $ac_cv_build
  6910 shift
  6911 build_cpu=$1
  6912 build_vendor=$2
  6913 shift; shift
  6914 # Remember, the first character of IFS is used to create $*,
  6915 # except with old shells:
  6916 build_os=$*
  6917 IFS=$ac_save_IFS
  6918 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6921 { $as_echo "$as_me:$LINENO: checking host system type" >&5
  6922 $as_echo_n "checking host system type... " >&6; }
  6923 if test "${ac_cv_host+set}" = set; then
  6924   $as_echo_n "(cached) " >&6
  6925 else
  6926   if test "x$host_alias" = x; then
  6927   ac_cv_host=$ac_cv_build
  6928 else
  6929   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6930     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6931 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6932    { (exit 1); exit 1; }; }
  6933 fi
  6935 fi
  6936 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6937 $as_echo "$ac_cv_host" >&6; }
  6938 case $ac_cv_host in
  6939 *-*-*) ;;
  6940 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6941 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  6942    { (exit 1); exit 1; }; };;
  6943 esac
  6944 host=$ac_cv_host
  6945 ac_save_IFS=$IFS; IFS='-'
  6946 set x $ac_cv_host
  6947 shift
  6948 host_cpu=$1
  6949 host_vendor=$2
  6950 shift; shift
  6951 # Remember, the first character of IFS is used to create $*,
  6952 # except with old shells:
  6953 host_os=$*
  6954 IFS=$ac_save_IFS
  6955 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6960 depcc="$OBJC" am_compiler_list='gcc3 gcc'
  6962 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6963 $as_echo_n "checking dependency style of $depcc... " >&6; }
  6964 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
  6965   $as_echo_n "(cached) " >&6
  6966 else
  6967   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6968   # We make a subdir and do the tests there.  Otherwise we can end up
  6969   # making bogus files that we don't know about and never remove.  For
  6970   # instance it was reported that on HP-UX the gcc test will end up
  6971   # making a dummy file named `D' -- because `-MD' means `put the output
  6972   # in D'.
  6973   mkdir conftest.dir
  6974   # Copy depcomp to subdir because otherwise we won't find it if we're
  6975   # using a relative directory.
  6976   cp "$am_depcomp" conftest.dir
  6977   cd conftest.dir
  6978   # We will build objects and dependencies in a subdirectory because
  6979   # it helps to detect inapplicable dependency modes.  For instance
  6980   # both Tru64's cc and ICC support -MD to output dependencies as a
  6981   # side effect of compilation, but ICC will put the dependencies in
  6982   # the current directory while Tru64 will put them in the object
  6983   # directory.
  6984   mkdir sub
  6986   am_cv_OBJC_dependencies_compiler_type=none
  6987   if test "$am_compiler_list" = ""; then
  6988      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6989   fi
  6990   for depmode in $am_compiler_list; do
  6991     # Setup a source with many dependencies, because some compilers
  6992     # like to wrap large dependency lists on column 80 (with \), and
  6993     # we should not choose a depcomp mode which is confused by this.
  6995     # We need to recreate these files for each test, as the compiler may
  6996     # overwrite some of them when testing with obscure command lines.
  6997     # This happens at least with the AIX C compiler.
  6998     : > sub/conftest.c
  6999     for i in 1 2 3 4 5 6; do
  7000       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7001       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7002       # Solaris 8's {/usr,}/bin/sh.
  7003       touch sub/conftst$i.h
  7004     done
  7005     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7007     case $depmode in
  7008     nosideeffect)
  7009       # after this tag, mechanisms are not by side-effect, so they'll
  7010       # only be used when explicitly requested
  7011       if test "x$enable_dependency_tracking" = xyes; then
  7012 	continue
  7013       else
  7014 	break
  7015       fi
  7016       ;;
  7017     none) break ;;
  7018     esac
  7019     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7020     # mode.  It turns out that the SunPro C++ compiler does not properly
  7021     # handle `-M -o', and we need to detect this.
  7022     if depmode=$depmode \
  7023        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  7024        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7025        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  7026          >/dev/null 2>conftest.err &&
  7027        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7028        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  7029        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7030       # icc doesn't choke on unknown options, it will just issue warnings
  7031       # or remarks (even with -Werror).  So we grep stderr for any message
  7032       # that says an option was ignored or not supported.
  7033       # When given -MP, icc 7.0 and 7.1 complain thusly:
  7034       #   icc: Command line warning: ignoring option '-M'; no argument required
  7035       # The diagnosis changed in icc 8.0:
  7036       #   icc: Command line remark: option '-MP' not supported
  7037       if (grep 'ignoring option' conftest.err ||
  7038           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7039         am_cv_OBJC_dependencies_compiler_type=$depmode
  7040         break
  7041       fi
  7042     fi
  7043   done
  7045   cd ..
  7046   rm -rf conftest.dir
  7047 else
  7048   am_cv_OBJC_dependencies_compiler_type=none
  7049 fi
  7051 fi
  7052 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
  7053 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
  7054 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
  7058 if
  7059   test "x$enable_dependency_tracking" != xno \
  7060   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  7061   am__fastdepOBJC_TRUE=
  7062   am__fastdepOBJC_FALSE='#'
  7063 else
  7064   am__fastdepOBJC_TRUE='#'
  7065   am__fastdepOBJC_FALSE=
  7066 fi
  7070 # Extract the first word of "pod2man", so it can be a program name with args.
  7071 set dummy pod2man; ac_word=$2
  7072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7073 $as_echo_n "checking for $ac_word... " >&6; }
  7074 if test "${ac_cv_path_POD2MAN+set}" = set; then
  7075   $as_echo_n "(cached) " >&6
  7076 else
  7077   case $POD2MAN in
  7078   [\\/]* | ?:[\\/]*)
  7079   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  7080   ;;
  7081   *)
  7082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7083 for as_dir in $PATH
  7084 do
  7085   IFS=$as_save_IFS
  7086   test -z "$as_dir" && as_dir=.
  7087   for ac_exec_ext in '' $ac_executable_extensions; do
  7088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7089     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  7090     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7091     break 2
  7092   fi
  7093 done
  7094 done
  7095 IFS=$as_save_IFS
  7097   ;;
  7098 esac
  7099 fi
  7100 POD2MAN=$ac_cv_path_POD2MAN
  7101 if test -n "$POD2MAN"; then
  7102   { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
  7103 $as_echo "$POD2MAN" >&6; }
  7104 else
  7105   { $as_echo "$as_me:$LINENO: result: no" >&5
  7106 $as_echo "no" >&6; }
  7107 fi
  7110 # Extract the first word of "pod2html", so it can be a program name with args.
  7111 set dummy pod2html; ac_word=$2
  7112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7113 $as_echo_n "checking for $ac_word... " >&6; }
  7114 if test "${ac_cv_path_POD2HTML+set}" = set; then
  7115   $as_echo_n "(cached) " >&6
  7116 else
  7117   case $POD2HTML in
  7118   [\\/]* | ?:[\\/]*)
  7119   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  7120   ;;
  7121   *)
  7122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7123 for as_dir in $PATH
  7124 do
  7125   IFS=$as_save_IFS
  7126   test -z "$as_dir" && as_dir=.
  7127   for ac_exec_ext in '' $ac_executable_extensions; do
  7128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7129     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  7130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7131     break 2
  7132   fi
  7133 done
  7134 done
  7135 IFS=$as_save_IFS
  7137   ;;
  7138 esac
  7139 fi
  7140 POD2HTML=$ac_cv_path_POD2HTML
  7141 if test -n "$POD2HTML"; then
  7142   { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
  7143 $as_echo "$POD2HTML" >&6; }
  7144 else
  7145   { $as_echo "$as_me:$LINENO: result: no" >&5
  7146 $as_echo "no" >&6; }
  7147 fi
  7152 # Check whether --enable-strict-warn was given.
  7153 if test "${enable_strict_warn+set}" = set; then
  7154   enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
  7155       enable_strictwarn=yes
  7156     fi
  7157 fi
  7159 # Check whether --enable-translator was given.
  7160 if test "${enable_translator+set}" = set; then
  7161   enableval=$enable_translator; true
  7162 else
  7163   enable_translator=yes
  7164 fi
  7166 # Check whether --enable-optimized was given.
  7167 if test "${enable_optimized+set}" = set; then
  7168   enableval=$enable_optimized; true
  7169 else
  7170   enable_optimized=yes
  7171 fi
  7173 # Check whether --enable-shared was given.
  7174 if test "${enable_shared+set}" = set; then
  7175   enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
  7176 else
  7177   enable_shared=cond
  7178 fi
  7180 # Check whether --enable-profiled was given.
  7181 if test "${enable_profiled+set}" = set; then
  7182   enableval=$enable_profiled; if test "$enableval" == "yes"; then
  7183       enable_profiled=yes;
  7184     fi
  7185 fi
  7187 # Check whether --enable-trace was given.
  7188 if test "${enable_trace+set}" = set; then
  7189   enableval=$enable_trace; if test "$enableval" == "yes"; then
  7191 cat >>confdefs.h <<\_ACEOF
  7192 #define ENABLE_TRACE_IO 1
  7193 _ACEOF
  7195     fi
  7196 fi
  7198 # Check whether --enable-watch was given.
  7199 if test "${enable_watch+set}" = set; then
  7200   enableval=$enable_watch; if test "$enableval" == "yes"; then
  7202 cat >>confdefs.h <<\_ACEOF
  7203 #define ENABLE_WATCH 1
  7204 _ACEOF
  7206    fi
  7207 fi
  7209 # Check whether --enable-sh4stats was given.
  7210 if test "${enable_sh4stats+set}" = set; then
  7211   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  7213 cat >>confdefs.h <<\_ACEOF
  7214 #define ENABLE_SH4STATS 1
  7215 _ACEOF
  7217     fi
  7218 fi
  7221 # Check whether --with-osmesa was given.
  7222 if test "${with_osmesa+set}" = set; then
  7223   withval=$with_osmesa;
  7224 else
  7225   with_osmesa=no
  7226 fi
  7229 # Check whether --with-gtk was given.
  7230 if test "${with_gtk+set}" = set; then
  7231   withval=$with_gtk; with_gtk=yes
  7232 else
  7233   with_gtk=x11
  7234 fi
  7237 # Check whether --with-esd was given.
  7238 if test "${with_esd+set}" = set; then
  7239   withval=$with_esd;
  7240 fi
  7243 # Check whether --with-pulse was given.
  7244 if test "${with_pulse+set}" = set; then
  7245   withval=$with_pulse;
  7246 fi
  7249 # Check whether --with-sdl was given.
  7250 if test "${with_sdl+set}" = set; then
  7251   withval=$with_sdl;
  7252 fi
  7259 ac_ext=m
  7260 ac_cpp='$OBJCPP $CPPFLAGS'
  7261 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7262 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7263 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  7264 if test -n "$ac_tool_prefix"; then
  7265   for ac_prog in gcc objcc objc cc CC
  7266   do
  7267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7269 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7270 $as_echo_n "checking for $ac_word... " >&6; }
  7271 if test "${ac_cv_prog_OBJC+set}" = set; then
  7272   $as_echo_n "(cached) " >&6
  7273 else
  7274   if test -n "$OBJC"; then
  7275   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  7276 else
  7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7278 for as_dir in $PATH
  7279 do
  7280   IFS=$as_save_IFS
  7281   test -z "$as_dir" && as_dir=.
  7282   for ac_exec_ext in '' $ac_executable_extensions; do
  7283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7284     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  7285     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7286     break 2
  7287   fi
  7288 done
  7289 done
  7290 IFS=$as_save_IFS
  7292 fi
  7293 fi
  7294 OBJC=$ac_cv_prog_OBJC
  7295 if test -n "$OBJC"; then
  7296   { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
  7297 $as_echo "$OBJC" >&6; }
  7298 else
  7299   { $as_echo "$as_me:$LINENO: result: no" >&5
  7300 $as_echo "no" >&6; }
  7301 fi
  7304     test -n "$OBJC" && break
  7305   done
  7306 fi
  7307 if test -z "$OBJC"; then
  7308   ac_ct_OBJC=$OBJC
  7309   for ac_prog in gcc objcc objc cc CC
  7310 do
  7311   # Extract the first word of "$ac_prog", so it can be a program name with args.
  7312 set dummy $ac_prog; ac_word=$2
  7313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7314 $as_echo_n "checking for $ac_word... " >&6; }
  7315 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  7316   $as_echo_n "(cached) " >&6
  7317 else
  7318   if test -n "$ac_ct_OBJC"; then
  7319   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  7320 else
  7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7322 for as_dir in $PATH
  7323 do
  7324   IFS=$as_save_IFS
  7325   test -z "$as_dir" && as_dir=.
  7326   for ac_exec_ext in '' $ac_executable_extensions; do
  7327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7328     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  7329     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7330     break 2
  7331   fi
  7332 done
  7333 done
  7334 IFS=$as_save_IFS
  7336 fi
  7337 fi
  7338 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  7339 if test -n "$ac_ct_OBJC"; then
  7340   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  7341 $as_echo "$ac_ct_OBJC" >&6; }
  7342 else
  7343   { $as_echo "$as_me:$LINENO: result: no" >&5
  7344 $as_echo "no" >&6; }
  7345 fi
  7348   test -n "$ac_ct_OBJC" && break
  7349 done
  7351   if test "x$ac_ct_OBJC" = x; then
  7352     OBJC="gcc"
  7353   else
  7354     case $cross_compiling:$ac_tool_warned in
  7355 yes:)
  7356 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7358 ac_tool_warned=yes ;;
  7359 esac
  7360     OBJC=$ac_ct_OBJC
  7361   fi
  7362 fi
  7364 # Provide some information about the compiler.
  7365 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  7366 set X $ac_compile
  7367 ac_compiler=$2
  7368 { (ac_try="$ac_compiler --version >&5"
  7369 case "(($ac_try" in
  7370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7371   *) ac_try_echo=$ac_try;;
  7372 esac
  7373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7374 $as_echo "$ac_try_echo") >&5
  7375   (eval "$ac_compiler --version >&5") 2>&5
  7376   ac_status=$?
  7377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7378   (exit $ac_status); }
  7379 { (ac_try="$ac_compiler -v >&5"
  7380 case "(($ac_try" in
  7381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7382   *) ac_try_echo=$ac_try;;
  7383 esac
  7384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7385 $as_echo "$ac_try_echo") >&5
  7386   (eval "$ac_compiler -v >&5") 2>&5
  7387   ac_status=$?
  7388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7389   (exit $ac_status); }
  7390 { (ac_try="$ac_compiler -V >&5"
  7391 case "(($ac_try" in
  7392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7393   *) ac_try_echo=$ac_try;;
  7394 esac
  7395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7396 $as_echo "$ac_try_echo") >&5
  7397   (eval "$ac_compiler -V >&5") 2>&5
  7398   ac_status=$?
  7399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7400   (exit $ac_status); }
  7402 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  7403 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
  7404 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  7405   $as_echo_n "(cached) " >&6
  7406 else
  7407   cat >conftest.$ac_ext <<_ACEOF
  7408 /* confdefs.h.  */
  7409 _ACEOF
  7410 cat confdefs.h >>conftest.$ac_ext
  7411 cat >>conftest.$ac_ext <<_ACEOF
  7412 /* end confdefs.h.  */
  7414 int
  7415 main ()
  7417 #ifndef __GNUC__
  7418        choke me
  7419 #endif
  7422   return 0;
  7424 _ACEOF
  7425 rm -f conftest.$ac_objext
  7426 if { (ac_try="$ac_compile"
  7427 case "(($ac_try" in
  7428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7429   *) ac_try_echo=$ac_try;;
  7430 esac
  7431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7432 $as_echo "$ac_try_echo") >&5
  7433   (eval "$ac_compile") 2>conftest.er1
  7434   ac_status=$?
  7435   grep -v '^ *+' conftest.er1 >conftest.err
  7436   rm -f conftest.er1
  7437   cat conftest.err >&5
  7438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7439   (exit $ac_status); } && {
  7440 	 test -z "$ac_objc_werror_flag" ||
  7441 	 test ! -s conftest.err
  7442        } && test -s conftest.$ac_objext; then
  7443   ac_compiler_gnu=yes
  7444 else
  7445   $as_echo "$as_me: failed program was:" >&5
  7446 sed 's/^/| /' conftest.$ac_ext >&5
  7448 	ac_compiler_gnu=no
  7449 fi
  7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7452 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  7454 fi
  7455 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  7456 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
  7457 if test $ac_compiler_gnu = yes; then
  7458   GOBJC=yes
  7459 else
  7460   GOBJC=
  7461 fi
  7462 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  7463 ac_save_OBJCFLAGS=$OBJCFLAGS
  7464 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  7465 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
  7466 if test "${ac_cv_prog_objc_g+set}" = set; then
  7467   $as_echo_n "(cached) " >&6
  7468 else
  7469   ac_save_objc_werror_flag=$ac_objc_werror_flag
  7470    ac_objc_werror_flag=yes
  7471    ac_cv_prog_objc_g=no
  7472    OBJCFLAGS="-g"
  7473    cat >conftest.$ac_ext <<_ACEOF
  7474 /* confdefs.h.  */
  7475 _ACEOF
  7476 cat confdefs.h >>conftest.$ac_ext
  7477 cat >>conftest.$ac_ext <<_ACEOF
  7478 /* end confdefs.h.  */
  7480 int
  7481 main ()
  7485   return 0;
  7487 _ACEOF
  7488 rm -f conftest.$ac_objext
  7489 if { (ac_try="$ac_compile"
  7490 case "(($ac_try" in
  7491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7492   *) ac_try_echo=$ac_try;;
  7493 esac
  7494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7495 $as_echo "$ac_try_echo") >&5
  7496   (eval "$ac_compile") 2>conftest.er1
  7497   ac_status=$?
  7498   grep -v '^ *+' conftest.er1 >conftest.err
  7499   rm -f conftest.er1
  7500   cat conftest.err >&5
  7501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7502   (exit $ac_status); } && {
  7503 	 test -z "$ac_objc_werror_flag" ||
  7504 	 test ! -s conftest.err
  7505        } && test -s conftest.$ac_objext; then
  7506   ac_cv_prog_objc_g=yes
  7507 else
  7508   $as_echo "$as_me: failed program was:" >&5
  7509 sed 's/^/| /' conftest.$ac_ext >&5
  7511 	OBJCFLAGS=""
  7512       cat >conftest.$ac_ext <<_ACEOF
  7513 /* confdefs.h.  */
  7514 _ACEOF
  7515 cat confdefs.h >>conftest.$ac_ext
  7516 cat >>conftest.$ac_ext <<_ACEOF
  7517 /* end confdefs.h.  */
  7519 int
  7520 main ()
  7524   return 0;
  7526 _ACEOF
  7527 rm -f conftest.$ac_objext
  7528 if { (ac_try="$ac_compile"
  7529 case "(($ac_try" in
  7530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7531   *) ac_try_echo=$ac_try;;
  7532 esac
  7533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7534 $as_echo "$ac_try_echo") >&5
  7535   (eval "$ac_compile") 2>conftest.er1
  7536   ac_status=$?
  7537   grep -v '^ *+' conftest.er1 >conftest.err
  7538   rm -f conftest.er1
  7539   cat conftest.err >&5
  7540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7541   (exit $ac_status); } && {
  7542 	 test -z "$ac_objc_werror_flag" ||
  7543 	 test ! -s conftest.err
  7544        } && test -s conftest.$ac_objext; then
  7546 else
  7547   $as_echo "$as_me: failed program was:" >&5
  7548 sed 's/^/| /' conftest.$ac_ext >&5
  7550 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  7551 	 OBJCFLAGS="-g"
  7552 	 cat >conftest.$ac_ext <<_ACEOF
  7553 /* confdefs.h.  */
  7554 _ACEOF
  7555 cat confdefs.h >>conftest.$ac_ext
  7556 cat >>conftest.$ac_ext <<_ACEOF
  7557 /* end confdefs.h.  */
  7559 int
  7560 main ()
  7564   return 0;
  7566 _ACEOF
  7567 rm -f conftest.$ac_objext
  7568 if { (ac_try="$ac_compile"
  7569 case "(($ac_try" in
  7570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7571   *) ac_try_echo=$ac_try;;
  7572 esac
  7573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7574 $as_echo "$ac_try_echo") >&5
  7575   (eval "$ac_compile") 2>conftest.er1
  7576   ac_status=$?
  7577   grep -v '^ *+' conftest.er1 >conftest.err
  7578   rm -f conftest.er1
  7579   cat conftest.err >&5
  7580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7581   (exit $ac_status); } && {
  7582 	 test -z "$ac_objc_werror_flag" ||
  7583 	 test ! -s conftest.err
  7584        } && test -s conftest.$ac_objext; then
  7585   ac_cv_prog_objc_g=yes
  7586 else
  7587   $as_echo "$as_me: failed program was:" >&5
  7588 sed 's/^/| /' conftest.$ac_ext >&5
  7591 fi
  7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7594 fi
  7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7597 fi
  7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7600    ac_objc_werror_flag=$ac_save_objc_werror_flag
  7601 fi
  7602 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  7603 $as_echo "$ac_cv_prog_objc_g" >&6; }
  7604 if test "$ac_test_OBJCFLAGS" = set; then
  7605   OBJCFLAGS=$ac_save_OBJCFLAGS
  7606 elif test $ac_cv_prog_objc_g = yes; then
  7607   if test "$GOBJC" = yes; then
  7608     OBJCFLAGS="-g -O2"
  7609   else
  7610     OBJCFLAGS="-g"
  7611   fi
  7612 else
  7613   if test "$GOBJC" = yes; then
  7614     OBJCFLAGS="-O2"
  7615   else
  7616     OBJCFLAGS=
  7617   fi
  7618 fi
  7619 ac_ext=c
  7620 ac_cpp='$CPP $CPPFLAGS'
  7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7625 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
  7626 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
  7627 ac_ext=m
  7628 ac_cpp='$OBJCPP $CPPFLAGS'
  7629 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7630 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7631 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  7632 cat >conftest.$ac_ext <<_ACEOF
  7633 /* confdefs.h.  */
  7634 _ACEOF
  7635 cat confdefs.h >>conftest.$ac_ext
  7636 cat >>conftest.$ac_ext <<_ACEOF
  7637 /* end confdefs.h.  */
  7638 @interface Foo @end
  7639 int
  7640 main ()
  7644   return 0;
  7646 _ACEOF
  7647 rm -f conftest.$ac_objext
  7648 if { (ac_try="$ac_compile"
  7649 case "(($ac_try" in
  7650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7651   *) ac_try_echo=$ac_try;;
  7652 esac
  7653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7654 $as_echo "$ac_try_echo") >&5
  7655   (eval "$ac_compile") 2>conftest.er1
  7656   ac_status=$?
  7657   grep -v '^ *+' conftest.er1 >conftest.err
  7658   rm -f conftest.er1
  7659   cat conftest.err >&5
  7660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7661   (exit $ac_status); } && {
  7662 	 test -z "$ac_objc_werror_flag" ||
  7663 	 test ! -s conftest.err
  7664        } && test -s conftest.$ac_objext; then
  7665   { $as_echo "$as_me:$LINENO: result: yes" >&5
  7666 $as_echo "yes" >&6; }
  7668    { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  7669 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
  7670 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  7671   $as_echo_n "(cached) " >&6
  7672 else
  7673   cat >conftest.$ac_ext <<_ACEOF
  7674 /* confdefs.h.  */
  7675 _ACEOF
  7676 cat confdefs.h >>conftest.$ac_ext
  7677 cat >>conftest.$ac_ext <<_ACEOF
  7678 /* end confdefs.h.  */
  7679 $ac_includes_default
  7681 #include <Cocoa/Cocoa.h>
  7682 _ACEOF
  7683 rm -f conftest.$ac_objext
  7684 if { (ac_try="$ac_compile"
  7685 case "(($ac_try" in
  7686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7687   *) ac_try_echo=$ac_try;;
  7688 esac
  7689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7690 $as_echo "$ac_try_echo") >&5
  7691   (eval "$ac_compile") 2>conftest.er1
  7692   ac_status=$?
  7693   grep -v '^ *+' conftest.er1 >conftest.err
  7694   rm -f conftest.er1
  7695   cat conftest.err >&5
  7696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7697   (exit $ac_status); } && {
  7698 	 test -z "$ac_objc_werror_flag" ||
  7699 	 test ! -s conftest.err
  7700        } && test -s conftest.$ac_objext; then
  7701   ac_cv_header_Cocoa_Cocoa_h=yes
  7702 else
  7703   $as_echo "$as_me: failed program was:" >&5
  7704 sed 's/^/| /' conftest.$ac_ext >&5
  7706 	ac_cv_header_Cocoa_Cocoa_h=no
  7707 fi
  7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7710 fi
  7711 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  7712 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  7713 if test "x$ac_cv_header_Cocoa_Cocoa_h" = x""yes; then
  7715       HAVE_COCOA='yes'
  7716       APPLE_BUILD='yes'
  7717       LIBS="$LIBS -framework AppKit"
  7718       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"
  7719       LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
  7720       LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
  7722 cat >>confdefs.h <<\_ACEOF
  7723 #define HAVE_COCOA 1
  7724 _ACEOF
  7727 cat >>confdefs.h <<\_ACEOF
  7728 #define APPLE_BUILD 1
  7729 _ACEOF
  7731       if test "x$with_gtk" = "xx11"; then
  7732         with_gtk=no
  7733       fi
  7735 fi
  7740 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
  7741 $as_echo_n "checking OBJC version... " >&6; }
  7742 if test -n "$OBJC"; then
  7743   _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
  7744   if test -n "$_GOBJC_VERSION"; then
  7745     { $as_echo "$as_me:$LINENO: result: GCC" >&5
  7746 $as_echo "GCC" >&6; }
  7747       OBJCOPT="-O2 -msse2 -mfpmath=sse"
  7748                      OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
  7749   else
  7750     { $as_echo "$as_me:$LINENO: result: Unknown" >&5
  7751 $as_echo "Unknown" >&6; }
  7752       OBJCOPT="-O2"
  7753   fi
  7754 else
  7755   { $as_echo "$as_me:$LINENO: result: None" >&5
  7756 $as_echo "None" >&6; }
  7758 fi
  7761 else
  7762   $as_echo "$as_me: failed program was:" >&5
  7763 sed 's/^/| /' conftest.$ac_ext >&5
  7765 	{ $as_echo "$as_me:$LINENO: result: No" >&5
  7766 $as_echo "No" >&6; }
  7768 fi
  7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
  7771 ac_ext=c
  7772 ac_cpp='$CPP $CPPFLAGS'
  7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7781 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  7782   GUI_COCOA_TRUE=
  7783   GUI_COCOA_FALSE='#'
  7784 else
  7785   GUI_COCOA_TRUE='#'
  7786   GUI_COCOA_FALSE=
  7787 fi
  7789 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
  7791 cat >>confdefs.h <<\_ACEOF
  7792 #define OSX_BUNDLE 1
  7793 _ACEOF
  7795 fi
  7797 CFLAGS="-g -fexceptions"
  7798 OBJCFLAGS="-g -fexceptions"
  7800 cat >>confdefs.h <<\_ACEOF
  7801 #define HAVE_EXCEPTIONS 1
  7802 _ACEOF
  7805 STDCFLAG="-std=c99"
  7807 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
  7808 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
  7809 { $as_echo "$as_me:$LINENO: checking CC version" >&5
  7810 $as_echo_n "checking CC version... " >&6; }
  7811 if test -n "$_ICC_VERSION"; then
  7812    { $as_echo "$as_me:$LINENO: result: ICC" >&5
  7813 $as_echo "ICC" >&6; }
  7814      CCOPT="$CFLAGS -fast"
  7815                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  7816 elif test -n "$_GCC_VERSION"; then
  7817    { $as_echo "$as_me:$LINENO: result: GCC" >&5
  7818 $as_echo "GCC" >&6; }
  7819      CCOPT="-O2 -msse2 -mfpmath=sse"
  7820                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  7821 else
  7822    { $as_echo "$as_me:$LINENO: result: Unknown" >&5
  7823 $as_echo "Unknown" >&6; }
  7824      CCOPT="$CFLAGS -O2"
  7825 fi
  7828 if test "x$enable_optimized" = "xyes"; then
  7829    CFLAGS="$CFLAGS $CCOPT"
  7830    OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
  7831    if test "x$enable_profiled" != "xyes"; then
  7832               CFLAGS="$CFLAGS -fomit-frame-pointer"
  7833        OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
  7834    fi
  7835 else
  7836    CFLAGS="$CFLAGS -g3"
  7837    OBJCFLAGS="$OBJCFLAGS -g3"
  7838 fi
  7840 if test "x$enable_profiled" = "xyes"; then
  7841    CFLAGS="$CFLAGS -pg"
  7842    LDFLAGS="$LDFLAGS -pg";
  7843    OBJCFLAGS="$OBJCFLAGS -pg";
  7844 fi
  7846 if test "x$enable_strictwarn" = "xyes"; then
  7847    CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
  7848    OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
  7849 fi
  7851 if test "x$enable_shared" != "xno"; then
  7853 cat >>confdefs.h <<\_ACEOF
  7854 #define ENABLE_SHARED 1
  7855 _ACEOF
  7857    if test "x$APPLE_BUILD" = "xyes"; then
  7858       SOEXT="dylib"
  7859       PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
  7860    else
  7861       SOEXT="so"
  7862       PLUGINLDFLAGS="-shared"
  7863    fi
  7864    PLUGINCFLAGS="-fPIC"
  7866    if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7867   { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  7868 $as_echo_n "checking for dlfcn.h... " >&6; }
  7869 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7870   $as_echo_n "(cached) " >&6
  7871 fi
  7872 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  7873 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
  7874 else
  7875   # Is the header compilable?
  7876 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
  7877 $as_echo_n "checking dlfcn.h usability... " >&6; }
  7878 cat >conftest.$ac_ext <<_ACEOF
  7879 /* confdefs.h.  */
  7880 _ACEOF
  7881 cat confdefs.h >>conftest.$ac_ext
  7882 cat >>conftest.$ac_ext <<_ACEOF
  7883 /* end confdefs.h.  */
  7884 $ac_includes_default
  7885 #include <dlfcn.h>
  7886 _ACEOF
  7887 rm -f conftest.$ac_objext
  7888 if { (ac_try="$ac_compile"
  7889 case "(($ac_try" in
  7890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7891   *) ac_try_echo=$ac_try;;
  7892 esac
  7893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7894 $as_echo "$ac_try_echo") >&5
  7895   (eval "$ac_compile") 2>conftest.er1
  7896   ac_status=$?
  7897   grep -v '^ *+' conftest.er1 >conftest.err
  7898   rm -f conftest.er1
  7899   cat conftest.err >&5
  7900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7901   (exit $ac_status); } && {
  7902 	 test -z "$ac_c_werror_flag" ||
  7903 	 test ! -s conftest.err
  7904        } && test -s conftest.$ac_objext; then
  7905   ac_header_compiler=yes
  7906 else
  7907   $as_echo "$as_me: failed program was:" >&5
  7908 sed 's/^/| /' conftest.$ac_ext >&5
  7910 	ac_header_compiler=no
  7911 fi
  7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7914 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7915 $as_echo "$ac_header_compiler" >&6; }
  7917 # Is the header present?
  7918 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
  7919 $as_echo_n "checking dlfcn.h presence... " >&6; }
  7920 cat >conftest.$ac_ext <<_ACEOF
  7921 /* confdefs.h.  */
  7922 _ACEOF
  7923 cat confdefs.h >>conftest.$ac_ext
  7924 cat >>conftest.$ac_ext <<_ACEOF
  7925 /* end confdefs.h.  */
  7926 #include <dlfcn.h>
  7927 _ACEOF
  7928 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7929 case "(($ac_try" in
  7930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7931   *) ac_try_echo=$ac_try;;
  7932 esac
  7933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7934 $as_echo "$ac_try_echo") >&5
  7935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7936   ac_status=$?
  7937   grep -v '^ *+' conftest.er1 >conftest.err
  7938   rm -f conftest.er1
  7939   cat conftest.err >&5
  7940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7941   (exit $ac_status); } >/dev/null && {
  7942 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7943 	 test ! -s conftest.err
  7944        }; then
  7945   ac_header_preproc=yes
  7946 else
  7947   $as_echo "$as_me: failed program was:" >&5
  7948 sed 's/^/| /' conftest.$ac_ext >&5
  7950   ac_header_preproc=no
  7951 fi
  7953 rm -f conftest.err conftest.$ac_ext
  7954 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7955 $as_echo "$ac_header_preproc" >&6; }
  7957 # So?  What about this header?
  7958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7959   yes:no: )
  7960     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7961 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7962     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
  7963 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
  7964     ac_header_preproc=yes
  7965     ;;
  7966   no:yes:* )
  7967     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
  7968 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
  7969     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
  7970 $as_echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
  7971     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
  7972 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
  7973     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
  7974 $as_echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7975     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
  7976 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
  7977     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
  7978 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
  7980     ;;
  7981 esac
  7982 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  7983 $as_echo_n "checking for dlfcn.h... " >&6; }
  7984 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  7985   $as_echo_n "(cached) " >&6
  7986 else
  7987   ac_cv_header_dlfcn_h=$ac_header_preproc
  7988 fi
  7989 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  7990 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
  7992 fi
  7993 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
  7995       { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  7996 $as_echo_n "checking for library containing dlopen... " >&6; }
  7997 if test "${ac_cv_search_dlopen+set}" = set; then
  7998   $as_echo_n "(cached) " >&6
  7999 else
  8000   ac_func_search_save_LIBS=$LIBS
  8001 cat >conftest.$ac_ext <<_ACEOF
  8002 /* confdefs.h.  */
  8003 _ACEOF
  8004 cat confdefs.h >>conftest.$ac_ext
  8005 cat >>conftest.$ac_ext <<_ACEOF
  8006 /* end confdefs.h.  */
  8008 /* Override any GCC internal prototype to avoid an error.
  8009    Use char because int might match the return type of a GCC
  8010    builtin and then its argument prototype would still apply.  */
  8011 #ifdef __cplusplus
  8012 extern "C"
  8013 #endif
  8014 char dlopen ();
  8015 int
  8016 main ()
  8018 return dlopen ();
  8020   return 0;
  8022 _ACEOF
  8023 for ac_lib in '' dl; do
  8024   if test -z "$ac_lib"; then
  8025     ac_res="none required"
  8026   else
  8027     ac_res=-l$ac_lib
  8028     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  8029   fi
  8030   rm -f conftest.$ac_objext conftest$ac_exeext
  8031 if { (ac_try="$ac_link"
  8032 case "(($ac_try" in
  8033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8034   *) ac_try_echo=$ac_try;;
  8035 esac
  8036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8037 $as_echo "$ac_try_echo") >&5
  8038   (eval "$ac_link") 2>conftest.er1
  8039   ac_status=$?
  8040   grep -v '^ *+' conftest.er1 >conftest.err
  8041   rm -f conftest.er1
  8042   cat conftest.err >&5
  8043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8044   (exit $ac_status); } && {
  8045 	 test -z "$ac_c_werror_flag" ||
  8046 	 test ! -s conftest.err
  8047        } && test -s conftest$ac_exeext && {
  8048 	 test "$cross_compiling" = yes ||
  8049 	 $as_test_x conftest$ac_exeext
  8050        }; then
  8051   ac_cv_search_dlopen=$ac_res
  8052 else
  8053   $as_echo "$as_me: failed program was:" >&5
  8054 sed 's/^/| /' conftest.$ac_ext >&5
  8057 fi
  8059 rm -rf conftest.dSYM
  8060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8061       conftest$ac_exeext
  8062   if test "${ac_cv_search_dlopen+set}" = set; then
  8063   break
  8064 fi
  8065 done
  8066 if test "${ac_cv_search_dlopen+set}" = set; then
  8068 else
  8069   ac_cv_search_dlopen=no
  8070 fi
  8071 rm conftest.$ac_ext
  8072 LIBS=$ac_func_search_save_LIBS
  8073 fi
  8074 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
  8075 $as_echo "$ac_cv_search_dlopen" >&6; }
  8076 ac_res=$ac_cv_search_dlopen
  8077 if test "$ac_res" != no; then
  8078   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8079   have_dlopen=yes
  8080 fi
  8082 fi
  8085    if test "x$have_dlopen" != "xyes"; then
  8086       if test "x$enable_shared" == "xyes"; then
  8087          { { $as_echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
  8088 $as_echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
  8089    { (exit 1); exit 1; }; }
  8090       else
  8091          { $as_echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
  8092 $as_echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
  8093       fi
  8094    fi
  8096    { $as_echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
  8097 $as_echo_n "checking if linker accepts -rdynamic... " >&6; }
  8098    old_LDFLAGS="$LDFLAGS"
  8099    LDFLAGS="$LDFLAGS -rdynamic"
  8100    cat >conftest.$ac_ext <<_ACEOF
  8101 int main(){}
  8102 _ACEOF
  8103 rm -f conftest.$ac_objext conftest$ac_exeext
  8104 if { (ac_try="$ac_link"
  8105 case "(($ac_try" in
  8106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8107   *) ac_try_echo=$ac_try;;
  8108 esac
  8109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8110 $as_echo "$ac_try_echo") >&5
  8111   (eval "$ac_link") 2>conftest.er1
  8112   ac_status=$?
  8113   grep -v '^ *+' conftest.er1 >conftest.err
  8114   rm -f conftest.er1
  8115   cat conftest.err >&5
  8116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8117   (exit $ac_status); } && {
  8118 	 test -z "$ac_c_werror_flag" ||
  8119 	 test ! -s conftest.err
  8120        } && test -s conftest$ac_exeext && {
  8121 	 test "$cross_compiling" = yes ||
  8122 	 $as_test_x conftest$ac_exeext
  8123        }; then
  8125      LXDREAMLDFLAGS="-rdynamic"
  8126      { $as_echo "$as_me:$LINENO: result: yes" >&5
  8127 $as_echo "yes" >&6; }
  8129 else
  8130   $as_echo "$as_me: failed program was:" >&5
  8131 sed 's/^/| /' conftest.$ac_ext >&5
  8134      LXDREAMLDFLAGS=""
  8135      { $as_echo "$as_me:$LINENO: result: no" >&5
  8136 $as_echo "no" >&6; }
  8137 fi
  8139 rm -rf conftest.dSYM
  8140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8141       conftest$ac_exeext conftest.$ac_ext
  8142    LDFLAGS="$old_LDFLAGS"
  8148 fi
  8151 if test "x$have_dlopen" = "xyes"; then
  8152   BUILD_SHARED_TRUE=
  8153   BUILD_SHARED_FALSE='#'
  8154 else
  8155   BUILD_SHARED_TRUE='#'
  8156   BUILD_SHARED_FALSE=
  8157 fi
  8161 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
  8162 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
  8163 if test "$cross_compiling" = yes; then
  8164   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8166 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  8167 See \`config.log' for more details." >&5
  8168 $as_echo "$as_me: error: cannot run test program while cross compiling
  8169 See \`config.log' for more details." >&2;}
  8170    { (exit 1); exit 1; }; }; }
  8171 else
  8172   cat >conftest.$ac_ext <<_ACEOF
  8174   /* confdefs.h.  */
  8175 _ACEOF
  8176 cat confdefs.h >>conftest.$ac_ext
  8177 cat >>conftest.$ac_ext <<_ACEOF
  8178 /* end confdefs.h.  */
  8180 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
  8182 int main(int argc, char *argv[])
  8184    return foo( 1, 2 ) == 3 ? 0 : 1;
  8186 _ACEOF
  8187 rm -f conftest$ac_exeext
  8188 if { (ac_try="$ac_link"
  8189 case "(($ac_try" in
  8190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8191   *) ac_try_echo=$ac_try;;
  8192 esac
  8193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8194 $as_echo "$ac_try_echo") >&5
  8195   (eval "$ac_link") 2>&5
  8196   ac_status=$?
  8197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8199   { (case "(($ac_try" in
  8200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8201   *) ac_try_echo=$ac_try;;
  8202 esac
  8203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8204 $as_echo "$ac_try_echo") >&5
  8205   (eval "$ac_try") 2>&5
  8206   ac_status=$?
  8207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8208   (exit $ac_status); }; }; then
  8210    { $as_echo "$as_me:$LINENO: result: yes" >&5
  8211 $as_echo "yes" >&6; }
  8214 cat >>confdefs.h <<\_ACEOF
  8215 #define HAVE_FASTCALL 1
  8216 _ACEOF
  8219 else
  8220   $as_echo "$as_me: program exited with status $ac_status" >&5
  8221 $as_echo "$as_me: failed program was:" >&5
  8222 sed 's/^/| /' conftest.$ac_ext >&5
  8224 ( exit $ac_status )
  8226    { $as_echo "$as_me:$LINENO: result: no" >&5
  8227 $as_echo "no" >&6; }
  8229 fi
  8230 rm -rf conftest.dSYM
  8231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8232 fi
  8237 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
  8238 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
  8239 if test "$cross_compiling" = yes; then
  8240   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8242 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  8243 See \`config.log' for more details." >&5
  8244 $as_echo "$as_me: error: cannot run test program while cross compiling
  8245 See \`config.log' for more details." >&2;}
  8246    { (exit 1); exit 1; }; }; }
  8247 else
  8248   cat >conftest.$ac_ext <<_ACEOF
  8250   /* confdefs.h.  */
  8251 _ACEOF
  8252 cat confdefs.h >>conftest.$ac_ext
  8253 cat >>conftest.$ac_ext <<_ACEOF
  8254 /* end confdefs.h.  */
  8256 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
  8257 int __attribute__((noinline)) foo( int arg, void *exc )
  8259     if( arg < 2 ) {
  8260         *(((void **)__builtin_frame_address(0))+1) = exc;
  8262     return 0;
  8265 int main(int argc, char *argv[])
  8267    goto *first_arg(&&start, &&except);
  8269 start:
  8270    return foo( argc, &&except ) + 1;
  8272 except:
  8273    return 0;
  8275 _ACEOF
  8276 rm -f conftest$ac_exeext
  8277 if { (ac_try="$ac_link"
  8278 case "(($ac_try" in
  8279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8280   *) ac_try_echo=$ac_try;;
  8281 esac
  8282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8283 $as_echo "$ac_try_echo") >&5
  8284   (eval "$ac_link") 2>&5
  8285   ac_status=$?
  8286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8288   { (case "(($ac_try" in
  8289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8290   *) ac_try_echo=$ac_try;;
  8291 esac
  8292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8293 $as_echo "$ac_try_echo") >&5
  8294   (eval "$ac_try") 2>&5
  8295   ac_status=$?
  8296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8297   (exit $ac_status); }; }; then
  8299    { $as_echo "$as_me:$LINENO: result: yes" >&5
  8300 $as_echo "yes" >&6; }
  8303 cat >>confdefs.h <<\_ACEOF
  8304 #define HAVE_FRAME_ADDRESS 1
  8305 _ACEOF
  8308 else
  8309   $as_echo "$as_me: program exited with status $ac_status" >&5
  8310 $as_echo "$as_me: failed program was:" >&5
  8311 sed 's/^/| /' conftest.$ac_ext >&5
  8313 ( exit $ac_status )
  8315    { $as_echo "$as_me:$LINENO: result: no" >&5
  8316 $as_echo "no" >&6; }
  8317     { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
  8318 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
  8319 fi
  8320 rm -rf conftest.dSYM
  8321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8322 fi
  8328 { $as_echo "$as_me:$LINENO: checking for library containing listen" >&5
  8329 $as_echo_n "checking for library containing listen... " >&6; }
  8330 if test "${ac_cv_search_listen+set}" = set; then
  8331   $as_echo_n "(cached) " >&6
  8332 else
  8333   ac_func_search_save_LIBS=$LIBS
  8334 cat >conftest.$ac_ext <<_ACEOF
  8335 /* confdefs.h.  */
  8336 _ACEOF
  8337 cat confdefs.h >>conftest.$ac_ext
  8338 cat >>conftest.$ac_ext <<_ACEOF
  8339 /* end confdefs.h.  */
  8341 /* Override any GCC internal prototype to avoid an error.
  8342    Use char because int might match the return type of a GCC
  8343    builtin and then its argument prototype would still apply.  */
  8344 #ifdef __cplusplus
  8345 extern "C"
  8346 #endif
  8347 char listen ();
  8348 int
  8349 main ()
  8351 return listen ();
  8353   return 0;
  8355 _ACEOF
  8356 for ac_lib in '' socket; do
  8357   if test -z "$ac_lib"; then
  8358     ac_res="none required"
  8359   else
  8360     ac_res=-l$ac_lib
  8361     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  8362   fi
  8363   rm -f conftest.$ac_objext conftest$ac_exeext
  8364 if { (ac_try="$ac_link"
  8365 case "(($ac_try" in
  8366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8367   *) ac_try_echo=$ac_try;;
  8368 esac
  8369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8370 $as_echo "$ac_try_echo") >&5
  8371   (eval "$ac_link") 2>conftest.er1
  8372   ac_status=$?
  8373   grep -v '^ *+' conftest.er1 >conftest.err
  8374   rm -f conftest.er1
  8375   cat conftest.err >&5
  8376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8377   (exit $ac_status); } && {
  8378 	 test -z "$ac_c_werror_flag" ||
  8379 	 test ! -s conftest.err
  8380        } && test -s conftest$ac_exeext && {
  8381 	 test "$cross_compiling" = yes ||
  8382 	 $as_test_x conftest$ac_exeext
  8383        }; then
  8384   ac_cv_search_listen=$ac_res
  8385 else
  8386   $as_echo "$as_me: failed program was:" >&5
  8387 sed 's/^/| /' conftest.$ac_ext >&5
  8390 fi
  8392 rm -rf conftest.dSYM
  8393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8394       conftest$ac_exeext
  8395   if test "${ac_cv_search_listen+set}" = set; then
  8396   break
  8397 fi
  8398 done
  8399 if test "${ac_cv_search_listen+set}" = set; then
  8401 else
  8402   ac_cv_search_listen=no
  8403 fi
  8404 rm conftest.$ac_ext
  8405 LIBS=$ac_func_search_save_LIBS
  8406 fi
  8407 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
  8408 $as_echo "$ac_cv_search_listen" >&6; }
  8409 ac_res=$ac_cv_search_listen
  8410 if test "$ac_res" != no; then
  8411   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8413 fi
  8415 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
  8416 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
  8417 if test "${ac_cv_search_inet_ntoa+set}" = set; then
  8418   $as_echo_n "(cached) " >&6
  8419 else
  8420   ac_func_search_save_LIBS=$LIBS
  8421 cat >conftest.$ac_ext <<_ACEOF
  8422 /* confdefs.h.  */
  8423 _ACEOF
  8424 cat confdefs.h >>conftest.$ac_ext
  8425 cat >>conftest.$ac_ext <<_ACEOF
  8426 /* end confdefs.h.  */
  8428 /* Override any GCC internal prototype to avoid an error.
  8429    Use char because int might match the return type of a GCC
  8430    builtin and then its argument prototype would still apply.  */
  8431 #ifdef __cplusplus
  8432 extern "C"
  8433 #endif
  8434 char inet_ntoa ();
  8435 int
  8436 main ()
  8438 return inet_ntoa ();
  8440   return 0;
  8442 _ACEOF
  8443 for ac_lib in '' nsl; do
  8444   if test -z "$ac_lib"; then
  8445     ac_res="none required"
  8446   else
  8447     ac_res=-l$ac_lib
  8448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  8449   fi
  8450   rm -f conftest.$ac_objext conftest$ac_exeext
  8451 if { (ac_try="$ac_link"
  8452 case "(($ac_try" in
  8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8454   *) ac_try_echo=$ac_try;;
  8455 esac
  8456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8457 $as_echo "$ac_try_echo") >&5
  8458   (eval "$ac_link") 2>conftest.er1
  8459   ac_status=$?
  8460   grep -v '^ *+' conftest.er1 >conftest.err
  8461   rm -f conftest.er1
  8462   cat conftest.err >&5
  8463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8464   (exit $ac_status); } && {
  8465 	 test -z "$ac_c_werror_flag" ||
  8466 	 test ! -s conftest.err
  8467        } && test -s conftest$ac_exeext && {
  8468 	 test "$cross_compiling" = yes ||
  8469 	 $as_test_x conftest$ac_exeext
  8470        }; then
  8471   ac_cv_search_inet_ntoa=$ac_res
  8472 else
  8473   $as_echo "$as_me: failed program was:" >&5
  8474 sed 's/^/| /' conftest.$ac_ext >&5
  8477 fi
  8479 rm -rf conftest.dSYM
  8480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8481       conftest$ac_exeext
  8482   if test "${ac_cv_search_inet_ntoa+set}" = set; then
  8483   break
  8484 fi
  8485 done
  8486 if test "${ac_cv_search_inet_ntoa+set}" = set; then
  8488 else
  8489   ac_cv_search_inet_ntoa=no
  8490 fi
  8491 rm conftest.$ac_ext
  8492 LIBS=$ac_func_search_save_LIBS
  8493 fi
  8494 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
  8495 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
  8496 ac_res=$ac_cv_search_inet_ntoa
  8497 if test "$ac_res" != no; then
  8498   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8500 fi
  8505 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  8506 	if test -n "$ac_tool_prefix"; then
  8507   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  8508 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  8509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8510 $as_echo_n "checking for $ac_word... " >&6; }
  8511 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  8512   $as_echo_n "(cached) " >&6
  8513 else
  8514   case $PKG_CONFIG in
  8515   [\\/]* | ?:[\\/]*)
  8516   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  8517   ;;
  8518   *)
  8519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8520 for as_dir in $PATH
  8521 do
  8522   IFS=$as_save_IFS
  8523   test -z "$as_dir" && as_dir=.
  8524   for ac_exec_ext in '' $ac_executable_extensions; do
  8525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8526     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8527     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8528     break 2
  8529   fi
  8530 done
  8531 done
  8532 IFS=$as_save_IFS
  8534   ;;
  8535 esac
  8536 fi
  8537 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  8538 if test -n "$PKG_CONFIG"; then
  8539   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  8540 $as_echo "$PKG_CONFIG" >&6; }
  8541 else
  8542   { $as_echo "$as_me:$LINENO: result: no" >&5
  8543 $as_echo "no" >&6; }
  8544 fi
  8547 fi
  8548 if test -z "$ac_cv_path_PKG_CONFIG"; then
  8549   ac_pt_PKG_CONFIG=$PKG_CONFIG
  8550   # Extract the first word of "pkg-config", so it can be a program name with args.
  8551 set dummy pkg-config; ac_word=$2
  8552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8553 $as_echo_n "checking for $ac_word... " >&6; }
  8554 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  8555   $as_echo_n "(cached) " >&6
  8556 else
  8557   case $ac_pt_PKG_CONFIG in
  8558   [\\/]* | ?:[\\/]*)
  8559   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  8560   ;;
  8561   *)
  8562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8563 for as_dir in $PATH
  8564 do
  8565   IFS=$as_save_IFS
  8566   test -z "$as_dir" && as_dir=.
  8567   for ac_exec_ext in '' $ac_executable_extensions; do
  8568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8569     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8570     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8571     break 2
  8572   fi
  8573 done
  8574 done
  8575 IFS=$as_save_IFS
  8577   ;;
  8578 esac
  8579 fi
  8580 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  8581 if test -n "$ac_pt_PKG_CONFIG"; then
  8582   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  8583 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  8584 else
  8585   { $as_echo "$as_me:$LINENO: result: no" >&5
  8586 $as_echo "no" >&6; }
  8587 fi
  8589   if test "x$ac_pt_PKG_CONFIG" = x; then
  8590     PKG_CONFIG=""
  8591   else
  8592     case $cross_compiling:$ac_tool_warned in
  8593 yes:)
  8594 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8596 ac_tool_warned=yes ;;
  8597 esac
  8598     PKG_CONFIG=$ac_pt_PKG_CONFIG
  8599   fi
  8600 else
  8601   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  8602 fi
  8604 fi
  8605 if test -n "$PKG_CONFIG"; then
  8606 	_pkg_min_version=0.9.0
  8607 	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  8608 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  8609 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  8610 		{ $as_echo "$as_me:$LINENO: result: yes" >&5
  8611 $as_echo "yes" >&6; }
  8612 	else
  8613 		{ $as_echo "$as_me:$LINENO: result: no" >&5
  8614 $as_echo "no" >&6; }
  8615 		PKG_CONFIG=""
  8616 	fi
  8618 fi
  8620 pkg_failed=no
  8621 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
  8622 $as_echo_n "checking for LIBPNG... " >&6; }
  8624 if test -n "$LIBPNG_CFLAGS"; then
  8625     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  8626  elif test -n "$PKG_CONFIG"; then
  8627     if test -n "$PKG_CONFIG" && \
  8628     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  8629   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  8630   ac_status=$?
  8631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8632   (exit $ac_status); }; then
  8633   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  8634 else
  8635   pkg_failed=yes
  8636 fi
  8637  else
  8638     pkg_failed=untried
  8639 fi
  8640 if test -n "$LIBPNG_LIBS"; then
  8641     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  8642  elif test -n "$PKG_CONFIG"; then
  8643     if test -n "$PKG_CONFIG" && \
  8644     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  8645   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  8646   ac_status=$?
  8647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8648   (exit $ac_status); }; then
  8649   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  8650 else
  8651   pkg_failed=yes
  8652 fi
  8653  else
  8654     pkg_failed=untried
  8655 fi
  8659 if test $pkg_failed = yes; then
  8661 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8662         _pkg_short_errors_supported=yes
  8663 else
  8664         _pkg_short_errors_supported=no
  8665 fi
  8666         if test $_pkg_short_errors_supported = yes; then
  8667 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
  8668         else
  8669 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
  8670         fi
  8671 	# Put the nasty error message in config.log where it belongs
  8672 	echo "$LIBPNG_PKG_ERRORS" >&5
  8674 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  8676 $LIBPNG_PKG_ERRORS
  8678 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8679 installed software in a non-standard prefix.
  8681 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8682 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8683 See the pkg-config man page for more details.
  8684 " >&5
  8685 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
  8687 $LIBPNG_PKG_ERRORS
  8689 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8690 installed software in a non-standard prefix.
  8692 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8693 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8694 See the pkg-config man page for more details.
  8695 " >&2;}
  8696    { (exit 1); exit 1; }; }
  8697 elif test $pkg_failed = untried; then
  8698 	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8700 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  8701 is in your PATH or set the PKG_CONFIG environment variable to the full
  8702 path to pkg-config.
  8704 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8705 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8706 See the pkg-config man page for more details.
  8708 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8709 See \`config.log' for more details." >&5
  8710 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  8711 is in your PATH or set the PKG_CONFIG environment variable to the full
  8712 path to pkg-config.
  8714 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8715 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8716 See the pkg-config man page for more details.
  8718 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8719 See \`config.log' for more details." >&2;}
  8720    { (exit 1); exit 1; }; }; }
  8721 else
  8722 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  8723 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  8724         { $as_echo "$as_me:$LINENO: result: yes" >&5
  8725 $as_echo "yes" >&6; }
  8727 fi
  8730 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  8731 $as_echo_n "checking for uncompress in -lz... " >&6; }
  8732 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  8733   $as_echo_n "(cached) " >&6
  8734 else
  8735   ac_check_lib_save_LIBS=$LIBS
  8736 LIBS="-lz  $LIBS"
  8737 cat >conftest.$ac_ext <<_ACEOF
  8738 /* confdefs.h.  */
  8739 _ACEOF
  8740 cat confdefs.h >>conftest.$ac_ext
  8741 cat >>conftest.$ac_ext <<_ACEOF
  8742 /* end confdefs.h.  */
  8744 /* Override any GCC internal prototype to avoid an error.
  8745    Use char because int might match the return type of a GCC
  8746    builtin and then its argument prototype would still apply.  */
  8747 #ifdef __cplusplus
  8748 extern "C"
  8749 #endif
  8750 char uncompress ();
  8751 int
  8752 main ()
  8754 return uncompress ();
  8756   return 0;
  8758 _ACEOF
  8759 rm -f conftest.$ac_objext conftest$ac_exeext
  8760 if { (ac_try="$ac_link"
  8761 case "(($ac_try" in
  8762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8763   *) ac_try_echo=$ac_try;;
  8764 esac
  8765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8766 $as_echo "$ac_try_echo") >&5
  8767   (eval "$ac_link") 2>conftest.er1
  8768   ac_status=$?
  8769   grep -v '^ *+' conftest.er1 >conftest.err
  8770   rm -f conftest.er1
  8771   cat conftest.err >&5
  8772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8773   (exit $ac_status); } && {
  8774 	 test -z "$ac_c_werror_flag" ||
  8775 	 test ! -s conftest.err
  8776        } && test -s conftest$ac_exeext && {
  8777 	 test "$cross_compiling" = yes ||
  8778 	 $as_test_x conftest$ac_exeext
  8779        }; then
  8780   ac_cv_lib_z_uncompress=yes
  8781 else
  8782   $as_echo "$as_me: failed program was:" >&5
  8783 sed 's/^/| /' conftest.$ac_ext >&5
  8785 	ac_cv_lib_z_uncompress=no
  8786 fi
  8788 rm -rf conftest.dSYM
  8789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8790       conftest$ac_exeext conftest.$ac_ext
  8791 LIBS=$ac_check_lib_save_LIBS
  8792 fi
  8793 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  8794 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
  8795 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
  8796   cat >>confdefs.h <<_ACEOF
  8797 #define HAVE_LIBZ 1
  8798 _ACEOF
  8800   LIBS="-lz $LIBS"
  8802 else
  8804     echo "Zlib (libz.so) could not be found, but is required."
  8805     exit 1
  8806 fi
  8809 if test "x$with_gtk" = "xno"; then
  8811 pkg_failed=no
  8812 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
  8813 $as_echo_n "checking for GLIB... " >&6; }
  8815 if test -n "$GLIB_CFLAGS"; then
  8816     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
  8817  elif test -n "$PKG_CONFIG"; then
  8818     if test -n "$PKG_CONFIG" && \
  8819     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  8820   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  8821   ac_status=$?
  8822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8823   (exit $ac_status); }; then
  8824   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
  8825 else
  8826   pkg_failed=yes
  8827 fi
  8828  else
  8829     pkg_failed=untried
  8830 fi
  8831 if test -n "$GLIB_LIBS"; then
  8832     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
  8833  elif test -n "$PKG_CONFIG"; then
  8834     if test -n "$PKG_CONFIG" && \
  8835     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  8836   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  8837   ac_status=$?
  8838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8839   (exit $ac_status); }; then
  8840   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
  8841 else
  8842   pkg_failed=yes
  8843 fi
  8844  else
  8845     pkg_failed=untried
  8846 fi
  8850 if test $pkg_failed = yes; then
  8852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8853         _pkg_short_errors_supported=yes
  8854 else
  8855         _pkg_short_errors_supported=no
  8856 fi
  8857         if test $_pkg_short_errors_supported = yes; then
  8858 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
  8859         else
  8860 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
  8861         fi
  8862 	# Put the nasty error message in config.log where it belongs
  8863 	echo "$GLIB_PKG_ERRORS" >&5
  8865 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
  8867 $GLIB_PKG_ERRORS
  8869 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8870 installed software in a non-standard prefix.
  8872 Alternatively, you may set the environment variables GLIB_CFLAGS
  8873 and GLIB_LIBS to avoid the need to call pkg-config.
  8874 See the pkg-config man page for more details.
  8875 " >&5
  8876 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
  8878 $GLIB_PKG_ERRORS
  8880 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8881 installed software in a non-standard prefix.
  8883 Alternatively, you may set the environment variables GLIB_CFLAGS
  8884 and GLIB_LIBS to avoid the need to call pkg-config.
  8885 See the pkg-config man page for more details.
  8886 " >&2;}
  8887    { (exit 1); exit 1; }; }
  8888 elif test $pkg_failed = untried; then
  8889 	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8891 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  8892 is in your PATH or set the PKG_CONFIG environment variable to the full
  8893 path to pkg-config.
  8895 Alternatively, you may set the environment variables GLIB_CFLAGS
  8896 and GLIB_LIBS to avoid the need to call pkg-config.
  8897 See the pkg-config man page for more details.
  8899 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8900 See \`config.log' for more details." >&5
  8901 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  8902 is in your PATH or set the PKG_CONFIG environment variable to the full
  8903 path to pkg-config.
  8905 Alternatively, you may set the environment variables GLIB_CFLAGS
  8906 and GLIB_LIBS to avoid the need to call pkg-config.
  8907 See the pkg-config man page for more details.
  8909 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8910 See \`config.log' for more details." >&2;}
  8911    { (exit 1); exit 1; }; }; }
  8912 else
  8913 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
  8914 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
  8915         { $as_echo "$as_me:$LINENO: result: yes" >&5
  8916 $as_echo "yes" >&6; }
  8918 fi
  8919 else
  8921 pkg_failed=no
  8922 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
  8923 $as_echo_n "checking for GTK... " >&6; }
  8925 if test -n "$GTK_CFLAGS"; then
  8926     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  8927  elif test -n "$PKG_CONFIG"; then
  8928     if test -n "$PKG_CONFIG" && \
  8929     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  8930   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  8931   ac_status=$?
  8932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8933   (exit $ac_status); }; then
  8934   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  8935 else
  8936   pkg_failed=yes
  8937 fi
  8938  else
  8939     pkg_failed=untried
  8940 fi
  8941 if test -n "$GTK_LIBS"; then
  8942     pkg_cv_GTK_LIBS="$GTK_LIBS"
  8943  elif test -n "$PKG_CONFIG"; then
  8944     if test -n "$PKG_CONFIG" && \
  8945     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  8946   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  8947   ac_status=$?
  8948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8949   (exit $ac_status); }; then
  8950   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  8951 else
  8952   pkg_failed=yes
  8953 fi
  8954  else
  8955     pkg_failed=untried
  8956 fi
  8960 if test $pkg_failed = yes; then
  8962 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8963         _pkg_short_errors_supported=yes
  8964 else
  8965         _pkg_short_errors_supported=no
  8966 fi
  8967         if test $_pkg_short_errors_supported = yes; then
  8968 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
  8969         else
  8970 	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
  8971         fi
  8972 	# Put the nasty error message in config.log where it belongs
  8973 	echo "$GTK_PKG_ERRORS" >&5
  8975 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  8977 $GTK_PKG_ERRORS
  8979 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8980 installed software in a non-standard prefix.
  8982 Alternatively, you may set the environment variables GTK_CFLAGS
  8983 and GTK_LIBS to avoid the need to call pkg-config.
  8984 See the pkg-config man page for more details.
  8985 " >&5
  8986 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  8988 $GTK_PKG_ERRORS
  8990 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8991 installed software in a non-standard prefix.
  8993 Alternatively, you may set the environment variables GTK_CFLAGS
  8994 and GTK_LIBS to avoid the need to call pkg-config.
  8995 See the pkg-config man page for more details.
  8996 " >&2;}
  8997    { (exit 1); exit 1; }; }
  8998 elif test $pkg_failed = untried; then
  8999 	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  9000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9001 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  9002 is in your PATH or set the PKG_CONFIG environment variable to the full
  9003 path to pkg-config.
  9005 Alternatively, you may set the environment variables GTK_CFLAGS
  9006 and GTK_LIBS to avoid the need to call pkg-config.
  9007 See the pkg-config man page for more details.
  9009 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9010 See \`config.log' for more details." >&5
  9011 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  9012 is in your PATH or set the PKG_CONFIG environment variable to the full
  9013 path to pkg-config.
  9015 Alternatively, you may set the environment variables GTK_CFLAGS
  9016 and GTK_LIBS to avoid the need to call pkg-config.
  9017 See the pkg-config man page for more details.
  9019 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9020 See \`config.log' for more details." >&2;}
  9021    { (exit 1); exit 1; }; }; }
  9022 else
  9023 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  9024 	GTK_LIBS=$pkg_cv_GTK_LIBS
  9025         { $as_echo "$as_me:$LINENO: result: yes" >&5
  9026 $as_echo "yes" >&6; }
  9028        HAVE_GTK='yes'
  9030 cat >>confdefs.h <<\_ACEOF
  9031 #define HAVE_GTK 1
  9032 _ACEOF
  9035 fi
  9037       LIBS="$LIBS $GTK_LIBS"
  9038    { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
  9039 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
  9040 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
  9041   $as_echo_n "(cached) " >&6
  9042 else
  9043   cat >conftest.$ac_ext <<_ACEOF
  9044 /* confdefs.h.  */
  9045 _ACEOF
  9046 cat confdefs.h >>conftest.$ac_ext
  9047 cat >>conftest.$ac_ext <<_ACEOF
  9048 /* end confdefs.h.  */
  9049 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
  9050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9051 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
  9053 /* System header to define __stub macros and hopefully few prototypes,
  9054     which can conflict with char gdk_x11_display_get_xdisplay (); below.
  9055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9056     <limits.h> exists even on freestanding compilers.  */
  9058 #ifdef __STDC__
  9059 # include <limits.h>
  9060 #else
  9061 # include <assert.h>
  9062 #endif
  9064 #undef gdk_x11_display_get_xdisplay
  9066 /* Override any GCC internal prototype to avoid an error.
  9067    Use char because int might match the return type of a GCC
  9068    builtin and then its argument prototype would still apply.  */
  9069 #ifdef __cplusplus
  9070 extern "C"
  9071 #endif
  9072 char gdk_x11_display_get_xdisplay ();
  9073 /* The GNU C library defines this for functions which it implements
  9074     to always fail with ENOSYS.  Some functions are actually named
  9075     something starting with __ and the normal name is an alias.  */
  9076 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
  9077 choke me
  9078 #endif
  9080 int
  9081 main ()
  9083 return gdk_x11_display_get_xdisplay ();
  9085   return 0;
  9087 _ACEOF
  9088 rm -f conftest.$ac_objext conftest$ac_exeext
  9089 if { (ac_try="$ac_link"
  9090 case "(($ac_try" in
  9091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9092   *) ac_try_echo=$ac_try;;
  9093 esac
  9094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9095 $as_echo "$ac_try_echo") >&5
  9096   (eval "$ac_link") 2>conftest.er1
  9097   ac_status=$?
  9098   grep -v '^ *+' conftest.er1 >conftest.err
  9099   rm -f conftest.er1
  9100   cat conftest.err >&5
  9101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9102   (exit $ac_status); } && {
  9103 	 test -z "$ac_c_werror_flag" ||
  9104 	 test ! -s conftest.err
  9105        } && test -s conftest$ac_exeext && {
  9106 	 test "$cross_compiling" = yes ||
  9107 	 $as_test_x conftest$ac_exeext
  9108        }; then
  9109   ac_cv_func_gdk_x11_display_get_xdisplay=yes
  9110 else
  9111   $as_echo "$as_me: failed program was:" >&5
  9112 sed 's/^/| /' conftest.$ac_ext >&5
  9114 	ac_cv_func_gdk_x11_display_get_xdisplay=no
  9115 fi
  9117 rm -rf conftest.dSYM
  9118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9119       conftest$ac_exeext conftest.$ac_ext
  9120 fi
  9121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
  9122 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
  9123 if test "x$ac_cv_func_gdk_x11_display_get_xdisplay" = x""yes; then
  9125       HAVE_GTK_X11='yes'
  9127 cat >>confdefs.h <<\_ACEOF
  9128 #define HAVE_GTK_X11 1
  9129 _ACEOF
  9131 fi
  9133    { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
  9134 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
  9135 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
  9136   $as_echo_n "(cached) " >&6
  9137 else
  9138   cat >conftest.$ac_ext <<_ACEOF
  9139 /* confdefs.h.  */
  9140 _ACEOF
  9141 cat confdefs.h >>conftest.$ac_ext
  9142 cat >>conftest.$ac_ext <<_ACEOF
  9143 /* end confdefs.h.  */
  9144 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
  9145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9146 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
  9148 /* System header to define __stub macros and hopefully few prototypes,
  9149     which can conflict with char gdk_quartz_window_get_nsview (); below.
  9150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9151     <limits.h> exists even on freestanding compilers.  */
  9153 #ifdef __STDC__
  9154 # include <limits.h>
  9155 #else
  9156 # include <assert.h>
  9157 #endif
  9159 #undef gdk_quartz_window_get_nsview
  9161 /* Override any GCC internal prototype to avoid an error.
  9162    Use char because int might match the return type of a GCC
  9163    builtin and then its argument prototype would still apply.  */
  9164 #ifdef __cplusplus
  9165 extern "C"
  9166 #endif
  9167 char gdk_quartz_window_get_nsview ();
  9168 /* The GNU C library defines this for functions which it implements
  9169     to always fail with ENOSYS.  Some functions are actually named
  9170     something starting with __ and the normal name is an alias.  */
  9171 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
  9172 choke me
  9173 #endif
  9175 int
  9176 main ()
  9178 return gdk_quartz_window_get_nsview ();
  9180   return 0;
  9182 _ACEOF
  9183 rm -f conftest.$ac_objext conftest$ac_exeext
  9184 if { (ac_try="$ac_link"
  9185 case "(($ac_try" in
  9186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9187   *) ac_try_echo=$ac_try;;
  9188 esac
  9189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9190 $as_echo "$ac_try_echo") >&5
  9191   (eval "$ac_link") 2>conftest.er1
  9192   ac_status=$?
  9193   grep -v '^ *+' conftest.er1 >conftest.err
  9194   rm -f conftest.er1
  9195   cat conftest.err >&5
  9196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9197   (exit $ac_status); } && {
  9198 	 test -z "$ac_c_werror_flag" ||
  9199 	 test ! -s conftest.err
  9200        } && test -s conftest$ac_exeext && {
  9201 	 test "$cross_compiling" = yes ||
  9202 	 $as_test_x conftest$ac_exeext
  9203        }; then
  9204   ac_cv_func_gdk_quartz_window_get_nsview=yes
  9205 else
  9206   $as_echo "$as_me: failed program was:" >&5
  9207 sed 's/^/| /' conftest.$ac_ext >&5
  9209 	ac_cv_func_gdk_quartz_window_get_nsview=no
  9210 fi
  9212 rm -rf conftest.dSYM
  9213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9214       conftest$ac_exeext conftest.$ac_ext
  9215 fi
  9216 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
  9217 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
  9218 if test "x$ac_cv_func_gdk_quartz_window_get_nsview" = x""yes; then
  9220       HAVE_GTK_OSX='yes'
  9222 cat >>confdefs.h <<\_ACEOF
  9223 #define HAVE_GTK_OSX 1
  9224 _ACEOF
  9226 fi
  9228 fi
  9232 if test "$HAVE_GTK" = 'yes'; then
  9233   GUI_GTK_TRUE=
  9234   GUI_GTK_FALSE='#'
  9235 else
  9236   GUI_GTK_TRUE='#'
  9237   GUI_GTK_FALSE=
  9238 fi
  9241 if test "x$with_osmesa" != xno; then
  9245 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  9246 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
  9247 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  9248   $as_echo_n "(cached) " >&6
  9249 else
  9250   ac_check_lib_save_LIBS=$LIBS
  9251 LIBS="-lOSMesa  $LIBS"
  9252 cat >conftest.$ac_ext <<_ACEOF
  9253 /* confdefs.h.  */
  9254 _ACEOF
  9255 cat confdefs.h >>conftest.$ac_ext
  9256 cat >>conftest.$ac_ext <<_ACEOF
  9257 /* end confdefs.h.  */
  9259 /* Override any GCC internal prototype to avoid an error.
  9260    Use char because int might match the return type of a GCC
  9261    builtin and then its argument prototype would still apply.  */
  9262 #ifdef __cplusplus
  9263 extern "C"
  9264 #endif
  9265 char OSMesaCreateContext ();
  9266 int
  9267 main ()
  9269 return OSMesaCreateContext ();
  9271   return 0;
  9273 _ACEOF
  9274 rm -f conftest.$ac_objext conftest$ac_exeext
  9275 if { (ac_try="$ac_link"
  9276 case "(($ac_try" in
  9277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9278   *) ac_try_echo=$ac_try;;
  9279 esac
  9280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9281 $as_echo "$ac_try_echo") >&5
  9282   (eval "$ac_link") 2>conftest.er1
  9283   ac_status=$?
  9284   grep -v '^ *+' conftest.er1 >conftest.err
  9285   rm -f conftest.er1
  9286   cat conftest.err >&5
  9287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9288   (exit $ac_status); } && {
  9289 	 test -z "$ac_c_werror_flag" ||
  9290 	 test ! -s conftest.err
  9291        } && test -s conftest$ac_exeext && {
  9292 	 test "$cross_compiling" = yes ||
  9293 	 $as_test_x conftest$ac_exeext
  9294        }; then
  9295   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  9296 else
  9297   $as_echo "$as_me: failed program was:" >&5
  9298 sed 's/^/| /' conftest.$ac_ext >&5
  9300 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  9301 fi
  9303 rm -rf conftest.dSYM
  9304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9305       conftest$ac_exeext conftest.$ac_ext
  9306 LIBS=$ac_check_lib_save_LIBS
  9307 fi
  9308 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  9309 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  9310 if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = x""yes; then
  9311   cat >>confdefs.h <<_ACEOF
  9312 #define HAVE_LIBOSMESA 1
  9313 _ACEOF
  9315   LIBS="-lOSMesa $LIBS"
  9317 else
  9318   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  9319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9320 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  9321 See \`config.log' for more details." >&5
  9322 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  9323 See \`config.log' for more details." >&2;}
  9324    { (exit 1); exit 1; }; }; }
  9325 fi
  9327   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  9328   { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  9329 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  9330 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  9331   $as_echo_n "(cached) " >&6
  9332 fi
  9333 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  9334 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  9335 else
  9336   # Is the header compilable?
  9337 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  9338 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
  9339 cat >conftest.$ac_ext <<_ACEOF
  9340 /* confdefs.h.  */
  9341 _ACEOF
  9342 cat confdefs.h >>conftest.$ac_ext
  9343 cat >>conftest.$ac_ext <<_ACEOF
  9344 /* end confdefs.h.  */
  9345 $ac_includes_default
  9346 #include <GL/osmesa.h>
  9347 _ACEOF
  9348 rm -f conftest.$ac_objext
  9349 if { (ac_try="$ac_compile"
  9350 case "(($ac_try" in
  9351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9352   *) ac_try_echo=$ac_try;;
  9353 esac
  9354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9355 $as_echo "$ac_try_echo") >&5
  9356   (eval "$ac_compile") 2>conftest.er1
  9357   ac_status=$?
  9358   grep -v '^ *+' conftest.er1 >conftest.err
  9359   rm -f conftest.er1
  9360   cat conftest.err >&5
  9361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9362   (exit $ac_status); } && {
  9363 	 test -z "$ac_c_werror_flag" ||
  9364 	 test ! -s conftest.err
  9365        } && test -s conftest.$ac_objext; then
  9366   ac_header_compiler=yes
  9367 else
  9368   $as_echo "$as_me: failed program was:" >&5
  9369 sed 's/^/| /' conftest.$ac_ext >&5
  9371 	ac_header_compiler=no
  9372 fi
  9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9375 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9376 $as_echo "$ac_header_compiler" >&6; }
  9378 # Is the header present?
  9379 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  9380 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
  9381 cat >conftest.$ac_ext <<_ACEOF
  9382 /* confdefs.h.  */
  9383 _ACEOF
  9384 cat confdefs.h >>conftest.$ac_ext
  9385 cat >>conftest.$ac_ext <<_ACEOF
  9386 /* end confdefs.h.  */
  9387 #include <GL/osmesa.h>
  9388 _ACEOF
  9389 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9390 case "(($ac_try" in
  9391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9392   *) ac_try_echo=$ac_try;;
  9393 esac
  9394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9395 $as_echo "$ac_try_echo") >&5
  9396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9397   ac_status=$?
  9398   grep -v '^ *+' conftest.er1 >conftest.err
  9399   rm -f conftest.er1
  9400   cat conftest.err >&5
  9401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9402   (exit $ac_status); } >/dev/null && {
  9403 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9404 	 test ! -s conftest.err
  9405        }; then
  9406   ac_header_preproc=yes
  9407 else
  9408   $as_echo "$as_me: failed program was:" >&5
  9409 sed 's/^/| /' conftest.$ac_ext >&5
  9411   ac_header_preproc=no
  9412 fi
  9414 rm -f conftest.err conftest.$ac_ext
  9415 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9416 $as_echo "$ac_header_preproc" >&6; }
  9418 # So?  What about this header?
  9419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9420   yes:no: )
  9421     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9422 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9423     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  9424 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  9425     ac_header_preproc=yes
  9426     ;;
  9427   no:yes:* )
  9428     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  9429 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  9430     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  9431 $as_echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  9432     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  9433 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  9434     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  9435 $as_echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9436     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  9437 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  9438     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  9439 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  9441     ;;
  9442 esac
  9443 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  9444 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  9445 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  9446   $as_echo_n "(cached) " >&6
  9447 else
  9448   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  9449 fi
  9450 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  9451 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  9453 fi
  9454 if test "x$ac_cv_header_GL_osmesa_h" = x""yes; then
  9456 else
  9457   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  9458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9459 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  9460 See \`config.log' for more details." >&5
  9461 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  9462 See \`config.log' for more details." >&2;}
  9463    { (exit 1); exit 1; }; }; }
  9464 fi
  9467   HAVE_OSMESA='yes'
  9468   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
  9470 cat >>confdefs.h <<\_ACEOF
  9471 #define HAVE_OSMESA 1
  9472 _ACEOF
  9474 else
  9477    if test "x$APPLE_BUILD" != 'xyes'; then
  9479 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
  9480 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
  9481 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
  9482   $as_echo_n "(cached) " >&6
  9483 else
  9484   ac_check_lib_save_LIBS=$LIBS
  9485 LIBS="-lGL  $LIBS"
  9486 cat >conftest.$ac_ext <<_ACEOF
  9487 /* confdefs.h.  */
  9488 _ACEOF
  9489 cat confdefs.h >>conftest.$ac_ext
  9490 cat >>conftest.$ac_ext <<_ACEOF
  9491 /* end confdefs.h.  */
  9493 /* Override any GCC internal prototype to avoid an error.
  9494    Use char because int might match the return type of a GCC
  9495    builtin and then its argument prototype would still apply.  */
  9496 #ifdef __cplusplus
  9497 extern "C"
  9498 #endif
  9499 char glVertex3f ();
  9500 int
  9501 main ()
  9503 return glVertex3f ();
  9505   return 0;
  9507 _ACEOF
  9508 rm -f conftest.$ac_objext conftest$ac_exeext
  9509 if { (ac_try="$ac_link"
  9510 case "(($ac_try" in
  9511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9512   *) ac_try_echo=$ac_try;;
  9513 esac
  9514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9515 $as_echo "$ac_try_echo") >&5
  9516   (eval "$ac_link") 2>conftest.er1
  9517   ac_status=$?
  9518   grep -v '^ *+' conftest.er1 >conftest.err
  9519   rm -f conftest.er1
  9520   cat conftest.err >&5
  9521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9522   (exit $ac_status); } && {
  9523 	 test -z "$ac_c_werror_flag" ||
  9524 	 test ! -s conftest.err
  9525        } && test -s conftest$ac_exeext && {
  9526 	 test "$cross_compiling" = yes ||
  9527 	 $as_test_x conftest$ac_exeext
  9528        }; then
  9529   ac_cv_lib_GL_glVertex3f=yes
  9530 else
  9531   $as_echo "$as_me: failed program was:" >&5
  9532 sed 's/^/| /' conftest.$ac_ext >&5
  9534 	ac_cv_lib_GL_glVertex3f=no
  9535 fi
  9537 rm -rf conftest.dSYM
  9538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9539       conftest$ac_exeext conftest.$ac_ext
  9540 LIBS=$ac_check_lib_save_LIBS
  9541 fi
  9542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
  9543 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
  9544 if test "x$ac_cv_lib_GL_glVertex3f" = x""yes; then
  9545   cat >>confdefs.h <<_ACEOF
  9546 #define HAVE_LIBGL 1
  9547 _ACEOF
  9549   LIBS="-lGL $LIBS"
  9551 else
  9553           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  9554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9555 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  9556 See \`config.log' for more details." >&5
  9557 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  9558 See \`config.log' for more details." >&2;}
  9559    { (exit 1); exit 1; }; }; }
  9560 fi
  9562       if test "${ac_cv_header_GL_gl_h+set}" = set; then
  9563   { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  9564 $as_echo_n "checking for GL/gl.h... " >&6; }
  9565 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  9566   $as_echo_n "(cached) " >&6
  9567 fi
  9568 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  9569 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  9570 else
  9571   # Is the header compilable?
  9572 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  9573 $as_echo_n "checking GL/gl.h usability... " >&6; }
  9574 cat >conftest.$ac_ext <<_ACEOF
  9575 /* confdefs.h.  */
  9576 _ACEOF
  9577 cat confdefs.h >>conftest.$ac_ext
  9578 cat >>conftest.$ac_ext <<_ACEOF
  9579 /* end confdefs.h.  */
  9580 $ac_includes_default
  9581 #include <GL/gl.h>
  9582 _ACEOF
  9583 rm -f conftest.$ac_objext
  9584 if { (ac_try="$ac_compile"
  9585 case "(($ac_try" in
  9586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9587   *) ac_try_echo=$ac_try;;
  9588 esac
  9589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9590 $as_echo "$ac_try_echo") >&5
  9591   (eval "$ac_compile") 2>conftest.er1
  9592   ac_status=$?
  9593   grep -v '^ *+' conftest.er1 >conftest.err
  9594   rm -f conftest.er1
  9595   cat conftest.err >&5
  9596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9597   (exit $ac_status); } && {
  9598 	 test -z "$ac_c_werror_flag" ||
  9599 	 test ! -s conftest.err
  9600        } && test -s conftest.$ac_objext; then
  9601   ac_header_compiler=yes
  9602 else
  9603   $as_echo "$as_me: failed program was:" >&5
  9604 sed 's/^/| /' conftest.$ac_ext >&5
  9606 	ac_header_compiler=no
  9607 fi
  9609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9610 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9611 $as_echo "$ac_header_compiler" >&6; }
  9613 # Is the header present?
  9614 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  9615 $as_echo_n "checking GL/gl.h presence... " >&6; }
  9616 cat >conftest.$ac_ext <<_ACEOF
  9617 /* confdefs.h.  */
  9618 _ACEOF
  9619 cat confdefs.h >>conftest.$ac_ext
  9620 cat >>conftest.$ac_ext <<_ACEOF
  9621 /* end confdefs.h.  */
  9622 #include <GL/gl.h>
  9623 _ACEOF
  9624 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9625 case "(($ac_try" in
  9626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9627   *) ac_try_echo=$ac_try;;
  9628 esac
  9629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9630 $as_echo "$ac_try_echo") >&5
  9631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9632   ac_status=$?
  9633   grep -v '^ *+' conftest.er1 >conftest.err
  9634   rm -f conftest.er1
  9635   cat conftest.err >&5
  9636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9637   (exit $ac_status); } >/dev/null && {
  9638 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9639 	 test ! -s conftest.err
  9640        }; then
  9641   ac_header_preproc=yes
  9642 else
  9643   $as_echo "$as_me: failed program was:" >&5
  9644 sed 's/^/| /' conftest.$ac_ext >&5
  9646   ac_header_preproc=no
  9647 fi
  9649 rm -f conftest.err conftest.$ac_ext
  9650 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9651 $as_echo "$ac_header_preproc" >&6; }
  9653 # So?  What about this header?
  9654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9655   yes:no: )
  9656     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9657 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9658     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  9659 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  9660     ac_header_preproc=yes
  9661     ;;
  9662   no:yes:* )
  9663     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  9664 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  9665     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  9666 $as_echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  9667     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  9668 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  9669     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  9670 $as_echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9671     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  9672 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  9673     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  9674 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  9676     ;;
  9677 esac
  9678 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  9679 $as_echo_n "checking for GL/gl.h... " >&6; }
  9680 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  9681   $as_echo_n "(cached) " >&6
  9682 else
  9683   ac_cv_header_GL_gl_h=$ac_header_preproc
  9684 fi
  9685 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  9686 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  9688 fi
  9689 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
  9691 else
  9693           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  9694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9695 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  9696 See \`config.log' for more details." >&5
  9697 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  9698 See \`config.log' for more details." >&2;}
  9699    { (exit 1); exit 1; }; }; }
  9700 fi
  9703    else
  9704       { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
  9705 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
  9706 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
  9707   $as_echo_n "(cached) " >&6
  9708 else
  9709   cat >conftest.$ac_ext <<_ACEOF
  9710 /* confdefs.h.  */
  9711 _ACEOF
  9712 cat confdefs.h >>conftest.$ac_ext
  9713 cat >>conftest.$ac_ext <<_ACEOF
  9714 /* end confdefs.h.  */
  9715 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
  9716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9717 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
  9719 /* System header to define __stub macros and hopefully few prototypes,
  9720     which can conflict with char NSOpenGLGetVersion (); below.
  9721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9722     <limits.h> exists even on freestanding compilers.  */
  9724 #ifdef __STDC__
  9725 # include <limits.h>
  9726 #else
  9727 # include <assert.h>
  9728 #endif
  9730 #undef NSOpenGLGetVersion
  9732 /* Override any GCC internal prototype to avoid an error.
  9733    Use char because int might match the return type of a GCC
  9734    builtin and then its argument prototype would still apply.  */
  9735 #ifdef __cplusplus
  9736 extern "C"
  9737 #endif
  9738 char NSOpenGLGetVersion ();
  9739 /* The GNU C library defines this for functions which it implements
  9740     to always fail with ENOSYS.  Some functions are actually named
  9741     something starting with __ and the normal name is an alias.  */
  9742 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
  9743 choke me
  9744 #endif
  9746 int
  9747 main ()
  9749 return NSOpenGLGetVersion ();
  9751   return 0;
  9753 _ACEOF
  9754 rm -f conftest.$ac_objext conftest$ac_exeext
  9755 if { (ac_try="$ac_link"
  9756 case "(($ac_try" in
  9757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9758   *) ac_try_echo=$ac_try;;
  9759 esac
  9760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9761 $as_echo "$ac_try_echo") >&5
  9762   (eval "$ac_link") 2>conftest.er1
  9763   ac_status=$?
  9764   grep -v '^ *+' conftest.er1 >conftest.err
  9765   rm -f conftest.er1
  9766   cat conftest.err >&5
  9767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9768   (exit $ac_status); } && {
  9769 	 test -z "$ac_c_werror_flag" ||
  9770 	 test ! -s conftest.err
  9771        } && test -s conftest$ac_exeext && {
  9772 	 test "$cross_compiling" = yes ||
  9773 	 $as_test_x conftest$ac_exeext
  9774        }; then
  9775   ac_cv_func_NSOpenGLGetVersion=yes
  9776 else
  9777   $as_echo "$as_me: failed program was:" >&5
  9778 sed 's/^/| /' conftest.$ac_ext >&5
  9780 	ac_cv_func_NSOpenGLGetVersion=no
  9781 fi
  9783 rm -rf conftest.dSYM
  9784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9785       conftest$ac_exeext conftest.$ac_ext
  9786 fi
  9787 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
  9788 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
  9789 if test "x$ac_cv_func_NSOpenGLGetVersion" = x""yes; then
  9791          HAVE_NSGL='yes'
  9792          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
  9794 cat >>confdefs.h <<\_ACEOF
  9795 #define HAVE_NSGL 1
  9796 _ACEOF
  9798 fi
  9800    fi
  9802    if test "x$HAVE_GTK_X11" = "xyes"; then
  9803       if test "x$APPLE_BUILD" = "xyes"; then
  9804          LIBS="$LIBS -L/usr/X11/lib -lGL"
  9805       fi
  9806       { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
  9807 $as_echo_n "checking for glXQueryVersion... " >&6; }
  9808 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
  9809   $as_echo_n "(cached) " >&6
  9810 else
  9811   cat >conftest.$ac_ext <<_ACEOF
  9812 /* confdefs.h.  */
  9813 _ACEOF
  9814 cat confdefs.h >>conftest.$ac_ext
  9815 cat >>conftest.$ac_ext <<_ACEOF
  9816 /* end confdefs.h.  */
  9817 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
  9818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9819 #define glXQueryVersion innocuous_glXQueryVersion
  9821 /* System header to define __stub macros and hopefully few prototypes,
  9822     which can conflict with char glXQueryVersion (); below.
  9823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9824     <limits.h> exists even on freestanding compilers.  */
  9826 #ifdef __STDC__
  9827 # include <limits.h>
  9828 #else
  9829 # include <assert.h>
  9830 #endif
  9832 #undef glXQueryVersion
  9834 /* Override any GCC internal prototype to avoid an error.
  9835    Use char because int might match the return type of a GCC
  9836    builtin and then its argument prototype would still apply.  */
  9837 #ifdef __cplusplus
  9838 extern "C"
  9839 #endif
  9840 char glXQueryVersion ();
  9841 /* The GNU C library defines this for functions which it implements
  9842     to always fail with ENOSYS.  Some functions are actually named
  9843     something starting with __ and the normal name is an alias.  */
  9844 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
  9845 choke me
  9846 #endif
  9848 int
  9849 main ()
  9851 return glXQueryVersion ();
  9853   return 0;
  9855 _ACEOF
  9856 rm -f conftest.$ac_objext conftest$ac_exeext
  9857 if { (ac_try="$ac_link"
  9858 case "(($ac_try" in
  9859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9860   *) ac_try_echo=$ac_try;;
  9861 esac
  9862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9863 $as_echo "$ac_try_echo") >&5
  9864   (eval "$ac_link") 2>conftest.er1
  9865   ac_status=$?
  9866   grep -v '^ *+' conftest.er1 >conftest.err
  9867   rm -f conftest.er1
  9868   cat conftest.err >&5
  9869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9870   (exit $ac_status); } && {
  9871 	 test -z "$ac_c_werror_flag" ||
  9872 	 test ! -s conftest.err
  9873        } && test -s conftest$ac_exeext && {
  9874 	 test "$cross_compiling" = yes ||
  9875 	 $as_test_x conftest$ac_exeext
  9876        }; then
  9877   ac_cv_func_glXQueryVersion=yes
  9878 else
  9879   $as_echo "$as_me: failed program was:" >&5
  9880 sed 's/^/| /' conftest.$ac_ext >&5
  9882 	ac_cv_func_glXQueryVersion=no
  9883 fi
  9885 rm -rf conftest.dSYM
  9886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9887       conftest$ac_exeext conftest.$ac_ext
  9888 fi
  9889 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
  9890 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
  9891 if test "x$ac_cv_func_glXQueryVersion" = x""yes; then
  9893          HAVE_GLX='yes'
  9894          VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
  9896 cat >>confdefs.h <<\_ACEOF
  9897 #define HAVE_GLX 1
  9898 _ACEOF
  9900 fi
  9902    fi
  9905 fi
  9912 if test "x$HAVE_OSMESA" = "xyes"; then
  9913   VIDEO_OSMESA_TRUE=
  9914   VIDEO_OSMESA_FALSE='#'
  9915 else
  9916   VIDEO_OSMESA_TRUE='#'
  9917   VIDEO_OSMESA_FALSE=
  9918 fi
  9922 if test "x$HAVE_GLX" = "xyes"; then
  9923   VIDEO_GLX_TRUE=
  9924   VIDEO_GLX_FALSE='#'
  9925 else
  9926   VIDEO_GLX_TRUE='#'
  9927   VIDEO_GLX_FALSE=
  9928 fi
  9932 if test "x$HAVE_NSGL" = "xyes"; then
  9933   VIDEO_NSGL_TRUE=
  9934   VIDEO_NSGL_FALSE='#'
  9935 else
  9936   VIDEO_NSGL_TRUE='#'
  9937   VIDEO_NSGL_FALSE=
  9938 fi
  9941 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
  9942 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
  9943 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
  9944   $as_echo_n "(cached) " >&6
  9945 else
  9946   cat >conftest.$ac_ext <<_ACEOF
  9947 /* confdefs.h.  */
  9948 _ACEOF
  9949 cat confdefs.h >>conftest.$ac_ext
  9950 cat >>conftest.$ac_ext <<_ACEOF
  9951 /* end confdefs.h.  */
  9952 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
  9953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9954 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
  9956 /* System header to define __stub macros and hopefully few prototypes,
  9957     which can conflict with char glGenFramebuffersEXT (); below.
  9958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9959     <limits.h> exists even on freestanding compilers.  */
  9961 #ifdef __STDC__
  9962 # include <limits.h>
  9963 #else
  9964 # include <assert.h>
  9965 #endif
  9967 #undef glGenFramebuffersEXT
  9969 /* Override any GCC internal prototype to avoid an error.
  9970    Use char because int might match the return type of a GCC
  9971    builtin and then its argument prototype would still apply.  */
  9972 #ifdef __cplusplus
  9973 extern "C"
  9974 #endif
  9975 char glGenFramebuffersEXT ();
  9976 /* The GNU C library defines this for functions which it implements
  9977     to always fail with ENOSYS.  Some functions are actually named
  9978     something starting with __ and the normal name is an alias.  */
  9979 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
  9980 choke me
  9981 #endif
  9983 int
  9984 main ()
  9986 return glGenFramebuffersEXT ();
  9988   return 0;
  9990 _ACEOF
  9991 rm -f conftest.$ac_objext conftest$ac_exeext
  9992 if { (ac_try="$ac_link"
  9993 case "(($ac_try" in
  9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9995   *) ac_try_echo=$ac_try;;
  9996 esac
  9997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9998 $as_echo "$ac_try_echo") >&5
  9999   (eval "$ac_link") 2>conftest.er1
 10000   ac_status=$?
 10001   grep -v '^ *+' conftest.er1 >conftest.err
 10002   rm -f conftest.er1
 10003   cat conftest.err >&5
 10004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10005   (exit $ac_status); } && {
 10006 	 test -z "$ac_c_werror_flag" ||
 10007 	 test ! -s conftest.err
 10008        } && test -s conftest$ac_exeext && {
 10009 	 test "$cross_compiling" = yes ||
 10010 	 $as_test_x conftest$ac_exeext
 10011        }; then
 10012   ac_cv_func_glGenFramebuffersEXT=yes
 10013 else
 10014   $as_echo "$as_me: failed program was:" >&5
 10015 sed 's/^/| /' conftest.$ac_ext >&5
 10017 	ac_cv_func_glGenFramebuffersEXT=no
 10018 fi
 10020 rm -rf conftest.dSYM
 10021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10022       conftest$ac_exeext conftest.$ac_ext
 10023 fi
 10024 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
 10025 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
 10026 if test "x$ac_cv_func_glGenFramebuffersEXT" = x""yes; then
 10028 cat >>confdefs.h <<\_ACEOF
 10029 #define HAVE_OPENGL_FBO 1
 10030 _ACEOF
 10032 fi
 10034 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
 10035 $as_echo_n "checking for glCreateShader... " >&6; }
 10036 if test "${ac_cv_func_glCreateShader+set}" = set; then
 10037   $as_echo_n "(cached) " >&6
 10038 else
 10039   cat >conftest.$ac_ext <<_ACEOF
 10040 /* confdefs.h.  */
 10041 _ACEOF
 10042 cat confdefs.h >>conftest.$ac_ext
 10043 cat >>conftest.$ac_ext <<_ACEOF
 10044 /* end confdefs.h.  */
 10045 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
 10046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10047 #define glCreateShader innocuous_glCreateShader
 10049 /* System header to define __stub macros and hopefully few prototypes,
 10050     which can conflict with char glCreateShader (); below.
 10051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10052     <limits.h> exists even on freestanding compilers.  */
 10054 #ifdef __STDC__
 10055 # include <limits.h>
 10056 #else
 10057 # include <assert.h>
 10058 #endif
 10060 #undef glCreateShader
 10062 /* Override any GCC internal prototype to avoid an error.
 10063    Use char because int might match the return type of a GCC
 10064    builtin and then its argument prototype would still apply.  */
 10065 #ifdef __cplusplus
 10066 extern "C"
 10067 #endif
 10068 char glCreateShader ();
 10069 /* The GNU C library defines this for functions which it implements
 10070     to always fail with ENOSYS.  Some functions are actually named
 10071     something starting with __ and the normal name is an alias.  */
 10072 #if defined __stub_glCreateShader || defined __stub___glCreateShader
 10073 choke me
 10074 #endif
 10076 int
 10077 main ()
 10079 return glCreateShader ();
 10081   return 0;
 10083 _ACEOF
 10084 rm -f conftest.$ac_objext conftest$ac_exeext
 10085 if { (ac_try="$ac_link"
 10086 case "(($ac_try" in
 10087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10088   *) ac_try_echo=$ac_try;;
 10089 esac
 10090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10091 $as_echo "$ac_try_echo") >&5
 10092   (eval "$ac_link") 2>conftest.er1
 10093   ac_status=$?
 10094   grep -v '^ *+' conftest.er1 >conftest.err
 10095   rm -f conftest.er1
 10096   cat conftest.err >&5
 10097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10098   (exit $ac_status); } && {
 10099 	 test -z "$ac_c_werror_flag" ||
 10100 	 test ! -s conftest.err
 10101        } && test -s conftest$ac_exeext && {
 10102 	 test "$cross_compiling" = yes ||
 10103 	 $as_test_x conftest$ac_exeext
 10104        }; then
 10105   ac_cv_func_glCreateShader=yes
 10106 else
 10107   $as_echo "$as_me: failed program was:" >&5
 10108 sed 's/^/| /' conftest.$ac_ext >&5
 10110 	ac_cv_func_glCreateShader=no
 10111 fi
 10113 rm -rf conftest.dSYM
 10114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10115       conftest$ac_exeext conftest.$ac_ext
 10116 fi
 10117 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
 10118 $as_echo "$ac_cv_func_glCreateShader" >&6; }
 10119 if test "x$ac_cv_func_glCreateShader" = x""yes; then
 10121 cat >>confdefs.h <<\_ACEOF
 10122 #define HAVE_OPENGL_SHADER 1
 10123 _ACEOF
 10125 fi
 10127 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
 10128 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
 10129 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
 10130   $as_echo_n "(cached) " >&6
 10131 else
 10132   cat >conftest.$ac_ext <<_ACEOF
 10133 /* confdefs.h.  */
 10134 _ACEOF
 10135 cat confdefs.h >>conftest.$ac_ext
 10136 cat >>conftest.$ac_ext <<_ACEOF
 10137 /* end confdefs.h.  */
 10138 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
 10139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10140 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
 10142 /* System header to define __stub macros and hopefully few prototypes,
 10143     which can conflict with char glCreateShaderObjectARB (); below.
 10144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10145     <limits.h> exists even on freestanding compilers.  */
 10147 #ifdef __STDC__
 10148 # include <limits.h>
 10149 #else
 10150 # include <assert.h>
 10151 #endif
 10153 #undef glCreateShaderObjectARB
 10155 /* Override any GCC internal prototype to avoid an error.
 10156    Use char because int might match the return type of a GCC
 10157    builtin and then its argument prototype would still apply.  */
 10158 #ifdef __cplusplus
 10159 extern "C"
 10160 #endif
 10161 char glCreateShaderObjectARB ();
 10162 /* The GNU C library defines this for functions which it implements
 10163     to always fail with ENOSYS.  Some functions are actually named
 10164     something starting with __ and the normal name is an alias.  */
 10165 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
 10166 choke me
 10167 #endif
 10169 int
 10170 main ()
 10172 return glCreateShaderObjectARB ();
 10174   return 0;
 10176 _ACEOF
 10177 rm -f conftest.$ac_objext conftest$ac_exeext
 10178 if { (ac_try="$ac_link"
 10179 case "(($ac_try" in
 10180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10181   *) ac_try_echo=$ac_try;;
 10182 esac
 10183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10184 $as_echo "$ac_try_echo") >&5
 10185   (eval "$ac_link") 2>conftest.er1
 10186   ac_status=$?
 10187   grep -v '^ *+' conftest.er1 >conftest.err
 10188   rm -f conftest.er1
 10189   cat conftest.err >&5
 10190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10191   (exit $ac_status); } && {
 10192 	 test -z "$ac_c_werror_flag" ||
 10193 	 test ! -s conftest.err
 10194        } && test -s conftest$ac_exeext && {
 10195 	 test "$cross_compiling" = yes ||
 10196 	 $as_test_x conftest$ac_exeext
 10197        }; then
 10198   ac_cv_func_glCreateShaderObjectARB=yes
 10199 else
 10200   $as_echo "$as_me: failed program was:" >&5
 10201 sed 's/^/| /' conftest.$ac_ext >&5
 10203 	ac_cv_func_glCreateShaderObjectARB=no
 10204 fi
 10206 rm -rf conftest.dSYM
 10207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10208       conftest$ac_exeext conftest.$ac_ext
 10209 fi
 10210 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
 10211 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
 10212 if test "x$ac_cv_func_glCreateShaderObjectARB" = x""yes; then
 10214 cat >>confdefs.h <<\_ACEOF
 10215 #define HAVE_OPENGL_SHADER_ARB 1
 10216 _ACEOF
 10218 fi
 10220 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
 10221 $as_echo_n "checking for glClampColorARB... " >&6; }
 10222 if test "${ac_cv_func_glClampColorARB+set}" = set; then
 10223   $as_echo_n "(cached) " >&6
 10224 else
 10225   cat >conftest.$ac_ext <<_ACEOF
 10226 /* confdefs.h.  */
 10227 _ACEOF
 10228 cat confdefs.h >>conftest.$ac_ext
 10229 cat >>conftest.$ac_ext <<_ACEOF
 10230 /* end confdefs.h.  */
 10231 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
 10232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10233 #define glClampColorARB innocuous_glClampColorARB
 10235 /* System header to define __stub macros and hopefully few prototypes,
 10236     which can conflict with char glClampColorARB (); below.
 10237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10238     <limits.h> exists even on freestanding compilers.  */
 10240 #ifdef __STDC__
 10241 # include <limits.h>
 10242 #else
 10243 # include <assert.h>
 10244 #endif
 10246 #undef glClampColorARB
 10248 /* Override any GCC internal prototype to avoid an error.
 10249    Use char because int might match the return type of a GCC
 10250    builtin and then its argument prototype would still apply.  */
 10251 #ifdef __cplusplus
 10252 extern "C"
 10253 #endif
 10254 char glClampColorARB ();
 10255 /* The GNU C library defines this for functions which it implements
 10256     to always fail with ENOSYS.  Some functions are actually named
 10257     something starting with __ and the normal name is an alias.  */
 10258 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
 10259 choke me
 10260 #endif
 10262 int
 10263 main ()
 10265 return glClampColorARB ();
 10267   return 0;
 10269 _ACEOF
 10270 rm -f conftest.$ac_objext conftest$ac_exeext
 10271 if { (ac_try="$ac_link"
 10272 case "(($ac_try" in
 10273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10274   *) ac_try_echo=$ac_try;;
 10275 esac
 10276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10277 $as_echo "$ac_try_echo") >&5
 10278   (eval "$ac_link") 2>conftest.er1
 10279   ac_status=$?
 10280   grep -v '^ *+' conftest.er1 >conftest.err
 10281   rm -f conftest.er1
 10282   cat conftest.err >&5
 10283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10284   (exit $ac_status); } && {
 10285 	 test -z "$ac_c_werror_flag" ||
 10286 	 test ! -s conftest.err
 10287        } && test -s conftest$ac_exeext && {
 10288 	 test "$cross_compiling" = yes ||
 10289 	 $as_test_x conftest$ac_exeext
 10290        }; then
 10291   ac_cv_func_glClampColorARB=yes
 10292 else
 10293   $as_echo "$as_me: failed program was:" >&5
 10294 sed 's/^/| /' conftest.$ac_ext >&5
 10296 	ac_cv_func_glClampColorARB=no
 10297 fi
 10299 rm -rf conftest.dSYM
 10300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10301       conftest$ac_exeext conftest.$ac_ext
 10302 fi
 10303 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
 10304 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
 10305 if test "x$ac_cv_func_glClampColorARB" = x""yes; then
 10307 cat >>confdefs.h <<\_ACEOF
 10308 #define HAVE_OPENGL_CLAMP_COLOR 1
 10309 _ACEOF
 10311 fi
 10316 if test "x$enable_translator" != "xno"; then
 10317     case $host_cpu in
 10318         i386|i486|i586|i686|x86_64)
 10319 	    SH4_TRANSLATOR="x86"
 10321 cat >>confdefs.h <<_ACEOF
 10322 #define SH4_TRANSLATOR TARGET_X86
 10323 _ACEOF
 10324 ;;
 10325     esac
 10326 fi
 10329 if test "$SH4_TRANSLATOR" = "x86"; then
 10330   BUILD_SH4X86_TRUE=
 10331   BUILD_SH4X86_FALSE='#'
 10332 else
 10333   BUILD_SH4X86_TRUE='#'
 10334   BUILD_SH4X86_FALSE=
 10335 fi
 10338 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 10339   { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 10340 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
 10341 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 10342   $as_echo_n "(cached) " >&6
 10343 fi
 10344 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 10345 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 10346 else
 10347   # Is the header compilable?
 10348 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 10349 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
 10350 cat >conftest.$ac_ext <<_ACEOF
 10351 /* confdefs.h.  */
 10352 _ACEOF
 10353 cat confdefs.h >>conftest.$ac_ext
 10354 cat >>conftest.$ac_ext <<_ACEOF
 10355 /* end confdefs.h.  */
 10356 $ac_includes_default
 10357 #include <CoreAudio/CoreAudio.h>
 10358 _ACEOF
 10359 rm -f conftest.$ac_objext
 10360 if { (ac_try="$ac_compile"
 10361 case "(($ac_try" in
 10362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10363   *) ac_try_echo=$ac_try;;
 10364 esac
 10365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10366 $as_echo "$ac_try_echo") >&5
 10367   (eval "$ac_compile") 2>conftest.er1
 10368   ac_status=$?
 10369   grep -v '^ *+' conftest.er1 >conftest.err
 10370   rm -f conftest.er1
 10371   cat conftest.err >&5
 10372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10373   (exit $ac_status); } && {
 10374 	 test -z "$ac_c_werror_flag" ||
 10375 	 test ! -s conftest.err
 10376        } && test -s conftest.$ac_objext; then
 10377   ac_header_compiler=yes
 10378 else
 10379   $as_echo "$as_me: failed program was:" >&5
 10380 sed 's/^/| /' conftest.$ac_ext >&5
 10382 	ac_header_compiler=no
 10383 fi
 10385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10386 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10387 $as_echo "$ac_header_compiler" >&6; }
 10389 # Is the header present?
 10390 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 10391 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
 10392 cat >conftest.$ac_ext <<_ACEOF
 10393 /* confdefs.h.  */
 10394 _ACEOF
 10395 cat confdefs.h >>conftest.$ac_ext
 10396 cat >>conftest.$ac_ext <<_ACEOF
 10397 /* end confdefs.h.  */
 10398 #include <CoreAudio/CoreAudio.h>
 10399 _ACEOF
 10400 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10401 case "(($ac_try" in
 10402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10403   *) ac_try_echo=$ac_try;;
 10404 esac
 10405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10406 $as_echo "$ac_try_echo") >&5
 10407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10408   ac_status=$?
 10409   grep -v '^ *+' conftest.er1 >conftest.err
 10410   rm -f conftest.er1
 10411   cat conftest.err >&5
 10412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10413   (exit $ac_status); } >/dev/null && {
 10414 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10415 	 test ! -s conftest.err
 10416        }; then
 10417   ac_header_preproc=yes
 10418 else
 10419   $as_echo "$as_me: failed program was:" >&5
 10420 sed 's/^/| /' conftest.$ac_ext >&5
 10422   ac_header_preproc=no
 10423 fi
 10425 rm -f conftest.err conftest.$ac_ext
 10426 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10427 $as_echo "$ac_header_preproc" >&6; }
 10429 # So?  What about this header?
 10430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10431   yes:no: )
 10432     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 10433 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10434     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 10435 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 10436     ac_header_preproc=yes
 10437     ;;
 10438   no:yes:* )
 10439     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 10440 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 10441     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 10442 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 10443     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 10444 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 10445     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 10446 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 10447     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 10448 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 10449     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 10450 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 10452     ;;
 10453 esac
 10454 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 10455 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
 10456 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 10457   $as_echo_n "(cached) " >&6
 10458 else
 10459   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 10460 fi
 10461 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 10462 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 10464 fi
 10465 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then
 10467      HAVE_CORE_AUDIO=yes
 10468      LIBS="$LIBS -framework CoreAudio"
 10469      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
 10471 cat >>confdefs.h <<\_ACEOF
 10472 #define HAVE_CORE_AUDIO 1
 10473 _ACEOF
 10475 else
 10476   true
 10477 fi
 10482 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
 10483   AUDIO_OSX_TRUE=
 10484   AUDIO_OSX_FALSE='#'
 10485 else
 10486   AUDIO_OSX_TRUE='#'
 10487   AUDIO_OSX_FALSE=
 10488 fi
 10491 if test "x$with_sdl" != "xno"; then
 10493 pkg_failed=no
 10494 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
 10495 $as_echo_n "checking for SDL... " >&6; }
 10497 if test -n "$SDL_CFLAGS"; then
 10498     pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
 10499  elif test -n "$PKG_CONFIG"; then
 10500     if test -n "$PKG_CONFIG" && \
 10501     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 10502   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 10503   ac_status=$?
 10504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10505   (exit $ac_status); }; then
 10506   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
 10507 else
 10508   pkg_failed=yes
 10509 fi
 10510  else
 10511     pkg_failed=untried
 10512 fi
 10513 if test -n "$SDL_LIBS"; then
 10514     pkg_cv_SDL_LIBS="$SDL_LIBS"
 10515  elif test -n "$PKG_CONFIG"; then
 10516     if test -n "$PKG_CONFIG" && \
 10517     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 10518   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 10519   ac_status=$?
 10520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10521   (exit $ac_status); }; then
 10522   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
 10523 else
 10524   pkg_failed=yes
 10525 fi
 10526  else
 10527     pkg_failed=untried
 10528 fi
 10532 if test $pkg_failed = yes; then
 10534 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10535         _pkg_short_errors_supported=yes
 10536 else
 10537         _pkg_short_errors_supported=no
 10538 fi
 10539         if test $_pkg_short_errors_supported = yes; then
 10540 	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
 10541         else
 10542 	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
 10543         fi
 10544 	# Put the nasty error message in config.log where it belongs
 10545 	echo "$SDL_PKG_ERRORS" >&5
 10547 	{ $as_echo "$as_me:$LINENO: result: no" >&5
 10548 $as_echo "no" >&6; }
 10550       if test "x$with_sdl" = "xyes"; then
 10551          { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10553 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 10554 See \`config.log' for more details." >&5
 10555 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
 10556 See \`config.log' for more details." >&2;}
 10557    { (exit 1); exit 1; }; }; }
 10558       fi
 10560 elif test $pkg_failed = untried; then
 10562       if test "x$with_sdl" = "xyes"; then
 10563          { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10565 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 10566 See \`config.log' for more details." >&5
 10567 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
 10568 See \`config.log' for more details." >&2;}
 10569    { (exit 1); exit 1; }; }; }
 10570       fi
 10572 else
 10573 	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
 10574 	SDL_LIBS=$pkg_cv_SDL_LIBS
 10575         { $as_echo "$as_me:$LINENO: result: yes" >&5
 10576 $as_echo "yes" >&6; }
 10578        HAVE_SDL='yes'
 10579        AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
 10581 cat >>confdefs.h <<\_ACEOF
 10582 #define HAVE_SDL 1
 10583 _ACEOF
 10586 fi
 10587 fi
 10590 if test "$HAVE_SDL" = 'yes' ; then
 10591   AUDIO_SDL_TRUE=
 10592   AUDIO_SDL_FALSE='#'
 10593 else
 10594   AUDIO_SDL_TRUE='#'
 10595   AUDIO_SDL_FALSE=
 10596 fi
 10599 if test "x$with_pulse" != "xno"; then
 10601 pkg_failed=no
 10602 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
 10603 $as_echo_n "checking for PULSE... " >&6; }
 10605 if test -n "$PULSE_CFLAGS"; then
 10606     pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
 10607  elif test -n "$PKG_CONFIG"; then
 10608     if test -n "$PKG_CONFIG" && \
 10609     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 10610   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 10611   ac_status=$?
 10612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10613   (exit $ac_status); }; then
 10614   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
 10615 else
 10616   pkg_failed=yes
 10617 fi
 10618  else
 10619     pkg_failed=untried
 10620 fi
 10621 if test -n "$PULSE_LIBS"; then
 10622     pkg_cv_PULSE_LIBS="$PULSE_LIBS"
 10623  elif test -n "$PKG_CONFIG"; then
 10624     if test -n "$PKG_CONFIG" && \
 10625     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 10626   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 10627   ac_status=$?
 10628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10629   (exit $ac_status); }; then
 10630   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
 10631 else
 10632   pkg_failed=yes
 10633 fi
 10634  else
 10635     pkg_failed=untried
 10636 fi
 10640 if test $pkg_failed = yes; then
 10642 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10643         _pkg_short_errors_supported=yes
 10644 else
 10645         _pkg_short_errors_supported=no
 10646 fi
 10647         if test $_pkg_short_errors_supported = yes; then
 10648 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
 10649         else
 10650 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
 10651         fi
 10652 	# Put the nasty error message in config.log where it belongs
 10653 	echo "$PULSE_PKG_ERRORS" >&5
 10655 	{ $as_echo "$as_me:$LINENO: result: no" >&5
 10656 $as_echo "no" >&6; }
 10658        if test "x$with_pulse" = "xyes"; then
 10659           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10661 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 10662 See \`config.log' for more details." >&5
 10663 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 10664 See \`config.log' for more details." >&2;}
 10665    { (exit 1); exit 1; }; }; }
 10666        fi
 10668 elif test $pkg_failed = untried; then
 10670        if test "x$with_pulse" = "xyes"; then
 10671           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10673 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 10674 See \`config.log' for more details." >&5
 10675 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 10676 See \`config.log' for more details." >&2;}
 10677    { (exit 1); exit 1; }; }; }
 10678        fi
 10680 else
 10681 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
 10682 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
 10683         { $as_echo "$as_me:$LINENO: result: yes" >&5
 10684 $as_echo "yes" >&6; }
 10686        HAVE_PULSE='yes'
 10687        AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
 10689 cat >>confdefs.h <<\_ACEOF
 10690 #define HAVE_PULSE 1
 10691 _ACEOF
 10694 fi
 10695 fi
 10698 if test "$HAVE_PULSE" = 'yes' ; then
 10699   AUDIO_PULSE_TRUE=
 10700   AUDIO_PULSE_FALSE='#'
 10701 else
 10702   AUDIO_PULSE_TRUE='#'
 10703   AUDIO_PULSE_FALSE=
 10704 fi
 10707 if test "x$with_esd" != "xno"; then
 10709 pkg_failed=no
 10710 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
 10711 $as_echo_n "checking for ESOUND... " >&6; }
 10713 if test -n "$ESOUND_CFLAGS"; then
 10714     pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
 10715  elif test -n "$PKG_CONFIG"; then
 10716     if test -n "$PKG_CONFIG" && \
 10717     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 10718   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 10719   ac_status=$?
 10720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10721   (exit $ac_status); }; then
 10722   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
 10723 else
 10724   pkg_failed=yes
 10725 fi
 10726  else
 10727     pkg_failed=untried
 10728 fi
 10729 if test -n "$ESOUND_LIBS"; then
 10730     pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
 10731  elif test -n "$PKG_CONFIG"; then
 10732     if test -n "$PKG_CONFIG" && \
 10733     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 10734   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 10735   ac_status=$?
 10736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10737   (exit $ac_status); }; then
 10738   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
 10739 else
 10740   pkg_failed=yes
 10741 fi
 10742  else
 10743     pkg_failed=untried
 10744 fi
 10748 if test $pkg_failed = yes; then
 10750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10751         _pkg_short_errors_supported=yes
 10752 else
 10753         _pkg_short_errors_supported=no
 10754 fi
 10755         if test $_pkg_short_errors_supported = yes; then
 10756 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
 10757         else
 10758 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
 10759         fi
 10760 	# Put the nasty error message in config.log where it belongs
 10761 	echo "$ESOUND_PKG_ERRORS" >&5
 10763 	{ $as_echo "$as_me:$LINENO: result: no" >&5
 10764 $as_echo "no" >&6; }
 10766        if test "x$with_esd" = "xyes"; then
 10767           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10769 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 10770 See \`config.log' for more details." >&5
 10771 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
 10772 See \`config.log' for more details." >&2;}
 10773    { (exit 1); exit 1; }; }; }
 10774        fi
 10776 elif test $pkg_failed = untried; then
 10778        if test "x$with_esd" = "xyes"; then
 10779           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 10780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10781 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 10782 See \`config.log' for more details." >&5
 10783 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
 10784 See \`config.log' for more details." >&2;}
 10785    { (exit 1); exit 1; }; }; }
 10786        fi
 10788 else
 10789 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
 10790 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
 10791         { $as_echo "$as_me:$LINENO: result: yes" >&5
 10792 $as_echo "yes" >&6; }
 10794        HAVE_ESOUND='yes'
 10795        AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
 10797 cat >>confdefs.h <<\_ACEOF
 10798 #define HAVE_ESOUND 1
 10799 _ACEOF
 10802 fi
 10803 fi
 10806 if test "$HAVE_ESOUND" = 'yes' ; then
 10807   AUDIO_ESOUND_TRUE=
 10808   AUDIO_ESOUND_FALSE='#'
 10809 else
 10810   AUDIO_ESOUND_TRUE='#'
 10811   AUDIO_ESOUND_FALSE=
 10812 fi
 10816 pkg_failed=no
 10817 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
 10818 $as_echo_n "checking for ALSA... " >&6; }
 10820 if test -n "$ALSA_CFLAGS"; then
 10821     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 10822  elif test -n "$PKG_CONFIG"; then
 10823     if test -n "$PKG_CONFIG" && \
 10824     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 10825   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 10826   ac_status=$?
 10827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10828   (exit $ac_status); }; then
 10829   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
 10830 else
 10831   pkg_failed=yes
 10832 fi
 10833  else
 10834     pkg_failed=untried
 10835 fi
 10836 if test -n "$ALSA_LIBS"; then
 10837     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 10838  elif test -n "$PKG_CONFIG"; then
 10839     if test -n "$PKG_CONFIG" && \
 10840     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 10841   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 10842   ac_status=$?
 10843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10844   (exit $ac_status); }; then
 10845   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
 10846 else
 10847   pkg_failed=yes
 10848 fi
 10849  else
 10850     pkg_failed=untried
 10851 fi
 10855 if test $pkg_failed = yes; then
 10857 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10858         _pkg_short_errors_supported=yes
 10859 else
 10860         _pkg_short_errors_supported=no
 10861 fi
 10862         if test $_pkg_short_errors_supported = yes; then
 10863 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
 10864         else
 10865 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
 10866         fi
 10867 	# Put the nasty error message in config.log where it belongs
 10868 	echo "$ALSA_PKG_ERRORS" >&5
 10870 	{ $as_echo "$as_me:$LINENO: result: no" >&5
 10871 $as_echo "no" >&6; }
 10872                 true
 10873 elif test $pkg_failed = untried; then
 10874 	true
 10875 else
 10876 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
 10877 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
 10878         { $as_echo "$as_me:$LINENO: result: yes" >&5
 10879 $as_echo "yes" >&6; }
 10881      HAVE_ALSA='yes'
 10882      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
 10884 cat >>confdefs.h <<\_ACEOF
 10885 #define HAVE_ALSA 1
 10886 _ACEOF
 10888 fi
 10891 if test "$HAVE_ALSA" = 'yes' ; then
 10892   AUDIO_ALSA_TRUE=
 10893   AUDIO_ALSA_FALSE='#'
 10894 else
 10895   AUDIO_ALSA_TRUE='#'
 10896   AUDIO_ALSA_FALSE=
 10897 fi
 10901 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 10902   { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 10903 $as_echo_n "checking for linux/cdrom.h... " >&6; }
 10904 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 10905   $as_echo_n "(cached) " >&6
 10906 fi
 10907 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 10908 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
 10909 else
 10910   # Is the header compilable?
 10911 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
 10912 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
 10913 cat >conftest.$ac_ext <<_ACEOF
 10914 /* confdefs.h.  */
 10915 _ACEOF
 10916 cat confdefs.h >>conftest.$ac_ext
 10917 cat >>conftest.$ac_ext <<_ACEOF
 10918 /* end confdefs.h.  */
 10919 $ac_includes_default
 10920 #include <linux/cdrom.h>
 10921 _ACEOF
 10922 rm -f conftest.$ac_objext
 10923 if { (ac_try="$ac_compile"
 10924 case "(($ac_try" in
 10925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10926   *) ac_try_echo=$ac_try;;
 10927 esac
 10928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10929 $as_echo "$ac_try_echo") >&5
 10930   (eval "$ac_compile") 2>conftest.er1
 10931   ac_status=$?
 10932   grep -v '^ *+' conftest.er1 >conftest.err
 10933   rm -f conftest.er1
 10934   cat conftest.err >&5
 10935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10936   (exit $ac_status); } && {
 10937 	 test -z "$ac_c_werror_flag" ||
 10938 	 test ! -s conftest.err
 10939        } && test -s conftest.$ac_objext; then
 10940   ac_header_compiler=yes
 10941 else
 10942   $as_echo "$as_me: failed program was:" >&5
 10943 sed 's/^/| /' conftest.$ac_ext >&5
 10945 	ac_header_compiler=no
 10946 fi
 10948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10949 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10950 $as_echo "$ac_header_compiler" >&6; }
 10952 # Is the header present?
 10953 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
 10954 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
 10955 cat >conftest.$ac_ext <<_ACEOF
 10956 /* confdefs.h.  */
 10957 _ACEOF
 10958 cat confdefs.h >>conftest.$ac_ext
 10959 cat >>conftest.$ac_ext <<_ACEOF
 10960 /* end confdefs.h.  */
 10961 #include <linux/cdrom.h>
 10962 _ACEOF
 10963 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10964 case "(($ac_try" in
 10965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10966   *) ac_try_echo=$ac_try;;
 10967 esac
 10968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10969 $as_echo "$ac_try_echo") >&5
 10970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10971   ac_status=$?
 10972   grep -v '^ *+' conftest.er1 >conftest.err
 10973   rm -f conftest.er1
 10974   cat conftest.err >&5
 10975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10976   (exit $ac_status); } >/dev/null && {
 10977 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10978 	 test ! -s conftest.err
 10979        }; then
 10980   ac_header_preproc=yes
 10981 else
 10982   $as_echo "$as_me: failed program was:" >&5
 10983 sed 's/^/| /' conftest.$ac_ext >&5
 10985   ac_header_preproc=no
 10986 fi
 10988 rm -f conftest.err conftest.$ac_ext
 10989 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10990 $as_echo "$ac_header_preproc" >&6; }
 10992 # So?  What about this header?
 10993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10994   yes:no: )
 10995     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
 10996 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10997     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
 10998 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
 10999     ac_header_preproc=yes
 11000     ;;
 11001   no:yes:* )
 11002     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
 11003 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
 11004     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
 11005 $as_echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
 11006     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
 11007 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
 11008     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
 11009 $as_echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11010     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
 11011 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
 11012     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
 11013 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
 11015     ;;
 11016 esac
 11017 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 11018 $as_echo_n "checking for linux/cdrom.h... " >&6; }
 11019 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 11020   $as_echo_n "(cached) " >&6
 11021 else
 11022   ac_cv_header_linux_cdrom_h=$ac_header_preproc
 11023 fi
 11024 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 11025 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
 11027 fi
 11028 if test "x$ac_cv_header_linux_cdrom_h" = x""yes; then
 11030      CDROM_DRIVER=linux
 11031           { $as_echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
 11032 $as_echo_n "checking C99 compliant kernel headers... " >&6; }
 11033      old_CFLAGS="$CFLAGS"
 11034      CFLAGS="$CFLAGS $STDCFLAG"
 11035      cat >conftest.$ac_ext <<_ACEOF
 11036 /* confdefs.h.  */
 11037 _ACEOF
 11038 cat confdefs.h >>conftest.$ac_ext
 11039 cat >>conftest.$ac_ext <<_ACEOF
 11040 /* end confdefs.h.  */
 11041 #include <linux/cdrom.h>
 11042 int
 11043 main ()
 11047   return 0;
 11049 _ACEOF
 11050 rm -f conftest.$ac_objext
 11051 if { (ac_try="$ac_compile"
 11052 case "(($ac_try" in
 11053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11054   *) ac_try_echo=$ac_try;;
 11055 esac
 11056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11057 $as_echo "$ac_try_echo") >&5
 11058   (eval "$ac_compile") 2>conftest.er1
 11059   ac_status=$?
 11060   grep -v '^ *+' conftest.er1 >conftest.err
 11061   rm -f conftest.er1
 11062   cat conftest.err >&5
 11063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11064   (exit $ac_status); } && {
 11065 	 test -z "$ac_c_werror_flag" ||
 11066 	 test ! -s conftest.err
 11067        } && test -s conftest.$ac_objext; then
 11068   { $as_echo "$as_me:$LINENO: result: Yes" >&5
 11069 $as_echo "Yes" >&6; }
 11070 else
 11071   $as_echo "$as_me: failed program was:" >&5
 11072 sed 's/^/| /' conftest.$ac_ext >&5
 11075         { $as_echo "$as_me:$LINENO: result: No" >&5
 11076 $as_echo "No" >&6; }
 11077         STDCFLAG="-std=gnu99"
 11078 fi
 11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11081      CFLAGS="$old_CFLAGS"
 11083 else
 11084   true
 11085 fi
 11088 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 11089   { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 11090 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
 11091 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 11092   $as_echo_n "(cached) " >&6
 11093 fi
 11094 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 11095 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 11096 else
 11097   # Is the header compilable?
 11098 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
 11099 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
 11100 cat >conftest.$ac_ext <<_ACEOF
 11101 /* confdefs.h.  */
 11102 _ACEOF
 11103 cat confdefs.h >>conftest.$ac_ext
 11104 cat >>conftest.$ac_ext <<_ACEOF
 11105 /* end confdefs.h.  */
 11106 $ac_includes_default
 11107 #include <IOKit/IOKitLib.h>
 11108 _ACEOF
 11109 rm -f conftest.$ac_objext
 11110 if { (ac_try="$ac_compile"
 11111 case "(($ac_try" in
 11112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11113   *) ac_try_echo=$ac_try;;
 11114 esac
 11115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11116 $as_echo "$ac_try_echo") >&5
 11117   (eval "$ac_compile") 2>conftest.er1
 11118   ac_status=$?
 11119   grep -v '^ *+' conftest.er1 >conftest.err
 11120   rm -f conftest.er1
 11121   cat conftest.err >&5
 11122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11123   (exit $ac_status); } && {
 11124 	 test -z "$ac_c_werror_flag" ||
 11125 	 test ! -s conftest.err
 11126        } && test -s conftest.$ac_objext; then
 11127   ac_header_compiler=yes
 11128 else
 11129   $as_echo "$as_me: failed program was:" >&5
 11130 sed 's/^/| /' conftest.$ac_ext >&5
 11132 	ac_header_compiler=no
 11133 fi
 11135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11136 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11137 $as_echo "$ac_header_compiler" >&6; }
 11139 # Is the header present?
 11140 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
 11141 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
 11142 cat >conftest.$ac_ext <<_ACEOF
 11143 /* confdefs.h.  */
 11144 _ACEOF
 11145 cat confdefs.h >>conftest.$ac_ext
 11146 cat >>conftest.$ac_ext <<_ACEOF
 11147 /* end confdefs.h.  */
 11148 #include <IOKit/IOKitLib.h>
 11149 _ACEOF
 11150 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11151 case "(($ac_try" in
 11152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11153   *) ac_try_echo=$ac_try;;
 11154 esac
 11155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11156 $as_echo "$ac_try_echo") >&5
 11157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11158   ac_status=$?
 11159   grep -v '^ *+' conftest.er1 >conftest.err
 11160   rm -f conftest.er1
 11161   cat conftest.err >&5
 11162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11163   (exit $ac_status); } >/dev/null && {
 11164 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11165 	 test ! -s conftest.err
 11166        }; then
 11167   ac_header_preproc=yes
 11168 else
 11169   $as_echo "$as_me: failed program was:" >&5
 11170 sed 's/^/| /' conftest.$ac_ext >&5
 11172   ac_header_preproc=no
 11173 fi
 11175 rm -f conftest.err conftest.$ac_ext
 11176 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11177 $as_echo "$ac_header_preproc" >&6; }
 11179 # So?  What about this header?
 11180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11181   yes:no: )
 11182     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11183 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11184     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
 11185 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
 11186     ac_header_preproc=yes
 11187     ;;
 11188   no:yes:* )
 11189     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
 11190 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
 11191     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&5
 11192 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&2;}
 11193     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
 11194 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
 11195     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&5
 11196 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11197     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
 11198 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
 11199     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
 11200 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
 11202     ;;
 11203 esac
 11204 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 11205 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
 11206 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 11207   $as_echo_n "(cached) " >&6
 11208 else
 11209   ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
 11210 fi
 11211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 11212 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 11214 fi
 11215 if test "x$ac_cv_header_IOKit_IOKitLib_h" = x""yes; then
 11217      CDROM_DRIVER=osx
 11218      LIBS="$LIBS -framework IOKit"
 11219 else
 11220   true
 11221 fi
 11226 if test "x$CDROM_DRIVER" = "xlinux"; then
 11227   CDROM_LINUX_TRUE=
 11228   CDROM_LINUX_FALSE='#'
 11229 else
 11230   CDROM_LINUX_TRUE='#'
 11231   CDROM_LINUX_FALSE=
 11232 fi
 11236 if test "x$CDROM_DRIVER" = "xosx"; then
 11237   CDROM_OSX_TRUE=
 11238   CDROM_OSX_FALSE='#'
 11239 else
 11240   CDROM_OSX_TRUE='#'
 11241   CDROM_OSX_FALSE=
 11242 fi
 11246 if test "x$CDROM_DRIVER" = "x"; then
 11247   CDROM_NONE_TRUE=
 11248   CDROM_NONE_FALSE='#'
 11249 else
 11250   CDROM_NONE_TRUE='#'
 11251   CDROM_NONE_FALSE=
 11252 fi
 11255 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 11256   { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 11257 $as_echo_n "checking for linux/joystick.h... " >&6; }
 11258 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 11259   $as_echo_n "(cached) " >&6
 11260 fi
 11261 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 11262 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
 11263 else
 11264   # Is the header compilable?
 11265 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
 11266 $as_echo_n "checking linux/joystick.h usability... " >&6; }
 11267 cat >conftest.$ac_ext <<_ACEOF
 11268 /* confdefs.h.  */
 11269 _ACEOF
 11270 cat confdefs.h >>conftest.$ac_ext
 11271 cat >>conftest.$ac_ext <<_ACEOF
 11272 /* end confdefs.h.  */
 11273 $ac_includes_default
 11274 #include <linux/joystick.h>
 11275 _ACEOF
 11276 rm -f conftest.$ac_objext
 11277 if { (ac_try="$ac_compile"
 11278 case "(($ac_try" in
 11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11280   *) ac_try_echo=$ac_try;;
 11281 esac
 11282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11283 $as_echo "$ac_try_echo") >&5
 11284   (eval "$ac_compile") 2>conftest.er1
 11285   ac_status=$?
 11286   grep -v '^ *+' conftest.er1 >conftest.err
 11287   rm -f conftest.er1
 11288   cat conftest.err >&5
 11289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11290   (exit $ac_status); } && {
 11291 	 test -z "$ac_c_werror_flag" ||
 11292 	 test ! -s conftest.err
 11293        } && test -s conftest.$ac_objext; then
 11294   ac_header_compiler=yes
 11295 else
 11296   $as_echo "$as_me: failed program was:" >&5
 11297 sed 's/^/| /' conftest.$ac_ext >&5
 11299 	ac_header_compiler=no
 11300 fi
 11302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11303 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11304 $as_echo "$ac_header_compiler" >&6; }
 11306 # Is the header present?
 11307 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
 11308 $as_echo_n "checking linux/joystick.h presence... " >&6; }
 11309 cat >conftest.$ac_ext <<_ACEOF
 11310 /* confdefs.h.  */
 11311 _ACEOF
 11312 cat confdefs.h >>conftest.$ac_ext
 11313 cat >>conftest.$ac_ext <<_ACEOF
 11314 /* end confdefs.h.  */
 11315 #include <linux/joystick.h>
 11316 _ACEOF
 11317 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11318 case "(($ac_try" in
 11319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11320   *) ac_try_echo=$ac_try;;
 11321 esac
 11322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11323 $as_echo "$ac_try_echo") >&5
 11324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11325   ac_status=$?
 11326   grep -v '^ *+' conftest.er1 >conftest.err
 11327   rm -f conftest.er1
 11328   cat conftest.err >&5
 11329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11330   (exit $ac_status); } >/dev/null && {
 11331 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11332 	 test ! -s conftest.err
 11333        }; then
 11334   ac_header_preproc=yes
 11335 else
 11336   $as_echo "$as_me: failed program was:" >&5
 11337 sed 's/^/| /' conftest.$ac_ext >&5
 11339   ac_header_preproc=no
 11340 fi
 11342 rm -f conftest.err conftest.$ac_ext
 11343 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11344 $as_echo "$ac_header_preproc" >&6; }
 11346 # So?  What about this header?
 11347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11348   yes:no: )
 11349     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11350 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11351     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
 11352 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
 11353     ac_header_preproc=yes
 11354     ;;
 11355   no:yes:* )
 11356     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
 11357 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
 11358     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
 11359 $as_echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
 11360     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
 11361 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
 11362     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
 11363 $as_echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11364     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
 11365 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
 11366     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
 11367 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
 11369     ;;
 11370 esac
 11371 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 11372 $as_echo_n "checking for linux/joystick.h... " >&6; }
 11373 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 11374   $as_echo_n "(cached) " >&6
 11375 else
 11376   ac_cv_header_linux_joystick_h=$ac_header_preproc
 11377 fi
 11378 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 11379 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
 11381 fi
 11382 if test "x$ac_cv_header_linux_joystick_h" = x""yes; then
 11384     HAVE_LINUX_JOYSTICK_H=yes
 11386 cat >>confdefs.h <<\_ACEOF
 11387 #define HAVE_LINUX_JOYSTICK 1
 11388 _ACEOF
 11390     INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
 11391 else
 11392    echo "Linux Joystick support not found, building without it."
 11393 fi
 11398 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
 11399   JOY_LINUX_TRUE=
 11400   JOY_LINUX_FALSE='#'
 11401 else
 11402   JOY_LINUX_TRUE='#'
 11403   JOY_LINUX_FALSE=
 11404 fi
 11407 if test "x$with_lirc" != "xno"; then
 11408     if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 11409   { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 11410 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
 11411 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 11412   $as_echo_n "(cached) " >&6
 11413 fi
 11414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 11415 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
 11416 else
 11417   # Is the header compilable?
 11418 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
 11419 $as_echo_n "checking lirc/lirc_client.h usability... " >&6; }
 11420 cat >conftest.$ac_ext <<_ACEOF
 11421 /* confdefs.h.  */
 11422 _ACEOF
 11423 cat confdefs.h >>conftest.$ac_ext
 11424 cat >>conftest.$ac_ext <<_ACEOF
 11425 /* end confdefs.h.  */
 11426 $ac_includes_default
 11427 #include <lirc/lirc_client.h>
 11428 _ACEOF
 11429 rm -f conftest.$ac_objext
 11430 if { (ac_try="$ac_compile"
 11431 case "(($ac_try" in
 11432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11433   *) ac_try_echo=$ac_try;;
 11434 esac
 11435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11436 $as_echo "$ac_try_echo") >&5
 11437   (eval "$ac_compile") 2>conftest.er1
 11438   ac_status=$?
 11439   grep -v '^ *+' conftest.er1 >conftest.err
 11440   rm -f conftest.er1
 11441   cat conftest.err >&5
 11442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11443   (exit $ac_status); } && {
 11444 	 test -z "$ac_c_werror_flag" ||
 11445 	 test ! -s conftest.err
 11446        } && test -s conftest.$ac_objext; then
 11447   ac_header_compiler=yes
 11448 else
 11449   $as_echo "$as_me: failed program was:" >&5
 11450 sed 's/^/| /' conftest.$ac_ext >&5
 11452 	ac_header_compiler=no
 11453 fi
 11455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11457 $as_echo "$ac_header_compiler" >&6; }
 11459 # Is the header present?
 11460 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
 11461 $as_echo_n "checking lirc/lirc_client.h presence... " >&6; }
 11462 cat >conftest.$ac_ext <<_ACEOF
 11463 /* confdefs.h.  */
 11464 _ACEOF
 11465 cat confdefs.h >>conftest.$ac_ext
 11466 cat >>conftest.$ac_ext <<_ACEOF
 11467 /* end confdefs.h.  */
 11468 #include <lirc/lirc_client.h>
 11469 _ACEOF
 11470 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11471 case "(($ac_try" in
 11472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11473   *) ac_try_echo=$ac_try;;
 11474 esac
 11475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11476 $as_echo "$ac_try_echo") >&5
 11477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11478   ac_status=$?
 11479   grep -v '^ *+' conftest.er1 >conftest.err
 11480   rm -f conftest.er1
 11481   cat conftest.err >&5
 11482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11483   (exit $ac_status); } >/dev/null && {
 11484 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11485 	 test ! -s conftest.err
 11486        }; then
 11487   ac_header_preproc=yes
 11488 else
 11489   $as_echo "$as_me: failed program was:" >&5
 11490 sed 's/^/| /' conftest.$ac_ext >&5
 11492   ac_header_preproc=no
 11493 fi
 11495 rm -f conftest.err conftest.$ac_ext
 11496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11497 $as_echo "$ac_header_preproc" >&6; }
 11499 # So?  What about this header?
 11500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11501   yes:no: )
 11502     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11503 $as_echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11504     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
 11505 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
 11506     ac_header_preproc=yes
 11507     ;;
 11508   no:yes:* )
 11509     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
 11510 $as_echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
 11511     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&5
 11512 $as_echo "$as_me: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&2;}
 11513     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
 11514 $as_echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
 11515     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&5
 11516 $as_echo "$as_me: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11517     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
 11518 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
 11519     { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
 11520 $as_echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
 11522     ;;
 11523 esac
 11524 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 11525 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
 11526 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 11527   $as_echo_n "(cached) " >&6
 11528 else
 11529   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
 11530 fi
 11531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 11532 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
 11534 fi
 11535 if test "x$ac_cv_header_lirc_lirc_client_h" = x""yes; then
 11537         HAVE_LIRC_CLIENT_H=yes
 11539 cat >>confdefs.h <<\_ACEOF
 11540 #define HAVE_LIRC 1
 11541 _ACEOF
 11543         INPUT_DRIVERS="$INPUT_DRIVERS lirc"
 11545 else
 11546    echo "LIRC support not found, building without it."
 11547 fi
 11550 fi
 11553 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
 11554   INPUT_LIRC_TRUE=
 11555   INPUT_LIRC_FALSE='#'
 11556 else
 11557   INPUT_LIRC_TRUE='#'
 11558   INPUT_LIRC_FALSE=
 11559 fi
 11562 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
 11563 set dummy sh-elf-gcc; ac_word=$2
 11564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11565 $as_echo_n "checking for $ac_word... " >&6; }
 11566 if test "${ac_cv_path_SHCC+set}" = set; then
 11567   $as_echo_n "(cached) " >&6
 11568 else
 11569   case $SHCC in
 11570   [\\/]* | ?:[\\/]*)
 11571   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
 11572   ;;
 11573   *)
 11574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11575 for as_dir in $PATH
 11576 do
 11577   IFS=$as_save_IFS
 11578   test -z "$as_dir" && as_dir=.
 11579   for ac_exec_ext in '' $ac_executable_extensions; do
 11580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11581     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
 11582     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11583     break 2
 11584   fi
 11585 done
 11586 done
 11587 IFS=$as_save_IFS
 11589   ;;
 11590 esac
 11591 fi
 11592 SHCC=$ac_cv_path_SHCC
 11593 if test -n "$SHCC"; then
 11594   { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
 11595 $as_echo "$SHCC" >&6; }
 11596 else
 11597   { $as_echo "$as_me:$LINENO: result: no" >&5
 11598 $as_echo "no" >&6; }
 11599 fi
 11602 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
 11603 set dummy sh-elf-ld; ac_word=$2
 11604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11605 $as_echo_n "checking for $ac_word... " >&6; }
 11606 if test "${ac_cv_path_SHLD+set}" = set; then
 11607   $as_echo_n "(cached) " >&6
 11608 else
 11609   case $SHLD in
 11610   [\\/]* | ?:[\\/]*)
 11611   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
 11612   ;;
 11613   *)
 11614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11615 for as_dir in $PATH
 11616 do
 11617   IFS=$as_save_IFS
 11618   test -z "$as_dir" && as_dir=.
 11619   for ac_exec_ext in '' $ac_executable_extensions; do
 11620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11621     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
 11622     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11623     break 2
 11624   fi
 11625 done
 11626 done
 11627 IFS=$as_save_IFS
 11629   ;;
 11630 esac
 11631 fi
 11632 SHLD=$ac_cv_path_SHLD
 11633 if test -n "$SHLD"; then
 11634   { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
 11635 $as_echo "$SHLD" >&6; }
 11636 else
 11637   { $as_echo "$as_me:$LINENO: result: no" >&5
 11638 $as_echo "no" >&6; }
 11639 fi
 11642 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
 11643 set dummy sh-elf-objcopy; ac_word=$2
 11644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11645 $as_echo_n "checking for $ac_word... " >&6; }
 11646 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
 11647   $as_echo_n "(cached) " >&6
 11648 else
 11649   case $SHOBJCOPY in
 11650   [\\/]* | ?:[\\/]*)
 11651   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
 11652   ;;
 11653   *)
 11654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11655 for as_dir in $PATH
 11656 do
 11657   IFS=$as_save_IFS
 11658   test -z "$as_dir" && as_dir=.
 11659   for ac_exec_ext in '' $ac_executable_extensions; do
 11660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11661     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 11662     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11663     break 2
 11664   fi
 11665 done
 11666 done
 11667 IFS=$as_save_IFS
 11669   ;;
 11670 esac
 11671 fi
 11672 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
 11673 if test -n "$SHOBJCOPY"; then
 11674   { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
 11675 $as_echo "$SHOBJCOPY" >&6; }
 11676 else
 11677   { $as_echo "$as_me:$LINENO: result: no" >&5
 11678 $as_echo "no" >&6; }
 11679 fi
 11682 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
 11683 set dummy arm-elf-gcc; ac_word=$2
 11684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11685 $as_echo_n "checking for $ac_word... " >&6; }
 11686 if test "${ac_cv_path_ARMCC+set}" = set; then
 11687   $as_echo_n "(cached) " >&6
 11688 else
 11689   case $ARMCC in
 11690   [\\/]* | ?:[\\/]*)
 11691   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
 11692   ;;
 11693   *)
 11694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11695 for as_dir in $PATH
 11696 do
 11697   IFS=$as_save_IFS
 11698   test -z "$as_dir" && as_dir=.
 11699   for ac_exec_ext in '' $ac_executable_extensions; do
 11700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11701     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
 11702     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11703     break 2
 11704   fi
 11705 done
 11706 done
 11707 IFS=$as_save_IFS
 11709   ;;
 11710 esac
 11711 fi
 11712 ARMCC=$ac_cv_path_ARMCC
 11713 if test -n "$ARMCC"; then
 11714   { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
 11715 $as_echo "$ARMCC" >&6; }
 11716 else
 11717   { $as_echo "$as_me:$LINENO: result: no" >&5
 11718 $as_echo "no" >&6; }
 11719 fi
 11722 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
 11723 set dummy arm-elf-ld; ac_word=$2
 11724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11725 $as_echo_n "checking for $ac_word... " >&6; }
 11726 if test "${ac_cv_path_ARMLD+set}" = set; then
 11727   $as_echo_n "(cached) " >&6
 11728 else
 11729   case $ARMLD in
 11730   [\\/]* | ?:[\\/]*)
 11731   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
 11732   ;;
 11733   *)
 11734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11735 for as_dir in $PATH
 11736 do
 11737   IFS=$as_save_IFS
 11738   test -z "$as_dir" && as_dir=.
 11739   for ac_exec_ext in '' $ac_executable_extensions; do
 11740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11741     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
 11742     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11743     break 2
 11744   fi
 11745 done
 11746 done
 11747 IFS=$as_save_IFS
 11749   ;;
 11750 esac
 11751 fi
 11752 ARMLD=$ac_cv_path_ARMLD
 11753 if test -n "$ARMLD"; then
 11754   { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
 11755 $as_echo "$ARMLD" >&6; }
 11756 else
 11757   { $as_echo "$as_me:$LINENO: result: no" >&5
 11758 $as_echo "no" >&6; }
 11759 fi
 11762 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
 11763 set dummy arm-elf-objcopy; ac_word=$2
 11764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11765 $as_echo_n "checking for $ac_word... " >&6; }
 11766 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
 11767   $as_echo_n "(cached) " >&6
 11768 else
 11769   case $ARMOBJCOPY in
 11770   [\\/]* | ?:[\\/]*)
 11771   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
 11772   ;;
 11773   *)
 11774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11775 for as_dir in $PATH
 11776 do
 11777   IFS=$as_save_IFS
 11778   test -z "$as_dir" && as_dir=.
 11779   for ac_exec_ext in '' $ac_executable_extensions; do
 11780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11781     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 11782     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11783     break 2
 11784   fi
 11785 done
 11786 done
 11787 IFS=$as_save_IFS
 11789   ;;
 11790 esac
 11791 fi
 11792 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
 11793 if test -n "$ARMOBJCOPY"; then
 11794   { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
 11795 $as_echo "$ARMOBJCOPY" >&6; }
 11796 else
 11797   { $as_echo "$as_me:$LINENO: result: no" >&5
 11798 $as_echo "no" >&6; }
 11799 fi
 11803 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
 11804   BUILD_SH="no"
 11805   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
 11806 else
 11807   BUILD_SH="yes"
 11808 fi
 11809 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
 11810   BUILD_ARM="no"
 11811   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
 11812 else
 11813   BUILD_ARM="yes"
 11814 fi
 11817 if test "$BUILD_SH" = "yes"; then
 11818   BUILD_SYSTEST_TRUE=
 11819   BUILD_SYSTEST_FALSE='#'
 11820 else
 11821   BUILD_SYSTEST_TRUE='#'
 11822   BUILD_SYSTEST_FALSE=
 11823 fi
 11827 if test "$BUILD_ARM" = "yes"; then
 11828   BUILD_ARMTEST_TRUE=
 11829   BUILD_ARMTEST_FALSE='#'
 11830 else
 11831   BUILD_ARMTEST_TRUE='#'
 11832   BUILD_ARMTEST_FALSE=
 11833 fi
 11836 CFLAGS="$CFLAGS $STDCFLAG"
 11838 GETTEXT_PACKAGE=lxdream
 11841 cat >>confdefs.h <<_ACEOF
 11842 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 11843 _ACEOF
 11846 ALL_LINGUAS="de es it pt_BR"
 11849 for ac_header in locale.h
 11850 do
 11851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 11852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 11853   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 11854 $as_echo_n "checking for $ac_header... " >&6; }
 11855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 11856   $as_echo_n "(cached) " >&6
 11857 fi
 11858 ac_res=`eval 'as_val=${'$as_ac_Header'}
 11859 		 $as_echo "$as_val"'`
 11860 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 11861 $as_echo "$ac_res" >&6; }
 11862 else
 11863   # Is the header compilable?
 11864 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 11865 $as_echo_n "checking $ac_header usability... " >&6; }
 11866 cat >conftest.$ac_ext <<_ACEOF
 11867 /* confdefs.h.  */
 11868 _ACEOF
 11869 cat confdefs.h >>conftest.$ac_ext
 11870 cat >>conftest.$ac_ext <<_ACEOF
 11871 /* end confdefs.h.  */
 11872 $ac_includes_default
 11873 #include <$ac_header>
 11874 _ACEOF
 11875 rm -f conftest.$ac_objext
 11876 if { (ac_try="$ac_compile"
 11877 case "(($ac_try" in
 11878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11879   *) ac_try_echo=$ac_try;;
 11880 esac
 11881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11882 $as_echo "$ac_try_echo") >&5
 11883   (eval "$ac_compile") 2>conftest.er1
 11884   ac_status=$?
 11885   grep -v '^ *+' conftest.er1 >conftest.err
 11886   rm -f conftest.er1
 11887   cat conftest.err >&5
 11888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11889   (exit $ac_status); } && {
 11890 	 test -z "$ac_c_werror_flag" ||
 11891 	 test ! -s conftest.err
 11892        } && test -s conftest.$ac_objext; then
 11893   ac_header_compiler=yes
 11894 else
 11895   $as_echo "$as_me: failed program was:" >&5
 11896 sed 's/^/| /' conftest.$ac_ext >&5
 11898 	ac_header_compiler=no
 11899 fi
 11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11902 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11903 $as_echo "$ac_header_compiler" >&6; }
 11905 # Is the header present?
 11906 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 11907 $as_echo_n "checking $ac_header presence... " >&6; }
 11908 cat >conftest.$ac_ext <<_ACEOF
 11909 /* confdefs.h.  */
 11910 _ACEOF
 11911 cat confdefs.h >>conftest.$ac_ext
 11912 cat >>conftest.$ac_ext <<_ACEOF
 11913 /* end confdefs.h.  */
 11914 #include <$ac_header>
 11915 _ACEOF
 11916 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11917 case "(($ac_try" in
 11918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11919   *) ac_try_echo=$ac_try;;
 11920 esac
 11921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11922 $as_echo "$ac_try_echo") >&5
 11923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11924   ac_status=$?
 11925   grep -v '^ *+' conftest.er1 >conftest.err
 11926   rm -f conftest.er1
 11927   cat conftest.err >&5
 11928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11929   (exit $ac_status); } >/dev/null && {
 11930 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11931 	 test ! -s conftest.err
 11932        }; then
 11933   ac_header_preproc=yes
 11934 else
 11935   $as_echo "$as_me: failed program was:" >&5
 11936 sed 's/^/| /' conftest.$ac_ext >&5
 11938   ac_header_preproc=no
 11939 fi
 11941 rm -f conftest.err conftest.$ac_ext
 11942 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11943 $as_echo "$ac_header_preproc" >&6; }
 11945 # So?  What about this header?
 11946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11947   yes:no: )
 11948     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 11949 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11950     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 11951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 11952     ac_header_preproc=yes
 11953     ;;
 11954   no:yes:* )
 11955     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 11956 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 11957     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 11958 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 11959     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 11960 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 11961     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 11962 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 11963     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 11964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 11965     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 11966 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 11968     ;;
 11969 esac
 11970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 11971 $as_echo_n "checking for $ac_header... " >&6; }
 11972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 11973   $as_echo_n "(cached) " >&6
 11974 else
 11975   eval "$as_ac_Header=\$ac_header_preproc"
 11976 fi
 11977 ac_res=`eval 'as_val=${'$as_ac_Header'}
 11978 		 $as_echo "$as_val"'`
 11979 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 11980 $as_echo "$ac_res" >&6; }
 11982 fi
 11983 as_val=`eval 'as_val=${'$as_ac_Header'}
 11984 		 $as_echo "$as_val"'`
 11985    if test "x$as_val" = x""yes; then
 11986   cat >>confdefs.h <<_ACEOF
 11987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 11988 _ACEOF
 11990 fi
 11992 done
 11994     if test $ac_cv_header_locale_h = yes; then
 11995     { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 11996 $as_echo_n "checking for LC_MESSAGES... " >&6; }
 11997 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 11998   $as_echo_n "(cached) " >&6
 11999 else
 12000   cat >conftest.$ac_ext <<_ACEOF
 12001 /* confdefs.h.  */
 12002 _ACEOF
 12003 cat confdefs.h >>conftest.$ac_ext
 12004 cat >>conftest.$ac_ext <<_ACEOF
 12005 /* end confdefs.h.  */
 12006 #include <locale.h>
 12007 int
 12008 main ()
 12010 return LC_MESSAGES
 12012   return 0;
 12014 _ACEOF
 12015 rm -f conftest.$ac_objext conftest$ac_exeext
 12016 if { (ac_try="$ac_link"
 12017 case "(($ac_try" in
 12018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12019   *) ac_try_echo=$ac_try;;
 12020 esac
 12021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12022 $as_echo "$ac_try_echo") >&5
 12023   (eval "$ac_link") 2>conftest.er1
 12024   ac_status=$?
 12025   grep -v '^ *+' conftest.er1 >conftest.err
 12026   rm -f conftest.er1
 12027   cat conftest.err >&5
 12028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12029   (exit $ac_status); } && {
 12030 	 test -z "$ac_c_werror_flag" ||
 12031 	 test ! -s conftest.err
 12032        } && test -s conftest$ac_exeext && {
 12033 	 test "$cross_compiling" = yes ||
 12034 	 $as_test_x conftest$ac_exeext
 12035        }; then
 12036   am_cv_val_LC_MESSAGES=yes
 12037 else
 12038   $as_echo "$as_me: failed program was:" >&5
 12039 sed 's/^/| /' conftest.$ac_ext >&5
 12041 	am_cv_val_LC_MESSAGES=no
 12042 fi
 12044 rm -rf conftest.dSYM
 12045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12046       conftest$ac_exeext conftest.$ac_ext
 12047 fi
 12048 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 12049 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
 12050     if test $am_cv_val_LC_MESSAGES = yes; then
 12052 cat >>confdefs.h <<\_ACEOF
 12053 #define HAVE_LC_MESSAGES 1
 12054 _ACEOF
 12056     fi
 12057   fi
 12058      USE_NLS=yes
 12061     gt_cv_have_gettext=no
 12063     CATOBJEXT=NONE
 12064     XGETTEXT=:
 12065     INTLLIBS=
 12067     if test "${ac_cv_header_libintl_h+set}" = set; then
 12068   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
 12069 $as_echo_n "checking for libintl.h... " >&6; }
 12070 if test "${ac_cv_header_libintl_h+set}" = set; then
 12071   $as_echo_n "(cached) " >&6
 12072 fi
 12073 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 12074 $as_echo "$ac_cv_header_libintl_h" >&6; }
 12075 else
 12076   # Is the header compilable?
 12077 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
 12078 $as_echo_n "checking libintl.h usability... " >&6; }
 12079 cat >conftest.$ac_ext <<_ACEOF
 12080 /* confdefs.h.  */
 12081 _ACEOF
 12082 cat confdefs.h >>conftest.$ac_ext
 12083 cat >>conftest.$ac_ext <<_ACEOF
 12084 /* end confdefs.h.  */
 12085 $ac_includes_default
 12086 #include <libintl.h>
 12087 _ACEOF
 12088 rm -f conftest.$ac_objext
 12089 if { (ac_try="$ac_compile"
 12090 case "(($ac_try" in
 12091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12092   *) ac_try_echo=$ac_try;;
 12093 esac
 12094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12095 $as_echo "$ac_try_echo") >&5
 12096   (eval "$ac_compile") 2>conftest.er1
 12097   ac_status=$?
 12098   grep -v '^ *+' conftest.er1 >conftest.err
 12099   rm -f conftest.er1
 12100   cat conftest.err >&5
 12101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12102   (exit $ac_status); } && {
 12103 	 test -z "$ac_c_werror_flag" ||
 12104 	 test ! -s conftest.err
 12105        } && test -s conftest.$ac_objext; then
 12106   ac_header_compiler=yes
 12107 else
 12108   $as_echo "$as_me: failed program was:" >&5
 12109 sed 's/^/| /' conftest.$ac_ext >&5
 12111 	ac_header_compiler=no
 12112 fi
 12114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 12115 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 12116 $as_echo "$ac_header_compiler" >&6; }
 12118 # Is the header present?
 12119 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
 12120 $as_echo_n "checking libintl.h presence... " >&6; }
 12121 cat >conftest.$ac_ext <<_ACEOF
 12122 /* confdefs.h.  */
 12123 _ACEOF
 12124 cat confdefs.h >>conftest.$ac_ext
 12125 cat >>conftest.$ac_ext <<_ACEOF
 12126 /* end confdefs.h.  */
 12127 #include <libintl.h>
 12128 _ACEOF
 12129 if { (ac_try="$ac_cpp conftest.$ac_ext"
 12130 case "(($ac_try" in
 12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12132   *) ac_try_echo=$ac_try;;
 12133 esac
 12134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12135 $as_echo "$ac_try_echo") >&5
 12136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 12137   ac_status=$?
 12138   grep -v '^ *+' conftest.er1 >conftest.err
 12139   rm -f conftest.er1
 12140   cat conftest.err >&5
 12141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12142   (exit $ac_status); } >/dev/null && {
 12143 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 12144 	 test ! -s conftest.err
 12145        }; then
 12146   ac_header_preproc=yes
 12147 else
 12148   $as_echo "$as_me: failed program was:" >&5
 12149 sed 's/^/| /' conftest.$ac_ext >&5
 12151   ac_header_preproc=no
 12152 fi
 12154 rm -f conftest.err conftest.$ac_ext
 12155 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 12156 $as_echo "$ac_header_preproc" >&6; }
 12158 # So?  What about this header?
 12159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 12160   yes:no: )
 12161     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 12162 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 12163     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 12164 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 12165     ac_header_preproc=yes
 12166     ;;
 12167   no:yes:* )
 12168     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 12169 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 12170     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 12171 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 12172     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 12173 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 12174     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 12175 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 12176     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 12177 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 12178     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 12179 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 12181     ;;
 12182 esac
 12183 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
 12184 $as_echo_n "checking for libintl.h... " >&6; }
 12185 if test "${ac_cv_header_libintl_h+set}" = set; then
 12186   $as_echo_n "(cached) " >&6
 12187 else
 12188   ac_cv_header_libintl_h=$ac_header_preproc
 12189 fi
 12190 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 12191 $as_echo "$ac_cv_header_libintl_h" >&6; }
 12193 fi
 12194 if test "x$ac_cv_header_libintl_h" = x""yes; then
 12195   gt_cv_func_dgettext_libintl="no"
 12196       libintl_extra_libs=""
 12199       # First check in libc
 12201       { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 12202 $as_echo_n "checking for ngettext in libc... " >&6; }
 12203 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 12204   $as_echo_n "(cached) " >&6
 12205 else
 12206   cat >conftest.$ac_ext <<_ACEOF
 12207 /* confdefs.h.  */
 12208 _ACEOF
 12209 cat confdefs.h >>conftest.$ac_ext
 12210 cat >>conftest.$ac_ext <<_ACEOF
 12211 /* end confdefs.h.  */
 12213 #include <libintl.h>
 12215 int
 12216 main ()
 12218 return !ngettext ("","", 1)
 12220   return 0;
 12222 _ACEOF
 12223 rm -f conftest.$ac_objext conftest$ac_exeext
 12224 if { (ac_try="$ac_link"
 12225 case "(($ac_try" in
 12226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12227   *) ac_try_echo=$ac_try;;
 12228 esac
 12229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12230 $as_echo "$ac_try_echo") >&5
 12231   (eval "$ac_link") 2>conftest.er1
 12232   ac_status=$?
 12233   grep -v '^ *+' conftest.er1 >conftest.err
 12234   rm -f conftest.er1
 12235   cat conftest.err >&5
 12236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12237   (exit $ac_status); } && {
 12238 	 test -z "$ac_c_werror_flag" ||
 12239 	 test ! -s conftest.err
 12240        } && test -s conftest$ac_exeext && {
 12241 	 test "$cross_compiling" = yes ||
 12242 	 $as_test_x conftest$ac_exeext
 12243        }; then
 12244   gt_cv_func_ngettext_libc=yes
 12245 else
 12246   $as_echo "$as_me: failed program was:" >&5
 12247 sed 's/^/| /' conftest.$ac_ext >&5
 12249 	gt_cv_func_ngettext_libc=no
 12250 fi
 12252 rm -rf conftest.dSYM
 12253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12254       conftest$ac_exeext conftest.$ac_ext
 12256 fi
 12257 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 12258 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
 12260       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 12261 	      { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 12262 $as_echo_n "checking for dgettext in libc... " >&6; }
 12263 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 12264   $as_echo_n "(cached) " >&6
 12265 else
 12266   cat >conftest.$ac_ext <<_ACEOF
 12267 /* confdefs.h.  */
 12268 _ACEOF
 12269 cat confdefs.h >>conftest.$ac_ext
 12270 cat >>conftest.$ac_ext <<_ACEOF
 12271 /* end confdefs.h.  */
 12273 #include <libintl.h>
 12275 int
 12276 main ()
 12278 return !dgettext ("","")
 12280   return 0;
 12282 _ACEOF
 12283 rm -f conftest.$ac_objext conftest$ac_exeext
 12284 if { (ac_try="$ac_link"
 12285 case "(($ac_try" in
 12286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12287   *) ac_try_echo=$ac_try;;
 12288 esac
 12289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12290 $as_echo "$ac_try_echo") >&5
 12291   (eval "$ac_link") 2>conftest.er1
 12292   ac_status=$?
 12293   grep -v '^ *+' conftest.er1 >conftest.err
 12294   rm -f conftest.er1
 12295   cat conftest.err >&5
 12296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12297   (exit $ac_status); } && {
 12298 	 test -z "$ac_c_werror_flag" ||
 12299 	 test ! -s conftest.err
 12300        } && test -s conftest$ac_exeext && {
 12301 	 test "$cross_compiling" = yes ||
 12302 	 $as_test_x conftest$ac_exeext
 12303        }; then
 12304   gt_cv_func_dgettext_libc=yes
 12305 else
 12306   $as_echo "$as_me: failed program was:" >&5
 12307 sed 's/^/| /' conftest.$ac_ext >&5
 12309 	gt_cv_func_dgettext_libc=no
 12310 fi
 12312 rm -rf conftest.dSYM
 12313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12314       conftest$ac_exeext conftest.$ac_ext
 12316 fi
 12317 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 12318 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
 12319       fi
 12321       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 12323 for ac_func in bind_textdomain_codeset
 12324 do
 12325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 12326 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 12327 $as_echo_n "checking for $ac_func... " >&6; }
 12328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 12329   $as_echo_n "(cached) " >&6
 12330 else
 12331   cat >conftest.$ac_ext <<_ACEOF
 12332 /* confdefs.h.  */
 12333 _ACEOF
 12334 cat confdefs.h >>conftest.$ac_ext
 12335 cat >>conftest.$ac_ext <<_ACEOF
 12336 /* end confdefs.h.  */
 12337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 12338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12339 #define $ac_func innocuous_$ac_func
 12341 /* System header to define __stub macros and hopefully few prototypes,
 12342     which can conflict with char $ac_func (); below.
 12343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12344     <limits.h> exists even on freestanding compilers.  */
 12346 #ifdef __STDC__
 12347 # include <limits.h>
 12348 #else
 12349 # include <assert.h>
 12350 #endif
 12352 #undef $ac_func
 12354 /* Override any GCC internal prototype to avoid an error.
 12355    Use char because int might match the return type of a GCC
 12356    builtin and then its argument prototype would still apply.  */
 12357 #ifdef __cplusplus
 12358 extern "C"
 12359 #endif
 12360 char $ac_func ();
 12361 /* The GNU C library defines this for functions which it implements
 12362     to always fail with ENOSYS.  Some functions are actually named
 12363     something starting with __ and the normal name is an alias.  */
 12364 #if defined __stub_$ac_func || defined __stub___$ac_func
 12365 choke me
 12366 #endif
 12368 int
 12369 main ()
 12371 return $ac_func ();
 12373   return 0;
 12375 _ACEOF
 12376 rm -f conftest.$ac_objext conftest$ac_exeext
 12377 if { (ac_try="$ac_link"
 12378 case "(($ac_try" in
 12379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12380   *) ac_try_echo=$ac_try;;
 12381 esac
 12382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12383 $as_echo "$ac_try_echo") >&5
 12384   (eval "$ac_link") 2>conftest.er1
 12385   ac_status=$?
 12386   grep -v '^ *+' conftest.er1 >conftest.err
 12387   rm -f conftest.er1
 12388   cat conftest.err >&5
 12389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12390   (exit $ac_status); } && {
 12391 	 test -z "$ac_c_werror_flag" ||
 12392 	 test ! -s conftest.err
 12393        } && test -s conftest$ac_exeext && {
 12394 	 test "$cross_compiling" = yes ||
 12395 	 $as_test_x conftest$ac_exeext
 12396        }; then
 12397   eval "$as_ac_var=yes"
 12398 else
 12399   $as_echo "$as_me: failed program was:" >&5
 12400 sed 's/^/| /' conftest.$ac_ext >&5
 12402 	eval "$as_ac_var=no"
 12403 fi
 12405 rm -rf conftest.dSYM
 12406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12407       conftest$ac_exeext conftest.$ac_ext
 12408 fi
 12409 ac_res=`eval 'as_val=${'$as_ac_var'}
 12410 		 $as_echo "$as_val"'`
 12411 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 12412 $as_echo "$ac_res" >&6; }
 12413 as_val=`eval 'as_val=${'$as_ac_var'}
 12414 		 $as_echo "$as_val"'`
 12415    if test "x$as_val" = x""yes; then
 12416   cat >>confdefs.h <<_ACEOF
 12417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 12418 _ACEOF
 12420 fi
 12421 done
 12423       fi
 12426       # If we don't have everything we want, check in libintl
 12428       if test "$gt_cv_func_dgettext_libc" != "yes" \
 12429 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 12430          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 12432         { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 12433 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
 12434 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 12435   $as_echo_n "(cached) " >&6
 12436 else
 12437   ac_check_lib_save_LIBS=$LIBS
 12438 LIBS="-lintl  $LIBS"
 12439 cat >conftest.$ac_ext <<_ACEOF
 12440 /* confdefs.h.  */
 12441 _ACEOF
 12442 cat confdefs.h >>conftest.$ac_ext
 12443 cat >>conftest.$ac_ext <<_ACEOF
 12444 /* end confdefs.h.  */
 12446 /* Override any GCC internal prototype to avoid an error.
 12447    Use char because int might match the return type of a GCC
 12448    builtin and then its argument prototype would still apply.  */
 12449 #ifdef __cplusplus
 12450 extern "C"
 12451 #endif
 12452 char bindtextdomain ();
 12453 int
 12454 main ()
 12456 return bindtextdomain ();
 12458   return 0;
 12460 _ACEOF
 12461 rm -f conftest.$ac_objext conftest$ac_exeext
 12462 if { (ac_try="$ac_link"
 12463 case "(($ac_try" in
 12464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12465   *) ac_try_echo=$ac_try;;
 12466 esac
 12467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12468 $as_echo "$ac_try_echo") >&5
 12469   (eval "$ac_link") 2>conftest.er1
 12470   ac_status=$?
 12471   grep -v '^ *+' conftest.er1 >conftest.err
 12472   rm -f conftest.er1
 12473   cat conftest.err >&5
 12474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12475   (exit $ac_status); } && {
 12476 	 test -z "$ac_c_werror_flag" ||
 12477 	 test ! -s conftest.err
 12478        } && test -s conftest$ac_exeext && {
 12479 	 test "$cross_compiling" = yes ||
 12480 	 $as_test_x conftest$ac_exeext
 12481        }; then
 12482   ac_cv_lib_intl_bindtextdomain=yes
 12483 else
 12484   $as_echo "$as_me: failed program was:" >&5
 12485 sed 's/^/| /' conftest.$ac_ext >&5
 12487 	ac_cv_lib_intl_bindtextdomain=no
 12488 fi
 12490 rm -rf conftest.dSYM
 12491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12492       conftest$ac_exeext conftest.$ac_ext
 12493 LIBS=$ac_check_lib_save_LIBS
 12494 fi
 12495 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 12496 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
 12497 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
 12498   { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 12499 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 12500 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 12501   $as_echo_n "(cached) " >&6
 12502 else
 12503   ac_check_lib_save_LIBS=$LIBS
 12504 LIBS="-lintl  $LIBS"
 12505 cat >conftest.$ac_ext <<_ACEOF
 12506 /* confdefs.h.  */
 12507 _ACEOF
 12508 cat confdefs.h >>conftest.$ac_ext
 12509 cat >>conftest.$ac_ext <<_ACEOF
 12510 /* end confdefs.h.  */
 12512 /* Override any GCC internal prototype to avoid an error.
 12513    Use char because int might match the return type of a GCC
 12514    builtin and then its argument prototype would still apply.  */
 12515 #ifdef __cplusplus
 12516 extern "C"
 12517 #endif
 12518 char ngettext ();
 12519 int
 12520 main ()
 12522 return ngettext ();
 12524   return 0;
 12526 _ACEOF
 12527 rm -f conftest.$ac_objext conftest$ac_exeext
 12528 if { (ac_try="$ac_link"
 12529 case "(($ac_try" in
 12530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12531   *) ac_try_echo=$ac_try;;
 12532 esac
 12533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12534 $as_echo "$ac_try_echo") >&5
 12535   (eval "$ac_link") 2>conftest.er1
 12536   ac_status=$?
 12537   grep -v '^ *+' conftest.er1 >conftest.err
 12538   rm -f conftest.er1
 12539   cat conftest.err >&5
 12540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12541   (exit $ac_status); } && {
 12542 	 test -z "$ac_c_werror_flag" ||
 12543 	 test ! -s conftest.err
 12544        } && test -s conftest$ac_exeext && {
 12545 	 test "$cross_compiling" = yes ||
 12546 	 $as_test_x conftest$ac_exeext
 12547        }; then
 12548   ac_cv_lib_intl_ngettext=yes
 12549 else
 12550   $as_echo "$as_me: failed program was:" >&5
 12551 sed 's/^/| /' conftest.$ac_ext >&5
 12553 	ac_cv_lib_intl_ngettext=no
 12554 fi
 12556 rm -rf conftest.dSYM
 12557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12558       conftest$ac_exeext conftest.$ac_ext
 12559 LIBS=$ac_check_lib_save_LIBS
 12560 fi
 12561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 12562 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 12563 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
 12564   { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 12565 $as_echo_n "checking for dgettext in -lintl... " >&6; }
 12566 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 12567   $as_echo_n "(cached) " >&6
 12568 else
 12569   ac_check_lib_save_LIBS=$LIBS
 12570 LIBS="-lintl  $LIBS"
 12571 cat >conftest.$ac_ext <<_ACEOF
 12572 /* confdefs.h.  */
 12573 _ACEOF
 12574 cat confdefs.h >>conftest.$ac_ext
 12575 cat >>conftest.$ac_ext <<_ACEOF
 12576 /* end confdefs.h.  */
 12578 /* Override any GCC internal prototype to avoid an error.
 12579    Use char because int might match the return type of a GCC
 12580    builtin and then its argument prototype would still apply.  */
 12581 #ifdef __cplusplus
 12582 extern "C"
 12583 #endif
 12584 char dgettext ();
 12585 int
 12586 main ()
 12588 return dgettext ();
 12590   return 0;
 12592 _ACEOF
 12593 rm -f conftest.$ac_objext conftest$ac_exeext
 12594 if { (ac_try="$ac_link"
 12595 case "(($ac_try" in
 12596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12597   *) ac_try_echo=$ac_try;;
 12598 esac
 12599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12600 $as_echo "$ac_try_echo") >&5
 12601   (eval "$ac_link") 2>conftest.er1
 12602   ac_status=$?
 12603   grep -v '^ *+' conftest.er1 >conftest.err
 12604   rm -f conftest.er1
 12605   cat conftest.err >&5
 12606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12607   (exit $ac_status); } && {
 12608 	 test -z "$ac_c_werror_flag" ||
 12609 	 test ! -s conftest.err
 12610        } && test -s conftest$ac_exeext && {
 12611 	 test "$cross_compiling" = yes ||
 12612 	 $as_test_x conftest$ac_exeext
 12613        }; then
 12614   ac_cv_lib_intl_dgettext=yes
 12615 else
 12616   $as_echo "$as_me: failed program was:" >&5
 12617 sed 's/^/| /' conftest.$ac_ext >&5
 12619 	ac_cv_lib_intl_dgettext=no
 12620 fi
 12622 rm -rf conftest.dSYM
 12623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12624       conftest$ac_exeext conftest.$ac_ext
 12625 LIBS=$ac_check_lib_save_LIBS
 12626 fi
 12627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 12628 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
 12629 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
 12630   gt_cv_func_dgettext_libintl=yes
 12631 fi
 12633 fi
 12635 fi
 12638 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 12639 	  { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 12640 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
 12641 	  { $as_echo "$as_me:$LINENO: result: " >&5
 12642 $as_echo "" >&6; }
 12643   	  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 12644 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 12645 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 12646   $as_echo_n "(cached) " >&6
 12647 else
 12648   ac_check_lib_save_LIBS=$LIBS
 12649 LIBS="-lintl -liconv $LIBS"
 12650 cat >conftest.$ac_ext <<_ACEOF
 12651 /* confdefs.h.  */
 12652 _ACEOF
 12653 cat confdefs.h >>conftest.$ac_ext
 12654 cat >>conftest.$ac_ext <<_ACEOF
 12655 /* end confdefs.h.  */
 12657 /* Override any GCC internal prototype to avoid an error.
 12658    Use char because int might match the return type of a GCC
 12659    builtin and then its argument prototype would still apply.  */
 12660 #ifdef __cplusplus
 12661 extern "C"
 12662 #endif
 12663 char ngettext ();
 12664 int
 12665 main ()
 12667 return ngettext ();
 12669   return 0;
 12671 _ACEOF
 12672 rm -f conftest.$ac_objext conftest$ac_exeext
 12673 if { (ac_try="$ac_link"
 12674 case "(($ac_try" in
 12675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12676   *) ac_try_echo=$ac_try;;
 12677 esac
 12678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12679 $as_echo "$ac_try_echo") >&5
 12680   (eval "$ac_link") 2>conftest.er1
 12681   ac_status=$?
 12682   grep -v '^ *+' conftest.er1 >conftest.err
 12683   rm -f conftest.er1
 12684   cat conftest.err >&5
 12685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12686   (exit $ac_status); } && {
 12687 	 test -z "$ac_c_werror_flag" ||
 12688 	 test ! -s conftest.err
 12689        } && test -s conftest$ac_exeext && {
 12690 	 test "$cross_compiling" = yes ||
 12691 	 $as_test_x conftest$ac_exeext
 12692        }; then
 12693   ac_cv_lib_intl_ngettext=yes
 12694 else
 12695   $as_echo "$as_me: failed program was:" >&5
 12696 sed 's/^/| /' conftest.$ac_ext >&5
 12698 	ac_cv_lib_intl_ngettext=no
 12699 fi
 12701 rm -rf conftest.dSYM
 12702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12703       conftest$ac_exeext conftest.$ac_ext
 12704 LIBS=$ac_check_lib_save_LIBS
 12705 fi
 12706 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 12707 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 12708 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
 12709   { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 12710 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
 12711 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 12712   $as_echo_n "(cached) " >&6
 12713 else
 12714   ac_check_lib_save_LIBS=$LIBS
 12715 LIBS="-lintl -liconv $LIBS"
 12716 cat >conftest.$ac_ext <<_ACEOF
 12717 /* confdefs.h.  */
 12718 _ACEOF
 12719 cat confdefs.h >>conftest.$ac_ext
 12720 cat >>conftest.$ac_ext <<_ACEOF
 12721 /* end confdefs.h.  */
 12723 /* Override any GCC internal prototype to avoid an error.
 12724    Use char because int might match the return type of a GCC
 12725    builtin and then its argument prototype would still apply.  */
 12726 #ifdef __cplusplus
 12727 extern "C"
 12728 #endif
 12729 char dcgettext ();
 12730 int
 12731 main ()
 12733 return dcgettext ();
 12735   return 0;
 12737 _ACEOF
 12738 rm -f conftest.$ac_objext conftest$ac_exeext
 12739 if { (ac_try="$ac_link"
 12740 case "(($ac_try" in
 12741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12742   *) ac_try_echo=$ac_try;;
 12743 esac
 12744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12745 $as_echo "$ac_try_echo") >&5
 12746   (eval "$ac_link") 2>conftest.er1
 12747   ac_status=$?
 12748   grep -v '^ *+' conftest.er1 >conftest.err
 12749   rm -f conftest.er1
 12750   cat conftest.err >&5
 12751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12752   (exit $ac_status); } && {
 12753 	 test -z "$ac_c_werror_flag" ||
 12754 	 test ! -s conftest.err
 12755        } && test -s conftest$ac_exeext && {
 12756 	 test "$cross_compiling" = yes ||
 12757 	 $as_test_x conftest$ac_exeext
 12758        }; then
 12759   ac_cv_lib_intl_dcgettext=yes
 12760 else
 12761   $as_echo "$as_me: failed program was:" >&5
 12762 sed 's/^/| /' conftest.$ac_ext >&5
 12764 	ac_cv_lib_intl_dcgettext=no
 12765 fi
 12767 rm -rf conftest.dSYM
 12768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12769       conftest$ac_exeext conftest.$ac_ext
 12770 LIBS=$ac_check_lib_save_LIBS
 12771 fi
 12772 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 12773 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
 12774 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
 12775   gt_cv_func_dgettext_libintl=yes
 12776 			libintl_extra_libs=-liconv
 12777 else
 12779 fi
 12781 else
 12783 fi
 12785         fi
 12788         # If we found libintl, then check in it for bind_textdomain_codeset();
 12789         # we'll prefer libc if neither have bind_textdomain_codeset(),
 12790         # and both have dgettext and ngettext
 12792         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 12793           glib_save_LIBS="$LIBS"
 12794           LIBS="$LIBS -lintl $libintl_extra_libs"
 12795           unset ac_cv_func_bind_textdomain_codeset
 12797 for ac_func in bind_textdomain_codeset
 12798 do
 12799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 12800 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 12801 $as_echo_n "checking for $ac_func... " >&6; }
 12802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 12803   $as_echo_n "(cached) " >&6
 12804 else
 12805   cat >conftest.$ac_ext <<_ACEOF
 12806 /* confdefs.h.  */
 12807 _ACEOF
 12808 cat confdefs.h >>conftest.$ac_ext
 12809 cat >>conftest.$ac_ext <<_ACEOF
 12810 /* end confdefs.h.  */
 12811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 12812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12813 #define $ac_func innocuous_$ac_func
 12815 /* System header to define __stub macros and hopefully few prototypes,
 12816     which can conflict with char $ac_func (); below.
 12817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12818     <limits.h> exists even on freestanding compilers.  */
 12820 #ifdef __STDC__
 12821 # include <limits.h>
 12822 #else
 12823 # include <assert.h>
 12824 #endif
 12826 #undef $ac_func
 12828 /* Override any GCC internal prototype to avoid an error.
 12829    Use char because int might match the return type of a GCC
 12830    builtin and then its argument prototype would still apply.  */
 12831 #ifdef __cplusplus
 12832 extern "C"
 12833 #endif
 12834 char $ac_func ();
 12835 /* The GNU C library defines this for functions which it implements
 12836     to always fail with ENOSYS.  Some functions are actually named
 12837     something starting with __ and the normal name is an alias.  */
 12838 #if defined __stub_$ac_func || defined __stub___$ac_func
 12839 choke me
 12840 #endif
 12842 int
 12843 main ()
 12845 return $ac_func ();
 12847   return 0;
 12849 _ACEOF
 12850 rm -f conftest.$ac_objext conftest$ac_exeext
 12851 if { (ac_try="$ac_link"
 12852 case "(($ac_try" in
 12853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12854   *) ac_try_echo=$ac_try;;
 12855 esac
 12856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12857 $as_echo "$ac_try_echo") >&5
 12858   (eval "$ac_link") 2>conftest.er1
 12859   ac_status=$?
 12860   grep -v '^ *+' conftest.er1 >conftest.err
 12861   rm -f conftest.er1
 12862   cat conftest.err >&5
 12863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12864   (exit $ac_status); } && {
 12865 	 test -z "$ac_c_werror_flag" ||
 12866 	 test ! -s conftest.err
 12867        } && test -s conftest$ac_exeext && {
 12868 	 test "$cross_compiling" = yes ||
 12869 	 $as_test_x conftest$ac_exeext
 12870        }; then
 12871   eval "$as_ac_var=yes"
 12872 else
 12873   $as_echo "$as_me: failed program was:" >&5
 12874 sed 's/^/| /' conftest.$ac_ext >&5
 12876 	eval "$as_ac_var=no"
 12877 fi
 12879 rm -rf conftest.dSYM
 12880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12881       conftest$ac_exeext conftest.$ac_ext
 12882 fi
 12883 ac_res=`eval 'as_val=${'$as_ac_var'}
 12884 		 $as_echo "$as_val"'`
 12885 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 12886 $as_echo "$ac_res" >&6; }
 12887 as_val=`eval 'as_val=${'$as_ac_var'}
 12888 		 $as_echo "$as_val"'`
 12889    if test "x$as_val" = x""yes; then
 12890   cat >>confdefs.h <<_ACEOF
 12891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 12892 _ACEOF
 12894 fi
 12895 done
 12897           LIBS="$glib_save_LIBS"
 12899           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 12900             gt_cv_func_dgettext_libc=no
 12901           else
 12902             if test "$gt_cv_func_dgettext_libc" = "yes" \
 12903 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 12904               gt_cv_func_dgettext_libintl=no
 12905             fi
 12906           fi
 12907         fi
 12908       fi
 12910       if test "$gt_cv_func_dgettext_libc" = "yes" \
 12911 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 12912         gt_cv_have_gettext=yes
 12913       fi
 12915       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 12916         INTLLIBS="-lintl $libintl_extra_libs"
 12917       fi
 12919       if test "$gt_cv_have_gettext" = "yes"; then
 12921 cat >>confdefs.h <<\_ACEOF
 12922 #define HAVE_GETTEXT 1
 12923 _ACEOF
 12925 	# Extract the first word of "msgfmt", so it can be a program name with args.
 12926 set dummy msgfmt; ac_word=$2
 12927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 12928 $as_echo_n "checking for $ac_word... " >&6; }
 12929 if test "${ac_cv_path_MSGFMT+set}" = set; then
 12930   $as_echo_n "(cached) " >&6
 12931 else
 12932   case "$MSGFMT" in
 12933   /*)
 12934   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 12935   ;;
 12936   *)
 12937   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 12938   for ac_dir in $PATH; do
 12939     test -z "$ac_dir" && ac_dir=.
 12940     if test -f $ac_dir/$ac_word; then
 12941       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 12942 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 12943 	break
 12944       fi
 12945     fi
 12946   done
 12947   IFS="$ac_save_ifs"
 12948   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 12949   ;;
 12950 esac
 12951 fi
 12952 MSGFMT="$ac_cv_path_MSGFMT"
 12953 if test "$MSGFMT" != "no"; then
 12954   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
 12955 $as_echo "$MSGFMT" >&6; }
 12956 else
 12957   { $as_echo "$as_me:$LINENO: result: no" >&5
 12958 $as_echo "no" >&6; }
 12959 fi
 12960 	if test "$MSGFMT" != "no"; then
 12961           glib_save_LIBS="$LIBS"
 12962           LIBS="$LIBS $INTLLIBS"
 12964 for ac_func in dcgettext
 12965 do
 12966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 12967 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 12968 $as_echo_n "checking for $ac_func... " >&6; }
 12969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 12970   $as_echo_n "(cached) " >&6
 12971 else
 12972   cat >conftest.$ac_ext <<_ACEOF
 12973 /* confdefs.h.  */
 12974 _ACEOF
 12975 cat confdefs.h >>conftest.$ac_ext
 12976 cat >>conftest.$ac_ext <<_ACEOF
 12977 /* end confdefs.h.  */
 12978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 12979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12980 #define $ac_func innocuous_$ac_func
 12982 /* System header to define __stub macros and hopefully few prototypes,
 12983     which can conflict with char $ac_func (); below.
 12984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12985     <limits.h> exists even on freestanding compilers.  */
 12987 #ifdef __STDC__
 12988 # include <limits.h>
 12989 #else
 12990 # include <assert.h>
 12991 #endif
 12993 #undef $ac_func
 12995 /* Override any GCC internal prototype to avoid an error.
 12996    Use char because int might match the return type of a GCC
 12997    builtin and then its argument prototype would still apply.  */
 12998 #ifdef __cplusplus
 12999 extern "C"
 13000 #endif
 13001 char $ac_func ();
 13002 /* The GNU C library defines this for functions which it implements
 13003     to always fail with ENOSYS.  Some functions are actually named
 13004     something starting with __ and the normal name is an alias.  */
 13005 #if defined __stub_$ac_func || defined __stub___$ac_func
 13006 choke me
 13007 #endif
 13009 int
 13010 main ()
 13012 return $ac_func ();
 13014   return 0;
 13016 _ACEOF
 13017 rm -f conftest.$ac_objext conftest$ac_exeext
 13018 if { (ac_try="$ac_link"
 13019 case "(($ac_try" in
 13020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13021   *) ac_try_echo=$ac_try;;
 13022 esac
 13023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 13024 $as_echo "$ac_try_echo") >&5
 13025   (eval "$ac_link") 2>conftest.er1
 13026   ac_status=$?
 13027   grep -v '^ *+' conftest.er1 >conftest.err
 13028   rm -f conftest.er1
 13029   cat conftest.err >&5
 13030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13031   (exit $ac_status); } && {
 13032 	 test -z "$ac_c_werror_flag" ||
 13033 	 test ! -s conftest.err
 13034        } && test -s conftest$ac_exeext && {
 13035 	 test "$cross_compiling" = yes ||
 13036 	 $as_test_x conftest$ac_exeext
 13037        }; then
 13038   eval "$as_ac_var=yes"
 13039 else
 13040   $as_echo "$as_me: failed program was:" >&5
 13041 sed 's/^/| /' conftest.$ac_ext >&5
 13043 	eval "$as_ac_var=no"
 13044 fi
 13046 rm -rf conftest.dSYM
 13047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13048       conftest$ac_exeext conftest.$ac_ext
 13049 fi
 13050 ac_res=`eval 'as_val=${'$as_ac_var'}
 13051 		 $as_echo "$as_val"'`
 13052 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 13053 $as_echo "$ac_res" >&6; }
 13054 as_val=`eval 'as_val=${'$as_ac_var'}
 13055 		 $as_echo "$as_val"'`
 13056    if test "x$as_val" = x""yes; then
 13057   cat >>confdefs.h <<_ACEOF
 13058 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 13059 _ACEOF
 13061 fi
 13062 done
 13064 	  MSGFMT_OPTS=
 13065 	  { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 13066 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
 13067 	  cat >conftest.foo <<_ACEOF
 13069 msgid ""
 13070 msgstr ""
 13071 "Content-Type: text/plain; charset=UTF-8\n"
 13072 "Project-Id-Version: test 1.0\n"
 13073 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 13074 "Last-Translator: test <foo@bar.xx>\n"
 13075 "Language-Team: C <LL@li.org>\n"
 13076 "MIME-Version: 1.0\n"
 13077 "Content-Transfer-Encoding: 8bit\n"
 13079 _ACEOF
 13080 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
 13081   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 13082   ac_status=$?
 13083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13084   (exit $ac_status); }; then
 13085   MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
 13086 $as_echo "yes" >&6; }
 13087 else { $as_echo "$as_me:$LINENO: result: no" >&5
 13088 $as_echo "no" >&6; }
 13089 echo "$as_me: failed input was:" >&5
 13090 sed 's/^/| /' conftest.foo >&5
 13091 fi
 13093 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 13094 set dummy gmsgfmt; ac_word=$2
 13095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 13096 $as_echo_n "checking for $ac_word... " >&6; }
 13097 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 13098   $as_echo_n "(cached) " >&6
 13099 else
 13100   case $GMSGFMT in
 13101   [\\/]* | ?:[\\/]*)
 13102   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 13103   ;;
 13104   *)
 13105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13106 for as_dir in $PATH
 13107 do
 13108   IFS=$as_save_IFS
 13109   test -z "$as_dir" && as_dir=.
 13110   for ac_exec_ext in '' $ac_executable_extensions; do
 13111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 13112     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 13113     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 13114     break 2
 13115   fi
 13116 done
 13117 done
 13118 IFS=$as_save_IFS
 13120   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 13121   ;;
 13122 esac
 13123 fi
 13124 GMSGFMT=$ac_cv_path_GMSGFMT
 13125 if test -n "$GMSGFMT"; then
 13126   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 13127 $as_echo "$GMSGFMT" >&6; }
 13128 else
 13129   { $as_echo "$as_me:$LINENO: result: no" >&5
 13130 $as_echo "no" >&6; }
 13131 fi
 13134 	  # Extract the first word of "xgettext", so it can be a program name with args.
 13135 set dummy xgettext; ac_word=$2
 13136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 13137 $as_echo_n "checking for $ac_word... " >&6; }
 13138 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 13139   $as_echo_n "(cached) " >&6
 13140 else
 13141   case "$XGETTEXT" in
 13142   /*)
 13143   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 13144   ;;
 13145   *)
 13146   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 13147   for ac_dir in $PATH; do
 13148     test -z "$ac_dir" && ac_dir=.
 13149     if test -f $ac_dir/$ac_word; then
 13150       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 13151 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 13152 	break
 13153       fi
 13154     fi
 13155   done
 13156   IFS="$ac_save_ifs"
 13157   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 13158   ;;
 13159 esac
 13160 fi
 13161 XGETTEXT="$ac_cv_path_XGETTEXT"
 13162 if test "$XGETTEXT" != ":"; then
 13163   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 13164 $as_echo "$XGETTEXT" >&6; }
 13165 else
 13166   { $as_echo "$as_me:$LINENO: result: no" >&5
 13167 $as_echo "no" >&6; }
 13168 fi
 13170 	  cat >conftest.$ac_ext <<_ACEOF
 13171 /* confdefs.h.  */
 13172 _ACEOF
 13173 cat confdefs.h >>conftest.$ac_ext
 13174 cat >>conftest.$ac_ext <<_ACEOF
 13175 /* end confdefs.h.  */
 13177 int
 13178 main ()
 13180 extern int _nl_msg_cat_cntr;
 13181 			 return _nl_msg_cat_cntr
 13183   return 0;
 13185 _ACEOF
 13186 rm -f conftest.$ac_objext conftest$ac_exeext
 13187 if { (ac_try="$ac_link"
 13188 case "(($ac_try" in
 13189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13190   *) ac_try_echo=$ac_try;;
 13191 esac
 13192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 13193 $as_echo "$ac_try_echo") >&5
 13194   (eval "$ac_link") 2>conftest.er1
 13195   ac_status=$?
 13196   grep -v '^ *+' conftest.er1 >conftest.err
 13197   rm -f conftest.er1
 13198   cat conftest.err >&5
 13199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13200   (exit $ac_status); } && {
 13201 	 test -z "$ac_c_werror_flag" ||
 13202 	 test ! -s conftest.err
 13203        } && test -s conftest$ac_exeext && {
 13204 	 test "$cross_compiling" = yes ||
 13205 	 $as_test_x conftest$ac_exeext
 13206        }; then
 13207   CATOBJEXT=.gmo
 13208              DATADIRNAME=share
 13209 else
 13210   $as_echo "$as_me: failed program was:" >&5
 13211 sed 's/^/| /' conftest.$ac_ext >&5
 13213 	case $host in
 13214 	    *-*-solaris*)
 13215 	    	                	    	                { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 13216 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
 13217 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 13218   $as_echo_n "(cached) " >&6
 13219 else
 13220   cat >conftest.$ac_ext <<_ACEOF
 13221 /* confdefs.h.  */
 13222 _ACEOF
 13223 cat confdefs.h >>conftest.$ac_ext
 13224 cat >>conftest.$ac_ext <<_ACEOF
 13225 /* end confdefs.h.  */
 13226 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 13227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 13228 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 13230 /* System header to define __stub macros and hopefully few prototypes,
 13231     which can conflict with char bind_textdomain_codeset (); below.
 13232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 13233     <limits.h> exists even on freestanding compilers.  */
 13235 #ifdef __STDC__
 13236 # include <limits.h>
 13237 #else
 13238 # include <assert.h>
 13239 #endif
 13241 #undef bind_textdomain_codeset
 13243 /* Override any GCC internal prototype to avoid an error.
 13244    Use char because int might match the return type of a GCC
 13245    builtin and then its argument prototype would still apply.  */
 13246 #ifdef __cplusplus
 13247 extern "C"
 13248 #endif
 13249 char bind_textdomain_codeset ();
 13250 /* The GNU C library defines this for functions which it implements
 13251     to always fail with ENOSYS.  Some functions are actually named
 13252     something starting with __ and the normal name is an alias.  */
 13253 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 13254 choke me
 13255 #endif
 13257 int
 13258 main ()
 13260 return bind_textdomain_codeset ();
 13262   return 0;
 13264 _ACEOF
 13265 rm -f conftest.$ac_objext conftest$ac_exeext
 13266 if { (ac_try="$ac_link"
 13267 case "(($ac_try" in
 13268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13269   *) ac_try_echo=$ac_try;;
 13270 esac
 13271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 13272 $as_echo "$ac_try_echo") >&5
 13273   (eval "$ac_link") 2>conftest.er1
 13274   ac_status=$?
 13275   grep -v '^ *+' conftest.er1 >conftest.err
 13276   rm -f conftest.er1
 13277   cat conftest.err >&5
 13278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13279   (exit $ac_status); } && {
 13280 	 test -z "$ac_c_werror_flag" ||
 13281 	 test ! -s conftest.err
 13282        } && test -s conftest$ac_exeext && {
 13283 	 test "$cross_compiling" = yes ||
 13284 	 $as_test_x conftest$ac_exeext
 13285        }; then
 13286   ac_cv_func_bind_textdomain_codeset=yes
 13287 else
 13288   $as_echo "$as_me: failed program was:" >&5
 13289 sed 's/^/| /' conftest.$ac_ext >&5
 13291 	ac_cv_func_bind_textdomain_codeset=no
 13292 fi
 13294 rm -rf conftest.dSYM
 13295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13296       conftest$ac_exeext conftest.$ac_ext
 13297 fi
 13298 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 13299 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
 13300 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
 13301   CATOBJEXT=.gmo
 13302                DATADIRNAME=share
 13303 else
 13304   CATOBJEXT=.mo
 13305                DATADIRNAME=lib
 13306 fi
 13308 	    ;;
 13309 	    *)
 13310 	    CATOBJEXT=.mo
 13311             DATADIRNAME=lib
 13312 	    ;;
 13313 	    esac
 13314 fi
 13316 rm -rf conftest.dSYM
 13317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13318       conftest$ac_exeext conftest.$ac_ext
 13319           LIBS="$glib_save_LIBS"
 13320 	  INSTOBJEXT=.mo
 13321 	else
 13322 	  gt_cv_have_gettext=no
 13323 	fi
 13324       fi
 13326 fi
 13330     if test "$gt_cv_have_gettext" = "yes" ; then
 13332 cat >>confdefs.h <<\_ACEOF
 13333 #define ENABLE_NLS 1
 13334 _ACEOF
 13336     fi
 13338         if test "$XGETTEXT" != ":"; then
 13339                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 13340         : ;
 13341       else
 13342         { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 13343 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
 13344         XGETTEXT=":"
 13345       fi
 13346     fi
 13348     # We need to process the po/ directory.
 13349     POSUB=po
 13351     ac_config_commands="$ac_config_commands default-1"
 13354                 for lang in $ALL_LINGUAS; do
 13355       GMOFILES="$GMOFILES $lang.gmo"
 13356       POFILES="$POFILES $lang.po"
 13357     done
 13371    if test "$gt_cv_have_gettext" = "yes"; then
 13372      if test "x$ALL_LINGUAS" = "x"; then
 13373        LINGUAS=
 13374      else
 13375        { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 13376 $as_echo_n "checking for catalogs to be installed... " >&6; }
 13377        NEW_LINGUAS=
 13378        for presentlang in $ALL_LINGUAS; do
 13379          useit=no
 13380          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 13381            desiredlanguages="$LINGUAS"
 13382          else
 13383            desiredlanguages="$ALL_LINGUAS"
 13384          fi
 13385          for desiredlang in $desiredlanguages; do
 13386  	   # Use the presentlang catalog if desiredlang is
 13387            #   a. equal to presentlang, or
 13388            #   b. a variant of presentlang (because in this case,
 13389            #      presentlang can be used as a fallback for messages
 13390            #      which are not translated in the desiredlang catalog).
 13391            case "$desiredlang" in
 13392              "$presentlang"*) useit=yes;;
 13393            esac
 13394          done
 13395          if test $useit = yes; then
 13396            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 13397          fi
 13398        done
 13399        LINGUAS=$NEW_LINGUAS
 13400        { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
 13401 $as_echo "$LINGUAS" >&6; }
 13402      fi
 13404           if test -n "$LINGUAS"; then
 13405        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 13406      fi
 13407    fi
 13409             MKINSTALLDIRS=
 13410    if test -n "$ac_aux_dir"; then
 13411      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 13412    fi
 13413    if test -z "$MKINSTALLDIRS"; then
 13414      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 13415    fi
 13418          test -d po || mkdir po
 13419    if test "x$srcdir" != "x."; then
 13420      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 13421        posrcprefix="$srcdir/"
 13422      else
 13423        posrcprefix="../$srcdir/"
 13424      fi
 13425    else
 13426      posrcprefix="../"
 13427    fi
 13428    rm -f po/POTFILES
 13429    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 13430 	< $srcdir/po/POTFILES.in > po/POTFILES
 13433 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
 13435 cat >confcache <<\_ACEOF
 13436 # This file is a shell script that caches the results of configure
 13437 # tests run on this system so they can be shared between configure
 13438 # scripts and configure runs, see configure's option --config-cache.
 13439 # It is not useful on other systems.  If it contains results you don't
 13440 # want to keep, you may remove or edit it.
 13442 # config.status only pays attention to the cache file if you give it
 13443 # the --recheck option to rerun configure.
 13445 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 13446 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 13447 # following values.
 13449 _ACEOF
 13451 # The following way of writing the cache mishandles newlines in values,
 13452 # but we know of no workaround that is simple, portable, and efficient.
 13453 # So, we kill variables containing newlines.
 13454 # Ultrix sh set writes to stderr and can't be redirected directly,
 13455 # and sets the high bit in the cache file unless we assign to the vars.
 13457   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 13458     eval ac_val=\$$ac_var
 13459     case $ac_val in #(
 13460     *${as_nl}*)
 13461       case $ac_var in #(
 13462       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 13463 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 13464       esac
 13465       case $ac_var in #(
 13466       _ | IFS | as_nl) ;; #(
 13467       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 13468       *) $as_unset $ac_var ;;
 13469       esac ;;
 13470     esac
 13471   done
 13473   (set) 2>&1 |
 13474     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 13475     *${as_nl}ac_space=\ *)
 13476       # `set' does not quote correctly, so add quotes (double-quote
 13477       # substitution turns \\\\ into \\, and sed turns \\ into \).
 13478       sed -n \
 13479 	"s/'/'\\\\''/g;
 13480 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 13481       ;; #(
 13482     *)
 13483       # `set' quotes correctly as required by POSIX, so do not add quotes.
 13484       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 13485       ;;
 13486     esac |
 13487     sort
 13488 ) |
 13489   sed '
 13490      /^ac_cv_env_/b end
 13491      t clear
 13492      :clear
 13493      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 13494      t end
 13495      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 13496      :end' >>confcache
 13497 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 13498   if test -w "$cache_file"; then
 13499     test "x$cache_file" != "x/dev/null" &&
 13500       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 13501 $as_echo "$as_me: updating cache $cache_file" >&6;}
 13502     cat confcache >$cache_file
 13503   else
 13504     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 13505 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 13506   fi
 13507 fi
 13508 rm -f confcache
 13510 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 13511 # Let make expand exec_prefix.
 13512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 13514 DEFS=-DHAVE_CONFIG_H
 13516 ac_libobjs=
 13517 ac_ltlibobjs=
 13518 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 13519   # 1. Remove the extension, and $U if already installed.
 13520   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 13521   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 13522   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 13523   #    will be set to the directory where LIBOBJS objects are built.
 13524   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 13525   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 13526 done
 13527 LIBOBJS=$ac_libobjs
 13529 LTLIBOBJS=$ac_ltlibobjs
 13532 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 13533   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 13534 Usually this means the macro was only invoked conditionally." >&5
 13535 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 13536 Usually this means the macro was only invoked conditionally." >&2;}
 13537    { (exit 1); exit 1; }; }
 13538 fi
 13539 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 13540   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 13541 Usually this means the macro was only invoked conditionally." >&5
 13542 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 13543 Usually this means the macro was only invoked conditionally." >&2;}
 13544    { (exit 1); exit 1; }; }
 13545 fi
 13546 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 13547   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 13548 Usually this means the macro was only invoked conditionally." >&5
 13549 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 13550 Usually this means the macro was only invoked conditionally." >&2;}
 13551    { (exit 1); exit 1; }; }
 13552 fi
 13553 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 13554   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 13555 Usually this means the macro was only invoked conditionally." >&5
 13556 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 13557 Usually this means the macro was only invoked conditionally." >&2;}
 13558    { (exit 1); exit 1; }; }
 13559 fi
 13560 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 13561   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 13562 Usually this means the macro was only invoked conditionally." >&5
 13563 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 13564 Usually this means the macro was only invoked conditionally." >&2;}
 13565    { (exit 1); exit 1; }; }
 13566 fi
 13567 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
 13568   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
 13569 Usually this means the macro was only invoked conditionally." >&5
 13570 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
 13571 Usually this means the macro was only invoked conditionally." >&2;}
 13572    { (exit 1); exit 1; }; }
 13573 fi
 13574 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 13575   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 13576 Usually this means the macro was only invoked conditionally." >&5
 13577 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 13578 Usually this means the macro was only invoked conditionally." >&2;}
 13579    { (exit 1); exit 1; }; }
 13580 fi
 13581 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
 13582   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
 13583 Usually this means the macro was only invoked conditionally." >&5
 13584 $as_echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
 13585 Usually this means the macro was only invoked conditionally." >&2;}
 13586    { (exit 1); exit 1; }; }
 13587 fi
 13588 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 13589   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 13590 Usually this means the macro was only invoked conditionally." >&5
 13591 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 13592 Usually this means the macro was only invoked conditionally." >&2;}
 13593    { (exit 1); exit 1; }; }
 13594 fi
 13595 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 13596   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 13597 Usually this means the macro was only invoked conditionally." >&5
 13598 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 13599 Usually this means the macro was only invoked conditionally." >&2;}
 13600    { (exit 1); exit 1; }; }
 13601 fi
 13602 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 13603   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 13604 Usually this means the macro was only invoked conditionally." >&5
 13605 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 13606 Usually this means the macro was only invoked conditionally." >&2;}
 13607    { (exit 1); exit 1; }; }
 13608 fi
 13609 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 13610   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 13611 Usually this means the macro was only invoked conditionally." >&5
 13612 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 13613 Usually this means the macro was only invoked conditionally." >&2;}
 13614    { (exit 1); exit 1; }; }
 13615 fi
 13616 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 13617   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 13618 Usually this means the macro was only invoked conditionally." >&5
 13619 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 13620 Usually this means the macro was only invoked conditionally." >&2;}
 13621    { (exit 1); exit 1; }; }
 13622 fi
 13623 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 13624   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 13625 Usually this means the macro was only invoked conditionally." >&5
 13626 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
 13627 Usually this means the macro was only invoked conditionally." >&2;}
 13628    { (exit 1); exit 1; }; }
 13629 fi
 13630 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
 13631   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
 13632 Usually this means the macro was only invoked conditionally." >&5
 13633 $as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
 13634 Usually this means the macro was only invoked conditionally." >&2;}
 13635    { (exit 1); exit 1; }; }
 13636 fi
 13637 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 13638   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 13639 Usually this means the macro was only invoked conditionally." >&5
 13640 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 13641 Usually this means the macro was only invoked conditionally." >&2;}
 13642    { (exit 1); exit 1; }; }
 13643 fi
 13644 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 13645   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 13646 Usually this means the macro was only invoked conditionally." >&5
 13647 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 13648 Usually this means the macro was only invoked conditionally." >&2;}
 13649    { (exit 1); exit 1; }; }
 13650 fi
 13651 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 13652   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 13653 Usually this means the macro was only invoked conditionally." >&5
 13654 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 13655 Usually this means the macro was only invoked conditionally." >&2;}
 13656    { (exit 1); exit 1; }; }
 13657 fi
 13658 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 13659   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 13660 Usually this means the macro was only invoked conditionally." >&5
 13661 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 13662 Usually this means the macro was only invoked conditionally." >&2;}
 13663    { (exit 1); exit 1; }; }
 13664 fi
 13665 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
 13666   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
 13667 Usually this means the macro was only invoked conditionally." >&5
 13668 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
 13669 Usually this means the macro was only invoked conditionally." >&2;}
 13670    { (exit 1); exit 1; }; }
 13671 fi
 13672 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
 13673   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
 13674 Usually this means the macro was only invoked conditionally." >&5
 13675 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
 13676 Usually this means the macro was only invoked conditionally." >&2;}
 13677    { (exit 1); exit 1; }; }
 13678 fi
 13679 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 13680   { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 13681 Usually this means the macro was only invoked conditionally." >&5
 13682 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 13683 Usually this means the macro was only invoked conditionally." >&2;}
 13684    { (exit 1); exit 1; }; }
 13685 fi
 13686 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
 13687   { { $as_echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
 13688 Usually this means the macro was only invoked conditionally." >&5
 13689 $as_echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
 13690 Usually this means the macro was only invoked conditionally." >&2;}
 13691    { (exit 1); exit 1; }; }
 13692 fi
 13693 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 13694   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 13695 Usually this means the macro was only invoked conditionally." >&5
 13696 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 13697 Usually this means the macro was only invoked conditionally." >&2;}
 13698    { (exit 1); exit 1; }; }
 13699 fi
 13700 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 13701   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 13702 Usually this means the macro was only invoked conditionally." >&5
 13703 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 13704 Usually this means the macro was only invoked conditionally." >&2;}
 13705    { (exit 1); exit 1; }; }
 13706 fi
 13708 : ${CONFIG_STATUS=./config.status}
 13709 ac_write_fail=0
 13710 ac_clean_files_save=$ac_clean_files
 13711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 13712 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 13713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 13714 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 13715 #! $SHELL
 13716 # Generated by $as_me.
 13717 # Run this file to recreate the current configuration.
 13718 # Compiler output produced by configure, useful for debugging
 13719 # configure, is in config.log if it exists.
 13721 debug=false
 13722 ac_cs_recheck=false
 13723 ac_cs_silent=false
 13724 SHELL=\${CONFIG_SHELL-$SHELL}
 13725 _ACEOF
 13727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 13728 ## --------------------- ##
 13729 ## M4sh Initialization.  ##
 13730 ## --------------------- ##
 13732 # Be more Bourne compatible
 13733 DUALCASE=1; export DUALCASE # for MKS sh
 13734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 13735   emulate sh
 13736   NULLCMD=:
 13737   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 13738   # is contrary to our usage.  Disable this feature.
 13739   alias -g '${1+"$@"}'='"$@"'
 13740   setopt NO_GLOB_SUBST
 13741 else
 13742   case `(set -o) 2>/dev/null` in
 13743   *posix*) set -o posix ;;
 13744 esac
 13746 fi
 13751 # PATH needs CR
 13752 # Avoid depending upon Character Ranges.
 13753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 13754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 13755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 13756 as_cr_digits='0123456789'
 13757 as_cr_alnum=$as_cr_Letters$as_cr_digits
 13759 as_nl='
 13761 export as_nl
 13762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
 13763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 13764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 13765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 13766 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 13767   as_echo='printf %s\n'
 13768   as_echo_n='printf %s'
 13769 else
 13770   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 13771     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 13772     as_echo_n='/usr/ucb/echo -n'
 13773   else
 13774     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 13775     as_echo_n_body='eval
 13776       arg=$1;
 13777       case $arg in
 13778       *"$as_nl"*)
 13779 	expr "X$arg" : "X\\(.*\\)$as_nl";
 13780 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 13781       esac;
 13782       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 13784     export as_echo_n_body
 13785     as_echo_n='sh -c $as_echo_n_body as_echo'
 13786   fi
 13787   export as_echo_body
 13788   as_echo='sh -c $as_echo_body as_echo'
 13789 fi
 13791 # The user is always right.
 13792 if test "${PATH_SEPARATOR+set}" != set; then
 13793   PATH_SEPARATOR=:
 13794   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 13795     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 13796       PATH_SEPARATOR=';'
 13798 fi
 13800 # Support unset when possible.
 13801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 13802   as_unset=unset
 13803 else
 13804   as_unset=false
 13805 fi
 13808 # IFS
 13809 # We need space, tab and new line, in precisely that order.  Quoting is
 13810 # there to prevent editors from complaining about space-tab.
 13811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 13812 # splitting by setting IFS to empty value.)
 13813 IFS=" ""	$as_nl"
 13815 # Find who we are.  Look in the path if we contain no directory separator.
 13816 case $0 in
 13817   *[\\/]* ) as_myself=$0 ;;
 13818   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13819 for as_dir in $PATH
 13820 do
 13821   IFS=$as_save_IFS
 13822   test -z "$as_dir" && as_dir=.
 13823   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 13824 done
 13825 IFS=$as_save_IFS
 13827      ;;
 13828 esac
 13829 # We did not find ourselves, most probably we were run as `sh COMMAND'
 13830 # in which case we are not to be found in the path.
 13831 if test "x$as_myself" = x; then
 13832   as_myself=$0
 13833 fi
 13834 if test ! -f "$as_myself"; then
 13835   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 13836   { (exit 1); exit 1; }
 13837 fi
 13839 # Work around bugs in pre-3.0 UWIN ksh.
 13840 for as_var in ENV MAIL MAILPATH
 13841 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 13842 done
 13843 PS1='$ '
 13844 PS2='> '
 13845 PS4='+ '
 13847 # NLS nuisances.
 13848 LC_ALL=C
 13849 export LC_ALL
 13850 LANGUAGE=C
 13851 export LANGUAGE
 13853 # Required to use basename.
 13854 if expr a : '\(a\)' >/dev/null 2>&1 &&
 13855    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 13856   as_expr=expr
 13857 else
 13858   as_expr=false
 13859 fi
 13861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 13862   as_basename=basename
 13863 else
 13864   as_basename=false
 13865 fi
 13868 # Name of the executable.
 13869 as_me=`$as_basename -- "$0" ||
 13870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 13871 	 X"$0" : 'X\(//\)$' \| \
 13872 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 13873 $as_echo X/"$0" |
 13874     sed '/^.*\/\([^/][^/]*\)\/*$/{
 13875 	    s//\1/
 13878 	  /^X\/\(\/\/\)$/{
 13879 	    s//\1/
 13882 	  /^X\/\(\/\).*/{
 13883 	    s//\1/
 13886 	  s/.*/./; q'`
 13888 # CDPATH.
 13889 $as_unset CDPATH
 13893   as_lineno_1=$LINENO
 13894   as_lineno_2=$LINENO
 13895   test "x$as_lineno_1" != "x$as_lineno_2" &&
 13896   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 13898   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 13899   # uniformly replaced by the line number.  The first 'sed' inserts a
 13900   # line-number line after each line using $LINENO; the second 'sed'
 13901   # does the real work.  The second script uses 'N' to pair each
 13902   # line-number line with the line containing $LINENO, and appends
 13903   # trailing '-' during substitution so that $LINENO is not a special
 13904   # case at line end.
 13905   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 13906   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 13907   # E. McMahon (1931-1989) for sed's syntax.  :-)
 13908   sed -n '
 13910     /[$]LINENO/=
 13911   ' <$as_myself |
 13912     sed '
 13913       s/[$]LINENO.*/&-/
 13914       t lineno
 13916       :lineno
 13918       :loop
 13919       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 13920       t loop
 13921       s/-\n.*//
 13922     ' >$as_me.lineno &&
 13923   chmod +x "$as_me.lineno" ||
 13924     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 13925    { (exit 1); exit 1; }; }
 13927   # Don't try to exec as it changes $[0], causing all sort of problems
 13928   # (the dirname of $[0] is not the place where we might find the
 13929   # original and so on.  Autoconf is especially sensitive to this).
 13930   . "./$as_me.lineno"
 13931   # Exit status is that of the last command.
 13932   exit
 13936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 13937   as_dirname=dirname
 13938 else
 13939   as_dirname=false
 13940 fi
 13942 ECHO_C= ECHO_N= ECHO_T=
 13943 case `echo -n x` in
 13944 -n*)
 13945   case `echo 'x\c'` in
 13946   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 13947   *)   ECHO_C='\c';;
 13948   esac;;
 13949 *)
 13950   ECHO_N='-n';;
 13951 esac
 13952 if expr a : '\(a\)' >/dev/null 2>&1 &&
 13953    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 13954   as_expr=expr
 13955 else
 13956   as_expr=false
 13957 fi
 13959 rm -f conf$$ conf$$.exe conf$$.file
 13960 if test -d conf$$.dir; then
 13961   rm -f conf$$.dir/conf$$.file
 13962 else
 13963   rm -f conf$$.dir
 13964   mkdir conf$$.dir 2>/dev/null
 13965 fi
 13966 if (echo >conf$$.file) 2>/dev/null; then
 13967   if ln -s conf$$.file conf$$ 2>/dev/null; then
 13968     as_ln_s='ln -s'
 13969     # ... but there are two gotchas:
 13970     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 13971     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 13972     # In both cases, we have to default to `cp -p'.
 13973     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 13974       as_ln_s='cp -p'
 13975   elif ln conf$$.file conf$$ 2>/dev/null; then
 13976     as_ln_s=ln
 13977   else
 13978     as_ln_s='cp -p'
 13979   fi
 13980 else
 13981   as_ln_s='cp -p'
 13982 fi
 13983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 13984 rmdir conf$$.dir 2>/dev/null
 13986 if mkdir -p . 2>/dev/null; then
 13987   as_mkdir_p=:
 13988 else
 13989   test -d ./-p && rmdir ./-p
 13990   as_mkdir_p=false
 13991 fi
 13993 if test -x / >/dev/null 2>&1; then
 13994   as_test_x='test -x'
 13995 else
 13996   if ls -dL / >/dev/null 2>&1; then
 13997     as_ls_L_option=L
 13998   else
 13999     as_ls_L_option=
 14000   fi
 14001   as_test_x='
 14002     eval sh -c '\''
 14003       if test -d "$1"; then
 14004 	test -d "$1/.";
 14005       else
 14006 	case $1 in
 14007 	-*)set "./$1";;
 14008 	esac;
 14009 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 14010 	???[sx]*):;;*)false;;esac;fi
 14011     '\'' sh
 14013 fi
 14014 as_executable_p=$as_test_x
 14016 # Sed expression to map a string onto a valid CPP name.
 14017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 14019 # Sed expression to map a string onto a valid variable name.
 14020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 14023 exec 6>&1
 14025 # Save the log message, to keep $[0] and so on meaningful, and to
 14026 # report actual input values of CONFIG_FILES etc. instead of their
 14027 # values after options handling.
 14028 ac_log="
 14029 This file was extended by $as_me, which was
 14030 generated by GNU Autoconf 2.63.  Invocation command line was
 14032   CONFIG_FILES    = $CONFIG_FILES
 14033   CONFIG_HEADERS  = $CONFIG_HEADERS
 14034   CONFIG_LINKS    = $CONFIG_LINKS
 14035   CONFIG_COMMANDS = $CONFIG_COMMANDS
 14036   $ $0 $@
 14038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 14041 _ACEOF
 14043 case $ac_config_files in *"
 14044 "*) set x $ac_config_files; shift; ac_config_files=$*;;
 14045 esac
 14047 case $ac_config_headers in *"
 14048 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 14049 esac
 14052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14053 # Files that config.status was made for.
 14054 config_files="$ac_config_files"
 14055 config_headers="$ac_config_headers"
 14056 config_commands="$ac_config_commands"
 14058 _ACEOF
 14060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14061 ac_cs_usage="\
 14062 \`$as_me' instantiates files from templates according to the
 14063 current configuration.
 14065 Usage: $0 [OPTION]... [FILE]...
 14067   -h, --help       print this help, then exit
 14068   -V, --version    print version number and configuration settings, then exit
 14069   -q, --quiet, --silent
 14070                    do not print progress messages
 14071   -d, --debug      don't remove temporary files
 14072       --recheck    update $as_me by reconfiguring in the same conditions
 14073       --file=FILE[:TEMPLATE]
 14074                    instantiate the configuration file FILE
 14075       --header=FILE[:TEMPLATE]
 14076                    instantiate the configuration header FILE
 14078 Configuration files:
 14079 $config_files
 14081 Configuration headers:
 14082 $config_headers
 14084 Configuration commands:
 14085 $config_commands
 14087 Report bugs to <bug-autoconf@gnu.org>."
 14089 _ACEOF
 14090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14091 ac_cs_version="\\
 14092 config.status
 14093 configured by $0, generated by GNU Autoconf 2.63,
 14094   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 14096 Copyright (C) 2008 Free Software Foundation, Inc.
 14097 This config.status script is free software; the Free Software Foundation
 14098 gives unlimited permission to copy, distribute and modify it."
 14100 ac_pwd='$ac_pwd'
 14101 srcdir='$srcdir'
 14102 INSTALL='$INSTALL'
 14103 AWK='$AWK'
 14104 test -n "\$AWK" || AWK=awk
 14105 _ACEOF
 14107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14108 # The default lists apply if the user does not specify any file.
 14109 ac_need_defaults=:
 14110 while test $# != 0
 14111 do
 14112   case $1 in
 14113   --*=*)
 14114     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 14115     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 14116     ac_shift=:
 14117     ;;
 14118   *)
 14119     ac_option=$1
 14120     ac_optarg=$2
 14121     ac_shift=shift
 14122     ;;
 14123   esac
 14125   case $ac_option in
 14126   # Handling of the options.
 14127   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 14128     ac_cs_recheck=: ;;
 14129   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 14130     $as_echo "$ac_cs_version"; exit ;;
 14131   --debug | --debu | --deb | --de | --d | -d )
 14132     debug=: ;;
 14133   --file | --fil | --fi | --f )
 14134     $ac_shift
 14135     case $ac_optarg in
 14136     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 14137     esac
 14138     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 14139     ac_need_defaults=false;;
 14140   --header | --heade | --head | --hea )
 14141     $ac_shift
 14142     case $ac_optarg in
 14143     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 14144     esac
 14145     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 14146     ac_need_defaults=false;;
 14147   --he | --h)
 14148     # Conflict between --help and --header
 14149     { $as_echo "$as_me: error: ambiguous option: $1
 14150 Try \`$0 --help' for more information." >&2
 14151    { (exit 1); exit 1; }; };;
 14152   --help | --hel | -h )
 14153     $as_echo "$ac_cs_usage"; exit ;;
 14154   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 14155   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 14156     ac_cs_silent=: ;;
 14158   # This is an error.
 14159   -*) { $as_echo "$as_me: error: unrecognized option: $1
 14160 Try \`$0 --help' for more information." >&2
 14161    { (exit 1); exit 1; }; } ;;
 14163   *) ac_config_targets="$ac_config_targets $1"
 14164      ac_need_defaults=false ;;
 14166   esac
 14167   shift
 14168 done
 14170 ac_configure_extra_args=
 14172 if $ac_cs_silent; then
 14173   exec 6>/dev/null
 14174   ac_configure_extra_args="$ac_configure_extra_args --silent"
 14175 fi
 14177 _ACEOF
 14178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14179 if \$ac_cs_recheck; then
 14180   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 14181   shift
 14182   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 14183   CONFIG_SHELL='$SHELL'
 14184   export CONFIG_SHELL
 14185   exec "\$@"
 14186 fi
 14188 _ACEOF
 14189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14190 exec 5>>config.log
 14192   echo
 14193   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 14194 ## Running $as_me. ##
 14195 _ASBOX
 14196   $as_echo "$ac_log"
 14197 } >&5
 14199 _ACEOF
 14200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14202 # INIT-COMMANDS
 14204 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 14207 _ACEOF
 14209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14211 # Handling of arguments.
 14212 for ac_config_target in $ac_config_targets
 14213 do
 14214   case $ac_config_target in
 14215     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 14216     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 14217     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 14218     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 14219     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 14220     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 14221     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 14222     "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
 14224   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 14225 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 14226    { (exit 1); exit 1; }; };;
 14227   esac
 14228 done
 14231 # If the user did not use the arguments to specify the items to instantiate,
 14232 # then the envvar interface is used.  Set only those that are not.
 14233 # We use the long form for the default assignment because of an extremely
 14234 # bizarre bug on SunOS 4.1.3.
 14235 if $ac_need_defaults; then
 14236   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 14237   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 14238   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 14239 fi
 14241 # Have a temporary directory for convenience.  Make it in the build tree
 14242 # simply because there is no reason against having it here, and in addition,
 14243 # creating and moving files from /tmp can sometimes cause problems.
 14244 # Hook for its removal unless debugging.
 14245 # Note that there is a small window in which the directory will not be cleaned:
 14246 # after its creation but before its name has been assigned to `$tmp'.
 14247 $debug ||
 14249   tmp=
 14250   trap 'exit_status=$?
 14251   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 14252 ' 0
 14253   trap '{ (exit 1); exit 1; }' 1 2 13 15
 14255 # Create a (secure) tmp directory for tmp files.
 14258   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 14259   test -n "$tmp" && test -d "$tmp"
 14260 }  ||
 14262   tmp=./conf$$-$RANDOM
 14263   (umask 077 && mkdir "$tmp")
 14264 } ||
 14266    $as_echo "$as_me: cannot create a temporary directory in ." >&2
 14267    { (exit 1); exit 1; }
 14270 # Set up the scripts for CONFIG_FILES section.
 14271 # No need to generate them if there are no CONFIG_FILES.
 14272 # This happens for instance with `./config.status config.h'.
 14273 if test -n "$CONFIG_FILES"; then
 14276 ac_cr='
 14278 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 14279 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 14280   ac_cs_awk_cr='\\r'
 14281 else
 14282   ac_cs_awk_cr=$ac_cr
 14283 fi
 14285 echo 'BEGIN {' >"$tmp/subs1.awk" &&
 14286 _ACEOF
 14290   echo "cat >conf$$subs.awk <<_ACEOF" &&
 14291   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 14292   echo "_ACEOF"
 14293 } >conf$$subs.sh ||
 14294   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 14295 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 14296    { (exit 1); exit 1; }; }
 14297 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 14298 ac_delim='%!_!# '
 14299 for ac_last_try in false false false false false :; do
 14300   . ./conf$$subs.sh ||
 14301     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 14302 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 14303    { (exit 1); exit 1; }; }
 14305   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 14306   if test $ac_delim_n = $ac_delim_num; then
 14307     break
 14308   elif $ac_last_try; then
 14309     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 14310 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 14311    { (exit 1); exit 1; }; }
 14312   else
 14313     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 14314   fi
 14315 done
 14316 rm -f conf$$subs.sh
 14318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14319 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 14320 _ACEOF
 14321 sed -n '
 14323 s/^/S["/; s/!.*/"]=/
 14326 s/^[^!]*!//
 14327 :repl
 14328 t repl
 14329 s/'"$ac_delim"'$//
 14330 t delim
 14331 :nl
 14333 s/\(.\{148\}\).*/\1/
 14334 t more1
 14335 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 14338 b repl
 14339 :more1
 14340 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 14343 s/.\{148\}//
 14344 t nl
 14345 :delim
 14347 s/\(.\{148\}\).*/\1/
 14348 t more2
 14349 s/["\\]/\\&/g; s/^/"/; s/$/"/
 14352 :more2
 14353 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 14356 s/.\{148\}//
 14357 t delim
 14358 ' <conf$$subs.awk | sed '
 14359 /^[^""]/{
 14361   s/\n//
 14363 ' >>$CONFIG_STATUS || ac_write_fail=1
 14364 rm -f conf$$subs.awk
 14365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14366 _ACAWK
 14367 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 14368   for (key in S) S_is_set[key] = 1
 14369   FS = ""
 14373   line = $ 0
 14374   nfields = split(line, field, "@")
 14375   substed = 0
 14376   len = length(field[1])
 14377   for (i = 2; i < nfields; i++) {
 14378     key = field[i]
 14379     keylen = length(key)
 14380     if (S_is_set[key]) {
 14381       value = S[key]
 14382       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 14383       len += length(value) + length(field[++i])
 14384       substed = 1
 14385     } else
 14386       len += 1 + keylen
 14389   print line
 14392 _ACAWK
 14393 _ACEOF
 14394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14395 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 14396   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 14397 else
 14398   cat
 14399 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 14400   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 14401 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
 14402    { (exit 1); exit 1; }; }
 14403 _ACEOF
 14405 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 14406 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 14407 # trailing colons and then remove the whole line if VPATH becomes empty
 14408 # (actually we leave an empty line to preserve line numbers).
 14409 if test "x$srcdir" = x.; then
 14410   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 14411 s/:*\$(srcdir):*/:/
 14412 s/:*\${srcdir}:*/:/
 14413 s/:*@srcdir@:*/:/
 14414 s/^\([^=]*=[	 ]*\):*/\1/
 14415 s/:*$//
 14416 s/^[^=]*=[	 ]*$//
 14417 }'
 14418 fi
 14420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14421 fi # test -n "$CONFIG_FILES"
 14423 # Set up the scripts for CONFIG_HEADERS section.
 14424 # No need to generate them if there are no CONFIG_HEADERS.
 14425 # This happens for instance with `./config.status Makefile'.
 14426 if test -n "$CONFIG_HEADERS"; then
 14427 cat >"$tmp/defines.awk" <<\_ACAWK ||
 14428 BEGIN {
 14429 _ACEOF
 14431 # Transform confdefs.h into an awk script `defines.awk', embedded as
 14432 # here-document in config.status, that substitutes the proper values into
 14433 # config.h.in to produce config.h.
 14435 # Create a delimiter string that does not exist in confdefs.h, to ease
 14436 # handling of long lines.
 14437 ac_delim='%!_!# '
 14438 for ac_last_try in false false :; do
 14439   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 14440   if test -z "$ac_t"; then
 14441     break
 14442   elif $ac_last_try; then
 14443     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 14444 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 14445    { (exit 1); exit 1; }; }
 14446   else
 14447     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 14448   fi
 14449 done
 14451 # For the awk script, D is an array of macro values keyed by name,
 14452 # likewise P contains macro parameters if any.  Preserve backslash
 14453 # newline sequences.
 14455 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 14456 sed -n '
 14457 s/.\{148\}/&'"$ac_delim"'/g
 14458 t rset
 14459 :rset
 14460 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 14461 t def
 14463 :def
 14464 s/\\$//
 14465 t bsnl
 14466 s/["\\]/\\&/g
 14467 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 14468 D["\1"]=" \3"/p
 14469 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 14471 :bsnl
 14472 s/["\\]/\\&/g
 14473 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 14474 D["\1"]=" \3\\\\\\n"\\/p
 14475 t cont
 14476 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 14477 t cont
 14479 :cont
 14481 s/.\{148\}/&'"$ac_delim"'/g
 14482 t clear
 14483 :clear
 14484 s/\\$//
 14485 t bsnlc
 14486 s/["\\]/\\&/g; s/^/"/; s/$/"/p
 14488 :bsnlc
 14489 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 14490 b cont
 14491 ' <confdefs.h | sed '
 14492 s/'"$ac_delim"'/"\\\
 14493 "/g' >>$CONFIG_STATUS || ac_write_fail=1
 14495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14496   for (key in D) D_is_set[key] = 1
 14497   FS = ""
 14499 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 14500   line = \$ 0
 14501   split(line, arg, " ")
 14502   if (arg[1] == "#") {
 14503     defundef = arg[2]
 14504     mac1 = arg[3]
 14505   } else {
 14506     defundef = substr(arg[1], 2)
 14507     mac1 = arg[2]
 14509   split(mac1, mac2, "(") #)
 14510   macro = mac2[1]
 14511   prefix = substr(line, 1, index(line, defundef) - 1)
 14512   if (D_is_set[macro]) {
 14513     # Preserve the white space surrounding the "#".
 14514     print prefix "define", macro P[macro] D[macro]
 14515     next
 14516   } else {
 14517     # Replace #undef with comments.  This is necessary, for example,
 14518     # in the case of _POSIX_SOURCE, which is predefined and required
 14519     # on some systems where configure will not decide to define it.
 14520     if (defundef == "undef") {
 14521       print "/*", prefix defundef, macro, "*/"
 14522       next
 14526 { print }
 14527 _ACAWK
 14528 _ACEOF
 14529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14530   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 14531 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 14532    { (exit 1); exit 1; }; }
 14533 fi # test -n "$CONFIG_HEADERS"
 14536 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 14537 shift
 14538 for ac_tag
 14539 do
 14540   case $ac_tag in
 14541   :[FHLC]) ac_mode=$ac_tag; continue;;
 14542   esac
 14543   case $ac_mode$ac_tag in
 14544   :[FHL]*:*);;
 14545   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 14546 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 14547    { (exit 1); exit 1; }; };;
 14548   :[FH]-) ac_tag=-:-;;
 14549   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 14550   esac
 14551   ac_save_IFS=$IFS
 14552   IFS=:
 14553   set x $ac_tag
 14554   IFS=$ac_save_IFS
 14555   shift
 14556   ac_file=$1
 14557   shift
 14559   case $ac_mode in
 14560   :L) ac_source=$1;;
 14561   :[FH])
 14562     ac_file_inputs=
 14563     for ac_f
 14564     do
 14565       case $ac_f in
 14566       -) ac_f="$tmp/stdin";;
 14567       *) # Look for the file first in the build tree, then in the source tree
 14568 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 14569 	 # because $ac_f cannot contain `:'.
 14570 	 test -f "$ac_f" ||
 14571 	   case $ac_f in
 14572 	   [\\/$]*) false;;
 14573 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 14574 	   esac ||
 14575 	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 14576 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 14577    { (exit 1); exit 1; }; };;
 14578       esac
 14579       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 14580       ac_file_inputs="$ac_file_inputs '$ac_f'"
 14581     done
 14583     # Let's still pretend it is `configure' which instantiates (i.e., don't
 14584     # use $as_me), people would be surprised to read:
 14585     #    /* config.h.  Generated by config.status.  */
 14586     configure_input='Generated from '`
 14587 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 14588 	`' by configure.'
 14589     if test x"$ac_file" != x-; then
 14590       configure_input="$ac_file.  $configure_input"
 14591       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 14592 $as_echo "$as_me: creating $ac_file" >&6;}
 14593     fi
 14594     # Neutralize special characters interpreted by sed in replacement strings.
 14595     case $configure_input in #(
 14596     *\&* | *\|* | *\\* )
 14597        ac_sed_conf_input=`$as_echo "$configure_input" |
 14598        sed 's/[\\\\&|]/\\\\&/g'`;; #(
 14599     *) ac_sed_conf_input=$configure_input;;
 14600     esac
 14602     case $ac_tag in
 14603     *:-:* | *:-) cat >"$tmp/stdin" \
 14604       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 14605 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 14606    { (exit 1); exit 1; }; } ;;
 14607     esac
 14608     ;;
 14609   esac
 14611   ac_dir=`$as_dirname -- "$ac_file" ||
 14612 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14613 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 14614 	 X"$ac_file" : 'X\(//\)$' \| \
 14615 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 14616 $as_echo X"$ac_file" |
 14617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14618 	    s//\1/
 14621 	  /^X\(\/\/\)[^/].*/{
 14622 	    s//\1/
 14625 	  /^X\(\/\/\)$/{
 14626 	    s//\1/
 14629 	  /^X\(\/\).*/{
 14630 	    s//\1/
 14633 	  s/.*/./; q'`
 14634   { as_dir="$ac_dir"
 14635   case $as_dir in #(
 14636   -*) as_dir=./$as_dir;;
 14637   esac
 14638   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 14639     as_dirs=
 14640     while :; do
 14641       case $as_dir in #(
 14642       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 14643       *) as_qdir=$as_dir;;
 14644       esac
 14645       as_dirs="'$as_qdir' $as_dirs"
 14646       as_dir=`$as_dirname -- "$as_dir" ||
 14647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14648 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 14649 	 X"$as_dir" : 'X\(//\)$' \| \
 14650 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 14651 $as_echo X"$as_dir" |
 14652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14653 	    s//\1/
 14656 	  /^X\(\/\/\)[^/].*/{
 14657 	    s//\1/
 14660 	  /^X\(\/\/\)$/{
 14661 	    s//\1/
 14664 	  /^X\(\/\).*/{
 14665 	    s//\1/
 14668 	  s/.*/./; q'`
 14669       test -d "$as_dir" && break
 14670     done
 14671     test -z "$as_dirs" || eval "mkdir $as_dirs"
 14672   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 14673 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 14674    { (exit 1); exit 1; }; }; }
 14675   ac_builddir=.
 14677 case "$ac_dir" in
 14678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 14679 *)
 14680   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 14681   # A ".." for each directory in $ac_dir_suffix.
 14682   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 14683   case $ac_top_builddir_sub in
 14684   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 14685   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 14686   esac ;;
 14687 esac
 14688 ac_abs_top_builddir=$ac_pwd
 14689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 14690 # for backward compatibility:
 14691 ac_top_builddir=$ac_top_build_prefix
 14693 case $srcdir in
 14694   .)  # We are building in place.
 14695     ac_srcdir=.
 14696     ac_top_srcdir=$ac_top_builddir_sub
 14697     ac_abs_top_srcdir=$ac_pwd ;;
 14698   [\\/]* | ?:[\\/]* )  # Absolute name.
 14699     ac_srcdir=$srcdir$ac_dir_suffix;
 14700     ac_top_srcdir=$srcdir
 14701     ac_abs_top_srcdir=$srcdir ;;
 14702   *) # Relative name.
 14703     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 14704     ac_top_srcdir=$ac_top_build_prefix$srcdir
 14705     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 14706 esac
 14707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 14710   case $ac_mode in
 14711   :F)
 14713   # CONFIG_FILE
 14716   case $INSTALL in
 14717   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 14718   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 14719   esac
 14720 _ACEOF
 14722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14723 # If the template does not know about datarootdir, expand it.
 14724 # FIXME: This hack should be removed a few years after 2.60.
 14725 ac_datarootdir_hack=; ac_datarootdir_seen=
 14727 ac_sed_dataroot='
 14728 /datarootdir/ {
 14732 /@datadir@/p
 14733 /@docdir@/p
 14734 /@infodir@/p
 14735 /@localedir@/p
 14736 /@mandir@/p
 14738 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 14739 *datarootdir*) ac_datarootdir_seen=yes;;
 14740 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 14741   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 14742 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 14743 _ACEOF
 14744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14745   ac_datarootdir_hack='
 14746   s&@datadir@&$datadir&g
 14747   s&@docdir@&$docdir&g
 14748   s&@infodir@&$infodir&g
 14749   s&@localedir@&$localedir&g
 14750   s&@mandir@&$mandir&g
 14751     s&\\\${datarootdir}&$datarootdir&g' ;;
 14752 esac
 14753 _ACEOF
 14755 # Neutralize VPATH when `$srcdir' = `.'.
 14756 # Shell code in configure.ac might set extrasub.
 14757 # FIXME: do we really want to maintain this feature?
 14758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 14759 ac_sed_extra="$ac_vpsub
 14760 $extrasub
 14761 _ACEOF
 14762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 14763 :t
 14764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 14765 s|@configure_input@|$ac_sed_conf_input|;t t
 14766 s&@top_builddir@&$ac_top_builddir_sub&;t t
 14767 s&@top_build_prefix@&$ac_top_build_prefix&;t t
 14768 s&@srcdir@&$ac_srcdir&;t t
 14769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 14770 s&@top_srcdir@&$ac_top_srcdir&;t t
 14771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 14772 s&@builddir@&$ac_builddir&;t t
 14773 s&@abs_builddir@&$ac_abs_builddir&;t t
 14774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 14775 s&@INSTALL@&$ac_INSTALL&;t t
 14776 $ac_datarootdir_hack
 14778 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 14779   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 14780 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 14781    { (exit 1); exit 1; }; }
 14783 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 14784   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 14785   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 14786   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 14787 which seems to be undefined.  Please make sure it is defined." >&5
 14788 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 14789 which seems to be undefined.  Please make sure it is defined." >&2;}
 14791   rm -f "$tmp/stdin"
 14792   case $ac_file in
 14793   -) cat "$tmp/out" && rm -f "$tmp/out";;
 14794   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 14795   esac \
 14796   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 14797 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 14798    { (exit 1); exit 1; }; }
 14799  ;;
 14800   :H)
 14802   # CONFIG_HEADER
 14804   if test x"$ac_file" != x-; then
 14806       $as_echo "/* $configure_input  */" \
 14807       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 14808     } >"$tmp/config.h" \
 14809       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 14810 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 14811    { (exit 1); exit 1; }; }
 14812     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 14813       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 14814 $as_echo "$as_me: $ac_file is unchanged" >&6;}
 14815     else
 14816       rm -f "$ac_file"
 14817       mv "$tmp/config.h" "$ac_file" \
 14818 	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 14819 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 14820    { (exit 1); exit 1; }; }
 14821     fi
 14822   else
 14823     $as_echo "/* $configure_input  */" \
 14824       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 14825       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 14826 $as_echo "$as_me: error: could not create -" >&2;}
 14827    { (exit 1); exit 1; }; }
 14828   fi
 14829 # Compute "$ac_file"'s index in $config_headers.
 14830 _am_stamp_count=1
 14831 for _am_header in $config_headers :; do
 14832   case $_am_header in
 14833     "$ac_file" | "$ac_file":* )
 14834       break ;;
 14835     * )
 14836       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 14837   esac
 14838 done
 14839 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
 14840 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14841 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 14842 	 X"$ac_file" : 'X\(//\)$' \| \
 14843 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 14844 $as_echo X"$ac_file" |
 14845     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14846 	    s//\1/
 14849 	  /^X\(\/\/\)[^/].*/{
 14850 	    s//\1/
 14853 	  /^X\(\/\/\)$/{
 14854 	    s//\1/
 14857 	  /^X\(\/\).*/{
 14858 	    s//\1/
 14861 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 14862  ;;
 14864   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 14865 $as_echo "$as_me: executing $ac_file commands" >&6;}
 14866  ;;
 14867   esac
 14870   case $ac_file$ac_mode in
 14871     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 14872   # Strip MF so we end up with the name of the file.
 14873   mf=`echo "$mf" | sed -e 's/:.*$//'`
 14874   # Check whether this is an Automake generated Makefile or not.
 14875   # We used to match only the files named `Makefile.in', but
 14876   # some people rename them; so instead we look at the file content.
 14877   # Grep'ing the first line is not enough: some people post-process
 14878   # each Makefile.in and add a new line on top of each file to say so.
 14879   # So let's grep whole file.
 14880   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 14881     dirpart=`$as_dirname -- "$mf" ||
 14882 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14883 	 X"$mf" : 'X\(//\)[^/]' \| \
 14884 	 X"$mf" : 'X\(//\)$' \| \
 14885 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 14886 $as_echo X"$mf" |
 14887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14888 	    s//\1/
 14891 	  /^X\(\/\/\)[^/].*/{
 14892 	    s//\1/
 14895 	  /^X\(\/\/\)$/{
 14896 	    s//\1/
 14899 	  /^X\(\/\).*/{
 14900 	    s//\1/
 14903 	  s/.*/./; q'`
 14904   else
 14905     continue
 14906   fi
 14907   # Extract the definition of DEPDIR, am__include, and am__quote
 14908   # from the Makefile without running `make'.
 14909   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 14910   test -z "$DEPDIR" && continue
 14911   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 14912   test -z "am__include" && continue
 14913   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 14914   # When using ansi2knr, U may be empty or an underscore; expand it
 14915   U=`sed -n 's/^U = //p' < "$mf"`
 14916   # Find all dependency output files, they are included files with
 14917   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 14918   # simplest approach to changing $(DEPDIR) to its actual value in the
 14919   # expansion.
 14920   for file in `sed -n "
 14921     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 14922        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 14923     # Make sure the directory exists.
 14924     test -f "$dirpart/$file" && continue
 14925     fdir=`$as_dirname -- "$file" ||
 14926 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14927 	 X"$file" : 'X\(//\)[^/]' \| \
 14928 	 X"$file" : 'X\(//\)$' \| \
 14929 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 14930 $as_echo X"$file" |
 14931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14932 	    s//\1/
 14935 	  /^X\(\/\/\)[^/].*/{
 14936 	    s//\1/
 14939 	  /^X\(\/\/\)$/{
 14940 	    s//\1/
 14943 	  /^X\(\/\).*/{
 14944 	    s//\1/
 14947 	  s/.*/./; q'`
 14948     { as_dir=$dirpart/$fdir
 14949   case $as_dir in #(
 14950   -*) as_dir=./$as_dir;;
 14951   esac
 14952   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 14953     as_dirs=
 14954     while :; do
 14955       case $as_dir in #(
 14956       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 14957       *) as_qdir=$as_dir;;
 14958       esac
 14959       as_dirs="'$as_qdir' $as_dirs"
 14960       as_dir=`$as_dirname -- "$as_dir" ||
 14961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14962 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 14963 	 X"$as_dir" : 'X\(//\)$' \| \
 14964 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 14965 $as_echo X"$as_dir" |
 14966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14967 	    s//\1/
 14970 	  /^X\(\/\/\)[^/].*/{
 14971 	    s//\1/
 14974 	  /^X\(\/\/\)$/{
 14975 	    s//\1/
 14978 	  /^X\(\/\).*/{
 14979 	    s//\1/
 14982 	  s/.*/./; q'`
 14983       test -d "$as_dir" && break
 14984     done
 14985     test -z "$as_dirs" || eval "mkdir $as_dirs"
 14986   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 14987 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 14988    { (exit 1); exit 1; }; }; }
 14989     # echo "creating $dirpart/$file"
 14990     echo '# dummy' > "$dirpart/$file"
 14991   done
 14992 done
 14993  ;;
 14994     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 14995         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 14996       esac ;;
 14998   esac
 14999 done # for ac_tag
 15002 { (exit 0); exit 0; }
 15003 _ACEOF
 15004 chmod +x $CONFIG_STATUS
 15005 ac_clean_files=$ac_clean_files_save
 15007 test $ac_write_fail = 0 ||
 15008   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 15009 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 15010    { (exit 1); exit 1; }; }
 15013 # configure is writing to config.log, and then calls config.status.
 15014 # config.status does its own redirection, appending to config.log.
 15015 # Unfortunately, on DOS this fails, as config.log is still kept open
 15016 # by configure, so config.status won't be able to write to it; its
 15017 # output is simply discarded.  So we exec the FD to /dev/null,
 15018 # effectively closing config.log, so it can be properly (re)opened and
 15019 # appended to by config.status.  When coming back to configure, we
 15020 # need to make the FD available again.
 15021 if test "$no_create" != yes; then
 15022   ac_cs_success=:
 15023   ac_config_status_args=
 15024   test "$silent" = yes &&
 15025     ac_config_status_args="$ac_config_status_args --quiet"
 15026   exec 5>/dev/null
 15027   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 15028   exec 5>>config.log
 15029   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 15030   # would make configure fail if this is the last instruction.
 15031   $ac_cs_success || { (exit 1); exit 1; }
 15032 fi
 15033 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 15034   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 15035 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 15036 fi
 15038 { as_dir=test/sh4
 15039   case $as_dir in #(
 15040   -*) as_dir=./$as_dir;;
 15041   esac
 15042   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 15043     as_dirs=
 15044     while :; do
 15045       case $as_dir in #(
 15046       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 15047       *) as_qdir=$as_dir;;
 15048       esac
 15049       as_dirs="'$as_qdir' $as_dirs"
 15050       as_dir=`$as_dirname -- "$as_dir" ||
 15051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 15052 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 15053 	 X"$as_dir" : 'X\(//\)$' \| \
 15054 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 15055 $as_echo X"$as_dir" |
 15056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 15057 	    s//\1/
 15060 	  /^X\(\/\/\)[^/].*/{
 15061 	    s//\1/
 15064 	  /^X\(\/\/\)$/{
 15065 	    s//\1/
 15068 	  /^X\(\/\).*/{
 15069 	    s//\1/
 15072 	  s/.*/./; q'`
 15073       test -d "$as_dir" && break
 15074     done
 15075     test -z "$as_dirs" || eval "mkdir $as_dirs"
 15076   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 15077 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 15078    { (exit 1); exit 1; }; }; }
 15081 echo
 15082 echo "Configuration complete"
 15083 echo
 15085 if test "x$HAVE_GTK" = x; then
 15086   if test "x$HAVE_COCOA" = x; then
 15087      echo "  User interface: none"
 15088   else
 15089      echo "  User interface: Cocoa"
 15090   fi
 15091 else
 15092   echo "  User interface: GTK"
 15093 fi
 15095 if test "x$SH4_TRANSLATOR" = "x"; then
 15096   echo "  SH4 translator: None (emulation core only)"
 15097 else
 15098   echo "  SH4 translator: $SH4_TRANSLATOR"
 15099 fi
 15101 if test "x$VIDEO_DRIVERS" = "x"; then
 15102    echo "  Video drivers: none (no supported GL found)"
 15103 else
 15104    echo "  Video drivers: $VIDEO_DRIVERS"
 15105 fi
 15107 if test "x$AUDIO_DRIVERS" = "x"; then
 15108    echo "  Audio drivers: none (no supported output devices found)"
 15109 else
 15110    echo "  Audio drivers: $AUDIO_DRIVERS"
 15111 fi
 15113 if test "x$INPUT_DRIVERS" = "x"; then
 15114    echo "  Input drivers: none (no supported output devices found)"
 15115 else
 15116    echo "  Input drivers: $INPUT_DRIVERS"
 15117 fi
 15119 if test "x$CDROM_DRIVER" = "x"; then
 15120    echo "  CD-ROM driver: none (no supported cd-rom devices found)"
 15121 else
 15122    echo "  CD-ROM driver:  $CDROM_DRIVER"
 15123 fi
.