Ticket #16155: configure

File configure, 404.0 KB (added by jcopenha@…, 16 years ago)
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for advance source.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 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# Copyright 2005 Andrea Mazzoleni
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""        $as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135         X"$0" : 'X\(//\)$' \| \
136         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139            s//\1/
140            q
141          }
142          /^X\/\(\/\/\)$/{
143            s//\1/
144            q
145          }
146          /^X\/\(\/\).*/{
147            s//\1/
148            q
149          }
150          s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes &&     (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229         /*)
230           for as_base in sh bash ksh sh5; do
231             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232           done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239         # Try only shells that exist, to save several forks.
240         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261               as_have_required=yes
262               if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536        case $1 in
537        -*)set "./$1";;
538        esac;
539        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540        ???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554exec 7<&0 </dev/null 6>&1
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='advance'
576PACKAGE_TARNAME='advance'
577PACKAGE_VERSION='source'
578PACKAGE_STRING='advance source'
579PACKAGE_BUGREPORT=''
580
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595#  include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600#  include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654build
655build_cpu
656build_vendor
657build_os
658host
659host_cpu
660host_vendor
661host_os
662ASMFLAGS
663CFLAGS_FOR_BUILD
664EXE
665CONF_SYSTEM
666CONF_HOST
667EXE_FOR_BUILD
668CONF_BUILD
669CC
670CFLAGS
671LDFLAGS
672CPPFLAGS
673ac_ct_CC
674EXEEXT
675OBJEXT
676CXX
677CXXFLAGS
678ac_ct_CXX
679INSTALL_PROGRAM
680INSTALL_SCRIPT
681INSTALL_DATA
682LN_S
683AR
684ac_ct_AR
685RC
686ac_ct_RC
687RM
688CP
689MKDIR
690ECHO
691TAR
692GZIP
693ZIP
694CC_FOR_BUILD
695CXX_FOR_BUILD
696CONF_DEBUG
697CONF_CFLAGS_OPT
698CONF_LDFLAGS
699CPP
700GREP
701EGREP
702ASM
703CONF_CFLAGS_ARCH
704CONF_EMU
705CONF_DEBUGGER
706ALLOCA
707CONF_LIB_ZLIB
708CONF_LIB_EXPAT
709CONF_LIB_SVGALIB
710CONF_LIB_FB
711CONF_LIB_ALSA
712CONF_LIB_OSS
713CONF_LIB_PTHREAD
714CONF_LIB_SLANG
715CONF_LIB_NCURSES
716ac_lib_freetype_config
717FREETYPECFLAGS
718FREETYPELIBS
719CONF_LIB_FREETYPE
720ac_lib_sdl_config
721SDLCFLAGS
722SDLLIBS
723CONF_LIB_SDL
724CONF_LIB_SVGAWIN
725CONF_LIB_MRAWINPUT
726CONF_LIB_MCPN
727CONF_LIB_KRAW
728CONF_LIB_JRAW
729CONF_LIB_MRAW
730CONF_LIB_MEVENT
731CONF_LIB_KEVENT
732CONF_LIB_JEVENT
733CONF_LIB_DIRECT
734LIBOBJS
735LTLIBOBJS'
736ac_subst_files=''
737      ac_precious_vars='build_alias
738host_alias
739target_alias
740CC
741CFLAGS
742LDFLAGS
743LIBS
744CPPFLAGS
745CXX
746CXXFLAGS
747CCC
748CPP'
749
750
751# Initialize some variables set by options.
752ac_init_help=
753ac_init_version=false
754# The variables have the same names as the options, with
755# dashes changed to underlines.
756cache_file=/dev/null
757exec_prefix=NONE
758no_create=
759no_recursion=
760prefix=NONE
761program_prefix=NONE
762program_suffix=NONE
763program_transform_name=s,x,x,
764silent=
765site=
766srcdir=
767verbose=
768x_includes=NONE
769x_libraries=NONE
770
771# Installation directory options.
772# These are left unexpanded so users can "make install exec_prefix=/foo"
773# and all the variables that are supposed to be based on exec_prefix
774# by default will actually change.
775# Use braces instead of parens because sh, perl, etc. also accept them.
776# (The list follows the same order as the GNU Coding Standards.)
777bindir='${exec_prefix}/bin'
778sbindir='${exec_prefix}/sbin'
779libexecdir='${exec_prefix}/libexec'
780datarootdir='${prefix}/share'
781datadir='${datarootdir}'
782sysconfdir='${prefix}/etc'
783sharedstatedir='${prefix}/com'
784localstatedir='${prefix}/var'
785includedir='${prefix}/include'
786oldincludedir='/usr/include'
787docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788infodir='${datarootdir}/info'
789htmldir='${docdir}'
790dvidir='${docdir}'
791pdfdir='${docdir}'
792psdir='${docdir}'
793libdir='${exec_prefix}/lib'
794localedir='${datarootdir}/locale'
795mandir='${datarootdir}/man'
796
797ac_prev=
798ac_dashdash=
799for ac_option
800do
801  # If the previous option needs an argument, assign it.
802  if test -n "$ac_prev"; then
803    eval $ac_prev=\$ac_option
804    ac_prev=
805    continue
806  fi
807
808  case $ac_option in
809  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810  *)    ac_optarg=yes ;;
811  esac
812
813  # Accept the important Cygnus configure options, so we can diagnose typos.
814
815  case $ac_dashdash$ac_option in
816  --)
817    ac_dashdash=yes ;;
818
819  -bindir | --bindir | --bindi | --bind | --bin | --bi)
820    ac_prev=bindir ;;
821  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822    bindir=$ac_optarg ;;
823
824  -build | --build | --buil | --bui | --bu)
825    ac_prev=build_alias ;;
826  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827    build_alias=$ac_optarg ;;
828
829  -cache-file | --cache-file | --cache-fil | --cache-fi \
830  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831    ac_prev=cache_file ;;
832  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834    cache_file=$ac_optarg ;;
835
836  --config-cache | -C)
837    cache_file=config.cache ;;
838
839  -datadir | --datadir | --datadi | --datad)
840    ac_prev=datadir ;;
841  -datadir=* | --datadir=* | --datadi=* | --datad=*)
842    datadir=$ac_optarg ;;
843
844  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845  | --dataroo | --dataro | --datar)
846    ac_prev=datarootdir ;;
847  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849    datarootdir=$ac_optarg ;;
850
851  -disable-* | --disable-*)
852    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853    # Reject names that are not valid shell variable names.
854    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856   { (exit 1); exit 1; }; }
857    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858    eval enable_$ac_feature=no ;;
859
860  -docdir | --docdir | --docdi | --doc | --do)
861    ac_prev=docdir ;;
862  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863    docdir=$ac_optarg ;;
864
865  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866    ac_prev=dvidir ;;
867  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868    dvidir=$ac_optarg ;;
869
870  -enable-* | --enable-*)
871    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872    # Reject names that are not valid shell variable names.
873    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875   { (exit 1); exit 1; }; }
876    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877    eval enable_$ac_feature=\$ac_optarg ;;
878
879  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881  | --exec | --exe | --ex)
882    ac_prev=exec_prefix ;;
883  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885  | --exec=* | --exe=* | --ex=*)
886    exec_prefix=$ac_optarg ;;
887
888  -gas | --gas | --ga | --g)
889    # Obsolete; use --with-gas.
890    with_gas=yes ;;
891
892  -help | --help | --hel | --he | -h)
893    ac_init_help=long ;;
894  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895    ac_init_help=recursive ;;
896  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897    ac_init_help=short ;;
898
899  -host | --host | --hos | --ho)
900    ac_prev=host_alias ;;
901  -host=* | --host=* | --hos=* | --ho=*)
902    host_alias=$ac_optarg ;;
903
904  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905    ac_prev=htmldir ;;
906  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907  | --ht=*)
908    htmldir=$ac_optarg ;;
909
910  -includedir | --includedir | --includedi | --included | --include \
911  | --includ | --inclu | --incl | --inc)
912    ac_prev=includedir ;;
913  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914  | --includ=* | --inclu=* | --incl=* | --inc=*)
915    includedir=$ac_optarg ;;
916
917  -infodir | --infodir | --infodi | --infod | --info | --inf)
918    ac_prev=infodir ;;
919  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920    infodir=$ac_optarg ;;
921
922  -libdir | --libdir | --libdi | --libd)
923    ac_prev=libdir ;;
924  -libdir=* | --libdir=* | --libdi=* | --libd=*)
925    libdir=$ac_optarg ;;
926
927  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928  | --libexe | --libex | --libe)
929    ac_prev=libexecdir ;;
930  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931  | --libexe=* | --libex=* | --libe=*)
932    libexecdir=$ac_optarg ;;
933
934  -localedir | --localedir | --localedi | --localed | --locale)
935    ac_prev=localedir ;;
936  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937    localedir=$ac_optarg ;;
938
939  -localstatedir | --localstatedir | --localstatedi | --localstated \
940  | --localstate | --localstat | --localsta | --localst | --locals)
941    ac_prev=localstatedir ;;
942  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944    localstatedir=$ac_optarg ;;
945
946  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947    ac_prev=mandir ;;
948  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949    mandir=$ac_optarg ;;
950
951  -nfp | --nfp | --nf)
952    # Obsolete; use --without-fp.
953    with_fp=no ;;
954
955  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956  | --no-cr | --no-c | -n)
957    no_create=yes ;;
958
959  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961    no_recursion=yes ;;
962
963  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965  | --oldin | --oldi | --old | --ol | --o)
966    ac_prev=oldincludedir ;;
967  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970    oldincludedir=$ac_optarg ;;
971
972  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973    ac_prev=prefix ;;
974  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975    prefix=$ac_optarg ;;
976
977  -program-prefix | --program-prefix | --program-prefi | --program-pref \
978  | --program-pre | --program-pr | --program-p)
979    ac_prev=program_prefix ;;
980  -program-prefix=* | --program-prefix=* | --program-prefi=* \
981  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982    program_prefix=$ac_optarg ;;
983
984  -program-suffix | --program-suffix | --program-suffi | --program-suff \
985  | --program-suf | --program-su | --program-s)
986    ac_prev=program_suffix ;;
987  -program-suffix=* | --program-suffix=* | --program-suffi=* \
988  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989    program_suffix=$ac_optarg ;;
990
991  -program-transform-name | --program-transform-name \
992  | --program-transform-nam | --program-transform-na \
993  | --program-transform-n | --program-transform- \
994  | --program-transform | --program-transfor \
995  | --program-transfo | --program-transf \
996  | --program-trans | --program-tran \
997  | --progr-tra | --program-tr | --program-t)
998    ac_prev=program_transform_name ;;
999  -program-transform-name=* | --program-transform-name=* \
1000  | --program-transform-nam=* | --program-transform-na=* \
1001  | --program-transform-n=* | --program-transform-=* \
1002  | --program-transform=* | --program-transfor=* \
1003  | --program-transfo=* | --program-transf=* \
1004  | --program-trans=* | --program-tran=* \
1005  | --progr-tra=* | --program-tr=* | --program-t=*)
1006    program_transform_name=$ac_optarg ;;
1007
1008  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009    ac_prev=pdfdir ;;
1010  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011    pdfdir=$ac_optarg ;;
1012
1013  -psdir | --psdir | --psdi | --psd | --ps)
1014    ac_prev=psdir ;;
1015  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016    psdir=$ac_optarg ;;
1017
1018  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019  | -silent | --silent | --silen | --sile | --sil)
1020    silent=yes ;;
1021
1022  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023    ac_prev=sbindir ;;
1024  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025  | --sbi=* | --sb=*)
1026    sbindir=$ac_optarg ;;
1027
1028  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030  | --sharedst | --shareds | --shared | --share | --shar \
1031  | --sha | --sh)
1032    ac_prev=sharedstatedir ;;
1033  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036  | --sha=* | --sh=*)
1037    sharedstatedir=$ac_optarg ;;
1038
1039  -site | --site | --sit)
1040    ac_prev=site ;;
1041  -site=* | --site=* | --sit=*)
1042    site=$ac_optarg ;;
1043
1044  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045    ac_prev=srcdir ;;
1046  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047    srcdir=$ac_optarg ;;
1048
1049  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050  | --syscon | --sysco | --sysc | --sys | --sy)
1051    ac_prev=sysconfdir ;;
1052  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054    sysconfdir=$ac_optarg ;;
1055
1056  -target | --target | --targe | --targ | --tar | --ta | --t)
1057    ac_prev=target_alias ;;
1058  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059    target_alias=$ac_optarg ;;
1060
1061  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062    verbose=yes ;;
1063
1064  -version | --version | --versio | --versi | --vers | -V)
1065    ac_init_version=: ;;
1066
1067  -with-* | --with-*)
1068    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069    # Reject names that are not valid shell variable names.
1070    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071      { echo "$as_me: error: invalid package name: $ac_package" >&2
1072   { (exit 1); exit 1; }; }
1073    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074    eval with_$ac_package=\$ac_optarg ;;
1075
1076  -without-* | --without-*)
1077    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078    # Reject names that are not valid shell variable names.
1079    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080      { echo "$as_me: error: invalid package name: $ac_package" >&2
1081   { (exit 1); exit 1; }; }
1082    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083    eval with_$ac_package=no ;;
1084
1085  --x)
1086    # Obsolete; use --with-x.
1087    with_x=yes ;;
1088
1089  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090  | --x-incl | --x-inc | --x-in | --x-i)
1091    ac_prev=x_includes ;;
1092  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094    x_includes=$ac_optarg ;;
1095
1096  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098    ac_prev=x_libraries ;;
1099  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101    x_libraries=$ac_optarg ;;
1102
1103  -*) { echo "$as_me: error: unrecognized option: $ac_option
1104Try \`$0 --help' for more information." >&2
1105   { (exit 1); exit 1; }; }
1106    ;;
1107
1108  *=*)
1109    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110    # Reject names that are not valid shell variable names.
1111    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113   { (exit 1); exit 1; }; }
1114    eval $ac_envvar=\$ac_optarg
1115    export $ac_envvar ;;
1116
1117  *)
1118    # FIXME: should be removed in autoconf 3.0.
1119    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123    ;;
1124
1125  esac
1126done
1127
1128if test -n "$ac_prev"; then
1129  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130  { echo "$as_me: error: missing argument to $ac_option" >&2
1131   { (exit 1); exit 1; }; }
1132fi
1133
1134# Be sure to have absolute directory names.
1135for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136                datadir sysconfdir sharedstatedir localstatedir includedir \
1137                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138                libdir localedir mandir
1139do
1140  eval ac_val=\$$ac_var
1141  case $ac_val in
1142    [\\/$]* | ?:[\\/]* )  continue;;
1143    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144  esac
1145  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146   { (exit 1); exit 1; }; }
1147done
1148
1149# There might be people who depend on the old broken behavior: `$host'
1150# used to hold the argument of --host etc.
1151# FIXME: To remove some day.
1152build=$build_alias
1153host=$host_alias
1154target=$target_alias
1155
1156# FIXME: To remove some day.
1157if test "x$host_alias" != x; then
1158  if test "x$build_alias" = x; then
1159    cross_compiling=maybe
1160    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161    If a cross compiler is detected then cross compile mode will be used." >&2
1162  elif test "x$build_alias" != "x$host_alias"; then
1163    cross_compiling=yes
1164  fi
1165fi
1166
1167ac_tool_prefix=
1168test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169
1170test "$silent" = yes && exec 6>/dev/null
1171
1172
1173ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174ac_ls_di=`ls -di .` &&
1175ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176  { echo "$as_me: error: Working directory cannot be determined" >&2
1177   { (exit 1); exit 1; }; }
1178test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179  { echo "$as_me: error: pwd does not report name of working directory" >&2
1180   { (exit 1); exit 1; }; }
1181
1182
1183# Find the source files, if location was not specified.
1184if test -z "$srcdir"; then
1185  ac_srcdir_defaulted=yes
1186  # Try the directory containing this script, then the parent directory.
1187  ac_confdir=`$as_dirname -- "$0" ||
1188$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189         X"$0" : 'X\(//\)[^/]' \| \
1190         X"$0" : 'X\(//\)$' \| \
1191         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192echo X"$0" |
1193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194            s//\1/
1195            q
1196          }
1197          /^X\(\/\/\)[^/].*/{
1198            s//\1/
1199            q
1200          }
1201          /^X\(\/\/\)$/{
1202            s//\1/
1203            q
1204          }
1205          /^X\(\/\).*/{
1206            s//\1/
1207            q
1208          }
1209          s/.*/./; q'`
1210  srcdir=$ac_confdir
1211  if test ! -r "$srcdir/$ac_unique_file"; then
1212    srcdir=..
1213  fi
1214else
1215  ac_srcdir_defaulted=no
1216fi
1217if test ! -r "$srcdir/$ac_unique_file"; then
1218  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220   { (exit 1); exit 1; }; }
1221fi
1222ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223ac_abs_confdir=`(
1224        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225   { (exit 1); exit 1; }; }
1226        pwd)`
1227# When building in place, set srcdir=.
1228if test "$ac_abs_confdir" = "$ac_pwd"; then
1229  srcdir=.
1230fi
1231# Remove unnecessary trailing slashes from srcdir.
1232# Double slashes in file names in object file debugging info
1233# mess up M-x gdb in Emacs.
1234case $srcdir in
1235*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236esac
1237for ac_var in $ac_precious_vars; do
1238  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239  eval ac_env_${ac_var}_value=\$${ac_var}
1240  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242done
1243
1244#
1245# Report the --help message.
1246#
1247if test "$ac_init_help" = "long"; then
1248  # Omit some internal or obsolete options to make the list less imposing.
1249  # This message is too long to be a string in the A/UX 3.1 sh.
1250  cat <<_ACEOF
1251\`configure' configures advance source to adapt to many kinds of systems.
1252
1253Usage: $0 [OPTION]... [VAR=VALUE]...
1254
1255To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256VAR=VALUE.  See below for descriptions of some of the useful variables.
1257
1258Defaults for the options are specified in brackets.
1259
1260Configuration:
1261  -h, --help              display this help and exit
1262      --help=short        display options specific to this package
1263      --help=recursive    display the short help of all the included packages
1264  -V, --version           display version information and exit
1265  -q, --quiet, --silent   do not print \`checking...' messages
1266      --cache-file=FILE   cache test results in FILE [disabled]
1267  -C, --config-cache      alias for \`--cache-file=config.cache'
1268  -n, --no-create         do not create output files
1269      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1270
1271Installation directories:
1272  --prefix=PREFIX         install architecture-independent files in PREFIX
1273                          [$ac_default_prefix]
1274  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1275                          [PREFIX]
1276
1277By default, \`make install' will install all the files in
1278\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1279an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280for instance \`--prefix=\$HOME'.
1281
1282For better control, use the options below.
1283
1284Fine tuning of the installation directories:
1285  --bindir=DIR           user executables [EPREFIX/bin]
1286  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1287  --libexecdir=DIR       program executables [EPREFIX/libexec]
1288  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1289  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1290  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1291  --libdir=DIR           object code libraries [EPREFIX/lib]
1292  --includedir=DIR       C header files [PREFIX/include]
1293  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1294  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1295  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1296  --infodir=DIR          info documentation [DATAROOTDIR/info]
1297  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1298  --mandir=DIR           man documentation [DATAROOTDIR/man]
1299  --docdir=DIR           documentation root [DATAROOTDIR/doc/advance]
1300  --htmldir=DIR          html documentation [DOCDIR]
1301  --dvidir=DIR           dvi documentation [DOCDIR]
1302  --pdfdir=DIR           pdf documentation [DOCDIR]
1303  --psdir=DIR            ps documentation [DOCDIR]
1304_ACEOF
1305
1306  cat <<\_ACEOF
1307
1308System types:
1309  --build=BUILD     configure for building on BUILD [guessed]
1310  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1311_ACEOF
1312fi
1313
1314if test -n "$ac_init_help"; then
1315  case $ac_init_help in
1316     short | recursive ) echo "Configuration of advance source:";;
1317   esac
1318  cat <<\_ACEOF
1319
1320Optional Features:
1321  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1322  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1323  --enable-debug          enable the test compilation without optimization and
1324                          with debug info. Only for developers. (default no)
1325  --enable-test           enable the test compilation without optimization.
1326                          Only for developers. (default no)
1327  --enable-static         enable static compilation. (default no)
1328  --enable-backtrace      enable the usage of backtrace (default auto)
1329  --enable-ucontexth      enable the usage of ucontext.h (default auto)
1330  --enable-asm            enable the Pentium assembler optimizations (default
1331                          auto)
1332  --enable-asm-mips3      enable the Pentium assembler MIPS3 emulator (default
1333                          auto)
1334  --enable-debugger       enable the emulator debugger (default no)
1335  --enable-zlib           enable the use of the zlib library. (default auto)
1336  --enable-expat          enable the use of the expat library. (default auto)
1337  --enable-svgalib        enable the use of the SVGALIB library. (default
1338                          auto)
1339  --enable-fb             enable the use of the Frame Buffer library. (default
1340                          auto)
1341  --enable-alsa           enable the use of the ALSA library. (default auto)
1342  --enable-oss            enable the use of the OSS library. (default auto)
1343  --enable-pthread        enable the use of the pthread library (default auto)
1344  --enable-slang          enable the use of the sLang library (default auto)
1345  --enable-ncurses        enable the use of the ncurses library (default auto)
1346  --enable-freetype       enable the use of the FreeType2 library. (default
1347                          auto)
1348  --enable-sdl            enable the use of the SDL library. (default auto)
1349  --enable-svgawin        enable the use of the SVGAWIN library. (default
1350                          auto)
1351  --enable-mrawinput      enable the use of the Windows Raw input mouse
1352                          interface. (default auto)
1353  --enable-mcpn           enable the use of the Windows CPN mouse interface.
1354                          (default auto)
1355  --enable-kraw           enable the use of the raw keyboard interface.
1356                          (default auto)
1357  --enable-jraw           enable the use of the raw joystick interface.
1358                          (default auto)
1359  --enable-mraw           enable the use of the raw mouse interface. (default
1360                          auto)
1361  --enable-mevent         enable the use of the event mouse interface.
1362                          (default auto)
1363  --enable-kevent         enable the use of the event keyboard interface.
1364                          (default auto)
1365  --enable-jevent         enable the use of the event joystick interface.
1366                          (default auto)
1367
1368Optional Packages:
1369  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1370  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1371  --with-emu              select the emulator to use: mame, mess, none
1372                          (default auto)
1373  --with-freetype-prefix=DIR
1374                          Prefix where FreeType2 is installed (optional)
1375  --with-sdl-prefix=DIR   Prefix where SDL is installed (optional)
1376
1377Some influential environment variables:
1378  CC          C compiler command
1379  CFLAGS      C compiler flags
1380  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1381              nonstandard directory <lib dir>
1382  LIBS        libraries to pass to the linker, e.g. -l<library>
1383  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1384              you have headers in a nonstandard directory <include dir>
1385  CXX         C++ compiler command
1386  CXXFLAGS    C++ compiler flags
1387  CPP         C preprocessor
1388
1389Use these variables to override the choices made by `configure' or to help
1390it to find libraries and programs with nonstandard names/locations.
1391
1392_ACEOF
1393ac_status=$?
1394fi
1395
1396if test "$ac_init_help" = "recursive"; then
1397  # If there are subdirs, report their specific --help.
1398  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399    test -d "$ac_dir" || continue
1400    ac_builddir=.
1401
1402case "$ac_dir" in
1403.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404*)
1405  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1406  # A ".." for each directory in $ac_dir_suffix.
1407  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1408  case $ac_top_builddir_sub in
1409  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411  esac ;;
1412esac
1413ac_abs_top_builddir=$ac_pwd
1414ac_abs_builddir=$ac_pwd$ac_dir_suffix
1415# for backward compatibility:
1416ac_top_builddir=$ac_top_build_prefix
1417
1418case $srcdir in
1419  .)  # We are building in place.
1420    ac_srcdir=.
1421    ac_top_srcdir=$ac_top_builddir_sub
1422    ac_abs_top_srcdir=$ac_pwd ;;
1423  [\\/]* | ?:[\\/]* )  # Absolute name.
1424    ac_srcdir=$srcdir$ac_dir_suffix;
1425    ac_top_srcdir=$srcdir
1426    ac_abs_top_srcdir=$srcdir ;;
1427  *) # Relative name.
1428    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429    ac_top_srcdir=$ac_top_build_prefix$srcdir
1430    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431esac
1432ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1433
1434    cd "$ac_dir" || { ac_status=$?; continue; }
1435    # Check for guested configure.
1436    if test -f "$ac_srcdir/configure.gnu"; then
1437      echo &&
1438      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439    elif test -f "$ac_srcdir/configure"; then
1440      echo &&
1441      $SHELL "$ac_srcdir/configure" --help=recursive
1442    else
1443      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444    fi || ac_status=$?
1445    cd "$ac_pwd" || { ac_status=$?; break; }
1446  done
1447fi
1448
1449test -n "$ac_init_help" && exit $ac_status
1450if $ac_init_version; then
1451  cat <<\_ACEOF
1452advance configure source
1453generated by GNU Autoconf 2.61
1454
1455Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14562002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1457This configure script is free software; the Free Software Foundation
1458gives unlimited permission to copy, distribute and modify it.
1459
1460Copyright 2005 Andrea Mazzoleni
1461_ACEOF
1462  exit
1463fi
1464cat >config.log <<_ACEOF
1465This file contains any messages produced by compilers while
1466running configure, to aid debugging if configure makes a mistake.
1467
1468It was created by advance $as_me source, which was
1469generated by GNU Autoconf 2.61.  Invocation command line was
1470
1471  $ $0 $@
1472
1473_ACEOF
1474exec 5>>config.log
1475{
1476cat <<_ASUNAME
1477## --------- ##
1478## Platform. ##
1479## --------- ##
1480
1481hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486
1487/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1489
1490/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1491/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1492/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1494/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1495/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1496/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1497
1498_ASUNAME
1499
1500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501for as_dir in $PATH
1502do
1503  IFS=$as_save_IFS
1504  test -z "$as_dir" && as_dir=.
1505  echo "PATH: $as_dir"
1506done
1507IFS=$as_save_IFS
1508
1509} >&5
1510
1511cat >&5 <<_ACEOF
1512
1513
1514## ----------- ##
1515## Core tests. ##
1516## ----------- ##
1517
1518_ACEOF
1519
1520
1521# Keep a trace of the command line.
1522# Strip out --no-create and --no-recursion so they do not pile up.
1523# Strip out --silent because we don't want to record it for future runs.
1524# Also quote any args containing shell meta-characters.
1525# Make two passes to allow for proper duplicate-argument suppression.
1526ac_configure_args=
1527ac_configure_args0=
1528ac_configure_args1=
1529ac_must_keep_next=false
1530for ac_pass in 1 2
1531do
1532  for ac_arg
1533  do
1534    case $ac_arg in
1535    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1536    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537    | -silent | --silent | --silen | --sile | --sil)
1538      continue ;;
1539    *\'*)
1540      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541    esac
1542    case $ac_pass in
1543    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544    2)
1545      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1546      if test $ac_must_keep_next = true; then
1547        ac_must_keep_next=false # Got value, back to normal.
1548      else
1549        case $ac_arg in
1550          *=* | --config-cache | -C | -disable-* | --disable-* \
1551          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1552          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1553          | -with-* | --with-* | -without-* | --without-* | --x)
1554            case "$ac_configure_args0 " in
1555              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556            esac
1557            ;;
1558          -* ) ac_must_keep_next=true ;;
1559        esac
1560      fi
1561      ac_configure_args="$ac_configure_args '$ac_arg'"
1562      ;;
1563    esac
1564  done
1565done
1566$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1567$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568
1569# When interrupted or exit'd, cleanup temporary files, and complete
1570# config.log.  We remove comments because anyway the quotes in there
1571# would cause problems or look ugly.
1572# WARNING: Use '\'' to represent an apostrophe within the trap.
1573# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574trap 'exit_status=$?
1575  # Save into config.log some information that might help in debugging.
1576  {
1577    echo
1578
1579    cat <<\_ASBOX
1580## ---------------- ##
1581## Cache variables. ##
1582## ---------------- ##
1583_ASBOX
1584    echo
1585    # The following way of writing the cache mishandles newlines in values,
1586(
1587  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588    eval ac_val=\$$ac_var
1589    case $ac_val in #(
1590    *${as_nl}*)
1591      case $ac_var in #(
1592      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1594      esac
1595      case $ac_var in #(
1596      _ | IFS | as_nl) ;; #(
1597      *) $as_unset $ac_var ;;
1598      esac ;;
1599    esac
1600  done
1601  (set) 2>&1 |
1602    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603    *${as_nl}ac_space=\ *)
1604      sed -n \
1605        "s/'\''/'\''\\\\'\'''\''/g;
1606          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1607      ;; #(
1608    *)
1609      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610      ;;
1611    esac |
1612    sort
1613)
1614    echo
1615
1616    cat <<\_ASBOX
1617## ----------------- ##
1618## Output variables. ##
1619## ----------------- ##
1620_ASBOX
1621    echo
1622    for ac_var in $ac_subst_vars
1623    do
1624      eval ac_val=\$$ac_var
1625      case $ac_val in
1626      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627      esac
1628      echo "$ac_var='\''$ac_val'\''"
1629    done | sort
1630    echo
1631
1632    if test -n "$ac_subst_files"; then
1633      cat <<\_ASBOX
1634## ------------------- ##
1635## File substitutions. ##
1636## ------------------- ##
1637_ASBOX
1638      echo
1639      for ac_var in $ac_subst_files
1640      do
1641        eval ac_val=\$$ac_var
1642        case $ac_val in
1643        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644        esac
1645        echo "$ac_var='\''$ac_val'\''"
1646      done | sort
1647      echo
1648    fi
1649
1650    if test -s confdefs.h; then
1651      cat <<\_ASBOX
1652## ----------- ##
1653## confdefs.h. ##
1654## ----------- ##
1655_ASBOX
1656      echo
1657      cat confdefs.h
1658      echo
1659    fi
1660    test "$ac_signal" != 0 &&
1661      echo "$as_me: caught signal $ac_signal"
1662    echo "$as_me: exit $exit_status"
1663  } >&5
1664  rm -f core *.core core.conftest.* &&
1665    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1666    exit $exit_status
1667' 0
1668for ac_signal in 1 2 13 15; do
1669  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1670done
1671ac_signal=0
1672
1673# confdefs.h avoids OS command line length limits that DEFS can exceed.
1674rm -f -r conftest* confdefs.h
1675
1676# Predefined preprocessor variables.
1677
1678cat >>confdefs.h <<_ACEOF
1679#define PACKAGE_NAME "$PACKAGE_NAME"
1680_ACEOF
1681
1682
1683cat >>confdefs.h <<_ACEOF
1684#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1685_ACEOF
1686
1687
1688cat >>confdefs.h <<_ACEOF
1689#define PACKAGE_VERSION "$PACKAGE_VERSION"
1690_ACEOF
1691
1692
1693cat >>confdefs.h <<_ACEOF
1694#define PACKAGE_STRING "$PACKAGE_STRING"
1695_ACEOF
1696
1697
1698cat >>confdefs.h <<_ACEOF
1699#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1700_ACEOF
1701
1702
1703# Let the site file select an alternate cache file if it wants to.
1704# Prefer explicitly selected file to automatically selected ones.
1705if test -n "$CONFIG_SITE"; then
1706  set x "$CONFIG_SITE"
1707elif test "x$prefix" != xNONE; then
1708  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709else
1710  set x "$ac_default_prefix/share/config.site" \
1711        "$ac_default_prefix/etc/config.site"
1712fi
1713shift
1714for ac_site_file
1715do
1716  if test -r "$ac_site_file"; then
1717    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718echo "$as_me: loading site script $ac_site_file" >&6;}
1719    sed 's/^/| /' "$ac_site_file" >&5
1720    . "$ac_site_file"
1721  fi
1722done
1723
1724if test -r "$cache_file"; then
1725  # Some versions of bash will fail to source /dev/null (special
1726  # files actually), so we avoid doing that.
1727  if test -f "$cache_file"; then
1728    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729echo "$as_me: loading cache $cache_file" >&6;}
1730    case $cache_file in
1731      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1732      *)                      . "./$cache_file";;
1733    esac
1734  fi
1735else
1736  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737echo "$as_me: creating cache $cache_file" >&6;}
1738  >$cache_file
1739fi
1740
1741# Check that the precious variables saved in the cache have kept the same
1742# value.
1743ac_cache_corrupted=false
1744for ac_var in $ac_precious_vars; do
1745  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1746  eval ac_new_set=\$ac_env_${ac_var}_set
1747  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1748  eval ac_new_val=\$ac_env_${ac_var}_value
1749  case $ac_old_set,$ac_new_set in
1750    set,)
1751      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1752echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1753      ac_cache_corrupted=: ;;
1754    ,set)
1755      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1756echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1757      ac_cache_corrupted=: ;;
1758    ,);;
1759    *)
1760      if test "x$ac_old_val" != "x$ac_new_val"; then
1761        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1762echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1763        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1764echo "$as_me:   former value:  $ac_old_val" >&2;}
1765        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1766echo "$as_me:   current value: $ac_new_val" >&2;}
1767        ac_cache_corrupted=:
1768      fi;;
1769  esac
1770  # Pass precious variables to config.status.
1771  if test "$ac_new_set" = set; then
1772    case $ac_new_val in
1773    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1774    *) ac_arg=$ac_var=$ac_new_val ;;
1775    esac
1776    case " $ac_configure_args " in
1777      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1778      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1779    esac
1780  fi
1781done
1782if $ac_cache_corrupted; then
1783  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1784echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1785  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1786echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1787   { (exit 1); exit 1; }; }
1788fi
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814ac_ext=c
1815ac_cpp='$CPP $CPPFLAGS'
1816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819
1820
1821ac_config_headers="$ac_config_headers advance/lib/config.h:advance/lib/config.hin"
1822
1823ac_aux_dir=
1824for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1825  if test -f "$ac_dir/install-sh"; then
1826    ac_aux_dir=$ac_dir
1827    ac_install_sh="$ac_aux_dir/install-sh -c"
1828    break
1829  elif test -f "$ac_dir/install.sh"; then
1830    ac_aux_dir=$ac_dir
1831    ac_install_sh="$ac_aux_dir/install.sh -c"
1832    break
1833  elif test -f "$ac_dir/shtool"; then
1834    ac_aux_dir=$ac_dir
1835    ac_install_sh="$ac_aux_dir/shtool install -c"
1836    break
1837  fi
1838done
1839if test -z "$ac_aux_dir"; then
1840  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1841echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1842   { (exit 1); exit 1; }; }
1843fi
1844
1845# These three variables are undocumented and unsupported,
1846# and are intended to be withdrawn in a future Autoconf release.
1847# They can cause serious problems if a builder's source tree is in a directory
1848# whose full name contains unusual characters.
1849ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1850ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1851ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1852
1853
1854# Make sure we can run config.sub.
1855$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1856  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1857echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1858   { (exit 1); exit 1; }; }
1859
1860{ echo "$as_me:$LINENO: checking build system type" >&5
1861echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1862if test "${ac_cv_build+set}" = set; then
1863  echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
1865  ac_build_alias=$build_alias
1866test "x$ac_build_alias" = x &&
1867  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1868test "x$ac_build_alias" = x &&
1869  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1870echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1871   { (exit 1); exit 1; }; }
1872ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1873  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1874echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1875   { (exit 1); exit 1; }; }
1876
1877fi
1878{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1879echo "${ECHO_T}$ac_cv_build" >&6; }
1880case $ac_cv_build in
1881*-*-*) ;;
1882*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1883echo "$as_me: error: invalid value of canonical build" >&2;}
1884   { (exit 1); exit 1; }; };;
1885esac
1886build=$ac_cv_build
1887ac_save_IFS=$IFS; IFS='-'
1888set x $ac_cv_build
1889shift
1890build_cpu=$1
1891build_vendor=$2
1892shift; shift
1893# Remember, the first character of IFS is used to create $*,
1894# except with old shells:
1895build_os=$*
1896IFS=$ac_save_IFS
1897case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1898
1899
1900{ echo "$as_me:$LINENO: checking host system type" >&5
1901echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1902if test "${ac_cv_host+set}" = set; then
1903  echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905  if test "x$host_alias" = x; then
1906  ac_cv_host=$ac_cv_build
1907else
1908  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1909    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1910echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1911   { (exit 1); exit 1; }; }
1912fi
1913
1914fi
1915{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1916echo "${ECHO_T}$ac_cv_host" >&6; }
1917case $ac_cv_host in
1918*-*-*) ;;
1919*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1920echo "$as_me: error: invalid value of canonical host" >&2;}
1921   { (exit 1); exit 1; }; };;
1922esac
1923host=$ac_cv_host
1924ac_save_IFS=$IFS; IFS='-'
1925set x $ac_cv_host
1926shift
1927host_cpu=$1
1928host_vendor=$2
1929shift; shift
1930# Remember, the first character of IFS is used to create $*,
1931# except with old shells:
1932host_os=$*
1933IFS=$ac_save_IFS
1934case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1935
1936
1937
1938
1939
1940# Checks for system.
1941case "$host" in
1942        *-*-linux*)
1943                ac_system=unix
1944                ac_host=linux
1945                ac_host_cflags=
1946                ac_host_ldflags=
1947                ASMFLAGS="-f elf"
1948
1949                CFLAGS_FOR_BUILD="-O0 -DUSE_COMPILER_GNUC -DUSE_OBJ_ELF -DUSE_OS_UNIX"
1950
1951
1952        ;;
1953        *-*-darwin*)
1954                ac_system=unix
1955                ac_host=darwin
1956                ac_host_cflags=-no-cpp-precomp
1957                ac_host_ldflags=
1958                ASMFLAGS=""
1959
1960                CFLAGS_FOR_BUILD="-O0"
1961
1962
1963        ;;
1964        *-*-cygwin* | *-*-mingw32*)
1965                ac_system=windows
1966                ac_host=windows
1967                ac_host_cflags=
1968                ac_host_ldflags=
1969                ASMFLAGS="-f coff"
1970
1971                CFLAGS_FOR_BUILD="-O0 -DUSE_COMPILER_GNUC -DUSE_OBJ_COFF -DUSE_OS_WINDOWS"
1972
1973                EXE=.exe
1974
1975        ;;
1976        *-*-msdos*)
1977                ac_system=dos
1978                ac_host=dos
1979                ac_host_cflags=
1980                ac_host_ldflags=
1981                ASMFLAGS="-f coff"
1982
1983                CFLAGS_FOR_BUILD="-O0 -DUSE_COMPILER_GNUC -DUSE_OBJ_COFF -DUSE_OS_DOS"
1984
1985                EXE=.exe
1986
1987        ;;
1988        *)
1989                ac_system=unix
1990                ac_host=generic
1991                ac_host_cflags=
1992                ac_host_ldflags=
1993                ASMFLAGS=""
1994
1995                CFLAGS_FOR_BUILD="-O0"
1996
1997
1998        ;;
1999esac
2000CONF_SYSTEM=$ac_system
2001
2002CONF_HOST=$ac_host
2003
2004
2005case "$build" in
2006        *-*-linux*)
2007                ac_build=linux
2008
2009        ;;
2010        *-*-darwin*)
2011                ac_build=darwin
2012
2013        ;;
2014        *-*-cygwin* | *-*-mingw32*)
2015                ac_build=windows
2016                EXE_FOR_BUILD=.exe
2017
2018        ;;
2019        *-*-msdos*)
2020                ac_build=dos
2021                EXE_FOR_BUILD=.exe
2022
2023        ;;
2024        *)
2025                ac_build=unix
2026
2027        ;;
2028esac
2029CONF_BUILD=$ac_build
2030
2031
2032if test -z "$CFLAGS" ; then
2033        ac_auto_cflags=yes
2034else
2035        ac_auto_cflags=no
2036fi
2037if test -z "$LDFLAGS" ; then
2038        ac_auto_ldflags=yes
2039else
2040        ac_auto_ldflags=no
2041fi
2042
2043# Checks for programs.
2044ac_ext=c
2045ac_cpp='$CPP $CPPFLAGS'
2046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049if test -n "$ac_tool_prefix"; then
2050  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2051set dummy ${ac_tool_prefix}gcc; ac_word=$2
2052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054if test "${ac_cv_prog_CC+set}" = set; then
2055  echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057  if test -n "$CC"; then
2058  ac_cv_prog_CC="$CC" # Let the user override the test.
2059else
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063  IFS=$as_save_IFS
2064  test -z "$as_dir" && as_dir=.
2065  for ac_exec_ext in '' $ac_executable_extensions; do
2066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2068    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069    break 2
2070  fi
2071done
2072done
2073IFS=$as_save_IFS
2074
2075fi
2076fi
2077CC=$ac_cv_prog_CC
2078if test -n "$CC"; then
2079  { echo "$as_me:$LINENO: result: $CC" >&5
2080echo "${ECHO_T}$CC" >&6; }
2081else
2082  { echo "$as_me:$LINENO: result: no" >&5
2083echo "${ECHO_T}no" >&6; }
2084fi
2085
2086
2087fi
2088if test -z "$ac_cv_prog_CC"; then
2089  ac_ct_CC=$CC
2090  # Extract the first word of "gcc", so it can be a program name with args.
2091set dummy gcc; ac_word=$2
2092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095  echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
2097  if test -n "$ac_ct_CC"; then
2098  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2099else
2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103  IFS=$as_save_IFS
2104  test -z "$as_dir" && as_dir=.
2105  for ac_exec_ext in '' $ac_executable_extensions; do
2106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107    ac_cv_prog_ac_ct_CC="gcc"
2108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109    break 2
2110  fi
2111done
2112done
2113IFS=$as_save_IFS
2114
2115fi
2116fi
2117ac_ct_CC=$ac_cv_prog_ac_ct_CC
2118if test -n "$ac_ct_CC"; then
2119  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2120echo "${ECHO_T}$ac_ct_CC" >&6; }
2121else
2122  { echo "$as_me:$LINENO: result: no" >&5
2123echo "${ECHO_T}no" >&6; }
2124fi
2125
2126  if test "x$ac_ct_CC" = x; then
2127    CC=""
2128  else
2129    case $cross_compiling:$ac_tool_warned in
2130yes:)
2131{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2132whose name does not start with the host triplet.  If you think this
2133configuration is useful to you, please write to autoconf@gnu.org." >&5
2134echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2135whose name does not start with the host triplet.  If you think this
2136configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2137ac_tool_warned=yes ;;
2138esac
2139    CC=$ac_ct_CC
2140  fi
2141else
2142  CC="$ac_cv_prog_CC"
2143fi
2144
2145if test -z "$CC"; then
2146          if test -n "$ac_tool_prefix"; then
2147    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2148set dummy ${ac_tool_prefix}cc; ac_word=$2
2149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151if test "${ac_cv_prog_CC+set}" = set; then
2152  echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
2154  if test -n "$CC"; then
2155  ac_cv_prog_CC="$CC" # Let the user override the test.
2156else
2157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158for as_dir in $PATH
2159do
2160  IFS=$as_save_IFS
2161  test -z "$as_dir" && as_dir=.
2162  for ac_exec_ext in '' $ac_executable_extensions; do
2163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164    ac_cv_prog_CC="${ac_tool_prefix}cc"
2165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166    break 2
2167  fi
2168done
2169done
2170IFS=$as_save_IFS
2171
2172fi
2173fi
2174CC=$ac_cv_prog_CC
2175if test -n "$CC"; then
2176  { echo "$as_me:$LINENO: result: $CC" >&5
2177echo "${ECHO_T}$CC" >&6; }
2178else
2179  { echo "$as_me:$LINENO: result: no" >&5
2180echo "${ECHO_T}no" >&6; }
2181fi
2182
2183
2184  fi
2185fi
2186if test -z "$CC"; then
2187  # Extract the first word of "cc", so it can be a program name with args.
2188set dummy cc; ac_word=$2
2189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191if test "${ac_cv_prog_CC+set}" = set; then
2192  echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
2194  if test -n "$CC"; then
2195  ac_cv_prog_CC="$CC" # Let the user override the test.
2196else
2197  ac_prog_rejected=no
2198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199for as_dir in $PATH
2200do
2201  IFS=$as_save_IFS
2202  test -z "$as_dir" && as_dir=.
2203  for ac_exec_ext in '' $ac_executable_extensions; do
2204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2205    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2206       ac_prog_rejected=yes
2207       continue
2208     fi
2209    ac_cv_prog_CC="cc"
2210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211    break 2
2212  fi
2213done
2214done
2215IFS=$as_save_IFS
2216
2217if test $ac_prog_rejected = yes; then
2218  # We found a bogon in the path, so make sure we never use it.
2219  set dummy $ac_cv_prog_CC
2220  shift
2221  if test $# != 0; then
2222    # We chose a different compiler from the bogus one.
2223    # However, it has the same basename, so the bogon will be chosen
2224    # first if we set CC to just the basename; use the full file name.
2225    shift
2226    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2227  fi
2228fi
2229fi
2230fi
2231CC=$ac_cv_prog_CC
2232if test -n "$CC"; then
2233  { echo "$as_me:$LINENO: result: $CC" >&5
2234echo "${ECHO_T}$CC" >&6; }
2235else
2236  { echo "$as_me:$LINENO: result: no" >&5
2237echo "${ECHO_T}no" >&6; }
2238fi
2239
2240
2241fi
2242if test -z "$CC"; then
2243  if test -n "$ac_tool_prefix"; then
2244  for ac_prog in cl.exe
2245  do
2246    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2247set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2248{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2250if test "${ac_cv_prog_CC+set}" = set; then
2251  echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253  if test -n "$CC"; then
2254  ac_cv_prog_CC="$CC" # Let the user override the test.
2255else
2256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257for as_dir in $PATH
2258do
2259  IFS=$as_save_IFS
2260  test -z "$as_dir" && as_dir=.
2261  for ac_exec_ext in '' $ac_executable_extensions; do
2262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2264    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265    break 2
2266  fi
2267done
2268done
2269IFS=$as_save_IFS
2270
2271fi
2272fi
2273CC=$ac_cv_prog_CC
2274if test -n "$CC"; then
2275  { echo "$as_me:$LINENO: result: $CC" >&5
2276echo "${ECHO_T}$CC" >&6; }
2277else
2278  { echo "$as_me:$LINENO: result: no" >&5
2279echo "${ECHO_T}no" >&6; }
2280fi
2281
2282
2283    test -n "$CC" && break
2284  done
2285fi
2286if test -z "$CC"; then
2287  ac_ct_CC=$CC
2288  for ac_prog in cl.exe
2289do
2290  # Extract the first word of "$ac_prog", so it can be a program name with args.
2291set dummy $ac_prog; ac_word=$2
2292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2295  echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297  if test -n "$ac_ct_CC"; then
2298  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303  IFS=$as_save_IFS
2304  test -z "$as_dir" && as_dir=.
2305  for ac_exec_ext in '' $ac_executable_extensions; do
2306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307    ac_cv_prog_ac_ct_CC="$ac_prog"
2308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309    break 2
2310  fi
2311done
2312done
2313IFS=$as_save_IFS
2314
2315fi
2316fi
2317ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318if test -n "$ac_ct_CC"; then
2319  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2320echo "${ECHO_T}$ac_ct_CC" >&6; }
2321else
2322  { echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6; }
2324fi
2325
2326
2327  test -n "$ac_ct_CC" && break
2328done
2329
2330  if test "x$ac_ct_CC" = x; then
2331    CC=""
2332  else
2333    case $cross_compiling:$ac_tool_warned in
2334yes:)
2335{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2336whose name does not start with the host triplet.  If you think this
2337configuration is useful to you, please write to autoconf@gnu.org." >&5
2338echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2339whose name does not start with the host triplet.  If you think this
2340configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2341ac_tool_warned=yes ;;
2342esac
2343    CC=$ac_ct_CC
2344  fi
2345fi
2346
2347fi
2348
2349
2350test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2351See \`config.log' for more details." >&5
2352echo "$as_me: error: no acceptable C compiler found in \$PATH
2353See \`config.log' for more details." >&2;}
2354   { (exit 1); exit 1; }; }
2355
2356# Provide some information about the compiler.
2357echo "$as_me:$LINENO: checking for C compiler version" >&5
2358ac_compiler=`set X $ac_compile; echo $2`
2359{ (ac_try="$ac_compiler --version >&5"
2360case "(($ac_try" in
2361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362  *) ac_try_echo=$ac_try;;
2363esac
2364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365  (eval "$ac_compiler --version >&5") 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }
2369{ (ac_try="$ac_compiler -v >&5"
2370case "(($ac_try" in
2371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372  *) ac_try_echo=$ac_try;;
2373esac
2374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375  (eval "$ac_compiler -v >&5") 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }
2379{ (ac_try="$ac_compiler -V >&5"
2380case "(($ac_try" in
2381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382  *) ac_try_echo=$ac_try;;
2383esac
2384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385  (eval "$ac_compiler -V >&5") 2>&5
2386  ac_status=$?
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); }
2389
2390cat >conftest.$ac_ext <<_ACEOF
2391/* confdefs.h.  */
2392_ACEOF
2393cat confdefs.h >>conftest.$ac_ext
2394cat >>conftest.$ac_ext <<_ACEOF
2395/* end confdefs.h.  */
2396
2397int
2398main ()
2399{
2400
2401  ;
2402  return 0;
2403}
2404_ACEOF
2405ac_clean_files_save=$ac_clean_files
2406ac_clean_files="$ac_clean_files a.out a.exe b.out"
2407# Try to create an executable without -o first, disregard a.out.
2408# It will help us diagnose broken compilers, and finding out an intuition
2409# of exeext.
2410{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2411echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2412ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2413#
2414# List of possible output files, starting from the most likely.
2415# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2416# only as a last resort.  b.out is created by i960 compilers.
2417ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2418#
2419# The IRIX 6 linker writes into existing files which may not be
2420# executable, retaining their permissions.  Remove them first so a
2421# subsequent execution test works.
2422ac_rmfiles=
2423for ac_file in $ac_files
2424do
2425  case $ac_file in
2426    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2427    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2428  esac
2429done
2430rm -f $ac_rmfiles
2431
2432if { (ac_try="$ac_link_default"
2433case "(($ac_try" in
2434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435  *) ac_try_echo=$ac_try;;
2436esac
2437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2438  (eval "$ac_link_default") 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; then
2442  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2443# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2444# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2445# so that the user can short-circuit this test for compilers unknown to
2446# Autoconf.
2447for ac_file in $ac_files ''
2448do
2449  test -f "$ac_file" || continue
2450  case $ac_file in
2451    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2452        ;;
2453    [ab].out )
2454        # We found the default executable, but exeext='' is most
2455        # certainly right.
2456        break;;
2457    *.* )
2458        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2459        then :; else
2460           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2461        fi
2462        # We set ac_cv_exeext here because the later test for it is not
2463        # safe: cross compilers may not add the suffix if given an `-o'
2464        # argument, so we may need to know it at that point already.
2465        # Even if this section looks crufty: it has the advantage of
2466        # actually working.
2467        break;;
2468    * )
2469        break;;
2470  esac
2471done
2472test "$ac_cv_exeext" = no && ac_cv_exeext=
2473
2474else
2475  ac_file=''
2476fi
2477
2478{ echo "$as_me:$LINENO: result: $ac_file" >&5
2479echo "${ECHO_T}$ac_file" >&6; }
2480if test -z "$ac_file"; then
2481  echo "$as_me: failed program was:" >&5
2482sed 's/^/| /' conftest.$ac_ext >&5
2483
2484{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2485See \`config.log' for more details." >&5
2486echo "$as_me: error: C compiler cannot create executables
2487See \`config.log' for more details." >&2;}
2488   { (exit 77); exit 77; }; }
2489fi
2490
2491ac_exeext=$ac_cv_exeext
2492
2493# Check that the compiler produces executables we can run.  If not, either
2494# the compiler is broken, or we cross compile.
2495{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2496echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2497# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2498# If not cross compiling, check that we can run a simple program.
2499if test "$cross_compiling" != yes; then
2500  if { ac_try='./$ac_file'
2501  { (case "(($ac_try" in
2502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503  *) ac_try_echo=$ac_try;;
2504esac
2505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506  (eval "$ac_try") 2>&5
2507  ac_status=$?
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); }; }; then
2510    cross_compiling=no
2511  else
2512    if test "$cross_compiling" = maybe; then
2513        cross_compiling=yes
2514    else
2515        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2516If you meant to cross compile, use \`--host'.
2517See \`config.log' for more details." >&5
2518echo "$as_me: error: cannot run C compiled programs.
2519If you meant to cross compile, use \`--host'.
2520See \`config.log' for more details." >&2;}
2521   { (exit 1); exit 1; }; }
2522    fi
2523  fi
2524fi
2525{ echo "$as_me:$LINENO: result: yes" >&5
2526echo "${ECHO_T}yes" >&6; }
2527
2528rm -f a.out a.exe conftest$ac_cv_exeext b.out
2529ac_clean_files=$ac_clean_files_save
2530# Check that the compiler produces executables we can run.  If not, either
2531# the compiler is broken, or we cross compile.
2532{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2533echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2534{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2535echo "${ECHO_T}$cross_compiling" >&6; }
2536
2537{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2538echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2539if { (ac_try="$ac_link"
2540case "(($ac_try" in
2541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542  *) ac_try_echo=$ac_try;;
2543esac
2544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545  (eval "$ac_link") 2>&5
2546  ac_status=$?
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); }; then
2549  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2550# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2551# work properly (i.e., refer to `conftest.exe'), while it won't with
2552# `rm'.
2553for ac_file in conftest.exe conftest conftest.*; do
2554  test -f "$ac_file" || continue
2555  case $ac_file in
2556    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2557    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2558          break;;
2559    * ) break;;
2560  esac
2561done
2562else
2563  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2564See \`config.log' for more details." >&5
2565echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2566See \`config.log' for more details." >&2;}
2567   { (exit 1); exit 1; }; }
2568fi
2569
2570rm -f conftest$ac_cv_exeext
2571{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2572echo "${ECHO_T}$ac_cv_exeext" >&6; }
2573
2574rm -f conftest.$ac_ext
2575EXEEXT=$ac_cv_exeext
2576ac_exeext=$EXEEXT
2577{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2578echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2579if test "${ac_cv_objext+set}" = set; then
2580  echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
2582  cat >conftest.$ac_ext <<_ACEOF
2583/* confdefs.h.  */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h.  */
2588
2589int
2590main ()
2591{
2592
2593  ;
2594  return 0;
2595}
2596_ACEOF
2597rm -f conftest.o conftest.obj
2598if { (ac_try="$ac_compile"
2599case "(($ac_try" in
2600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601  *) ac_try_echo=$ac_try;;
2602esac
2603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604  (eval "$ac_compile") 2>&5
2605  ac_status=$?
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); }; then
2608  for ac_file in conftest.o conftest.obj conftest.*; do
2609  test -f "$ac_file" || continue;
2610  case $ac_file in
2611    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2612    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2613       break;;
2614  esac
2615done
2616else
2617  echo "$as_me: failed program was:" >&5
2618sed 's/^/| /' conftest.$ac_ext >&5
2619
2620{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2621See \`config.log' for more details." >&5
2622echo "$as_me: error: cannot compute suffix of object files: cannot compile
2623See \`config.log' for more details." >&2;}
2624   { (exit 1); exit 1; }; }
2625fi
2626
2627rm -f conftest.$ac_cv_objext conftest.$ac_ext
2628fi
2629{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2630echo "${ECHO_T}$ac_cv_objext" >&6; }
2631OBJEXT=$ac_cv_objext
2632ac_objext=$OBJEXT
2633{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2634echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2635if test "${ac_cv_c_compiler_gnu+set}" = set; then
2636  echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
2638  cat >conftest.$ac_ext <<_ACEOF
2639/* confdefs.h.  */
2640_ACEOF
2641cat confdefs.h >>conftest.$ac_ext
2642cat >>conftest.$ac_ext <<_ACEOF
2643/* end confdefs.h.  */
2644
2645int
2646main ()
2647{
2648#ifndef __GNUC__
2649       choke me
2650#endif
2651
2652  ;
2653  return 0;
2654}
2655_ACEOF
2656rm -f conftest.$ac_objext
2657if { (ac_try="$ac_compile"
2658case "(($ac_try" in
2659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660  *) ac_try_echo=$ac_try;;
2661esac
2662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663  (eval "$ac_compile") 2>conftest.er1
2664  ac_status=$?
2665  grep -v '^ *+' conftest.er1 >conftest.err
2666  rm -f conftest.er1
2667  cat conftest.err >&5
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); } && {
2670         test -z "$ac_c_werror_flag" ||
2671         test ! -s conftest.err
2672       } && test -s conftest.$ac_objext; then
2673  ac_compiler_gnu=yes
2674else
2675  echo "$as_me: failed program was:" >&5
2676sed 's/^/| /' conftest.$ac_ext >&5
2677
2678        ac_compiler_gnu=no
2679fi
2680
2681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682ac_cv_c_compiler_gnu=$ac_compiler_gnu
2683
2684fi
2685{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2686echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2687GCC=`test $ac_compiler_gnu = yes && echo yes`
2688ac_test_CFLAGS=${CFLAGS+set}
2689ac_save_CFLAGS=$CFLAGS
2690{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2691echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2692if test "${ac_cv_prog_cc_g+set}" = set; then
2693  echo $ECHO_N "(cached) $ECHO_C" >&6
2694else
2695  ac_save_c_werror_flag=$ac_c_werror_flag
2696   ac_c_werror_flag=yes
2697   ac_cv_prog_cc_g=no
2698   CFLAGS="-g"
2699   cat >conftest.$ac_ext <<_ACEOF
2700/* confdefs.h.  */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h.  */
2705
2706int
2707main ()
2708{
2709
2710  ;
2711  return 0;
2712}
2713_ACEOF
2714rm -f conftest.$ac_objext
2715if { (ac_try="$ac_compile"
2716case "(($ac_try" in
2717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718  *) ac_try_echo=$ac_try;;
2719esac
2720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721  (eval "$ac_compile") 2>conftest.er1
2722  ac_status=$?
2723  grep -v '^ *+' conftest.er1 >conftest.err
2724  rm -f conftest.er1
2725  cat conftest.err >&5
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); } && {
2728         test -z "$ac_c_werror_flag" ||
2729         test ! -s conftest.err
2730       } && test -s conftest.$ac_objext; then
2731  ac_cv_prog_cc_g=yes
2732else
2733  echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736        CFLAGS=""
2737      cat >conftest.$ac_ext <<_ACEOF
2738/* confdefs.h.  */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
2742/* end confdefs.h.  */
2743
2744int
2745main ()
2746{
2747
2748  ;
2749  return 0;
2750}
2751_ACEOF
2752rm -f conftest.$ac_objext
2753if { (ac_try="$ac_compile"
2754case "(($ac_try" in
2755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756  *) ac_try_echo=$ac_try;;
2757esac
2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759  (eval "$ac_compile") 2>conftest.er1
2760  ac_status=$?
2761  grep -v '^ *+' conftest.er1 >conftest.err
2762  rm -f conftest.er1
2763  cat conftest.err >&5
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); } && {
2766         test -z "$ac_c_werror_flag" ||
2767         test ! -s conftest.err
2768       } && test -s conftest.$ac_objext; then
2769  :
2770else
2771  echo "$as_me: failed program was:" >&5
2772sed 's/^/| /' conftest.$ac_ext >&5
2773
2774        ac_c_werror_flag=$ac_save_c_werror_flag
2775         CFLAGS="-g"
2776         cat >conftest.$ac_ext <<_ACEOF
2777/* confdefs.h.  */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
2781/* end confdefs.h.  */
2782
2783int
2784main ()
2785{
2786
2787  ;
2788  return 0;
2789}
2790_ACEOF
2791rm -f conftest.$ac_objext
2792if { (ac_try="$ac_compile"
2793case "(($ac_try" in
2794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795  *) ac_try_echo=$ac_try;;
2796esac
2797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798  (eval "$ac_compile") 2>conftest.er1
2799  ac_status=$?
2800  grep -v '^ *+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } && {
2805         test -z "$ac_c_werror_flag" ||
2806         test ! -s conftest.err
2807       } && test -s conftest.$ac_objext; then
2808  ac_cv_prog_cc_g=yes
2809else
2810  echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813
2814fi
2815
2816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817fi
2818
2819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820fi
2821
2822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2823   ac_c_werror_flag=$ac_save_c_werror_flag
2824fi
2825{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2826echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2827if test "$ac_test_CFLAGS" = set; then
2828  CFLAGS=$ac_save_CFLAGS
2829elif test $ac_cv_prog_cc_g = yes; then
2830  if test "$GCC" = yes; then
2831    CFLAGS="-g -O2"
2832  else
2833    CFLAGS="-g"
2834  fi
2835else
2836  if test "$GCC" = yes; then
2837    CFLAGS="-O2"
2838  else
2839    CFLAGS=
2840  fi
2841fi
2842{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2843echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2844if test "${ac_cv_prog_cc_c89+set}" = set; then
2845  echo $ECHO_N "(cached) $ECHO_C" >&6
2846else
2847  ac_cv_prog_cc_c89=no
2848ac_save_CC=$CC
2849cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h.  */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h.  */
2855#include <stdarg.h>
2856#include <stdio.h>
2857#include <sys/types.h>
2858#include <sys/stat.h>
2859/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2860struct buf { int x; };
2861FILE * (*rcsopen) (struct buf *, struct stat *, int);
2862static char *e (p, i)
2863     char **p;
2864     int i;
2865{
2866  return p[i];
2867}
2868static char *f (char * (*g) (char **, int), char **p, ...)
2869{
2870  char *s;
2871  va_list v;
2872  va_start (v,p);
2873  s = g (p, va_arg (v,int));
2874  va_end (v);
2875  return s;
2876}
2877
2878/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2879   function prototypes and stuff, but not '\xHH' hex character constants.
2880   These don't provoke an error unfortunately, instead are silently treated
2881   as 'x'.  The following induces an error, until -std is added to get
2882   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2883   array size at least.  It's necessary to write '\x00'==0 to get something
2884   that's true only with -std.  */
2885int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2886
2887/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2888   inside strings and character constants.  */
2889#define FOO(x) 'x'
2890int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2891
2892int test (int i, double x);
2893struct s1 {int (*f) (int a);};
2894struct s2 {int (*f) (double a);};
2895int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2896int argc;
2897char **argv;
2898int
2899main ()
2900{
2901return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2907        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2908do
2909  CC="$ac_save_CC $ac_arg"
2910  rm -f conftest.$ac_objext
2911if { (ac_try="$ac_compile"
2912case "(($ac_try" in
2913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914  *) ac_try_echo=$ac_try;;
2915esac
2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917  (eval "$ac_compile") 2>conftest.er1
2918  ac_status=$?
2919  grep -v '^ *+' conftest.er1 >conftest.err
2920  rm -f conftest.er1
2921  cat conftest.err >&5
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); } && {
2924         test -z "$ac_c_werror_flag" ||
2925         test ! -s conftest.err
2926       } && test -s conftest.$ac_objext; then
2927  ac_cv_prog_cc_c89=$ac_arg
2928else
2929  echo "$as_me: failed program was:" >&5
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932
2933fi
2934
2935rm -f core conftest.err conftest.$ac_objext
2936  test "x$ac_cv_prog_cc_c89" != "xno" && break
2937done
2938rm -f conftest.$ac_ext
2939CC=$ac_save_CC
2940
2941fi
2942# AC_CACHE_VAL
2943case "x$ac_cv_prog_cc_c89" in
2944  x)
2945    { echo "$as_me:$LINENO: result: none needed" >&5
2946echo "${ECHO_T}none needed" >&6; } ;;
2947  xno)
2948    { echo "$as_me:$LINENO: result: unsupported" >&5
2949echo "${ECHO_T}unsupported" >&6; } ;;
2950  *)
2951    CC="$CC $ac_cv_prog_cc_c89"
2952    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2953echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2954esac
2955
2956
2957ac_ext=c
2958ac_cpp='$CPP $CPPFLAGS'
2959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962
2963ac_ext=cpp
2964ac_cpp='$CXXCPP $CPPFLAGS'
2965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2968if test -z "$CXX"; then
2969  if test -n "$CCC"; then
2970    CXX=$CCC
2971  else
2972    if test -n "$ac_tool_prefix"; then
2973  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2974  do
2975    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2979if test "${ac_cv_prog_CXX+set}" = set; then
2980  echo $ECHO_N "(cached) $ECHO_C" >&6
2981else
2982  if test -n "$CXX"; then
2983  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988  IFS=$as_save_IFS
2989  test -z "$as_dir" && as_dir=.
2990  for ac_exec_ext in '' $ac_executable_extensions; do
2991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994    break 2
2995  fi
2996done
2997done
2998IFS=$as_save_IFS
2999
3000fi
3001fi
3002CXX=$ac_cv_prog_CXX
3003if test -n "$CXX"; then
3004  { echo "$as_me:$LINENO: result: $CXX" >&5
3005echo "${ECHO_T}$CXX" >&6; }
3006else
3007  { echo "$as_me:$LINENO: result: no" >&5
3008echo "${ECHO_T}no" >&6; }
3009fi
3010
3011
3012    test -n "$CXX" && break
3013  done
3014fi
3015if test -z "$CXX"; then
3016  ac_ct_CXX=$CXX
3017  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3018do
3019  # Extract the first word of "$ac_prog", so it can be a program name with args.
3020set dummy $ac_prog; ac_word=$2
3021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3023if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3024  echo $ECHO_N "(cached) $ECHO_C" >&6
3025else
3026  if test -n "$ac_ct_CXX"; then
3027  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034  for ac_exec_ext in '' $ac_executable_extensions; do
3035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036    ac_cv_prog_ac_ct_CXX="$ac_prog"
3037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3047if test -n "$ac_ct_CXX"; then
3048  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3049echo "${ECHO_T}$ac_ct_CXX" >&6; }
3050else
3051  { echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6; }
3053fi
3054
3055
3056  test -n "$ac_ct_CXX" && break
3057done
3058
3059  if test "x$ac_ct_CXX" = x; then
3060    CXX="g++"
3061  else
3062    case $cross_compiling:$ac_tool_warned in
3063yes:)
3064{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3065whose name does not start with the host triplet.  If you think this
3066configuration is useful to you, please write to autoconf@gnu.org." >&5
3067echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3068whose name does not start with the host triplet.  If you think this
3069configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3070ac_tool_warned=yes ;;
3071esac
3072    CXX=$ac_ct_CXX
3073  fi
3074fi
3075
3076  fi
3077fi
3078# Provide some information about the compiler.
3079echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3080ac_compiler=`set X $ac_compile; echo $2`
3081{ (ac_try="$ac_compiler --version >&5"
3082case "(($ac_try" in
3083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084  *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087  (eval "$ac_compiler --version >&5") 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }
3091{ (ac_try="$ac_compiler -v >&5"
3092case "(($ac_try" in
3093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094  *) ac_try_echo=$ac_try;;
3095esac
3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097  (eval "$ac_compiler -v >&5") 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }
3101{ (ac_try="$ac_compiler -V >&5"
3102case "(($ac_try" in
3103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104  *) ac_try_echo=$ac_try;;
3105esac
3106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107  (eval "$ac_compiler -V >&5") 2>&5
3108  ac_status=$?
3109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110  (exit $ac_status); }
3111
3112{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3113echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3114if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3115  echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
3117  cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127#ifndef __GNUC__
3128       choke me
3129#endif
3130
3131  ;
3132  return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139  *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142  (eval "$ac_compile") 2>conftest.er1
3143  ac_status=$?
3144  grep -v '^ *+' conftest.er1 >conftest.err
3145  rm -f conftest.er1
3146  cat conftest.err >&5
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); } && {
3149         test -z "$ac_cxx_werror_flag" ||
3150         test ! -s conftest.err
3151       } && test -s conftest.$ac_objext; then
3152  ac_compiler_gnu=yes
3153else
3154  echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157        ac_compiler_gnu=no
3158fi
3159
3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3162
3163fi
3164{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3165echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3166GXX=`test $ac_compiler_gnu = yes && echo yes`
3167ac_test_CXXFLAGS=${CXXFLAGS+set}
3168ac_save_CXXFLAGS=$CXXFLAGS
3169{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3170echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3171if test "${ac_cv_prog_cxx_g+set}" = set; then
3172  echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3175   ac_cxx_werror_flag=yes
3176   ac_cv_prog_cxx_g=no
3177   CXXFLAGS="-g"
3178   cat >conftest.$ac_ext <<_ACEOF
3179/* confdefs.h.  */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h.  */
3184
3185int
3186main ()
3187{
3188
3189  ;
3190  return 0;
3191}
3192_ACEOF
3193rm -f conftest.$ac_objext
3194if { (ac_try="$ac_compile"
3195case "(($ac_try" in
3196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197  *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200  (eval "$ac_compile") 2>conftest.er1
3201  ac_status=$?
3202  grep -v '^ *+' conftest.er1 >conftest.err
3203  rm -f conftest.er1
3204  cat conftest.err >&5
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); } && {
3207         test -z "$ac_cxx_werror_flag" ||
3208         test ! -s conftest.err
3209       } && test -s conftest.$ac_objext; then
3210  ac_cv_prog_cxx_g=yes
3211else
3212  echo "$as_me: failed program was:" >&5
3213sed 's/^/| /' conftest.$ac_ext >&5
3214
3215        CXXFLAGS=""
3216      cat >conftest.$ac_ext <<_ACEOF
3217/* confdefs.h.  */
3218_ACEOF
3219cat confdefs.h >>conftest.$ac_ext
3220cat >>conftest.$ac_ext <<_ACEOF
3221/* end confdefs.h.  */
3222
3223int
3224main ()
3225{
3226
3227  ;
3228  return 0;
3229}
3230_ACEOF
3231rm -f conftest.$ac_objext
3232if { (ac_try="$ac_compile"
3233case "(($ac_try" in
3234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235  *) ac_try_echo=$ac_try;;
3236esac
3237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238  (eval "$ac_compile") 2>conftest.er1
3239  ac_status=$?
3240  grep -v '^ *+' conftest.er1 >conftest.err
3241  rm -f conftest.er1
3242  cat conftest.err >&5
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); } && {
3245         test -z "$ac_cxx_werror_flag" ||
3246         test ! -s conftest.err
3247       } && test -s conftest.$ac_objext; then
3248  :
3249else
3250  echo "$as_me: failed program was:" >&5
3251sed 's/^/| /' conftest.$ac_ext >&5
3252
3253        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3254         CXXFLAGS="-g"
3255         cat >conftest.$ac_ext <<_ACEOF
3256/* confdefs.h.  */
3257_ACEOF
3258cat confdefs.h >>conftest.$ac_ext
3259cat >>conftest.$ac_ext <<_ACEOF
3260/* end confdefs.h.  */
3261
3262int
3263main ()
3264{
3265
3266  ;
3267  return 0;
3268}
3269_ACEOF
3270rm -f conftest.$ac_objext
3271if { (ac_try="$ac_compile"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277  (eval "$ac_compile") 2>conftest.er1
3278  ac_status=$?
3279  grep -v '^ *+' conftest.er1 >conftest.err
3280  rm -f conftest.er1
3281  cat conftest.err >&5
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); } && {
3284         test -z "$ac_cxx_werror_flag" ||
3285         test ! -s conftest.err
3286       } && test -s conftest.$ac_objext; then
3287  ac_cv_prog_cxx_g=yes
3288else
3289  echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292
3293fi
3294
3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296fi
3297
3298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299fi
3300
3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3303fi
3304{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3305echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3306if test "$ac_test_CXXFLAGS" = set; then
3307  CXXFLAGS=$ac_save_CXXFLAGS
3308elif test $ac_cv_prog_cxx_g = yes; then
3309  if test "$GXX" = yes; then
3310    CXXFLAGS="-g -O2"
3311  else
3312    CXXFLAGS="-g"
3313  fi
3314else
3315  if test "$GXX" = yes; then
3316    CXXFLAGS="-O2"
3317  else
3318    CXXFLAGS=
3319  fi
3320fi
3321ac_ext=c
3322ac_cpp='$CPP $CPPFLAGS'
3323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326
3327# Find a good install program.  We prefer a C program (faster),
3328# so one script is as good as another.  But avoid the broken or
3329# incompatible versions:
3330# SysV /etc/install, /usr/sbin/install
3331# SunOS /usr/etc/install
3332# IRIX /sbin/install
3333# AIX /bin/install
3334# AmigaOS /C/install, which installs bootblocks on floppy discs
3335# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3336# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3337# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3338# OS/2's system install, which has a completely different semantic
3339# ./install, which can be erroneously created by make from ./install.sh.
3340{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3341echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3342if test -z "$INSTALL"; then
3343if test "${ac_cv_path_install+set}" = set; then
3344  echo $ECHO_N "(cached) $ECHO_C" >&6
3345else
3346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH
3348do
3349  IFS=$as_save_IFS
3350  test -z "$as_dir" && as_dir=.
3351  # Account for people who put trailing slashes in PATH elements.
3352case $as_dir/ in
3353  ./ | .// | /cC/* | \
3354  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3355  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3356  /usr/ucb/* ) ;;
3357  *)
3358    # OSF1 and SCO ODT 3.0 have their own names for install.
3359    # Don't use installbsd from OSF since it installs stuff as root
3360    # by default.
3361    for ac_prog in ginstall scoinst install; do
3362      for ac_exec_ext in '' $ac_executable_extensions; do
3363        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3364          if test $ac_prog = install &&
3365            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3366            # AIX install.  It has an incompatible calling convention.
3367            :
3368          elif test $ac_prog = install &&
3369            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3370            # program-specific install script used by HP pwplus--don't use.
3371            :
3372          else
3373            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3374            break 3
3375          fi
3376        fi
3377      done
3378    done
3379    ;;
3380esac
3381done
3382IFS=$as_save_IFS
3383
3384
3385fi
3386  if test "${ac_cv_path_install+set}" = set; then
3387    INSTALL=$ac_cv_path_install
3388  else
3389    # As a last resort, use the slow shell script.  Don't cache a
3390    # value for INSTALL within a source directory, because that will
3391    # break other packages using the cache if that directory is
3392    # removed, or if the value is a relative name.
3393    INSTALL=$ac_install_sh
3394  fi
3395fi
3396{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3397echo "${ECHO_T}$INSTALL" >&6; }
3398
3399# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3400# It thinks the first close brace ends the variable substitution.
3401test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3402
3403test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3404
3405test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3406
3407{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3408echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3409LN_S=$as_ln_s
3410if test "$LN_S" = "ln -s"; then
3411  { echo "$as_me:$LINENO: result: yes" >&5
3412echo "${ECHO_T}yes" >&6; }
3413else
3414  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3415echo "${ECHO_T}no, using $LN_S" >&6; }
3416fi
3417
3418if test -n "$ac_tool_prefix"; then
3419  for ac_prog in ar
3420  do
3421    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3422set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3425if test "${ac_cv_prog_AR+set}" = set; then
3426  echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428  if test -n "$AR"; then
3429  ac_cv_prog_AR="$AR" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434  IFS=$as_save_IFS
3435  test -z "$as_dir" && as_dir=.
3436  for ac_exec_ext in '' $ac_executable_extensions; do
3437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3439    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440    break 2
3441  fi
3442done
3443done
3444IFS=$as_save_IFS
3445
3446fi
3447fi
3448AR=$ac_cv_prog_AR
3449if test -n "$AR"; then
3450  { echo "$as_me:$LINENO: result: $AR" >&5
3451echo "${ECHO_T}$AR" >&6; }
3452else
3453  { echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6; }
3455fi
3456
3457
3458    test -n "$AR" && break
3459  done
3460fi
3461if test -z "$AR"; then
3462  ac_ct_AR=$AR
3463  for ac_prog in ar
3464do
3465  # Extract the first word of "$ac_prog", so it can be a program name with args.
3466set dummy $ac_prog; ac_word=$2
3467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3469if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3470  echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472  if test -n "$ac_ct_AR"; then
3473  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3474else
3475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH
3477do
3478  IFS=$as_save_IFS
3479  test -z "$as_dir" && as_dir=.
3480  for ac_exec_ext in '' $ac_executable_extensions; do
3481  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3482    ac_cv_prog_ac_ct_AR="$ac_prog"
3483    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484    break 2
3485  fi
3486done
3487done
3488IFS=$as_save_IFS
3489
3490fi
3491fi
3492ac_ct_AR=$ac_cv_prog_ac_ct_AR
3493if test -n "$ac_ct_AR"; then
3494  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3495echo "${ECHO_T}$ac_ct_AR" >&6; }
3496else
3497  { echo "$as_me:$LINENO: result: no" >&5
3498echo "${ECHO_T}no" >&6; }
3499fi
3500
3501
3502  test -n "$ac_ct_AR" && break
3503done
3504
3505  if test "x$ac_ct_AR" = x; then
3506    AR=""
3507  else
3508    case $cross_compiling:$ac_tool_warned in
3509yes:)
3510{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3511whose name does not start with the host triplet.  If you think this
3512configuration is useful to you, please write to autoconf@gnu.org." >&5
3513echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3514whose name does not start with the host triplet.  If you think this
3515configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3516ac_tool_warned=yes ;;
3517esac
3518    AR=$ac_ct_AR
3519  fi
3520fi
3521
3522if test -n "$ac_tool_prefix"; then
3523  for ac_prog in windres
3524  do
3525    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3526set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3529if test "${ac_cv_prog_RC+set}" = set; then
3530  echo $ECHO_N "(cached) $ECHO_C" >&6
3531else
3532  if test -n "$RC"; then
3533  ac_cv_prog_RC="$RC" # Let the user override the test.
3534else
3535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536for as_dir in $PATH
3537do
3538  IFS=$as_save_IFS
3539  test -z "$as_dir" && as_dir=.
3540  for ac_exec_ext in '' $ac_executable_extensions; do
3541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3542    ac_cv_prog_RC="$ac_tool_prefix$ac_prog"
3543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544    break 2
3545  fi
3546done
3547done
3548IFS=$as_save_IFS
3549
3550fi
3551fi
3552RC=$ac_cv_prog_RC
3553if test -n "$RC"; then
3554  { echo "$as_me:$LINENO: result: $RC" >&5
3555echo "${ECHO_T}$RC" >&6; }
3556else
3557  { echo "$as_me:$LINENO: result: no" >&5
3558echo "${ECHO_T}no" >&6; }
3559fi
3560
3561
3562    test -n "$RC" && break
3563  done
3564fi
3565if test -z "$RC"; then
3566  ac_ct_RC=$RC
3567  for ac_prog in windres
3568do
3569  # Extract the first word of "$ac_prog", so it can be a program name with args.
3570set dummy $ac_prog; ac_word=$2
3571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3573if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
3574  echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576  if test -n "$ac_ct_RC"; then
3577  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
3578else
3579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH
3581do
3582  IFS=$as_save_IFS
3583  test -z "$as_dir" && as_dir=.
3584  for ac_exec_ext in '' $ac_executable_extensions; do
3585  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3586    ac_cv_prog_ac_ct_RC="$ac_prog"
3587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3588    break 2
3589  fi
3590done
3591done
3592IFS=$as_save_IFS
3593
3594fi
3595fi
3596ac_ct_RC=$ac_cv_prog_ac_ct_RC
3597if test -n "$ac_ct_RC"; then
3598  { echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
3599echo "${ECHO_T}$ac_ct_RC" >&6; }
3600else
3601  { echo "$as_me:$LINENO: result: no" >&5
3602echo "${ECHO_T}no" >&6; }
3603fi
3604
3605
3606  test -n "$ac_ct_RC" && break
3607done
3608
3609  if test "x$ac_ct_RC" = x; then
3610    RC=""
3611  else
3612    case $cross_compiling:$ac_tool_warned in
3613yes:)
3614{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3615whose name does not start with the host triplet.  If you think this
3616configuration is useful to you, please write to autoconf@gnu.org." >&5
3617echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3618whose name does not start with the host triplet.  If you think this
3619configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3620ac_tool_warned=yes ;;
3621esac
3622    RC=$ac_ct_RC
3623  fi
3624fi
3625
3626for ac_prog in rm
3627do
3628  # Extract the first word of "$ac_prog", so it can be a program name with args.
3629set dummy $ac_prog; ac_word=$2
3630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3632if test "${ac_cv_prog_RM+set}" = set; then
3633  echo $ECHO_N "(cached) $ECHO_C" >&6
3634else
3635  if test -n "$RM"; then
3636  ac_cv_prog_RM="$RM" # Let the user override the test.
3637else
3638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639for as_dir in $PATH
3640do
3641  IFS=$as_save_IFS
3642  test -z "$as_dir" && as_dir=.
3643  for ac_exec_ext in '' $ac_executable_extensions; do
3644  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645    ac_cv_prog_RM="$ac_prog"
3646    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647    break 2
3648  fi
3649done
3650done
3651IFS=$as_save_IFS
3652
3653fi
3654fi
3655RM=$ac_cv_prog_RM
3656if test -n "$RM"; then
3657  { echo "$as_me:$LINENO: result: $RM" >&5
3658echo "${ECHO_T}$RM" >&6; }
3659else
3660  { echo "$as_me:$LINENO: result: no" >&5
3661echo "${ECHO_T}no" >&6; }
3662fi
3663
3664
3665  test -n "$RM" && break
3666done
3667
3668for ac_prog in cp
3669do
3670  # Extract the first word of "$ac_prog", so it can be a program name with args.
3671set dummy $ac_prog; ac_word=$2
3672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3674if test "${ac_cv_prog_CP+set}" = set; then
3675  echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
3677  if test -n "$CP"; then
3678  ac_cv_prog_CP="$CP" # Let the user override the test.
3679else
3680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH
3682do
3683  IFS=$as_save_IFS
3684  test -z "$as_dir" && as_dir=.
3685  for ac_exec_ext in '' $ac_executable_extensions; do
3686  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3687    ac_cv_prog_CP="$ac_prog"
3688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689    break 2
3690  fi
3691done
3692done
3693IFS=$as_save_IFS
3694
3695fi
3696fi
3697CP=$ac_cv_prog_CP
3698if test -n "$CP"; then
3699  { echo "$as_me:$LINENO: result: $CP" >&5
3700echo "${ECHO_T}$CP" >&6; }
3701else
3702  { echo "$as_me:$LINENO: result: no" >&5
3703echo "${ECHO_T}no" >&6; }
3704fi
3705
3706
3707  test -n "$CP" && break
3708done
3709
3710for ac_prog in mkdir
3711do
3712  # Extract the first word of "$ac_prog", so it can be a program name with args.
3713set dummy $ac_prog; ac_word=$2
3714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3716if test "${ac_cv_prog_MKDIR+set}" = set; then
3717  echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719  if test -n "$MKDIR"; then
3720  ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
3721else
3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725  IFS=$as_save_IFS
3726  test -z "$as_dir" && as_dir=.
3727  for ac_exec_ext in '' $ac_executable_extensions; do
3728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3729    ac_cv_prog_MKDIR="$ac_prog"
3730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731    break 2
3732  fi
3733done
3734done
3735IFS=$as_save_IFS
3736
3737fi
3738fi
3739MKDIR=$ac_cv_prog_MKDIR
3740if test -n "$MKDIR"; then
3741  { echo "$as_me:$LINENO: result: $MKDIR" >&5
3742echo "${ECHO_T}$MKDIR" >&6; }
3743else
3744  { echo "$as_me:$LINENO: result: no" >&5
3745echo "${ECHO_T}no" >&6; }
3746fi
3747
3748
3749  test -n "$MKDIR" && break
3750done
3751
3752for ac_prog in echo
3753do
3754  # Extract the first word of "$ac_prog", so it can be a program name with args.
3755set dummy $ac_prog; ac_word=$2
3756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3758if test "${ac_cv_prog_ECHO+set}" = set; then
3759  echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761  if test -n "$ECHO"; then
3762  ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
3763else
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767  IFS=$as_save_IFS
3768  test -z "$as_dir" && as_dir=.
3769  for ac_exec_ext in '' $ac_executable_extensions; do
3770  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771    ac_cv_prog_ECHO="$ac_prog"
3772    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3773    break 2
3774  fi
3775done
3776done
3777IFS=$as_save_IFS
3778
3779fi
3780fi
3781ECHO=$ac_cv_prog_ECHO
3782if test -n "$ECHO"; then
3783  { echo "$as_me:$LINENO: result: $ECHO" >&5
3784echo "${ECHO_T}$ECHO" >&6; }
3785else
3786  { echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6; }
3788fi
3789
3790
3791  test -n "$ECHO" && break
3792done
3793
3794for ac_prog in tar
3795do
3796  # Extract the first word of "$ac_prog", so it can be a program name with args.
3797set dummy $ac_prog; ac_word=$2
3798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3800if test "${ac_cv_prog_TAR+set}" = set; then
3801  echo $ECHO_N "(cached) $ECHO_C" >&6
3802else
3803  if test -n "$TAR"; then
3804  ac_cv_prog_TAR="$TAR" # Let the user override the test.
3805else
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809  IFS=$as_save_IFS
3810  test -z "$as_dir" && as_dir=.
3811  for ac_exec_ext in '' $ac_executable_extensions; do
3812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3813    ac_cv_prog_TAR="$ac_prog"
3814    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815    break 2
3816  fi
3817done
3818done
3819IFS=$as_save_IFS
3820
3821fi
3822fi
3823TAR=$ac_cv_prog_TAR
3824if test -n "$TAR"; then
3825  { echo "$as_me:$LINENO: result: $TAR" >&5
3826echo "${ECHO_T}$TAR" >&6; }
3827else
3828  { echo "$as_me:$LINENO: result: no" >&5
3829echo "${ECHO_T}no" >&6; }
3830fi
3831
3832
3833  test -n "$TAR" && break
3834done
3835
3836for ac_prog in gzip
3837do
3838  # Extract the first word of "$ac_prog", so it can be a program name with args.
3839set dummy $ac_prog; ac_word=$2
3840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3842if test "${ac_cv_prog_GZIP+set}" = set; then
3843  echo $ECHO_N "(cached) $ECHO_C" >&6
3844else
3845  if test -n "$GZIP"; then
3846  ac_cv_prog_GZIP="$GZIP" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851  IFS=$as_save_IFS
3852  test -z "$as_dir" && as_dir=.
3853  for ac_exec_ext in '' $ac_executable_extensions; do
3854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3855    ac_cv_prog_GZIP="$ac_prog"
3856    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857    break 2
3858  fi
3859done
3860done
3861IFS=$as_save_IFS
3862
3863fi
3864fi
3865GZIP=$ac_cv_prog_GZIP
3866if test -n "$GZIP"; then
3867  { echo "$as_me:$LINENO: result: $GZIP" >&5
3868echo "${ECHO_T}$GZIP" >&6; }
3869else
3870  { echo "$as_me:$LINENO: result: no" >&5
3871echo "${ECHO_T}no" >&6; }
3872fi
3873
3874
3875  test -n "$GZIP" && break
3876done
3877
3878for ac_prog in zip
3879do
3880  # Extract the first word of "$ac_prog", so it can be a program name with args.
3881set dummy $ac_prog; ac_word=$2
3882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3884if test "${ac_cv_prog_ZIP+set}" = set; then
3885  echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887  if test -n "$ZIP"; then
3888  ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
3889else
3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH
3892do
3893  IFS=$as_save_IFS
3894  test -z "$as_dir" && as_dir=.
3895  for ac_exec_ext in '' $ac_executable_extensions; do
3896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897    ac_cv_prog_ZIP="$ac_prog"
3898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899    break 2
3900  fi
3901done
3902done
3903IFS=$as_save_IFS
3904
3905fi
3906fi
3907ZIP=$ac_cv_prog_ZIP
3908if test -n "$ZIP"; then
3909  { echo "$as_me:$LINENO: result: $ZIP" >&5
3910echo "${ECHO_T}$ZIP" >&6; }
3911else
3912  { echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6; }
3914fi
3915
3916
3917  test -n "$ZIP" && break
3918done
3919
3920
3921if test "x$cross_compiling" = "xyes"; then
3922        # if cross compiling autodetect the system compilers
3923        for ac_prog in gcc cc
3924do
3925  # Extract the first word of "$ac_prog", so it can be a program name with args.
3926set dummy $ac_prog; ac_word=$2
3927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3929if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
3930  echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932  if test -n "$CC_FOR_BUILD"; then
3933  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938  IFS=$as_save_IFS
3939  test -z "$as_dir" && as_dir=.
3940  for ac_exec_ext in '' $ac_executable_extensions; do
3941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
3943    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944    break 2
3945  fi
3946done
3947done
3948IFS=$as_save_IFS
3949
3950fi
3951fi
3952CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3953if test -n "$CC_FOR_BUILD"; then
3954  { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
3955echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
3956else
3957  { echo "$as_me:$LINENO: result: no" >&5
3958echo "${ECHO_T}no" >&6; }
3959fi
3960
3961
3962  test -n "$CC_FOR_BUILD" && break
3963done
3964
3965        for ac_prog in g++ gxx c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3966do
3967  # Extract the first word of "$ac_prog", so it can be a program name with args.
3968set dummy $ac_prog; ac_word=$2
3969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3971if test "${ac_cv_prog_CXX_FOR_BUILD+set}" = set; then
3972  echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974  if test -n "$CXX_FOR_BUILD"; then
3975  ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
3976else
3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980  IFS=$as_save_IFS
3981  test -z "$as_dir" && as_dir=.
3982  for ac_exec_ext in '' $ac_executable_extensions; do
3983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3984    ac_cv_prog_CXX_FOR_BUILD="$ac_prog"
3985    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986    break 2
3987  fi
3988done
3989done
3990IFS=$as_save_IFS
3991
3992fi
3993fi
3994CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
3995if test -n "$CXX_FOR_BUILD"; then
3996  { echo "$as_me:$LINENO: result: $CXX_FOR_BUILD" >&5
3997echo "${ECHO_T}$CXX_FOR_BUILD" >&6; }
3998else
3999  { echo "$as_me:$LINENO: result: no" >&5
4000echo "${ECHO_T}no" >&6; }
4001fi
4002
4003
4004  test -n "$CXX_FOR_BUILD" && break
4005done
4006
4007else
4008        #if not cross compiling use the already detected compilers
4009        CC_FOR_BUILD=$CC
4010        CXX_FOR_BUILD=$CXX
4011
4012
4013fi
4014
4015# Checks for optimizations
4016# Check whether --enable-debug was given.
4017if test "${enable_debug+set}" = set; then
4018  enableval=$enable_debug; ac_enable_debug=$enableval
4019else
4020  ac_enable_debug=no
4021
4022fi
4023
4024CONF_DEBUG=$ac_enable_debug
4025
4026
4027# Check whether --enable-test was given.
4028if test "${enable_test+set}" = set; then
4029  enableval=$enable_test; ac_enable_test=$enableval
4030else
4031  ac_enable_test=no
4032
4033fi
4034
4035
4036# Check whether --enable-static was given.
4037if test "${enable_static+set}" = set; then
4038  enableval=$enable_static; ac_enable_static=$enableval
4039else
4040  ac_enable_static=no
4041
4042fi
4043
4044
4045if test $ac_auto_cflags = yes; then
4046        if test $ac_enable_debug = yes ; then
4047                CFLAGS="-O0 -g -Wall -Wno-sign-compare -Wno-unused"
4048        elif test $ac_enable_test = yes ; then
4049                CFLAGS="-O0 -Wall -Wno-sign-compare -Wno-unused"
4050        else
4051                CFLAGS=""
4052
4053if test -f /proc/cpuinfo ; then
4054        if grep -i "vendor_id.*:.*GenuineIntel" /proc/cpuinfo > /dev/null ; then
4055                if grep -i "family.*: 15" /proc/cpuinfo > /dev/null ; then
4056                        ac_cpu_arch=pentium2
4057                        ac_cpu_arch_secondary=i686
4058                elif grep -i "family.*: 6" /proc/cpuinfo > /dev/null ; then
4059                        ac_cpu_arch=pentiumpro
4060                        ac_cpu_arch_secondary=i686
4061                elif grep -i "family.*: 5" /proc/cpuinfo > /dev/null ; then
4062                        ac_cpu_arch=pentium
4063                        ac_cpu_arch_secondary=i586
4064                else
4065                        ac_cpu_arch=blend
4066                        ac_cpu_arch_secondary=blend
4067                fi
4068        elif grep -i "vendor_id.*:.*AuthenticAMD" /proc/cpuinfo > /dev/null ; then
4069                if grep -i "family.*: 6" /proc/cpuinfo > /dev/null ; then
4070                        ac_cpu_arch=athlon
4071                        ac_cpu_arch_secondary=i586
4072                elif grep -i "family.*: 5" /proc/cpuinfo > /dev/null ; then
4073                        ac_cpu_arch=pentium
4074                        ac_cpu_arch_secondary=i586
4075                else
4076                        ac_cpu_arch=blend
4077                        ac_cpu_arch_secondary=blend
4078                fi
4079        else
4080                ac_cpu_arch=blend
4081                ac_cpu_arch_secondary=blend
4082        fi
4083else
4084        ac_cpu_arch=blend
4085        ac_cpu_arch_secondary=blend
4086fi
4087
4088{ echo "$as_me:$LINENO: checking build arch" >&5
4089echo $ECHO_N "checking build arch... $ECHO_C" >&6; }
4090{ echo "$as_me:$LINENO: result: $ac_cpu_arch" >&5
4091echo "${ECHO_T}$ac_cpu_arch" >&6; }
4092
4093
4094if test $ac_cpu_arch = blend; then
4095        ac_cc_arch=blend
4096else
4097
4098{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -march=$ac_cpu_arch" >&5
4099echo $ECHO_N "checking whether ${CC-cc} accepts -march=$ac_cpu_arch... $ECHO_C" >&6; }
4100echo 'void f(){}' > conftest.c
4101if test -z "`${CC-cc} -c -march=$ac_cpu_arch conftest.c 2>&1`"; then
4102  { echo "$as_me:$LINENO: result: yes" >&5
4103echo "${ECHO_T}yes" >&6; }
4104  ac_cc_cpu_arch=yes
4105else
4106  { echo "$as_me:$LINENO: result: no" >&5
4107echo "${ECHO_T}no" >&6; }
4108  ac_cc_cpu_arch=no
4109fi
4110rm -f conftest*
4111
4112        if test $ac_cc_cpu_arch = yes ; then
4113                ac_cc_arch=$ac_cpu_arch
4114        else
4115
4116{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -march=$ac_cpu_arch_secondary" >&5
4117echo $ECHO_N "checking whether ${CC-cc} accepts -march=$ac_cpu_arch_secondary... $ECHO_C" >&6; }
4118echo 'void f(){}' > conftest.c
4119if test -z "`${CC-cc} -c -march=$ac_cpu_arch_secondary conftest.c 2>&1`"; then
4120  { echo "$as_me:$LINENO: result: yes" >&5
4121echo "${ECHO_T}yes" >&6; }
4122  ac_cc_family_arch=yes
4123else
4124  { echo "$as_me:$LINENO: result: no" >&5
4125echo "${ECHO_T}no" >&6; }
4126  ac_cc_family_arch=no
4127fi
4128rm -f conftest*
4129
4130                if test $ac_cc_family_arch = yes ; then
4131                        ac_cc_arch=$ac_cpu_arch_secondary
4132                else
4133                        ac_cc_arch=blend
4134                fi
4135        fi
4136fi
4137
4138                if test ! $ac_cc_arch = blend; then
4139                        CFLAGS="$CFLAGS -march=$ac_cc_arch "
4140
4141{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fomit-frame-pointer" >&5
4142echo $ECHO_N "checking whether ${CC-cc} accepts -fomit-frame-pointer... $ECHO_C" >&6; }
4143echo 'void f(){}' > conftest.c
4144if test -z "`${CC-cc} -c -fomit-frame-pointer conftest.c 2>&1`"; then
4145  { echo "$as_me:$LINENO: result: yes" >&5
4146echo "${ECHO_T}yes" >&6; }
4147  CFLAGS="$CFLAGS -fomit-frame-pointer"
4148else
4149  { echo "$as_me:$LINENO: result: no" >&5
4150echo "${ECHO_T}no" >&6; }
4151
4152fi
4153rm -f conftest*
4154
4155                fi
4156                # -O3 don't seem to be safe on x86 platforms, also on latest gcc 3.3.x
4157
4158{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -O2" >&5
4159echo $ECHO_N "checking whether ${CC-cc} accepts -O2... $ECHO_C" >&6; }
4160echo 'void f(){}' > conftest.c
4161if test -z "`${CC-cc} -c -O2 conftest.c 2>&1`"; then
4162  { echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6; }
4164  CFLAGS="$CFLAGS -O2"
4165else
4166  { echo "$as_me:$LINENO: result: no" >&5
4167echo "${ECHO_T}no" >&6; }
4168  CFLAGS="$CFLAGS -O"
4169fi
4170rm -f conftest*
4171
4172                # -fno-merge-constants is required to speedup the link time. ld spends a lot of time trying to merge partial strings.
4173
4174{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fno-merge-constants" >&5
4175echo $ECHO_N "checking whether ${CC-cc} accepts -fno-merge-constants... $ECHO_C" >&6; }
4176echo 'void f(){}' > conftest.c
4177if test -z "`${CC-cc} -c -fno-merge-constants conftest.c 2>&1`"; then
4178  { echo "$as_me:$LINENO: result: yes" >&5
4179echo "${ECHO_T}yes" >&6; }
4180  CFLAGS="$CFLAGS -fno-merge-constants"
4181else
4182  { echo "$as_me:$LINENO: result: no" >&5
4183echo "${ECHO_T}no" >&6; }
4184
4185fi
4186rm -f conftest*
4187
4188
4189{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wall" >&5
4190echo $ECHO_N "checking whether ${CC-cc} accepts -Wall... $ECHO_C" >&6; }
4191echo 'void f(){}' > conftest.c
4192if test -z "`${CC-cc} -c -Wall conftest.c 2>&1`"; then
4193  { echo "$as_me:$LINENO: result: yes" >&5
4194echo "${ECHO_T}yes" >&6; }
4195  CFLAGS="$CFLAGS -Wall"
4196else
4197  { echo "$as_me:$LINENO: result: no" >&5
4198echo "${ECHO_T}no" >&6; }
4199
4200fi
4201rm -f conftest*
4202
4203
4204{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-sign-compare" >&5
4205echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-sign-compare... $ECHO_C" >&6; }
4206echo 'void f(){}' > conftest.c
4207if test -z "`${CC-cc} -c -Wno-sign-compare conftest.c 2>&1`"; then
4208  { echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6; }
4210  CFLAGS="$CFLAGS -Wno-sign-compare"
4211else
4212  { echo "$as_me:$LINENO: result: no" >&5
4213echo "${ECHO_T}no" >&6; }
4214
4215fi
4216rm -f conftest*
4217
4218
4219{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-unused" >&5
4220echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-unused... $ECHO_C" >&6; }
4221echo 'void f(){}' > conftest.c
4222if test -z "`${CC-cc} -c -Wno-unused conftest.c 2>&1`"; then
4223  { echo "$as_me:$LINENO: result: yes" >&5
4224echo "${ECHO_T}yes" >&6; }
4225  CFLAGS="$CFLAGS -Wno-unused"
4226else
4227  { echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6; }
4229
4230fi
4231rm -f conftest*
4232
4233        fi
4234        if test ! -z $ac_host_cflags; then
4235                CFLAGS="$ac_host_cflags $CFLAGS"
4236        fi
4237fi
4238if test $ac_auto_ldflags = yes ; then
4239        if test $ac_enable_debug = yes ; then
4240                if test $ac_system = unix ; then
4241                        LDFLAGS="-rdynamic"
4242                else
4243                        LDFLAGS="-g"
4244                fi
4245        else
4246                LDFLAGS="-s"
4247        fi
4248        if test $ac_enable_static = yes ; then
4249                LDFLAGS="-static $LDFLAGS"
4250        fi
4251        if test ! -z $ac_host_ldflags; then
4252                LDFLAGS="$ac_host_ldflags $LDFLAGS"
4253        fi
4254fi
4255
4256CONF_CFLAGS_OPT=$CFLAGS
4257
4258CONF_LDFLAGS=$LDFLAGS
4259
4260
4261# Checks for architecture
4262
4263ac_ext=c
4264ac_cpp='$CPP $CPPFLAGS'
4265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4269echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4270# On Suns, sometimes $CPP names a directory.
4271if test -n "$CPP" && test -d "$CPP"; then
4272  CPP=
4273fi
4274if test -z "$CPP"; then
4275  if test "${ac_cv_prog_CPP+set}" = set; then
4276  echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278      # Double quotes because CPP needs to be expanded
4279    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4280    do
4281      ac_preproc_ok=false
4282for ac_c_preproc_warn_flag in '' yes
4283do
4284  # Use a header file that comes with gcc, so configuring glibc
4285  # with a fresh cross-compiler works.
4286  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287  # <limits.h> exists even on freestanding compilers.
4288  # On the NeXT, cc -E runs the code through the compiler's parser,
4289  # not just through cpp. "Syntax error" is here to catch this case.
4290  cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h.  */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
4295/* end confdefs.h.  */
4296#ifdef __STDC__
4297# include <limits.h>
4298#else
4299# include <assert.h>
4300#endif
4301                     Syntax error
4302_ACEOF
4303if { (ac_try="$ac_cpp conftest.$ac_ext"
4304case "(($ac_try" in
4305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306  *) ac_try_echo=$ac_try;;
4307esac
4308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4310  ac_status=$?
4311  grep -v '^ *+' conftest.er1 >conftest.err
4312  rm -f conftest.er1
4313  cat conftest.err >&5
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); } >/dev/null && {
4316         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4317         test ! -s conftest.err
4318       }; then
4319  :
4320else
4321  echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324  # Broken: fails on valid input.
4325continue
4326fi
4327
4328rm -f conftest.err conftest.$ac_ext
4329
4330  # OK, works on sane cases.  Now check whether nonexistent headers
4331  # can be detected and how.
4332  cat >conftest.$ac_ext <<_ACEOF
4333/* confdefs.h.  */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h.  */
4338#include <ac_nonexistent.h>
4339_ACEOF
4340if { (ac_try="$ac_cpp conftest.$ac_ext"
4341case "(($ac_try" in
4342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343  *) ac_try_echo=$ac_try;;
4344esac
4345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4347  ac_status=$?
4348  grep -v '^ *+' conftest.er1 >conftest.err
4349  rm -f conftest.er1
4350  cat conftest.err >&5
4351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352  (exit $ac_status); } >/dev/null && {
4353         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4354         test ! -s conftest.err
4355       }; then
4356  # Broken: success on invalid input.
4357continue
4358else
4359  echo "$as_me: failed program was:" >&5
4360sed 's/^/| /' conftest.$ac_ext >&5
4361
4362  # Passes both tests.
4363ac_preproc_ok=:
4364break
4365fi
4366
4367rm -f conftest.err conftest.$ac_ext
4368
4369done
4370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4371rm -f conftest.err conftest.$ac_ext
4372if $ac_preproc_ok; then
4373  break
4374fi
4375
4376    done
4377    ac_cv_prog_CPP=$CPP
4378
4379fi
4380  CPP=$ac_cv_prog_CPP
4381else
4382  ac_cv_prog_CPP=$CPP
4383fi
4384{ echo "$as_me:$LINENO: result: $CPP" >&5
4385echo "${ECHO_T}$CPP" >&6; }
4386ac_preproc_ok=false
4387for ac_c_preproc_warn_flag in '' yes
4388do
4389  # Use a header file that comes with gcc, so configuring glibc
4390  # with a fresh cross-compiler works.
4391  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392  # <limits.h> exists even on freestanding compilers.
4393  # On the NeXT, cc -E runs the code through the compiler's parser,
4394  # not just through cpp. "Syntax error" is here to catch this case.
4395  cat >conftest.$ac_ext <<_ACEOF
4396/* confdefs.h.  */
4397_ACEOF
4398cat confdefs.h >>conftest.$ac_ext
4399cat >>conftest.$ac_ext <<_ACEOF
4400/* end confdefs.h.  */
4401#ifdef __STDC__
4402# include <limits.h>
4403#else
4404# include <assert.h>
4405#endif
4406                     Syntax error
4407_ACEOF
4408if { (ac_try="$ac_cpp conftest.$ac_ext"
4409case "(($ac_try" in
4410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411  *) ac_try_echo=$ac_try;;
4412esac
4413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4415  ac_status=$?
4416  grep -v '^ *+' conftest.er1 >conftest.err
4417  rm -f conftest.er1
4418  cat conftest.err >&5
4419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420  (exit $ac_status); } >/dev/null && {
4421         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4422         test ! -s conftest.err
4423       }; then
4424  :
4425else
4426  echo "$as_me: failed program was:" >&5
4427sed 's/^/| /' conftest.$ac_ext >&5
4428
4429  # Broken: fails on valid input.
4430continue
4431fi
4432
4433rm -f conftest.err conftest.$ac_ext
4434
4435  # OK, works on sane cases.  Now check whether nonexistent headers
4436  # can be detected and how.
4437  cat >conftest.$ac_ext <<_ACEOF
4438/* confdefs.h.  */
4439_ACEOF
4440cat confdefs.h >>conftest.$ac_ext
4441cat >>conftest.$ac_ext <<_ACEOF
4442/* end confdefs.h.  */
4443#include <ac_nonexistent.h>
4444_ACEOF
4445if { (ac_try="$ac_cpp conftest.$ac_ext"
4446case "(($ac_try" in
4447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448  *) ac_try_echo=$ac_try;;
4449esac
4450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4452  ac_status=$?
4453  grep -v '^ *+' conftest.er1 >conftest.err
4454  rm -f conftest.er1
4455  cat conftest.err >&5
4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457  (exit $ac_status); } >/dev/null && {
4458         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4459         test ! -s conftest.err
4460       }; then
4461  # Broken: success on invalid input.
4462continue
4463else
4464  echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
4466
4467  # Passes both tests.
4468ac_preproc_ok=:
4469break
4470fi
4471
4472rm -f conftest.err conftest.$ac_ext
4473
4474done
4475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4476rm -f conftest.err conftest.$ac_ext
4477if $ac_preproc_ok; then
4478  :
4479else
4480  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4481See \`config.log' for more details." >&5
4482echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4483See \`config.log' for more details." >&2;}
4484   { (exit 1); exit 1; }; }
4485fi
4486
4487ac_ext=c
4488ac_cpp='$CPP $CPPFLAGS'
4489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492
4493
4494{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4495echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4496if test "${ac_cv_path_GREP+set}" = set; then
4497  echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499  # Extract the first word of "grep ggrep" to use in msg output
4500if test -z "$GREP"; then
4501set dummy grep ggrep; ac_prog_name=$2
4502if test "${ac_cv_path_GREP+set}" = set; then
4503  echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505  ac_path_GREP_found=false
4506# Loop through the user's path and test for each of PROGNAME-LIST
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4509do
4510  IFS=$as_save_IFS
4511  test -z "$as_dir" && as_dir=.
4512  for ac_prog in grep ggrep; do
4513  for ac_exec_ext in '' $ac_executable_extensions; do
4514    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4515    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4516    # Check for GNU ac_path_GREP and select it if it is found.
4517  # Check for GNU $ac_path_GREP
4518case `"$ac_path_GREP" --version 2>&1` in
4519*GNU*)
4520  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4521*)
4522  ac_count=0
4523  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4524  while :
4525  do
4526    cat "conftest.in" "conftest.in" >"conftest.tmp"
4527    mv "conftest.tmp" "conftest.in"
4528    cp "conftest.in" "conftest.nl"
4529    echo 'GREP' >> "conftest.nl"
4530    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4531    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4532    ac_count=`expr $ac_count + 1`
4533    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4534      # Best one so far, save it but keep looking for a better one
4535      ac_cv_path_GREP="$ac_path_GREP"
4536      ac_path_GREP_max=$ac_count
4537    fi
4538    # 10*(2^10) chars as input seems more than enough
4539    test $ac_count -gt 10 && break
4540  done
4541  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4542esac
4543
4544
4545    $ac_path_GREP_found && break 3
4546  done
4547done
4548
4549done
4550IFS=$as_save_IFS
4551
4552
4553fi
4554
4555GREP="$ac_cv_path_GREP"
4556if test -z "$GREP"; then
4557  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4558echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4559   { (exit 1); exit 1; }; }
4560fi
4561
4562else
4563  ac_cv_path_GREP=$GREP
4564fi
4565
4566
4567fi
4568{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4569echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4570 GREP="$ac_cv_path_GREP"
4571
4572
4573{ echo "$as_me:$LINENO: checking for egrep" >&5
4574echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4575if test "${ac_cv_path_EGREP+set}" = set; then
4576  echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4579   then ac_cv_path_EGREP="$GREP -E"
4580   else
4581     # Extract the first word of "egrep" to use in msg output
4582if test -z "$EGREP"; then
4583set dummy egrep; ac_prog_name=$2
4584if test "${ac_cv_path_EGREP+set}" = set; then
4585  echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587  ac_path_EGREP_found=false
4588# Loop through the user's path and test for each of PROGNAME-LIST
4589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4591do
4592  IFS=$as_save_IFS
4593  test -z "$as_dir" && as_dir=.
4594  for ac_prog in egrep; do
4595  for ac_exec_ext in '' $ac_executable_extensions; do
4596    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4597    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4598    # Check for GNU ac_path_EGREP and select it if it is found.
4599  # Check for GNU $ac_path_EGREP
4600case `"$ac_path_EGREP" --version 2>&1` in
4601*GNU*)
4602  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4603*)
4604  ac_count=0
4605  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4606  while :
4607  do
4608    cat "conftest.in" "conftest.in" >"conftest.tmp"
4609    mv "conftest.tmp" "conftest.in"
4610    cp "conftest.in" "conftest.nl"
4611    echo 'EGREP' >> "conftest.nl"
4612    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614    ac_count=`expr $ac_count + 1`
4615    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4616      # Best one so far, save it but keep looking for a better one
4617      ac_cv_path_EGREP="$ac_path_EGREP"
4618      ac_path_EGREP_max=$ac_count
4619    fi
4620    # 10*(2^10) chars as input seems more than enough
4621    test $ac_count -gt 10 && break
4622  done
4623  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4624esac
4625
4626
4627    $ac_path_EGREP_found && break 3
4628  done
4629done
4630
4631done
4632IFS=$as_save_IFS
4633
4634
4635fi
4636
4637EGREP="$ac_cv_path_EGREP"
4638if test -z "$EGREP"; then
4639  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4640echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4641   { (exit 1); exit 1; }; }
4642fi
4643
4644else
4645  ac_cv_path_EGREP=$EGREP
4646fi
4647
4648
4649   fi
4650fi
4651{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4652echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4653 EGREP="$ac_cv_path_EGREP"
4654
4655
4656{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4657echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4658if test "${ac_cv_header_stdc+set}" = set; then
4659  echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661  cat >conftest.$ac_ext <<_ACEOF
4662/* confdefs.h.  */
4663_ACEOF
4664cat confdefs.h >>conftest.$ac_ext
4665cat >>conftest.$ac_ext <<_ACEOF
4666/* end confdefs.h.  */
4667#include <stdlib.h>
4668#include <stdarg.h>
4669#include <string.h>
4670#include <float.h>
4671
4672int
4673main ()
4674{
4675
4676  ;
4677  return 0;
4678}
4679_ACEOF
4680rm -f conftest.$ac_objext
4681if { (ac_try="$ac_compile"
4682case "(($ac_try" in
4683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684  *) ac_try_echo=$ac_try;;
4685esac
4686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687  (eval "$ac_compile") 2>conftest.er1
4688  ac_status=$?
4689  grep -v '^ *+' conftest.er1 >conftest.err
4690  rm -f conftest.er1
4691  cat conftest.err >&5
4692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693  (exit $ac_status); } && {
4694         test -z "$ac_c_werror_flag" ||
4695         test ! -s conftest.err
4696       } && test -s conftest.$ac_objext; then
4697  ac_cv_header_stdc=yes
4698else
4699  echo "$as_me: failed program was:" >&5
4700sed 's/^/| /' conftest.$ac_ext >&5
4701
4702        ac_cv_header_stdc=no
4703fi
4704
4705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706
4707if test $ac_cv_header_stdc = yes; then
4708  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4709  cat >conftest.$ac_ext <<_ACEOF
4710/* confdefs.h.  */
4711_ACEOF
4712cat confdefs.h >>conftest.$ac_ext
4713cat >>conftest.$ac_ext <<_ACEOF
4714/* end confdefs.h.  */
4715#include <string.h>
4716
4717_ACEOF
4718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4719  $EGREP "memchr" >/dev/null 2>&1; then
4720  :
4721else
4722  ac_cv_header_stdc=no
4723fi
4724rm -f conftest*
4725
4726fi
4727
4728if test $ac_cv_header_stdc = yes; then
4729  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4730  cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h.  */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h.  */
4736#include <stdlib.h>
4737
4738_ACEOF
4739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4740  $EGREP "free" >/dev/null 2>&1; then
4741  :
4742else
4743  ac_cv_header_stdc=no
4744fi
4745rm -f conftest*
4746
4747fi
4748
4749if test $ac_cv_header_stdc = yes; then
4750  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4751  if test "$cross_compiling" = yes; then
4752  :
4753else
4754  cat >conftest.$ac_ext <<_ACEOF
4755/* confdefs.h.  */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h.  */
4760#include <ctype.h>
4761#include <stdlib.h>
4762#if ((' ' & 0x0FF) == 0x020)
4763# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4764# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4765#else
4766# define ISLOWER(c) \
4767                   (('a' <= (c) && (c) <= 'i') \
4768                     || ('j' <= (c) && (c) <= 'r') \
4769                     || ('s' <= (c) && (c) <= 'z'))
4770# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4771#endif
4772
4773#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4774int
4775main ()
4776{
4777  int i;
4778  for (i = 0; i < 256; i++)
4779    if (XOR (islower (i), ISLOWER (i))
4780        || toupper (i) != TOUPPER (i))
4781      return 2;
4782  return 0;
4783}
4784_ACEOF
4785rm -f conftest$ac_exeext
4786if { (ac_try="$ac_link"
4787case "(($ac_try" in
4788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789  *) ac_try_echo=$ac_try;;
4790esac
4791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792  (eval "$ac_link") 2>&5
4793  ac_status=$?
4794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4796  { (case "(($ac_try" in
4797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798  *) ac_try_echo=$ac_try;;
4799esac
4800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801  (eval "$ac_try") 2>&5
4802  ac_status=$?
4803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); }; }; then
4805  :
4806else
4807  echo "$as_me: program exited with status $ac_status" >&5
4808echo "$as_me: failed program was:" >&5
4809sed 's/^/| /' conftest.$ac_ext >&5
4810
4811( exit $ac_status )
4812ac_cv_header_stdc=no
4813fi
4814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4815fi
4816
4817
4818fi
4819fi
4820{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4821echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4822if test $ac_cv_header_stdc = yes; then
4823
4824cat >>confdefs.h <<\_ACEOF
4825#define STDC_HEADERS 1
4826_ACEOF
4827
4828fi
4829
4830# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4841                  inttypes.h stdint.h unistd.h
4842do
4843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4844{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4847  echo $ECHO_N "(cached) $ECHO_C" >&6
4848else
4849  cat >conftest.$ac_ext <<_ACEOF
4850/* confdefs.h.  */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
4854/* end confdefs.h.  */
4855$ac_includes_default
4856
4857#include <$ac_header>
4858_ACEOF
4859rm -f conftest.$ac_objext
4860if { (ac_try="$ac_compile"
4861case "(($ac_try" in
4862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863  *) ac_try_echo=$ac_try;;
4864esac
4865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866  (eval "$ac_compile") 2>conftest.er1
4867  ac_status=$?
4868  grep -v '^ *+' conftest.er1 >conftest.err
4869  rm -f conftest.er1
4870  cat conftest.err >&5
4871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872  (exit $ac_status); } && {
4873         test -z "$ac_c_werror_flag" ||
4874         test ! -s conftest.err
4875       } && test -s conftest.$ac_objext; then
4876  eval "$as_ac_Header=yes"
4877else
4878  echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881        eval "$as_ac_Header=no"
4882fi
4883
4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885fi
4886ac_res=`eval echo '${'$as_ac_Header'}'`
4887               { echo "$as_me:$LINENO: result: $ac_res" >&5
4888echo "${ECHO_T}$ac_res" >&6; }
4889if test `eval echo '${'$as_ac_Header'}'` = yes; then
4890  cat >>confdefs.h <<_ACEOF
4891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4892_ACEOF
4893
4894fi
4895
4896done
4897
4898
4899{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4900echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4901if test "${ac_cv_c_bigendian+set}" = set; then
4902  echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904  # See if sys/param.h defines the BYTE_ORDER macro.
4905cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h.  */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h.  */
4911#include <sys/types.h>
4912#include <sys/param.h>
4913
4914int
4915main ()
4916{
4917#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4918        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4919 bogus endian macros
4920#endif
4921
4922  ;
4923  return 0;
4924}
4925_ACEOF
4926rm -f conftest.$ac_objext
4927if { (ac_try="$ac_compile"
4928case "(($ac_try" in
4929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930  *) ac_try_echo=$ac_try;;
4931esac
4932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933  (eval "$ac_compile") 2>conftest.er1
4934  ac_status=$?
4935  grep -v '^ *+' conftest.er1 >conftest.err
4936  rm -f conftest.er1
4937  cat conftest.err >&5
4938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939  (exit $ac_status); } && {
4940         test -z "$ac_c_werror_flag" ||
4941         test ! -s conftest.err
4942       } && test -s conftest.$ac_objext; then
4943  # It does; now see whether it defined to BIG_ENDIAN or not.
4944cat >conftest.$ac_ext <<_ACEOF
4945/* confdefs.h.  */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h.  */
4950#include <sys/types.h>
4951#include <sys/param.h>
4952
4953int
4954main ()
4955{
4956#if BYTE_ORDER != BIG_ENDIAN
4957 not big endian
4958#endif
4959
4960  ;
4961  return 0;
4962}
4963_ACEOF
4964rm -f conftest.$ac_objext
4965if { (ac_try="$ac_compile"
4966case "(($ac_try" in
4967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968  *) ac_try_echo=$ac_try;;
4969esac
4970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971  (eval "$ac_compile") 2>conftest.er1
4972  ac_status=$?
4973  grep -v '^ *+' conftest.er1 >conftest.err
4974  rm -f conftest.er1
4975  cat conftest.err >&5
4976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977  (exit $ac_status); } && {
4978         test -z "$ac_c_werror_flag" ||
4979         test ! -s conftest.err
4980       } && test -s conftest.$ac_objext; then
4981  ac_cv_c_bigendian=yes
4982else
4983  echo "$as_me: failed program was:" >&5
4984sed 's/^/| /' conftest.$ac_ext >&5
4985
4986        ac_cv_c_bigendian=no
4987fi
4988
4989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990else
4991  echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994        # It does not; compile a test program.
4995if test "$cross_compiling" = yes; then
4996  # try to guess the endianness by grepping values into an object file
4997  ac_cv_c_bigendian=unknown
4998  cat >conftest.$ac_ext <<_ACEOF
4999/* confdefs.h.  */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h.  */
5004short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5005short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5006void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5007short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5008short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5009void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5010int
5011main ()
5012{
5013 _ascii (); _ebcdic ();
5014  ;
5015  return 0;
5016}
5017_ACEOF
5018rm -f conftest.$ac_objext
5019if { (ac_try="$ac_compile"
5020case "(($ac_try" in
5021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022  *) ac_try_echo=$ac_try;;
5023esac
5024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025  (eval "$ac_compile") 2>conftest.er1
5026  ac_status=$?
5027  grep -v '^ *+' conftest.er1 >conftest.err
5028  rm -f conftest.er1
5029  cat conftest.err >&5
5030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031  (exit $ac_status); } && {
5032         test -z "$ac_c_werror_flag" ||
5033         test ! -s conftest.err
5034       } && test -s conftest.$ac_objext; then
5035  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5036  ac_cv_c_bigendian=yes
5037fi
5038if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5039  if test "$ac_cv_c_bigendian" = unknown; then
5040    ac_cv_c_bigendian=no
5041  else
5042    # finding both strings is unlikely to happen, but who knows?
5043    ac_cv_c_bigendian=unknown
5044  fi
5045fi
5046else
5047  echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050
5051fi
5052
5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054else
5055  cat >conftest.$ac_ext <<_ACEOF
5056/* confdefs.h.  */
5057_ACEOF
5058cat confdefs.h >>conftest.$ac_ext
5059cat >>conftest.$ac_ext <<_ACEOF
5060/* end confdefs.h.  */
5061$ac_includes_default
5062int
5063main ()
5064{
5065
5066  /* Are we little or big endian?  From Harbison&Steele.  */
5067  union
5068  {
5069    long int l;
5070    char c[sizeof (long int)];
5071  } u;
5072  u.l = 1;
5073  return u.c[sizeof (long int) - 1] == 1;
5074
5075  ;
5076  return 0;
5077}
5078_ACEOF
5079rm -f conftest$ac_exeext
5080if { (ac_try="$ac_link"
5081case "(($ac_try" in
5082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083  *) ac_try_echo=$ac_try;;
5084esac
5085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086  (eval "$ac_link") 2>&5
5087  ac_status=$?
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5090  { (case "(($ac_try" in
5091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092  *) ac_try_echo=$ac_try;;
5093esac
5094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095  (eval "$ac_try") 2>&5
5096  ac_status=$?
5097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098  (exit $ac_status); }; }; then
5099  ac_cv_c_bigendian=no
5100else
5101  echo "$as_me: program exited with status $ac_status" >&5
5102echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105( exit $ac_status )
5106ac_cv_c_bigendian=yes
5107fi
5108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5109fi
5110
5111
5112fi
5113
5114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115fi
5116{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5117echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5118case $ac_cv_c_bigendian in
5119  yes)
5120    ac_is_bigendian=yes ;;
5121  no)
5122    ac_is_bigendian=no
5123 ;;
5124  *)
5125    { { echo "$as_me:$LINENO: error: unknown endianness
5126presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5127echo "$as_me: error: unknown endianness
5128presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5129   { (exit 1); exit 1; }; } ;;
5130esac
5131
5132if test $ac_is_bigendian = yes; then
5133        CFLAGS_ARCH="$CFLAGS_ARCH -DUSE_MSB"
5134else
5135        CFLAGS_ARCH="$CFLAGS_ARCH -DUSE_LSB"
5136fi
5137
5138{ echo "$as_me:$LINENO: checking for char" >&5
5139echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5140if test "${ac_cv_type_char+set}" = set; then
5141  echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143  cat >conftest.$ac_ext <<_ACEOF
5144/* confdefs.h.  */
5145_ACEOF
5146cat confdefs.h >>conftest.$ac_ext
5147cat >>conftest.$ac_ext <<_ACEOF
5148/* end confdefs.h.  */
5149$ac_includes_default
5150typedef char ac__type_new_;
5151int
5152main ()
5153{
5154if ((ac__type_new_ *) 0)
5155  return 0;
5156if (sizeof (ac__type_new_))
5157  return 0;
5158  ;
5159  return 0;
5160}
5161_ACEOF
5162rm -f conftest.$ac_objext
5163if { (ac_try="$ac_compile"
5164case "(($ac_try" in
5165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166  *) ac_try_echo=$ac_try;;
5167esac
5168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5169  (eval "$ac_compile") 2>conftest.er1
5170  ac_status=$?
5171  grep -v '^ *+' conftest.er1 >conftest.err
5172  rm -f conftest.er1
5173  cat conftest.err >&5
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); } && {
5176         test -z "$ac_c_werror_flag" ||
5177         test ! -s conftest.err
5178       } && test -s conftest.$ac_objext; then
5179  ac_cv_type_char=yes
5180else
5181  echo "$as_me: failed program was:" >&5
5182sed 's/^/| /' conftest.$ac_ext >&5
5183
5184        ac_cv_type_char=no
5185fi
5186
5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188fi
5189{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5190echo "${ECHO_T}$ac_cv_type_char" >&6; }
5191
5192# The cast to long int works around a bug in the HP C Compiler
5193# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5194# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5195# This bug is HP SR number 8606223364.
5196{ echo "$as_me:$LINENO: checking size of char" >&5
5197echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5198if test "${ac_cv_sizeof_char+set}" = set; then
5199  echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201  if test "$cross_compiling" = yes; then
5202  # Depending upon the size, compute the lo and hi bounds.
5203cat >conftest.$ac_ext <<_ACEOF
5204/* confdefs.h.  */
5205_ACEOF
5206cat confdefs.h >>conftest.$ac_ext
5207cat >>conftest.$ac_ext <<_ACEOF
5208/* end confdefs.h.  */
5209$ac_includes_default
5210   typedef char ac__type_sizeof_;
5211int
5212main ()
5213{
5214static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5215test_array [0] = 0
5216
5217  ;
5218  return 0;
5219}
5220_ACEOF
5221rm -f conftest.$ac_objext
5222if { (ac_try="$ac_compile"
5223case "(($ac_try" in
5224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225  *) ac_try_echo=$ac_try;;
5226esac
5227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228  (eval "$ac_compile") 2>conftest.er1
5229  ac_status=$?
5230  grep -v '^ *+' conftest.er1 >conftest.err
5231  rm -f conftest.er1
5232  cat conftest.err >&5
5233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234  (exit $ac_status); } && {
5235         test -z "$ac_c_werror_flag" ||
5236         test ! -s conftest.err
5237       } && test -s conftest.$ac_objext; then
5238  ac_lo=0 ac_mid=0
5239  while :; do
5240    cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h.  */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h.  */
5246$ac_includes_default
5247   typedef char ac__type_sizeof_;
5248int
5249main ()
5250{
5251static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5252test_array [0] = 0
5253
5254  ;
5255  return 0;
5256}
5257_ACEOF
5258rm -f conftest.$ac_objext
5259if { (ac_try="$ac_compile"
5260case "(($ac_try" in
5261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262  *) ac_try_echo=$ac_try;;
5263esac
5264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265  (eval "$ac_compile") 2>conftest.er1
5266  ac_status=$?
5267  grep -v '^ *+' conftest.er1 >conftest.err
5268  rm -f conftest.er1
5269  cat conftest.err >&5
5270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271  (exit $ac_status); } && {
5272         test -z "$ac_c_werror_flag" ||
5273         test ! -s conftest.err
5274       } && test -s conftest.$ac_objext; then
5275  ac_hi=$ac_mid; break
5276else
5277  echo "$as_me: failed program was:" >&5
5278sed 's/^/| /' conftest.$ac_ext >&5
5279
5280        ac_lo=`expr $ac_mid + 1`
5281                        if test $ac_lo -le $ac_mid; then
5282                          ac_lo= ac_hi=
5283                          break
5284                        fi
5285                        ac_mid=`expr 2 '*' $ac_mid + 1`
5286fi
5287
5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289  done
5290else
5291  echo "$as_me: failed program was:" >&5
5292sed 's/^/| /' conftest.$ac_ext >&5
5293
5294        cat >conftest.$ac_ext <<_ACEOF
5295/* confdefs.h.  */
5296_ACEOF
5297cat confdefs.h >>conftest.$ac_ext
5298cat >>conftest.$ac_ext <<_ACEOF
5299/* end confdefs.h.  */
5300$ac_includes_default
5301   typedef char ac__type_sizeof_;
5302int
5303main ()
5304{
5305static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5306test_array [0] = 0
5307
5308  ;
5309  return 0;
5310}
5311_ACEOF
5312rm -f conftest.$ac_objext
5313if { (ac_try="$ac_compile"
5314case "(($ac_try" in
5315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316  *) ac_try_echo=$ac_try;;
5317esac
5318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319  (eval "$ac_compile") 2>conftest.er1
5320  ac_status=$?
5321  grep -v '^ *+' conftest.er1 >conftest.err
5322  rm -f conftest.er1
5323  cat conftest.err >&5
5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); } && {
5326         test -z "$ac_c_werror_flag" ||
5327         test ! -s conftest.err
5328       } && test -s conftest.$ac_objext; then
5329  ac_hi=-1 ac_mid=-1
5330  while :; do
5331    cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h.  */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h.  */
5337$ac_includes_default
5338   typedef char ac__type_sizeof_;
5339int
5340main ()
5341{
5342static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5343test_array [0] = 0
5344
5345  ;
5346  return 0;
5347}
5348_ACEOF
5349rm -f conftest.$ac_objext
5350if { (ac_try="$ac_compile"
5351case "(($ac_try" in
5352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353  *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356  (eval "$ac_compile") 2>conftest.er1
5357  ac_status=$?
5358  grep -v '^ *+' conftest.er1 >conftest.err
5359  rm -f conftest.er1
5360  cat conftest.err >&5
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); } && {
5363         test -z "$ac_c_werror_flag" ||
5364         test ! -s conftest.err
5365       } && test -s conftest.$ac_objext; then
5366  ac_lo=$ac_mid; break
5367else
5368  echo "$as_me: failed program was:" >&5
5369sed 's/^/| /' conftest.$ac_ext >&5
5370
5371        ac_hi=`expr '(' $ac_mid ')' - 1`
5372                        if test $ac_mid -le $ac_hi; then
5373                          ac_lo= ac_hi=
5374                          break
5375                        fi
5376                        ac_mid=`expr 2 '*' $ac_mid`
5377fi
5378
5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380  done
5381else
5382  echo "$as_me: failed program was:" >&5
5383sed 's/^/| /' conftest.$ac_ext >&5
5384
5385        ac_lo= ac_hi=
5386fi
5387
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389fi
5390
5391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392# Binary search between lo and hi bounds.
5393while test "x$ac_lo" != "x$ac_hi"; do
5394  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5395  cat >conftest.$ac_ext <<_ACEOF
5396/* confdefs.h.  */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h.  */
5401$ac_includes_default
5402   typedef char ac__type_sizeof_;
5403int
5404main ()
5405{
5406static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5407test_array [0] = 0
5408
5409  ;
5410  return 0;
5411}
5412_ACEOF
5413rm -f conftest.$ac_objext
5414if { (ac_try="$ac_compile"
5415case "(($ac_try" in
5416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417  *) ac_try_echo=$ac_try;;
5418esac
5419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420  (eval "$ac_compile") 2>conftest.er1
5421  ac_status=$?
5422  grep -v '^ *+' conftest.er1 >conftest.err
5423  rm -f conftest.er1
5424  cat conftest.err >&5
5425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426  (exit $ac_status); } && {
5427         test -z "$ac_c_werror_flag" ||
5428         test ! -s conftest.err
5429       } && test -s conftest.$ac_objext; then
5430  ac_hi=$ac_mid
5431else
5432  echo "$as_me: failed program was:" >&5
5433sed 's/^/| /' conftest.$ac_ext >&5
5434
5435        ac_lo=`expr '(' $ac_mid ')' + 1`
5436fi
5437
5438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439done
5440case $ac_lo in
5441?*) ac_cv_sizeof_char=$ac_lo;;
5442'') if test "$ac_cv_type_char" = yes; then
5443     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5444See \`config.log' for more details." >&5
5445echo "$as_me: error: cannot compute sizeof (char)
5446See \`config.log' for more details." >&2;}
5447   { (exit 77); exit 77; }; }
5448   else
5449     ac_cv_sizeof_char=0
5450   fi ;;
5451esac
5452else
5453  cat >conftest.$ac_ext <<_ACEOF
5454/* confdefs.h.  */
5455_ACEOF
5456cat confdefs.h >>conftest.$ac_ext
5457cat >>conftest.$ac_ext <<_ACEOF
5458/* end confdefs.h.  */
5459$ac_includes_default
5460   typedef char ac__type_sizeof_;
5461static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5462static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5463#include <stdio.h>
5464#include <stdlib.h>
5465int
5466main ()
5467{
5468
5469  FILE *f = fopen ("conftest.val", "w");
5470  if (! f)
5471    return 1;
5472  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5473    {
5474      long int i = longval ();
5475      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5476        return 1;
5477      fprintf (f, "%ld\n", i);
5478    }
5479  else
5480    {
5481      unsigned long int i = ulongval ();
5482      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5483        return 1;
5484      fprintf (f, "%lu\n", i);
5485    }
5486  return ferror (f) || fclose (f) != 0;
5487
5488  ;
5489  return 0;
5490}
5491_ACEOF
5492rm -f conftest$ac_exeext
5493if { (ac_try="$ac_link"
5494case "(($ac_try" in
5495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496  *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499  (eval "$ac_link") 2>&5
5500  ac_status=$?
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5503  { (case "(($ac_try" in
5504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505  *) ac_try_echo=$ac_try;;
5506esac
5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508  (eval "$ac_try") 2>&5
5509  ac_status=$?
5510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511  (exit $ac_status); }; }; then
5512  ac_cv_sizeof_char=`cat conftest.val`
5513else
5514  echo "$as_me: program exited with status $ac_status" >&5
5515echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
5517
5518( exit $ac_status )
5519if test "$ac_cv_type_char" = yes; then
5520     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5521See \`config.log' for more details." >&5
5522echo "$as_me: error: cannot compute sizeof (char)
5523See \`config.log' for more details." >&2;}
5524   { (exit 77); exit 77; }; }
5525   else
5526     ac_cv_sizeof_char=0
5527   fi
5528fi
5529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5530fi
5531rm -f conftest.val
5532fi
5533{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5534echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5535
5536
5537
5538cat >>confdefs.h <<_ACEOF
5539#define SIZEOF_CHAR $ac_cv_sizeof_char
5540_ACEOF
5541
5542
5543{ echo "$as_me:$LINENO: checking for short" >&5
5544echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5545if test "${ac_cv_type_short+set}" = set; then
5546  echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
5548  cat >conftest.$ac_ext <<_ACEOF
5549/* confdefs.h.  */
5550_ACEOF
5551cat confdefs.h >>conftest.$ac_ext
5552cat >>conftest.$ac_ext <<_ACEOF
5553/* end confdefs.h.  */
5554$ac_includes_default
5555typedef short ac__type_new_;
5556int
5557main ()
5558{
5559if ((ac__type_new_ *) 0)
5560  return 0;
5561if (sizeof (ac__type_new_))
5562  return 0;
5563  ;
5564  return 0;
5565}
5566_ACEOF
5567rm -f conftest.$ac_objext
5568if { (ac_try="$ac_compile"
5569case "(($ac_try" in
5570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571  *) ac_try_echo=$ac_try;;
5572esac
5573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574  (eval "$ac_compile") 2>conftest.er1
5575  ac_status=$?
5576  grep -v '^ *+' conftest.er1 >conftest.err
5577  rm -f conftest.er1
5578  cat conftest.err >&5
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); } && {
5581         test -z "$ac_c_werror_flag" ||
5582         test ! -s conftest.err
5583       } && test -s conftest.$ac_objext; then
5584  ac_cv_type_short=yes
5585else
5586  echo "$as_me: failed program was:" >&5
5587sed 's/^/| /' conftest.$ac_ext >&5
5588
5589        ac_cv_type_short=no
5590fi
5591
5592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593fi
5594{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5595echo "${ECHO_T}$ac_cv_type_short" >&6; }
5596
5597# The cast to long int works around a bug in the HP C Compiler
5598# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5599# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5600# This bug is HP SR number 8606223364.
5601{ echo "$as_me:$LINENO: checking size of short" >&5
5602echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5603if test "${ac_cv_sizeof_short+set}" = set; then
5604  echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
5606  if test "$cross_compiling" = yes; then
5607  # Depending upon the size, compute the lo and hi bounds.
5608cat >conftest.$ac_ext <<_ACEOF
5609/* confdefs.h.  */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
5613/* end confdefs.h.  */
5614$ac_includes_default
5615   typedef short ac__type_sizeof_;
5616int
5617main ()
5618{
5619static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5620test_array [0] = 0
5621
5622  ;
5623  return 0;
5624}
5625_ACEOF
5626rm -f conftest.$ac_objext
5627if { (ac_try="$ac_compile"
5628case "(($ac_try" in
5629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630  *) ac_try_echo=$ac_try;;
5631esac
5632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633  (eval "$ac_compile") 2>conftest.er1
5634  ac_status=$?
5635  grep -v '^ *+' conftest.er1 >conftest.err
5636  rm -f conftest.er1
5637  cat conftest.err >&5
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); } && {
5640         test -z "$ac_c_werror_flag" ||
5641         test ! -s conftest.err
5642       } && test -s conftest.$ac_objext; then
5643  ac_lo=0 ac_mid=0
5644  while :; do
5645    cat >conftest.$ac_ext <<_ACEOF
5646/* confdefs.h.  */
5647_ACEOF
5648cat confdefs.h >>conftest.$ac_ext
5649cat >>conftest.$ac_ext <<_ACEOF
5650/* end confdefs.h.  */
5651$ac_includes_default
5652   typedef short ac__type_sizeof_;
5653int
5654main ()
5655{
5656static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5657test_array [0] = 0
5658
5659  ;
5660  return 0;
5661}
5662_ACEOF
5663rm -f conftest.$ac_objext
5664if { (ac_try="$ac_compile"
5665case "(($ac_try" in
5666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667  *) ac_try_echo=$ac_try;;
5668esac
5669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670  (eval "$ac_compile") 2>conftest.er1
5671  ac_status=$?
5672  grep -v '^ *+' conftest.er1 >conftest.err
5673  rm -f conftest.er1
5674  cat conftest.err >&5
5675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676  (exit $ac_status); } && {
5677         test -z "$ac_c_werror_flag" ||
5678         test ! -s conftest.err
5679       } && test -s conftest.$ac_objext; then
5680  ac_hi=$ac_mid; break
5681else
5682  echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685        ac_lo=`expr $ac_mid + 1`
5686                        if test $ac_lo -le $ac_mid; then
5687                          ac_lo= ac_hi=
5688                          break
5689                        fi
5690                        ac_mid=`expr 2 '*' $ac_mid + 1`
5691fi
5692
5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694  done
5695else
5696  echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699        cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h.  */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h.  */
5705$ac_includes_default
5706   typedef short ac__type_sizeof_;
5707int
5708main ()
5709{
5710static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5711test_array [0] = 0
5712
5713  ;
5714  return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext
5718if { (ac_try="$ac_compile"
5719case "(($ac_try" in
5720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721  *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724  (eval "$ac_compile") 2>conftest.er1
5725  ac_status=$?
5726  grep -v '^ *+' conftest.er1 >conftest.err
5727  rm -f conftest.er1
5728  cat conftest.err >&5
5729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730  (exit $ac_status); } && {
5731         test -z "$ac_c_werror_flag" ||
5732         test ! -s conftest.err
5733       } && test -s conftest.$ac_objext; then
5734  ac_hi=-1 ac_mid=-1
5735  while :; do
5736    cat >conftest.$ac_ext <<_ACEOF
5737/* confdefs.h.  */
5738_ACEOF
5739cat confdefs.h >>conftest.$ac_ext
5740cat >>conftest.$ac_ext <<_ACEOF
5741/* end confdefs.h.  */
5742$ac_includes_default
5743   typedef short ac__type_sizeof_;
5744int
5745main ()
5746{
5747static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5748test_array [0] = 0
5749
5750  ;
5751  return 0;
5752}
5753_ACEOF
5754rm -f conftest.$ac_objext
5755if { (ac_try="$ac_compile"
5756case "(($ac_try" in
5757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758  *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761  (eval "$ac_compile") 2>conftest.er1
5762  ac_status=$?
5763  grep -v '^ *+' conftest.er1 >conftest.err
5764  rm -f conftest.er1
5765  cat conftest.err >&5
5766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767  (exit $ac_status); } && {
5768         test -z "$ac_c_werror_flag" ||
5769         test ! -s conftest.err
5770       } && test -s conftest.$ac_objext; then
5771  ac_lo=$ac_mid; break
5772else
5773  echo "$as_me: failed program was:" >&5
5774sed 's/^/| /' conftest.$ac_ext >&5
5775
5776        ac_hi=`expr '(' $ac_mid ')' - 1`
5777                        if test $ac_mid -le $ac_hi; then
5778                          ac_lo= ac_hi=
5779                          break
5780                        fi
5781                        ac_mid=`expr 2 '*' $ac_mid`
5782fi
5783
5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785  done
5786else
5787  echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790        ac_lo= ac_hi=
5791fi
5792
5793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794fi
5795
5796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797# Binary search between lo and hi bounds.
5798while test "x$ac_lo" != "x$ac_hi"; do
5799  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5800  cat >conftest.$ac_ext <<_ACEOF
5801/* confdefs.h.  */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h.  */
5806$ac_includes_default
5807   typedef short ac__type_sizeof_;
5808int
5809main ()
5810{
5811static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5812test_array [0] = 0
5813
5814  ;
5815  return 0;
5816}
5817_ACEOF
5818rm -f conftest.$ac_objext
5819if { (ac_try="$ac_compile"
5820case "(($ac_try" in
5821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822  *) ac_try_echo=$ac_try;;
5823esac
5824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825  (eval "$ac_compile") 2>conftest.er1
5826  ac_status=$?
5827  grep -v '^ *+' conftest.er1 >conftest.err
5828  rm -f conftest.er1
5829  cat conftest.err >&5
5830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831  (exit $ac_status); } && {
5832         test -z "$ac_c_werror_flag" ||
5833         test ! -s conftest.err
5834       } && test -s conftest.$ac_objext; then
5835  ac_hi=$ac_mid
5836else
5837  echo "$as_me: failed program was:" >&5
5838sed 's/^/| /' conftest.$ac_ext >&5
5839
5840        ac_lo=`expr '(' $ac_mid ')' + 1`
5841fi
5842
5843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844done
5845case $ac_lo in
5846?*) ac_cv_sizeof_short=$ac_lo;;
5847'') if test "$ac_cv_type_short" = yes; then
5848     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5849See \`config.log' for more details." >&5
5850echo "$as_me: error: cannot compute sizeof (short)
5851See \`config.log' for more details." >&2;}
5852   { (exit 77); exit 77; }; }
5853   else
5854     ac_cv_sizeof_short=0
5855   fi ;;
5856esac
5857else
5858  cat >conftest.$ac_ext <<_ACEOF
5859/* confdefs.h.  */
5860_ACEOF
5861cat confdefs.h >>conftest.$ac_ext
5862cat >>conftest.$ac_ext <<_ACEOF
5863/* end confdefs.h.  */
5864$ac_includes_default
5865   typedef short ac__type_sizeof_;
5866static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5867static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5868#include <stdio.h>
5869#include <stdlib.h>
5870int
5871main ()
5872{
5873
5874  FILE *f = fopen ("conftest.val", "w");
5875  if (! f)
5876    return 1;
5877  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5878    {
5879      long int i = longval ();
5880      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5881        return 1;
5882      fprintf (f, "%ld\n", i);
5883    }
5884  else
5885    {
5886      unsigned long int i = ulongval ();
5887      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5888        return 1;
5889      fprintf (f, "%lu\n", i);
5890    }
5891  return ferror (f) || fclose (f) != 0;
5892
5893  ;
5894  return 0;
5895}
5896_ACEOF
5897rm -f conftest$ac_exeext
5898if { (ac_try="$ac_link"
5899case "(($ac_try" in
5900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901  *) ac_try_echo=$ac_try;;
5902esac
5903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904  (eval "$ac_link") 2>&5
5905  ac_status=$?
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5908  { (case "(($ac_try" in
5909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910  *) ac_try_echo=$ac_try;;
5911esac
5912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913  (eval "$ac_try") 2>&5
5914  ac_status=$?
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); }; }; then
5917  ac_cv_sizeof_short=`cat conftest.val`
5918else
5919  echo "$as_me: program exited with status $ac_status" >&5
5920echo "$as_me: failed program was:" >&5
5921sed 's/^/| /' conftest.$ac_ext >&5
5922
5923( exit $ac_status )
5924if test "$ac_cv_type_short" = yes; then
5925     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5926See \`config.log' for more details." >&5
5927echo "$as_me: error: cannot compute sizeof (short)
5928See \`config.log' for more details." >&2;}
5929   { (exit 77); exit 77; }; }
5930   else
5931     ac_cv_sizeof_short=0
5932   fi
5933fi
5934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5935fi
5936rm -f conftest.val
5937fi
5938{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5939echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5940
5941
5942
5943cat >>confdefs.h <<_ACEOF
5944#define SIZEOF_SHORT $ac_cv_sizeof_short
5945_ACEOF
5946
5947
5948{ echo "$as_me:$LINENO: checking for int" >&5
5949echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5950if test "${ac_cv_type_int+set}" = set; then
5951  echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953  cat >conftest.$ac_ext <<_ACEOF
5954/* confdefs.h.  */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h.  */
5959$ac_includes_default
5960typedef int ac__type_new_;
5961int
5962main ()
5963{
5964if ((ac__type_new_ *) 0)
5965  return 0;
5966if (sizeof (ac__type_new_))
5967  return 0;
5968  ;
5969  return 0;
5970}
5971_ACEOF
5972rm -f conftest.$ac_objext
5973if { (ac_try="$ac_compile"
5974case "(($ac_try" in
5975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976  *) ac_try_echo=$ac_try;;
5977esac
5978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979  (eval "$ac_compile") 2>conftest.er1
5980  ac_status=$?
5981  grep -v '^ *+' conftest.er1 >conftest.err
5982  rm -f conftest.er1
5983  cat conftest.err >&5
5984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); } && {
5986         test -z "$ac_c_werror_flag" ||
5987         test ! -s conftest.err
5988       } && test -s conftest.$ac_objext; then
5989  ac_cv_type_int=yes
5990else
5991  echo "$as_me: failed program was:" >&5
5992sed 's/^/| /' conftest.$ac_ext >&5
5993
5994        ac_cv_type_int=no
5995fi
5996
5997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998fi
5999{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6000echo "${ECHO_T}$ac_cv_type_int" >&6; }
6001
6002# The cast to long int works around a bug in the HP C Compiler
6003# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6004# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6005# This bug is HP SR number 8606223364.
6006{ echo "$as_me:$LINENO: checking size of int" >&5
6007echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6008if test "${ac_cv_sizeof_int+set}" = set; then
6009  echo $ECHO_N "(cached) $ECHO_C" >&6
6010else
6011  if test "$cross_compiling" = yes; then
6012  # Depending upon the size, compute the lo and hi bounds.
6013cat >conftest.$ac_ext <<_ACEOF
6014/* confdefs.h.  */
6015_ACEOF
6016cat confdefs.h >>conftest.$ac_ext
6017cat >>conftest.$ac_ext <<_ACEOF
6018/* end confdefs.h.  */
6019$ac_includes_default
6020   typedef int ac__type_sizeof_;
6021int
6022main ()
6023{
6024static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6025test_array [0] = 0
6026
6027  ;
6028  return 0;
6029}
6030_ACEOF
6031rm -f conftest.$ac_objext
6032if { (ac_try="$ac_compile"
6033case "(($ac_try" in
6034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035  *) ac_try_echo=$ac_try;;
6036esac
6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038  (eval "$ac_compile") 2>conftest.er1
6039  ac_status=$?
6040  grep -v '^ *+' conftest.er1 >conftest.err
6041  rm -f conftest.er1
6042  cat conftest.err >&5
6043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); } && {
6045         test -z "$ac_c_werror_flag" ||
6046         test ! -s conftest.err
6047       } && test -s conftest.$ac_objext; then
6048  ac_lo=0 ac_mid=0
6049  while :; do
6050    cat >conftest.$ac_ext <<_ACEOF
6051/* confdefs.h.  */
6052_ACEOF
6053cat confdefs.h >>conftest.$ac_ext
6054cat >>conftest.$ac_ext <<_ACEOF
6055/* end confdefs.h.  */
6056$ac_includes_default
6057   typedef int ac__type_sizeof_;
6058int
6059main ()
6060{
6061static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6062test_array [0] = 0
6063
6064  ;
6065  return 0;
6066}
6067_ACEOF
6068rm -f conftest.$ac_objext
6069if { (ac_try="$ac_compile"
6070case "(($ac_try" in
6071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072  *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075  (eval "$ac_compile") 2>conftest.er1
6076  ac_status=$?
6077  grep -v '^ *+' conftest.er1 >conftest.err
6078  rm -f conftest.er1
6079  cat conftest.err >&5
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); } && {
6082         test -z "$ac_c_werror_flag" ||
6083         test ! -s conftest.err
6084       } && test -s conftest.$ac_objext; then
6085  ac_hi=$ac_mid; break
6086else
6087  echo "$as_me: failed program was:" >&5
6088sed 's/^/| /' conftest.$ac_ext >&5
6089
6090        ac_lo=`expr $ac_mid + 1`
6091                        if test $ac_lo -le $ac_mid; then
6092                          ac_lo= ac_hi=
6093                          break
6094                        fi
6095                        ac_mid=`expr 2 '*' $ac_mid + 1`
6096fi
6097
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099  done
6100else
6101  echo "$as_me: failed program was:" >&5
6102sed 's/^/| /' conftest.$ac_ext >&5
6103
6104        cat >conftest.$ac_ext <<_ACEOF
6105/* confdefs.h.  */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h.  */
6110$ac_includes_default
6111   typedef int ac__type_sizeof_;
6112int
6113main ()
6114{
6115static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6116test_array [0] = 0
6117
6118  ;
6119  return 0;
6120}
6121_ACEOF
6122rm -f conftest.$ac_objext
6123if { (ac_try="$ac_compile"
6124case "(($ac_try" in
6125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126  *) ac_try_echo=$ac_try;;
6127esac
6128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129  (eval "$ac_compile") 2>conftest.er1
6130  ac_status=$?
6131  grep -v '^ *+' conftest.er1 >conftest.err
6132  rm -f conftest.er1
6133  cat conftest.err >&5
6134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135  (exit $ac_status); } && {
6136         test -z "$ac_c_werror_flag" ||
6137         test ! -s conftest.err
6138       } && test -s conftest.$ac_objext; then
6139  ac_hi=-1 ac_mid=-1
6140  while :; do
6141    cat >conftest.$ac_ext <<_ACEOF
6142/* confdefs.h.  */
6143_ACEOF
6144cat confdefs.h >>conftest.$ac_ext
6145cat >>conftest.$ac_ext <<_ACEOF
6146/* end confdefs.h.  */
6147$ac_includes_default
6148   typedef int ac__type_sizeof_;
6149int
6150main ()
6151{
6152static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6153test_array [0] = 0
6154
6155  ;
6156  return 0;
6157}
6158_ACEOF
6159rm -f conftest.$ac_objext
6160if { (ac_try="$ac_compile"
6161case "(($ac_try" in
6162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163  *) ac_try_echo=$ac_try;;
6164esac
6165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166  (eval "$ac_compile") 2>conftest.er1
6167  ac_status=$?
6168  grep -v '^ *+' conftest.er1 >conftest.err
6169  rm -f conftest.er1
6170  cat conftest.err >&5
6171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); } && {
6173         test -z "$ac_c_werror_flag" ||
6174         test ! -s conftest.err
6175       } && test -s conftest.$ac_objext; then
6176  ac_lo=$ac_mid; break
6177else
6178  echo "$as_me: failed program was:" >&5
6179sed 's/^/| /' conftest.$ac_ext >&5
6180
6181        ac_hi=`expr '(' $ac_mid ')' - 1`
6182                        if test $ac_mid -le $ac_hi; then
6183                          ac_lo= ac_hi=
6184                          break
6185                        fi
6186                        ac_mid=`expr 2 '*' $ac_mid`
6187fi
6188
6189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190  done
6191else
6192  echo "$as_me: failed program was:" >&5
6193sed 's/^/| /' conftest.$ac_ext >&5
6194
6195        ac_lo= ac_hi=
6196fi
6197
6198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199fi
6200
6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202# Binary search between lo and hi bounds.
6203while test "x$ac_lo" != "x$ac_hi"; do
6204  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6205  cat >conftest.$ac_ext <<_ACEOF
6206/* confdefs.h.  */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
6210/* end confdefs.h.  */
6211$ac_includes_default
6212   typedef int ac__type_sizeof_;
6213int
6214main ()
6215{
6216static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6217test_array [0] = 0
6218
6219  ;
6220  return 0;
6221}
6222_ACEOF
6223rm -f conftest.$ac_objext
6224if { (ac_try="$ac_compile"
6225case "(($ac_try" in
6226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227  *) ac_try_echo=$ac_try;;
6228esac
6229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230  (eval "$ac_compile") 2>conftest.er1
6231  ac_status=$?
6232  grep -v '^ *+' conftest.er1 >conftest.err
6233  rm -f conftest.er1
6234  cat conftest.err >&5
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); } && {
6237         test -z "$ac_c_werror_flag" ||
6238         test ! -s conftest.err
6239       } && test -s conftest.$ac_objext; then
6240  ac_hi=$ac_mid
6241else
6242  echo "$as_me: failed program was:" >&5
6243sed 's/^/| /' conftest.$ac_ext >&5
6244
6245        ac_lo=`expr '(' $ac_mid ')' + 1`
6246fi
6247
6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249done
6250case $ac_lo in
6251?*) ac_cv_sizeof_int=$ac_lo;;
6252'') if test "$ac_cv_type_int" = yes; then
6253     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6254See \`config.log' for more details." >&5
6255echo "$as_me: error: cannot compute sizeof (int)
6256See \`config.log' for more details." >&2;}
6257   { (exit 77); exit 77; }; }
6258   else
6259     ac_cv_sizeof_int=0
6260   fi ;;
6261esac
6262else
6263  cat >conftest.$ac_ext <<_ACEOF
6264/* confdefs.h.  */
6265_ACEOF
6266cat confdefs.h >>conftest.$ac_ext
6267cat >>conftest.$ac_ext <<_ACEOF
6268/* end confdefs.h.  */
6269$ac_includes_default
6270   typedef int ac__type_sizeof_;
6271static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6272static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6273#include <stdio.h>
6274#include <stdlib.h>
6275int
6276main ()
6277{
6278
6279  FILE *f = fopen ("conftest.val", "w");
6280  if (! f)
6281    return 1;
6282  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6283    {
6284      long int i = longval ();
6285      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6286        return 1;
6287      fprintf (f, "%ld\n", i);
6288    }
6289  else
6290    {
6291      unsigned long int i = ulongval ();
6292      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6293        return 1;
6294      fprintf (f, "%lu\n", i);
6295    }
6296  return ferror (f) || fclose (f) != 0;
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302rm -f conftest$ac_exeext
6303if { (ac_try="$ac_link"
6304case "(($ac_try" in
6305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306  *) ac_try_echo=$ac_try;;
6307esac
6308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309  (eval "$ac_link") 2>&5
6310  ac_status=$?
6311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6313  { (case "(($ac_try" in
6314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315  *) ac_try_echo=$ac_try;;
6316esac
6317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318  (eval "$ac_try") 2>&5
6319  ac_status=$?
6320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321  (exit $ac_status); }; }; then
6322  ac_cv_sizeof_int=`cat conftest.val`
6323else
6324  echo "$as_me: program exited with status $ac_status" >&5
6325echo "$as_me: failed program was:" >&5
6326sed 's/^/| /' conftest.$ac_ext >&5
6327
6328( exit $ac_status )
6329if test "$ac_cv_type_int" = yes; then
6330     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6331See \`config.log' for more details." >&5
6332echo "$as_me: error: cannot compute sizeof (int)
6333See \`config.log' for more details." >&2;}
6334   { (exit 77); exit 77; }; }
6335   else
6336     ac_cv_sizeof_int=0
6337   fi
6338fi
6339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6340fi
6341rm -f conftest.val
6342fi
6343{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6344echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6345
6346
6347
6348cat >>confdefs.h <<_ACEOF
6349#define SIZEOF_INT $ac_cv_sizeof_int
6350_ACEOF
6351
6352
6353{ echo "$as_me:$LINENO: checking for long" >&5
6354echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6355if test "${ac_cv_type_long+set}" = set; then
6356  echo $ECHO_N "(cached) $ECHO_C" >&6
6357else
6358  cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h.  */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h.  */
6364$ac_includes_default
6365typedef long ac__type_new_;
6366int
6367main ()
6368{
6369if ((ac__type_new_ *) 0)
6370  return 0;
6371if (sizeof (ac__type_new_))
6372  return 0;
6373  ;
6374  return 0;
6375}
6376_ACEOF
6377rm -f conftest.$ac_objext
6378if { (ac_try="$ac_compile"
6379case "(($ac_try" in
6380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381  *) ac_try_echo=$ac_try;;
6382esac
6383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384  (eval "$ac_compile") 2>conftest.er1
6385  ac_status=$?
6386  grep -v '^ *+' conftest.er1 >conftest.err
6387  rm -f conftest.er1
6388  cat conftest.err >&5
6389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390  (exit $ac_status); } && {
6391         test -z "$ac_c_werror_flag" ||
6392         test ! -s conftest.err
6393       } && test -s conftest.$ac_objext; then
6394  ac_cv_type_long=yes
6395else
6396  echo "$as_me: failed program was:" >&5
6397sed 's/^/| /' conftest.$ac_ext >&5
6398
6399        ac_cv_type_long=no
6400fi
6401
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403fi
6404{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6405echo "${ECHO_T}$ac_cv_type_long" >&6; }
6406
6407# The cast to long int works around a bug in the HP C Compiler
6408# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6409# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6410# This bug is HP SR number 8606223364.
6411{ echo "$as_me:$LINENO: checking size of long" >&5
6412echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6413if test "${ac_cv_sizeof_long+set}" = set; then
6414  echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
6416  if test "$cross_compiling" = yes; then
6417  # Depending upon the size, compute the lo and hi bounds.
6418cat >conftest.$ac_ext <<_ACEOF
6419/* confdefs.h.  */
6420_ACEOF
6421cat confdefs.h >>conftest.$ac_ext
6422cat >>conftest.$ac_ext <<_ACEOF
6423/* end confdefs.h.  */
6424$ac_includes_default
6425   typedef long ac__type_sizeof_;
6426int
6427main ()
6428{
6429static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6430test_array [0] = 0
6431
6432  ;
6433  return 0;
6434}
6435_ACEOF
6436rm -f conftest.$ac_objext
6437if { (ac_try="$ac_compile"
6438case "(($ac_try" in
6439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440  *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443  (eval "$ac_compile") 2>conftest.er1
6444  ac_status=$?
6445  grep -v '^ *+' conftest.er1 >conftest.err
6446  rm -f conftest.er1
6447  cat conftest.err >&5
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); } && {
6450         test -z "$ac_c_werror_flag" ||
6451         test ! -s conftest.err
6452       } && test -s conftest.$ac_objext; then
6453  ac_lo=0 ac_mid=0
6454  while :; do
6455    cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h.  */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h.  */
6461$ac_includes_default
6462   typedef long ac__type_sizeof_;
6463int
6464main ()
6465{
6466static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6467test_array [0] = 0
6468
6469  ;
6470  return 0;
6471}
6472_ACEOF
6473rm -f conftest.$ac_objext
6474if { (ac_try="$ac_compile"
6475case "(($ac_try" in
6476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477  *) ac_try_echo=$ac_try;;
6478esac
6479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480  (eval "$ac_compile") 2>conftest.er1
6481  ac_status=$?
6482  grep -v '^ *+' conftest.er1 >conftest.err
6483  rm -f conftest.er1
6484  cat conftest.err >&5
6485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486  (exit $ac_status); } && {
6487         test -z "$ac_c_werror_flag" ||
6488         test ! -s conftest.err
6489       } && test -s conftest.$ac_objext; then
6490  ac_hi=$ac_mid; break
6491else
6492  echo "$as_me: failed program was:" >&5
6493sed 's/^/| /' conftest.$ac_ext >&5
6494
6495        ac_lo=`expr $ac_mid + 1`
6496                        if test $ac_lo -le $ac_mid; then
6497                          ac_lo= ac_hi=
6498                          break
6499                        fi
6500                        ac_mid=`expr 2 '*' $ac_mid + 1`
6501fi
6502
6503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504  done
6505else
6506  echo "$as_me: failed program was:" >&5
6507sed 's/^/| /' conftest.$ac_ext >&5
6508
6509        cat >conftest.$ac_ext <<_ACEOF
6510/* confdefs.h.  */
6511_ACEOF
6512cat confdefs.h >>conftest.$ac_ext
6513cat >>conftest.$ac_ext <<_ACEOF
6514/* end confdefs.h.  */
6515$ac_includes_default
6516   typedef long ac__type_sizeof_;
6517int
6518main ()
6519{
6520static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6521test_array [0] = 0
6522
6523  ;
6524  return 0;
6525}
6526_ACEOF
6527rm -f conftest.$ac_objext
6528if { (ac_try="$ac_compile"
6529case "(($ac_try" in
6530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531  *) ac_try_echo=$ac_try;;
6532esac
6533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534  (eval "$ac_compile") 2>conftest.er1
6535  ac_status=$?
6536  grep -v '^ *+' conftest.er1 >conftest.err
6537  rm -f conftest.er1
6538  cat conftest.err >&5
6539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540  (exit $ac_status); } && {
6541         test -z "$ac_c_werror_flag" ||
6542         test ! -s conftest.err
6543       } && test -s conftest.$ac_objext; then
6544  ac_hi=-1 ac_mid=-1
6545  while :; do
6546    cat >conftest.$ac_ext <<_ACEOF
6547/* confdefs.h.  */
6548_ACEOF
6549cat confdefs.h >>conftest.$ac_ext
6550cat >>conftest.$ac_ext <<_ACEOF
6551/* end confdefs.h.  */
6552$ac_includes_default
6553   typedef long ac__type_sizeof_;
6554int
6555main ()
6556{
6557static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6558test_array [0] = 0
6559
6560  ;
6561  return 0;
6562}
6563_ACEOF
6564rm -f conftest.$ac_objext
6565if { (ac_try="$ac_compile"
6566case "(($ac_try" in
6567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568  *) ac_try_echo=$ac_try;;
6569esac
6570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571  (eval "$ac_compile") 2>conftest.er1
6572  ac_status=$?
6573  grep -v '^ *+' conftest.er1 >conftest.err
6574  rm -f conftest.er1
6575  cat conftest.err >&5
6576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577  (exit $ac_status); } && {
6578         test -z "$ac_c_werror_flag" ||
6579         test ! -s conftest.err
6580       } && test -s conftest.$ac_objext; then
6581  ac_lo=$ac_mid; break
6582else
6583  echo "$as_me: failed program was:" >&5
6584sed 's/^/| /' conftest.$ac_ext >&5
6585
6586        ac_hi=`expr '(' $ac_mid ')' - 1`
6587                        if test $ac_mid -le $ac_hi; then
6588                          ac_lo= ac_hi=
6589                          break
6590                        fi
6591                        ac_mid=`expr 2 '*' $ac_mid`
6592fi
6593
6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595  done
6596else
6597  echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5
6599
6600        ac_lo= ac_hi=
6601fi
6602
6603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604fi
6605
6606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607# Binary search between lo and hi bounds.
6608while test "x$ac_lo" != "x$ac_hi"; do
6609  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6610  cat >conftest.$ac_ext <<_ACEOF
6611/* confdefs.h.  */
6612_ACEOF
6613cat confdefs.h >>conftest.$ac_ext
6614cat >>conftest.$ac_ext <<_ACEOF
6615/* end confdefs.h.  */
6616$ac_includes_default
6617   typedef long ac__type_sizeof_;
6618int
6619main ()
6620{
6621static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6622test_array [0] = 0
6623
6624  ;
6625  return 0;
6626}
6627_ACEOF
6628rm -f conftest.$ac_objext
6629if { (ac_try="$ac_compile"
6630case "(($ac_try" in
6631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632  *) ac_try_echo=$ac_try;;
6633esac
6634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635  (eval "$ac_compile") 2>conftest.er1
6636  ac_status=$?
6637  grep -v '^ *+' conftest.er1 >conftest.err
6638  rm -f conftest.er1
6639  cat conftest.err >&5
6640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641  (exit $ac_status); } && {
6642         test -z "$ac_c_werror_flag" ||
6643         test ! -s conftest.err
6644       } && test -s conftest.$ac_objext; then
6645  ac_hi=$ac_mid
6646else
6647  echo "$as_me: failed program was:" >&5
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
6650        ac_lo=`expr '(' $ac_mid ')' + 1`
6651fi
6652
6653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654done
6655case $ac_lo in
6656?*) ac_cv_sizeof_long=$ac_lo;;
6657'') if test "$ac_cv_type_long" = yes; then
6658     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6659See \`config.log' for more details." >&5
6660echo "$as_me: error: cannot compute sizeof (long)
6661See \`config.log' for more details." >&2;}
6662   { (exit 77); exit 77; }; }
6663   else
6664     ac_cv_sizeof_long=0
6665   fi ;;
6666esac
6667else
6668  cat >conftest.$ac_ext <<_ACEOF
6669/* confdefs.h.  */
6670_ACEOF
6671cat confdefs.h >>conftest.$ac_ext
6672cat >>conftest.$ac_ext <<_ACEOF
6673/* end confdefs.h.  */
6674$ac_includes_default
6675   typedef long ac__type_sizeof_;
6676static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6677static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6678#include <stdio.h>
6679#include <stdlib.h>
6680int
6681main ()
6682{
6683
6684  FILE *f = fopen ("conftest.val", "w");
6685  if (! f)
6686    return 1;
6687  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6688    {
6689      long int i = longval ();
6690      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6691        return 1;
6692      fprintf (f, "%ld\n", i);
6693    }
6694  else
6695    {
6696      unsigned long int i = ulongval ();
6697      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6698        return 1;
6699      fprintf (f, "%lu\n", i);
6700    }
6701  return ferror (f) || fclose (f) != 0;
6702
6703  ;
6704  return 0;
6705}
6706_ACEOF
6707rm -f conftest$ac_exeext
6708if { (ac_try="$ac_link"
6709case "(($ac_try" in
6710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711  *) ac_try_echo=$ac_try;;
6712esac
6713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714  (eval "$ac_link") 2>&5
6715  ac_status=$?
6716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6718  { (case "(($ac_try" in
6719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720  *) ac_try_echo=$ac_try;;
6721esac
6722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723  (eval "$ac_try") 2>&5
6724  ac_status=$?
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); }; }; then
6727  ac_cv_sizeof_long=`cat conftest.val`
6728else
6729  echo "$as_me: program exited with status $ac_status" >&5
6730echo "$as_me: failed program was:" >&5
6731sed 's/^/| /' conftest.$ac_ext >&5
6732
6733( exit $ac_status )
6734if test "$ac_cv_type_long" = yes; then
6735     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6736See \`config.log' for more details." >&5
6737echo "$as_me: error: cannot compute sizeof (long)
6738See \`config.log' for more details." >&2;}
6739   { (exit 77); exit 77; }; }
6740   else
6741     ac_cv_sizeof_long=0
6742   fi
6743fi
6744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6745fi
6746rm -f conftest.val
6747fi
6748{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6749echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6750
6751
6752
6753cat >>confdefs.h <<_ACEOF
6754#define SIZEOF_LONG $ac_cv_sizeof_long
6755_ACEOF
6756
6757
6758{ echo "$as_me:$LINENO: checking for long long" >&5
6759echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6760if test "${ac_cv_type_long_long+set}" = set; then
6761  echo $ECHO_N "(cached) $ECHO_C" >&6
6762else
6763  cat >conftest.$ac_ext <<_ACEOF
6764/* confdefs.h.  */
6765_ACEOF
6766cat confdefs.h >>conftest.$ac_ext
6767cat >>conftest.$ac_ext <<_ACEOF
6768/* end confdefs.h.  */
6769$ac_includes_default
6770typedef long long ac__type_new_;
6771int
6772main ()
6773{
6774if ((ac__type_new_ *) 0)
6775  return 0;
6776if (sizeof (ac__type_new_))
6777  return 0;
6778  ;
6779  return 0;
6780}
6781_ACEOF
6782rm -f conftest.$ac_objext
6783if { (ac_try="$ac_compile"
6784case "(($ac_try" in
6785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786  *) ac_try_echo=$ac_try;;
6787esac
6788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789  (eval "$ac_compile") 2>conftest.er1
6790  ac_status=$?
6791  grep -v '^ *+' conftest.er1 >conftest.err
6792  rm -f conftest.er1
6793  cat conftest.err >&5
6794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795  (exit $ac_status); } && {
6796         test -z "$ac_c_werror_flag" ||
6797         test ! -s conftest.err
6798       } && test -s conftest.$ac_objext; then
6799  ac_cv_type_long_long=yes
6800else
6801  echo "$as_me: failed program was:" >&5
6802sed 's/^/| /' conftest.$ac_ext >&5
6803
6804        ac_cv_type_long_long=no
6805fi
6806
6807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808fi
6809{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6810echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6811
6812# The cast to long int works around a bug in the HP C Compiler
6813# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6814# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6815# This bug is HP SR number 8606223364.
6816{ echo "$as_me:$LINENO: checking size of long long" >&5
6817echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6818if test "${ac_cv_sizeof_long_long+set}" = set; then
6819  echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821  if test "$cross_compiling" = yes; then
6822  # Depending upon the size, compute the lo and hi bounds.
6823cat >conftest.$ac_ext <<_ACEOF
6824/* confdefs.h.  */
6825_ACEOF
6826cat confdefs.h >>conftest.$ac_ext
6827cat >>conftest.$ac_ext <<_ACEOF
6828/* end confdefs.h.  */
6829$ac_includes_default
6830   typedef long long ac__type_sizeof_;
6831int
6832main ()
6833{
6834static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6835test_array [0] = 0
6836
6837  ;
6838  return 0;
6839}
6840_ACEOF
6841rm -f conftest.$ac_objext
6842if { (ac_try="$ac_compile"
6843case "(($ac_try" in
6844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845  *) ac_try_echo=$ac_try;;
6846esac
6847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848  (eval "$ac_compile") 2>conftest.er1
6849  ac_status=$?
6850  grep -v '^ *+' conftest.er1 >conftest.err
6851  rm -f conftest.er1
6852  cat conftest.err >&5
6853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854  (exit $ac_status); } && {
6855         test -z "$ac_c_werror_flag" ||
6856         test ! -s conftest.err
6857       } && test -s conftest.$ac_objext; then
6858  ac_lo=0 ac_mid=0
6859  while :; do
6860    cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h.  */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h.  */
6866$ac_includes_default
6867   typedef long long ac__type_sizeof_;
6868int
6869main ()
6870{
6871static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6872test_array [0] = 0
6873
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878rm -f conftest.$ac_objext
6879if { (ac_try="$ac_compile"
6880case "(($ac_try" in
6881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882  *) ac_try_echo=$ac_try;;
6883esac
6884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885  (eval "$ac_compile") 2>conftest.er1
6886  ac_status=$?
6887  grep -v '^ *+' conftest.er1 >conftest.err
6888  rm -f conftest.er1
6889  cat conftest.err >&5
6890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891  (exit $ac_status); } && {
6892         test -z "$ac_c_werror_flag" ||
6893         test ! -s conftest.err
6894       } && test -s conftest.$ac_objext; then
6895  ac_hi=$ac_mid; break
6896else
6897  echo "$as_me: failed program was:" >&5
6898sed 's/^/| /' conftest.$ac_ext >&5
6899
6900        ac_lo=`expr $ac_mid + 1`
6901                        if test $ac_lo -le $ac_mid; then
6902                          ac_lo= ac_hi=
6903                          break
6904                        fi
6905                        ac_mid=`expr 2 '*' $ac_mid + 1`
6906fi
6907
6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909  done
6910else
6911  echo "$as_me: failed program was:" >&5
6912sed 's/^/| /' conftest.$ac_ext >&5
6913
6914        cat >conftest.$ac_ext <<_ACEOF
6915/* confdefs.h.  */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h.  */
6920$ac_includes_default
6921   typedef long long ac__type_sizeof_;
6922int
6923main ()
6924{
6925static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6926test_array [0] = 0
6927
6928  ;
6929  return 0;
6930}
6931_ACEOF
6932rm -f conftest.$ac_objext
6933if { (ac_try="$ac_compile"
6934case "(($ac_try" in
6935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936  *) ac_try_echo=$ac_try;;
6937esac
6938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6939  (eval "$ac_compile") 2>conftest.er1
6940  ac_status=$?
6941  grep -v '^ *+' conftest.er1 >conftest.err
6942  rm -f conftest.er1
6943  cat conftest.err >&5
6944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); } && {
6946         test -z "$ac_c_werror_flag" ||
6947         test ! -s conftest.err
6948       } && test -s conftest.$ac_objext; then
6949  ac_hi=-1 ac_mid=-1
6950  while :; do
6951    cat >conftest.$ac_ext <<_ACEOF
6952/* confdefs.h.  */
6953_ACEOF
6954cat confdefs.h >>conftest.$ac_ext
6955cat >>conftest.$ac_ext <<_ACEOF
6956/* end confdefs.h.  */
6957$ac_includes_default
6958   typedef long long ac__type_sizeof_;
6959int
6960main ()
6961{
6962static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6963test_array [0] = 0
6964
6965  ;
6966  return 0;
6967}
6968_ACEOF
6969rm -f conftest.$ac_objext
6970if { (ac_try="$ac_compile"
6971case "(($ac_try" in
6972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973  *) ac_try_echo=$ac_try;;
6974esac
6975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976  (eval "$ac_compile") 2>conftest.er1
6977  ac_status=$?
6978  grep -v '^ *+' conftest.er1 >conftest.err
6979  rm -f conftest.er1
6980  cat conftest.err >&5
6981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982  (exit $ac_status); } && {
6983         test -z "$ac_c_werror_flag" ||
6984         test ! -s conftest.err
6985       } && test -s conftest.$ac_objext; then
6986  ac_lo=$ac_mid; break
6987else
6988  echo "$as_me: failed program was:" >&5
6989sed 's/^/| /' conftest.$ac_ext >&5
6990
6991        ac_hi=`expr '(' $ac_mid ')' - 1`
6992                        if test $ac_mid -le $ac_hi; then
6993                          ac_lo= ac_hi=
6994                          break
6995                        fi
6996                        ac_mid=`expr 2 '*' $ac_mid`
6997fi
6998
6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000  done
7001else
7002  echo "$as_me: failed program was:" >&5
7003sed 's/^/| /' conftest.$ac_ext >&5
7004
7005        ac_lo= ac_hi=
7006fi
7007
7008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009fi
7010
7011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012# Binary search between lo and hi bounds.
7013while test "x$ac_lo" != "x$ac_hi"; do
7014  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7015  cat >conftest.$ac_ext <<_ACEOF
7016/* confdefs.h.  */
7017_ACEOF
7018cat confdefs.h >>conftest.$ac_ext
7019cat >>conftest.$ac_ext <<_ACEOF
7020/* end confdefs.h.  */
7021$ac_includes_default
7022   typedef long long ac__type_sizeof_;
7023int
7024main ()
7025{
7026static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7027test_array [0] = 0
7028
7029  ;
7030  return 0;
7031}
7032_ACEOF
7033rm -f conftest.$ac_objext
7034if { (ac_try="$ac_compile"
7035case "(($ac_try" in
7036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037  *) ac_try_echo=$ac_try;;
7038esac
7039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040  (eval "$ac_compile") 2>conftest.er1
7041  ac_status=$?
7042  grep -v '^ *+' conftest.er1 >conftest.err
7043  rm -f conftest.er1
7044  cat conftest.err >&5
7045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046  (exit $ac_status); } && {
7047         test -z "$ac_c_werror_flag" ||
7048         test ! -s conftest.err
7049       } && test -s conftest.$ac_objext; then
7050  ac_hi=$ac_mid
7051else
7052  echo "$as_me: failed program was:" >&5
7053sed 's/^/| /' conftest.$ac_ext >&5
7054
7055        ac_lo=`expr '(' $ac_mid ')' + 1`
7056fi
7057
7058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059done
7060case $ac_lo in
7061?*) ac_cv_sizeof_long_long=$ac_lo;;
7062'') if test "$ac_cv_type_long_long" = yes; then
7063     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7064See \`config.log' for more details." >&5
7065echo "$as_me: error: cannot compute sizeof (long long)
7066See \`config.log' for more details." >&2;}
7067   { (exit 77); exit 77; }; }
7068   else
7069     ac_cv_sizeof_long_long=0
7070   fi ;;
7071esac
7072else
7073  cat >conftest.$ac_ext <<_ACEOF
7074/* confdefs.h.  */
7075_ACEOF
7076cat confdefs.h >>conftest.$ac_ext
7077cat >>conftest.$ac_ext <<_ACEOF
7078/* end confdefs.h.  */
7079$ac_includes_default
7080   typedef long long ac__type_sizeof_;
7081static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7082static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7083#include <stdio.h>
7084#include <stdlib.h>
7085int
7086main ()
7087{
7088
7089  FILE *f = fopen ("conftest.val", "w");
7090  if (! f)
7091    return 1;
7092  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7093    {
7094      long int i = longval ();
7095      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7096        return 1;
7097      fprintf (f, "%ld\n", i);
7098    }
7099  else
7100    {
7101      unsigned long int i = ulongval ();
7102      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7103        return 1;
7104      fprintf (f, "%lu\n", i);
7105    }
7106  return ferror (f) || fclose (f) != 0;
7107
7108  ;
7109  return 0;
7110}
7111_ACEOF
7112rm -f conftest$ac_exeext
7113if { (ac_try="$ac_link"
7114case "(($ac_try" in
7115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7116  *) ac_try_echo=$ac_try;;
7117esac
7118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7119  (eval "$ac_link") 2>&5
7120  ac_status=$?
7121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7123  { (case "(($ac_try" in
7124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125  *) ac_try_echo=$ac_try;;
7126esac
7127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7128  (eval "$ac_try") 2>&5
7129  ac_status=$?
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); }; }; then
7132  ac_cv_sizeof_long_long=`cat conftest.val`
7133else
7134  echo "$as_me: program exited with status $ac_status" >&5
7135echo "$as_me: failed program was:" >&5
7136sed 's/^/| /' conftest.$ac_ext >&5
7137
7138( exit $ac_status )
7139if test "$ac_cv_type_long_long" = yes; then
7140     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7141See \`config.log' for more details." >&5
7142echo "$as_me: error: cannot compute sizeof (long long)
7143See \`config.log' for more details." >&2;}
7144   { (exit 77); exit 77; }; }
7145   else
7146     ac_cv_sizeof_long_long=0
7147   fi
7148fi
7149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7150fi
7151rm -f conftest.val
7152fi
7153{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7154echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7155
7156
7157
7158cat >>confdefs.h <<_ACEOF
7159#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7160_ACEOF
7161
7162
7163{ echo "$as_me:$LINENO: checking for void*" >&5
7164echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
7165if test "${ac_cv_type_voidp+set}" = set; then
7166  echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168  cat >conftest.$ac_ext <<_ACEOF
7169/* confdefs.h.  */
7170_ACEOF
7171cat confdefs.h >>conftest.$ac_ext
7172cat >>conftest.$ac_ext <<_ACEOF
7173/* end confdefs.h.  */
7174$ac_includes_default
7175typedef void* ac__type_new_;
7176int
7177main ()
7178{
7179if ((ac__type_new_ *) 0)
7180  return 0;
7181if (sizeof (ac__type_new_))
7182  return 0;
7183  ;
7184  return 0;
7185}
7186_ACEOF
7187rm -f conftest.$ac_objext
7188if { (ac_try="$ac_compile"
7189case "(($ac_try" in
7190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191  *) ac_try_echo=$ac_try;;
7192esac
7193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194  (eval "$ac_compile") 2>conftest.er1
7195  ac_status=$?
7196  grep -v '^ *+' conftest.er1 >conftest.err
7197  rm -f conftest.er1
7198  cat conftest.err >&5
7199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200  (exit $ac_status); } && {
7201         test -z "$ac_c_werror_flag" ||
7202         test ! -s conftest.err
7203       } && test -s conftest.$ac_objext; then
7204  ac_cv_type_voidp=yes
7205else
7206  echo "$as_me: failed program was:" >&5
7207sed 's/^/| /' conftest.$ac_ext >&5
7208
7209        ac_cv_type_voidp=no
7210fi
7211
7212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213fi
7214{ echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7215echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
7216
7217# The cast to long int works around a bug in the HP C Compiler
7218# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7219# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7220# This bug is HP SR number 8606223364.
7221{ echo "$as_me:$LINENO: checking size of void*" >&5
7222echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
7223if test "${ac_cv_sizeof_voidp+set}" = set; then
7224  echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226  if test "$cross_compiling" = yes; then
7227  # Depending upon the size, compute the lo and hi bounds.
7228cat >conftest.$ac_ext <<_ACEOF
7229/* confdefs.h.  */
7230_ACEOF
7231cat confdefs.h >>conftest.$ac_ext
7232cat >>conftest.$ac_ext <<_ACEOF
7233/* end confdefs.h.  */
7234$ac_includes_default
7235   typedef void* ac__type_sizeof_;
7236int
7237main ()
7238{
7239static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7240test_array [0] = 0
7241
7242  ;
7243  return 0;
7244}
7245_ACEOF
7246rm -f conftest.$ac_objext
7247if { (ac_try="$ac_compile"
7248case "(($ac_try" in
7249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250  *) ac_try_echo=$ac_try;;
7251esac
7252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253  (eval "$ac_compile") 2>conftest.er1
7254  ac_status=$?
7255  grep -v '^ *+' conftest.er1 >conftest.err
7256  rm -f conftest.er1
7257  cat conftest.err >&5
7258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259  (exit $ac_status); } && {
7260         test -z "$ac_c_werror_flag" ||
7261         test ! -s conftest.err
7262       } && test -s conftest.$ac_objext; then
7263  ac_lo=0 ac_mid=0
7264  while :; do
7265    cat >conftest.$ac_ext <<_ACEOF
7266/* confdefs.h.  */
7267_ACEOF
7268cat confdefs.h >>conftest.$ac_ext
7269cat >>conftest.$ac_ext <<_ACEOF
7270/* end confdefs.h.  */
7271$ac_includes_default
7272   typedef void* ac__type_sizeof_;
7273int
7274main ()
7275{
7276static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7277test_array [0] = 0
7278
7279  ;
7280  return 0;
7281}
7282_ACEOF
7283rm -f conftest.$ac_objext
7284if { (ac_try="$ac_compile"
7285case "(($ac_try" in
7286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287  *) ac_try_echo=$ac_try;;
7288esac
7289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290  (eval "$ac_compile") 2>conftest.er1
7291  ac_status=$?
7292  grep -v '^ *+' conftest.er1 >conftest.err
7293  rm -f conftest.er1
7294  cat conftest.err >&5
7295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296  (exit $ac_status); } && {
7297         test -z "$ac_c_werror_flag" ||
7298         test ! -s conftest.err
7299       } && test -s conftest.$ac_objext; then
7300  ac_hi=$ac_mid; break
7301else
7302  echo "$as_me: failed program was:" >&5
7303sed 's/^/| /' conftest.$ac_ext >&5
7304
7305        ac_lo=`expr $ac_mid + 1`
7306                        if test $ac_lo -le $ac_mid; then
7307                          ac_lo= ac_hi=
7308                          break
7309                        fi
7310                        ac_mid=`expr 2 '*' $ac_mid + 1`
7311fi
7312
7313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314  done
7315else
7316  echo "$as_me: failed program was:" >&5
7317sed 's/^/| /' conftest.$ac_ext >&5
7318
7319        cat >conftest.$ac_ext <<_ACEOF
7320/* confdefs.h.  */
7321_ACEOF
7322cat confdefs.h >>conftest.$ac_ext
7323cat >>conftest.$ac_ext <<_ACEOF
7324/* end confdefs.h.  */
7325$ac_includes_default
7326   typedef void* ac__type_sizeof_;
7327int
7328main ()
7329{
7330static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7331test_array [0] = 0
7332
7333  ;
7334  return 0;
7335}
7336_ACEOF
7337rm -f conftest.$ac_objext
7338if { (ac_try="$ac_compile"
7339case "(($ac_try" in
7340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341  *) ac_try_echo=$ac_try;;
7342esac
7343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344  (eval "$ac_compile") 2>conftest.er1
7345  ac_status=$?
7346  grep -v '^ *+' conftest.er1 >conftest.err
7347  rm -f conftest.er1
7348  cat conftest.err >&5
7349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350  (exit $ac_status); } && {
7351         test -z "$ac_c_werror_flag" ||
7352         test ! -s conftest.err
7353       } && test -s conftest.$ac_objext; then
7354  ac_hi=-1 ac_mid=-1
7355  while :; do
7356    cat >conftest.$ac_ext <<_ACEOF
7357/* confdefs.h.  */
7358_ACEOF
7359cat confdefs.h >>conftest.$ac_ext
7360cat >>conftest.$ac_ext <<_ACEOF
7361/* end confdefs.h.  */
7362$ac_includes_default
7363   typedef void* ac__type_sizeof_;
7364int
7365main ()
7366{
7367static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7368test_array [0] = 0
7369
7370  ;
7371  return 0;
7372}
7373_ACEOF
7374rm -f conftest.$ac_objext
7375if { (ac_try="$ac_compile"
7376case "(($ac_try" in
7377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378  *) ac_try_echo=$ac_try;;
7379esac
7380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381  (eval "$ac_compile") 2>conftest.er1
7382  ac_status=$?
7383  grep -v '^ *+' conftest.er1 >conftest.err
7384  rm -f conftest.er1
7385  cat conftest.err >&5
7386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387  (exit $ac_status); } && {
7388         test -z "$ac_c_werror_flag" ||
7389         test ! -s conftest.err
7390       } && test -s conftest.$ac_objext; then
7391  ac_lo=$ac_mid; break
7392else
7393  echo "$as_me: failed program was:" >&5
7394sed 's/^/| /' conftest.$ac_ext >&5
7395
7396        ac_hi=`expr '(' $ac_mid ')' - 1`
7397                        if test $ac_mid -le $ac_hi; then
7398                          ac_lo= ac_hi=
7399                          break
7400                        fi
7401                        ac_mid=`expr 2 '*' $ac_mid`
7402fi
7403
7404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405  done
7406else
7407  echo "$as_me: failed program was:" >&5
7408sed 's/^/| /' conftest.$ac_ext >&5
7409
7410        ac_lo= ac_hi=
7411fi
7412
7413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414fi
7415
7416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417# Binary search between lo and hi bounds.
7418while test "x$ac_lo" != "x$ac_hi"; do
7419  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7420  cat >conftest.$ac_ext <<_ACEOF
7421/* confdefs.h.  */
7422_ACEOF
7423cat confdefs.h >>conftest.$ac_ext
7424cat >>conftest.$ac_ext <<_ACEOF
7425/* end confdefs.h.  */
7426$ac_includes_default
7427   typedef void* ac__type_sizeof_;
7428int
7429main ()
7430{
7431static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7432test_array [0] = 0
7433
7434  ;
7435  return 0;
7436}
7437_ACEOF
7438rm -f conftest.$ac_objext
7439if { (ac_try="$ac_compile"
7440case "(($ac_try" in
7441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442  *) ac_try_echo=$ac_try;;
7443esac
7444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445  (eval "$ac_compile") 2>conftest.er1
7446  ac_status=$?
7447  grep -v '^ *+' conftest.er1 >conftest.err
7448  rm -f conftest.er1
7449  cat conftest.err >&5
7450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451  (exit $ac_status); } && {
7452         test -z "$ac_c_werror_flag" ||
7453         test ! -s conftest.err
7454       } && test -s conftest.$ac_objext; then
7455  ac_hi=$ac_mid
7456else
7457  echo "$as_me: failed program was:" >&5
7458sed 's/^/| /' conftest.$ac_ext >&5
7459
7460        ac_lo=`expr '(' $ac_mid ')' + 1`
7461fi
7462
7463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464done
7465case $ac_lo in
7466?*) ac_cv_sizeof_voidp=$ac_lo;;
7467'') if test "$ac_cv_type_voidp" = yes; then
7468     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
7469See \`config.log' for more details." >&5
7470echo "$as_me: error: cannot compute sizeof (void*)
7471See \`config.log' for more details." >&2;}
7472   { (exit 77); exit 77; }; }
7473   else
7474     ac_cv_sizeof_voidp=0
7475   fi ;;
7476esac
7477else
7478  cat >conftest.$ac_ext <<_ACEOF
7479/* confdefs.h.  */
7480_ACEOF
7481cat confdefs.h >>conftest.$ac_ext
7482cat >>conftest.$ac_ext <<_ACEOF
7483/* end confdefs.h.  */
7484$ac_includes_default
7485   typedef void* ac__type_sizeof_;
7486static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7487static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7488#include <stdio.h>
7489#include <stdlib.h>
7490int
7491main ()
7492{
7493
7494  FILE *f = fopen ("conftest.val", "w");
7495  if (! f)
7496    return 1;
7497  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7498    {
7499      long int i = longval ();
7500      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7501        return 1;
7502      fprintf (f, "%ld\n", i);
7503    }
7504  else
7505    {
7506      unsigned long int i = ulongval ();
7507      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7508        return 1;
7509      fprintf (f, "%lu\n", i);
7510    }
7511  return ferror (f) || fclose (f) != 0;
7512
7513  ;
7514  return 0;
7515}
7516_ACEOF
7517rm -f conftest$ac_exeext
7518if { (ac_try="$ac_link"
7519case "(($ac_try" in
7520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521  *) ac_try_echo=$ac_try;;
7522esac
7523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7524  (eval "$ac_link") 2>&5
7525  ac_status=$?
7526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7528  { (case "(($ac_try" in
7529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530  *) ac_try_echo=$ac_try;;
7531esac
7532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533  (eval "$ac_try") 2>&5
7534  ac_status=$?
7535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536  (exit $ac_status); }; }; then
7537  ac_cv_sizeof_voidp=`cat conftest.val`
7538else
7539  echo "$as_me: program exited with status $ac_status" >&5
7540echo "$as_me: failed program was:" >&5
7541sed 's/^/| /' conftest.$ac_ext >&5
7542
7543( exit $ac_status )
7544if test "$ac_cv_type_voidp" = yes; then
7545     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
7546See \`config.log' for more details." >&5
7547echo "$as_me: error: cannot compute sizeof (void*)
7548See \`config.log' for more details." >&2;}
7549   { (exit 77); exit 77; }; }
7550   else
7551     ac_cv_sizeof_voidp=0
7552   fi
7553fi
7554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7555fi
7556rm -f conftest.val
7557fi
7558{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
7559echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
7560
7561
7562
7563cat >>confdefs.h <<_ACEOF
7564#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
7565_ACEOF
7566
7567
7568
7569# Check whether --enable-backtrace was given.
7570if test "${enable_backtrace+set}" = set; then
7571  enableval=$enable_backtrace; ac_enable_backtrace=$enableleval
7572else
7573  ac_enable_backtrace=auto
7574
7575fi
7576
7577# Check whether --enable-ucontexth was given.
7578if test "${enable_ucontexth+set}" = set; then
7579  enableval=$enable_ucontexth; ac_enable_ucontexth=$enableleval
7580else
7581  ac_enable_ucontexth=auto
7582
7583fi
7584
7585# Check whether --enable-asm was given.
7586if test "${enable_asm+set}" = set; then
7587  enableval=$enable_asm; ac_enable_asm=$enableval
7588else
7589  ac_enable_asm=auto
7590
7591fi
7592
7593if test $ac_enable_asm = auto; then
7594        { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts Pentium assembler" >&5
7595echo $ECHO_N "checking whether ${CC-cc} accepts Pentium assembler... $ECHO_C" >&6; }
7596        cat >conftest.$ac_ext <<_ACEOF
7597/* confdefs.h.  */
7598_ACEOF
7599cat confdefs.h >>conftest.$ac_ext
7600cat >>conftest.$ac_ext <<_ACEOF
7601/* end confdefs.h.  */
7602
7603
7604int
7605main ()
7606{
7607
7608                        #if !defined(__GNUC__) || !defined(__i386__)
7609                        choke me
7610                        #endif
7611
7612  ;
7613  return 0;
7614}
7615_ACEOF
7616rm -f conftest.$ac_objext
7617if { (ac_try="$ac_compile"
7618case "(($ac_try" in
7619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620  *) ac_try_echo=$ac_try;;
7621esac
7622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623  (eval "$ac_compile") 2>conftest.er1
7624  ac_status=$?
7625  grep -v '^ *+' conftest.er1 >conftest.err
7626  rm -f conftest.er1
7627  cat conftest.err >&5
7628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629  (exit $ac_status); } && {
7630         test -z "$ac_c_werror_flag" ||
7631         test ! -s conftest.err
7632       } && test -s conftest.$ac_objext; then
7633  ac_enable_asm=yes
7634else
7635  echo "$as_me: failed program was:" >&5
7636sed 's/^/| /' conftest.$ac_ext >&5
7637
7638        ac_enable_asm=no
7639fi
7640
7641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642        { echo "$as_me:$LINENO: result: $ac_enable_asm" >&5
7643echo "${ECHO_T}$ac_enable_asm" >&6; }
7644        if test $ac_enable_asm = yes; then
7645                for ac_prog in ${ac_tool_prefix}nasm
7646do
7647  # Extract the first word of "$ac_prog", so it can be a program name with args.
7648set dummy $ac_prog; ac_word=$2
7649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7651if test "${ac_cv_prog_ASM+set}" = set; then
7652  echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654  if test -n "$ASM"; then
7655  ac_cv_prog_ASM="$ASM" # Let the user override the test.
7656else
7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660  IFS=$as_save_IFS
7661  test -z "$as_dir" && as_dir=.
7662  for ac_exec_ext in '' $ac_executable_extensions; do
7663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7664    ac_cv_prog_ASM="$ac_prog"
7665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666    break 2
7667  fi
7668done
7669done
7670IFS=$as_save_IFS
7671
7672fi
7673fi
7674ASM=$ac_cv_prog_ASM
7675if test -n "$ASM"; then
7676  { echo "$as_me:$LINENO: result: $ASM" >&5
7677echo "${ECHO_T}$ASM" >&6; }
7678else
7679  { echo "$as_me:$LINENO: result: no" >&5
7680echo "${ECHO_T}no" >&6; }
7681fi
7682
7683
7684  test -n "$ASM" && break
7685done
7686test -n "$ASM" || ASM="none"
7687
7688                if test $ASM = none; then
7689                        ac_enable_asm=no
7690                else
7691                        CFLAGS_ARCH="$CFLAGS_ARCH -DUSE_ASM_INLINE"
7692                fi
7693        fi
7694elif test $ac_enable_asm = yes; then
7695        for ac_prog in ${ac_tool_prefix}nasm
7696do
7697  # Extract the first word of "$ac_prog", so it can be a program name with args.
7698set dummy $ac_prog; ac_word=$2
7699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701if test "${ac_cv_prog_ASM+set}" = set; then
7702  echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704  if test -n "$ASM"; then
7705  ac_cv_prog_ASM="$ASM" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710  IFS=$as_save_IFS
7711  test -z "$as_dir" && as_dir=.
7712  for ac_exec_ext in '' $ac_executable_extensions; do
7713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714    ac_cv_prog_ASM="$ac_prog"
7715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716    break 2
7717  fi
7718done
7719done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724ASM=$ac_cv_prog_ASM
7725if test -n "$ASM"; then
7726  { echo "$as_me:$LINENO: result: $ASM" >&5
7727echo "${ECHO_T}$ASM" >&6; }
7728else
7729  { echo "$as_me:$LINENO: result: no" >&5
7730echo "${ECHO_T}no" >&6; }
7731fi
7732
7733
7734  test -n "$ASM" && break
7735done
7736test -n "$ASM" || ASM="none"
7737
7738        if test $ASM = none; then
7739                { { echo "$as_me:$LINENO: error: the NASM assembler is required for the \"asm\" compilation" >&5
7740echo "$as_me: error: the NASM assembler is required for the \"asm\" compilation" >&2;}
7741   { (exit 1); exit 1; }; }
7742        else
7743                CFLAGS_ARCH="$CFLAGS_ARCH -DUSE_ASM_INLINE"
7744        fi
7745fi
7746
7747# Check whether --enable-asm-mips3 was given.
7748if test "${enable_asm_mips3+set}" = set; then
7749  enableval=$enable_asm_mips3; ac_enable_asm_mips3=$enableval
7750else
7751  ac_enable_asm_mips3=auto
7752
7753fi
7754
7755if test $ac_enable_asm_mips3 = auto; then
7756        if test $ac_enable_asm = yes; then
7757                ac_enable_asm_mips3=yes
7758        else
7759                ac_enable_asm_mips3=no
7760        fi
7761fi
7762if test $ac_enable_asm_mips3 = yes; then
7763        if test ! $ac_enable_asm = yes; then
7764                { { echo "$as_me:$LINENO: error: the Pentium assembler is required for the \"asm-mips3\" compilation" >&5
7765echo "$as_me: error: the Pentium assembler is required for the \"asm-mips3\" compilation" >&2;}
7766   { (exit 1); exit 1; }; }
7767        fi
7768        CFLAGS_ARCH="$CFLAGS_ARCH -DUSE_ASM_EMUMIPS3"
7769fi
7770
7771CONF_CFLAGS_ARCH=$CFLAGS_ARCH
7772
7773
7774# Checks for configuration options.
7775
7776# Check whether --with-emu was given.
7777if test "${with_emu+set}" = set; then
7778  withval=$with_emu; ac_with_emu=$withval
7779else
7780  ac_with_emu=auto
7781
7782fi
7783
7784if test $ac_with_emu = auto; then
7785        if test -f $srcdir/advance/advmame.dif ; then
7786                ac_with_emu=mame
7787        elif test -f $srcdir/advance/advmess.dif ; then
7788                ac_with_emu=mess
7789        else
7790                ac_with_emu=none
7791        fi
7792fi
7793if test $ac_with_emu = mame; then
7794        if test ! -f $srcdir/src/mame.mak ; then
7795                { { echo "$as_me:$LINENO: error: you need the MAME source in the $srcdir/src/ directory. Check the BUILD file for instructions." >&5
7796echo "$as_me: error: you need the MAME source in the $srcdir/src/ directory. Check the BUILD file for instructions." >&2;}
7797   { (exit 1); exit 1; }; }
7798        fi
7799        if test ! -f $srcdir/src/advance.pat ; then
7800                { { echo "$as_me:$LINENO: error: you must patch the MAME source in $srcdir/src/ with the $srcdir/advance/advmame.dif patch. Check the BUILD file for instructions." >&5
7801echo "$as_me: error: you must patch the MAME source in $srcdir/src/ with the $srcdir/advance/advmame.dif patch. Check the BUILD file for instructions." >&2;}
7802   { (exit 1); exit 1; }; }
7803        fi
7804elif test $ac_with_emu = mess; then
7805        if test ! -f $srcdir/srcmess/core.mak ; then
7806                { { echo "$as_me:$LINENO: error: you need the MESS source in the $srcdir/srcmess/ directory. Check the BUILD file for instructions." >&5
7807echo "$as_me: error: you need the MESS source in the $srcdir/srcmess/ directory. Check the BUILD file for instructions." >&2;}
7808   { (exit 1); exit 1; }; }
7809        fi
7810        if test ! -f $srcdir/mess/mess.mak ; then
7811                { { echo "$as_me:$LINENO: error: you need the MESS source in the $srcdir/mess/ directory. Check the BUILD file for instructions." >&5
7812echo "$as_me: error: you need the MESS source in the $srcdir/mess/ directory. Check the BUILD file for instructions." >&2;}
7813   { (exit 1); exit 1; }; }
7814        fi
7815        if test ! -f $srcdir/srcmess/advance.pat ; then
7816                { { echo "$as_me:$LINENO: error: you must patch the MESS source in $srcdir/srcmess/ with the advance/advmess.dif patch. Check the BUILD file for instructions." >&5
7817echo "$as_me: error: you must patch the MESS source in $srcdir/srcmess/ with the advance/advmess.dif patch. Check the BUILD file for instructions." >&2;}
7818   { (exit 1); exit 1; }; }
7819        fi
7820        if test ! -f $srcdir/mess/advance.pat ; then
7821                { { echo "$as_me:$LINENO: error: you must patch the MESS source in $srcdir/mess/ with the advance/mess.dif patch. Check the BUILD file for instructions." >&5
7822echo "$as_me: error: you must patch the MESS source in $srcdir/mess/ with the advance/mess.dif patch. Check the BUILD file for instructions." >&2;}
7823   { (exit 1); exit 1; }; }
7824        fi
7825elif test ! $ac_with_emu = none; then
7826        { { echo "$as_me:$LINENO: error: unknown emulator $ac_with_emu" >&5
7827echo "$as_me: error: unknown emulator $ac_with_emu" >&2;}
7828   { (exit 1); exit 1; }; }
7829fi
7830CONF_EMU=$ac_with_emu
7831
7832
7833# Check whether --enable-debugger was given.
7834if test "${enable_debugger+set}" = set; then
7835  enableval=$enable_debugger; ac_enable_debugger=$enableval
7836else
7837  ac_enable_debugger=no
7838
7839fi
7840
7841CONF_DEBUGGER=$ac_enable_debugger
7842
7843
7844# Checks for header files.
7845# Checks for typedefs, structures, and compiler characteristics.
7846# Checks for library functions.
7847
7848if test $ac_system = unix ; then
7849        { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7850echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7851if test "${ac_cv_header_stdc+set}" = set; then
7852  echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854  cat >conftest.$ac_ext <<_ACEOF
7855/* confdefs.h.  */
7856_ACEOF
7857cat confdefs.h >>conftest.$ac_ext
7858cat >>conftest.$ac_ext <<_ACEOF
7859/* end confdefs.h.  */
7860#include <stdlib.h>
7861#include <stdarg.h>
7862#include <string.h>
7863#include <float.h>
7864
7865int
7866main ()
7867{
7868
7869  ;
7870  return 0;
7871}
7872_ACEOF
7873rm -f conftest.$ac_objext
7874if { (ac_try="$ac_compile"
7875case "(($ac_try" in
7876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877  *) ac_try_echo=$ac_try;;
7878esac
7879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880  (eval "$ac_compile") 2>conftest.er1
7881  ac_status=$?
7882  grep -v '^ *+' conftest.er1 >conftest.err
7883  rm -f conftest.er1
7884  cat conftest.err >&5
7885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886  (exit $ac_status); } && {
7887         test -z "$ac_c_werror_flag" ||
7888         test ! -s conftest.err
7889       } && test -s conftest.$ac_objext; then
7890  ac_cv_header_stdc=yes
7891else
7892  echo "$as_me: failed program was:" >&5
7893sed 's/^/| /' conftest.$ac_ext >&5
7894
7895        ac_cv_header_stdc=no
7896fi
7897
7898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899
7900if test $ac_cv_header_stdc = yes; then
7901  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7902  cat >conftest.$ac_ext <<_ACEOF
7903/* confdefs.h.  */
7904_ACEOF
7905cat confdefs.h >>conftest.$ac_ext
7906cat >>conftest.$ac_ext <<_ACEOF
7907/* end confdefs.h.  */
7908#include <string.h>
7909
7910_ACEOF
7911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7912  $EGREP "memchr" >/dev/null 2>&1; then
7913  :
7914else
7915  ac_cv_header_stdc=no
7916fi
7917rm -f conftest*
7918
7919fi
7920
7921if test $ac_cv_header_stdc = yes; then
7922  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7923  cat >conftest.$ac_ext <<_ACEOF
7924/* confdefs.h.  */
7925_ACEOF
7926cat confdefs.h >>conftest.$ac_ext
7927cat >>conftest.$ac_ext <<_ACEOF
7928/* end confdefs.h.  */
7929#include <stdlib.h>
7930
7931_ACEOF
7932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7933  $EGREP "free" >/dev/null 2>&1; then
7934  :
7935else
7936  ac_cv_header_stdc=no
7937fi
7938rm -f conftest*
7939
7940fi
7941
7942if test $ac_cv_header_stdc = yes; then
7943  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7944  if test "$cross_compiling" = yes; then
7945  :
7946else
7947  cat >conftest.$ac_ext <<_ACEOF
7948/* confdefs.h.  */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h.  */
7953#include <ctype.h>
7954#include <stdlib.h>
7955#if ((' ' & 0x0FF) == 0x020)
7956# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7957# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7958#else
7959# define ISLOWER(c) \
7960                   (('a' <= (c) && (c) <= 'i') \
7961                     || ('j' <= (c) && (c) <= 'r') \
7962                     || ('s' <= (c) && (c) <= 'z'))
7963# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7964#endif
7965
7966#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7967int
7968main ()
7969{
7970  int i;
7971  for (i = 0; i < 256; i++)
7972    if (XOR (islower (i), ISLOWER (i))
7973        || toupper (i) != TOUPPER (i))
7974      return 2;
7975  return 0;
7976}
7977_ACEOF
7978rm -f conftest$ac_exeext
7979if { (ac_try="$ac_link"
7980case "(($ac_try" in
7981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982  *) ac_try_echo=$ac_try;;
7983esac
7984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985  (eval "$ac_link") 2>&5
7986  ac_status=$?
7987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7989  { (case "(($ac_try" in
7990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991  *) ac_try_echo=$ac_try;;
7992esac
7993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994  (eval "$ac_try") 2>&5
7995  ac_status=$?
7996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997  (exit $ac_status); }; }; then
7998  :
7999else
8000  echo "$as_me: program exited with status $ac_status" >&5
8001echo "$as_me: failed program was:" >&5
8002sed 's/^/| /' conftest.$ac_ext >&5
8003
8004( exit $ac_status )
8005ac_cv_header_stdc=no
8006fi
8007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8008fi
8009
8010
8011fi
8012fi
8013{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8014echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8015if test $ac_cv_header_stdc = yes; then
8016
8017cat >>confdefs.h <<\_ACEOF
8018#define STDC_HEADERS 1
8019_ACEOF
8020
8021fi
8022
8023        { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8024echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8025if test "${ac_cv_header_sys_wait_h+set}" = set; then
8026  echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028  cat >conftest.$ac_ext <<_ACEOF
8029/* confdefs.h.  */
8030_ACEOF
8031cat confdefs.h >>conftest.$ac_ext
8032cat >>conftest.$ac_ext <<_ACEOF
8033/* end confdefs.h.  */
8034#include <sys/types.h>
8035#include <sys/wait.h>
8036#ifndef WEXITSTATUS
8037# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8038#endif
8039#ifndef WIFEXITED
8040# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8041#endif
8042
8043int
8044main ()
8045{
8046  int s;
8047  wait (&s);
8048  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8049  ;
8050  return 0;
8051}
8052_ACEOF
8053rm -f conftest.$ac_objext
8054if { (ac_try="$ac_compile"
8055case "(($ac_try" in
8056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057  *) ac_try_echo=$ac_try;;
8058esac
8059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060  (eval "$ac_compile") 2>conftest.er1
8061  ac_status=$?
8062  grep -v '^ *+' conftest.er1 >conftest.err
8063  rm -f conftest.er1
8064  cat conftest.err >&5
8065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066  (exit $ac_status); } && {
8067         test -z "$ac_c_werror_flag" ||
8068         test ! -s conftest.err
8069       } && test -s conftest.$ac_objext; then
8070  ac_cv_header_sys_wait_h=yes
8071else
8072  echo "$as_me: failed program was:" >&5
8073sed 's/^/| /' conftest.$ac_ext >&5
8074
8075        ac_cv_header_sys_wait_h=no
8076fi
8077
8078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079fi
8080{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8081echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8082if test $ac_cv_header_sys_wait_h = yes; then
8083
8084cat >>confdefs.h <<\_ACEOF
8085#define HAVE_SYS_WAIT_H 1
8086_ACEOF
8087
8088fi
8089
8090
8091
8092
8093
8094
8095ac_header_dirent=no
8096for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8097  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8098{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8099echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8101  echo $ECHO_N "(cached) $ECHO_C" >&6
8102else
8103  cat >conftest.$ac_ext <<_ACEOF
8104/* confdefs.h.  */
8105_ACEOF
8106cat confdefs.h >>conftest.$ac_ext
8107cat >>conftest.$ac_ext <<_ACEOF
8108/* end confdefs.h.  */
8109#include <sys/types.h>
8110#include <$ac_hdr>
8111
8112int
8113main ()
8114{
8115if ((DIR *) 0)
8116return 0;
8117  ;
8118  return 0;
8119}
8120_ACEOF
8121rm -f conftest.$ac_objext
8122if { (ac_try="$ac_compile"
8123case "(($ac_try" in
8124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125  *) ac_try_echo=$ac_try;;
8126esac
8127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128  (eval "$ac_compile") 2>conftest.er1
8129  ac_status=$?
8130  grep -v '^ *+' conftest.er1 >conftest.err
8131  rm -f conftest.er1
8132  cat conftest.err >&5
8133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134  (exit $ac_status); } && {
8135         test -z "$ac_c_werror_flag" ||
8136         test ! -s conftest.err
8137       } && test -s conftest.$ac_objext; then
8138  eval "$as_ac_Header=yes"
8139else
8140  echo "$as_me: failed program was:" >&5
8141sed 's/^/| /' conftest.$ac_ext >&5
8142
8143        eval "$as_ac_Header=no"
8144fi
8145
8146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147fi
8148ac_res=`eval echo '${'$as_ac_Header'}'`
8149               { echo "$as_me:$LINENO: result: $ac_res" >&5
8150echo "${ECHO_T}$ac_res" >&6; }
8151if test `eval echo '${'$as_ac_Header'}'` = yes; then
8152  cat >>confdefs.h <<_ACEOF
8153#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8154_ACEOF
8155
8156ac_header_dirent=$ac_hdr; break
8157fi
8158
8159done
8160# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8161if test $ac_header_dirent = dirent.h; then
8162  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8163echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8164if test "${ac_cv_search_opendir+set}" = set; then
8165  echo $ECHO_N "(cached) $ECHO_C" >&6
8166else
8167  ac_func_search_save_LIBS=$LIBS
8168cat >conftest.$ac_ext <<_ACEOF
8169/* confdefs.h.  */
8170_ACEOF
8171cat confdefs.h >>conftest.$ac_ext
8172cat >>conftest.$ac_ext <<_ACEOF
8173/* end confdefs.h.  */
8174
8175/* Override any GCC internal prototype to avoid an error.
8176   Use char because int might match the return type of a GCC
8177   builtin and then its argument prototype would still apply.  */
8178#ifdef __cplusplus
8179extern "C"
8180#endif
8181char opendir ();
8182int
8183main ()
8184{
8185return opendir ();
8186  ;
8187  return 0;
8188}
8189_ACEOF
8190for ac_lib in '' dir; do
8191  if test -z "$ac_lib"; then
8192    ac_res="none required"
8193  else
8194    ac_res=-l$ac_lib
8195    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8196  fi
8197  rm -f conftest.$ac_objext conftest$ac_exeext
8198if { (ac_try="$ac_link"
8199case "(($ac_try" in
8200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201  *) ac_try_echo=$ac_try;;
8202esac
8203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204  (eval "$ac_link") 2>conftest.er1
8205  ac_status=$?
8206  grep -v '^ *+' conftest.er1 >conftest.err
8207  rm -f conftest.er1
8208  cat conftest.err >&5
8209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210  (exit $ac_status); } && {
8211         test -z "$ac_c_werror_flag" ||
8212         test ! -s conftest.err
8213       } && test -s conftest$ac_exeext &&
8214       $as_test_x conftest$ac_exeext; then
8215  ac_cv_search_opendir=$ac_res
8216else
8217  echo "$as_me: failed program was:" >&5
8218sed 's/^/| /' conftest.$ac_ext >&5
8219
8220
8221fi
8222
8223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8224      conftest$ac_exeext
8225  if test "${ac_cv_search_opendir+set}" = set; then
8226  break
8227fi
8228done
8229if test "${ac_cv_search_opendir+set}" = set; then
8230  :
8231else
8232  ac_cv_search_opendir=no
8233fi
8234rm conftest.$ac_ext
8235LIBS=$ac_func_search_save_LIBS
8236fi
8237{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8238echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8239ac_res=$ac_cv_search_opendir
8240if test "$ac_res" != no; then
8241  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8242
8243fi
8244
8245else
8246  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8247echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8248if test "${ac_cv_search_opendir+set}" = set; then
8249  echo $ECHO_N "(cached) $ECHO_C" >&6
8250else
8251  ac_func_search_save_LIBS=$LIBS
8252cat >conftest.$ac_ext <<_ACEOF
8253/* confdefs.h.  */
8254_ACEOF
8255cat confdefs.h >>conftest.$ac_ext
8256cat >>conftest.$ac_ext <<_ACEOF
8257/* end confdefs.h.  */
8258
8259/* Override any GCC internal prototype to avoid an error.
8260   Use char because int might match the return type of a GCC
8261   builtin and then its argument prototype would still apply.  */
8262#ifdef __cplusplus
8263extern "C"
8264#endif
8265char opendir ();
8266int
8267main ()
8268{
8269return opendir ();
8270  ;
8271  return 0;
8272}
8273_ACEOF
8274for ac_lib in '' x; do
8275  if test -z "$ac_lib"; then
8276    ac_res="none required"
8277  else
8278    ac_res=-l$ac_lib
8279    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8280  fi
8281  rm -f conftest.$ac_objext conftest$ac_exeext
8282if { (ac_try="$ac_link"
8283case "(($ac_try" in
8284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285  *) ac_try_echo=$ac_try;;
8286esac
8287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288  (eval "$ac_link") 2>conftest.er1
8289  ac_status=$?
8290  grep -v '^ *+' conftest.er1 >conftest.err
8291  rm -f conftest.er1
8292  cat conftest.err >&5
8293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294  (exit $ac_status); } && {
8295         test -z "$ac_c_werror_flag" ||
8296         test ! -s conftest.err
8297       } && test -s conftest$ac_exeext &&
8298       $as_test_x conftest$ac_exeext; then
8299  ac_cv_search_opendir=$ac_res
8300else
8301  echo "$as_me: failed program was:" >&5
8302sed 's/^/| /' conftest.$ac_ext >&5
8303
8304
8305fi
8306
8307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8308      conftest$ac_exeext
8309  if test "${ac_cv_search_opendir+set}" = set; then
8310  break
8311fi
8312done
8313if test "${ac_cv_search_opendir+set}" = set; then
8314  :
8315else
8316  ac_cv_search_opendir=no
8317fi
8318rm conftest.$ac_ext
8319LIBS=$ac_func_search_save_LIBS
8320fi
8321{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8322echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8323ac_res=$ac_cv_search_opendir
8324if test "$ac_res" != no; then
8325  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8326
8327fi
8328
8329fi
8330
8331        { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8332echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
8333if test "${ac_cv_header_time+set}" = set; then
8334  echo $ECHO_N "(cached) $ECHO_C" >&6
8335else
8336  cat >conftest.$ac_ext <<_ACEOF
8337/* confdefs.h.  */
8338_ACEOF
8339cat confdefs.h >>conftest.$ac_ext
8340cat >>conftest.$ac_ext <<_ACEOF
8341/* end confdefs.h.  */
8342#include <sys/types.h>
8343#include <sys/time.h>
8344#include <time.h>
8345
8346int
8347main ()
8348{
8349if ((struct tm *) 0)
8350return 0;
8351  ;
8352  return 0;
8353}
8354_ACEOF
8355rm -f conftest.$ac_objext
8356if { (ac_try="$ac_compile"
8357case "(($ac_try" in
8358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359  *) ac_try_echo=$ac_try;;
8360esac
8361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362  (eval "$ac_compile") 2>conftest.er1
8363  ac_status=$?
8364  grep -v '^ *+' conftest.er1 >conftest.err
8365  rm -f conftest.er1
8366  cat conftest.err >&5
8367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368  (exit $ac_status); } && {
8369         test -z "$ac_c_werror_flag" ||
8370         test ! -s conftest.err
8371       } && test -s conftest.$ac_objext; then
8372  ac_cv_header_time=yes
8373else
8374  echo "$as_me: failed program was:" >&5
8375sed 's/^/| /' conftest.$ac_ext >&5
8376
8377        ac_cv_header_time=no
8378fi
8379
8380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381fi
8382{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8383echo "${ECHO_T}$ac_cv_header_time" >&6; }
8384if test $ac_cv_header_time = yes; then
8385
8386cat >>confdefs.h <<\_ACEOF
8387#define TIME_WITH_SYS_TIME 1
8388_ACEOF
8389
8390fi
8391
8392        { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
8393echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
8394if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
8395  echo $ECHO_N "(cached) $ECHO_C" >&6
8396else
8397  cat >conftest.$ac_ext <<_ACEOF
8398/* confdefs.h.  */
8399_ACEOF
8400cat confdefs.h >>conftest.$ac_ext
8401cat >>conftest.$ac_ext <<_ACEOF
8402/* end confdefs.h.  */
8403#include <sys/types.h>
8404#include <termios.h>
8405#ifdef TIOCGWINSZ
8406  yes
8407#endif
8408
8409_ACEOF
8410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8411  $EGREP "yes" >/dev/null 2>&1; then
8412  ac_cv_sys_tiocgwinsz_in_termios_h=yes
8413else
8414  ac_cv_sys_tiocgwinsz_in_termios_h=no
8415fi
8416rm -f conftest*
8417
8418fi
8419{ echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8420echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8421
8422if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8423  { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8424echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
8425if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
8426  echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428  cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h.  */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h.  */
8434#include <sys/types.h>
8435#include <sys/ioctl.h>
8436#ifdef TIOCGWINSZ
8437  yes
8438#endif
8439
8440_ACEOF
8441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8442  $EGREP "yes" >/dev/null 2>&1; then
8443  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8444else
8445  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8446fi
8447rm -f conftest*
8448
8449fi
8450{ echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8451echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8452
8453  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8454
8455cat >>confdefs.h <<\_ACEOF
8456#define GWINSZ_IN_SYS_IOCTL 1
8457_ACEOF
8458
8459  fi
8460fi
8461
8462
8463
8464
8465
8466
8467for ac_header in unistd.h sched.h netdb.h termios.h execinfo.h
8468do
8469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8471  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8474  echo $ECHO_N "(cached) $ECHO_C" >&6
8475fi
8476ac_res=`eval echo '${'$as_ac_Header'}'`
8477               { echo "$as_me:$LINENO: result: $ac_res" >&5
8478echo "${ECHO_T}$ac_res" >&6; }
8479else
8480  # Is the header compilable?
8481{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8483cat >conftest.$ac_ext <<_ACEOF
8484/* confdefs.h.  */
8485_ACEOF
8486cat confdefs.h >>conftest.$ac_ext
8487cat >>conftest.$ac_ext <<_ACEOF
8488/* end confdefs.h.  */
8489$ac_includes_default
8490#include <$ac_header>
8491_ACEOF
8492rm -f conftest.$ac_objext
8493if { (ac_try="$ac_compile"
8494case "(($ac_try" in
8495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496  *) ac_try_echo=$ac_try;;
8497esac
8498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499  (eval "$ac_compile") 2>conftest.er1
8500  ac_status=$?
8501  grep -v '^ *+' conftest.er1 >conftest.err
8502  rm -f conftest.er1
8503  cat conftest.err >&5
8504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505  (exit $ac_status); } && {
8506         test -z "$ac_c_werror_flag" ||
8507         test ! -s conftest.err
8508       } && test -s conftest.$ac_objext; then
8509  ac_header_compiler=yes
8510else
8511  echo "$as_me: failed program was:" >&5
8512sed 's/^/| /' conftest.$ac_ext >&5
8513
8514        ac_header_compiler=no
8515fi
8516
8517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8519echo "${ECHO_T}$ac_header_compiler" >&6; }
8520
8521# Is the header present?
8522{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8524cat >conftest.$ac_ext <<_ACEOF
8525/* confdefs.h.  */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h.  */
8530#include <$ac_header>
8531_ACEOF
8532if { (ac_try="$ac_cpp conftest.$ac_ext"
8533case "(($ac_try" in
8534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535  *) ac_try_echo=$ac_try;;
8536esac
8537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8539  ac_status=$?
8540  grep -v '^ *+' conftest.er1 >conftest.err
8541  rm -f conftest.er1
8542  cat conftest.err >&5
8543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544  (exit $ac_status); } >/dev/null && {
8545         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8546         test ! -s conftest.err
8547       }; then
8548  ac_header_preproc=yes
8549else
8550  echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553  ac_header_preproc=no
8554fi
8555
8556rm -f conftest.err conftest.$ac_ext
8557{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8558echo "${ECHO_T}$ac_header_preproc" >&6; }
8559
8560# So?  What about this header?
8561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8562  yes:no: )
8563    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8565    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8566echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8567    ac_header_preproc=yes
8568    ;;
8569  no:yes:* )
8570    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8571echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8572    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8573echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8574    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8575echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8576    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8577echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8578    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8579echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8580    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8581echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8582
8583    ;;
8584esac
8585{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8588  echo $ECHO_N "(cached) $ECHO_C" >&6
8589else
8590  eval "$as_ac_Header=\$ac_header_preproc"
8591fi
8592ac_res=`eval echo '${'$as_ac_Header'}'`
8593               { echo "$as_me:$LINENO: result: $ac_res" >&5
8594echo "${ECHO_T}$ac_res" >&6; }
8595
8596fi
8597if test `eval echo '${'$as_ac_Header'}'` = yes; then
8598  cat >>confdefs.h <<_ACEOF
8599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8600_ACEOF
8601
8602fi
8603
8604done
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617for ac_header in sys/utsname.h sys/types.h sys/stat.h sys/socket.h sys/select.h sys/ioctl.h sys/time.h sys/mman.h sys/io.h sys/kd.h sys/vt.h
8618do
8619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8621  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8624  echo $ECHO_N "(cached) $ECHO_C" >&6
8625fi
8626ac_res=`eval echo '${'$as_ac_Header'}'`
8627               { echo "$as_me:$LINENO: result: $ac_res" >&5
8628echo "${ECHO_T}$ac_res" >&6; }
8629else
8630  # Is the header compilable?
8631{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8632echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8633cat >conftest.$ac_ext <<_ACEOF
8634/* confdefs.h.  */
8635_ACEOF
8636cat confdefs.h >>conftest.$ac_ext
8637cat >>conftest.$ac_ext <<_ACEOF
8638/* end confdefs.h.  */
8639$ac_includes_default
8640#include <$ac_header>
8641_ACEOF
8642rm -f conftest.$ac_objext
8643if { (ac_try="$ac_compile"
8644case "(($ac_try" in
8645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646  *) ac_try_echo=$ac_try;;
8647esac
8648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649  (eval "$ac_compile") 2>conftest.er1
8650  ac_status=$?
8651  grep -v '^ *+' conftest.er1 >conftest.err
8652  rm -f conftest.er1
8653  cat conftest.err >&5
8654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655  (exit $ac_status); } && {
8656         test -z "$ac_c_werror_flag" ||
8657         test ! -s conftest.err
8658       } && test -s conftest.$ac_objext; then
8659  ac_header_compiler=yes
8660else
8661  echo "$as_me: failed program was:" >&5
8662sed 's/^/| /' conftest.$ac_ext >&5
8663
8664        ac_header_compiler=no
8665fi
8666
8667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8669echo "${ECHO_T}$ac_header_compiler" >&6; }
8670
8671# Is the header present?
8672{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8674cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h.  */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h.  */
8680#include <$ac_header>
8681_ACEOF
8682if { (ac_try="$ac_cpp conftest.$ac_ext"
8683case "(($ac_try" in
8684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685  *) ac_try_echo=$ac_try;;
8686esac
8687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8689  ac_status=$?
8690  grep -v '^ *+' conftest.er1 >conftest.err
8691  rm -f conftest.er1
8692  cat conftest.err >&5
8693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694  (exit $ac_status); } >/dev/null && {
8695         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8696         test ! -s conftest.err
8697       }; then
8698  ac_header_preproc=yes
8699else
8700  echo "$as_me: failed program was:" >&5
8701sed 's/^/| /' conftest.$ac_ext >&5
8702
8703  ac_header_preproc=no
8704fi
8705
8706rm -f conftest.err conftest.$ac_ext
8707{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8708echo "${ECHO_T}$ac_header_preproc" >&6; }
8709
8710# So?  What about this header?
8711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8712  yes:no: )
8713    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8715    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8717    ac_header_preproc=yes
8718    ;;
8719  no:yes:* )
8720    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8722    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8723echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8724    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8726    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8727echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8728    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8730    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8732
8733    ;;
8734esac
8735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8738  echo $ECHO_N "(cached) $ECHO_C" >&6
8739else
8740  eval "$as_ac_Header=\$ac_header_preproc"
8741fi
8742ac_res=`eval echo '${'$as_ac_Header'}'`
8743               { echo "$as_me:$LINENO: result: $ac_res" >&5
8744echo "${ECHO_T}$ac_res" >&6; }
8745
8746fi
8747if test `eval echo '${'$as_ac_Header'}'` = yes; then
8748  cat >>confdefs.h <<_ACEOF
8749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8750_ACEOF
8751
8752fi
8753
8754done
8755
8756
8757for ac_header in netinet/in.h
8758do
8759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8761  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8764  echo $ECHO_N "(cached) $ECHO_C" >&6
8765fi
8766ac_res=`eval echo '${'$as_ac_Header'}'`
8767               { echo "$as_me:$LINENO: result: $ac_res" >&5
8768echo "${ECHO_T}$ac_res" >&6; }
8769else
8770  # Is the header compilable?
8771{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8773cat >conftest.$ac_ext <<_ACEOF
8774/* confdefs.h.  */
8775_ACEOF
8776cat confdefs.h >>conftest.$ac_ext
8777cat >>conftest.$ac_ext <<_ACEOF
8778/* end confdefs.h.  */
8779$ac_includes_default
8780#include <$ac_header>
8781_ACEOF
8782rm -f conftest.$ac_objext
8783if { (ac_try="$ac_compile"
8784case "(($ac_try" in
8785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786  *) ac_try_echo=$ac_try;;
8787esac
8788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789  (eval "$ac_compile") 2>conftest.er1
8790  ac_status=$?
8791  grep -v '^ *+' conftest.er1 >conftest.err
8792  rm -f conftest.er1
8793  cat conftest.err >&5
8794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795  (exit $ac_status); } && {
8796         test -z "$ac_c_werror_flag" ||
8797         test ! -s conftest.err
8798       } && test -s conftest.$ac_objext; then
8799  ac_header_compiler=yes
8800else
8801  echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804        ac_header_compiler=no
8805fi
8806
8807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8809echo "${ECHO_T}$ac_header_compiler" >&6; }
8810
8811# Is the header present?
8812{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8814cat >conftest.$ac_ext <<_ACEOF
8815/* confdefs.h.  */
8816_ACEOF
8817cat confdefs.h >>conftest.$ac_ext
8818cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h.  */
8820#include <$ac_header>
8821_ACEOF
8822if { (ac_try="$ac_cpp conftest.$ac_ext"
8823case "(($ac_try" in
8824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825  *) ac_try_echo=$ac_try;;
8826esac
8827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8829  ac_status=$?
8830  grep -v '^ *+' conftest.er1 >conftest.err
8831  rm -f conftest.er1
8832  cat conftest.err >&5
8833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834  (exit $ac_status); } >/dev/null && {
8835         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8836         test ! -s conftest.err
8837       }; then
8838  ac_header_preproc=yes
8839else
8840  echo "$as_me: failed program was:" >&5
8841sed 's/^/| /' conftest.$ac_ext >&5
8842
8843  ac_header_preproc=no
8844fi
8845
8846rm -f conftest.err conftest.$ac_ext
8847{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8848echo "${ECHO_T}$ac_header_preproc" >&6; }
8849
8850# So?  What about this header?
8851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8852  yes:no: )
8853    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8854echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8855    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8856echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8857    ac_header_preproc=yes
8858    ;;
8859  no:yes:* )
8860    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8861echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8862    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8863echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8864    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8865echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8866    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8867echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8868    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8870    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8871echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8872
8873    ;;
8874esac
8875{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8878  echo $ECHO_N "(cached) $ECHO_C" >&6
8879else
8880  eval "$as_ac_Header=\$ac_header_preproc"
8881fi
8882ac_res=`eval echo '${'$as_ac_Header'}'`
8883               { echo "$as_me:$LINENO: result: $ac_res" >&5
8884echo "${ECHO_T}$ac_res" >&6; }
8885
8886fi
8887if test `eval echo '${'$as_ac_Header'}'` = yes; then
8888  cat >>confdefs.h <<_ACEOF
8889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8890_ACEOF
8891
8892fi
8893
8894done
8895
8896    if test $ac_enable_ucontexth = auto; then
8897
8898for ac_header in ucontext.h
8899do
8900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8902  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8905  echo $ECHO_N "(cached) $ECHO_C" >&6
8906fi
8907ac_res=`eval echo '${'$as_ac_Header'}'`
8908               { echo "$as_me:$LINENO: result: $ac_res" >&5
8909echo "${ECHO_T}$ac_res" >&6; }
8910else
8911  # Is the header compilable?
8912{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8914cat >conftest.$ac_ext <<_ACEOF
8915/* confdefs.h.  */
8916_ACEOF
8917cat confdefs.h >>conftest.$ac_ext
8918cat >>conftest.$ac_ext <<_ACEOF
8919/* end confdefs.h.  */
8920$ac_includes_default
8921#include <$ac_header>
8922_ACEOF
8923rm -f conftest.$ac_objext
8924if { (ac_try="$ac_compile"
8925case "(($ac_try" in
8926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927  *) ac_try_echo=$ac_try;;
8928esac
8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930  (eval "$ac_compile") 2>conftest.er1
8931  ac_status=$?
8932  grep -v '^ *+' conftest.er1 >conftest.err
8933  rm -f conftest.er1
8934  cat conftest.err >&5
8935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936  (exit $ac_status); } && {
8937         test -z "$ac_c_werror_flag" ||
8938         test ! -s conftest.err
8939       } && test -s conftest.$ac_objext; then
8940  ac_header_compiler=yes
8941else
8942  echo "$as_me: failed program was:" >&5
8943sed 's/^/| /' conftest.$ac_ext >&5
8944
8945        ac_header_compiler=no
8946fi
8947
8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950echo "${ECHO_T}$ac_header_compiler" >&6; }
8951
8952# Is the header present?
8953{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8955cat >conftest.$ac_ext <<_ACEOF
8956/* confdefs.h.  */
8957_ACEOF
8958cat confdefs.h >>conftest.$ac_ext
8959cat >>conftest.$ac_ext <<_ACEOF
8960/* end confdefs.h.  */
8961#include <$ac_header>
8962_ACEOF
8963if { (ac_try="$ac_cpp conftest.$ac_ext"
8964case "(($ac_try" in
8965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966  *) ac_try_echo=$ac_try;;
8967esac
8968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8970  ac_status=$?
8971  grep -v '^ *+' conftest.er1 >conftest.err
8972  rm -f conftest.er1
8973  cat conftest.err >&5
8974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975  (exit $ac_status); } >/dev/null && {
8976         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8977         test ! -s conftest.err
8978       }; then
8979  ac_header_preproc=yes
8980else
8981  echo "$as_me: failed program was:" >&5
8982sed 's/^/| /' conftest.$ac_ext >&5
8983
8984  ac_header_preproc=no
8985fi
8986
8987rm -f conftest.err conftest.$ac_ext
8988{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8989echo "${ECHO_T}$ac_header_preproc" >&6; }
8990
8991# So?  What about this header?
8992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8993  yes:no: )
8994    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8995echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8996    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8997echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8998    ac_header_preproc=yes
8999    ;;
9000  no:yes:* )
9001    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9003    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9004echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9005    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9006echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9007    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9008echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9009    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9011    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9012echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9013
9014    ;;
9015esac
9016{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9019  echo $ECHO_N "(cached) $ECHO_C" >&6
9020else
9021  eval "$as_ac_Header=\$ac_header_preproc"
9022fi
9023ac_res=`eval echo '${'$as_ac_Header'}'`
9024               { echo "$as_me:$LINENO: result: $ac_res" >&5
9025echo "${ECHO_T}$ac_res" >&6; }
9026
9027fi
9028if test `eval echo '${'$as_ac_Header'}'` = yes; then
9029  cat >>confdefs.h <<_ACEOF
9030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031_ACEOF
9032
9033fi
9034
9035done
9036
9037    fi
9038        { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9039echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9040if test "${ac_cv_c_const+set}" = set; then
9041  echo $ECHO_N "(cached) $ECHO_C" >&6
9042else
9043  cat >conftest.$ac_ext <<_ACEOF
9044/* confdefs.h.  */
9045_ACEOF
9046cat confdefs.h >>conftest.$ac_ext
9047cat >>conftest.$ac_ext <<_ACEOF
9048/* end confdefs.h.  */
9049
9050int
9051main ()
9052{
9053/* FIXME: Include the comments suggested by Paul. */
9054#ifndef __cplusplus
9055  /* Ultrix mips cc rejects this.  */
9056  typedef int charset[2];
9057  const charset cs;
9058  /* SunOS 4.1.1 cc rejects this.  */
9059  char const *const *pcpcc;
9060  char **ppc;
9061  /* NEC SVR4.0.2 mips cc rejects this.  */
9062  struct point {int x, y;};
9063  static struct point const zero = {0,0};
9064  /* AIX XL C 1.02.0.0 rejects this.
9065     It does not let you subtract one const X* pointer from another in
9066     an arm of an if-expression whose if-part is not a constant
9067     expression */
9068  const char *g = "string";
9069  pcpcc = &g + (g ? g-g : 0);
9070  /* HPUX 7.0 cc rejects these. */
9071  ++pcpcc;
9072  ppc = (char**) pcpcc;
9073  pcpcc = (char const *const *) ppc;
9074  { /* SCO 3.2v4 cc rejects this.  */
9075    char *t;
9076    char const *s = 0 ? (char *) 0 : (char const *) 0;
9077
9078    *t++ = 0;
9079    if (s) return 0;
9080  }
9081  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9082    int x[] = {25, 17};
9083    const int *foo = &x[0];
9084    ++foo;
9085  }
9086  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9087    typedef const int *iptr;
9088    iptr p = 0;
9089    ++p;
9090  }
9091  { /* AIX XL C 1.02.0.0 rejects this saying
9092       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9093    struct s { int j; const int *ap[3]; };
9094    struct s *b; b->j = 5;
9095  }
9096  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9097    const int foo = 10;
9098    if (!foo) return 0;
9099  }
9100  return !cs[0] && !zero.x;
9101#endif
9102
9103  ;
9104  return 0;
9105}
9106_ACEOF
9107rm -f conftest.$ac_objext
9108if { (ac_try="$ac_compile"
9109case "(($ac_try" in
9110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111  *) ac_try_echo=$ac_try;;
9112esac
9113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114  (eval "$ac_compile") 2>conftest.er1
9115  ac_status=$?
9116  grep -v '^ *+' conftest.er1 >conftest.err
9117  rm -f conftest.er1
9118  cat conftest.err >&5
9119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); } && {
9121         test -z "$ac_c_werror_flag" ||
9122         test ! -s conftest.err
9123       } && test -s conftest.$ac_objext; then
9124  ac_cv_c_const=yes
9125else
9126  echo "$as_me: failed program was:" >&5
9127sed 's/^/| /' conftest.$ac_ext >&5
9128
9129        ac_cv_c_const=no
9130fi
9131
9132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9133fi
9134{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9135echo "${ECHO_T}$ac_cv_c_const" >&6; }
9136if test $ac_cv_c_const = no; then
9137
9138cat >>confdefs.h <<\_ACEOF
9139#define const
9140_ACEOF
9141
9142fi
9143
9144        { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
9145echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
9146if test "${ac_cv_c_restrict+set}" = set; then
9147  echo $ECHO_N "(cached) $ECHO_C" >&6
9148else
9149  ac_cv_c_restrict=no
9150   # Try the official restrict keyword, then gcc's __restrict, and
9151   # the less common variants.
9152   for ac_kw in restrict __restrict __restrict__ _Restrict; do
9153     cat >conftest.$ac_ext <<_ACEOF
9154/* confdefs.h.  */
9155_ACEOF
9156cat confdefs.h >>conftest.$ac_ext
9157cat >>conftest.$ac_ext <<_ACEOF
9158/* end confdefs.h.  */
9159typedef int * int_ptr;
9160        int foo (int_ptr $ac_kw ip) {
9161        return ip[0];
9162       }
9163int
9164main ()
9165{
9166int s[1];
9167        int * $ac_kw t = s;
9168        t[0] = 0;
9169        return foo(t)
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174rm -f conftest.$ac_objext
9175if { (ac_try="$ac_compile"
9176case "(($ac_try" in
9177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178  *) ac_try_echo=$ac_try;;
9179esac
9180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181  (eval "$ac_compile") 2>conftest.er1
9182  ac_status=$?
9183  grep -v '^ *+' conftest.er1 >conftest.err
9184  rm -f conftest.er1
9185  cat conftest.err >&5
9186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187  (exit $ac_status); } && {
9188         test -z "$ac_c_werror_flag" ||
9189         test ! -s conftest.err
9190       } && test -s conftest.$ac_objext; then
9191  ac_cv_c_restrict=$ac_kw
9192else
9193  echo "$as_me: failed program was:" >&5
9194sed 's/^/| /' conftest.$ac_ext >&5
9195
9196
9197fi
9198
9199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200     test "$ac_cv_c_restrict" != no && break
9201   done
9202
9203fi
9204{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
9205echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
9206 case $ac_cv_c_restrict in
9207   restrict) ;;
9208   no)
9209cat >>confdefs.h <<\_ACEOF
9210#define restrict
9211_ACEOF
9212 ;;
9213   *)  cat >>confdefs.h <<_ACEOF
9214#define restrict $ac_cv_c_restrict
9215_ACEOF
9216 ;;
9217 esac
9218
9219        { echo "$as_me:$LINENO: checking for inline" >&5
9220echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9221if test "${ac_cv_c_inline+set}" = set; then
9222  echo $ECHO_N "(cached) $ECHO_C" >&6
9223else
9224  ac_cv_c_inline=no
9225for ac_kw in inline __inline__ __inline; do
9226  cat >conftest.$ac_ext <<_ACEOF
9227/* confdefs.h.  */
9228_ACEOF
9229cat confdefs.h >>conftest.$ac_ext
9230cat >>conftest.$ac_ext <<_ACEOF
9231/* end confdefs.h.  */
9232#ifndef __cplusplus
9233typedef int foo_t;
9234static $ac_kw foo_t static_foo () {return 0; }
9235$ac_kw foo_t foo () {return 0; }
9236#endif
9237
9238_ACEOF
9239rm -f conftest.$ac_objext
9240if { (ac_try="$ac_compile"
9241case "(($ac_try" in
9242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243  *) ac_try_echo=$ac_try;;
9244esac
9245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246  (eval "$ac_compile") 2>conftest.er1
9247  ac_status=$?
9248  grep -v '^ *+' conftest.er1 >conftest.err
9249  rm -f conftest.er1
9250  cat conftest.err >&5
9251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252  (exit $ac_status); } && {
9253         test -z "$ac_c_werror_flag" ||
9254         test ! -s conftest.err
9255       } && test -s conftest.$ac_objext; then
9256  ac_cv_c_inline=$ac_kw
9257else
9258  echo "$as_me: failed program was:" >&5
9259sed 's/^/| /' conftest.$ac_ext >&5
9260
9261
9262fi
9263
9264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265  test "$ac_cv_c_inline" != no && break
9266done
9267
9268fi
9269{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9270echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9271
9272
9273case $ac_cv_c_inline in
9274  inline | yes) ;;
9275  *)
9276    case $ac_cv_c_inline in
9277      no) ac_val=;;
9278      *) ac_val=$ac_cv_c_inline;;
9279    esac
9280    cat >>confdefs.h <<_ACEOF
9281#ifndef __cplusplus
9282#define inline $ac_val
9283#endif
9284_ACEOF
9285    ;;
9286esac
9287
9288        # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9289# for constant arguments.  Useless!
9290{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
9291echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9292if test "${ac_cv_working_alloca_h+set}" = set; then
9293  echo $ECHO_N "(cached) $ECHO_C" >&6
9294else
9295  cat >conftest.$ac_ext <<_ACEOF
9296/* confdefs.h.  */
9297_ACEOF
9298cat confdefs.h >>conftest.$ac_ext
9299cat >>conftest.$ac_ext <<_ACEOF
9300/* end confdefs.h.  */
9301#include <alloca.h>
9302int
9303main ()
9304{
9305char *p = (char *) alloca (2 * sizeof (int));
9306                          if (p) return 0;
9307  ;
9308  return 0;
9309}
9310_ACEOF
9311rm -f conftest.$ac_objext conftest$ac_exeext
9312if { (ac_try="$ac_link"
9313case "(($ac_try" in
9314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315  *) ac_try_echo=$ac_try;;
9316esac
9317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318  (eval "$ac_link") 2>conftest.er1
9319  ac_status=$?
9320  grep -v '^ *+' conftest.er1 >conftest.err
9321  rm -f conftest.er1
9322  cat conftest.err >&5
9323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324  (exit $ac_status); } && {
9325         test -z "$ac_c_werror_flag" ||
9326         test ! -s conftest.err
9327       } && test -s conftest$ac_exeext &&
9328       $as_test_x conftest$ac_exeext; then
9329  ac_cv_working_alloca_h=yes
9330else
9331  echo "$as_me: failed program was:" >&5
9332sed 's/^/| /' conftest.$ac_ext >&5
9333
9334        ac_cv_working_alloca_h=no
9335fi
9336
9337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9338      conftest$ac_exeext conftest.$ac_ext
9339fi
9340{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9341echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9342if test $ac_cv_working_alloca_h = yes; then
9343
9344cat >>confdefs.h <<\_ACEOF
9345#define HAVE_ALLOCA_H 1
9346_ACEOF
9347
9348fi
9349
9350{ echo "$as_me:$LINENO: checking for alloca" >&5
9351echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9352if test "${ac_cv_func_alloca_works+set}" = set; then
9353  echo $ECHO_N "(cached) $ECHO_C" >&6
9354else
9355  cat >conftest.$ac_ext <<_ACEOF
9356/* confdefs.h.  */
9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h.  */
9361#ifdef __GNUC__
9362# define alloca __builtin_alloca
9363#else
9364# ifdef _MSC_VER
9365#  include <malloc.h>
9366#  define alloca _alloca
9367# else
9368#  ifdef HAVE_ALLOCA_H
9369#   include <alloca.h>
9370#  else
9371#   ifdef _AIX
9372 #pragma alloca
9373#   else
9374#    ifndef alloca /* predefined by HP cc +Olibcalls */
9375char *alloca ();
9376#    endif
9377#   endif
9378#  endif
9379# endif
9380#endif
9381
9382int
9383main ()
9384{
9385char *p = (char *) alloca (1);
9386                                    if (p) return 0;
9387  ;
9388  return 0;
9389}
9390_ACEOF
9391rm -f conftest.$ac_objext conftest$ac_exeext
9392if { (ac_try="$ac_link"
9393case "(($ac_try" in
9394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395  *) ac_try_echo=$ac_try;;
9396esac
9397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398  (eval "$ac_link") 2>conftest.er1
9399  ac_status=$?
9400  grep -v '^ *+' conftest.er1 >conftest.err
9401  rm -f conftest.er1
9402  cat conftest.err >&5
9403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404  (exit $ac_status); } && {
9405         test -z "$ac_c_werror_flag" ||
9406         test ! -s conftest.err
9407       } && test -s conftest$ac_exeext &&
9408       $as_test_x conftest$ac_exeext; then
9409  ac_cv_func_alloca_works=yes
9410else
9411  echo "$as_me: failed program was:" >&5
9412sed 's/^/| /' conftest.$ac_ext >&5
9413
9414        ac_cv_func_alloca_works=no
9415fi
9416
9417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418      conftest$ac_exeext conftest.$ac_ext
9419fi
9420{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9421echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9422
9423if test $ac_cv_func_alloca_works = yes; then
9424
9425cat >>confdefs.h <<\_ACEOF
9426#define HAVE_ALLOCA 1
9427_ACEOF
9428
9429else
9430  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9431# that cause trouble.  Some versions do not even contain alloca or
9432# contain a buggy version.  If you still want to use their alloca,
9433# use ar to extract alloca.o from them instead of compiling alloca.c.
9434
9435ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9436
9437cat >>confdefs.h <<\_ACEOF
9438#define C_ALLOCA 1
9439_ACEOF
9440
9441
9442{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9443echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9444if test "${ac_cv_os_cray+set}" = set; then
9445  echo $ECHO_N "(cached) $ECHO_C" >&6
9446else
9447  cat >conftest.$ac_ext <<_ACEOF
9448/* confdefs.h.  */
9449_ACEOF
9450cat confdefs.h >>conftest.$ac_ext
9451cat >>conftest.$ac_ext <<_ACEOF
9452/* end confdefs.h.  */
9453#if defined CRAY && ! defined CRAY2
9454webecray
9455#else
9456wenotbecray
9457#endif
9458
9459_ACEOF
9460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9461  $EGREP "webecray" >/dev/null 2>&1; then
9462  ac_cv_os_cray=yes
9463else
9464  ac_cv_os_cray=no
9465fi
9466rm -f conftest*
9467
9468fi
9469{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9470echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9471if test $ac_cv_os_cray = yes; then
9472  for ac_func in _getb67 GETB67 getb67; do
9473    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9474{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9476if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9477  echo $ECHO_N "(cached) $ECHO_C" >&6
9478else
9479  cat >conftest.$ac_ext <<_ACEOF
9480/* confdefs.h.  */
9481_ACEOF
9482cat confdefs.h >>conftest.$ac_ext
9483cat >>conftest.$ac_ext <<_ACEOF
9484/* end confdefs.h.  */
9485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9486   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9487#define $ac_func innocuous_$ac_func
9488
9489/* System header to define __stub macros and hopefully few prototypes,
9490    which can conflict with char $ac_func (); below.
9491    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9492    <limits.h> exists even on freestanding compilers.  */
9493
9494#ifdef __STDC__
9495# include <limits.h>
9496#else
9497# include <assert.h>
9498#endif
9499
9500#undef $ac_func
9501
9502/* Override any GCC internal prototype to avoid an error.
9503   Use char because int might match the return type of a GCC
9504   builtin and then its argument prototype would still apply.  */
9505#ifdef __cplusplus
9506extern "C"
9507#endif
9508char $ac_func ();
9509/* The GNU C library defines this for functions which it implements
9510    to always fail with ENOSYS.  Some functions are actually named
9511    something starting with __ and the normal name is an alias.  */
9512#if defined __stub_$ac_func || defined __stub___$ac_func
9513choke me
9514#endif
9515
9516int
9517main ()
9518{
9519return $ac_func ();
9520  ;
9521  return 0;
9522}
9523_ACEOF
9524rm -f conftest.$ac_objext conftest$ac_exeext
9525if { (ac_try="$ac_link"
9526case "(($ac_try" in
9527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528  *) ac_try_echo=$ac_try;;
9529esac
9530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531  (eval "$ac_link") 2>conftest.er1
9532  ac_status=$?
9533  grep -v '^ *+' conftest.er1 >conftest.err
9534  rm -f conftest.er1
9535  cat conftest.err >&5
9536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537  (exit $ac_status); } && {
9538         test -z "$ac_c_werror_flag" ||
9539         test ! -s conftest.err
9540       } && test -s conftest$ac_exeext &&
9541       $as_test_x conftest$ac_exeext; then
9542  eval "$as_ac_var=yes"
9543else
9544  echo "$as_me: failed program was:" >&5
9545sed 's/^/| /' conftest.$ac_ext >&5
9546
9547        eval "$as_ac_var=no"
9548fi
9549
9550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9551      conftest$ac_exeext conftest.$ac_ext
9552fi
9553ac_res=`eval echo '${'$as_ac_var'}'`
9554               { echo "$as_me:$LINENO: result: $ac_res" >&5
9555echo "${ECHO_T}$ac_res" >&6; }
9556if test `eval echo '${'$as_ac_var'}'` = yes; then
9557
9558cat >>confdefs.h <<_ACEOF
9559#define CRAY_STACKSEG_END $ac_func
9560_ACEOF
9561
9562    break
9563fi
9564
9565  done
9566fi
9567
9568{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9569echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9570if test "${ac_cv_c_stack_direction+set}" = set; then
9571  echo $ECHO_N "(cached) $ECHO_C" >&6
9572else
9573  if test "$cross_compiling" = yes; then
9574  ac_cv_c_stack_direction=0
9575else
9576  cat >conftest.$ac_ext <<_ACEOF
9577/* confdefs.h.  */
9578_ACEOF
9579cat confdefs.h >>conftest.$ac_ext
9580cat >>conftest.$ac_ext <<_ACEOF
9581/* end confdefs.h.  */
9582$ac_includes_default
9583int
9584find_stack_direction ()
9585{
9586  static char *addr = 0;
9587  auto char dummy;
9588  if (addr == 0)
9589    {
9590      addr = &dummy;
9591      return find_stack_direction ();
9592    }
9593  else
9594    return (&dummy > addr) ? 1 : -1;
9595}
9596
9597int
9598main ()
9599{
9600  return find_stack_direction () < 0;
9601}
9602_ACEOF
9603rm -f conftest$ac_exeext
9604if { (ac_try="$ac_link"
9605case "(($ac_try" in
9606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607  *) ac_try_echo=$ac_try;;
9608esac
9609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610  (eval "$ac_link") 2>&5
9611  ac_status=$?
9612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9614  { (case "(($ac_try" in
9615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616  *) ac_try_echo=$ac_try;;
9617esac
9618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619  (eval "$ac_try") 2>&5
9620  ac_status=$?
9621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622  (exit $ac_status); }; }; then
9623  ac_cv_c_stack_direction=1
9624else
9625  echo "$as_me: program exited with status $ac_status" >&5
9626echo "$as_me: failed program was:" >&5
9627sed 's/^/| /' conftest.$ac_ext >&5
9628
9629( exit $ac_status )
9630ac_cv_c_stack_direction=-1
9631fi
9632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9633fi
9634
9635
9636fi
9637{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9638echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9639
9640cat >>confdefs.h <<_ACEOF
9641#define STACK_DIRECTION $ac_cv_c_stack_direction
9642_ACEOF
9643
9644
9645fi
9646
9647
9648
9649for ac_header in stdlib.h unistd.h
9650do
9651as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9653  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9656  echo $ECHO_N "(cached) $ECHO_C" >&6
9657fi
9658ac_res=`eval echo '${'$as_ac_Header'}'`
9659               { echo "$as_me:$LINENO: result: $ac_res" >&5
9660echo "${ECHO_T}$ac_res" >&6; }
9661else
9662  # Is the header compilable?
9663{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9665cat >conftest.$ac_ext <<_ACEOF
9666/* confdefs.h.  */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h.  */
9671$ac_includes_default
9672#include <$ac_header>
9673_ACEOF
9674rm -f conftest.$ac_objext
9675if { (ac_try="$ac_compile"
9676case "(($ac_try" in
9677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678  *) ac_try_echo=$ac_try;;
9679esac
9680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681  (eval "$ac_compile") 2>conftest.er1
9682  ac_status=$?
9683  grep -v '^ *+' conftest.er1 >conftest.err
9684  rm -f conftest.er1
9685  cat conftest.err >&5
9686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687  (exit $ac_status); } && {
9688         test -z "$ac_c_werror_flag" ||
9689         test ! -s conftest.err
9690       } && test -s conftest.$ac_objext; then
9691  ac_header_compiler=yes
9692else
9693  echo "$as_me: failed program was:" >&5
9694sed 's/^/| /' conftest.$ac_ext >&5
9695
9696        ac_header_compiler=no
9697fi
9698
9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9701echo "${ECHO_T}$ac_header_compiler" >&6; }
9702
9703# Is the header present?
9704{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9705echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9706cat >conftest.$ac_ext <<_ACEOF
9707/* confdefs.h.  */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h.  */
9712#include <$ac_header>
9713_ACEOF
9714if { (ac_try="$ac_cpp conftest.$ac_ext"
9715case "(($ac_try" in
9716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717  *) ac_try_echo=$ac_try;;
9718esac
9719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9721  ac_status=$?
9722  grep -v '^ *+' conftest.er1 >conftest.err
9723  rm -f conftest.er1
9724  cat conftest.err >&5
9725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726  (exit $ac_status); } >/dev/null && {
9727         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9728         test ! -s conftest.err
9729       }; then
9730  ac_header_preproc=yes
9731else
9732  echo "$as_me: failed program was:" >&5
9733sed 's/^/| /' conftest.$ac_ext >&5
9734
9735  ac_header_preproc=no
9736fi
9737
9738rm -f conftest.err conftest.$ac_ext
9739{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9740echo "${ECHO_T}$ac_header_preproc" >&6; }
9741
9742# So?  What about this header?
9743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9744  yes:no: )
9745    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9746echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9747    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9748echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9749    ac_header_preproc=yes
9750    ;;
9751  no:yes:* )
9752    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9753echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9754    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9755echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9756    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9757echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9758    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9759echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9760    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9761echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9762    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9763echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9764
9765    ;;
9766esac
9767{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9770  echo $ECHO_N "(cached) $ECHO_C" >&6
9771else
9772  eval "$as_ac_Header=\$ac_header_preproc"
9773fi
9774ac_res=`eval echo '${'$as_ac_Header'}'`
9775               { echo "$as_me:$LINENO: result: $ac_res" >&5
9776echo "${ECHO_T}$ac_res" >&6; }
9777
9778fi
9779if test `eval echo '${'$as_ac_Header'}'` = yes; then
9780  cat >>confdefs.h <<_ACEOF
9781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9782_ACEOF
9783
9784fi
9785
9786done
9787
9788
9789for ac_func in getpagesize
9790do
9791as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9792{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9793echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9794if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9795  echo $ECHO_N "(cached) $ECHO_C" >&6
9796else
9797  cat >conftest.$ac_ext <<_ACEOF
9798/* confdefs.h.  */
9799_ACEOF
9800cat confdefs.h >>conftest.$ac_ext
9801cat >>conftest.$ac_ext <<_ACEOF
9802/* end confdefs.h.  */
9803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9805#define $ac_func innocuous_$ac_func
9806
9807/* System header to define __stub macros and hopefully few prototypes,
9808    which can conflict with char $ac_func (); below.
9809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9810    <limits.h> exists even on freestanding compilers.  */
9811
9812#ifdef __STDC__
9813# include <limits.h>
9814#else
9815# include <assert.h>
9816#endif
9817
9818#undef $ac_func
9819
9820/* Override any GCC internal prototype to avoid an error.
9821   Use char because int might match the return type of a GCC
9822   builtin and then its argument prototype would still apply.  */
9823#ifdef __cplusplus
9824extern "C"
9825#endif
9826char $ac_func ();
9827/* The GNU C library defines this for functions which it implements
9828    to always fail with ENOSYS.  Some functions are actually named
9829    something starting with __ and the normal name is an alias.  */
9830#if defined __stub_$ac_func || defined __stub___$ac_func
9831choke me
9832#endif
9833
9834int
9835main ()
9836{
9837return $ac_func ();
9838  ;
9839  return 0;
9840}
9841_ACEOF
9842rm -f conftest.$ac_objext conftest$ac_exeext
9843if { (ac_try="$ac_link"
9844case "(($ac_try" in
9845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846  *) ac_try_echo=$ac_try;;
9847esac
9848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849  (eval "$ac_link") 2>conftest.er1
9850  ac_status=$?
9851  grep -v '^ *+' conftest.er1 >conftest.err
9852  rm -f conftest.er1
9853  cat conftest.err >&5
9854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855  (exit $ac_status); } && {
9856         test -z "$ac_c_werror_flag" ||
9857         test ! -s conftest.err
9858       } && test -s conftest$ac_exeext &&
9859       $as_test_x conftest$ac_exeext; then
9860  eval "$as_ac_var=yes"
9861else
9862  echo "$as_me: failed program was:" >&5
9863sed 's/^/| /' conftest.$ac_ext >&5
9864
9865        eval "$as_ac_var=no"
9866fi
9867
9868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9869      conftest$ac_exeext conftest.$ac_ext
9870fi
9871ac_res=`eval echo '${'$as_ac_var'}'`
9872               { echo "$as_me:$LINENO: result: $ac_res" >&5
9873echo "${ECHO_T}$ac_res" >&6; }
9874if test `eval echo '${'$as_ac_var'}'` = yes; then
9875  cat >>confdefs.h <<_ACEOF
9876#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9877_ACEOF
9878
9879fi
9880done
9881
9882{ echo "$as_me:$LINENO: checking for working mmap" >&5
9883echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9884if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9885  echo $ECHO_N "(cached) $ECHO_C" >&6
9886else
9887  if test "$cross_compiling" = yes; then
9888  ac_cv_func_mmap_fixed_mapped=no
9889else
9890  cat >conftest.$ac_ext <<_ACEOF
9891/* confdefs.h.  */
9892_ACEOF
9893cat confdefs.h >>conftest.$ac_ext
9894cat >>conftest.$ac_ext <<_ACEOF
9895/* end confdefs.h.  */
9896$ac_includes_default
9897/* malloc might have been renamed as rpl_malloc. */
9898#undef malloc
9899
9900/* Thanks to Mike Haertel and Jim Avera for this test.
9901   Here is a matrix of mmap possibilities:
9902        mmap private not fixed
9903        mmap private fixed at somewhere currently unmapped
9904        mmap private fixed at somewhere already mapped
9905        mmap shared not fixed
9906        mmap shared fixed at somewhere currently unmapped
9907        mmap shared fixed at somewhere already mapped
9908   For private mappings, we should verify that changes cannot be read()
9909   back from the file, nor mmap's back from the file at a different
9910   address.  (There have been systems where private was not correctly
9911   implemented like the infamous i386 svr4.0, and systems where the
9912   VM page cache was not coherent with the file system buffer cache
9913   like early versions of FreeBSD and possibly contemporary NetBSD.)
9914   For shared mappings, we should conversely verify that changes get
9915   propagated back to all the places they're supposed to be.
9916
9917   Grep wants private fixed already mapped.
9918   The main things grep needs to know about mmap are:
9919   * does it exist and is it safe to write into the mmap'd area
9920   * how to use it (BSD variants)  */
9921
9922#include <fcntl.h>
9923#include <sys/mman.h>
9924
9925#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9926char *malloc ();
9927#endif
9928
9929/* This mess was copied from the GNU getpagesize.h.  */
9930#ifndef HAVE_GETPAGESIZE
9931/* Assume that all systems that can run configure have sys/param.h.  */
9932# ifndef HAVE_SYS_PARAM_H
9933#  define HAVE_SYS_PARAM_H 1
9934# endif
9935
9936# ifdef _SC_PAGESIZE
9937#  define getpagesize() sysconf(_SC_PAGESIZE)
9938# else /* no _SC_PAGESIZE */
9939#  ifdef HAVE_SYS_PARAM_H
9940#   include <sys/param.h>
9941#   ifdef EXEC_PAGESIZE
9942#    define getpagesize() EXEC_PAGESIZE
9943#   else /* no EXEC_PAGESIZE */
9944#    ifdef NBPG
9945#     define getpagesize() NBPG * CLSIZE
9946#     ifndef CLSIZE
9947#      define CLSIZE 1
9948#     endif /* no CLSIZE */
9949#    else /* no NBPG */
9950#     ifdef NBPC
9951#      define getpagesize() NBPC
9952#     else /* no NBPC */
9953#      ifdef PAGESIZE
9954#       define getpagesize() PAGESIZE
9955#      endif /* PAGESIZE */
9956#     endif /* no NBPC */
9957#    endif /* no NBPG */
9958#   endif /* no EXEC_PAGESIZE */
9959#  else /* no HAVE_SYS_PARAM_H */
9960#   define getpagesize() 8192   /* punt totally */
9961#  endif /* no HAVE_SYS_PARAM_H */
9962# endif /* no _SC_PAGESIZE */
9963
9964#endif /* no HAVE_GETPAGESIZE */
9965
9966int
9967main ()
9968{
9969  char *data, *data2, *data3;
9970  int i, pagesize;
9971  int fd;
9972
9973  pagesize = getpagesize ();
9974
9975  /* First, make a file with some known garbage in it. */
9976  data = (char *) malloc (pagesize);
9977  if (!data)
9978    return 1;
9979  for (i = 0; i < pagesize; ++i)
9980    *(data + i) = rand ();
9981  umask (0);
9982  fd = creat ("conftest.mmap", 0600);
9983  if (fd < 0)
9984    return 1;
9985  if (write (fd, data, pagesize) != pagesize)
9986    return 1;
9987  close (fd);
9988
9989  /* Next, try to mmap the file at a fixed address which already has
9990     something else allocated at it.  If we can, also make sure that
9991     we see the same garbage.  */
9992  fd = open ("conftest.mmap", O_RDWR);
9993  if (fd < 0)
9994    return 1;
9995  data2 = (char *) malloc (2 * pagesize);
9996  if (!data2)
9997    return 1;
9998  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9999  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10000                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
10001    return 1;
10002  for (i = 0; i < pagesize; ++i)
10003    if (*(data + i) != *(data2 + i))
10004      return 1;
10005
10006  /* Finally, make sure that changes to the mapped area do not
10007     percolate back to the file as seen by read().  (This is a bug on
10008     some variants of i386 svr4.0.)  */
10009  for (i = 0; i < pagesize; ++i)
10010    *(data2 + i) = *(data2 + i) + 1;
10011  data3 = (char *) malloc (pagesize);
10012  if (!data3)
10013    return 1;
10014  if (read (fd, data3, pagesize) != pagesize)
10015    return 1;
10016  for (i = 0; i < pagesize; ++i)
10017    if (*(data + i) != *(data3 + i))
10018      return 1;
10019  close (fd);
10020  return 0;
10021}
10022_ACEOF
10023rm -f conftest$ac_exeext
10024if { (ac_try="$ac_link"
10025case "(($ac_try" in
10026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027  *) ac_try_echo=$ac_try;;
10028esac
10029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030  (eval "$ac_link") 2>&5
10031  ac_status=$?
10032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10034  { (case "(($ac_try" in
10035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036  *) ac_try_echo=$ac_try;;
10037esac
10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039  (eval "$ac_try") 2>&5
10040  ac_status=$?
10041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042  (exit $ac_status); }; }; then
10043  ac_cv_func_mmap_fixed_mapped=yes
10044else
10045  echo "$as_me: program exited with status $ac_status" >&5
10046echo "$as_me: failed program was:" >&5
10047sed 's/^/| /' conftest.$ac_ext >&5
10048
10049( exit $ac_status )
10050ac_cv_func_mmap_fixed_mapped=no
10051fi
10052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10053fi
10054
10055
10056fi
10057{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10058echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10059if test $ac_cv_func_mmap_fixed_mapped = yes; then
10060
10061cat >>confdefs.h <<\_ACEOF
10062#define HAVE_MMAP 1
10063_ACEOF
10064
10065fi
10066rm -f conftest.mmap
10067
10068
10069
10070for ac_header in sys/select.h sys/socket.h
10071do
10072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10074  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10077  echo $ECHO_N "(cached) $ECHO_C" >&6
10078fi
10079ac_res=`eval echo '${'$as_ac_Header'}'`
10080               { echo "$as_me:$LINENO: result: $ac_res" >&5
10081echo "${ECHO_T}$ac_res" >&6; }
10082else
10083  # Is the header compilable?
10084{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10086cat >conftest.$ac_ext <<_ACEOF
10087/* confdefs.h.  */
10088_ACEOF
10089cat confdefs.h >>conftest.$ac_ext
10090cat >>conftest.$ac_ext <<_ACEOF
10091/* end confdefs.h.  */
10092$ac_includes_default
10093#include <$ac_header>
10094_ACEOF
10095rm -f conftest.$ac_objext
10096if { (ac_try="$ac_compile"
10097case "(($ac_try" in
10098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099  *) ac_try_echo=$ac_try;;
10100esac
10101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102  (eval "$ac_compile") 2>conftest.er1
10103  ac_status=$?
10104  grep -v '^ *+' conftest.er1 >conftest.err
10105  rm -f conftest.er1
10106  cat conftest.err >&5
10107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108  (exit $ac_status); } && {
10109         test -z "$ac_c_werror_flag" ||
10110         test ! -s conftest.err
10111       } && test -s conftest.$ac_objext; then
10112  ac_header_compiler=yes
10113else
10114  echo "$as_me: failed program was:" >&5
10115sed 's/^/| /' conftest.$ac_ext >&5
10116
10117        ac_header_compiler=no
10118fi
10119
10120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10121{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10122echo "${ECHO_T}$ac_header_compiler" >&6; }
10123
10124# Is the header present?
10125{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10127cat >conftest.$ac_ext <<_ACEOF
10128/* confdefs.h.  */
10129_ACEOF
10130cat confdefs.h >>conftest.$ac_ext
10131cat >>conftest.$ac_ext <<_ACEOF
10132/* end confdefs.h.  */
10133#include <$ac_header>
10134_ACEOF
10135if { (ac_try="$ac_cpp conftest.$ac_ext"
10136case "(($ac_try" in
10137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138  *) ac_try_echo=$ac_try;;
10139esac
10140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10142  ac_status=$?
10143  grep -v '^ *+' conftest.er1 >conftest.err
10144  rm -f conftest.er1
10145  cat conftest.err >&5
10146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147  (exit $ac_status); } >/dev/null && {
10148         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10149         test ! -s conftest.err
10150       }; then
10151  ac_header_preproc=yes
10152else
10153  echo "$as_me: failed program was:" >&5
10154sed 's/^/| /' conftest.$ac_ext >&5
10155
10156  ac_header_preproc=no
10157fi
10158
10159rm -f conftest.err conftest.$ac_ext
10160{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10161echo "${ECHO_T}$ac_header_preproc" >&6; }
10162
10163# So?  What about this header?
10164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10165  yes:no: )
10166    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10168    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10170    ac_header_preproc=yes
10171    ;;
10172  no:yes:* )
10173    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10175    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10176echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10177    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10179    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10180echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10181    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10183    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10185
10186    ;;
10187esac
10188{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10191  echo $ECHO_N "(cached) $ECHO_C" >&6
10192else
10193  eval "$as_ac_Header=\$ac_header_preproc"
10194fi
10195ac_res=`eval echo '${'$as_ac_Header'}'`
10196               { echo "$as_me:$LINENO: result: $ac_res" >&5
10197echo "${ECHO_T}$ac_res" >&6; }
10198
10199fi
10200if test `eval echo '${'$as_ac_Header'}'` = yes; then
10201  cat >>confdefs.h <<_ACEOF
10202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10203_ACEOF
10204
10205fi
10206
10207done
10208
10209{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
10210echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
10211if test "${ac_cv_func_select_args+set}" = set; then
10212  echo $ECHO_N "(cached) $ECHO_C" >&6
10213else
10214  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10215 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10216  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10217   cat >conftest.$ac_ext <<_ACEOF
10218/* confdefs.h.  */
10219_ACEOF
10220cat confdefs.h >>conftest.$ac_ext
10221cat >>conftest.$ac_ext <<_ACEOF
10222/* end confdefs.h.  */
10223$ac_includes_default
10224#ifdef HAVE_SYS_SELECT_H
10225# include <sys/select.h>
10226#endif
10227#ifdef HAVE_SYS_SOCKET_H
10228# include <sys/socket.h>
10229#endif
10230
10231int
10232main ()
10233{
10234extern int select ($ac_arg1,
10235                                            $ac_arg234, $ac_arg234, $ac_arg234,
10236                                            $ac_arg5);
10237  ;
10238  return 0;
10239}
10240_ACEOF
10241rm -f conftest.$ac_objext
10242if { (ac_try="$ac_compile"
10243case "(($ac_try" in
10244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245  *) ac_try_echo=$ac_try;;
10246esac
10247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248  (eval "$ac_compile") 2>conftest.er1
10249  ac_status=$?
10250  grep -v '^ *+' conftest.er1 >conftest.err
10251  rm -f conftest.er1
10252  cat conftest.err >&5
10253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254  (exit $ac_status); } && {
10255         test -z "$ac_c_werror_flag" ||
10256         test ! -s conftest.err
10257       } && test -s conftest.$ac_objext; then
10258  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10259else
10260  echo "$as_me: failed program was:" >&5
10261sed 's/^/| /' conftest.$ac_ext >&5
10262
10263
10264fi
10265
10266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10267  done
10268 done
10269done
10270# Provide a safe default value.
10271: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10272
10273fi
10274{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10275echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
10276ac_save_IFS=$IFS; IFS=','
10277set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10278IFS=$ac_save_IFS
10279shift
10280
10281cat >>confdefs.h <<_ACEOF
10282#define SELECT_TYPE_ARG1 $1
10283_ACEOF
10284
10285
10286cat >>confdefs.h <<_ACEOF
10287#define SELECT_TYPE_ARG234 ($2)
10288_ACEOF
10289
10290
10291cat >>confdefs.h <<_ACEOF
10292#define SELECT_TYPE_ARG5 ($3)
10293_ACEOF
10294
10295rm -f conftest*
10296
10297
10298for ac_func in vprintf
10299do
10300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10301{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10303if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10304  echo $ECHO_N "(cached) $ECHO_C" >&6
10305else
10306  cat >conftest.$ac_ext <<_ACEOF
10307/* confdefs.h.  */
10308_ACEOF
10309cat confdefs.h >>conftest.$ac_ext
10310cat >>conftest.$ac_ext <<_ACEOF
10311/* end confdefs.h.  */
10312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10313   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10314#define $ac_func innocuous_$ac_func
10315
10316/* System header to define __stub macros and hopefully few prototypes,
10317    which can conflict with char $ac_func (); below.
10318    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10319    <limits.h> exists even on freestanding compilers.  */
10320
10321#ifdef __STDC__
10322# include <limits.h>
10323#else
10324# include <assert.h>
10325#endif
10326
10327#undef $ac_func
10328
10329/* Override any GCC internal prototype to avoid an error.
10330   Use char because int might match the return type of a GCC
10331   builtin and then its argument prototype would still apply.  */
10332#ifdef __cplusplus
10333extern "C"
10334#endif
10335char $ac_func ();
10336/* The GNU C library defines this for functions which it implements
10337    to always fail with ENOSYS.  Some functions are actually named
10338    something starting with __ and the normal name is an alias.  */
10339#if defined __stub_$ac_func || defined __stub___$ac_func
10340choke me
10341#endif
10342
10343int
10344main ()
10345{
10346return $ac_func ();
10347  ;
10348  return 0;
10349}
10350_ACEOF
10351rm -f conftest.$ac_objext conftest$ac_exeext
10352if { (ac_try="$ac_link"
10353case "(($ac_try" in
10354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355  *) ac_try_echo=$ac_try;;
10356esac
10357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358  (eval "$ac_link") 2>conftest.er1
10359  ac_status=$?
10360  grep -v '^ *+' conftest.er1 >conftest.err
10361  rm -f conftest.er1
10362  cat conftest.err >&5
10363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364  (exit $ac_status); } && {
10365         test -z "$ac_c_werror_flag" ||
10366         test ! -s conftest.err
10367       } && test -s conftest$ac_exeext &&
10368       $as_test_x conftest$ac_exeext; then
10369  eval "$as_ac_var=yes"
10370else
10371  echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374        eval "$as_ac_var=no"
10375fi
10376
10377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10378      conftest$ac_exeext conftest.$ac_ext
10379fi
10380ac_res=`eval echo '${'$as_ac_var'}'`
10381               { echo "$as_me:$LINENO: result: $ac_res" >&5
10382echo "${ECHO_T}$ac_res" >&6; }
10383if test `eval echo '${'$as_ac_var'}'` = yes; then
10384  cat >>confdefs.h <<_ACEOF
10385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10386_ACEOF
10387
10388{ echo "$as_me:$LINENO: checking for _doprnt" >&5
10389echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
10390if test "${ac_cv_func__doprnt+set}" = set; then
10391  echo $ECHO_N "(cached) $ECHO_C" >&6
10392else
10393  cat >conftest.$ac_ext <<_ACEOF
10394/* confdefs.h.  */
10395_ACEOF
10396cat confdefs.h >>conftest.$ac_ext
10397cat >>conftest.$ac_ext <<_ACEOF
10398/* end confdefs.h.  */
10399/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10400   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10401#define _doprnt innocuous__doprnt
10402
10403/* System header to define __stub macros and hopefully few prototypes,
10404    which can conflict with char _doprnt (); below.
10405    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10406    <limits.h> exists even on freestanding compilers.  */
10407
10408#ifdef __STDC__
10409# include <limits.h>
10410#else
10411# include <assert.h>
10412#endif
10413
10414#undef _doprnt
10415
10416/* Override any GCC internal prototype to avoid an error.
10417   Use char because int might match the return type of a GCC
10418   builtin and then its argument prototype would still apply.  */
10419#ifdef __cplusplus
10420extern "C"
10421#endif
10422char _doprnt ();
10423/* The GNU C library defines this for functions which it implements
10424    to always fail with ENOSYS.  Some functions are actually named
10425    something starting with __ and the normal name is an alias.  */
10426#if defined __stub__doprnt || defined __stub____doprnt
10427choke me
10428#endif
10429
10430int
10431main ()
10432{
10433return _doprnt ();
10434  ;
10435  return 0;
10436}
10437_ACEOF
10438rm -f conftest.$ac_objext conftest$ac_exeext
10439if { (ac_try="$ac_link"
10440case "(($ac_try" in
10441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442  *) ac_try_echo=$ac_try;;
10443esac
10444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445  (eval "$ac_link") 2>conftest.er1
10446  ac_status=$?
10447  grep -v '^ *+' conftest.er1 >conftest.err
10448  rm -f conftest.er1
10449  cat conftest.err >&5
10450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451  (exit $ac_status); } && {
10452         test -z "$ac_c_werror_flag" ||
10453         test ! -s conftest.err
10454       } && test -s conftest$ac_exeext &&
10455       $as_test_x conftest$ac_exeext; then
10456  ac_cv_func__doprnt=yes
10457else
10458  echo "$as_me: failed program was:" >&5
10459sed 's/^/| /' conftest.$ac_ext >&5
10460
10461        ac_cv_func__doprnt=no
10462fi
10463
10464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10465      conftest$ac_exeext conftest.$ac_ext
10466fi
10467{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10468echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
10469if test $ac_cv_func__doprnt = yes; then
10470
10471cat >>confdefs.h <<\_ACEOF
10472#define HAVE_DOPRNT 1
10473_ACEOF
10474
10475fi
10476
10477fi
10478done
10479
10480
10481
10482
10483for ac_func in strcasecmp strerror
10484do
10485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10486{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10488if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10489  echo $ECHO_N "(cached) $ECHO_C" >&6
10490else
10491  cat >conftest.$ac_ext <<_ACEOF
10492/* confdefs.h.  */
10493_ACEOF
10494cat confdefs.h >>conftest.$ac_ext
10495cat >>conftest.$ac_ext <<_ACEOF
10496/* end confdefs.h.  */
10497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10498   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10499#define $ac_func innocuous_$ac_func
10500
10501/* System header to define __stub macros and hopefully few prototypes,
10502    which can conflict with char $ac_func (); below.
10503    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10504    <limits.h> exists even on freestanding compilers.  */
10505
10506#ifdef __STDC__
10507# include <limits.h>
10508#else
10509# include <assert.h>
10510#endif
10511
10512#undef $ac_func
10513
10514/* Override any GCC internal prototype to avoid an error.
10515   Use char because int might match the return type of a GCC
10516   builtin and then its argument prototype would still apply.  */
10517#ifdef __cplusplus
10518extern "C"
10519#endif
10520char $ac_func ();
10521/* The GNU C library defines this for functions which it implements
10522    to always fail with ENOSYS.  Some functions are actually named
10523    something starting with __ and the normal name is an alias.  */
10524#if defined __stub_$ac_func || defined __stub___$ac_func
10525choke me
10526#endif
10527
10528int
10529main ()
10530{
10531return $ac_func ();
10532  ;
10533  return 0;
10534}
10535_ACEOF
10536rm -f conftest.$ac_objext conftest$ac_exeext
10537if { (ac_try="$ac_link"
10538case "(($ac_try" in
10539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540  *) ac_try_echo=$ac_try;;
10541esac
10542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543  (eval "$ac_link") 2>conftest.er1
10544  ac_status=$?
10545  grep -v '^ *+' conftest.er1 >conftest.err
10546  rm -f conftest.er1
10547  cat conftest.err >&5
10548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549  (exit $ac_status); } && {
10550         test -z "$ac_c_werror_flag" ||
10551         test ! -s conftest.err
10552       } && test -s conftest$ac_exeext &&
10553       $as_test_x conftest$ac_exeext; then
10554  eval "$as_ac_var=yes"
10555else
10556  echo "$as_me: failed program was:" >&5
10557sed 's/^/| /' conftest.$ac_ext >&5
10558
10559        eval "$as_ac_var=no"
10560fi
10561
10562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10563      conftest$ac_exeext conftest.$ac_ext
10564fi
10565ac_res=`eval echo '${'$as_ac_var'}'`
10566               { echo "$as_me:$LINENO: result: $ac_res" >&5
10567echo "${ECHO_T}$ac_res" >&6; }
10568if test `eval echo '${'$as_ac_var'}'` = yes; then
10569  cat >>confdefs.h <<_ACEOF
10570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10571_ACEOF
10572
10573fi
10574done
10575
10576    if test $ac_enable_backtrace = auto; then
10577
10578
10579for ac_func in backtrace backtrace_symbols
10580do
10581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10582{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10584if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10585  echo $ECHO_N "(cached) $ECHO_C" >&6
10586else
10587  cat >conftest.$ac_ext <<_ACEOF
10588/* confdefs.h.  */
10589_ACEOF
10590cat confdefs.h >>conftest.$ac_ext
10591cat >>conftest.$ac_ext <<_ACEOF
10592/* end confdefs.h.  */
10593/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10594   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10595#define $ac_func innocuous_$ac_func
10596
10597/* System header to define __stub macros and hopefully few prototypes,
10598    which can conflict with char $ac_func (); below.
10599    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10600    <limits.h> exists even on freestanding compilers.  */
10601
10602#ifdef __STDC__
10603# include <limits.h>
10604#else
10605# include <assert.h>
10606#endif
10607
10608#undef $ac_func
10609
10610/* Override any GCC internal prototype to avoid an error.
10611   Use char because int might match the return type of a GCC
10612   builtin and then its argument prototype would still apply.  */
10613#ifdef __cplusplus
10614extern "C"
10615#endif
10616char $ac_func ();
10617/* The GNU C library defines this for functions which it implements
10618    to always fail with ENOSYS.  Some functions are actually named
10619    something starting with __ and the normal name is an alias.  */
10620#if defined __stub_$ac_func || defined __stub___$ac_func
10621choke me
10622#endif
10623
10624int
10625main ()
10626{
10627return $ac_func ();
10628  ;
10629  return 0;
10630}
10631_ACEOF
10632rm -f conftest.$ac_objext conftest$ac_exeext
10633if { (ac_try="$ac_link"
10634case "(($ac_try" in
10635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636  *) ac_try_echo=$ac_try;;
10637esac
10638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639  (eval "$ac_link") 2>conftest.er1
10640  ac_status=$?
10641  grep -v '^ *+' conftest.er1 >conftest.err
10642  rm -f conftest.er1
10643  cat conftest.err >&5
10644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645  (exit $ac_status); } && {
10646         test -z "$ac_c_werror_flag" ||
10647         test ! -s conftest.err
10648       } && test -s conftest$ac_exeext &&
10649       $as_test_x conftest$ac_exeext; then
10650  eval "$as_ac_var=yes"
10651else
10652  echo "$as_me: failed program was:" >&5
10653sed 's/^/| /' conftest.$ac_ext >&5
10654
10655        eval "$as_ac_var=no"
10656fi
10657
10658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10659      conftest$ac_exeext conftest.$ac_ext
10660fi
10661ac_res=`eval echo '${'$as_ac_var'}'`
10662               { echo "$as_me:$LINENO: result: $ac_res" >&5
10663echo "${ECHO_T}$ac_res" >&6; }
10664if test `eval echo '${'$as_ac_var'}'` = yes; then
10665  cat >>confdefs.h <<_ACEOF
10666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10667_ACEOF
10668
10669fi
10670done
10671
10672    fi
10673
10674
10675for ac_func in uname sysconf
10676do
10677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10678{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10680if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10681  echo $ECHO_N "(cached) $ECHO_C" >&6
10682else
10683  cat >conftest.$ac_ext <<_ACEOF
10684/* confdefs.h.  */
10685_ACEOF
10686cat confdefs.h >>conftest.$ac_ext
10687cat >>conftest.$ac_ext <<_ACEOF
10688/* end confdefs.h.  */
10689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10690   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10691#define $ac_func innocuous_$ac_func
10692
10693/* System header to define __stub macros and hopefully few prototypes,
10694    which can conflict with char $ac_func (); below.
10695    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10696    <limits.h> exists even on freestanding compilers.  */
10697
10698#ifdef __STDC__
10699# include <limits.h>
10700#else
10701# include <assert.h>
10702#endif
10703
10704#undef $ac_func
10705
10706/* Override any GCC internal prototype to avoid an error.
10707   Use char because int might match the return type of a GCC
10708   builtin and then its argument prototype would still apply.  */
10709#ifdef __cplusplus
10710extern "C"
10711#endif
10712char $ac_func ();
10713/* The GNU C library defines this for functions which it implements
10714    to always fail with ENOSYS.  Some functions are actually named
10715    something starting with __ and the normal name is an alias.  */
10716#if defined __stub_$ac_func || defined __stub___$ac_func
10717choke me
10718#endif
10719
10720int
10721main ()
10722{
10723return $ac_func ();
10724  ;
10725  return 0;
10726}
10727_ACEOF
10728rm -f conftest.$ac_objext conftest$ac_exeext
10729if { (ac_try="$ac_link"
10730case "(($ac_try" in
10731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732  *) ac_try_echo=$ac_try;;
10733esac
10734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735  (eval "$ac_link") 2>conftest.er1
10736  ac_status=$?
10737  grep -v '^ *+' conftest.er1 >conftest.err
10738  rm -f conftest.er1
10739  cat conftest.err >&5
10740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741  (exit $ac_status); } && {
10742         test -z "$ac_c_werror_flag" ||
10743         test ! -s conftest.err
10744       } && test -s conftest$ac_exeext &&
10745       $as_test_x conftest$ac_exeext; then
10746  eval "$as_ac_var=yes"
10747else
10748  echo "$as_me: failed program was:" >&5
10749sed 's/^/| /' conftest.$ac_ext >&5
10750
10751        eval "$as_ac_var=no"
10752fi
10753
10754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755      conftest$ac_exeext conftest.$ac_ext
10756fi
10757ac_res=`eval echo '${'$as_ac_var'}'`
10758               { echo "$as_me:$LINENO: result: $ac_res" >&5
10759echo "${ECHO_T}$ac_res" >&6; }
10760if test `eval echo '${'$as_ac_var'}'` = yes; then
10761  cat >>confdefs.h <<_ACEOF
10762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10763_ACEOF
10764
10765fi
10766done
10767
10768
10769
10770
10771
10772
10773
10774for ac_func in flockfile funlockfile fread_unlocked fwrite_unlocked fgetc_unlocked feof_unlocked
10775do
10776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10777{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10779if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10780  echo $ECHO_N "(cached) $ECHO_C" >&6
10781else
10782  cat >conftest.$ac_ext <<_ACEOF
10783/* confdefs.h.  */
10784_ACEOF
10785cat confdefs.h >>conftest.$ac_ext
10786cat >>conftest.$ac_ext <<_ACEOF
10787/* end confdefs.h.  */
10788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10789   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10790#define $ac_func innocuous_$ac_func
10791
10792/* System header to define __stub macros and hopefully few prototypes,
10793    which can conflict with char $ac_func (); below.
10794    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10795    <limits.h> exists even on freestanding compilers.  */
10796
10797#ifdef __STDC__
10798# include <limits.h>
10799#else
10800# include <assert.h>
10801#endif
10802
10803#undef $ac_func
10804
10805/* Override any GCC internal prototype to avoid an error.
10806   Use char because int might match the return type of a GCC
10807   builtin and then its argument prototype would still apply.  */
10808#ifdef __cplusplus
10809extern "C"
10810#endif
10811char $ac_func ();
10812/* The GNU C library defines this for functions which it implements
10813    to always fail with ENOSYS.  Some functions are actually named
10814    something starting with __ and the normal name is an alias.  */
10815#if defined __stub_$ac_func || defined __stub___$ac_func
10816choke me
10817#endif
10818
10819int
10820main ()
10821{
10822return $ac_func ();
10823  ;
10824  return 0;
10825}
10826_ACEOF
10827rm -f conftest.$ac_objext conftest$ac_exeext
10828if { (ac_try="$ac_link"
10829case "(($ac_try" in
10830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831  *) ac_try_echo=$ac_try;;
10832esac
10833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834  (eval "$ac_link") 2>conftest.er1
10835  ac_status=$?
10836  grep -v '^ *+' conftest.er1 >conftest.err
10837  rm -f conftest.er1
10838  cat conftest.err >&5
10839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840  (exit $ac_status); } && {
10841         test -z "$ac_c_werror_flag" ||
10842         test ! -s conftest.err
10843       } && test -s conftest$ac_exeext &&
10844       $as_test_x conftest$ac_exeext; then
10845  eval "$as_ac_var=yes"
10846else
10847  echo "$as_me: failed program was:" >&5
10848sed 's/^/| /' conftest.$ac_ext >&5
10849
10850        eval "$as_ac_var=no"
10851fi
10852
10853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10854      conftest$ac_exeext conftest.$ac_ext
10855fi
10856ac_res=`eval echo '${'$as_ac_var'}'`
10857               { echo "$as_me:$LINENO: result: $ac_res" >&5
10858echo "${ECHO_T}$ac_res" >&6; }
10859if test `eval echo '${'$as_ac_var'}'` = yes; then
10860  cat >>confdefs.h <<_ACEOF
10861#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10862_ACEOF
10863
10864fi
10865done
10866
10867
10868
10869for ac_func in iopl mprotect
10870do
10871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10872{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10874if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10875  echo $ECHO_N "(cached) $ECHO_C" >&6
10876else
10877  cat >conftest.$ac_ext <<_ACEOF
10878/* confdefs.h.  */
10879_ACEOF
10880cat confdefs.h >>conftest.$ac_ext
10881cat >>conftest.$ac_ext <<_ACEOF
10882/* end confdefs.h.  */
10883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10884   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10885#define $ac_func innocuous_$ac_func
10886
10887/* System header to define __stub macros and hopefully few prototypes,
10888    which can conflict with char $ac_func (); below.
10889    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10890    <limits.h> exists even on freestanding compilers.  */
10891
10892#ifdef __STDC__
10893# include <limits.h>
10894#else
10895# include <assert.h>
10896#endif
10897
10898#undef $ac_func
10899
10900/* Override any GCC internal prototype to avoid an error.
10901   Use char because int might match the return type of a GCC
10902   builtin and then its argument prototype would still apply.  */
10903#ifdef __cplusplus
10904extern "C"
10905#endif
10906char $ac_func ();
10907/* The GNU C library defines this for functions which it implements
10908    to always fail with ENOSYS.  Some functions are actually named
10909    something starting with __ and the normal name is an alias.  */
10910#if defined __stub_$ac_func || defined __stub___$ac_func
10911choke me
10912#endif
10913
10914int
10915main ()
10916{
10917return $ac_func ();
10918  ;
10919  return 0;
10920}
10921_ACEOF
10922rm -f conftest.$ac_objext conftest$ac_exeext
10923if { (ac_try="$ac_link"
10924case "(($ac_try" in
10925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926  *) ac_try_echo=$ac_try;;
10927esac
10928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929  (eval "$ac_link") 2>conftest.er1
10930  ac_status=$?
10931  grep -v '^ *+' conftest.er1 >conftest.err
10932  rm -f conftest.er1
10933  cat conftest.err >&5
10934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935  (exit $ac_status); } && {
10936         test -z "$ac_c_werror_flag" ||
10937         test ! -s conftest.err
10938       } && test -s conftest$ac_exeext &&
10939       $as_test_x conftest$ac_exeext; then
10940  eval "$as_ac_var=yes"
10941else
10942  echo "$as_me: failed program was:" >&5
10943sed 's/^/| /' conftest.$ac_ext >&5
10944
10945        eval "$as_ac_var=no"
10946fi
10947
10948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10949      conftest$ac_exeext conftest.$ac_ext
10950fi
10951ac_res=`eval echo '${'$as_ac_var'}'`
10952               { echo "$as_me:$LINENO: result: $ac_res" >&5
10953echo "${ECHO_T}$ac_res" >&6; }
10954if test `eval echo '${'$as_ac_var'}'` = yes; then
10955  cat >>confdefs.h <<_ACEOF
10956#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10957_ACEOF
10958
10959fi
10960done
10961
10962        { echo "$as_me:$LINENO: checking for port in/out" >&5
10963echo $ECHO_N "checking for port in/out... $ECHO_C" >&6; }
10964        cat >conftest.$ac_ext <<_ACEOF
10965/* confdefs.h.  */
10966_ACEOF
10967cat confdefs.h >>conftest.$ac_ext
10968cat >>conftest.$ac_ext <<_ACEOF
10969/* end confdefs.h.  */
10970
10971                        #include <sys/io.h>
10972
10973int
10974main ()
10975{
10976
10977                        outb(0x80, inb(0x80));
10978
10979  ;
10980  return 0;
10981}
10982_ACEOF
10983rm -f conftest.$ac_objext conftest$ac_exeext
10984if { (ac_try="$ac_link"
10985case "(($ac_try" in
10986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987  *) ac_try_echo=$ac_try;;
10988esac
10989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990  (eval "$ac_link") 2>conftest.er1
10991  ac_status=$?
10992  grep -v '^ *+' conftest.er1 >conftest.err
10993  rm -f conftest.er1
10994  cat conftest.err >&5
10995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996  (exit $ac_status); } && {
10997         test -z "$ac_c_werror_flag" ||
10998         test ! -s conftest.err
10999       } && test -s conftest$ac_exeext &&
11000       $as_test_x conftest$ac_exeext; then
11001  ac_func_inout=yes
11002else
11003  echo "$as_me: failed program was:" >&5
11004sed 's/^/| /' conftest.$ac_ext >&5
11005
11006        ac_func_inout=no
11007fi
11008
11009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11010      conftest$ac_exeext conftest.$ac_ext
11011        { echo "$as_me:$LINENO: result: $ac_func_inout" >&5
11012echo "${ECHO_T}$ac_func_inout" >&6; }
11013        if test $ac_func_inout = yes; then
11014
11015cat >>confdefs.h <<\_ACEOF
11016#define HAVE_INOUT 1
11017_ACEOF
11018
11019        fi
11020fi
11021
11022# Checks for libraries.
11023
11024ac_lib_direct_flag=no
11025ac_lib_video_flag=no
11026ac_lib_text_flag=no
11027ac_lib_sound_flag=no
11028ac_lib_keyboard_flag=no
11029
11030if test $ac_system = dos; then
11031        ac_lib_video="$ac_lib_video svgaline vbeline vgaline vbe"
11032        ac_lib_sound="$ac_lib_sound seal vsync allegro"
11033        ac_lib_keyboard="$ac_lib_keyboard allegro"
11034        ac_lib_joystick="$ac_lib_joystick allegro"
11035        ac_lib_mouse="$ac_lib_mouse allegro"
11036        ac_lib_direct_flag=yes
11037        ac_lib_video_flag=yes
11038        ac_lib_sound_flag=yes
11039        ac_lib_keyboard_flag=yes
11040        ac_lib_text_flag=yes
11041fi
11042
11043if test $ac_system = windows; then
11044        ac_lib_text_flag=yes
11045fi
11046
11047# Checks for zlib
11048# Check whether --enable-zlib was given.
11049if test "${enable_zlib+set}" = set; then
11050  enableval=$enable_zlib; ac_lib_zlib=$enableval
11051else
11052  ac_lib_zlib=auto
11053
11054fi
11055
11056if test $ac_lib_zlib = auto; then
11057        { echo "$as_me:$LINENO: checking for adler32 in -lz" >&5
11058echo $ECHO_N "checking for adler32 in -lz... $ECHO_C" >&6; }
11059if test "${ac_cv_lib_z_adler32+set}" = set; then
11060  echo $ECHO_N "(cached) $ECHO_C" >&6
11061else
11062  ac_check_lib_save_LIBS=$LIBS
11063LIBS="-lz  $LIBS"
11064cat >conftest.$ac_ext <<_ACEOF
11065/* confdefs.h.  */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h.  */
11070
11071/* Override any GCC internal prototype to avoid an error.
11072   Use char because int might match the return type of a GCC
11073   builtin and then its argument prototype would still apply.  */
11074#ifdef __cplusplus
11075extern "C"
11076#endif
11077char adler32 ();
11078int
11079main ()
11080{
11081return adler32 ();
11082  ;
11083  return 0;
11084}
11085_ACEOF
11086rm -f conftest.$ac_objext conftest$ac_exeext
11087if { (ac_try="$ac_link"
11088case "(($ac_try" in
11089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090  *) ac_try_echo=$ac_try;;
11091esac
11092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093  (eval "$ac_link") 2>conftest.er1
11094  ac_status=$?
11095  grep -v '^ *+' conftest.er1 >conftest.err
11096  rm -f conftest.er1
11097  cat conftest.err >&5
11098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099  (exit $ac_status); } && {
11100         test -z "$ac_c_werror_flag" ||
11101         test ! -s conftest.err
11102       } && test -s conftest$ac_exeext &&
11103       $as_test_x conftest$ac_exeext; then
11104  ac_cv_lib_z_adler32=yes
11105else
11106  echo "$as_me: failed program was:" >&5
11107sed 's/^/| /' conftest.$ac_ext >&5
11108
11109        ac_cv_lib_z_adler32=no
11110fi
11111
11112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11113      conftest$ac_exeext conftest.$ac_ext
11114LIBS=$ac_check_lib_save_LIBS
11115fi
11116{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_adler32" >&5
11117echo "${ECHO_T}$ac_cv_lib_z_adler32" >&6; }
11118if test $ac_cv_lib_z_adler32 = yes; then
11119  ac_lib_zlib=yes
11120else
11121  ac_lib_zlib=no
11122
11123fi
11124
11125fi
11126if test $ac_lib_zlib = yes; then
11127        ac_lib_other="$ac_lib_other zlib"
11128else
11129        ac_lib_other="$ac_lib_other zlib(internal)"
11130fi
11131CONF_LIB_ZLIB=$ac_lib_zlib
11132
11133
11134# Checks for expat
11135# Check whether --enable-expat was given.
11136if test "${enable_expat+set}" = set; then
11137  enableval=$enable_expat; ac_lib_expat=$enableval
11138else
11139  ac_lib_expat=auto
11140
11141fi
11142
11143if test $ac_lib_expat = auto; then
11144        { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
11145echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
11146if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
11147  echo $ECHO_N "(cached) $ECHO_C" >&6
11148else
11149  ac_check_lib_save_LIBS=$LIBS
11150LIBS="-lexpat  $LIBS"
11151cat >conftest.$ac_ext <<_ACEOF
11152/* confdefs.h.  */
11153_ACEOF
11154cat confdefs.h >>conftest.$ac_ext
11155cat >>conftest.$ac_ext <<_ACEOF
11156/* end confdefs.h.  */
11157
11158/* Override any GCC internal prototype to avoid an error.
11159   Use char because int might match the return type of a GCC
11160   builtin and then its argument prototype would still apply.  */
11161#ifdef __cplusplus
11162extern "C"
11163#endif
11164char XML_ParserCreate ();
11165int
11166main ()
11167{
11168return XML_ParserCreate ();
11169  ;
11170  return 0;
11171}
11172_ACEOF
11173rm -f conftest.$ac_objext conftest$ac_exeext
11174if { (ac_try="$ac_link"
11175case "(($ac_try" in
11176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177  *) ac_try_echo=$ac_try;;
11178esac
11179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180  (eval "$ac_link") 2>conftest.er1
11181  ac_status=$?
11182  grep -v '^ *+' conftest.er1 >conftest.err
11183  rm -f conftest.er1
11184  cat conftest.err >&5
11185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186  (exit $ac_status); } && {
11187         test -z "$ac_c_werror_flag" ||
11188         test ! -s conftest.err
11189       } && test -s conftest$ac_exeext &&
11190       $as_test_x conftest$ac_exeext; then
11191  ac_cv_lib_expat_XML_ParserCreate=yes
11192else
11193  echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196        ac_cv_lib_expat_XML_ParserCreate=no
11197fi
11198
11199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11200      conftest$ac_exeext conftest.$ac_ext
11201LIBS=$ac_check_lib_save_LIBS
11202fi
11203{ echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
11204echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
11205if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
11206  ac_lib_expat=yes
11207else
11208  ac_lib_expat=no
11209
11210fi
11211
11212fi
11213if test $ac_lib_expat = yes; then
11214        ac_lib_other="$ac_lib_other expat"
11215else
11216        ac_lib_other="$ac_lib_other expat(internal)"
11217fi
11218CONF_LIB_EXPAT=$ac_lib_expat
11219
11220
11221# Checks for svgalib
11222# Check whether --enable-svgalib was given.
11223if test "${enable_svgalib+set}" = set; then
11224  enableval=$enable_svgalib; ac_lib_svgalib=$enableval
11225else
11226  ac_lib_svgalib=auto
11227
11228fi
11229
11230if test $ac_lib_svgalib = auto; then
11231        { echo "$as_me:$LINENO: checking for vga_init in -lvga" >&5
11232echo $ECHO_N "checking for vga_init in -lvga... $ECHO_C" >&6; }
11233if test "${ac_cv_lib_vga_vga_init+set}" = set; then
11234  echo $ECHO_N "(cached) $ECHO_C" >&6
11235else
11236  ac_check_lib_save_LIBS=$LIBS
11237LIBS="-lvga -lm
11238         $LIBS"
11239cat >conftest.$ac_ext <<_ACEOF
11240/* confdefs.h.  */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h.  */
11245
11246/* Override any GCC internal prototype to avoid an error.
11247   Use char because int might match the return type of a GCC
11248   builtin and then its argument prototype would still apply.  */
11249#ifdef __cplusplus
11250extern "C"
11251#endif
11252char vga_init ();
11253int
11254main ()
11255{
11256return vga_init ();
11257  ;
11258  return 0;
11259}
11260_ACEOF
11261rm -f conftest.$ac_objext conftest$ac_exeext
11262if { (ac_try="$ac_link"
11263case "(($ac_try" in
11264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265  *) ac_try_echo=$ac_try;;
11266esac
11267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268  (eval "$ac_link") 2>conftest.er1
11269  ac_status=$?
11270  grep -v '^ *+' conftest.er1 >conftest.err
11271  rm -f conftest.er1
11272  cat conftest.err >&5
11273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274  (exit $ac_status); } && {
11275         test -z "$ac_c_werror_flag" ||
11276         test ! -s conftest.err
11277       } && test -s conftest$ac_exeext &&
11278       $as_test_x conftest$ac_exeext; then
11279  ac_cv_lib_vga_vga_init=yes
11280else
11281  echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
11284        ac_cv_lib_vga_vga_init=no
11285fi
11286
11287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288      conftest$ac_exeext conftest.$ac_ext
11289LIBS=$ac_check_lib_save_LIBS
11290fi
11291{ echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_init" >&5
11292echo "${ECHO_T}$ac_cv_lib_vga_vga_init" >&6; }
11293if test $ac_cv_lib_vga_vga_init = yes; then
11294  ac_lib_svgalib=yes
11295else
11296  ac_lib_svgalib=no
11297fi
11298
11299        if test $ac_lib_svgalib = yes; then
11300                { echo "$as_me:$LINENO: checking for svgalib version" >&5
11301echo $ECHO_N "checking for svgalib version... $ECHO_C" >&6; }
11302                cat >conftest.$ac_ext <<_ACEOF
11303/* confdefs.h.  */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h.  */
11308
11309                                #include <vga.h>
11310
11311int
11312main ()
11313{
11314
11315                                #if !defined(SVGALIB_VER) || (SVGALIB_VER<0x010900)
11316                                choke me
11317                                #endif
11318
11319  ;
11320  return 0;
11321}
11322_ACEOF
11323rm -f conftest.$ac_objext
11324if { (ac_try="$ac_compile"
11325case "(($ac_try" in
11326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327  *) ac_try_echo=$ac_try;;
11328esac
11329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330  (eval "$ac_compile") 2>conftest.er1
11331  ac_status=$?
11332  grep -v '^ *+' conftest.er1 >conftest.err
11333  rm -f conftest.er1
11334  cat conftest.err >&5
11335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336  (exit $ac_status); } && {
11337         test -z "$ac_c_werror_flag" ||
11338         test ! -s conftest.err
11339       } && test -s conftest.$ac_objext; then
11340  ac_lib_svgalib=yes
11341else
11342  echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
11345        ac_lib_svgalib=no
11346fi
11347
11348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11349                { echo "$as_me:$LINENO: result: $ac_lib_svgalib" >&5
11350echo "${ECHO_T}$ac_lib_svgalib" >&6; }
11351        fi
11352elif test $ac_lib_svgalib = yes; then
11353
11354{ echo "$as_me:$LINENO: checking for vga_init in -lvga" >&5
11355echo $ECHO_N "checking for vga_init in -lvga... $ECHO_C" >&6; }
11356if test "${ac_cv_lib_vga_vga_init+set}" = set; then
11357  echo $ECHO_N "(cached) $ECHO_C" >&6
11358else
11359  ac_check_lib_save_LIBS=$LIBS
11360LIBS="-lvga -lm
11361         $LIBS"
11362cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h.  */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h.  */
11368
11369/* Override any GCC internal prototype to avoid an error.
11370   Use char because int might match the return type of a GCC
11371   builtin and then its argument prototype would still apply.  */
11372#ifdef __cplusplus
11373extern "C"
11374#endif
11375char vga_init ();
11376int
11377main ()
11378{
11379return vga_init ();
11380  ;
11381  return 0;
11382}
11383_ACEOF
11384rm -f conftest.$ac_objext conftest$ac_exeext
11385if { (ac_try="$ac_link"
11386case "(($ac_try" in
11387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388  *) ac_try_echo=$ac_try;;
11389esac
11390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391  (eval "$ac_link") 2>conftest.er1
11392  ac_status=$?
11393  grep -v '^ *+' conftest.er1 >conftest.err
11394  rm -f conftest.er1
11395  cat conftest.err >&5
11396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397  (exit $ac_status); } && {
11398         test -z "$ac_c_werror_flag" ||
11399         test ! -s conftest.err
11400       } && test -s conftest$ac_exeext &&
11401       $as_test_x conftest$ac_exeext; then
11402  ac_cv_lib_vga_vga_init=yes
11403else
11404  echo "$as_me: failed program was:" >&5
11405sed 's/^/| /' conftest.$ac_ext >&5
11406
11407        ac_cv_lib_vga_vga_init=no
11408fi
11409
11410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11411      conftest$ac_exeext conftest.$ac_ext
11412LIBS=$ac_check_lib_save_LIBS
11413fi
11414{ echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_init" >&5
11415echo "${ECHO_T}$ac_cv_lib_vga_vga_init" >&6; }
11416if test $ac_cv_lib_vga_vga_init = yes; then
11417  cat >>confdefs.h <<_ACEOF
11418#define HAVE_LIBVGA 1
11419_ACEOF
11420
11421  LIBS="-lvga $LIBS"
11422
11423else
11424  { { echo "$as_me:$LINENO: error: the SVGALIB library is missing" >&5
11425echo "$as_me: error: the SVGALIB library is missing" >&2;}
11426   { (exit 1); exit 1; }; }
11427fi
11428
11429        { echo "$as_me:$LINENO: checking for svgalib version" >&5
11430echo $ECHO_N "checking for svgalib version... $ECHO_C" >&6; }
11431        cat >conftest.$ac_ext <<_ACEOF
11432/* confdefs.h.  */
11433_ACEOF
11434cat confdefs.h >>conftest.$ac_ext
11435cat >>conftest.$ac_ext <<_ACEOF
11436/* end confdefs.h.  */
11437
11438                        #include <vga.h>
11439
11440int
11441main ()
11442{
11443
11444                        #if !defined(SVGALIB_VER) || (SVGALIB_VER<0x010900)
11445                        choke me
11446                        #endif
11447
11448  ;
11449  return 0;
11450}
11451_ACEOF
11452rm -f conftest.$ac_objext
11453if { (ac_try="$ac_compile"
11454case "(($ac_try" in
11455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456  *) ac_try_echo=$ac_try;;
11457esac
11458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459  (eval "$ac_compile") 2>conftest.er1
11460  ac_status=$?
11461  grep -v '^ *+' conftest.er1 >conftest.err
11462  rm -f conftest.er1
11463  cat conftest.err >&5
11464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465  (exit $ac_status); } && {
11466         test -z "$ac_c_werror_flag" ||
11467         test ! -s conftest.err
11468       } && test -s conftest.$ac_objext; then
11469  :
11470else
11471  echo "$as_me: failed program was:" >&5
11472sed 's/^/| /' conftest.$ac_ext >&5
11473
11474        { { echo "$as_me:$LINENO: error: the SVGALIB library is too old. Please upgrade to the 1.9 or 2.0 version" >&5
11475echo "$as_me: error: the SVGALIB library is too old. Please upgrade to the 1.9 or 2.0 version" >&2;}
11476   { (exit 1); exit 1; }; }
11477fi
11478
11479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480        { echo "$as_me:$LINENO: result: yes" >&5
11481echo "${ECHO_T}yes" >&6; }
11482fi
11483if test $ac_lib_svgalib = yes; then
11484        ac_lib_video="$ac_lib_video svgalib"
11485        ac_lib_keyboard="$ac_lib_keyboard svgalib"
11486        ac_lib_mouse="$ac_lib_mouse svgalib"
11487        ac_lib_joystick="$ac_lib_joystick svgalib"
11488        ac_lib_direct_flag=yes
11489        ac_lib_video_flag=yes
11490        ac_lib_keyboard_flag=yes
11491fi
11492CONF_LIB_SVGALIB=$ac_lib_svgalib
11493
11494
11495# Checks for fb
11496# Check whether --enable-fb was given.
11497if test "${enable_fb+set}" = set; then
11498  enableval=$enable_fb; ac_lib_fb=$enableval
11499else
11500  ac_lib_fb=auto
11501
11502fi
11503
11504if test $ac_lib_fb = auto; then
11505        { echo "$as_me:$LINENO: checking for FrameBuffer" >&5
11506echo $ECHO_N "checking for FrameBuffer... $ECHO_C" >&6; }
11507        cat >conftest.$ac_ext <<_ACEOF
11508/* confdefs.h.  */
11509_ACEOF
11510cat confdefs.h >>conftest.$ac_ext
11511cat >>conftest.$ac_ext <<_ACEOF
11512/* end confdefs.h.  */
11513
11514                        #include <linux/fb.h>
11515
11516int
11517main ()
11518{
11519
11520                        struct fb_var_screeninfo dummy;
11521
11522  ;
11523  return 0;
11524}
11525_ACEOF
11526rm -f conftest.$ac_objext
11527if { (ac_try="$ac_compile"
11528case "(($ac_try" in
11529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530  *) ac_try_echo=$ac_try;;
11531esac
11532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533  (eval "$ac_compile") 2>conftest.er1
11534  ac_status=$?
11535  grep -v '^ *+' conftest.er1 >conftest.err
11536  rm -f conftest.er1
11537  cat conftest.err >&5
11538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539  (exit $ac_status); } && {
11540         test -z "$ac_c_werror_flag" ||
11541         test ! -s conftest.err
11542       } && test -s conftest.$ac_objext; then
11543  ac_lib_fb=yes
11544else
11545  echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548        ac_lib_fb=no
11549fi
11550
11551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11552        { echo "$as_me:$LINENO: result: $ac_lib_fb" >&5
11553echo "${ECHO_T}$ac_lib_fb" >&6; }
11554elif test $ac_lib_fb = yes; then
11555        { echo "$as_me:$LINENO: checking for FrameBuffer" >&5
11556echo $ECHO_N "checking for FrameBuffer... $ECHO_C" >&6; }
11557        cat >conftest.$ac_ext <<_ACEOF
11558/* confdefs.h.  */
11559_ACEOF
11560cat confdefs.h >>conftest.$ac_ext
11561cat >>conftest.$ac_ext <<_ACEOF
11562/* end confdefs.h.  */
11563
11564                        #include <linux/fb.h>
11565
11566int
11567main ()
11568{
11569
11570                        struct fb_var_screeninfo dummy;
11571
11572  ;
11573  return 0;
11574}
11575_ACEOF
11576rm -f conftest.$ac_objext
11577if { (ac_try="$ac_compile"
11578case "(($ac_try" in
11579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580  *) ac_try_echo=$ac_try;;
11581esac
11582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583  (eval "$ac_compile") 2>conftest.er1
11584  ac_status=$?
11585  grep -v '^ *+' conftest.er1 >conftest.err
11586  rm -f conftest.er1
11587  cat conftest.err >&5
11588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589  (exit $ac_status); } && {
11590         test -z "$ac_c_werror_flag" ||
11591         test ! -s conftest.err
11592       } && test -s conftest.$ac_objext; then
11593  :
11594else
11595  echo "$as_me: failed program was:" >&5
11596sed 's/^/| /' conftest.$ac_ext >&5
11597
11598        { { echo "$as_me:$LINENO: error: the Frame Buffer library is missing" >&5
11599echo "$as_me: error: the Frame Buffer library is missing" >&2;}
11600   { (exit 1); exit 1; }; }
11601fi
11602
11603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11604        { echo "$as_me:$LINENO: result: yes" >&5
11605echo "${ECHO_T}yes" >&6; }
11606fi
11607if test $ac_lib_fb = yes; then
11608        ac_lib_video="$ac_lib_video fb"
11609        ac_lib_direct_flag=yes
11610        ac_lib_video_flag=yes
11611fi
11612CONF_LIB_FB=$ac_lib_fb
11613
11614
11615# Checks for alsa
11616# Check whether --enable-alsa was given.
11617if test "${enable_alsa+set}" = set; then
11618  enableval=$enable_alsa; ac_lib_alsa=$enableval
11619else
11620  ac_lib_alsa=auto
11621
11622fi
11623
11624if test $ac_lib_alsa = auto; then
11625        { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11626echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
11627if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11628  echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630  ac_check_lib_save_LIBS=$LIBS
11631LIBS="-lasound -lm
11632         $LIBS"
11633cat >conftest.$ac_ext <<_ACEOF
11634/* confdefs.h.  */
11635_ACEOF
11636cat confdefs.h >>conftest.$ac_ext
11637cat >>conftest.$ac_ext <<_ACEOF
11638/* end confdefs.h.  */
11639
11640/* Override any GCC internal prototype to avoid an error.
11641   Use char because int might match the return type of a GCC
11642   builtin and then its argument prototype would still apply.  */
11643#ifdef __cplusplus
11644extern "C"
11645#endif
11646char snd_pcm_open ();
11647int
11648main ()
11649{
11650return snd_pcm_open ();
11651  ;
11652  return 0;
11653}
11654_ACEOF
11655rm -f conftest.$ac_objext conftest$ac_exeext
11656if { (ac_try="$ac_link"
11657case "(($ac_try" in
11658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659  *) ac_try_echo=$ac_try;;
11660esac
11661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662  (eval "$ac_link") 2>conftest.er1
11663  ac_status=$?
11664  grep -v '^ *+' conftest.er1 >conftest.err
11665  rm -f conftest.er1
11666  cat conftest.err >&5
11667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668  (exit $ac_status); } && {
11669         test -z "$ac_c_werror_flag" ||
11670         test ! -s conftest.err
11671       } && test -s conftest$ac_exeext &&
11672       $as_test_x conftest$ac_exeext; then
11673  ac_cv_lib_asound_snd_pcm_open=yes
11674else
11675  echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
11677
11678        ac_cv_lib_asound_snd_pcm_open=no
11679fi
11680
11681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11682      conftest$ac_exeext conftest.$ac_ext
11683LIBS=$ac_check_lib_save_LIBS
11684fi
11685{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11686echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
11687if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11688  ac_lib_alsa=yes
11689else
11690  ac_lib_alsa=no
11691fi
11692
11693        if test $ac_lib_alsa = yes; then
11694                { echo "$as_me:$LINENO: checking for ALSA" >&5
11695echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
11696                cat >conftest.$ac_ext <<_ACEOF
11697/* confdefs.h.  */
11698_ACEOF
11699cat confdefs.h >>conftest.$ac_ext
11700cat >>conftest.$ac_ext <<_ACEOF
11701/* end confdefs.h.  */
11702
11703                                #include <alsa/asoundlib.h>
11704
11705int
11706main ()
11707{
11708
11709                                #if SND_LIB_VERSION < ((0<<16)|(9<<8)|0)
11710                                choke me
11711                                #endif
11712
11713  ;
11714  return 0;
11715}
11716_ACEOF
11717rm -f conftest.$ac_objext
11718if { (ac_try="$ac_compile"
11719case "(($ac_try" in
11720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721  *) ac_try_echo=$ac_try;;
11722esac
11723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724  (eval "$ac_compile") 2>conftest.er1
11725  ac_status=$?
11726  grep -v '^ *+' conftest.er1 >conftest.err
11727  rm -f conftest.er1
11728  cat conftest.err >&5
11729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730  (exit $ac_status); } && {
11731         test -z "$ac_c_werror_flag" ||
11732         test ! -s conftest.err
11733       } && test -s conftest.$ac_objext; then
11734  ac_lib_alsa=yes
11735else
11736  echo "$as_me: failed program was:" >&5
11737sed 's/^/| /' conftest.$ac_ext >&5
11738
11739        ac_lib_alsa=no
11740fi
11741
11742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11743                { echo "$as_me:$LINENO: result: $ac_lib_alsa" >&5
11744echo "${ECHO_T}$ac_lib_alsa" >&6; }
11745        fi
11746elif test $ac_lib_alsa = yes; then
11747
11748{ echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11749echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
11750if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11751  echo $ECHO_N "(cached) $ECHO_C" >&6
11752else
11753  ac_check_lib_save_LIBS=$LIBS
11754LIBS="-lasound -lm
11755         $LIBS"
11756cat >conftest.$ac_ext <<_ACEOF
11757/* confdefs.h.  */
11758_ACEOF
11759cat confdefs.h >>conftest.$ac_ext
11760cat >>conftest.$ac_ext <<_ACEOF
11761/* end confdefs.h.  */
11762
11763/* Override any GCC internal prototype to avoid an error.
11764   Use char because int might match the return type of a GCC
11765   builtin and then its argument prototype would still apply.  */
11766#ifdef __cplusplus
11767extern "C"
11768#endif
11769char snd_pcm_open ();
11770int
11771main ()
11772{
11773return snd_pcm_open ();
11774  ;
11775  return 0;
11776}
11777_ACEOF
11778rm -f conftest.$ac_objext conftest$ac_exeext
11779if { (ac_try="$ac_link"
11780case "(($ac_try" in
11781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782  *) ac_try_echo=$ac_try;;
11783esac
11784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785  (eval "$ac_link") 2>conftest.er1
11786  ac_status=$?
11787  grep -v '^ *+' conftest.er1 >conftest.err
11788  rm -f conftest.er1
11789  cat conftest.err >&5
11790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791  (exit $ac_status); } && {
11792         test -z "$ac_c_werror_flag" ||
11793         test ! -s conftest.err
11794       } && test -s conftest$ac_exeext &&
11795       $as_test_x conftest$ac_exeext; then
11796  ac_cv_lib_asound_snd_pcm_open=yes
11797else
11798  echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
11801        ac_cv_lib_asound_snd_pcm_open=no
11802fi
11803
11804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11805      conftest$ac_exeext conftest.$ac_ext
11806LIBS=$ac_check_lib_save_LIBS
11807fi
11808{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11809echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
11810if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11811  cat >>confdefs.h <<_ACEOF
11812#define HAVE_LIBASOUND 1
11813_ACEOF
11814
11815  LIBS="-lasound $LIBS"
11816
11817else
11818  { { echo "$as_me:$LINENO: error: the ALSA library is missing" >&5
11819echo "$as_me: error: the ALSA library is missing" >&2;}
11820   { (exit 1); exit 1; }; }
11821fi
11822
11823        { echo "$as_me:$LINENO: checking for ALSA version" >&5
11824echo $ECHO_N "checking for ALSA version... $ECHO_C" >&6; }
11825        cat >conftest.$ac_ext <<_ACEOF
11826/* confdefs.h.  */
11827_ACEOF
11828cat confdefs.h >>conftest.$ac_ext
11829cat >>conftest.$ac_ext <<_ACEOF
11830/* end confdefs.h.  */
11831
11832                        #include <alsa/asoundlib.h>
11833
11834int
11835main ()
11836{
11837
11838                        #if SND_LIB_VERSION < ((0<<16)|(9<<8)|0)
11839                        choke me
11840                        #endif
11841
11842  ;
11843  return 0;
11844}
11845_ACEOF
11846rm -f conftest.$ac_objext
11847if { (ac_try="$ac_compile"
11848case "(($ac_try" in
11849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850  *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853  (eval "$ac_compile") 2>conftest.er1
11854  ac_status=$?
11855  grep -v '^ *+' conftest.er1 >conftest.err
11856  rm -f conftest.er1
11857  cat conftest.err >&5
11858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859  (exit $ac_status); } && {
11860         test -z "$ac_c_werror_flag" ||
11861         test ! -s conftest.err
11862       } && test -s conftest.$ac_objext; then
11863  :
11864else
11865  echo "$as_me: failed program was:" >&5
11866sed 's/^/| /' conftest.$ac_ext >&5
11867
11868        { { echo "$as_me:$LINENO: error: the ALSA library is too old" >&5
11869echo "$as_me: error: the ALSA library is too old" >&2;}
11870   { (exit 1); exit 1; }; }
11871fi
11872
11873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874        { echo "$as_me:$LINENO: result: yes" >&5
11875echo "${ECHO_T}yes" >&6; }
11876fi
11877if test $ac_lib_alsa = yes; then
11878        ac_lib_sound="$ac_lib_sound alsa"
11879        ac_lib_sound_flag=yes
11880fi
11881CONF_LIB_ALSA=$ac_lib_alsa
11882
11883
11884# Checks for oss
11885# Check whether --enable-oss was given.
11886if test "${enable_oss+set}" = set; then
11887  enableval=$enable_oss; ac_lib_oss=$enableval
11888else
11889  ac_lib_oss=auto
11890
11891fi
11892
11893if test $ac_lib_oss = auto; then
11894        { echo "$as_me:$LINENO: checking for OSS" >&5
11895echo $ECHO_N "checking for OSS... $ECHO_C" >&6; }
11896        cat >conftest.$ac_ext <<_ACEOF
11897/* confdefs.h.  */
11898_ACEOF
11899cat confdefs.h >>conftest.$ac_ext
11900cat >>conftest.$ac_ext <<_ACEOF
11901/* end confdefs.h.  */
11902
11903                        #include <sys/soundcard.h>
11904
11905int
11906main ()
11907{
11908
11909                        int dummy = SNDCTL_DSP_SETFMT;
11910
11911  ;
11912  return 0;
11913}
11914_ACEOF
11915rm -f conftest.$ac_objext
11916if { (ac_try="$ac_compile"
11917case "(($ac_try" in
11918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919  *) ac_try_echo=$ac_try;;
11920esac
11921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922  (eval "$ac_compile") 2>conftest.er1
11923  ac_status=$?
11924  grep -v '^ *+' conftest.er1 >conftest.err
11925  rm -f conftest.er1
11926  cat conftest.err >&5
11927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928  (exit $ac_status); } && {
11929         test -z "$ac_c_werror_flag" ||
11930         test ! -s conftest.err
11931       } && test -s conftest.$ac_objext; then
11932  ac_lib_oss=yes
11933else
11934  echo "$as_me: failed program was:" >&5
11935sed 's/^/| /' conftest.$ac_ext >&5
11936
11937        ac_lib_oss=no
11938fi
11939
11940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941        { echo "$as_me:$LINENO: result: $ac_lib_oss" >&5
11942echo "${ECHO_T}$ac_lib_oss" >&6; }
11943elif test $ac_lib_oss = yes; then
11944        { echo "$as_me:$LINENO: checking for OSS" >&5
11945echo $ECHO_N "checking for OSS... $ECHO_C" >&6; }
11946        cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h.  */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h.  */
11952
11953                        #include <sys/soundcard.h>
11954
11955int
11956main ()
11957{
11958
11959                        int dummy = SNDCTL_DSP_SETFMT;
11960
11961  ;
11962  return 0;
11963}
11964_ACEOF
11965rm -f conftest.$ac_objext
11966if { (ac_try="$ac_compile"
11967case "(($ac_try" in
11968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969  *) ac_try_echo=$ac_try;;
11970esac
11971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972  (eval "$ac_compile") 2>conftest.er1
11973  ac_status=$?
11974  grep -v '^ *+' conftest.er1 >conftest.err
11975  rm -f conftest.er1
11976  cat conftest.err >&5
11977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978  (exit $ac_status); } && {
11979         test -z "$ac_c_werror_flag" ||
11980         test ! -s conftest.err
11981       } && test -s conftest.$ac_objext; then
11982  :
11983else
11984  echo "$as_me: failed program was:" >&5
11985sed 's/^/| /' conftest.$ac_ext >&5
11986
11987        { { echo "$as_me:$LINENO: error: the OSS library is missing" >&5
11988echo "$as_me: error: the OSS library is missing" >&2;}
11989   { (exit 1); exit 1; }; }
11990fi
11991
11992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11993        { echo "$as_me:$LINENO: result: yes" >&5
11994echo "${ECHO_T}yes" >&6; }
11995fi
11996if test $ac_lib_oss = yes; then
11997        ac_lib_sound="$ac_lib_sound oss"
11998        ac_lib_sound_flag=yes
11999fi
12000CONF_LIB_OSS=$ac_lib_oss
12001
12002
12003# Checks for pthread
12004# Check whether --enable-pthread was given.
12005if test "${enable_pthread+set}" = set; then
12006  enableval=$enable_pthread; ac_lib_pthread=$enableval
12007else
12008  ac_lib_pthread=auto
12009
12010fi
12011
12012if test $ac_lib_pthread = auto; then
12013        { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12014echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
12015if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
12016  echo $ECHO_N "(cached) $ECHO_C" >&6
12017else
12018  ac_check_lib_save_LIBS=$LIBS
12019LIBS="-lpthread
12020         $LIBS"
12021cat >conftest.$ac_ext <<_ACEOF
12022/* confdefs.h.  */
12023_ACEOF
12024cat confdefs.h >>conftest.$ac_ext
12025cat >>conftest.$ac_ext <<_ACEOF
12026/* end confdefs.h.  */
12027
12028/* Override any GCC internal prototype to avoid an error.
12029   Use char because int might match the return type of a GCC
12030   builtin and then its argument prototype would still apply.  */
12031#ifdef __cplusplus
12032extern "C"
12033#endif
12034char pthread_create ();
12035int
12036main ()
12037{
12038return pthread_create ();
12039  ;
12040  return 0;
12041}
12042_ACEOF
12043rm -f conftest.$ac_objext conftest$ac_exeext
12044if { (ac_try="$ac_link"
12045case "(($ac_try" in
12046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047  *) ac_try_echo=$ac_try;;
12048esac
12049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050  (eval "$ac_link") 2>conftest.er1
12051  ac_status=$?
12052  grep -v '^ *+' conftest.er1 >conftest.err
12053  rm -f conftest.er1
12054  cat conftest.err >&5
12055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056  (exit $ac_status); } && {
12057         test -z "$ac_c_werror_flag" ||
12058         test ! -s conftest.err
12059       } && test -s conftest$ac_exeext &&
12060       $as_test_x conftest$ac_exeext; then
12061  ac_cv_lib_pthread_pthread_create=yes
12062else
12063  echo "$as_me: failed program was:" >&5
12064sed 's/^/| /' conftest.$ac_ext >&5
12065
12066        ac_cv_lib_pthread_pthread_create=no
12067fi
12068
12069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12070      conftest$ac_exeext conftest.$ac_ext
12071LIBS=$ac_check_lib_save_LIBS
12072fi
12073{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
12074echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
12075if test $ac_cv_lib_pthread_pthread_create = yes; then
12076  ac_lib_pthread=yes
12077else
12078  ac_lib_pthread=no
12079fi
12080
12081elif test $ac_lib_pthread = yes; then
12082
12083{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12084echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
12085if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
12086  echo $ECHO_N "(cached) $ECHO_C" >&6
12087else
12088  ac_check_lib_save_LIBS=$LIBS
12089LIBS="-lpthread
12090         $LIBS"
12091cat >conftest.$ac_ext <<_ACEOF
12092/* confdefs.h.  */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
12096/* end confdefs.h.  */
12097
12098/* Override any GCC internal prototype to avoid an error.
12099   Use char because int might match the return type of a GCC
12100   builtin and then its argument prototype would still apply.  */
12101#ifdef __cplusplus
12102extern "C"
12103#endif
12104char pthread_create ();
12105int
12106main ()
12107{
12108return pthread_create ();
12109  ;
12110  return 0;
12111}
12112_ACEOF
12113rm -f conftest.$ac_objext conftest$ac_exeext
12114if { (ac_try="$ac_link"
12115case "(($ac_try" in
12116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117  *) ac_try_echo=$ac_try;;
12118esac
12119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120  (eval "$ac_link") 2>conftest.er1
12121  ac_status=$?
12122  grep -v '^ *+' conftest.er1 >conftest.err
12123  rm -f conftest.er1
12124  cat conftest.err >&5
12125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126  (exit $ac_status); } && {
12127         test -z "$ac_c_werror_flag" ||
12128         test ! -s conftest.err
12129       } && test -s conftest$ac_exeext &&
12130       $as_test_x conftest$ac_exeext; then
12131  ac_cv_lib_pthread_pthread_create=yes
12132else
12133  echo "$as_me: failed program was:" >&5
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
12136        ac_cv_lib_pthread_pthread_create=no
12137fi
12138
12139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12140      conftest$ac_exeext conftest.$ac_ext
12141LIBS=$ac_check_lib_save_LIBS
12142fi
12143{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
12144echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
12145if test $ac_cv_lib_pthread_pthread_create = yes; then
12146  cat >>confdefs.h <<_ACEOF
12147#define HAVE_LIBPTHREAD 1
12148_ACEOF
12149
12150  LIBS="-lpthread $LIBS"
12151
12152else
12153  { { echo "$as_me:$LINENO: error: the pthread library is missing" >&5
12154echo "$as_me: error: the pthread library is missing" >&2;}
12155   { (exit 1); exit 1; }; }
12156fi
12157
12158fi
12159if test $ac_lib_pthread = yes; then
12160        ac_lib_other="$ac_lib_other pthread"
12161fi
12162CONF_LIB_PTHREAD=$ac_lib_pthread
12163
12164
12165# Checks for slang
12166# Check whether --enable-slang was given.
12167if test "${enable_slang+set}" = set; then
12168  enableval=$enable_slang; ac_lib_slang=$enableval
12169else
12170  ac_lib_slang=auto
12171
12172fi
12173
12174if test $ac_lib_slang = auto; then
12175        { echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
12176echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6; }
12177if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
12178  echo $ECHO_N "(cached) $ECHO_C" >&6
12179else
12180  ac_check_lib_save_LIBS=$LIBS
12181LIBS="-lslang
12182         $LIBS"
12183cat >conftest.$ac_ext <<_ACEOF
12184/* confdefs.h.  */
12185_ACEOF
12186cat confdefs.h >>conftest.$ac_ext
12187cat >>conftest.$ac_ext <<_ACEOF
12188/* end confdefs.h.  */
12189
12190/* Override any GCC internal prototype to avoid an error.
12191   Use char because int might match the return type of a GCC
12192   builtin and then its argument prototype would still apply.  */
12193#ifdef __cplusplus
12194extern "C"
12195#endif
12196char SLang_init_tty ();
12197int
12198main ()
12199{
12200return SLang_init_tty ();
12201  ;
12202  return 0;
12203}
12204_ACEOF
12205rm -f conftest.$ac_objext conftest$ac_exeext
12206if { (ac_try="$ac_link"
12207case "(($ac_try" in
12208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209  *) ac_try_echo=$ac_try;;
12210esac
12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212  (eval "$ac_link") 2>conftest.er1
12213  ac_status=$?
12214  grep -v '^ *+' conftest.er1 >conftest.err
12215  rm -f conftest.er1
12216  cat conftest.err >&5
12217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218  (exit $ac_status); } && {
12219         test -z "$ac_c_werror_flag" ||
12220         test ! -s conftest.err
12221       } && test -s conftest$ac_exeext &&
12222       $as_test_x conftest$ac_exeext; then
12223  ac_cv_lib_slang_SLang_init_tty=yes
12224else
12225  echo "$as_me: failed program was:" >&5
12226sed 's/^/| /' conftest.$ac_ext >&5
12227
12228        ac_cv_lib_slang_SLang_init_tty=no
12229fi
12230
12231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12232      conftest$ac_exeext conftest.$ac_ext
12233LIBS=$ac_check_lib_save_LIBS
12234fi
12235{ echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
12236echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6; }
12237if test $ac_cv_lib_slang_SLang_init_tty = yes; then
12238  ac_lib_slang=yes
12239else
12240  ac_lib_slang=no
12241fi
12242
12243elif test $ac_lib_slang = yes; then
12244
12245{ echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
12246echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6; }
12247if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
12248  echo $ECHO_N "(cached) $ECHO_C" >&6
12249else
12250  ac_check_lib_save_LIBS=$LIBS
12251LIBS="-lslang
12252         $LIBS"
12253cat >conftest.$ac_ext <<_ACEOF
12254/* confdefs.h.  */
12255_ACEOF
12256cat confdefs.h >>conftest.$ac_ext
12257cat >>conftest.$ac_ext <<_ACEOF
12258/* end confdefs.h.  */
12259
12260/* Override any GCC internal prototype to avoid an error.
12261   Use char because int might match the return type of a GCC
12262   builtin and then its argument prototype would still apply.  */
12263#ifdef __cplusplus
12264extern "C"
12265#endif
12266char SLang_init_tty ();
12267int
12268main ()
12269{
12270return SLang_init_tty ();
12271  ;
12272  return 0;
12273}
12274_ACEOF
12275rm -f conftest.$ac_objext conftest$ac_exeext
12276if { (ac_try="$ac_link"
12277case "(($ac_try" in
12278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279  *) ac_try_echo=$ac_try;;
12280esac
12281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282  (eval "$ac_link") 2>conftest.er1
12283  ac_status=$?
12284  grep -v '^ *+' conftest.er1 >conftest.err
12285  rm -f conftest.er1
12286  cat conftest.err >&5
12287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288  (exit $ac_status); } && {
12289         test -z "$ac_c_werror_flag" ||
12290         test ! -s conftest.err
12291       } && test -s conftest$ac_exeext &&
12292       $as_test_x conftest$ac_exeext; then
12293  ac_cv_lib_slang_SLang_init_tty=yes
12294else
12295  echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
12298        ac_cv_lib_slang_SLang_init_tty=no
12299fi
12300
12301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12302      conftest$ac_exeext conftest.$ac_ext
12303LIBS=$ac_check_lib_save_LIBS
12304fi
12305{ echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
12306echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6; }
12307if test $ac_cv_lib_slang_SLang_init_tty = yes; then
12308  cat >>confdefs.h <<_ACEOF
12309#define HAVE_LIBSLANG 1
12310_ACEOF
12311
12312  LIBS="-lslang $LIBS"
12313
12314else
12315  { { echo "$as_me:$LINENO: error: the sLang library is missing" >&5
12316echo "$as_me: error: the sLang library is missing" >&2;}
12317   { (exit 1); exit 1; }; }
12318fi
12319
12320fi
12321if test $ac_lib_slang = yes; then
12322
12323
12324for ac_header in slang.h slang/slang.h
12325do
12326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12328  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12331  echo $ECHO_N "(cached) $ECHO_C" >&6
12332fi
12333ac_res=`eval echo '${'$as_ac_Header'}'`
12334               { echo "$as_me:$LINENO: result: $ac_res" >&5
12335echo "${ECHO_T}$ac_res" >&6; }
12336else
12337  # Is the header compilable?
12338{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12340cat >conftest.$ac_ext <<_ACEOF
12341/* confdefs.h.  */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
12345/* end confdefs.h.  */
12346$ac_includes_default
12347#include <$ac_header>
12348_ACEOF
12349rm -f conftest.$ac_objext
12350if { (ac_try="$ac_compile"
12351case "(($ac_try" in
12352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353  *) ac_try_echo=$ac_try;;
12354esac
12355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356  (eval "$ac_compile") 2>conftest.er1
12357  ac_status=$?
12358  grep -v '^ *+' conftest.er1 >conftest.err
12359  rm -f conftest.er1
12360  cat conftest.err >&5
12361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362  (exit $ac_status); } && {
12363         test -z "$ac_c_werror_flag" ||
12364         test ! -s conftest.err
12365       } && test -s conftest.$ac_objext; then
12366  ac_header_compiler=yes
12367else
12368  echo "$as_me: failed program was:" >&5
12369sed 's/^/| /' conftest.$ac_ext >&5
12370
12371        ac_header_compiler=no
12372fi
12373
12374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12376echo "${ECHO_T}$ac_header_compiler" >&6; }
12377
12378# Is the header present?
12379{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12381cat >conftest.$ac_ext <<_ACEOF
12382/* confdefs.h.  */
12383_ACEOF
12384cat confdefs.h >>conftest.$ac_ext
12385cat >>conftest.$ac_ext <<_ACEOF
12386/* end confdefs.h.  */
12387#include <$ac_header>
12388_ACEOF
12389if { (ac_try="$ac_cpp conftest.$ac_ext"
12390case "(($ac_try" in
12391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392  *) ac_try_echo=$ac_try;;
12393esac
12394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12396  ac_status=$?
12397  grep -v '^ *+' conftest.er1 >conftest.err
12398  rm -f conftest.er1
12399  cat conftest.err >&5
12400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401  (exit $ac_status); } >/dev/null && {
12402         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12403         test ! -s conftest.err
12404       }; then
12405  ac_header_preproc=yes
12406else
12407  echo "$as_me: failed program was:" >&5
12408sed 's/^/| /' conftest.$ac_ext >&5
12409
12410  ac_header_preproc=no
12411fi
12412
12413rm -f conftest.err conftest.$ac_ext
12414{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12415echo "${ECHO_T}$ac_header_preproc" >&6; }
12416
12417# So?  What about this header?
12418case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12419  yes:no: )
12420    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12421echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12422    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12423echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12424    ac_header_preproc=yes
12425    ;;
12426  no:yes:* )
12427    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12428echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12429    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12430echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12431    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12432echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12433    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12434echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12435    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12436echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12437    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12438echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12439
12440    ;;
12441esac
12442{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12445  echo $ECHO_N "(cached) $ECHO_C" >&6
12446else
12447  eval "$as_ac_Header=\$ac_header_preproc"
12448fi
12449ac_res=`eval echo '${'$as_ac_Header'}'`
12450               { echo "$as_me:$LINENO: result: $ac_res" >&5
12451echo "${ECHO_T}$ac_res" >&6; }
12452
12453fi
12454if test `eval echo '${'$as_ac_Header'}'` = yes; then
12455  cat >>confdefs.h <<_ACEOF
12456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12457_ACEOF
12458 break
12459fi
12460
12461done
12462
12463        ac_lib_video="$ac_lib_video slang"
12464        ac_lib_text_flag=yes
12465fi
12466CONF_LIB_SLANG=$ac_lib_slang
12467
12468
12469# Checks for ncurses
12470# Check whether --enable-ncurses was given.
12471if test "${enable_ncurses+set}" = set; then
12472  enableval=$enable_ncurses; ac_lib_ncurses=$enableval
12473else
12474  ac_lib_ncurses=auto
12475
12476fi
12477
12478if test $ac_lib_ncurses = auto; then
12479        { echo "$as_me:$LINENO: checking for endwin in -lncurses" >&5
12480echo $ECHO_N "checking for endwin in -lncurses... $ECHO_C" >&6; }
12481if test "${ac_cv_lib_ncurses_endwin+set}" = set; then
12482  echo $ECHO_N "(cached) $ECHO_C" >&6
12483else
12484  ac_check_lib_save_LIBS=$LIBS
12485LIBS="-lncurses
12486         $LIBS"
12487cat >conftest.$ac_ext <<_ACEOF
12488/* confdefs.h.  */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h.  */
12493
12494/* Override any GCC internal prototype to avoid an error.
12495   Use char because int might match the return type of a GCC
12496   builtin and then its argument prototype would still apply.  */
12497#ifdef __cplusplus
12498extern "C"
12499#endif
12500char endwin ();
12501int
12502main ()
12503{
12504return endwin ();
12505  ;
12506  return 0;
12507}
12508_ACEOF
12509rm -f conftest.$ac_objext conftest$ac_exeext
12510if { (ac_try="$ac_link"
12511case "(($ac_try" in
12512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513  *) ac_try_echo=$ac_try;;
12514esac
12515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516  (eval "$ac_link") 2>conftest.er1
12517  ac_status=$?
12518  grep -v '^ *+' conftest.er1 >conftest.err
12519  rm -f conftest.er1
12520  cat conftest.err >&5
12521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522  (exit $ac_status); } && {
12523         test -z "$ac_c_werror_flag" ||
12524         test ! -s conftest.err
12525       } && test -s conftest$ac_exeext &&
12526       $as_test_x conftest$ac_exeext; then
12527  ac_cv_lib_ncurses_endwin=yes
12528else
12529  echo "$as_me: failed program was:" >&5
12530sed 's/^/| /' conftest.$ac_ext >&5
12531
12532        ac_cv_lib_ncurses_endwin=no
12533fi
12534
12535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12536      conftest$ac_exeext conftest.$ac_ext
12537LIBS=$ac_check_lib_save_LIBS
12538fi
12539{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_endwin" >&5
12540echo "${ECHO_T}$ac_cv_lib_ncurses_endwin" >&6; }
12541if test $ac_cv_lib_ncurses_endwin = yes; then
12542  ac_lib_ncurses=yes
12543else
12544  ac_lib_ncurses=no
12545fi
12546
12547elif test $ac_lib_ncurses = yes; then
12548
12549{ echo "$as_me:$LINENO: checking for endwin in -lncurses" >&5
12550echo $ECHO_N "checking for endwin in -lncurses... $ECHO_C" >&6; }
12551if test "${ac_cv_lib_ncurses_endwin+set}" = set; then
12552  echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554  ac_check_lib_save_LIBS=$LIBS
12555LIBS="-lncurses
12556         $LIBS"
12557cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h.  */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h.  */
12563
12564/* Override any GCC internal prototype to avoid an error.
12565   Use char because int might match the return type of a GCC
12566   builtin and then its argument prototype would still apply.  */
12567#ifdef __cplusplus
12568extern "C"
12569#endif
12570char endwin ();
12571int
12572main ()
12573{
12574return endwin ();
12575  ;
12576  return 0;
12577}
12578_ACEOF
12579rm -f conftest.$ac_objext conftest$ac_exeext
12580if { (ac_try="$ac_link"
12581case "(($ac_try" in
12582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583  *) ac_try_echo=$ac_try;;
12584esac
12585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586  (eval "$ac_link") 2>conftest.er1
12587  ac_status=$?
12588  grep -v '^ *+' conftest.er1 >conftest.err
12589  rm -f conftest.er1
12590  cat conftest.err >&5
12591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592  (exit $ac_status); } && {
12593         test -z "$ac_c_werror_flag" ||
12594         test ! -s conftest.err
12595       } && test -s conftest$ac_exeext &&
12596       $as_test_x conftest$ac_exeext; then
12597  ac_cv_lib_ncurses_endwin=yes
12598else
12599  echo "$as_me: failed program was:" >&5
12600sed 's/^/| /' conftest.$ac_ext >&5
12601
12602        ac_cv_lib_ncurses_endwin=no
12603fi
12604
12605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12606      conftest$ac_exeext conftest.$ac_ext
12607LIBS=$ac_check_lib_save_LIBS
12608fi
12609{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_endwin" >&5
12610echo "${ECHO_T}$ac_cv_lib_ncurses_endwin" >&6; }
12611if test $ac_cv_lib_ncurses_endwin = yes; then
12612  cat >>confdefs.h <<_ACEOF
12613#define HAVE_LIBNCURSES 1
12614_ACEOF
12615
12616  LIBS="-lncurses $LIBS"
12617
12618else
12619  { { echo "$as_me:$LINENO: error: the sLang library is missing" >&5
12620echo "$as_me: error: the sLang library is missing" >&2;}
12621   { (exit 1); exit 1; }; }
12622fi
12623
12624fi
12625if test $ac_lib_ncurses = yes; then
12626        ac_lib_video="$ac_lib_video ncurses"
12627        ac_lib_text_flag=yes
12628fi
12629CONF_LIB_NCURSES=$ac_lib_ncurses
12630
12631
12632# Checks for freetype
12633ac_lib_freetype_args=
12634ac_lib_freetype_path="$PATH"
12635
12636# Check whether --with-freetype-prefix was given.
12637if test "${with_freetype_prefix+set}" = set; then
12638  withval=$with_freetype_prefix; ac_lib_freetype_prefix="$withval"
12639else
12640  ac_lib_freetype_prefix=""
12641
12642fi
12643
12644if test ! -z $ac_lib_freetype_prefix; then
12645        ac_lib_freetype_args="--prefix=${ac_lib_freetype_prefix}"
12646        ac_lib_freetype_path="${ac_lib_freetype_prefix}/bin"
12647fi
12648# Check whether --enable-freetype was given.
12649if test "${enable_freetype+set}" = set; then
12650  enableval=$enable_freetype; ac_lib_freetype=$enableval
12651else
12652  ac_lib_freetype=auto
12653
12654fi
12655
12656if test $ac_lib_freetype = auto; then
12657        for ac_prog in ${ac_tool_prefix}freetype-config
12658do
12659  # Extract the first word of "$ac_prog", so it can be a program name with args.
12660set dummy $ac_prog; ac_word=$2
12661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12663if test "${ac_cv_path_ac_lib_freetype_config+set}" = set; then
12664  echo $ECHO_N "(cached) $ECHO_C" >&6
12665else
12666  case $ac_lib_freetype_config in
12667  [\\/]* | ?:[\\/]*)
12668  ac_cv_path_ac_lib_freetype_config="$ac_lib_freetype_config" # Let the user override the test with a path.
12669  ;;
12670  *)
12671  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672for as_dir in ${ac_lib_freetype_path}
12673
12674do
12675  IFS=$as_save_IFS
12676  test -z "$as_dir" && as_dir=.
12677  for ac_exec_ext in '' $ac_executable_extensions; do
12678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12679    ac_cv_path_ac_lib_freetype_config="$as_dir/$ac_word$ac_exec_ext"
12680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12681    break 2
12682  fi
12683done
12684done
12685IFS=$as_save_IFS
12686
12687  ;;
12688esac
12689fi
12690ac_lib_freetype_config=$ac_cv_path_ac_lib_freetype_config
12691if test -n "$ac_lib_freetype_config"; then
12692  { echo "$as_me:$LINENO: result: $ac_lib_freetype_config" >&5
12693echo "${ECHO_T}$ac_lib_freetype_config" >&6; }
12694else
12695  { echo "$as_me:$LINENO: result: no" >&5
12696echo "${ECHO_T}no" >&6; }
12697fi
12698
12699
12700  test -n "$ac_lib_freetype_config" && break
12701done
12702
12703        if test -z $ac_lib_freetype_config; then
12704                ac_lib_freetype=no
12705        else
12706                ac_save_CFLAGS="$CFLAGS"
12707                ac_save_LIBS="$LIBS"
12708                FREETYPECFLAGS=`$ac_lib_freetype_config $ac_lib_freetype_args --cflags`
12709                FREETYPELIBS=`$ac_lib_freetype_config $ac_lib_freetype_args --libs`
12710                CFLAGS="$FREETYPECFLAGS $CFLAGS"
12711                LIBS="$FREETYPELIBS $LIBS"
12712                { echo "$as_me:$LINENO: checking for FreeType2" >&5
12713echo $ECHO_N "checking for FreeType2... $ECHO_C" >&6; }
12714                cat >conftest.$ac_ext <<_ACEOF
12715/* confdefs.h.  */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h.  */
12720
12721                                #include <ft2build.h>
12722                                #include FT_FREETYPE_H
12723                                #include FT_GLYPH_H
12724
12725int
12726main ()
12727{
12728
12729                                FT_Library library;
12730                                int dummy = FT_RENDER_MODE_NORMAL;
12731                                FT_Init_FreeType(&library);
12732                                FT_Done_FreeType(library);
12733
12734  ;
12735  return 0;
12736}
12737_ACEOF
12738rm -f conftest.$ac_objext conftest$ac_exeext
12739if { (ac_try="$ac_link"
12740case "(($ac_try" in
12741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742  *) ac_try_echo=$ac_try;;
12743esac
12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745  (eval "$ac_link") 2>conftest.er1
12746  ac_status=$?
12747  grep -v '^ *+' conftest.er1 >conftest.err
12748  rm -f conftest.er1
12749  cat conftest.err >&5
12750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751  (exit $ac_status); } && {
12752         test -z "$ac_c_werror_flag" ||
12753         test ! -s conftest.err
12754       } && test -s conftest$ac_exeext &&
12755       $as_test_x conftest$ac_exeext; then
12756  ac_lib_freetype=yes
12757else
12758  echo "$as_me: failed program was:" >&5
12759sed 's/^/| /' conftest.$ac_ext >&5
12760
12761        ac_lib_freetype=no
12762fi
12763
12764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12765      conftest$ac_exeext conftest.$ac_ext
12766                { echo "$as_me:$LINENO: result: $ac_lib_freetype" >&5
12767echo "${ECHO_T}$ac_lib_freetype" >&6; }
12768                CFLAGS="$ac_save_CFLAGS"
12769                LIBS="$ac_save_LIBS"
12770        fi
12771elif test $ac_lib_freetype = yes; then
12772        for ac_prog in ${ac_tool_prefix}freetype-config
12773do
12774  # Extract the first word of "$ac_prog", so it can be a program name with args.
12775set dummy $ac_prog; ac_word=$2
12776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12778if test "${ac_cv_path_ac_lib_freetype_config+set}" = set; then
12779  echo $ECHO_N "(cached) $ECHO_C" >&6
12780else
12781  case $ac_lib_freetype_config in
12782  [\\/]* | ?:[\\/]*)
12783  ac_cv_path_ac_lib_freetype_config="$ac_lib_freetype_config" # Let the user override the test with a path.
12784  ;;
12785  *)
12786  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787for as_dir in ${ac_lib_freetype_path}
12788
12789do
12790  IFS=$as_save_IFS
12791  test -z "$as_dir" && as_dir=.
12792  for ac_exec_ext in '' $ac_executable_extensions; do
12793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12794    ac_cv_path_ac_lib_freetype_config="$as_dir/$ac_word$ac_exec_ext"
12795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12796    break 2
12797  fi
12798done
12799done
12800IFS=$as_save_IFS
12801
12802  ;;
12803esac
12804fi
12805ac_lib_freetype_config=$ac_cv_path_ac_lib_freetype_config
12806if test -n "$ac_lib_freetype_config"; then
12807  { echo "$as_me:$LINENO: result: $ac_lib_freetype_config" >&5
12808echo "${ECHO_T}$ac_lib_freetype_config" >&6; }
12809else
12810  { echo "$as_me:$LINENO: result: no" >&5
12811echo "${ECHO_T}no" >&6; }
12812fi
12813
12814
12815  test -n "$ac_lib_freetype_config" && break
12816done
12817
12818        if test -z $ac_lib_freetype_config ; then
12819                { { echo "$as_me:$LINENO: error: the ${ac_tool_prefix}freetype-config tool is missing" >&5
12820echo "$as_me: error: the ${ac_tool_prefix}freetype-config tool is missing" >&2;}
12821   { (exit 1); exit 1; }; }
12822        else
12823                ac_save_CFLAGS="$CFLAGS"
12824                ac_save_LIBS="$LIBS"
12825                FREETYPECFLAGS=`$ac_lib_freetype_config $ac_lib_freetype_args --cflags`
12826                FREETYPELIBS=`$ac_lib_freetype_config $ac_lib_freetype_args --libs`
12827                CFLAGS="$FREETYPECFLAGS $CFLAGS"
12828                LIBS="$FREETYPELIBS $LIBS"
12829                { echo "$as_me:$LINENO: checking for FreeType2" >&5
12830echo $ECHO_N "checking for FreeType2... $ECHO_C" >&6; }
12831                cat >conftest.$ac_ext <<_ACEOF
12832/* confdefs.h.  */
12833_ACEOF
12834cat confdefs.h >>conftest.$ac_ext
12835cat >>conftest.$ac_ext <<_ACEOF
12836/* end confdefs.h.  */
12837
12838                                #include <ft2build.h>
12839                                #include FT_FREETYPE_H
12840                                #include FT_GLYPH_H
12841
12842int
12843main ()
12844{
12845
12846                                FT_Library library;
12847                                FT_Init_FreeType(&library);
12848                                FT_Done_FreeType(library);
12849
12850  ;
12851  return 0;
12852}
12853_ACEOF
12854rm -f conftest.$ac_objext conftest$ac_exeext
12855if { (ac_try="$ac_link"
12856case "(($ac_try" in
12857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858  *) ac_try_echo=$ac_try;;
12859esac
12860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861  (eval "$ac_link") 2>conftest.er1
12862  ac_status=$?
12863  grep -v '^ *+' conftest.er1 >conftest.err
12864  rm -f conftest.er1
12865  cat conftest.err >&5
12866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867  (exit $ac_status); } && {
12868         test -z "$ac_c_werror_flag" ||
12869         test ! -s conftest.err
12870       } && test -s conftest$ac_exeext &&
12871       $as_test_x conftest$ac_exeext; then
12872  :
12873else
12874  echo "$as_me: failed program was:" >&5
12875sed 's/^/| /' conftest.$ac_ext >&5
12876
12877        { { echo "$as_me:$LINENO: error: the FreeType2 library is missing" >&5
12878echo "$as_me: error: the FreeType2 library is missing" >&2;}
12879   { (exit 1); exit 1; }; }
12880fi
12881
12882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12883      conftest$ac_exeext conftest.$ac_ext
12884                { echo "$as_me:$LINENO: result: yes" >&5
12885echo "${ECHO_T}yes" >&6; }
12886                CFLAGS="$ac_save_CFLAGS"
12887                LIBS="$ac_save_LIBS"
12888        fi
12889fi
12890if test $ac_lib_freetype = yes; then
12891        ac_lib_other="$ac_lib_other freetype2"
12892fi
12893
12894
12895CONF_LIB_FREETYPE=$ac_lib_freetype
12896
12897
12898# Checks for sdl
12899ac_lib_sdl_args=
12900ac_lib_sdl_path="$PATH"
12901
12902# Check whether --with-sdl-prefix was given.
12903if test "${with_sdl_prefix+set}" = set; then
12904  withval=$with_sdl_prefix; ac_lib_sdl_prefix="$withval"
12905else
12906  ac_lib_sdl_prefix=""
12907
12908fi
12909
12910if test ! -z $ac_lib_sdl_prefix; then
12911        ac_lib_sdl_args="--prefix=${ac_lib_sdl_prefix}"
12912        ac_lib_sdl_path="${ac_lib_sdl_prefix}/bin"
12913fi
12914# Check whether --enable-sdl was given.
12915if test "${enable_sdl+set}" = set; then
12916  enableval=$enable_sdl; ac_lib_sdl=$enableval
12917else
12918  ac_lib_sdl=auto
12919
12920fi
12921
12922if test $ac_lib_sdl = auto; then
12923        for ac_prog in ${ac_tool_prefix}sdl-config
12924do
12925  # Extract the first word of "$ac_prog", so it can be a program name with args.
12926set dummy $ac_prog; ac_word=$2
12927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12929if test "${ac_cv_path_ac_lib_sdl_config+set}" = set; then
12930  echo $ECHO_N "(cached) $ECHO_C" >&6
12931else
12932  case $ac_lib_sdl_config in
12933  [\\/]* | ?:[\\/]*)
12934  ac_cv_path_ac_lib_sdl_config="$ac_lib_sdl_config" # Let the user override the test with a path.
12935  ;;
12936  *)
12937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938for as_dir in ${ac_lib_sdl_path}
12939
12940do
12941  IFS=$as_save_IFS
12942  test -z "$as_dir" && as_dir=.
12943  for ac_exec_ext in '' $ac_executable_extensions; do
12944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12945    ac_cv_path_ac_lib_sdl_config="$as_dir/$ac_word$ac_exec_ext"
12946    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12947    break 2
12948  fi
12949done
12950done
12951IFS=$as_save_IFS
12952
12953  ;;
12954esac
12955fi
12956ac_lib_sdl_config=$ac_cv_path_ac_lib_sdl_config
12957if test -n "$ac_lib_sdl_config"; then
12958  { echo "$as_me:$LINENO: result: $ac_lib_sdl_config" >&5
12959echo "${ECHO_T}$ac_lib_sdl_config" >&6; }
12960else
12961  { echo "$as_me:$LINENO: result: no" >&5
12962echo "${ECHO_T}no" >&6; }
12963fi
12964
12965
12966  test -n "$ac_lib_sdl_config" && break
12967done
12968
12969        if test -z $ac_lib_sdl_config; then
12970                ac_lib_sdl=no
12971        else
12972                ac_save_CFLAGS="$CFLAGS"
12973                ac_save_LIBS="$LIBS"
12974                SDLCFLAGS=`$ac_lib_sdl_config $ac_lib_sdl_args --cflags`
12975                if test $ac_enable_static = yes ; then
12976                        SDLLIBS=`$ac_lib_sdl_config $ac_lib_sdl_args --static-libs`
12977                else
12978                        SDLLIBS=`$ac_lib_sdl_config $ac_lib_sdl_args --libs`
12979                fi
12980                CFLAGS="$SDLCFLAGS $CFLAGS"
12981                LIBS="$SDLLIBS $LIBS"
12982                { echo "$as_me:$LINENO: checking for SDL" >&5
12983echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
12984                cat >conftest.$ac_ext <<_ACEOF
12985/* confdefs.h.  */
12986_ACEOF
12987cat confdefs.h >>conftest.$ac_ext
12988cat >>conftest.$ac_ext <<_ACEOF
12989/* end confdefs.h.  */
12990
12991                                #include "SDL.h"
12992                                #undef main
12993
12994int
12995main ()
12996{
12997
12998                                SDL_Init(SDL_INIT_EVERYTHING);
12999
13000  ;
13001  return 0;
13002}
13003_ACEOF
13004rm -f conftest.$ac_objext conftest$ac_exeext
13005if { (ac_try="$ac_link"
13006case "(($ac_try" in
13007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008  *) ac_try_echo=$ac_try;;
13009esac
13010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011  (eval "$ac_link") 2>conftest.er1
13012  ac_status=$?
13013  grep -v '^ *+' conftest.er1 >conftest.err
13014  rm -f conftest.er1
13015  cat conftest.err >&5
13016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017  (exit $ac_status); } && {
13018         test -z "$ac_c_werror_flag" ||
13019         test ! -s conftest.err
13020       } && test -s conftest$ac_exeext &&
13021       $as_test_x conftest$ac_exeext; then
13022  ac_lib_sdl=yes
13023else
13024  echo "$as_me: failed program was:" >&5
13025sed 's/^/| /' conftest.$ac_ext >&5
13026
13027        ac_lib_sdl=no
13028fi
13029
13030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13031      conftest$ac_exeext conftest.$ac_ext
13032                { echo "$as_me:$LINENO: result: $ac_lib_sdl" >&5
13033echo "${ECHO_T}$ac_lib_sdl" >&6; }
13034                CFLAGS="$ac_save_CFLAGS"
13035                LIBS="$ac_save_LIBS"
13036        fi
13037elif test $ac_lib_sdl = yes; then
13038        for ac_prog in ${ac_tool_prefix}sdl-config
13039do
13040  # Extract the first word of "$ac_prog", so it can be a program name with args.
13041set dummy $ac_prog; ac_word=$2
13042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13044if test "${ac_cv_path_ac_lib_sdl_config+set}" = set; then
13045  echo $ECHO_N "(cached) $ECHO_C" >&6
13046else
13047  case $ac_lib_sdl_config in
13048  [\\/]* | ?:[\\/]*)
13049  ac_cv_path_ac_lib_sdl_config="$ac_lib_sdl_config" # Let the user override the test with a path.
13050  ;;
13051  *)
13052  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053for as_dir in ${ac_lib_sdl_path}
13054
13055do
13056  IFS=$as_save_IFS
13057  test -z "$as_dir" && as_dir=.
13058  for ac_exec_ext in '' $ac_executable_extensions; do
13059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060    ac_cv_path_ac_lib_sdl_config="$as_dir/$ac_word$ac_exec_ext"
13061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13062    break 2
13063  fi
13064done
13065done
13066IFS=$as_save_IFS
13067
13068  ;;
13069esac
13070fi
13071ac_lib_sdl_config=$ac_cv_path_ac_lib_sdl_config
13072if test -n "$ac_lib_sdl_config"; then
13073  { echo "$as_me:$LINENO: result: $ac_lib_sdl_config" >&5
13074echo "${ECHO_T}$ac_lib_sdl_config" >&6; }
13075else
13076  { echo "$as_me:$LINENO: result: no" >&5
13077echo "${ECHO_T}no" >&6; }
13078fi
13079
13080
13081  test -n "$ac_lib_sdl_config" && break
13082done
13083
13084        if test -z $ac_lib_sdl_config ; then
13085                { { echo "$as_me:$LINENO: error: the ${ac_tool_prefix}sdl-config tool is missing" >&5
13086echo "$as_me: error: the ${ac_tool_prefix}sdl-config tool is missing" >&2;}
13087   { (exit 1); exit 1; }; }
13088        else
13089                ac_save_CFLAGS="$CFLAGS"
13090                ac_save_LIBS="$LIBS"
13091                SDLCFLAGS=`$ac_lib_sdl_config $ac_lib_sdl_args --cflags`
13092                if test $ac_enable_static = yes ; then
13093                        SDLLIBS=`$ac_lib_sdl_config $ac_lib_sdl_args --static-libs`
13094                else
13095                        SDLLIBS=`$ac_lib_sdl_config $ac_lib_sdl_args --libs`
13096                fi
13097                CFLAGS="$SDLCFLAGS $CFLAGS"
13098                LIBS="$SDLLIBS $LIBS"
13099                { echo "$as_me:$LINENO: checking for SDL" >&5
13100echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
13101                cat >conftest.$ac_ext <<_ACEOF
13102/* confdefs.h.  */
13103_ACEOF
13104cat confdefs.h >>conftest.$ac_ext
13105cat >>conftest.$ac_ext <<_ACEOF
13106/* end confdefs.h.  */
13107
13108                                #include "SDL.h"
13109                                #undef main
13110
13111int
13112main ()
13113{
13114
13115                                SDL_Init(SDL_INIT_EVERYTHING);
13116
13117  ;
13118  return 0;
13119}
13120_ACEOF
13121rm -f conftest.$ac_objext conftest$ac_exeext
13122if { (ac_try="$ac_link"
13123case "(($ac_try" in
13124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125  *) ac_try_echo=$ac_try;;
13126esac
13127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128  (eval "$ac_link") 2>conftest.er1
13129  ac_status=$?
13130  grep -v '^ *+' conftest.er1 >conftest.err
13131  rm -f conftest.er1
13132  cat conftest.err >&5
13133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134  (exit $ac_status); } && {
13135         test -z "$ac_c_werror_flag" ||
13136         test ! -s conftest.err
13137       } && test -s conftest$ac_exeext &&
13138       $as_test_x conftest$ac_exeext; then
13139  :
13140else
13141  echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
13144        { { echo "$as_me:$LINENO: error: the SDL library is missing" >&5
13145echo "$as_me: error: the SDL library is missing" >&2;}
13146   { (exit 1); exit 1; }; }
13147fi
13148
13149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13150      conftest$ac_exeext conftest.$ac_ext
13151                { echo "$as_me:$LINENO: result: yes" >&5
13152echo "${ECHO_T}yes" >&6; }
13153                CFLAGS="$ac_save_CFLAGS"
13154                LIBS="$ac_save_LIBS"
13155        fi
13156fi
13157if test $ac_lib_sdl = yes; then
13158        ac_lib_video="$ac_lib_video sdl"
13159        ac_lib_sound="$ac_lib_sound sdl"
13160        ac_lib_keyboard="$ac_lib_keyboard sdl"
13161        ac_lib_joystick="$ac_lib_joystick sdl"
13162        ac_lib_mouse="$ac_lib_mouse sdl"
13163        ac_lib_video_flag=yes
13164        ac_lib_sound_flag=yes
13165        ac_lib_keyboard_flag=yes
13166fi
13167
13168
13169CONF_LIB_SDL=$ac_lib_sdl
13170
13171
13172# Checks for svgawin
13173# Check whether --enable-svgawin was given.
13174if test "${enable_svgawin+set}" = set; then
13175  enableval=$enable_svgawin; ac_lib_svgawin=$enableval
13176else
13177  ac_lib_svgawin=auto
13178
13179fi
13180
13181if test $ac_lib_svgawin = auto; then
13182        if test $ac_system = windows; then
13183                if test $ac_lib_sdl = yes; then
13184                        ac_lib_svgawin=yes
13185                else
13186                        ac_lib_svgawin=no
13187                fi
13188        else
13189                ac_lib_svgawin=no
13190        fi
13191fi
13192if test $ac_lib_svgawin = yes; then
13193        if test ! $ac_system = windows; then
13194                { { echo "$as_me:$LINENO: error: the SVGAWIN library is not supported in this host" >&5
13195echo "$as_me: error: the SVGAWIN library is not supported in this host" >&2;}
13196   { (exit 1); exit 1; }; }
13197        fi
13198        if test $ac_lib_sdl = no; then
13199                { { echo "$as_me:$LINENO: error: the SVGAWIN library requires the SDL library" >&5
13200echo "$as_me: error: the SVGAWIN library requires the SDL library" >&2;}
13201   { (exit 1); exit 1; }; }
13202        fi
13203fi
13204if test $ac_lib_svgawin = yes; then
13205        ac_lib_video="$ac_lib_video svgawin"
13206        ac_lib_direct_flag=yes
13207        ac_lib_video_flag=yes
13208fi
13209CONF_LIB_SVGAWIN=$ac_lib_svgawin
13210
13211
13212# Checks for mrawinput
13213# Check whether --enable-mrawinput was given.
13214if test "${enable_mrawinput+set}" = set; then
13215  enableval=$enable_mrawinput; ac_lib_mrawinput=$enableval
13216else
13217  ac_lib_mrawinput=auto
13218
13219fi
13220
13221if test $ac_lib_mrawinput = auto; then
13222        if test $ac_system = windows; then
13223                ac_lib_mrawinput=yes
13224        else
13225                ac_lib_mrawinput=no
13226        fi
13227fi
13228if test $ac_lib_mrawinput = yes; then
13229        if test ! $ac_system = windows; then
13230                { { echo "$as_me:$LINENO: error: the rawinput library is not supported in this host" >&5
13231echo "$as_me: error: the rawinput library is not supported in this host" >&2;}
13232   { (exit 1); exit 1; }; }
13233        fi
13234fi
13235if test $ac_lib_mrawinput = yes; then
13236        ac_lib_mouse="$ac_lib_mouse rawinput"
13237fi
13238CONF_LIB_MRAWINPUT=$ac_lib_mrawinput
13239
13240
13241# Checks for mcpn
13242# Check whether --enable-mcpn was given.
13243if test "${enable_mcpn+set}" = set; then
13244  enableval=$enable_mcpn; ac_lib_mcpn=$enableval
13245else
13246  ac_lib_mcpn=auto
13247
13248fi
13249
13250if test $ac_lib_mcpn = auto; then
13251        if test $ac_system = windows; then
13252                ac_lib_mcpn=yes
13253        else
13254                ac_lib_mcpn=no
13255        fi
13256fi
13257if test $ac_lib_mcpn = yes; then
13258        if test ! $ac_system = windows; then
13259                { { echo "$as_me:$LINENO: error: the cpn library is not supported in this host" >&5
13260echo "$as_me: error: the cpn library is not supported in this host" >&2;}
13261   { (exit 1); exit 1; }; }
13262        fi
13263fi
13264if test $ac_lib_mcpn = yes; then
13265        ac_lib_mouse="$ac_lib_mouse cpn"
13266fi
13267CONF_LIB_MCPN=$ac_lib_mcpn
13268
13269
13270# Checks for kraw
13271# Check whether --enable-kraw was given.
13272if test "${enable_kraw+set}" = set; then
13273  enableval=$enable_kraw; ac_lib_kraw=$enableval
13274else
13275  ac_lib_kraw=auto
13276
13277fi
13278
13279if test $ac_lib_kraw = auto; then
13280        { echo "$as_me:$LINENO: checking for raw keyboard interface" >&5
13281echo $ECHO_N "checking for raw keyboard interface... $ECHO_C" >&6; }
13282        cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h.  */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h.  */
13288
13289                        #include <sys/kd.h>
13290                        #include <sys/vt.h>
13291                        #include <sys/ioctl.h>
13292                        #include <termios.h>
13293
13294int
13295main ()
13296{
13297
13298                        int dummy0 = K_MEDIUMRAW;
13299                        int dummy1 = VT_ACTIVATE;
13300                        struct termios dummy2;
13301
13302  ;
13303  return 0;
13304}
13305_ACEOF
13306rm -f conftest.$ac_objext
13307if { (ac_try="$ac_compile"
13308case "(($ac_try" in
13309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310  *) ac_try_echo=$ac_try;;
13311esac
13312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313  (eval "$ac_compile") 2>conftest.er1
13314  ac_status=$?
13315  grep -v '^ *+' conftest.er1 >conftest.err
13316  rm -f conftest.er1
13317  cat conftest.err >&5
13318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319  (exit $ac_status); } && {
13320         test -z "$ac_c_werror_flag" ||
13321         test ! -s conftest.err
13322       } && test -s conftest.$ac_objext; then
13323  ac_lib_kraw=yes
13324else
13325  echo "$as_me: failed program was:" >&5
13326sed 's/^/| /' conftest.$ac_ext >&5
13327
13328        ac_lib_kraw=no
13329fi
13330
13331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332        { echo "$as_me:$LINENO: result: $ac_lib_kraw" >&5
13333echo "${ECHO_T}$ac_lib_kraw" >&6; }
13334elif test $ac_lib_kraw = yes; then
13335        { echo "$as_me:$LINENO: checking for raw keyboard interface" >&5
13336echo $ECHO_N "checking for raw keyboard interface... $ECHO_C" >&6; }
13337        cat >conftest.$ac_ext <<_ACEOF
13338/* confdefs.h.  */
13339_ACEOF
13340cat confdefs.h >>conftest.$ac_ext
13341cat >>conftest.$ac_ext <<_ACEOF
13342/* end confdefs.h.  */
13343
13344                        #include <sys/kd.h>
13345                        #include <sys/vt.h>
13346                        #include <sys/ioctl.h>
13347                        #include <termios.h>
13348
13349int
13350main ()
13351{
13352
13353                        int dummy0 = K_MEDIUMRAW;
13354                        int dummy1 = VT_ACTIVATE;
13355                        struct termios dummy2;
13356
13357  ;
13358  return 0;
13359}
13360_ACEOF
13361rm -f conftest.$ac_objext
13362if { (ac_try="$ac_compile"
13363case "(($ac_try" in
13364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365  *) ac_try_echo=$ac_try;;
13366esac
13367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368  (eval "$ac_compile") 2>conftest.er1
13369  ac_status=$?
13370  grep -v '^ *+' conftest.er1 >conftest.err
13371  rm -f conftest.er1
13372  cat conftest.err >&5
13373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374  (exit $ac_status); } && {
13375         test -z "$ac_c_werror_flag" ||
13376         test ! -s conftest.err
13377       } && test -s conftest.$ac_objext; then
13378  :
13379else
13380  echo "$as_me: failed program was:" >&5
13381sed 's/^/| /' conftest.$ac_ext >&5
13382
13383        { { echo "$as_me:$LINENO: error: the KRAW keyboard interface is missing" >&5
13384echo "$as_me: error: the KRAW keyboard interface is missing" >&2;}
13385   { (exit 1); exit 1; }; }
13386fi
13387
13388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13389        { echo "$as_me:$LINENO: result: yes" >&5
13390echo "${ECHO_T}yes" >&6; }
13391fi
13392if test $ac_lib_kraw = yes; then
13393        ac_lib_keyboard="$ac_lib_keyboard raw"
13394        ac_lib_keyboard_flag=yes
13395fi
13396CONF_LIB_KRAW=$ac_lib_kraw
13397
13398
13399# Checks for jraw
13400# Check whether --enable-jraw was given.
13401if test "${enable_jraw+set}" = set; then
13402  enableval=$enable_jraw; ac_lib_jraw=$enableval
13403else
13404  ac_lib_jraw=auto
13405
13406fi
13407
13408if test $ac_lib_jraw = auto; then
13409        { echo "$as_me:$LINENO: checking for raw joystick interface" >&5
13410echo $ECHO_N "checking for raw joystick interface... $ECHO_C" >&6; }
13411        cat >conftest.$ac_ext <<_ACEOF
13412/* confdefs.h.  */
13413_ACEOF
13414cat confdefs.h >>conftest.$ac_ext
13415cat >>conftest.$ac_ext <<_ACEOF
13416/* end confdefs.h.  */
13417
13418                        #include <linux/joystick.h>
13419
13420int
13421main ()
13422{
13423
13424                        #ifndef JS_VERSION
13425                        choke me
13426                        #endif
13427
13428  ;
13429  return 0;
13430}
13431_ACEOF
13432rm -f conftest.$ac_objext
13433if { (ac_try="$ac_compile"
13434case "(($ac_try" in
13435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436  *) ac_try_echo=$ac_try;;
13437esac
13438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13439  (eval "$ac_compile") 2>conftest.er1
13440  ac_status=$?
13441  grep -v '^ *+' conftest.er1 >conftest.err
13442  rm -f conftest.er1
13443  cat conftest.err >&5
13444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445  (exit $ac_status); } && {
13446         test -z "$ac_c_werror_flag" ||
13447         test ! -s conftest.err
13448       } && test -s conftest.$ac_objext; then
13449  ac_lib_jraw=yes
13450else
13451  echo "$as_me: failed program was:" >&5
13452sed 's/^/| /' conftest.$ac_ext >&5
13453
13454        ac_lib_jraw=no
13455fi
13456
13457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458        { echo "$as_me:$LINENO: result: $ac_lib_jraw" >&5
13459echo "${ECHO_T}$ac_lib_jraw" >&6; }
13460elif test $ac_lib_jraw = yes; then
13461        { echo "$as_me:$LINENO: checking for raw joystick interface" >&5
13462echo $ECHO_N "checking for raw joystick interface... $ECHO_C" >&6; }
13463        cat >conftest.$ac_ext <<_ACEOF
13464/* confdefs.h.  */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
13468/* end confdefs.h.  */
13469
13470                        #include <linux/joystick.h>
13471
13472int
13473main ()
13474{
13475
13476                        #ifndef JS_VERSION
13477                        choke me
13478                        #endif
13479
13480  ;
13481  return 0;
13482}
13483_ACEOF
13484rm -f conftest.$ac_objext
13485if { (ac_try="$ac_compile"
13486case "(($ac_try" in
13487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488  *) ac_try_echo=$ac_try;;
13489esac
13490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491  (eval "$ac_compile") 2>conftest.er1
13492  ac_status=$?
13493  grep -v '^ *+' conftest.er1 >conftest.err
13494  rm -f conftest.er1
13495  cat conftest.err >&5
13496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497  (exit $ac_status); } && {
13498         test -z "$ac_c_werror_flag" ||
13499         test ! -s conftest.err
13500       } && test -s conftest.$ac_objext; then
13501  :
13502else
13503  echo "$as_me: failed program was:" >&5
13504sed 's/^/| /' conftest.$ac_ext >&5
13505
13506        { { echo "$as_me:$LINENO: error: the JRAW joystick interface is missing" >&5
13507echo "$as_me: error: the JRAW joystick interface is missing" >&2;}
13508   { (exit 1); exit 1; }; }
13509fi
13510
13511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512        { echo "$as_me:$LINENO: result: yes" >&5
13513echo "${ECHO_T}yes" >&6; }
13514fi
13515if test $ac_lib_jraw = yes; then
13516        ac_lib_joystick="$ac_lib_joystick raw"
13517fi
13518CONF_LIB_JRAW=$ac_lib_jraw
13519
13520
13521# Checks for mraw
13522# Check whether --enable-mraw was given.
13523if test "${enable_mraw+set}" = set; then
13524  enableval=$enable_mraw; ac_lib_mraw=$enableval
13525else
13526  ac_lib_mraw=auto
13527
13528fi
13529
13530if test $ac_lib_mraw = auto; then
13531        { echo "$as_me:$LINENO: checking for raw mouse interface" >&5
13532echo $ECHO_N "checking for raw mouse interface... $ECHO_C" >&6; }
13533        cat >conftest.$ac_ext <<_ACEOF
13534/* confdefs.h.  */
13535_ACEOF
13536cat confdefs.h >>conftest.$ac_ext
13537cat >>conftest.$ac_ext <<_ACEOF
13538/* end confdefs.h.  */
13539
13540                        #include <termios.h>
13541
13542int
13543main ()
13544{
13545
13546                        tcsetattr(0, TCSAFLUSH, 0);
13547
13548  ;
13549  return 0;
13550}
13551_ACEOF
13552rm -f conftest.$ac_objext
13553if { (ac_try="$ac_compile"
13554case "(($ac_try" in
13555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556  *) ac_try_echo=$ac_try;;
13557esac
13558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559  (eval "$ac_compile") 2>conftest.er1
13560  ac_status=$?
13561  grep -v '^ *+' conftest.er1 >conftest.err
13562  rm -f conftest.er1
13563  cat conftest.err >&5
13564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565  (exit $ac_status); } && {
13566         test -z "$ac_c_werror_flag" ||
13567         test ! -s conftest.err
13568       } && test -s conftest.$ac_objext; then
13569  ac_lib_mraw=yes
13570else
13571  echo "$as_me: failed program was:" >&5
13572sed 's/^/| /' conftest.$ac_ext >&5
13573
13574        ac_lib_mraw=no
13575fi
13576
13577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13578        { echo "$as_me:$LINENO: result: $ac_lib_mraw" >&5
13579echo "${ECHO_T}$ac_lib_mraw" >&6; }
13580elif test $ac_lib_mraw = yes; then
13581        { echo "$as_me:$LINENO: checking for raw mouse interface" >&5
13582echo $ECHO_N "checking for raw mouse interface... $ECHO_C" >&6; }
13583        cat >conftest.$ac_ext <<_ACEOF
13584/* confdefs.h.  */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
13588/* end confdefs.h.  */
13589
13590                        #include <termios.h>
13591
13592int
13593main ()
13594{
13595
13596                        tcsetattr(0, TCSAFLUSH, 0);
13597
13598  ;
13599  return 0;
13600}
13601_ACEOF
13602rm -f conftest.$ac_objext
13603if { (ac_try="$ac_compile"
13604case "(($ac_try" in
13605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606  *) ac_try_echo=$ac_try;;
13607esac
13608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609  (eval "$ac_compile") 2>conftest.er1
13610  ac_status=$?
13611  grep -v '^ *+' conftest.er1 >conftest.err
13612  rm -f conftest.er1
13613  cat conftest.err >&5
13614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615  (exit $ac_status); } && {
13616         test -z "$ac_c_werror_flag" ||
13617         test ! -s conftest.err
13618       } && test -s conftest.$ac_objext; then
13619  :
13620else
13621  echo "$as_me: failed program was:" >&5
13622sed 's/^/| /' conftest.$ac_ext >&5
13623
13624        { { echo "$as_me:$LINENO: error: the MRAW mouse interface is missing" >&5
13625echo "$as_me: error: the MRAW mouse interface is missing" >&2;}
13626   { (exit 1); exit 1; }; }
13627fi
13628
13629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630        { echo "$as_me:$LINENO: result: yes" >&5
13631echo "${ECHO_T}yes" >&6; }
13632fi
13633if test $ac_lib_mraw = yes; then
13634        ac_lib_mouse="$ac_lib_mouse raw"
13635fi
13636CONF_LIB_MRAW=$ac_lib_mraw
13637
13638
13639# Checks for mevent
13640# Check whether --enable-mevent was given.
13641if test "${enable_mevent+set}" = set; then
13642  enableval=$enable_mevent; ac_lib_mevent=$enableval
13643else
13644  ac_lib_mevent=auto
13645
13646fi
13647
13648if test $ac_lib_mevent = auto; then
13649        { echo "$as_me:$LINENO: checking for event mouse interface" >&5
13650echo $ECHO_N "checking for event mouse interface... $ECHO_C" >&6; }
13651        cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h.  */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h.  */
13657
13658                        #include <linux/input.h>
13659
13660int
13661main ()
13662{
13663
13664                        int dummy = EVIOCGVERSION;
13665
13666  ;
13667  return 0;
13668}
13669_ACEOF
13670rm -f conftest.$ac_objext
13671if { (ac_try="$ac_compile"
13672case "(($ac_try" in
13673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674  *) ac_try_echo=$ac_try;;
13675esac
13676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677  (eval "$ac_compile") 2>conftest.er1
13678  ac_status=$?
13679  grep -v '^ *+' conftest.er1 >conftest.err
13680  rm -f conftest.er1
13681  cat conftest.err >&5
13682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683  (exit $ac_status); } && {
13684         test -z "$ac_c_werror_flag" ||
13685         test ! -s conftest.err
13686       } && test -s conftest.$ac_objext; then
13687  ac_lib_mevent=yes
13688else
13689  echo "$as_me: failed program was:" >&5
13690sed 's/^/| /' conftest.$ac_ext >&5
13691
13692        ac_lib_mevent=no
13693fi
13694
13695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13696        { echo "$as_me:$LINENO: result: $ac_lib_mevent" >&5
13697echo "${ECHO_T}$ac_lib_mevent" >&6; }
13698elif test $ac_lib_mevent = yes; then
13699        { echo "$as_me:$LINENO: checking for event mouse interface" >&5
13700echo $ECHO_N "checking for event mouse interface... $ECHO_C" >&6; }
13701        cat >conftest.$ac_ext <<_ACEOF
13702/* confdefs.h.  */
13703_ACEOF
13704cat confdefs.h >>conftest.$ac_ext
13705cat >>conftest.$ac_ext <<_ACEOF
13706/* end confdefs.h.  */
13707
13708                        #include <linux/input.h>
13709
13710int
13711main ()
13712{
13713
13714                        int dummy = EVIOCGVERSION;
13715
13716  ;
13717  return 0;
13718}
13719_ACEOF
13720rm -f conftest.$ac_objext
13721if { (ac_try="$ac_compile"
13722case "(($ac_try" in
13723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724  *) ac_try_echo=$ac_try;;
13725esac
13726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727  (eval "$ac_compile") 2>conftest.er1
13728  ac_status=$?
13729  grep -v '^ *+' conftest.er1 >conftest.err
13730  rm -f conftest.er1
13731  cat conftest.err >&5
13732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733  (exit $ac_status); } && {
13734         test -z "$ac_c_werror_flag" ||
13735         test ! -s conftest.err
13736       } && test -s conftest.$ac_objext; then
13737  :
13738else
13739  echo "$as_me: failed program was:" >&5
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
13742        { { echo "$as_me:$LINENO: error: the event mouse interface is missing" >&5
13743echo "$as_me: error: the event mouse interface is missing" >&2;}
13744   { (exit 1); exit 1; }; }
13745fi
13746
13747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748        { echo "$as_me:$LINENO: result: yes" >&5
13749echo "${ECHO_T}yes" >&6; }
13750fi
13751if test $ac_lib_mevent = yes; then
13752        ac_lib_mouse="$ac_lib_mouse event"
13753fi
13754CONF_LIB_MEVENT=$ac_lib_mevent
13755
13756
13757# Checks for kevent
13758# Check whether --enable-kevent was given.
13759if test "${enable_kevent+set}" = set; then
13760  enableval=$enable_kevent; ac_lib_kevent=$enableval
13761else
13762  ac_lib_kevent=auto
13763
13764fi
13765
13766if test $ac_lib_kevent = auto; then
13767        { echo "$as_me:$LINENO: checking for event keyboard interface" >&5
13768echo $ECHO_N "checking for event keyboard interface... $ECHO_C" >&6; }
13769        cat >conftest.$ac_ext <<_ACEOF
13770/* confdefs.h.  */
13771_ACEOF
13772cat confdefs.h >>conftest.$ac_ext
13773cat >>conftest.$ac_ext <<_ACEOF
13774/* end confdefs.h.  */
13775
13776                        #include <linux/input.h>
13777
13778int
13779main ()
13780{
13781
13782                        int dummy = EVIOCGVERSION;
13783
13784  ;
13785  return 0;
13786}
13787_ACEOF
13788rm -f conftest.$ac_objext
13789if { (ac_try="$ac_compile"
13790case "(($ac_try" in
13791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792  *) ac_try_echo=$ac_try;;
13793esac
13794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795  (eval "$ac_compile") 2>conftest.er1
13796  ac_status=$?
13797  grep -v '^ *+' conftest.er1 >conftest.err
13798  rm -f conftest.er1
13799  cat conftest.err >&5
13800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801  (exit $ac_status); } && {
13802         test -z "$ac_c_werror_flag" ||
13803         test ! -s conftest.err
13804       } && test -s conftest.$ac_objext; then
13805  ac_lib_kevent=yes
13806else
13807  echo "$as_me: failed program was:" >&5
13808sed 's/^/| /' conftest.$ac_ext >&5
13809
13810        ac_lib_kevent=no
13811fi
13812
13813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814        { echo "$as_me:$LINENO: result: $ac_lib_kevent" >&5
13815echo "${ECHO_T}$ac_lib_kevent" >&6; }
13816elif test $ac_lib_kevent = yes; then
13817        { echo "$as_me:$LINENO: checking for event keyboard interface" >&5
13818echo $ECHO_N "checking for event keyboard interface... $ECHO_C" >&6; }
13819        cat >conftest.$ac_ext <<_ACEOF
13820/* confdefs.h.  */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
13824/* end confdefs.h.  */
13825
13826                        #include <linux/input.h>
13827
13828int
13829main ()
13830{
13831
13832                        int dummy = EVIOCGVERSION;
13833
13834  ;
13835  return 0;
13836}
13837_ACEOF
13838rm -f conftest.$ac_objext
13839if { (ac_try="$ac_compile"
13840case "(($ac_try" in
13841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842  *) ac_try_echo=$ac_try;;
13843esac
13844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845  (eval "$ac_compile") 2>conftest.er1
13846  ac_status=$?
13847  grep -v '^ *+' conftest.er1 >conftest.err
13848  rm -f conftest.er1
13849  cat conftest.err >&5
13850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851  (exit $ac_status); } && {
13852         test -z "$ac_c_werror_flag" ||
13853         test ! -s conftest.err
13854       } && test -s conftest.$ac_objext; then
13855  :
13856else
13857  echo "$as_me: failed program was:" >&5
13858sed 's/^/| /' conftest.$ac_ext >&5
13859
13860        { { echo "$as_me:$LINENO: error: the event keyboard interface is missing" >&5
13861echo "$as_me: error: the event keyboard interface is missing" >&2;}
13862   { (exit 1); exit 1; }; }
13863fi
13864
13865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866        { echo "$as_me:$LINENO: result: yes" >&5
13867echo "${ECHO_T}yes" >&6; }
13868fi
13869if test $ac_lib_kevent = yes; then
13870        ac_lib_keyboard="$ac_lib_keyboard event"
13871        ac_lib_keyboard_flag=yes
13872fi
13873CONF_LIB_KEVENT=$ac_lib_kevent
13874
13875
13876# Checks for jevent
13877# Check whether --enable-jevent was given.
13878if test "${enable_jevent+set}" = set; then
13879  enableval=$enable_jevent; ac_lib_jevent=$enableval
13880else
13881  ac_lib_jevent=auto
13882
13883fi
13884
13885if test $ac_lib_jevent = auto; then
13886        { echo "$as_me:$LINENO: checking for event joystick interface" >&5
13887echo $ECHO_N "checking for event joystick interface... $ECHO_C" >&6; }
13888        cat >conftest.$ac_ext <<_ACEOF
13889/* confdefs.h.  */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h.  */
13894
13895                        #include <linux/input.h>
13896
13897int
13898main ()
13899{
13900
13901                        int dummy = EVIOCGVERSION;
13902
13903  ;
13904  return 0;
13905}
13906_ACEOF
13907rm -f conftest.$ac_objext
13908if { (ac_try="$ac_compile"
13909case "(($ac_try" in
13910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911  *) ac_try_echo=$ac_try;;
13912esac
13913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914  (eval "$ac_compile") 2>conftest.er1
13915  ac_status=$?
13916  grep -v '^ *+' conftest.er1 >conftest.err
13917  rm -f conftest.er1
13918  cat conftest.err >&5
13919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920  (exit $ac_status); } && {
13921         test -z "$ac_c_werror_flag" ||
13922         test ! -s conftest.err
13923       } && test -s conftest.$ac_objext; then
13924  ac_lib_jevent=yes
13925else
13926  echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929        ac_lib_jevent=no
13930fi
13931
13932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933        { echo "$as_me:$LINENO: result: $ac_lib_jevent" >&5
13934echo "${ECHO_T}$ac_lib_jevent" >&6; }
13935elif test $ac_lib_jevent = yes; then
13936        { echo "$as_me:$LINENO: checking for event joystick interface" >&5
13937echo $ECHO_N "checking for event joystick interface... $ECHO_C" >&6; }
13938        cat >conftest.$ac_ext <<_ACEOF
13939/* confdefs.h.  */
13940_ACEOF
13941cat confdefs.h >>conftest.$ac_ext
13942cat >>conftest.$ac_ext <<_ACEOF
13943/* end confdefs.h.  */
13944
13945                        #include <linux/input.h>
13946
13947int
13948main ()
13949{
13950
13951                        int dummy = EVIOCGVERSION;
13952
13953  ;
13954  return 0;
13955}
13956_ACEOF
13957rm -f conftest.$ac_objext
13958if { (ac_try="$ac_compile"
13959case "(($ac_try" in
13960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961  *) ac_try_echo=$ac_try;;
13962esac
13963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964  (eval "$ac_compile") 2>conftest.er1
13965  ac_status=$?
13966  grep -v '^ *+' conftest.er1 >conftest.err
13967  rm -f conftest.er1
13968  cat conftest.err >&5
13969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970  (exit $ac_status); } && {
13971         test -z "$ac_c_werror_flag" ||
13972         test ! -s conftest.err
13973       } && test -s conftest.$ac_objext; then
13974  :
13975else
13976  echo "$as_me: failed program was:" >&5
13977sed 's/^/| /' conftest.$ac_ext >&5
13978
13979        { { echo "$as_me:$LINENO: error: the event joystick interface is missing" >&5
13980echo "$as_me: error: the event joystick interface is missing" >&2;}
13981   { (exit 1); exit 1; }; }
13982fi
13983
13984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985        { echo "$as_me:$LINENO: result: yes" >&5
13986echo "${ECHO_T}yes" >&6; }
13987fi
13988if test $ac_lib_jevent = yes; then
13989        ac_lib_joystick="$ac_lib_joystick event"
13990fi
13991CONF_LIB_JEVENT=$ac_lib_jevent
13992
13993
13994# Final
13995CONF_LIB_DIRECT=$ac_lib_direct_flag
13996
13997ac_config_files="$ac_config_files Makefile"
13998
13999cat >confcache <<\_ACEOF
14000# This file is a shell script that caches the results of configure
14001# tests run on this system so they can be shared between configure
14002# scripts and configure runs, see configure's option --config-cache.
14003# It is not useful on other systems.  If it contains results you don't
14004# want to keep, you may remove or edit it.
14005#
14006# config.status only pays attention to the cache file if you give it
14007# the --recheck option to rerun configure.
14008#
14009# `ac_cv_env_foo' variables (set or unset) will be overridden when
14010# loading this file, other *unset* `ac_cv_foo' will be assigned the
14011# following values.
14012
14013_ACEOF
14014
14015# The following way of writing the cache mishandles newlines in values,
14016# but we know of no workaround that is simple, portable, and efficient.
14017# So, we kill variables containing newlines.
14018# Ultrix sh set writes to stderr and can't be redirected directly,
14019# and sets the high bit in the cache file unless we assign to the vars.
14020(
14021  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14022    eval ac_val=\$$ac_var
14023    case $ac_val in #(
14024    *${as_nl}*)
14025      case $ac_var in #(
14026      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14027echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14028      esac
14029      case $ac_var in #(
14030      _ | IFS | as_nl) ;; #(
14031      *) $as_unset $ac_var ;;
14032      esac ;;
14033    esac
14034  done
14035
14036  (set) 2>&1 |
14037    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14038    *${as_nl}ac_space=\ *)
14039      # `set' does not quote correctly, so add quotes (double-quote
14040      # substitution turns \\\\ into \\, and sed turns \\ into \).
14041      sed -n \
14042        "s/'/'\\\\''/g;
14043          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14044      ;; #(
14045    *)
14046      # `set' quotes correctly as required by POSIX, so do not add quotes.
14047      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14048      ;;
14049    esac |
14050    sort
14051) |
14052  sed '
14053     /^ac_cv_env_/b end
14054     t clear
14055     :clear
14056     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14057     t end
14058     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14059     :end' >>confcache
14060if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14061  if test -w "$cache_file"; then
14062    test "x$cache_file" != "x/dev/null" &&
14063      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14064echo "$as_me: updating cache $cache_file" >&6;}
14065    cat confcache >$cache_file
14066  else
14067    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14068echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14069  fi
14070fi
14071rm -f confcache
14072
14073test "x$prefix" = xNONE && prefix=$ac_default_prefix
14074# Let make expand exec_prefix.
14075test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14076
14077DEFS=-DHAVE_CONFIG_H
14078
14079ac_libobjs=
14080ac_ltlibobjs=
14081for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14082  # 1. Remove the extension, and $U if already installed.
14083  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14084  ac_i=`echo "$ac_i" | sed "$ac_script"`
14085  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14086  #    will be set to the directory where LIBOBJS objects are built.
14087  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14088  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14089done
14090LIBOBJS=$ac_libobjs
14091
14092LTLIBOBJS=$ac_ltlibobjs
14093
14094
14095
14096: ${CONFIG_STATUS=./config.status}
14097ac_clean_files_save=$ac_clean_files
14098ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14099{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14100echo "$as_me: creating $CONFIG_STATUS" >&6;}
14101cat >$CONFIG_STATUS <<_ACEOF
14102#! $SHELL
14103# Generated by $as_me.
14104# Run this file to recreate the current configuration.
14105# Compiler output produced by configure, useful for debugging
14106# configure, is in config.log if it exists.
14107
14108debug=false
14109ac_cs_recheck=false
14110ac_cs_silent=false
14111SHELL=\${CONFIG_SHELL-$SHELL}
14112_ACEOF
14113
14114cat >>$CONFIG_STATUS <<\_ACEOF
14115## --------------------- ##
14116## M4sh Initialization.  ##
14117## --------------------- ##
14118
14119# Be more Bourne compatible
14120DUALCASE=1; export DUALCASE # for MKS sh
14121if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14122  emulate sh
14123  NULLCMD=:
14124  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14125  # is contrary to our usage.  Disable this feature.
14126  alias -g '${1+"$@"}'='"$@"'
14127  setopt NO_GLOB_SUBST
14128else
14129  case `(set -o) 2>/dev/null` in
14130  *posix*) set -o posix ;;
14131esac
14132
14133fi
14134
14135
14136
14137
14138# PATH needs CR
14139# Avoid depending upon Character Ranges.
14140as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14141as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14142as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14143as_cr_digits='0123456789'
14144as_cr_alnum=$as_cr_Letters$as_cr_digits
14145
14146# The user is always right.
14147if test "${PATH_SEPARATOR+set}" != set; then
14148  echo "#! /bin/sh" >conf$$.sh
14149  echo  "exit 0"   >>conf$$.sh
14150  chmod +x conf$$.sh
14151  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14152    PATH_SEPARATOR=';'
14153  else
14154    PATH_SEPARATOR=:
14155  fi
14156  rm -f conf$$.sh
14157fi
14158
14159# Support unset when possible.
14160if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14161  as_unset=unset
14162else
14163  as_unset=false
14164fi
14165
14166
14167# IFS
14168# We need space, tab and new line, in precisely that order.  Quoting is
14169# there to prevent editors from complaining about space-tab.
14170# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14171# splitting by setting IFS to empty value.)
14172as_nl='
14173'
14174IFS=" ""        $as_nl"
14175
14176# Find who we are.  Look in the path if we contain no directory separator.
14177case $0 in
14178  *[\\/]* ) as_myself=$0 ;;
14179  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14180for as_dir in $PATH
14181do
14182  IFS=$as_save_IFS
14183  test -z "$as_dir" && as_dir=.
14184  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14185done
14186IFS=$as_save_IFS
14187
14188     ;;
14189esac
14190# We did not find ourselves, most probably we were run as `sh COMMAND'
14191# in which case we are not to be found in the path.
14192if test "x$as_myself" = x; then
14193  as_myself=$0
14194fi
14195if test ! -f "$as_myself"; then
14196  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14197  { (exit 1); exit 1; }
14198fi
14199
14200# Work around bugs in pre-3.0 UWIN ksh.
14201for as_var in ENV MAIL MAILPATH
14202do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14203done
14204PS1='$ '
14205PS2='> '
14206PS4='+ '
14207
14208# NLS nuisances.
14209for as_var in \
14210  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14211  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14212  LC_TELEPHONE LC_TIME
14213do
14214  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14215    eval $as_var=C; export $as_var
14216  else
14217    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14218  fi
14219done
14220
14221# Required to use basename.
14222if expr a : '\(a\)' >/dev/null 2>&1 &&
14223   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14224  as_expr=expr
14225else
14226  as_expr=false
14227fi
14228
14229if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14230  as_basename=basename
14231else
14232  as_basename=false
14233fi
14234
14235
14236# Name of the executable.
14237as_me=`$as_basename -- "$0" ||
14238$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14239         X"$0" : 'X\(//\)$' \| \
14240         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14241echo X/"$0" |
14242    sed '/^.*\/\([^/][^/]*\)\/*$/{
14243            s//\1/
14244            q
14245          }
14246          /^X\/\(\/\/\)$/{
14247            s//\1/
14248            q
14249          }
14250          /^X\/\(\/\).*/{
14251            s//\1/
14252            q
14253          }
14254          s/.*/./; q'`
14255
14256# CDPATH.
14257$as_unset CDPATH
14258
14259
14260
14261  as_lineno_1=$LINENO
14262  as_lineno_2=$LINENO
14263  test "x$as_lineno_1" != "x$as_lineno_2" &&
14264  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14265
14266  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14267  # uniformly replaced by the line number.  The first 'sed' inserts a
14268  # line-number line after each line using $LINENO; the second 'sed'
14269  # does the real work.  The second script uses 'N' to pair each
14270  # line-number line with the line containing $LINENO, and appends
14271  # trailing '-' during substitution so that $LINENO is not a special
14272  # case at line end.
14273  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14274  # scripts with optimization help from Paolo Bonzini.  Blame Lee
14275  # E. McMahon (1931-1989) for sed's syntax.  :-)
14276  sed -n '
14277    p
14278    /[$]LINENO/=
14279  ' <$as_myself |
14280    sed '
14281      s/[$]LINENO.*/&-/
14282      t lineno
14283      b
14284      :lineno
14285      N
14286      :loop
14287      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14288      t loop
14289      s/-\n.*//
14290    ' >$as_me.lineno &&
14291  chmod +x "$as_me.lineno" ||
14292    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14293   { (exit 1); exit 1; }; }
14294
14295  # Don't try to exec as it changes $[0], causing all sort of problems
14296  # (the dirname of $[0] is not the place where we might find the
14297  # original and so on.  Autoconf is especially sensitive to this).
14298  . "./$as_me.lineno"
14299  # Exit status is that of the last command.
14300  exit
14301}
14302
14303
14304if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14305  as_dirname=dirname
14306else
14307  as_dirname=false
14308fi
14309
14310ECHO_C= ECHO_N= ECHO_T=
14311case `echo -n x` in
14312-n*)
14313  case `echo 'x\c'` in
14314  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14315  *)   ECHO_C='\c';;
14316  esac;;
14317*)
14318  ECHO_N='-n';;
14319esac
14320
14321if expr a : '\(a\)' >/dev/null 2>&1 &&
14322   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14323  as_expr=expr
14324else
14325  as_expr=false
14326fi
14327
14328rm -f conf$$ conf$$.exe conf$$.file
14329if test -d conf$$.dir; then
14330  rm -f conf$$.dir/conf$$.file
14331else
14332  rm -f conf$$.dir
14333  mkdir conf$$.dir
14334fi
14335echo >conf$$.file
14336if ln -s conf$$.file conf$$ 2>/dev/null; then
14337  as_ln_s='ln -s'
14338  # ... but there are two gotchas:
14339  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14340  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14341  # In both cases, we have to default to `cp -p'.
14342  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14343    as_ln_s='cp -p'
14344elif ln conf$$.file conf$$ 2>/dev/null; then
14345  as_ln_s=ln
14346else
14347  as_ln_s='cp -p'
14348fi
14349rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14350rmdir conf$$.dir 2>/dev/null
14351
14352if mkdir -p . 2>/dev/null; then
14353  as_mkdir_p=:
14354else
14355  test -d ./-p && rmdir ./-p
14356  as_mkdir_p=false
14357fi
14358
14359if test -x / >/dev/null 2>&1; then
14360  as_test_x='test -x'
14361else
14362  if ls -dL / >/dev/null 2>&1; then
14363    as_ls_L_option=L
14364  else
14365    as_ls_L_option=
14366  fi
14367  as_test_x='
14368    eval sh -c '\''
14369      if test -d "$1"; then
14370        test -d "$1/.";
14371      else
14372        case $1 in
14373        -*)set "./$1";;
14374        esac;
14375        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14376        ???[sx]*):;;*)false;;esac;fi
14377    '\'' sh
14378  '
14379fi
14380as_executable_p=$as_test_x
14381
14382# Sed expression to map a string onto a valid CPP name.
14383as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14384
14385# Sed expression to map a string onto a valid variable name.
14386as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14387
14388
14389exec 6>&1
14390
14391# Save the log message, to keep $[0] and so on meaningful, and to
14392# report actual input values of CONFIG_FILES etc. instead of their
14393# values after options handling.
14394ac_log="
14395This file was extended by advance $as_me source, which was
14396generated by GNU Autoconf 2.61.  Invocation command line was
14397
14398  CONFIG_FILES    = $CONFIG_FILES
14399  CONFIG_HEADERS  = $CONFIG_HEADERS
14400  CONFIG_LINKS    = $CONFIG_LINKS
14401  CONFIG_COMMANDS = $CONFIG_COMMANDS
14402  $ $0 $@
14403
14404on `(hostname || uname -n) 2>/dev/null | sed 1q`
14405"
14406
14407_ACEOF
14408
14409cat >>$CONFIG_STATUS <<_ACEOF
14410# Files that config.status was made for.
14411config_files="$ac_config_files"
14412config_headers="$ac_config_headers"
14413
14414_ACEOF
14415
14416cat >>$CONFIG_STATUS <<\_ACEOF
14417ac_cs_usage="\
14418\`$as_me' instantiates files from templates according to the
14419current configuration.
14420
14421Usage: $0 [OPTIONS] [FILE]...
14422
14423  -h, --help       print this help, then exit
14424  -V, --version    print version number and configuration settings, then exit
14425  -q, --quiet      do not print progress messages
14426  -d, --debug      don't remove temporary files
14427      --recheck    update $as_me by reconfiguring in the same conditions
14428  --file=FILE[:TEMPLATE]
14429                   instantiate the configuration file FILE
14430  --header=FILE[:TEMPLATE]
14431                   instantiate the configuration header FILE
14432
14433Configuration files:
14434$config_files
14435
14436Configuration headers:
14437$config_headers
14438
14439Report bugs to <bug-autoconf@gnu.org>."
14440
14441_ACEOF
14442cat >>$CONFIG_STATUS <<_ACEOF
14443ac_cs_version="\\
14444advance config.status source
14445configured by $0, generated by GNU Autoconf 2.61,
14446  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14447
14448Copyright (C) 2006 Free Software Foundation, Inc.
14449This config.status script is free software; the Free Software Foundation
14450gives unlimited permission to copy, distribute and modify it."
14451
14452ac_pwd='$ac_pwd'
14453srcdir='$srcdir'
14454INSTALL='$INSTALL'
14455_ACEOF
14456
14457cat >>$CONFIG_STATUS <<\_ACEOF
14458# If no file are specified by the user, then we need to provide default
14459# value.  By we need to know if files were specified by the user.
14460ac_need_defaults=:
14461while test $# != 0
14462do
14463  case $1 in
14464  --*=*)
14465    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14466    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14467    ac_shift=:
14468    ;;
14469  *)
14470    ac_option=$1
14471    ac_optarg=$2
14472    ac_shift=shift
14473    ;;
14474  esac
14475
14476  case $ac_option in
14477  # Handling of the options.
14478  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14479    ac_cs_recheck=: ;;
14480  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14481    echo "$ac_cs_version"; exit ;;
14482  --debug | --debu | --deb | --de | --d | -d )
14483    debug=: ;;
14484  --file | --fil | --fi | --f )
14485    $ac_shift
14486    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14487    ac_need_defaults=false;;
14488  --header | --heade | --head | --hea )
14489    $ac_shift
14490    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14491    ac_need_defaults=false;;
14492  --he | --h)
14493    # Conflict between --help and --header
14494    { echo "$as_me: error: ambiguous option: $1
14495Try \`$0 --help' for more information." >&2
14496   { (exit 1); exit 1; }; };;
14497  --help | --hel | -h )
14498    echo "$ac_cs_usage"; exit ;;
14499  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14500  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14501    ac_cs_silent=: ;;
14502
14503  # This is an error.
14504  -*) { echo "$as_me: error: unrecognized option: $1
14505Try \`$0 --help' for more information." >&2
14506   { (exit 1); exit 1; }; } ;;
14507
14508  *) ac_config_targets="$ac_config_targets $1"
14509     ac_need_defaults=false ;;
14510
14511  esac
14512  shift
14513done
14514
14515ac_configure_extra_args=
14516
14517if $ac_cs_silent; then
14518  exec 6>/dev/null
14519  ac_configure_extra_args="$ac_configure_extra_args --silent"
14520fi
14521
14522_ACEOF
14523cat >>$CONFIG_STATUS <<_ACEOF
14524if \$ac_cs_recheck; then
14525  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14526  CONFIG_SHELL=$SHELL
14527  export CONFIG_SHELL
14528  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14529fi
14530
14531_ACEOF
14532cat >>$CONFIG_STATUS <<\_ACEOF
14533exec 5>>config.log
14534{
14535  echo
14536  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14537## Running $as_me. ##
14538_ASBOX
14539  echo "$ac_log"
14540} >&5
14541
14542_ACEOF
14543cat >>$CONFIG_STATUS <<_ACEOF
14544_ACEOF
14545
14546cat >>$CONFIG_STATUS <<\_ACEOF
14547
14548# Handling of arguments.
14549for ac_config_target in $ac_config_targets
14550do
14551  case $ac_config_target in
14552    "advance/lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS advance/lib/config.h:advance/lib/config.hin" ;;
14553    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14554
14555  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14556echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14557   { (exit 1); exit 1; }; };;
14558  esac
14559done
14560
14561
14562# If the user did not use the arguments to specify the items to instantiate,
14563# then the envvar interface is used.  Set only those that are not.
14564# We use the long form for the default assignment because of an extremely
14565# bizarre bug on SunOS 4.1.3.
14566if $ac_need_defaults; then
14567  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14568  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14569fi
14570
14571# Have a temporary directory for convenience.  Make it in the build tree
14572# simply because there is no reason against having it here, and in addition,
14573# creating and moving files from /tmp can sometimes cause problems.
14574# Hook for its removal unless debugging.
14575# Note that there is a small window in which the directory will not be cleaned:
14576# after its creation but before its name has been assigned to `$tmp'.
14577$debug ||
14578{
14579  tmp=
14580  trap 'exit_status=$?
14581  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14582' 0
14583  trap '{ (exit 1); exit 1; }' 1 2 13 15
14584}
14585# Create a (secure) tmp directory for tmp files.
14586
14587{
14588  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14589  test -n "$tmp" && test -d "$tmp"
14590}  ||
14591{
14592  tmp=./conf$$-$RANDOM
14593  (umask 077 && mkdir "$tmp")
14594} ||
14595{
14596   echo "$me: cannot create a temporary directory in ." >&2
14597   { (exit 1); exit 1; }
14598}
14599
14600#
14601# Set up the sed scripts for CONFIG_FILES section.
14602#
14603
14604# No need to generate the scripts if there are no CONFIG_FILES.
14605# This happens for instance when ./config.status config.h
14606if test -n "$CONFIG_FILES"; then
14607
14608_ACEOF
14609
14610
14611
14612ac_delim='%!_!# '
14613for ac_last_try in false false false false false :; do
14614  cat >conf$$subs.sed <<_ACEOF
14615SHELL!$SHELL$ac_delim
14616PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14617PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14618PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14619PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14620PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14621PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14622exec_prefix!$exec_prefix$ac_delim
14623prefix!$prefix$ac_delim
14624program_transform_name!$program_transform_name$ac_delim
14625bindir!$bindir$ac_delim
14626sbindir!$sbindir$ac_delim
14627libexecdir!$libexecdir$ac_delim
14628datarootdir!$datarootdir$ac_delim
14629datadir!$datadir$ac_delim
14630sysconfdir!$sysconfdir$ac_delim
14631sharedstatedir!$sharedstatedir$ac_delim
14632localstatedir!$localstatedir$ac_delim
14633includedir!$includedir$ac_delim
14634oldincludedir!$oldincludedir$ac_delim
14635docdir!$docdir$ac_delim
14636infodir!$infodir$ac_delim
14637htmldir!$htmldir$ac_delim
14638dvidir!$dvidir$ac_delim
14639pdfdir!$pdfdir$ac_delim
14640psdir!$psdir$ac_delim
14641libdir!$libdir$ac_delim
14642localedir!$localedir$ac_delim
14643mandir!$mandir$ac_delim
14644DEFS!$DEFS$ac_delim
14645ECHO_C!$ECHO_C$ac_delim
14646ECHO_N!$ECHO_N$ac_delim
14647ECHO_T!$ECHO_T$ac_delim
14648LIBS!$LIBS$ac_delim
14649build_alias!$build_alias$ac_delim
14650host_alias!$host_alias$ac_delim
14651target_alias!$target_alias$ac_delim
14652build!$build$ac_delim
14653build_cpu!$build_cpu$ac_delim
14654build_vendor!$build_vendor$ac_delim
14655build_os!$build_os$ac_delim
14656host!$host$ac_delim
14657host_cpu!$host_cpu$ac_delim
14658host_vendor!$host_vendor$ac_delim
14659host_os!$host_os$ac_delim
14660ASMFLAGS!$ASMFLAGS$ac_delim
14661CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
14662EXE!$EXE$ac_delim
14663CONF_SYSTEM!$CONF_SYSTEM$ac_delim
14664CONF_HOST!$CONF_HOST$ac_delim
14665EXE_FOR_BUILD!$EXE_FOR_BUILD$ac_delim
14666CONF_BUILD!$CONF_BUILD$ac_delim
14667CC!$CC$ac_delim
14668CFLAGS!$CFLAGS$ac_delim
14669LDFLAGS!$LDFLAGS$ac_delim
14670CPPFLAGS!$CPPFLAGS$ac_delim
14671ac_ct_CC!$ac_ct_CC$ac_delim
14672EXEEXT!$EXEEXT$ac_delim
14673OBJEXT!$OBJEXT$ac_delim
14674CXX!$CXX$ac_delim
14675CXXFLAGS!$CXXFLAGS$ac_delim
14676ac_ct_CXX!$ac_ct_CXX$ac_delim
14677INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14678INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14679INSTALL_DATA!$INSTALL_DATA$ac_delim
14680LN_S!$LN_S$ac_delim
14681AR!$AR$ac_delim
14682ac_ct_AR!$ac_ct_AR$ac_delim
14683RC!$RC$ac_delim
14684ac_ct_RC!$ac_ct_RC$ac_delim
14685RM!$RM$ac_delim
14686CP!$CP$ac_delim
14687MKDIR!$MKDIR$ac_delim
14688ECHO!$ECHO$ac_delim
14689TAR!$TAR$ac_delim
14690GZIP!$GZIP$ac_delim
14691ZIP!$ZIP$ac_delim
14692CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
14693CXX_FOR_BUILD!$CXX_FOR_BUILD$ac_delim
14694CONF_DEBUG!$CONF_DEBUG$ac_delim
14695CONF_CFLAGS_OPT!$CONF_CFLAGS_OPT$ac_delim
14696CONF_LDFLAGS!$CONF_LDFLAGS$ac_delim
14697CPP!$CPP$ac_delim
14698GREP!$GREP$ac_delim
14699EGREP!$EGREP$ac_delim
14700ASM!$ASM$ac_delim
14701CONF_CFLAGS_ARCH!$CONF_CFLAGS_ARCH$ac_delim
14702CONF_EMU!$CONF_EMU$ac_delim
14703CONF_DEBUGGER!$CONF_DEBUGGER$ac_delim
14704ALLOCA!$ALLOCA$ac_delim
14705CONF_LIB_ZLIB!$CONF_LIB_ZLIB$ac_delim
14706CONF_LIB_EXPAT!$CONF_LIB_EXPAT$ac_delim
14707CONF_LIB_SVGALIB!$CONF_LIB_SVGALIB$ac_delim
14708CONF_LIB_FB!$CONF_LIB_FB$ac_delim
14709CONF_LIB_ALSA!$CONF_LIB_ALSA$ac_delim
14710CONF_LIB_OSS!$CONF_LIB_OSS$ac_delim
14711CONF_LIB_PTHREAD!$CONF_LIB_PTHREAD$ac_delim
14712_ACEOF
14713
14714  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14715    break
14716  elif $ac_last_try; then
14717    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14718echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14719   { (exit 1); exit 1; }; }
14720  else
14721    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14722  fi
14723done
14724
14725ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14726if test -n "$ac_eof"; then
14727  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14728  ac_eof=`expr $ac_eof + 1`
14729fi
14730
14731cat >>$CONFIG_STATUS <<_ACEOF
14732cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14733/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14734_ACEOF
14735sed '
14736s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14737s/^/s,@/; s/!/@,|#_!!_#|/
14738:n
14739t n
14740s/'"$ac_delim"'$/,g/; t
14741s/$/\\/; p
14742N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14743' >>$CONFIG_STATUS <conf$$subs.sed
14744rm -f conf$$subs.sed
14745cat >>$CONFIG_STATUS <<_ACEOF
14746CEOF$ac_eof
14747_ACEOF
14748
14749
14750ac_delim='%!_!# '
14751for ac_last_try in false false false false false :; do
14752  cat >conf$$subs.sed <<_ACEOF
14753CONF_LIB_SLANG!$CONF_LIB_SLANG$ac_delim
14754CONF_LIB_NCURSES!$CONF_LIB_NCURSES$ac_delim
14755ac_lib_freetype_config!$ac_lib_freetype_config$ac_delim
14756FREETYPECFLAGS!$FREETYPECFLAGS$ac_delim
14757FREETYPELIBS!$FREETYPELIBS$ac_delim
14758CONF_LIB_FREETYPE!$CONF_LIB_FREETYPE$ac_delim
14759ac_lib_sdl_config!$ac_lib_sdl_config$ac_delim
14760SDLCFLAGS!$SDLCFLAGS$ac_delim
14761SDLLIBS!$SDLLIBS$ac_delim
14762CONF_LIB_SDL!$CONF_LIB_SDL$ac_delim
14763CONF_LIB_SVGAWIN!$CONF_LIB_SVGAWIN$ac_delim
14764CONF_LIB_MRAWINPUT!$CONF_LIB_MRAWINPUT$ac_delim
14765CONF_LIB_MCPN!$CONF_LIB_MCPN$ac_delim
14766CONF_LIB_KRAW!$CONF_LIB_KRAW$ac_delim
14767CONF_LIB_JRAW!$CONF_LIB_JRAW$ac_delim
14768CONF_LIB_MRAW!$CONF_LIB_MRAW$ac_delim
14769CONF_LIB_MEVENT!$CONF_LIB_MEVENT$ac_delim
14770CONF_LIB_KEVENT!$CONF_LIB_KEVENT$ac_delim
14771CONF_LIB_JEVENT!$CONF_LIB_JEVENT$ac_delim
14772CONF_LIB_DIRECT!$CONF_LIB_DIRECT$ac_delim
14773LIBOBJS!$LIBOBJS$ac_delim
14774LTLIBOBJS!$LTLIBOBJS$ac_delim
14775_ACEOF
14776
14777  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
14778    break
14779  elif $ac_last_try; then
14780    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14781echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14782   { (exit 1); exit 1; }; }
14783  else
14784    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14785  fi
14786done
14787
14788ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14789if test -n "$ac_eof"; then
14790  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14791  ac_eof=`expr $ac_eof + 1`
14792fi
14793
14794cat >>$CONFIG_STATUS <<_ACEOF
14795cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14796/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14797_ACEOF
14798sed '
14799s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14800s/^/s,@/; s/!/@,|#_!!_#|/
14801:n
14802t n
14803s/'"$ac_delim"'$/,g/; t
14804s/$/\\/; p
14805N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14806' >>$CONFIG_STATUS <conf$$subs.sed
14807rm -f conf$$subs.sed
14808cat >>$CONFIG_STATUS <<_ACEOF
14809:end
14810s/|#_!!_#|//g
14811CEOF$ac_eof
14812_ACEOF
14813
14814
14815# VPATH may cause trouble with some makes, so we remove $(srcdir),
14816# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14817# trailing colons and then remove the whole line if VPATH becomes empty
14818# (actually we leave an empty line to preserve line numbers).
14819if test "x$srcdir" = x.; then
14820  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14821s/:*\$(srcdir):*/:/
14822s/:*\${srcdir}:*/:/
14823s/:*@srcdir@:*/:/
14824s/^\([^=]*=[     ]*\):*/\1/
14825s/:*$//
14826s/^[^=]*=[       ]*$//
14827}'
14828fi
14829
14830cat >>$CONFIG_STATUS <<\_ACEOF
14831fi # test -n "$CONFIG_FILES"
14832
14833
14834for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
14835do
14836  case $ac_tag in
14837  :[FHLC]) ac_mode=$ac_tag; continue;;
14838  esac
14839  case $ac_mode$ac_tag in
14840  :[FHL]*:*);;
14841  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14842echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14843   { (exit 1); exit 1; }; };;
14844  :[FH]-) ac_tag=-:-;;
14845  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14846  esac
14847  ac_save_IFS=$IFS
14848  IFS=:
14849  set x $ac_tag
14850  IFS=$ac_save_IFS
14851  shift
14852  ac_file=$1
14853  shift
14854
14855  case $ac_mode in
14856  :L) ac_source=$1;;
14857  :[FH])
14858    ac_file_inputs=
14859    for ac_f
14860    do
14861      case $ac_f in
14862      -) ac_f="$tmp/stdin";;
14863      *) # Look for the file first in the build tree, then in the source tree
14864         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14865         # because $ac_f cannot contain `:'.
14866         test -f "$ac_f" ||
14867           case $ac_f in
14868           [\\/$]*) false;;
14869           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14870           esac ||
14871           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14872echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14873   { (exit 1); exit 1; }; };;
14874      esac
14875      ac_file_inputs="$ac_file_inputs $ac_f"
14876    done
14877
14878    # Let's still pretend it is `configure' which instantiates (i.e., don't
14879    # use $as_me), people would be surprised to read:
14880    #    /* config.h.  Generated by config.status.  */
14881    configure_input="Generated from "`IFS=:
14882          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14883    if test x"$ac_file" != x-; then
14884      configure_input="$ac_file.  $configure_input"
14885      { echo "$as_me:$LINENO: creating $ac_file" >&5
14886echo "$as_me: creating $ac_file" >&6;}
14887    fi
14888
14889    case $ac_tag in
14890    *:-:* | *:-) cat >"$tmp/stdin";;
14891    esac
14892    ;;
14893  esac
14894
14895  ac_dir=`$as_dirname -- "$ac_file" ||
14896$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14897         X"$ac_file" : 'X\(//\)[^/]' \| \
14898         X"$ac_file" : 'X\(//\)$' \| \
14899         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14900echo X"$ac_file" |
14901    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14902            s//\1/
14903            q
14904          }
14905          /^X\(\/\/\)[^/].*/{
14906            s//\1/
14907            q
14908          }
14909          /^X\(\/\/\)$/{
14910            s//\1/
14911            q
14912          }
14913          /^X\(\/\).*/{
14914            s//\1/
14915            q
14916          }
14917          s/.*/./; q'`
14918  { as_dir="$ac_dir"
14919  case $as_dir in #(
14920  -*) as_dir=./$as_dir;;
14921  esac
14922  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14923    as_dirs=
14924    while :; do
14925      case $as_dir in #(
14926      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14927      *) as_qdir=$as_dir;;
14928      esac
14929      as_dirs="'$as_qdir' $as_dirs"
14930      as_dir=`$as_dirname -- "$as_dir" ||
14931$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14932         X"$as_dir" : 'X\(//\)[^/]' \| \
14933         X"$as_dir" : 'X\(//\)$' \| \
14934         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14935echo X"$as_dir" |
14936    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14937            s//\1/
14938            q
14939          }
14940          /^X\(\/\/\)[^/].*/{
14941            s//\1/
14942            q
14943          }
14944          /^X\(\/\/\)$/{
14945            s//\1/
14946            q
14947          }
14948          /^X\(\/\).*/{
14949            s//\1/
14950            q
14951          }
14952          s/.*/./; q'`
14953      test -d "$as_dir" && break
14954    done
14955    test -z "$as_dirs" || eval "mkdir $as_dirs"
14956  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14957echo "$as_me: error: cannot create directory $as_dir" >&2;}
14958   { (exit 1); exit 1; }; }; }
14959  ac_builddir=.
14960
14961case "$ac_dir" in
14962.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14963*)
14964  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14965  # A ".." for each directory in $ac_dir_suffix.
14966  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14967  case $ac_top_builddir_sub in
14968  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14969  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14970  esac ;;
14971esac
14972ac_abs_top_builddir=$ac_pwd
14973ac_abs_builddir=$ac_pwd$ac_dir_suffix
14974# for backward compatibility:
14975ac_top_builddir=$ac_top_build_prefix
14976
14977case $srcdir in
14978  .)  # We are building in place.
14979    ac_srcdir=.
14980    ac_top_srcdir=$ac_top_builddir_sub
14981    ac_abs_top_srcdir=$ac_pwd ;;
14982  [\\/]* | ?:[\\/]* )  # Absolute name.
14983    ac_srcdir=$srcdir$ac_dir_suffix;
14984    ac_top_srcdir=$srcdir
14985    ac_abs_top_srcdir=$srcdir ;;
14986  *) # Relative name.
14987    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14988    ac_top_srcdir=$ac_top_build_prefix$srcdir
14989    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14990esac
14991ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14992
14993
14994  case $ac_mode in
14995  :F)
14996  #
14997  # CONFIG_FILE
14998  #
14999
15000  case $INSTALL in
15001  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15002  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15003  esac
15004_ACEOF
15005
15006cat >>$CONFIG_STATUS <<\_ACEOF
15007# If the template does not know about datarootdir, expand it.
15008# FIXME: This hack should be removed a few years after 2.60.
15009ac_datarootdir_hack=; ac_datarootdir_seen=
15010
15011case `sed -n '/datarootdir/ {
15012  p
15013  q
15014}
15015/@datadir@/p
15016/@docdir@/p
15017/@infodir@/p
15018/@localedir@/p
15019/@mandir@/p
15020' $ac_file_inputs` in
15021*datarootdir*) ac_datarootdir_seen=yes;;
15022*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15023  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15024echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15025_ACEOF
15026cat >>$CONFIG_STATUS <<_ACEOF
15027  ac_datarootdir_hack='
15028  s&@datadir@&$datadir&g
15029  s&@docdir@&$docdir&g
15030  s&@infodir@&$infodir&g
15031  s&@localedir@&$localedir&g
15032  s&@mandir@&$mandir&g
15033    s&\\\${datarootdir}&$datarootdir&g' ;;
15034esac
15035_ACEOF
15036
15037# Neutralize VPATH when `$srcdir' = `.'.
15038# Shell code in configure.ac might set extrasub.
15039# FIXME: do we really want to maintain this feature?
15040cat >>$CONFIG_STATUS <<_ACEOF
15041  sed "$ac_vpsub
15042$extrasub
15043_ACEOF
15044cat >>$CONFIG_STATUS <<\_ACEOF
15045:t
15046/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15047s&@configure_input@&$configure_input&;t t
15048s&@top_builddir@&$ac_top_builddir_sub&;t t
15049s&@srcdir@&$ac_srcdir&;t t
15050s&@abs_srcdir@&$ac_abs_srcdir&;t t
15051s&@top_srcdir@&$ac_top_srcdir&;t t
15052s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15053s&@builddir@&$ac_builddir&;t t
15054s&@abs_builddir@&$ac_abs_builddir&;t t
15055s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15056s&@INSTALL@&$ac_INSTALL&;t t
15057$ac_datarootdir_hack
15058" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15059
15060test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15061  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15062  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15063  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15064which seems to be undefined.  Please make sure it is defined." >&5
15065echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15066which seems to be undefined.  Please make sure it is defined." >&2;}
15067
15068  rm -f "$tmp/stdin"
15069  case $ac_file in
15070  -) cat "$tmp/out"; rm -f "$tmp/out";;
15071  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15072  esac
15073 ;;
15074  :H)
15075  #
15076  # CONFIG_HEADER
15077  #
15078_ACEOF
15079
15080# Transform confdefs.h into a sed script `conftest.defines', that
15081# substitutes the proper values into config.h.in to produce config.h.
15082rm -f conftest.defines conftest.tail
15083# First, append a space to every undef/define line, to ease matching.
15084echo 's/$/ /' >conftest.defines
15085# Then, protect against being on the right side of a sed subst, or in
15086# an unquoted here document, in config.status.  If some macros were
15087# called several times there might be several #defines for the same
15088# symbol, which is useless.  But do not sort them, since the last
15089# AC_DEFINE must be honored.
15090ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15091# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15092# NAME is the cpp macro being defined, VALUE is the value it is being given.
15093# PARAMS is the parameter list in the macro definition--in most cases, it's
15094# just an empty string.
15095ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
15096ac_dB='\\)[      (].*,\\1define\\2'
15097ac_dC=' '
15098ac_dD=' ,'
15099
15100uniq confdefs.h |
15101  sed -n '
15102        t rset
15103        :rset
15104        s/^[     ]*#[    ]*define[       ][      ]*//
15105        t ok
15106        d
15107        :ok
15108        s/[\\&,]/\\&/g
15109        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15110        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15111  ' >>conftest.defines
15112
15113# Remove the space that was appended to ease matching.
15114# Then replace #undef with comments.  This is necessary, for
15115# example, in the case of _POSIX_SOURCE, which is predefined and required
15116# on some systems where configure will not decide to define it.
15117# (The regexp can be short, since the line contains either #define or #undef.)
15118echo 's/ $//
15119s,^[     #]*u.*,/* & */,' >>conftest.defines
15120
15121# Break up conftest.defines:
15122ac_max_sed_lines=50
15123
15124# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15125# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15126# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15127# et cetera.
15128ac_in='$ac_file_inputs'
15129ac_out='"$tmp/out1"'
15130ac_nxt='"$tmp/out2"'
15131
15132while :
15133do
15134  # Write a here document:
15135    cat >>$CONFIG_STATUS <<_ACEOF
15136    # First, check the format of the line:
15137    cat >"\$tmp/defines.sed" <<\\CEOF
15138/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
15139/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
15140b
15141:def
15142_ACEOF
15143  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15144  echo 'CEOF
15145    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15146  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15147  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15148  grep . conftest.tail >/dev/null || break
15149  rm -f conftest.defines
15150  mv conftest.tail conftest.defines
15151done
15152rm -f conftest.defines conftest.tail
15153
15154echo "ac_result=$ac_in" >>$CONFIG_STATUS
15155cat >>$CONFIG_STATUS <<\_ACEOF
15156  if test x"$ac_file" != x-; then
15157    echo "/* $configure_input  */" >"$tmp/config.h"
15158    cat "$ac_result" >>"$tmp/config.h"
15159    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15160      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15161echo "$as_me: $ac_file is unchanged" >&6;}
15162    else
15163      rm -f $ac_file
15164      mv "$tmp/config.h" $ac_file
15165    fi
15166  else
15167    echo "/* $configure_input  */"
15168    cat "$ac_result"
15169  fi
15170  rm -f "$tmp/out12"
15171 ;;
15172
15173
15174  esac
15175
15176done # for ac_tag
15177
15178
15179{ (exit 0); exit 0; }
15180_ACEOF
15181chmod +x $CONFIG_STATUS
15182ac_clean_files=$ac_clean_files_save
15183
15184
15185# configure is writing to config.log, and then calls config.status.
15186# config.status does its own redirection, appending to config.log.
15187# Unfortunately, on DOS this fails, as config.log is still kept open
15188# by configure, so config.status won't be able to write to it; its
15189# output is simply discarded.  So we exec the FD to /dev/null,
15190# effectively closing config.log, so it can be properly (re)opened and
15191# appended to by config.status.  When coming back to configure, we
15192# need to make the FD available again.
15193if test "$no_create" != yes; then
15194  ac_cs_success=:
15195  ac_config_status_args=
15196  test "$silent" = yes &&
15197    ac_config_status_args="$ac_config_status_args --quiet"
15198  exec 5>/dev/null
15199  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15200  exec 5>>config.log
15201  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15202  # would make configure fail if this is the last instruction.
15203  $ac_cs_success || { (exit 1); exit 1; }
15204fi
15205
15206
15207# Print user information
15208echo ""
15209echo "== Host =="
15210echo "Environment :" $host
15211if test $ac_is_bigendian = yes; then
15212        echo "Endianess : big"
15213else
15214        echo "Endianess : little"
15215fi
15216echo "Bits :" $((8 * $ac_cv_sizeof_voidp))
15217if test $ac_enable_asm = yes; then
15218        echo "Assembler for Pentium : yes"
15219else
15220        echo "Assembler for Pentium : no"
15221fi
15222if test $ac_enable_asm_mips3 = yes; then
15223        echo "Assembler MIPS3 emulator for Pentium : yes"
15224else
15225        echo "Assembler MIPS3 emulator for Pentium : no"
15226fi
15227
15228echo ""
15229echo "== Drivers/Libraries =="
15230if test $ac_lib_direct_flag = no ; then
15231        echo "Video :" $ac_lib_video
15232        echo "(No video driver is capable to program directly your video board."
15233        echo "You will not be able to use not standard video modes.)"
15234else
15235        echo "Video :" $ac_lib_video
15236fi
15237echo "Sound :" $ac_lib_sound
15238echo "Keyboard :" $ac_lib_keyboard
15239echo "Joystick :" $ac_lib_joystick
15240echo "Mouse :" $ac_lib_mouse
15241echo "Misc :" $ac_lib_other
15242
15243if test $ac_enable_debug = no ; then
15244        if test $ac_lib_video_flag = no; then
15245                { { echo "$as_me:$LINENO: error: no video library found. If you have the SDL library installed somewhere try using the --with-sdl-prefix option." >&5
15246echo "$as_me: error: no video library found. If you have the SDL library installed somewhere try using the --with-sdl-prefix option." >&2;}
15247   { (exit 1); exit 1; }; }
15248        fi
15249        if test $ac_lib_sound_flag = no; then
15250                { { echo "$as_me:$LINENO: error: no sound library found" >&5
15251echo "$as_me: error: no sound library found" >&2;}
15252   { (exit 1); exit 1; }; }
15253        fi
15254        if test $ac_lib_text_flag = no; then
15255                { echo "$as_me:$LINENO: WARNING: no text video mode library found. The advv/advcfg utilities will not work!" >&5
15256echo "$as_me: WARNING: no text video mode library found. The advv/advcfg utilities will not work!" >&2;}
15257        fi
15258fi
15259
15260echo ""
15261echo "== Compiler =="
15262echo "CC :" $CC
15263echo "CXX :" $CXX
15264echo "CFLAGS :" $CFLAGS $CFLAGS_OPTOPT
15265echo "LDFLAGS :" $LDFLAGS
15266
15267if test ! $ac_with_emu = none ; then
15268        echo ""
15269        echo "== Configuration =="
15270        echo "Emulator :" $ac_with_emu
15271        echo "Debugger :" $ac_enable_debugger
15272fi
15273