1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
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## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="install-sh"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653CC
654CFLAGS
655LDFLAGS
656CPPFLAGS
657ac_ct_CC
658EXEEXT
659OBJEXT
660CPP
661GREP
662EGREP
663INSTALL_PROGRAM
664INSTALL_SCRIPT
665INSTALL_DATA
666YACC
667YFLAGS
668RANLIB
669MSGFMT
670MSGCAT
671GROFF
672RSH
673PERL
674SH
675po_files
676have_groff
677PROGRAM_PREFIX
678PROGRAM_SUFFIX
679NLSDIR
680LIBOBJS
681LTLIBOBJS'
682ac_subst_files=''
683      ac_precious_vars='build_alias
684host_alias
685target_alias
686CC
687CFLAGS
688LDFLAGS
689LIBS
690CPPFLAGS
691CPP
692YACC
693YFLAGS'
694
695
696# Initialize some variables set by options.
697ac_init_help=
698ac_init_version=false
699# The variables have the same names as the options, with
700# dashes changed to underlines.
701cache_file=/dev/null
702exec_prefix=NONE
703no_create=
704no_recursion=
705prefix=NONE
706program_prefix=NONE
707program_suffix=NONE
708program_transform_name=s,x,x,
709silent=
710site=
711srcdir=
712verbose=
713x_includes=NONE
714x_libraries=NONE
715
716# Installation directory options.
717# These are left unexpanded so users can "make install exec_prefix=/foo"
718# and all the variables that are supposed to be based on exec_prefix
719# by default will actually change.
720# Use braces instead of parens because sh, perl, etc. also accept them.
721# (The list follows the same order as the GNU Coding Standards.)
722bindir='${exec_prefix}/bin'
723sbindir='${exec_prefix}/sbin'
724libexecdir='${exec_prefix}/libexec'
725datarootdir='${prefix}/share'
726datadir='${datarootdir}'
727sysconfdir='${prefix}/etc'
728sharedstatedir='${prefix}/com'
729localstatedir='${prefix}/var'
730includedir='${prefix}/include'
731oldincludedir='/usr/include'
732docdir='${datarootdir}/doc/${PACKAGE}'
733infodir='${datarootdir}/info'
734htmldir='${docdir}'
735dvidir='${docdir}'
736pdfdir='${docdir}'
737psdir='${docdir}'
738libdir='${exec_prefix}/lib'
739localedir='${datarootdir}/locale'
740mandir='${datarootdir}/man'
741
742ac_prev=
743ac_dashdash=
744for ac_option
745do
746  # If the previous option needs an argument, assign it.
747  if test -n "$ac_prev"; then
748    eval $ac_prev=\$ac_option
749    ac_prev=
750    continue
751  fi
752
753  case $ac_option in
754  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
755  *)	ac_optarg=yes ;;
756  esac
757
758  # Accept the important Cygnus configure options, so we can diagnose typos.
759
760  case $ac_dashdash$ac_option in
761  --)
762    ac_dashdash=yes ;;
763
764  -bindir | --bindir | --bindi | --bind | --bin | --bi)
765    ac_prev=bindir ;;
766  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
767    bindir=$ac_optarg ;;
768
769  -build | --build | --buil | --bui | --bu)
770    ac_prev=build_alias ;;
771  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772    build_alias=$ac_optarg ;;
773
774  -cache-file | --cache-file | --cache-fil | --cache-fi \
775  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776    ac_prev=cache_file ;;
777  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779    cache_file=$ac_optarg ;;
780
781  --config-cache | -C)
782    cache_file=config.cache ;;
783
784  -datadir | --datadir | --datadi | --datad)
785    ac_prev=datadir ;;
786  -datadir=* | --datadir=* | --datadi=* | --datad=*)
787    datadir=$ac_optarg ;;
788
789  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790  | --dataroo | --dataro | --datar)
791    ac_prev=datarootdir ;;
792  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794    datarootdir=$ac_optarg ;;
795
796  -disable-* | --disable-*)
797    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798    # Reject names that are not valid shell variable names.
799    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
801   { (exit 1); exit 1; }; }
802    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
803    eval enable_$ac_feature=no ;;
804
805  -docdir | --docdir | --docdi | --doc | --do)
806    ac_prev=docdir ;;
807  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
808    docdir=$ac_optarg ;;
809
810  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
811    ac_prev=dvidir ;;
812  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
813    dvidir=$ac_optarg ;;
814
815  -enable-* | --enable-*)
816    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817    # Reject names that are not valid shell variable names.
818    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
820   { (exit 1); exit 1; }; }
821    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
822    eval enable_$ac_feature=\$ac_optarg ;;
823
824  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
825  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
826  | --exec | --exe | --ex)
827    ac_prev=exec_prefix ;;
828  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
829  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
830  | --exec=* | --exe=* | --ex=*)
831    exec_prefix=$ac_optarg ;;
832
833  -gas | --gas | --ga | --g)
834    # Obsolete; use --with-gas.
835    with_gas=yes ;;
836
837  -help | --help | --hel | --he | -h)
838    ac_init_help=long ;;
839  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
840    ac_init_help=recursive ;;
841  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
842    ac_init_help=short ;;
843
844  -host | --host | --hos | --ho)
845    ac_prev=host_alias ;;
846  -host=* | --host=* | --hos=* | --ho=*)
847    host_alias=$ac_optarg ;;
848
849  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
850    ac_prev=htmldir ;;
851  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
852  | --ht=*)
853    htmldir=$ac_optarg ;;
854
855  -includedir | --includedir | --includedi | --included | --include \
856  | --includ | --inclu | --incl | --inc)
857    ac_prev=includedir ;;
858  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
859  | --includ=* | --inclu=* | --incl=* | --inc=*)
860    includedir=$ac_optarg ;;
861
862  -infodir | --infodir | --infodi | --infod | --info | --inf)
863    ac_prev=infodir ;;
864  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
865    infodir=$ac_optarg ;;
866
867  -libdir | --libdir | --libdi | --libd)
868    ac_prev=libdir ;;
869  -libdir=* | --libdir=* | --libdi=* | --libd=*)
870    libdir=$ac_optarg ;;
871
872  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
873  | --libexe | --libex | --libe)
874    ac_prev=libexecdir ;;
875  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
876  | --libexe=* | --libex=* | --libe=*)
877    libexecdir=$ac_optarg ;;
878
879  -localedir | --localedir | --localedi | --localed | --locale)
880    ac_prev=localedir ;;
881  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
882    localedir=$ac_optarg ;;
883
884  -localstatedir | --localstatedir | --localstatedi | --localstated \
885  | --localstate | --localstat | --localsta | --localst | --locals)
886    ac_prev=localstatedir ;;
887  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
888  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
889    localstatedir=$ac_optarg ;;
890
891  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
892    ac_prev=mandir ;;
893  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
894    mandir=$ac_optarg ;;
895
896  -nfp | --nfp | --nf)
897    # Obsolete; use --without-fp.
898    with_fp=no ;;
899
900  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
901  | --no-cr | --no-c | -n)
902    no_create=yes ;;
903
904  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
905  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
906    no_recursion=yes ;;
907
908  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
909  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
910  | --oldin | --oldi | --old | --ol | --o)
911    ac_prev=oldincludedir ;;
912  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
913  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
914  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
915    oldincludedir=$ac_optarg ;;
916
917  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
918    ac_prev=prefix ;;
919  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
920    prefix=$ac_optarg ;;
921
922  -program-prefix | --program-prefix | --program-prefi | --program-pref \
923  | --program-pre | --program-pr | --program-p)
924    ac_prev=program_prefix ;;
925  -program-prefix=* | --program-prefix=* | --program-prefi=* \
926  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
927    program_prefix=$ac_optarg ;;
928
929  -program-suffix | --program-suffix | --program-suffi | --program-suff \
930  | --program-suf | --program-su | --program-s)
931    ac_prev=program_suffix ;;
932  -program-suffix=* | --program-suffix=* | --program-suffi=* \
933  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
934    program_suffix=$ac_optarg ;;
935
936  -program-transform-name | --program-transform-name \
937  | --program-transform-nam | --program-transform-na \
938  | --program-transform-n | --program-transform- \
939  | --program-transform | --program-transfor \
940  | --program-transfo | --program-transf \
941  | --program-trans | --program-tran \
942  | --progr-tra | --program-tr | --program-t)
943    ac_prev=program_transform_name ;;
944  -program-transform-name=* | --program-transform-name=* \
945  | --program-transform-nam=* | --program-transform-na=* \
946  | --program-transform-n=* | --program-transform-=* \
947  | --program-transform=* | --program-transfor=* \
948  | --program-transfo=* | --program-transf=* \
949  | --program-trans=* | --program-tran=* \
950  | --progr-tra=* | --program-tr=* | --program-t=*)
951    program_transform_name=$ac_optarg ;;
952
953  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
954    ac_prev=pdfdir ;;
955  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
956    pdfdir=$ac_optarg ;;
957
958  -psdir | --psdir | --psdi | --psd | --ps)
959    ac_prev=psdir ;;
960  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
961    psdir=$ac_optarg ;;
962
963  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
964  | -silent | --silent | --silen | --sile | --sil)
965    silent=yes ;;
966
967  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
968    ac_prev=sbindir ;;
969  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
970  | --sbi=* | --sb=*)
971    sbindir=$ac_optarg ;;
972
973  -sharedstatedir | --sharedstatedir | --sharedstatedi \
974  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
975  | --sharedst | --shareds | --shared | --share | --shar \
976  | --sha | --sh)
977    ac_prev=sharedstatedir ;;
978  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
979  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
980  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
981  | --sha=* | --sh=*)
982    sharedstatedir=$ac_optarg ;;
983
984  -site | --site | --sit)
985    ac_prev=site ;;
986  -site=* | --site=* | --sit=*)
987    site=$ac_optarg ;;
988
989  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
990    ac_prev=srcdir ;;
991  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
992    srcdir=$ac_optarg ;;
993
994  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
995  | --syscon | --sysco | --sysc | --sys | --sy)
996    ac_prev=sysconfdir ;;
997  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
998  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
999    sysconfdir=$ac_optarg ;;
1000
1001  -target | --target | --targe | --targ | --tar | --ta | --t)
1002    ac_prev=target_alias ;;
1003  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1004    target_alias=$ac_optarg ;;
1005
1006  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1007    verbose=yes ;;
1008
1009  -version | --version | --versio | --versi | --vers | -V)
1010    ac_init_version=: ;;
1011
1012  -with-* | --with-*)
1013    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1014    # Reject names that are not valid shell variable names.
1015    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016      { echo "$as_me: error: invalid package name: $ac_package" >&2
1017   { (exit 1); exit 1; }; }
1018    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1019    eval with_$ac_package=\$ac_optarg ;;
1020
1021  -without-* | --without-*)
1022    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1023    # Reject names that are not valid shell variable names.
1024    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025      { echo "$as_me: error: invalid package name: $ac_package" >&2
1026   { (exit 1); exit 1; }; }
1027    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1028    eval with_$ac_package=no ;;
1029
1030  --x)
1031    # Obsolete; use --with-x.
1032    with_x=yes ;;
1033
1034  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1035  | --x-incl | --x-inc | --x-in | --x-i)
1036    ac_prev=x_includes ;;
1037  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1038  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1039    x_includes=$ac_optarg ;;
1040
1041  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1042  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1043    ac_prev=x_libraries ;;
1044  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1045  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1046    x_libraries=$ac_optarg ;;
1047
1048  -*) { echo "$as_me: error: unrecognized option: $ac_option
1049Try \`$0 --help' for more information." >&2
1050   { (exit 1); exit 1; }; }
1051    ;;
1052
1053  *=*)
1054    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1055    # Reject names that are not valid shell variable names.
1056    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1057      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1058   { (exit 1); exit 1; }; }
1059    eval $ac_envvar=\$ac_optarg
1060    export $ac_envvar ;;
1061
1062  *)
1063    # FIXME: should be removed in autoconf 3.0.
1064    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1065    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1067    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1068    ;;
1069
1070  esac
1071done
1072
1073if test -n "$ac_prev"; then
1074  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1075  { echo "$as_me: error: missing argument to $ac_option" >&2
1076   { (exit 1); exit 1; }; }
1077fi
1078
1079# Be sure to have absolute directory names.
1080for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1081		datadir sysconfdir sharedstatedir localstatedir includedir \
1082		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1083		libdir localedir mandir
1084do
1085  eval ac_val=\$$ac_var
1086  case $ac_val in
1087    [\\/$]* | ?:[\\/]* )  continue;;
1088    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1089  esac
1090  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1091   { (exit 1); exit 1; }; }
1092done
1093
1094# There might be people who depend on the old broken behavior: `$host'
1095# used to hold the argument of --host etc.
1096# FIXME: To remove some day.
1097build=$build_alias
1098host=$host_alias
1099target=$target_alias
1100
1101# FIXME: To remove some day.
1102if test "x$host_alias" != x; then
1103  if test "x$build_alias" = x; then
1104    cross_compiling=maybe
1105    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1106    If a cross compiler is detected then cross compile mode will be used." >&2
1107  elif test "x$build_alias" != "x$host_alias"; then
1108    cross_compiling=yes
1109  fi
1110fi
1111
1112ac_tool_prefix=
1113test -n "$host_alias" && ac_tool_prefix=$host_alias-
1114
1115test "$silent" = yes && exec 6>/dev/null
1116
1117
1118ac_pwd=`pwd` && test -n "$ac_pwd" &&
1119ac_ls_di=`ls -di .` &&
1120ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1121  { echo "$as_me: error: Working directory cannot be determined" >&2
1122   { (exit 1); exit 1; }; }
1123test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1124  { echo "$as_me: error: pwd does not report name of working directory" >&2
1125   { (exit 1); exit 1; }; }
1126
1127
1128# Find the source files, if location was not specified.
1129if test -z "$srcdir"; then
1130  ac_srcdir_defaulted=yes
1131  # Try the directory containing this script, then the parent directory.
1132  ac_confdir=`$as_dirname -- "$0" ||
1133$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1134	 X"$0" : 'X\(//\)[^/]' \| \
1135	 X"$0" : 'X\(//\)$' \| \
1136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1137echo X"$0" |
1138    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1139	    s//\1/
1140	    q
1141	  }
1142	  /^X\(\/\/\)[^/].*/{
1143	    s//\1/
1144	    q
1145	  }
1146	  /^X\(\/\/\)$/{
1147	    s//\1/
1148	    q
1149	  }
1150	  /^X\(\/\).*/{
1151	    s//\1/
1152	    q
1153	  }
1154	  s/.*/./; q'`
1155  srcdir=$ac_confdir
1156  if test ! -r "$srcdir/$ac_unique_file"; then
1157    srcdir=..
1158  fi
1159else
1160  ac_srcdir_defaulted=no
1161fi
1162if test ! -r "$srcdir/$ac_unique_file"; then
1163  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1164  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1165   { (exit 1); exit 1; }; }
1166fi
1167ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1168ac_abs_confdir=`(
1169	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1170   { (exit 1); exit 1; }; }
1171	pwd)`
1172# When building in place, set srcdir=.
1173if test "$ac_abs_confdir" = "$ac_pwd"; then
1174  srcdir=.
1175fi
1176# Remove unnecessary trailing slashes from srcdir.
1177# Double slashes in file names in object file debugging info
1178# mess up M-x gdb in Emacs.
1179case $srcdir in
1180*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1181esac
1182for ac_var in $ac_precious_vars; do
1183  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1184  eval ac_env_${ac_var}_value=\$${ac_var}
1185  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1186  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1187done
1188
1189#
1190# Report the --help message.
1191#
1192if test "$ac_init_help" = "long"; then
1193  # Omit some internal or obsolete options to make the list less imposing.
1194  # This message is too long to be a string in the A/UX 3.1 sh.
1195  cat <<_ACEOF
1196\`configure' configures this package to adapt to many kinds of systems.
1197
1198Usage: $0 [OPTION]... [VAR=VALUE]...
1199
1200To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201VAR=VALUE.  See below for descriptions of some of the useful variables.
1202
1203Defaults for the options are specified in brackets.
1204
1205Configuration:
1206  -h, --help              display this help and exit
1207      --help=short        display options specific to this package
1208      --help=recursive    display the short help of all the included packages
1209  -V, --version           display version information and exit
1210  -q, --quiet, --silent   do not print \`checking...' messages
1211      --cache-file=FILE   cache test results in FILE [disabled]
1212  -C, --config-cache      alias for \`--cache-file=config.cache'
1213  -n, --no-create         do not create output files
1214      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1215
1216Installation directories:
1217  --prefix=PREFIX         install architecture-independent files in PREFIX
1218			  [$ac_default_prefix]
1219  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1220			  [PREFIX]
1221
1222By default, \`make install' will install all the files in
1223\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1224an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225for instance \`--prefix=\$HOME'.
1226
1227For better control, use the options below.
1228
1229Fine tuning of the installation directories:
1230  --bindir=DIR           user executables [EPREFIX/bin]
1231  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1232  --libexecdir=DIR       program executables [EPREFIX/libexec]
1233  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1234  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1235  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1236  --libdir=DIR           object code libraries [EPREFIX/lib]
1237  --includedir=DIR       C header files [PREFIX/include]
1238  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1239  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1240  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1241  --infodir=DIR          info documentation [DATAROOTDIR/info]
1242  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1243  --mandir=DIR           man documentation [DATAROOTDIR/man]
1244  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1245  --htmldir=DIR          html documentation [DOCDIR]
1246  --dvidir=DIR           dvi documentation [DOCDIR]
1247  --pdfdir=DIR           pdf documentation [DOCDIR]
1248  --psdir=DIR            ps documentation [DOCDIR]
1249_ACEOF
1250
1251  cat <<\_ACEOF
1252_ACEOF
1253fi
1254
1255if test -n "$ac_init_help"; then
1256
1257  cat <<\_ACEOF
1258
1259Optional Packages:
1260  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1261  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1262  --with-nlsdir=PATH   specify where the locale files should be installed
1263
1264Some influential environment variables:
1265  CC          C compiler command
1266  CFLAGS      C compiler flags
1267  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1268              nonstandard directory <lib dir>
1269  LIBS        libraries to pass to the linker, e.g. -l<library>
1270  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1271              you have headers in a nonstandard directory <include dir>
1272  CPP         C preprocessor
1273  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1274              the first program found out of: `bison -y', `byacc', `yacc'.
1275  YFLAGS      The list of arguments that will be passed by default to $YACC.
1276              This script will default YFLAGS to the empty string to avoid a
1277              default value of `-d' given by some make applications.
1278
1279Use these variables to override the choices made by `configure' or to help
1280it to find libraries and programs with nonstandard names/locations.
1281
1282_ACEOF
1283ac_status=$?
1284fi
1285
1286if test "$ac_init_help" = "recursive"; then
1287  # If there are subdirs, report their specific --help.
1288  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1289    test -d "$ac_dir" || continue
1290    ac_builddir=.
1291
1292case "$ac_dir" in
1293.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1294*)
1295  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1296  # A ".." for each directory in $ac_dir_suffix.
1297  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1298  case $ac_top_builddir_sub in
1299  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1300  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1301  esac ;;
1302esac
1303ac_abs_top_builddir=$ac_pwd
1304ac_abs_builddir=$ac_pwd$ac_dir_suffix
1305# for backward compatibility:
1306ac_top_builddir=$ac_top_build_prefix
1307
1308case $srcdir in
1309  .)  # We are building in place.
1310    ac_srcdir=.
1311    ac_top_srcdir=$ac_top_builddir_sub
1312    ac_abs_top_srcdir=$ac_pwd ;;
1313  [\\/]* | ?:[\\/]* )  # Absolute name.
1314    ac_srcdir=$srcdir$ac_dir_suffix;
1315    ac_top_srcdir=$srcdir
1316    ac_abs_top_srcdir=$srcdir ;;
1317  *) # Relative name.
1318    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1319    ac_top_srcdir=$ac_top_build_prefix$srcdir
1320    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1321esac
1322ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1323
1324    cd "$ac_dir" || { ac_status=$?; continue; }
1325    # Check for guested configure.
1326    if test -f "$ac_srcdir/configure.gnu"; then
1327      echo &&
1328      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1329    elif test -f "$ac_srcdir/configure"; then
1330      echo &&
1331      $SHELL "$ac_srcdir/configure" --help=recursive
1332    else
1333      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1334    fi || ac_status=$?
1335    cd "$ac_pwd" || { ac_status=$?; break; }
1336  done
1337fi
1338
1339test -n "$ac_init_help" && exit $ac_status
1340if $ac_init_version; then
1341  cat <<\_ACEOF
1342configure
1343generated by GNU Autoconf 2.61
1344
1345Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13462002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1347This configure script is free software; the Free Software Foundation
1348gives unlimited permission to copy, distribute and modify it.
1349_ACEOF
1350  exit
1351fi
1352cat >config.log <<_ACEOF
1353This file contains any messages produced by compilers while
1354running configure, to aid debugging if configure makes a mistake.
1355
1356It was created by $as_me, which was
1357generated by GNU Autoconf 2.61.  Invocation command line was
1358
1359  $ $0 $@
1360
1361_ACEOF
1362exec 5>>config.log
1363{
1364cat <<_ASUNAME
1365## --------- ##
1366## Platform. ##
1367## --------- ##
1368
1369hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1370uname -m = `(uname -m) 2>/dev/null || echo unknown`
1371uname -r = `(uname -r) 2>/dev/null || echo unknown`
1372uname -s = `(uname -s) 2>/dev/null || echo unknown`
1373uname -v = `(uname -v) 2>/dev/null || echo unknown`
1374
1375/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1376/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1377
1378/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1379/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1380/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1381/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1382/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1383/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1384/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1385
1386_ASUNAME
1387
1388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389for as_dir in $PATH
1390do
1391  IFS=$as_save_IFS
1392  test -z "$as_dir" && as_dir=.
1393  echo "PATH: $as_dir"
1394done
1395IFS=$as_save_IFS
1396
1397} >&5
1398
1399cat >&5 <<_ACEOF
1400
1401
1402## ----------- ##
1403## Core tests. ##
1404## ----------- ##
1405
1406_ACEOF
1407
1408
1409# Keep a trace of the command line.
1410# Strip out --no-create and --no-recursion so they do not pile up.
1411# Strip out --silent because we don't want to record it for future runs.
1412# Also quote any args containing shell meta-characters.
1413# Make two passes to allow for proper duplicate-argument suppression.
1414ac_configure_args=
1415ac_configure_args0=
1416ac_configure_args1=
1417ac_must_keep_next=false
1418for ac_pass in 1 2
1419do
1420  for ac_arg
1421  do
1422    case $ac_arg in
1423    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1424    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1425    | -silent | --silent | --silen | --sile | --sil)
1426      continue ;;
1427    *\'*)
1428      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1429    esac
1430    case $ac_pass in
1431    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1432    2)
1433      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1434      if test $ac_must_keep_next = true; then
1435	ac_must_keep_next=false # Got value, back to normal.
1436      else
1437	case $ac_arg in
1438	  *=* | --config-cache | -C | -disable-* | --disable-* \
1439	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1440	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1441	  | -with-* | --with-* | -without-* | --without-* | --x)
1442	    case "$ac_configure_args0 " in
1443	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1444	    esac
1445	    ;;
1446	  -* ) ac_must_keep_next=true ;;
1447	esac
1448      fi
1449      ac_configure_args="$ac_configure_args '$ac_arg'"
1450      ;;
1451    esac
1452  done
1453done
1454$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1455$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1456
1457# When interrupted or exit'd, cleanup temporary files, and complete
1458# config.log.  We remove comments because anyway the quotes in there
1459# would cause problems or look ugly.
1460# WARNING: Use '\'' to represent an apostrophe within the trap.
1461# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1462trap 'exit_status=$?
1463  # Save into config.log some information that might help in debugging.
1464  {
1465    echo
1466
1467    cat <<\_ASBOX
1468## ---------------- ##
1469## Cache variables. ##
1470## ---------------- ##
1471_ASBOX
1472    echo
1473    # The following way of writing the cache mishandles newlines in values,
1474(
1475  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1476    eval ac_val=\$$ac_var
1477    case $ac_val in #(
1478    *${as_nl}*)
1479      case $ac_var in #(
1480      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1481echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1482      esac
1483      case $ac_var in #(
1484      _ | IFS | as_nl) ;; #(
1485      *) $as_unset $ac_var ;;
1486      esac ;;
1487    esac
1488  done
1489  (set) 2>&1 |
1490    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1491    *${as_nl}ac_space=\ *)
1492      sed -n \
1493	"s/'\''/'\''\\\\'\'''\''/g;
1494	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1495      ;; #(
1496    *)
1497      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1498      ;;
1499    esac |
1500    sort
1501)
1502    echo
1503
1504    cat <<\_ASBOX
1505## ----------------- ##
1506## Output variables. ##
1507## ----------------- ##
1508_ASBOX
1509    echo
1510    for ac_var in $ac_subst_vars
1511    do
1512      eval ac_val=\$$ac_var
1513      case $ac_val in
1514      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1515      esac
1516      echo "$ac_var='\''$ac_val'\''"
1517    done | sort
1518    echo
1519
1520    if test -n "$ac_subst_files"; then
1521      cat <<\_ASBOX
1522## ------------------- ##
1523## File substitutions. ##
1524## ------------------- ##
1525_ASBOX
1526      echo
1527      for ac_var in $ac_subst_files
1528      do
1529	eval ac_val=\$$ac_var
1530	case $ac_val in
1531	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1532	esac
1533	echo "$ac_var='\''$ac_val'\''"
1534      done | sort
1535      echo
1536    fi
1537
1538    if test -s confdefs.h; then
1539      cat <<\_ASBOX
1540## ----------- ##
1541## confdefs.h. ##
1542## ----------- ##
1543_ASBOX
1544      echo
1545      cat confdefs.h
1546      echo
1547    fi
1548    test "$ac_signal" != 0 &&
1549      echo "$as_me: caught signal $ac_signal"
1550    echo "$as_me: exit $exit_status"
1551  } >&5
1552  rm -f core *.core core.conftest.* &&
1553    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1554    exit $exit_status
1555' 0
1556for ac_signal in 1 2 13 15; do
1557  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1558done
1559ac_signal=0
1560
1561# confdefs.h avoids OS command line length limits that DEFS can exceed.
1562rm -f -r conftest* confdefs.h
1563
1564# Predefined preprocessor variables.
1565
1566cat >>confdefs.h <<_ACEOF
1567#define PACKAGE_NAME "$PACKAGE_NAME"
1568_ACEOF
1569
1570
1571cat >>confdefs.h <<_ACEOF
1572#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1573_ACEOF
1574
1575
1576cat >>confdefs.h <<_ACEOF
1577#define PACKAGE_VERSION "$PACKAGE_VERSION"
1578_ACEOF
1579
1580
1581cat >>confdefs.h <<_ACEOF
1582#define PACKAGE_STRING "$PACKAGE_STRING"
1583_ACEOF
1584
1585
1586cat >>confdefs.h <<_ACEOF
1587#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1588_ACEOF
1589
1590
1591# Let the site file select an alternate cache file if it wants to.
1592# Prefer explicitly selected file to automatically selected ones.
1593if test -n "$CONFIG_SITE"; then
1594  set x "$CONFIG_SITE"
1595elif test "x$prefix" != xNONE; then
1596  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1597else
1598  set x "$ac_default_prefix/share/config.site" \
1599	"$ac_default_prefix/etc/config.site"
1600fi
1601shift
1602for ac_site_file
1603do
1604  if test -r "$ac_site_file"; then
1605    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1606echo "$as_me: loading site script $ac_site_file" >&6;}
1607    sed 's/^/| /' "$ac_site_file" >&5
1608    . "$ac_site_file"
1609  fi
1610done
1611
1612if test -r "$cache_file"; then
1613  # Some versions of bash will fail to source /dev/null (special
1614  # files actually), so we avoid doing that.
1615  if test -f "$cache_file"; then
1616    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1617echo "$as_me: loading cache $cache_file" >&6;}
1618    case $cache_file in
1619      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1620      *)                      . "./$cache_file";;
1621    esac
1622  fi
1623else
1624  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1625echo "$as_me: creating cache $cache_file" >&6;}
1626  >$cache_file
1627fi
1628
1629# Check that the precious variables saved in the cache have kept the same
1630# value.
1631ac_cache_corrupted=false
1632for ac_var in $ac_precious_vars; do
1633  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1634  eval ac_new_set=\$ac_env_${ac_var}_set
1635  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1636  eval ac_new_val=\$ac_env_${ac_var}_value
1637  case $ac_old_set,$ac_new_set in
1638    set,)
1639      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1640echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1641      ac_cache_corrupted=: ;;
1642    ,set)
1643      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1644echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1645      ac_cache_corrupted=: ;;
1646    ,);;
1647    *)
1648      if test "x$ac_old_val" != "x$ac_new_val"; then
1649	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1650echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1651	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1652echo "$as_me:   former value:  $ac_old_val" >&2;}
1653	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1654echo "$as_me:   current value: $ac_new_val" >&2;}
1655	ac_cache_corrupted=:
1656      fi;;
1657  esac
1658  # Pass precious variables to config.status.
1659  if test "$ac_new_set" = set; then
1660    case $ac_new_val in
1661    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1662    *) ac_arg=$ac_var=$ac_new_val ;;
1663    esac
1664    case " $ac_configure_args " in
1665      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1666      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1667    esac
1668  fi
1669done
1670if $ac_cache_corrupted; then
1671  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1672echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1673  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1674echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1675   { (exit 1); exit 1; }; }
1676fi
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694ac_ext=c
1695ac_cpp='$CPP $CPPFLAGS'
1696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1698ac_compiler_gnu=$ac_cv_c_compiler_gnu
1699
1700
1701ac_config_headers="$ac_config_headers common/config.h"
1702
1703ac_ext=c
1704ac_cpp='$CPP $CPPFLAGS'
1705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1707ac_compiler_gnu=$ac_cv_c_compiler_gnu
1708if test -n "$ac_tool_prefix"; then
1709  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1710set dummy ${ac_tool_prefix}gcc; ac_word=$2
1711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1713if test "${ac_cv_prog_CC+set}" = set; then
1714  echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716  if test -n "$CC"; then
1717  ac_cv_prog_CC="$CC" # Let the user override the test.
1718else
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722  IFS=$as_save_IFS
1723  test -z "$as_dir" && as_dir=.
1724  for ac_exec_ext in '' $ac_executable_extensions; do
1725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1726    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728    break 2
1729  fi
1730done
1731done
1732IFS=$as_save_IFS
1733
1734fi
1735fi
1736CC=$ac_cv_prog_CC
1737if test -n "$CC"; then
1738  { echo "$as_me:$LINENO: result: $CC" >&5
1739echo "${ECHO_T}$CC" >&6; }
1740else
1741  { echo "$as_me:$LINENO: result: no" >&5
1742echo "${ECHO_T}no" >&6; }
1743fi
1744
1745
1746fi
1747if test -z "$ac_cv_prog_CC"; then
1748  ac_ct_CC=$CC
1749  # Extract the first word of "gcc", so it can be a program name with args.
1750set dummy gcc; ac_word=$2
1751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1753if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1754  echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756  if test -n "$ac_ct_CC"; then
1757  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1758else
1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760for as_dir in $PATH
1761do
1762  IFS=$as_save_IFS
1763  test -z "$as_dir" && as_dir=.
1764  for ac_exec_ext in '' $ac_executable_extensions; do
1765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1766    ac_cv_prog_ac_ct_CC="gcc"
1767    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768    break 2
1769  fi
1770done
1771done
1772IFS=$as_save_IFS
1773
1774fi
1775fi
1776ac_ct_CC=$ac_cv_prog_ac_ct_CC
1777if test -n "$ac_ct_CC"; then
1778  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1779echo "${ECHO_T}$ac_ct_CC" >&6; }
1780else
1781  { echo "$as_me:$LINENO: result: no" >&5
1782echo "${ECHO_T}no" >&6; }
1783fi
1784
1785  if test "x$ac_ct_CC" = x; then
1786    CC=""
1787  else
1788    case $cross_compiling:$ac_tool_warned in
1789yes:)
1790{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1791whose name does not start with the host triplet.  If you think this
1792configuration is useful to you, please write to autoconf@gnu.org." >&5
1793echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1794whose name does not start with the host triplet.  If you think this
1795configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1796ac_tool_warned=yes ;;
1797esac
1798    CC=$ac_ct_CC
1799  fi
1800else
1801  CC="$ac_cv_prog_CC"
1802fi
1803
1804if test -z "$CC"; then
1805          if test -n "$ac_tool_prefix"; then
1806    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1807set dummy ${ac_tool_prefix}cc; ac_word=$2
1808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1810if test "${ac_cv_prog_CC+set}" = set; then
1811  echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813  if test -n "$CC"; then
1814  ac_cv_prog_CC="$CC" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819  IFS=$as_save_IFS
1820  test -z "$as_dir" && as_dir=.
1821  for ac_exec_ext in '' $ac_executable_extensions; do
1822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1823    ac_cv_prog_CC="${ac_tool_prefix}cc"
1824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825    break 2
1826  fi
1827done
1828done
1829IFS=$as_save_IFS
1830
1831fi
1832fi
1833CC=$ac_cv_prog_CC
1834if test -n "$CC"; then
1835  { echo "$as_me:$LINENO: result: $CC" >&5
1836echo "${ECHO_T}$CC" >&6; }
1837else
1838  { echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6; }
1840fi
1841
1842
1843  fi
1844fi
1845if test -z "$CC"; then
1846  # Extract the first word of "cc", so it can be a program name with args.
1847set dummy cc; ac_word=$2
1848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1850if test "${ac_cv_prog_CC+set}" = set; then
1851  echo $ECHO_N "(cached) $ECHO_C" >&6
1852else
1853  if test -n "$CC"; then
1854  ac_cv_prog_CC="$CC" # Let the user override the test.
1855else
1856  ac_prog_rejected=no
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860  IFS=$as_save_IFS
1861  test -z "$as_dir" && as_dir=.
1862  for ac_exec_ext in '' $ac_executable_extensions; do
1863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1864    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1865       ac_prog_rejected=yes
1866       continue
1867     fi
1868    ac_cv_prog_CC="cc"
1869    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870    break 2
1871  fi
1872done
1873done
1874IFS=$as_save_IFS
1875
1876if test $ac_prog_rejected = yes; then
1877  # We found a bogon in the path, so make sure we never use it.
1878  set dummy $ac_cv_prog_CC
1879  shift
1880  if test $# != 0; then
1881    # We chose a different compiler from the bogus one.
1882    # However, it has the same basename, so the bogon will be chosen
1883    # first if we set CC to just the basename; use the full file name.
1884    shift
1885    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1886  fi
1887fi
1888fi
1889fi
1890CC=$ac_cv_prog_CC
1891if test -n "$CC"; then
1892  { echo "$as_me:$LINENO: result: $CC" >&5
1893echo "${ECHO_T}$CC" >&6; }
1894else
1895  { echo "$as_me:$LINENO: result: no" >&5
1896echo "${ECHO_T}no" >&6; }
1897fi
1898
1899
1900fi
1901if test -z "$CC"; then
1902  if test -n "$ac_tool_prefix"; then
1903  for ac_prog in cl.exe
1904  do
1905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1909if test "${ac_cv_prog_CC+set}" = set; then
1910  echo $ECHO_N "(cached) $ECHO_C" >&6
1911else
1912  if test -n "$CC"; then
1913  ac_cv_prog_CC="$CC" # Let the user override the test.
1914else
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918  IFS=$as_save_IFS
1919  test -z "$as_dir" && as_dir=.
1920  for ac_exec_ext in '' $ac_executable_extensions; do
1921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1922    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924    break 2
1925  fi
1926done
1927done
1928IFS=$as_save_IFS
1929
1930fi
1931fi
1932CC=$ac_cv_prog_CC
1933if test -n "$CC"; then
1934  { echo "$as_me:$LINENO: result: $CC" >&5
1935echo "${ECHO_T}$CC" >&6; }
1936else
1937  { echo "$as_me:$LINENO: result: no" >&5
1938echo "${ECHO_T}no" >&6; }
1939fi
1940
1941
1942    test -n "$CC" && break
1943  done
1944fi
1945if test -z "$CC"; then
1946  ac_ct_CC=$CC
1947  for ac_prog in cl.exe
1948do
1949  # Extract the first word of "$ac_prog", so it can be a program name with args.
1950set dummy $ac_prog; ac_word=$2
1951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1953if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1954  echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956  if test -n "$ac_ct_CC"; then
1957  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1958else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962  IFS=$as_save_IFS
1963  test -z "$as_dir" && as_dir=.
1964  for ac_exec_ext in '' $ac_executable_extensions; do
1965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1966    ac_cv_prog_ac_ct_CC="$ac_prog"
1967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968    break 2
1969  fi
1970done
1971done
1972IFS=$as_save_IFS
1973
1974fi
1975fi
1976ac_ct_CC=$ac_cv_prog_ac_ct_CC
1977if test -n "$ac_ct_CC"; then
1978  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1979echo "${ECHO_T}$ac_ct_CC" >&6; }
1980else
1981  { echo "$as_me:$LINENO: result: no" >&5
1982echo "${ECHO_T}no" >&6; }
1983fi
1984
1985
1986  test -n "$ac_ct_CC" && break
1987done
1988
1989  if test "x$ac_ct_CC" = x; then
1990    CC=""
1991  else
1992    case $cross_compiling:$ac_tool_warned in
1993yes:)
1994{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1995whose name does not start with the host triplet.  If you think this
1996configuration is useful to you, please write to autoconf@gnu.org." >&5
1997echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1998whose name does not start with the host triplet.  If you think this
1999configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2000ac_tool_warned=yes ;;
2001esac
2002    CC=$ac_ct_CC
2003  fi
2004fi
2005
2006fi
2007
2008
2009test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2010See \`config.log' for more details." >&5
2011echo "$as_me: error: no acceptable C compiler found in \$PATH
2012See \`config.log' for more details." >&2;}
2013   { (exit 1); exit 1; }; }
2014
2015# Provide some information about the compiler.
2016echo "$as_me:$LINENO: checking for C compiler version" >&5
2017ac_compiler=`set X $ac_compile; echo $2`
2018{ (ac_try="$ac_compiler --version >&5"
2019case "(($ac_try" in
2020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021  *) ac_try_echo=$ac_try;;
2022esac
2023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2024  (eval "$ac_compiler --version >&5") 2>&5
2025  ac_status=$?
2026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027  (exit $ac_status); }
2028{ (ac_try="$ac_compiler -v >&5"
2029case "(($ac_try" in
2030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031  *) ac_try_echo=$ac_try;;
2032esac
2033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2034  (eval "$ac_compiler -v >&5") 2>&5
2035  ac_status=$?
2036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037  (exit $ac_status); }
2038{ (ac_try="$ac_compiler -V >&5"
2039case "(($ac_try" in
2040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041  *) ac_try_echo=$ac_try;;
2042esac
2043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2044  (eval "$ac_compiler -V >&5") 2>&5
2045  ac_status=$?
2046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047  (exit $ac_status); }
2048
2049cat >conftest.$ac_ext <<_ACEOF
2050/* confdefs.h.  */
2051_ACEOF
2052cat confdefs.h >>conftest.$ac_ext
2053cat >>conftest.$ac_ext <<_ACEOF
2054/* end confdefs.h.  */
2055
2056int
2057main ()
2058{
2059
2060  ;
2061  return 0;
2062}
2063_ACEOF
2064ac_clean_files_save=$ac_clean_files
2065ac_clean_files="$ac_clean_files a.out a.exe b.out"
2066# Try to create an executable without -o first, disregard a.out.
2067# It will help us diagnose broken compilers, and finding out an intuition
2068# of exeext.
2069{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2070echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2071ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2072#
2073# List of possible output files, starting from the most likely.
2074# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2075# only as a last resort.  b.out is created by i960 compilers.
2076ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2077#
2078# The IRIX 6 linker writes into existing files which may not be
2079# executable, retaining their permissions.  Remove them first so a
2080# subsequent execution test works.
2081ac_rmfiles=
2082for ac_file in $ac_files
2083do
2084  case $ac_file in
2085    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2086    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2087  esac
2088done
2089rm -f $ac_rmfiles
2090
2091if { (ac_try="$ac_link_default"
2092case "(($ac_try" in
2093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094  *) ac_try_echo=$ac_try;;
2095esac
2096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097  (eval "$ac_link_default") 2>&5
2098  ac_status=$?
2099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100  (exit $ac_status); }; then
2101  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2102# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2103# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2104# so that the user can short-circuit this test for compilers unknown to
2105# Autoconf.
2106for ac_file in $ac_files ''
2107do
2108  test -f "$ac_file" || continue
2109  case $ac_file in
2110    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2111	;;
2112    [ab].out )
2113	# We found the default executable, but exeext='' is most
2114	# certainly right.
2115	break;;
2116    *.* )
2117        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2118	then :; else
2119	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120	fi
2121	# We set ac_cv_exeext here because the later test for it is not
2122	# safe: cross compilers may not add the suffix if given an `-o'
2123	# argument, so we may need to know it at that point already.
2124	# Even if this section looks crufty: it has the advantage of
2125	# actually working.
2126	break;;
2127    * )
2128	break;;
2129  esac
2130done
2131test "$ac_cv_exeext" = no && ac_cv_exeext=
2132
2133else
2134  ac_file=''
2135fi
2136
2137{ echo "$as_me:$LINENO: result: $ac_file" >&5
2138echo "${ECHO_T}$ac_file" >&6; }
2139if test -z "$ac_file"; then
2140  echo "$as_me: failed program was:" >&5
2141sed 's/^/| /' conftest.$ac_ext >&5
2142
2143{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2144See \`config.log' for more details." >&5
2145echo "$as_me: error: C compiler cannot create executables
2146See \`config.log' for more details." >&2;}
2147   { (exit 77); exit 77; }; }
2148fi
2149
2150ac_exeext=$ac_cv_exeext
2151
2152# Check that the compiler produces executables we can run.  If not, either
2153# the compiler is broken, or we cross compile.
2154{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2155echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2156# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2157# If not cross compiling, check that we can run a simple program.
2158if test "$cross_compiling" != yes; then
2159  if { ac_try='./$ac_file'
2160  { (case "(($ac_try" in
2161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162  *) ac_try_echo=$ac_try;;
2163esac
2164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2165  (eval "$ac_try") 2>&5
2166  ac_status=$?
2167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168  (exit $ac_status); }; }; then
2169    cross_compiling=no
2170  else
2171    if test "$cross_compiling" = maybe; then
2172	cross_compiling=yes
2173    else
2174	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2175If you meant to cross compile, use \`--host'.
2176See \`config.log' for more details." >&5
2177echo "$as_me: error: cannot run C compiled programs.
2178If you meant to cross compile, use \`--host'.
2179See \`config.log' for more details." >&2;}
2180   { (exit 1); exit 1; }; }
2181    fi
2182  fi
2183fi
2184{ echo "$as_me:$LINENO: result: yes" >&5
2185echo "${ECHO_T}yes" >&6; }
2186
2187rm -f a.out a.exe conftest$ac_cv_exeext b.out
2188ac_clean_files=$ac_clean_files_save
2189# Check that the compiler produces executables we can run.  If not, either
2190# the compiler is broken, or we cross compile.
2191{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2192echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2193{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2194echo "${ECHO_T}$cross_compiling" >&6; }
2195
2196{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2197echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2198if { (ac_try="$ac_link"
2199case "(($ac_try" in
2200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201  *) ac_try_echo=$ac_try;;
2202esac
2203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204  (eval "$ac_link") 2>&5
2205  ac_status=$?
2206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207  (exit $ac_status); }; then
2208  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2209# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2210# work properly (i.e., refer to `conftest.exe'), while it won't with
2211# `rm'.
2212for ac_file in conftest.exe conftest conftest.*; do
2213  test -f "$ac_file" || continue
2214  case $ac_file in
2215    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2216    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217	  break;;
2218    * ) break;;
2219  esac
2220done
2221else
2222  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2223See \`config.log' for more details." >&5
2224echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2225See \`config.log' for more details." >&2;}
2226   { (exit 1); exit 1; }; }
2227fi
2228
2229rm -f conftest$ac_cv_exeext
2230{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2231echo "${ECHO_T}$ac_cv_exeext" >&6; }
2232
2233rm -f conftest.$ac_ext
2234EXEEXT=$ac_cv_exeext
2235ac_exeext=$EXEEXT
2236{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2237echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2238if test "${ac_cv_objext+set}" = set; then
2239  echo $ECHO_N "(cached) $ECHO_C" >&6
2240else
2241  cat >conftest.$ac_ext <<_ACEOF
2242/* confdefs.h.  */
2243_ACEOF
2244cat confdefs.h >>conftest.$ac_ext
2245cat >>conftest.$ac_ext <<_ACEOF
2246/* end confdefs.h.  */
2247
2248int
2249main ()
2250{
2251
2252  ;
2253  return 0;
2254}
2255_ACEOF
2256rm -f conftest.o conftest.obj
2257if { (ac_try="$ac_compile"
2258case "(($ac_try" in
2259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260  *) ac_try_echo=$ac_try;;
2261esac
2262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263  (eval "$ac_compile") 2>&5
2264  ac_status=$?
2265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266  (exit $ac_status); }; then
2267  for ac_file in conftest.o conftest.obj conftest.*; do
2268  test -f "$ac_file" || continue;
2269  case $ac_file in
2270    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2271    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2272       break;;
2273  esac
2274done
2275else
2276  echo "$as_me: failed program was:" >&5
2277sed 's/^/| /' conftest.$ac_ext >&5
2278
2279{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2280See \`config.log' for more details." >&5
2281echo "$as_me: error: cannot compute suffix of object files: cannot compile
2282See \`config.log' for more details." >&2;}
2283   { (exit 1); exit 1; }; }
2284fi
2285
2286rm -f conftest.$ac_cv_objext conftest.$ac_ext
2287fi
2288{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2289echo "${ECHO_T}$ac_cv_objext" >&6; }
2290OBJEXT=$ac_cv_objext
2291ac_objext=$OBJEXT
2292{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2293echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2294if test "${ac_cv_c_compiler_gnu+set}" = set; then
2295  echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297  cat >conftest.$ac_ext <<_ACEOF
2298/* confdefs.h.  */
2299_ACEOF
2300cat confdefs.h >>conftest.$ac_ext
2301cat >>conftest.$ac_ext <<_ACEOF
2302/* end confdefs.h.  */
2303
2304int
2305main ()
2306{
2307#ifndef __GNUC__
2308       choke me
2309#endif
2310
2311  ;
2312  return 0;
2313}
2314_ACEOF
2315rm -f conftest.$ac_objext
2316if { (ac_try="$ac_compile"
2317case "(($ac_try" in
2318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319  *) ac_try_echo=$ac_try;;
2320esac
2321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322  (eval "$ac_compile") 2>conftest.er1
2323  ac_status=$?
2324  grep -v '^ *+' conftest.er1 >conftest.err
2325  rm -f conftest.er1
2326  cat conftest.err >&5
2327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328  (exit $ac_status); } && {
2329	 test -z "$ac_c_werror_flag" ||
2330	 test ! -s conftest.err
2331       } && test -s conftest.$ac_objext; then
2332  ac_compiler_gnu=yes
2333else
2334  echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337	ac_compiler_gnu=no
2338fi
2339
2340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341ac_cv_c_compiler_gnu=$ac_compiler_gnu
2342
2343fi
2344{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2345echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2346GCC=`test $ac_compiler_gnu = yes && echo yes`
2347ac_test_CFLAGS=${CFLAGS+set}
2348ac_save_CFLAGS=$CFLAGS
2349{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2350echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2351if test "${ac_cv_prog_cc_g+set}" = set; then
2352  echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354  ac_save_c_werror_flag=$ac_c_werror_flag
2355   ac_c_werror_flag=yes
2356   ac_cv_prog_cc_g=no
2357   CFLAGS="-g"
2358   cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h.  */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h.  */
2364
2365int
2366main ()
2367{
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (ac_try="$ac_compile"
2375case "(($ac_try" in
2376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377  *) ac_try_echo=$ac_try;;
2378esac
2379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380  (eval "$ac_compile") 2>conftest.er1
2381  ac_status=$?
2382  grep -v '^ *+' conftest.er1 >conftest.err
2383  rm -f conftest.er1
2384  cat conftest.err >&5
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); } && {
2387	 test -z "$ac_c_werror_flag" ||
2388	 test ! -s conftest.err
2389       } && test -s conftest.$ac_objext; then
2390  ac_cv_prog_cc_g=yes
2391else
2392  echo "$as_me: failed program was:" >&5
2393sed 's/^/| /' conftest.$ac_ext >&5
2394
2395	CFLAGS=""
2396      cat >conftest.$ac_ext <<_ACEOF
2397/* confdefs.h.  */
2398_ACEOF
2399cat confdefs.h >>conftest.$ac_ext
2400cat >>conftest.$ac_ext <<_ACEOF
2401/* end confdefs.h.  */
2402
2403int
2404main ()
2405{
2406
2407  ;
2408  return 0;
2409}
2410_ACEOF
2411rm -f conftest.$ac_objext
2412if { (ac_try="$ac_compile"
2413case "(($ac_try" in
2414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415  *) ac_try_echo=$ac_try;;
2416esac
2417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418  (eval "$ac_compile") 2>conftest.er1
2419  ac_status=$?
2420  grep -v '^ *+' conftest.er1 >conftest.err
2421  rm -f conftest.er1
2422  cat conftest.err >&5
2423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424  (exit $ac_status); } && {
2425	 test -z "$ac_c_werror_flag" ||
2426	 test ! -s conftest.err
2427       } && test -s conftest.$ac_objext; then
2428  :
2429else
2430  echo "$as_me: failed program was:" >&5
2431sed 's/^/| /' conftest.$ac_ext >&5
2432
2433	ac_c_werror_flag=$ac_save_c_werror_flag
2434	 CFLAGS="-g"
2435	 cat >conftest.$ac_ext <<_ACEOF
2436/* confdefs.h.  */
2437_ACEOF
2438cat confdefs.h >>conftest.$ac_ext
2439cat >>conftest.$ac_ext <<_ACEOF
2440/* end confdefs.h.  */
2441
2442int
2443main ()
2444{
2445
2446  ;
2447  return 0;
2448}
2449_ACEOF
2450rm -f conftest.$ac_objext
2451if { (ac_try="$ac_compile"
2452case "(($ac_try" in
2453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454  *) ac_try_echo=$ac_try;;
2455esac
2456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457  (eval "$ac_compile") 2>conftest.er1
2458  ac_status=$?
2459  grep -v '^ *+' conftest.er1 >conftest.err
2460  rm -f conftest.er1
2461  cat conftest.err >&5
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); } && {
2464	 test -z "$ac_c_werror_flag" ||
2465	 test ! -s conftest.err
2466       } && test -s conftest.$ac_objext; then
2467  ac_cv_prog_cc_g=yes
2468else
2469  echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472
2473fi
2474
2475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476fi
2477
2478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479fi
2480
2481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482   ac_c_werror_flag=$ac_save_c_werror_flag
2483fi
2484{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2485echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2486if test "$ac_test_CFLAGS" = set; then
2487  CFLAGS=$ac_save_CFLAGS
2488elif test $ac_cv_prog_cc_g = yes; then
2489  if test "$GCC" = yes; then
2490    CFLAGS="-g -O2"
2491  else
2492    CFLAGS="-g"
2493  fi
2494else
2495  if test "$GCC" = yes; then
2496    CFLAGS="-O2"
2497  else
2498    CFLAGS=
2499  fi
2500fi
2501{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2502echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2503if test "${ac_cv_prog_cc_c89+set}" = set; then
2504  echo $ECHO_N "(cached) $ECHO_C" >&6
2505else
2506  ac_cv_prog_cc_c89=no
2507ac_save_CC=$CC
2508cat >conftest.$ac_ext <<_ACEOF
2509/* confdefs.h.  */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
2513/* end confdefs.h.  */
2514#include <stdarg.h>
2515#include <stdio.h>
2516#include <sys/types.h>
2517#include <sys/stat.h>
2518/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2519struct buf { int x; };
2520FILE * (*rcsopen) (struct buf *, struct stat *, int);
2521static char *e (p, i)
2522     char **p;
2523     int i;
2524{
2525  return p[i];
2526}
2527static char *f (char * (*g) (char **, int), char **p, ...)
2528{
2529  char *s;
2530  va_list v;
2531  va_start (v,p);
2532  s = g (p, va_arg (v,int));
2533  va_end (v);
2534  return s;
2535}
2536
2537/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2538   function prototypes and stuff, but not '\xHH' hex character constants.
2539   These don't provoke an error unfortunately, instead are silently treated
2540   as 'x'.  The following induces an error, until -std is added to get
2541   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2542   array size at least.  It's necessary to write '\x00'==0 to get something
2543   that's true only with -std.  */
2544int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2545
2546/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2547   inside strings and character constants.  */
2548#define FOO(x) 'x'
2549int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2550
2551int test (int i, double x);
2552struct s1 {int (*f) (int a);};
2553struct s2 {int (*f) (double a);};
2554int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2555int argc;
2556char **argv;
2557int
2558main ()
2559{
2560return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2561  ;
2562  return 0;
2563}
2564_ACEOF
2565for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2566	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2567do
2568  CC="$ac_save_CC $ac_arg"
2569  rm -f conftest.$ac_objext
2570if { (ac_try="$ac_compile"
2571case "(($ac_try" in
2572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573  *) ac_try_echo=$ac_try;;
2574esac
2575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576  (eval "$ac_compile") 2>conftest.er1
2577  ac_status=$?
2578  grep -v '^ *+' conftest.er1 >conftest.err
2579  rm -f conftest.er1
2580  cat conftest.err >&5
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); } && {
2583	 test -z "$ac_c_werror_flag" ||
2584	 test ! -s conftest.err
2585       } && test -s conftest.$ac_objext; then
2586  ac_cv_prog_cc_c89=$ac_arg
2587else
2588  echo "$as_me: failed program was:" >&5
2589sed 's/^/| /' conftest.$ac_ext >&5
2590
2591
2592fi
2593
2594rm -f core conftest.err conftest.$ac_objext
2595  test "x$ac_cv_prog_cc_c89" != "xno" && break
2596done
2597rm -f conftest.$ac_ext
2598CC=$ac_save_CC
2599
2600fi
2601# AC_CACHE_VAL
2602case "x$ac_cv_prog_cc_c89" in
2603  x)
2604    { echo "$as_me:$LINENO: result: none needed" >&5
2605echo "${ECHO_T}none needed" >&6; } ;;
2606  xno)
2607    { echo "$as_me:$LINENO: result: unsupported" >&5
2608echo "${ECHO_T}unsupported" >&6; } ;;
2609  *)
2610    CC="$CC $ac_cv_prog_cc_c89"
2611    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2612echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2613esac
2614
2615
2616ac_ext=c
2617ac_cpp='$CPP $CPPFLAGS'
2618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621
2622ac_ext=c
2623ac_cpp='$CPP $CPPFLAGS'
2624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2628echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2629# On Suns, sometimes $CPP names a directory.
2630if test -n "$CPP" && test -d "$CPP"; then
2631  CPP=
2632fi
2633if test -z "$CPP"; then
2634  if test "${ac_cv_prog_CPP+set}" = set; then
2635  echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637      # Double quotes because CPP needs to be expanded
2638    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2639    do
2640      ac_preproc_ok=false
2641for ac_c_preproc_warn_flag in '' yes
2642do
2643  # Use a header file that comes with gcc, so configuring glibc
2644  # with a fresh cross-compiler works.
2645  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2646  # <limits.h> exists even on freestanding compilers.
2647  # On the NeXT, cc -E runs the code through the compiler's parser,
2648  # not just through cpp. "Syntax error" is here to catch this case.
2649  cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h.  */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h.  */
2655#ifdef __STDC__
2656# include <limits.h>
2657#else
2658# include <assert.h>
2659#endif
2660		     Syntax error
2661_ACEOF
2662if { (ac_try="$ac_cpp conftest.$ac_ext"
2663case "(($ac_try" in
2664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665  *) ac_try_echo=$ac_try;;
2666esac
2667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2669  ac_status=$?
2670  grep -v '^ *+' conftest.er1 >conftest.err
2671  rm -f conftest.er1
2672  cat conftest.err >&5
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); } >/dev/null && {
2675	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2676	 test ! -s conftest.err
2677       }; then
2678  :
2679else
2680  echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
2683  # Broken: fails on valid input.
2684continue
2685fi
2686
2687rm -f conftest.err conftest.$ac_ext
2688
2689  # OK, works on sane cases.  Now check whether nonexistent headers
2690  # can be detected and how.
2691  cat >conftest.$ac_ext <<_ACEOF
2692/* confdefs.h.  */
2693_ACEOF
2694cat confdefs.h >>conftest.$ac_ext
2695cat >>conftest.$ac_ext <<_ACEOF
2696/* end confdefs.h.  */
2697#include <ac_nonexistent.h>
2698_ACEOF
2699if { (ac_try="$ac_cpp conftest.$ac_ext"
2700case "(($ac_try" in
2701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702  *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2706  ac_status=$?
2707  grep -v '^ *+' conftest.er1 >conftest.err
2708  rm -f conftest.er1
2709  cat conftest.err >&5
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); } >/dev/null && {
2712	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2713	 test ! -s conftest.err
2714       }; then
2715  # Broken: success on invalid input.
2716continue
2717else
2718  echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
2720
2721  # Passes both tests.
2722ac_preproc_ok=:
2723break
2724fi
2725
2726rm -f conftest.err conftest.$ac_ext
2727
2728done
2729# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2730rm -f conftest.err conftest.$ac_ext
2731if $ac_preproc_ok; then
2732  break
2733fi
2734
2735    done
2736    ac_cv_prog_CPP=$CPP
2737
2738fi
2739  CPP=$ac_cv_prog_CPP
2740else
2741  ac_cv_prog_CPP=$CPP
2742fi
2743{ echo "$as_me:$LINENO: result: $CPP" >&5
2744echo "${ECHO_T}$CPP" >&6; }
2745ac_preproc_ok=false
2746for ac_c_preproc_warn_flag in '' yes
2747do
2748  # Use a header file that comes with gcc, so configuring glibc
2749  # with a fresh cross-compiler works.
2750  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2751  # <limits.h> exists even on freestanding compilers.
2752  # On the NeXT, cc -E runs the code through the compiler's parser,
2753  # not just through cpp. "Syntax error" is here to catch this case.
2754  cat >conftest.$ac_ext <<_ACEOF
2755/* confdefs.h.  */
2756_ACEOF
2757cat confdefs.h >>conftest.$ac_ext
2758cat >>conftest.$ac_ext <<_ACEOF
2759/* end confdefs.h.  */
2760#ifdef __STDC__
2761# include <limits.h>
2762#else
2763# include <assert.h>
2764#endif
2765		     Syntax error
2766_ACEOF
2767if { (ac_try="$ac_cpp conftest.$ac_ext"
2768case "(($ac_try" in
2769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770  *) ac_try_echo=$ac_try;;
2771esac
2772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2774  ac_status=$?
2775  grep -v '^ *+' conftest.er1 >conftest.err
2776  rm -f conftest.er1
2777  cat conftest.err >&5
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); } >/dev/null && {
2780	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2781	 test ! -s conftest.err
2782       }; then
2783  :
2784else
2785  echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2787
2788  # Broken: fails on valid input.
2789continue
2790fi
2791
2792rm -f conftest.err conftest.$ac_ext
2793
2794  # OK, works on sane cases.  Now check whether nonexistent headers
2795  # can be detected and how.
2796  cat >conftest.$ac_ext <<_ACEOF
2797/* confdefs.h.  */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
2801/* end confdefs.h.  */
2802#include <ac_nonexistent.h>
2803_ACEOF
2804if { (ac_try="$ac_cpp conftest.$ac_ext"
2805case "(($ac_try" in
2806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807  *) ac_try_echo=$ac_try;;
2808esac
2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2811  ac_status=$?
2812  grep -v '^ *+' conftest.er1 >conftest.err
2813  rm -f conftest.er1
2814  cat conftest.err >&5
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); } >/dev/null && {
2817	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2818	 test ! -s conftest.err
2819       }; then
2820  # Broken: success on invalid input.
2821continue
2822else
2823  echo "$as_me: failed program was:" >&5
2824sed 's/^/| /' conftest.$ac_ext >&5
2825
2826  # Passes both tests.
2827ac_preproc_ok=:
2828break
2829fi
2830
2831rm -f conftest.err conftest.$ac_ext
2832
2833done
2834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2835rm -f conftest.err conftest.$ac_ext
2836if $ac_preproc_ok; then
2837  :
2838else
2839  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2840See \`config.log' for more details." >&5
2841echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2842See \`config.log' for more details." >&2;}
2843   { (exit 1); exit 1; }; }
2844fi
2845
2846ac_ext=c
2847ac_cpp='$CPP $CPPFLAGS'
2848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851
2852
2853if test -z "$GCC" ; then
2854{ echo "$as_me:$LINENO: checking for Pyramid" >&5
2855echo $ECHO_N "checking for Pyramid... $ECHO_C" >&6; }
2856
2857
2858{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2859echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2860if test "${ac_cv_path_GREP+set}" = set; then
2861  echo $ECHO_N "(cached) $ECHO_C" >&6
2862else
2863  # Extract the first word of "grep ggrep" to use in msg output
2864if test -z "$GREP"; then
2865set dummy grep ggrep; ac_prog_name=$2
2866if test "${ac_cv_path_GREP+set}" = set; then
2867  echo $ECHO_N "(cached) $ECHO_C" >&6
2868else
2869  ac_path_GREP_found=false
2870# Loop through the user's path and test for each of PROGNAME-LIST
2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2873do
2874  IFS=$as_save_IFS
2875  test -z "$as_dir" && as_dir=.
2876  for ac_prog in grep ggrep; do
2877  for ac_exec_ext in '' $ac_executable_extensions; do
2878    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2879    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2880    # Check for GNU ac_path_GREP and select it if it is found.
2881  # Check for GNU $ac_path_GREP
2882case `"$ac_path_GREP" --version 2>&1` in
2883*GNU*)
2884  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2885*)
2886  ac_count=0
2887  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2888  while :
2889  do
2890    cat "conftest.in" "conftest.in" >"conftest.tmp"
2891    mv "conftest.tmp" "conftest.in"
2892    cp "conftest.in" "conftest.nl"
2893    echo 'GREP' >> "conftest.nl"
2894    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2895    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2896    ac_count=`expr $ac_count + 1`
2897    if test $ac_count -gt ${ac_path_GREP_max-0}; then
2898      # Best one so far, save it but keep looking for a better one
2899      ac_cv_path_GREP="$ac_path_GREP"
2900      ac_path_GREP_max=$ac_count
2901    fi
2902    # 10*(2^10) chars as input seems more than enough
2903    test $ac_count -gt 10 && break
2904  done
2905  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2906esac
2907
2908
2909    $ac_path_GREP_found && break 3
2910  done
2911done
2912
2913done
2914IFS=$as_save_IFS
2915
2916
2917fi
2918
2919GREP="$ac_cv_path_GREP"
2920if test -z "$GREP"; then
2921  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2922echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2923   { (exit 1); exit 1; }; }
2924fi
2925
2926else
2927  ac_cv_path_GREP=$GREP
2928fi
2929
2930
2931fi
2932{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2933echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
2934 GREP="$ac_cv_path_GREP"
2935
2936
2937{ echo "$as_me:$LINENO: checking for egrep" >&5
2938echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2939if test "${ac_cv_path_EGREP+set}" = set; then
2940  echo $ECHO_N "(cached) $ECHO_C" >&6
2941else
2942  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2943   then ac_cv_path_EGREP="$GREP -E"
2944   else
2945     # Extract the first word of "egrep" to use in msg output
2946if test -z "$EGREP"; then
2947set dummy egrep; ac_prog_name=$2
2948if test "${ac_cv_path_EGREP+set}" = set; then
2949  echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951  ac_path_EGREP_found=false
2952# Loop through the user's path and test for each of PROGNAME-LIST
2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2955do
2956  IFS=$as_save_IFS
2957  test -z "$as_dir" && as_dir=.
2958  for ac_prog in egrep; do
2959  for ac_exec_ext in '' $ac_executable_extensions; do
2960    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2961    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2962    # Check for GNU ac_path_EGREP and select it if it is found.
2963  # Check for GNU $ac_path_EGREP
2964case `"$ac_path_EGREP" --version 2>&1` in
2965*GNU*)
2966  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2967*)
2968  ac_count=0
2969  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2970  while :
2971  do
2972    cat "conftest.in" "conftest.in" >"conftest.tmp"
2973    mv "conftest.tmp" "conftest.in"
2974    cp "conftest.in" "conftest.nl"
2975    echo 'EGREP' >> "conftest.nl"
2976    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2977    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2978    ac_count=`expr $ac_count + 1`
2979    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2980      # Best one so far, save it but keep looking for a better one
2981      ac_cv_path_EGREP="$ac_path_EGREP"
2982      ac_path_EGREP_max=$ac_count
2983    fi
2984    # 10*(2^10) chars as input seems more than enough
2985    test $ac_count -gt 10 && break
2986  done
2987  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2988esac
2989
2990
2991    $ac_path_EGREP_found && break 3
2992  done
2993done
2994
2995done
2996IFS=$as_save_IFS
2997
2998
2999fi
3000
3001EGREP="$ac_cv_path_EGREP"
3002if test -z "$EGREP"; then
3003  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3004echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3005   { (exit 1); exit 1; }; }
3006fi
3007
3008else
3009  ac_cv_path_EGREP=$EGREP
3010fi
3011
3012
3013   fi
3014fi
3015{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3016echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3017 EGREP="$ac_cv_path_EGREP"
3018
3019
3020cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h.  */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h.  */
3026#ifdef __pyrsoft
3027  yes
3028#endif
3029_ACEOF
3030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3031  $EGREP "yes" >/dev/null 2>&1; then
3032  CC="/usr/ccs/bin/cc"
3033RANLIB="echo no need to ranlib"
3034{ echo "$as_me:$LINENO: result: yes" >&5
3035echo "${ECHO_T}yes" >&6; }
3036else
3037  { echo "$as_me:$LINENO: result: no" >&5
3038echo "${ECHO_T}no" >&6; }
3039fi
3040rm -f conftest*
3041
3042fi
3043
3044{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3045echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3046if test "${ac_cv_header_stdc+set}" = set; then
3047  echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049  cat >conftest.$ac_ext <<_ACEOF
3050/* confdefs.h.  */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h.  */
3055#include <stdlib.h>
3056#include <stdarg.h>
3057#include <string.h>
3058#include <float.h>
3059
3060int
3061main ()
3062{
3063
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext
3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072  *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075  (eval "$ac_compile") 2>conftest.er1
3076  ac_status=$?
3077  grep -v '^ *+' conftest.er1 >conftest.err
3078  rm -f conftest.er1
3079  cat conftest.err >&5
3080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081  (exit $ac_status); } && {
3082	 test -z "$ac_c_werror_flag" ||
3083	 test ! -s conftest.err
3084       } && test -s conftest.$ac_objext; then
3085  ac_cv_header_stdc=yes
3086else
3087  echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090	ac_cv_header_stdc=no
3091fi
3092
3093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094
3095if test $ac_cv_header_stdc = yes; then
3096  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3097  cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h.  */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h.  */
3103#include <string.h>
3104
3105_ACEOF
3106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107  $EGREP "memchr" >/dev/null 2>&1; then
3108  :
3109else
3110  ac_cv_header_stdc=no
3111fi
3112rm -f conftest*
3113
3114fi
3115
3116if test $ac_cv_header_stdc = yes; then
3117  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3118  cat >conftest.$ac_ext <<_ACEOF
3119/* confdefs.h.  */
3120_ACEOF
3121cat confdefs.h >>conftest.$ac_ext
3122cat >>conftest.$ac_ext <<_ACEOF
3123/* end confdefs.h.  */
3124#include <stdlib.h>
3125
3126_ACEOF
3127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3128  $EGREP "free" >/dev/null 2>&1; then
3129  :
3130else
3131  ac_cv_header_stdc=no
3132fi
3133rm -f conftest*
3134
3135fi
3136
3137if test $ac_cv_header_stdc = yes; then
3138  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3139  if test "$cross_compiling" = yes; then
3140  :
3141else
3142  cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h.  */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h.  */
3148#include <ctype.h>
3149#include <stdlib.h>
3150#if ((' ' & 0x0FF) == 0x020)
3151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3153#else
3154# define ISLOWER(c) \
3155		   (('a' <= (c) && (c) <= 'i') \
3156		     || ('j' <= (c) && (c) <= 'r') \
3157		     || ('s' <= (c) && (c) <= 'z'))
3158# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3159#endif
3160
3161#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3162int
3163main ()
3164{
3165  int i;
3166  for (i = 0; i < 256; i++)
3167    if (XOR (islower (i), ISLOWER (i))
3168	|| toupper (i) != TOUPPER (i))
3169      return 2;
3170  return 0;
3171}
3172_ACEOF
3173rm -f conftest$ac_exeext
3174if { (ac_try="$ac_link"
3175case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180  (eval "$ac_link") 2>&5
3181  ac_status=$?
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3184  { (case "(($ac_try" in
3185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186  *) ac_try_echo=$ac_try;;
3187esac
3188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189  (eval "$ac_try") 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }; }; then
3193  :
3194else
3195  echo "$as_me: program exited with status $ac_status" >&5
3196echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199( exit $ac_status )
3200ac_cv_header_stdc=no
3201fi
3202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3203fi
3204
3205
3206fi
3207fi
3208{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3209echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3210if test $ac_cv_header_stdc = yes; then
3211
3212cat >>confdefs.h <<\_ACEOF
3213#define STDC_HEADERS 1
3214_ACEOF
3215
3216fi
3217
3218# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3229		  inttypes.h stdint.h unistd.h
3230do
3231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3232{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3235  echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
3237  cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h.  */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h.  */
3243$ac_includes_default
3244
3245#include <$ac_header>
3246_ACEOF
3247rm -f conftest.$ac_objext
3248if { (ac_try="$ac_compile"
3249case "(($ac_try" in
3250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251  *) ac_try_echo=$ac_try;;
3252esac
3253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254  (eval "$ac_compile") 2>conftest.er1
3255  ac_status=$?
3256  grep -v '^ *+' conftest.er1 >conftest.err
3257  rm -f conftest.er1
3258  cat conftest.err >&5
3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260  (exit $ac_status); } && {
3261	 test -z "$ac_c_werror_flag" ||
3262	 test ! -s conftest.err
3263       } && test -s conftest.$ac_objext; then
3264  eval "$as_ac_Header=yes"
3265else
3266  echo "$as_me: failed program was:" >&5
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
3269	eval "$as_ac_Header=no"
3270fi
3271
3272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273fi
3274ac_res=`eval echo '${'$as_ac_Header'}'`
3275	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3276echo "${ECHO_T}$ac_res" >&6; }
3277if test `eval echo '${'$as_ac_Header'}'` = yes; then
3278  cat >>confdefs.h <<_ACEOF
3279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3280_ACEOF
3281
3282fi
3283
3284done
3285
3286
3287if test "${ac_cv_header_minix_config_h+set}" = set; then
3288  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3289echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3290if test "${ac_cv_header_minix_config_h+set}" = set; then
3291  echo $ECHO_N "(cached) $ECHO_C" >&6
3292fi
3293{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3294echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3295else
3296  # Is the header compilable?
3297{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3298echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3299cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h.  */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h.  */
3305$ac_includes_default
3306#include <minix/config.h>
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (ac_try="$ac_compile"
3310case "(($ac_try" in
3311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312  *) ac_try_echo=$ac_try;;
3313esac
3314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315  (eval "$ac_compile") 2>conftest.er1
3316  ac_status=$?
3317  grep -v '^ *+' conftest.er1 >conftest.err
3318  rm -f conftest.er1
3319  cat conftest.err >&5
3320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321  (exit $ac_status); } && {
3322	 test -z "$ac_c_werror_flag" ||
3323	 test ! -s conftest.err
3324       } && test -s conftest.$ac_objext; then
3325  ac_header_compiler=yes
3326else
3327  echo "$as_me: failed program was:" >&5
3328sed 's/^/| /' conftest.$ac_ext >&5
3329
3330	ac_header_compiler=no
3331fi
3332
3333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3335echo "${ECHO_T}$ac_header_compiler" >&6; }
3336
3337# Is the header present?
3338{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3339echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3340cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h.  */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h.  */
3346#include <minix/config.h>
3347_ACEOF
3348if { (ac_try="$ac_cpp conftest.$ac_ext"
3349case "(($ac_try" in
3350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351  *) ac_try_echo=$ac_try;;
3352esac
3353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3355  ac_status=$?
3356  grep -v '^ *+' conftest.er1 >conftest.err
3357  rm -f conftest.er1
3358  cat conftest.err >&5
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); } >/dev/null && {
3361	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3362	 test ! -s conftest.err
3363       }; then
3364  ac_header_preproc=yes
3365else
3366  echo "$as_me: failed program was:" >&5
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
3369  ac_header_preproc=no
3370fi
3371
3372rm -f conftest.err conftest.$ac_ext
3373{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3374echo "${ECHO_T}$ac_header_preproc" >&6; }
3375
3376# So?  What about this header?
3377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3378  yes:no: )
3379    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3380echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3381    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3382echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3383    ac_header_preproc=yes
3384    ;;
3385  no:yes:* )
3386    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3387echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3388    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3389echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3390    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3391echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3392    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3393echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3394    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3395echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3396    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3397echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3398
3399    ;;
3400esac
3401{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
3402echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3403if test "${ac_cv_header_minix_config_h+set}" = set; then
3404  echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406  ac_cv_header_minix_config_h=$ac_header_preproc
3407fi
3408{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3409echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3410
3411fi
3412if test $ac_cv_header_minix_config_h = yes; then
3413  MINIX=yes
3414else
3415  MINIX=
3416fi
3417
3418
3419if test "$MINIX" = yes; then
3420
3421cat >>confdefs.h <<\_ACEOF
3422#define _POSIX_SOURCE 1
3423_ACEOF
3424
3425
3426cat >>confdefs.h <<\_ACEOF
3427#define _POSIX_1_SOURCE 2
3428_ACEOF
3429
3430
3431cat >>confdefs.h <<\_ACEOF
3432#define _MINIX 1
3433_ACEOF
3434
3435fi
3436
3437{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3438echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3439if test "${ac_cv_search_strerror+set}" = set; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442  ac_func_search_save_LIBS=$LIBS
3443cat >conftest.$ac_ext <<_ACEOF
3444/* confdefs.h.  */
3445_ACEOF
3446cat confdefs.h >>conftest.$ac_ext
3447cat >>conftest.$ac_ext <<_ACEOF
3448/* end confdefs.h.  */
3449
3450/* Override any GCC internal prototype to avoid an error.
3451   Use char because int might match the return type of a GCC
3452   builtin and then its argument prototype would still apply.  */
3453#ifdef __cplusplus
3454extern "C"
3455#endif
3456char strerror ();
3457int
3458main ()
3459{
3460return strerror ();
3461  ;
3462  return 0;
3463}
3464_ACEOF
3465for ac_lib in '' cposix; do
3466  if test -z "$ac_lib"; then
3467    ac_res="none required"
3468  else
3469    ac_res=-l$ac_lib
3470    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3471  fi
3472  rm -f conftest.$ac_objext conftest$ac_exeext
3473if { (ac_try="$ac_link"
3474case "(($ac_try" in
3475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476  *) ac_try_echo=$ac_try;;
3477esac
3478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479  (eval "$ac_link") 2>conftest.er1
3480  ac_status=$?
3481  grep -v '^ *+' conftest.er1 >conftest.err
3482  rm -f conftest.er1
3483  cat conftest.err >&5
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); } && {
3486	 test -z "$ac_c_werror_flag" ||
3487	 test ! -s conftest.err
3488       } && test -s conftest$ac_exeext &&
3489       $as_test_x conftest$ac_exeext; then
3490  ac_cv_search_strerror=$ac_res
3491else
3492  echo "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
3495
3496fi
3497
3498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3499      conftest$ac_exeext
3500  if test "${ac_cv_search_strerror+set}" = set; then
3501  break
3502fi
3503done
3504if test "${ac_cv_search_strerror+set}" = set; then
3505  :
3506else
3507  ac_cv_search_strerror=no
3508fi
3509rm conftest.$ac_ext
3510LIBS=$ac_func_search_save_LIBS
3511fi
3512{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3513echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3514ac_res=$ac_cv_search_strerror
3515if test "$ac_res" != no; then
3516  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3517
3518fi
3519
3520
3521
3522ac_aux_dir=
3523for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3524  if test -f "$ac_dir/install-sh"; then
3525    ac_aux_dir=$ac_dir
3526    ac_install_sh="$ac_aux_dir/install-sh -c"
3527    break
3528  elif test -f "$ac_dir/install.sh"; then
3529    ac_aux_dir=$ac_dir
3530    ac_install_sh="$ac_aux_dir/install.sh -c"
3531    break
3532  elif test -f "$ac_dir/shtool"; then
3533    ac_aux_dir=$ac_dir
3534    ac_install_sh="$ac_aux_dir/shtool install -c"
3535    break
3536  fi
3537done
3538if test -z "$ac_aux_dir"; then
3539  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3540echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3541   { (exit 1); exit 1; }; }
3542fi
3543
3544# These three variables are undocumented and unsupported,
3545# and are intended to be withdrawn in a future Autoconf release.
3546# They can cause serious problems if a builder's source tree is in a directory
3547# whose full name contains unusual characters.
3548ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3549ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3550ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3551
3552
3553# Find a good install program.  We prefer a C program (faster),
3554# so one script is as good as another.  But avoid the broken or
3555# incompatible versions:
3556# SysV /etc/install, /usr/sbin/install
3557# SunOS /usr/etc/install
3558# IRIX /sbin/install
3559# AIX /bin/install
3560# AmigaOS /C/install, which installs bootblocks on floppy discs
3561# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3562# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3563# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3564# OS/2's system install, which has a completely different semantic
3565# ./install, which can be erroneously created by make from ./install.sh.
3566{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3567echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3568if test -z "$INSTALL"; then
3569if test "${ac_cv_path_install+set}" = set; then
3570  echo $ECHO_N "(cached) $ECHO_C" >&6
3571else
3572  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH
3574do
3575  IFS=$as_save_IFS
3576  test -z "$as_dir" && as_dir=.
3577  # Account for people who put trailing slashes in PATH elements.
3578case $as_dir/ in
3579  ./ | .// | /cC/* | \
3580  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3581  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3582  /usr/ucb/* ) ;;
3583  *)
3584    # OSF1 and SCO ODT 3.0 have their own names for install.
3585    # Don't use installbsd from OSF since it installs stuff as root
3586    # by default.
3587    for ac_prog in ginstall scoinst install; do
3588      for ac_exec_ext in '' $ac_executable_extensions; do
3589	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3590	  if test $ac_prog = install &&
3591	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3592	    # AIX install.  It has an incompatible calling convention.
3593	    :
3594	  elif test $ac_prog = install &&
3595	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3596	    # program-specific install script used by HP pwplus--don't use.
3597	    :
3598	  else
3599	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3600	    break 3
3601	  fi
3602	fi
3603      done
3604    done
3605    ;;
3606esac
3607done
3608IFS=$as_save_IFS
3609
3610
3611fi
3612  if test "${ac_cv_path_install+set}" = set; then
3613    INSTALL=$ac_cv_path_install
3614  else
3615    # As a last resort, use the slow shell script.  Don't cache a
3616    # value for INSTALL within a source directory, because that will
3617    # break other packages using the cache if that directory is
3618    # removed, or if the value is a relative name.
3619    INSTALL=$ac_install_sh
3620  fi
3621fi
3622{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3623echo "${ECHO_T}$INSTALL" >&6; }
3624
3625# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3626# It thinks the first close brace ends the variable substitution.
3627test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3628
3629test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3630
3631test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3632
3633for ac_prog in 'bison -y' byacc
3634do
3635  # Extract the first word of "$ac_prog", so it can be a program name with args.
3636set dummy $ac_prog; ac_word=$2
3637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3639if test "${ac_cv_prog_YACC+set}" = set; then
3640  echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642  if test -n "$YACC"; then
3643  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3644else
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648  IFS=$as_save_IFS
3649  test -z "$as_dir" && as_dir=.
3650  for ac_exec_ext in '' $ac_executable_extensions; do
3651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652    ac_cv_prog_YACC="$ac_prog"
3653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654    break 2
3655  fi
3656done
3657done
3658IFS=$as_save_IFS
3659
3660fi
3661fi
3662YACC=$ac_cv_prog_YACC
3663if test -n "$YACC"; then
3664  { echo "$as_me:$LINENO: result: $YACC" >&5
3665echo "${ECHO_T}$YACC" >&6; }
3666else
3667  { echo "$as_me:$LINENO: result: no" >&5
3668echo "${ECHO_T}no" >&6; }
3669fi
3670
3671
3672  test -n "$YACC" && break
3673done
3674test -n "$YACC" || YACC="yacc"
3675
3676if test -n "$ac_tool_prefix"; then
3677  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3678set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3681if test "${ac_cv_prog_RANLIB+set}" = set; then
3682  echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684  if test -n "$RANLIB"; then
3685  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3686else
3687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688for as_dir in $PATH
3689do
3690  IFS=$as_save_IFS
3691  test -z "$as_dir" && as_dir=.
3692  for ac_exec_ext in '' $ac_executable_extensions; do
3693  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696    break 2
3697  fi
3698done
3699done
3700IFS=$as_save_IFS
3701
3702fi
3703fi
3704RANLIB=$ac_cv_prog_RANLIB
3705if test -n "$RANLIB"; then
3706  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3707echo "${ECHO_T}$RANLIB" >&6; }
3708else
3709  { echo "$as_me:$LINENO: result: no" >&5
3710echo "${ECHO_T}no" >&6; }
3711fi
3712
3713
3714fi
3715if test -z "$ac_cv_prog_RANLIB"; then
3716  ac_ct_RANLIB=$RANLIB
3717  # Extract the first word of "ranlib", so it can be a program name with args.
3718set dummy ranlib; ac_word=$2
3719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3721if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3722  echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724  if test -n "$ac_ct_RANLIB"; then
3725  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3726else
3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728for as_dir in $PATH
3729do
3730  IFS=$as_save_IFS
3731  test -z "$as_dir" && as_dir=.
3732  for ac_exec_ext in '' $ac_executable_extensions; do
3733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734    ac_cv_prog_ac_ct_RANLIB="ranlib"
3735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736    break 2
3737  fi
3738done
3739done
3740IFS=$as_save_IFS
3741
3742fi
3743fi
3744ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3745if test -n "$ac_ct_RANLIB"; then
3746  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3747echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3748else
3749  { echo "$as_me:$LINENO: result: no" >&5
3750echo "${ECHO_T}no" >&6; }
3751fi
3752
3753  if test "x$ac_ct_RANLIB" = x; then
3754    RANLIB=":"
3755  else
3756    case $cross_compiling:$ac_tool_warned in
3757yes:)
3758{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3759whose name does not start with the host triplet.  If you think this
3760configuration is useful to you, please write to autoconf@gnu.org." >&5
3761echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3762whose name does not start with the host triplet.  If you think this
3763configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3764ac_tool_warned=yes ;;
3765esac
3766    RANLIB=$ac_ct_RANLIB
3767  fi
3768else
3769  RANLIB="$ac_cv_prog_RANLIB"
3770fi
3771
3772
3773{ echo "$as_me:$LINENO: checking for main in -lw32" >&5
3774echo $ECHO_N "checking for main in -lw32... $ECHO_C" >&6; }
3775if test "${ac_cv_lib_w32_main+set}" = set; then
3776  echo $ECHO_N "(cached) $ECHO_C" >&6
3777else
3778  ac_check_lib_save_LIBS=$LIBS
3779LIBS="-lw32  $LIBS"
3780cat >conftest.$ac_ext <<_ACEOF
3781/* confdefs.h.  */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
3785/* end confdefs.h.  */
3786
3787
3788int
3789main ()
3790{
3791return main ();
3792  ;
3793  return 0;
3794}
3795_ACEOF
3796rm -f conftest.$ac_objext conftest$ac_exeext
3797if { (ac_try="$ac_link"
3798case "(($ac_try" in
3799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800  *) ac_try_echo=$ac_try;;
3801esac
3802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803  (eval "$ac_link") 2>conftest.er1
3804  ac_status=$?
3805  grep -v '^ *+' conftest.er1 >conftest.err
3806  rm -f conftest.er1
3807  cat conftest.err >&5
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); } && {
3810	 test -z "$ac_c_werror_flag" ||
3811	 test ! -s conftest.err
3812       } && test -s conftest$ac_exeext &&
3813       $as_test_x conftest$ac_exeext; then
3814  ac_cv_lib_w32_main=yes
3815else
3816  echo "$as_me: failed program was:" >&5
3817sed 's/^/| /' conftest.$ac_ext >&5
3818
3819	ac_cv_lib_w32_main=no
3820fi
3821
3822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3823      conftest$ac_exeext conftest.$ac_ext
3824LIBS=$ac_check_lib_save_LIBS
3825fi
3826{ echo "$as_me:$LINENO: result: $ac_cv_lib_w32_main" >&5
3827echo "${ECHO_T}$ac_cv_lib_w32_main" >&6; }
3828if test $ac_cv_lib_w32_main = yes; then
3829  cat >>confdefs.h <<_ACEOF
3830#define HAVE_LIBW32 1
3831_ACEOF
3832
3833  LIBS="-lw32 $LIBS"
3834
3835fi
3836ac_cv_lib_w32=ac_cv_lib_w32_main
3837    { echo "$as_me:$LINENO: checking for wschr" >&5
3838echo $ECHO_N "checking for wschr... $ECHO_C" >&6; }
3839if test "${ac_cv_func_wschr+set}" = set; then
3840  echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842  cat >conftest.$ac_ext <<_ACEOF
3843/* confdefs.h.  */
3844_ACEOF
3845cat confdefs.h >>conftest.$ac_ext
3846cat >>conftest.$ac_ext <<_ACEOF
3847/* end confdefs.h.  */
3848/* Define wschr to an innocuous variant, in case <limits.h> declares wschr.
3849   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3850#define wschr innocuous_wschr
3851
3852/* System header to define __stub macros and hopefully few prototypes,
3853    which can conflict with char wschr (); below.
3854    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855    <limits.h> exists even on freestanding compilers.  */
3856
3857#ifdef __STDC__
3858# include <limits.h>
3859#else
3860# include <assert.h>
3861#endif
3862
3863#undef wschr
3864
3865/* Override any GCC internal prototype to avoid an error.
3866   Use char because int might match the return type of a GCC
3867   builtin and then its argument prototype would still apply.  */
3868#ifdef __cplusplus
3869extern "C"
3870#endif
3871char wschr ();
3872/* The GNU C library defines this for functions which it implements
3873    to always fail with ENOSYS.  Some functions are actually named
3874    something starting with __ and the normal name is an alias.  */
3875#if defined __stub_wschr || defined __stub___wschr
3876choke me
3877#endif
3878
3879int
3880main ()
3881{
3882return wschr ();
3883  ;
3884  return 0;
3885}
3886_ACEOF
3887rm -f conftest.$ac_objext conftest$ac_exeext
3888if { (ac_try="$ac_link"
3889case "(($ac_try" in
3890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891  *) ac_try_echo=$ac_try;;
3892esac
3893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894  (eval "$ac_link") 2>conftest.er1
3895  ac_status=$?
3896  grep -v '^ *+' conftest.er1 >conftest.err
3897  rm -f conftest.er1
3898  cat conftest.err >&5
3899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900  (exit $ac_status); } && {
3901	 test -z "$ac_c_werror_flag" ||
3902	 test ! -s conftest.err
3903       } && test -s conftest$ac_exeext &&
3904       $as_test_x conftest$ac_exeext; then
3905  ac_cv_func_wschr=yes
3906else
3907  echo "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
3910	ac_cv_func_wschr=no
3911fi
3912
3913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3914      conftest$ac_exeext conftest.$ac_ext
3915fi
3916{ echo "$as_me:$LINENO: result: $ac_cv_func_wschr" >&5
3917echo "${ECHO_T}$ac_cv_func_wschr" >&6; }
3918if test $ac_cv_func_wschr = yes; then
3919  :
3920else
3921  unset ac_cv_func_wschr
3922
3923{ echo "$as_me:$LINENO: checking for wschr in -lw" >&5
3924echo $ECHO_N "checking for wschr in -lw... $ECHO_C" >&6; }
3925if test "${ac_cv_lib_w_wschr+set}" = set; then
3926  echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928  ac_check_lib_save_LIBS=$LIBS
3929LIBS="-lw  $LIBS"
3930cat >conftest.$ac_ext <<_ACEOF
3931/* confdefs.h.  */
3932_ACEOF
3933cat confdefs.h >>conftest.$ac_ext
3934cat >>conftest.$ac_ext <<_ACEOF
3935/* end confdefs.h.  */
3936
3937/* Override any GCC internal prototype to avoid an error.
3938   Use char because int might match the return type of a GCC
3939   builtin and then its argument prototype would still apply.  */
3940#ifdef __cplusplus
3941extern "C"
3942#endif
3943char wschr ();
3944int
3945main ()
3946{
3947return wschr ();
3948  ;
3949  return 0;
3950}
3951_ACEOF
3952rm -f conftest.$ac_objext conftest$ac_exeext
3953if { (ac_try="$ac_link"
3954case "(($ac_try" in
3955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956  *) ac_try_echo=$ac_try;;
3957esac
3958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959  (eval "$ac_link") 2>conftest.er1
3960  ac_status=$?
3961  grep -v '^ *+' conftest.er1 >conftest.err
3962  rm -f conftest.er1
3963  cat conftest.err >&5
3964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965  (exit $ac_status); } && {
3966	 test -z "$ac_c_werror_flag" ||
3967	 test ! -s conftest.err
3968       } && test -s conftest$ac_exeext &&
3969       $as_test_x conftest$ac_exeext; then
3970  ac_cv_lib_w_wschr=yes
3971else
3972  echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
3975	ac_cv_lib_w_wschr=no
3976fi
3977
3978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3979      conftest$ac_exeext conftest.$ac_ext
3980LIBS=$ac_check_lib_save_LIBS
3981fi
3982{ echo "$as_me:$LINENO: result: $ac_cv_lib_w_wschr" >&5
3983echo "${ECHO_T}$ac_cv_lib_w_wschr" >&6; }
3984if test $ac_cv_lib_w_wschr = yes; then
3985  cat >>confdefs.h <<_ACEOF
3986#define HAVE_LIBW 1
3987_ACEOF
3988
3989  LIBS="-lw $LIBS"
3990
3991fi
3992
3993fi
3994
3995{ echo "$as_me:$LINENO: checking for gettext" >&5
3996echo $ECHO_N "checking for gettext... $ECHO_C" >&6; }
3997if test "${ac_cv_func_gettext+set}" = set; then
3998  echo $ECHO_N "(cached) $ECHO_C" >&6
3999else
4000  cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h.  */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h.  */
4006/* Define gettext to an innocuous variant, in case <limits.h> declares gettext.
4007   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4008#define gettext innocuous_gettext
4009
4010/* System header to define __stub macros and hopefully few prototypes,
4011    which can conflict with char gettext (); below.
4012    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4013    <limits.h> exists even on freestanding compilers.  */
4014
4015#ifdef __STDC__
4016# include <limits.h>
4017#else
4018# include <assert.h>
4019#endif
4020
4021#undef gettext
4022
4023/* Override any GCC internal prototype to avoid an error.
4024   Use char because int might match the return type of a GCC
4025   builtin and then its argument prototype would still apply.  */
4026#ifdef __cplusplus
4027extern "C"
4028#endif
4029char gettext ();
4030/* The GNU C library defines this for functions which it implements
4031    to always fail with ENOSYS.  Some functions are actually named
4032    something starting with __ and the normal name is an alias.  */
4033#if defined __stub_gettext || defined __stub___gettext
4034choke me
4035#endif
4036
4037int
4038main ()
4039{
4040return gettext ();
4041  ;
4042  return 0;
4043}
4044_ACEOF
4045rm -f conftest.$ac_objext conftest$ac_exeext
4046if { (ac_try="$ac_link"
4047case "(($ac_try" in
4048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049  *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052  (eval "$ac_link") 2>conftest.er1
4053  ac_status=$?
4054  grep -v '^ *+' conftest.er1 >conftest.err
4055  rm -f conftest.er1
4056  cat conftest.err >&5
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); } && {
4059	 test -z "$ac_c_werror_flag" ||
4060	 test ! -s conftest.err
4061       } && test -s conftest$ac_exeext &&
4062       $as_test_x conftest$ac_exeext; then
4063  ac_cv_func_gettext=yes
4064else
4065  echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068	ac_cv_func_gettext=no
4069fi
4070
4071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4072      conftest$ac_exeext conftest.$ac_ext
4073fi
4074{ echo "$as_me:$LINENO: result: $ac_cv_func_gettext" >&5
4075echo "${ECHO_T}$ac_cv_func_gettext" >&6; }
4076if test $ac_cv_func_gettext = yes; then
4077  :
4078else
4079  unset ac_cv_func_gettext
4080
4081{ echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
4082echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
4083if test "${ac_cv_lib_intl_gettext+set}" = set; then
4084  echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
4086  ac_check_lib_save_LIBS=$LIBS
4087LIBS="-lintl  $LIBS"
4088cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h.  */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h.  */
4094
4095/* Override any GCC internal prototype to avoid an error.
4096   Use char because int might match the return type of a GCC
4097   builtin and then its argument prototype would still apply.  */
4098#ifdef __cplusplus
4099extern "C"
4100#endif
4101char gettext ();
4102int
4103main ()
4104{
4105return gettext ();
4106  ;
4107  return 0;
4108}
4109_ACEOF
4110rm -f conftest.$ac_objext conftest$ac_exeext
4111if { (ac_try="$ac_link"
4112case "(($ac_try" in
4113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114  *) ac_try_echo=$ac_try;;
4115esac
4116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117  (eval "$ac_link") 2>conftest.er1
4118  ac_status=$?
4119  grep -v '^ *+' conftest.er1 >conftest.err
4120  rm -f conftest.er1
4121  cat conftest.err >&5
4122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123  (exit $ac_status); } && {
4124	 test -z "$ac_c_werror_flag" ||
4125	 test ! -s conftest.err
4126       } && test -s conftest$ac_exeext &&
4127       $as_test_x conftest$ac_exeext; then
4128  ac_cv_lib_intl_gettext=yes
4129else
4130  echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133	ac_cv_lib_intl_gettext=no
4134fi
4135
4136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4137      conftest$ac_exeext conftest.$ac_ext
4138LIBS=$ac_check_lib_save_LIBS
4139fi
4140{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
4141echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
4142if test $ac_cv_lib_intl_gettext = yes; then
4143  cat >>confdefs.h <<_ACEOF
4144#define HAVE_LIBINTL 1
4145_ACEOF
4146
4147  LIBS="-lintl $LIBS"
4148
4149fi
4150
4151fi
4152
4153
4154{ echo "$as_me:$LINENO: checking for main in -lrx" >&5
4155echo $ECHO_N "checking for main in -lrx... $ECHO_C" >&6; }
4156if test "${ac_cv_lib_rx_main+set}" = set; then
4157  echo $ECHO_N "(cached) $ECHO_C" >&6
4158else
4159  ac_check_lib_save_LIBS=$LIBS
4160LIBS="-lrx  $LIBS"
4161cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h.  */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
4166/* end confdefs.h.  */
4167
4168
4169int
4170main ()
4171{
4172return main ();
4173  ;
4174  return 0;
4175}
4176_ACEOF
4177rm -f conftest.$ac_objext conftest$ac_exeext
4178if { (ac_try="$ac_link"
4179case "(($ac_try" in
4180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181  *) ac_try_echo=$ac_try;;
4182esac
4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184  (eval "$ac_link") 2>conftest.er1
4185  ac_status=$?
4186  grep -v '^ *+' conftest.er1 >conftest.err
4187  rm -f conftest.er1
4188  cat conftest.err >&5
4189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190  (exit $ac_status); } && {
4191	 test -z "$ac_c_werror_flag" ||
4192	 test ! -s conftest.err
4193       } && test -s conftest$ac_exeext &&
4194       $as_test_x conftest$ac_exeext; then
4195  ac_cv_lib_rx_main=yes
4196else
4197  echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200	ac_cv_lib_rx_main=no
4201fi
4202
4203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4204      conftest$ac_exeext conftest.$ac_ext
4205LIBS=$ac_check_lib_save_LIBS
4206fi
4207{ echo "$as_me:$LINENO: result: $ac_cv_lib_rx_main" >&5
4208echo "${ECHO_T}$ac_cv_lib_rx_main" >&6; }
4209if test $ac_cv_lib_rx_main = yes; then
4210  cat >>confdefs.h <<_ACEOF
4211#define HAVE_LIBRX 1
4212_ACEOF
4213
4214  LIBS="-lrx $LIBS"
4215
4216fi
4217ac_cv_lib_rx=ac_cv_lib_rx_main
4218
4219{ echo "$as_me:$LINENO: checking for setsockopt" >&5
4220echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
4221if test "${ac_cv_func_setsockopt+set}" = set; then
4222  echo $ECHO_N "(cached) $ECHO_C" >&6
4223else
4224  cat >conftest.$ac_ext <<_ACEOF
4225/* confdefs.h.  */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h.  */
4230/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
4231   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4232#define setsockopt innocuous_setsockopt
4233
4234/* System header to define __stub macros and hopefully few prototypes,
4235    which can conflict with char setsockopt (); below.
4236    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4237    <limits.h> exists even on freestanding compilers.  */
4238
4239#ifdef __STDC__
4240# include <limits.h>
4241#else
4242# include <assert.h>
4243#endif
4244
4245#undef setsockopt
4246
4247/* Override any GCC internal prototype to avoid an error.
4248   Use char because int might match the return type of a GCC
4249   builtin and then its argument prototype would still apply.  */
4250#ifdef __cplusplus
4251extern "C"
4252#endif
4253char setsockopt ();
4254/* The GNU C library defines this for functions which it implements
4255    to always fail with ENOSYS.  Some functions are actually named
4256    something starting with __ and the normal name is an alias.  */
4257#if defined __stub_setsockopt || defined __stub___setsockopt
4258choke me
4259#endif
4260
4261int
4262main ()
4263{
4264return setsockopt ();
4265  ;
4266  return 0;
4267}
4268_ACEOF
4269rm -f conftest.$ac_objext conftest$ac_exeext
4270if { (ac_try="$ac_link"
4271case "(($ac_try" in
4272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273  *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276  (eval "$ac_link") 2>conftest.er1
4277  ac_status=$?
4278  grep -v '^ *+' conftest.er1 >conftest.err
4279  rm -f conftest.er1
4280  cat conftest.err >&5
4281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282  (exit $ac_status); } && {
4283	 test -z "$ac_c_werror_flag" ||
4284	 test ! -s conftest.err
4285       } && test -s conftest$ac_exeext &&
4286       $as_test_x conftest$ac_exeext; then
4287  ac_cv_func_setsockopt=yes
4288else
4289  echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292	ac_cv_func_setsockopt=no
4293fi
4294
4295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4296      conftest$ac_exeext conftest.$ac_ext
4297fi
4298{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
4299echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
4300if test $ac_cv_func_setsockopt = yes; then
4301  :
4302else
4303  unset ac_cv_func_setsockopt
4304
4305{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
4306echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
4307if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
4308  echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310  ac_check_lib_save_LIBS=$LIBS
4311LIBS="-lsocket  $LIBS"
4312cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h.  */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h.  */
4318
4319/* Override any GCC internal prototype to avoid an error.
4320   Use char because int might match the return type of a GCC
4321   builtin and then its argument prototype would still apply.  */
4322#ifdef __cplusplus
4323extern "C"
4324#endif
4325char setsockopt ();
4326int
4327main ()
4328{
4329return setsockopt ();
4330  ;
4331  return 0;
4332}
4333_ACEOF
4334rm -f conftest.$ac_objext conftest$ac_exeext
4335if { (ac_try="$ac_link"
4336case "(($ac_try" in
4337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338  *) ac_try_echo=$ac_try;;
4339esac
4340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341  (eval "$ac_link") 2>conftest.er1
4342  ac_status=$?
4343  grep -v '^ *+' conftest.er1 >conftest.err
4344  rm -f conftest.er1
4345  cat conftest.err >&5
4346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347  (exit $ac_status); } && {
4348	 test -z "$ac_c_werror_flag" ||
4349	 test ! -s conftest.err
4350       } && test -s conftest$ac_exeext &&
4351       $as_test_x conftest$ac_exeext; then
4352  ac_cv_lib_socket_setsockopt=yes
4353else
4354  echo "$as_me: failed program was:" >&5
4355sed 's/^/| /' conftest.$ac_ext >&5
4356
4357	ac_cv_lib_socket_setsockopt=no
4358fi
4359
4360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4361      conftest$ac_exeext conftest.$ac_ext
4362LIBS=$ac_check_lib_save_LIBS
4363fi
4364{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
4365echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
4366if test $ac_cv_lib_socket_setsockopt = yes; then
4367  cat >>confdefs.h <<_ACEOF
4368#define HAVE_LIBSOCKET 1
4369_ACEOF
4370
4371  LIBS="-lsocket $LIBS"
4372
4373fi
4374
4375fi
4376
4377for ac_prog in gmsgfmt msgfmt
4378do
4379  # Extract the first word of "$ac_prog", so it can be a program name with args.
4380set dummy $ac_prog; ac_word=$2
4381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383if test "${ac_cv_prog_MSGFMT+set}" = set; then
4384  echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386  if test -n "$MSGFMT"; then
4387  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392  IFS=$as_save_IFS
4393  test -z "$as_dir" && as_dir=.
4394  for ac_exec_ext in '' $ac_executable_extensions; do
4395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396    ac_cv_prog_MSGFMT="$ac_prog"
4397    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398    break 2
4399  fi
4400done
4401done
4402IFS=$as_save_IFS
4403
4404fi
4405fi
4406MSGFMT=$ac_cv_prog_MSGFMT
4407if test -n "$MSGFMT"; then
4408  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4409echo "${ECHO_T}$MSGFMT" >&6; }
4410else
4411  { echo "$as_me:$LINENO: result: no" >&5
4412echo "${ECHO_T}no" >&6; }
4413fi
4414
4415
4416  test -n "$MSGFMT" && break
4417done
4418test -n "$MSGFMT" || MSGFMT="msgfmt"
4419
4420for ac_prog in gmsgcat msgcat
4421do
4422  # Extract the first word of "$ac_prog", so it can be a program name with args.
4423set dummy $ac_prog; ac_word=$2
4424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426if test "${ac_cv_prog_MSGCAT+set}" = set; then
4427  echo $ECHO_N "(cached) $ECHO_C" >&6
4428else
4429  if test -n "$MSGCAT"; then
4430  ac_cv_prog_MSGCAT="$MSGCAT" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435  IFS=$as_save_IFS
4436  test -z "$as_dir" && as_dir=.
4437  for ac_exec_ext in '' $ac_executable_extensions; do
4438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439    ac_cv_prog_MSGCAT="$ac_prog"
4440    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441    break 2
4442  fi
4443done
4444done
4445IFS=$as_save_IFS
4446
4447fi
4448fi
4449MSGCAT=$ac_cv_prog_MSGCAT
4450if test -n "$MSGCAT"; then
4451  { echo "$as_me:$LINENO: result: $MSGCAT" >&5
4452echo "${ECHO_T}$MSGCAT" >&6; }
4453else
4454  { echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6; }
4456fi
4457
4458
4459  test -n "$MSGCAT" && break
4460done
4461
4462for ac_prog in groff roff
4463do
4464  # Extract the first word of "$ac_prog", so it can be a program name with args.
4465set dummy $ac_prog; ac_word=$2
4466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4468if test "${ac_cv_prog_GROFF+set}" = set; then
4469  echo $ECHO_N "(cached) $ECHO_C" >&6
4470else
4471  if test -n "$GROFF"; then
4472  ac_cv_prog_GROFF="$GROFF" # Let the user override the test.
4473else
4474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH
4476do
4477  IFS=$as_save_IFS
4478  test -z "$as_dir" && as_dir=.
4479  for ac_exec_ext in '' $ac_executable_extensions; do
4480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481    ac_cv_prog_GROFF="$ac_prog"
4482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483    break 2
4484  fi
4485done
4486done
4487IFS=$as_save_IFS
4488
4489fi
4490fi
4491GROFF=$ac_cv_prog_GROFF
4492if test -n "$GROFF"; then
4493  { echo "$as_me:$LINENO: result: $GROFF" >&5
4494echo "${ECHO_T}$GROFF" >&6; }
4495else
4496  { echo "$as_me:$LINENO: result: no" >&5
4497echo "${ECHO_T}no" >&6; }
4498fi
4499
4500
4501  test -n "$GROFF" && break
4502done
4503
4504for ac_prog in remsh rsh
4505do
4506  # Extract the first word of "$ac_prog", so it can be a program name with args.
4507set dummy $ac_prog; ac_word=$2
4508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510if test "${ac_cv_prog_RSH+set}" = set; then
4511  echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513  if test -n "$RSH"; then
4514  ac_cv_prog_RSH="$RSH" # Let the user override the test.
4515else
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519  IFS=$as_save_IFS
4520  test -z "$as_dir" && as_dir=.
4521  for ac_exec_ext in '' $ac_executable_extensions; do
4522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523    ac_cv_prog_RSH="$ac_prog"
4524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525    break 2
4526  fi
4527done
4528done
4529IFS=$as_save_IFS
4530
4531fi
4532fi
4533RSH=$ac_cv_prog_RSH
4534if test -n "$RSH"; then
4535  { echo "$as_me:$LINENO: result: $RSH" >&5
4536echo "${ECHO_T}$RSH" >&6; }
4537else
4538  { echo "$as_me:$LINENO: result: no" >&5
4539echo "${ECHO_T}no" >&6; }
4540fi
4541
4542
4543  test -n "$RSH" && break
4544done
4545test -n "$RSH" || RSH="rsh"
4546
4547for ac_prog in perl
4548do
4549  # Extract the first word of "$ac_prog", so it can be a program name with args.
4550set dummy $ac_prog; ac_word=$2
4551{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4553if test "${ac_cv_path_PERL+set}" = set; then
4554  echo $ECHO_N "(cached) $ECHO_C" >&6
4555else
4556  case $PERL in
4557  [\\/]* | ?:[\\/]*)
4558  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4559  ;;
4560  *)
4561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564  IFS=$as_save_IFS
4565  test -z "$as_dir" && as_dir=.
4566  for ac_exec_ext in '' $ac_executable_extensions; do
4567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570    break 2
4571  fi
4572done
4573done
4574IFS=$as_save_IFS
4575
4576  ;;
4577esac
4578fi
4579PERL=$ac_cv_path_PERL
4580if test -n "$PERL"; then
4581  { echo "$as_me:$LINENO: result: $PERL" >&5
4582echo "${ECHO_T}$PERL" >&6; }
4583else
4584  { echo "$as_me:$LINENO: result: no" >&5
4585echo "${ECHO_T}no" >&6; }
4586fi
4587
4588
4589  test -n "$PERL" && break
4590done
4591test -n "$PERL" || PERL="/usr/bin/perl"
4592
4593
4594{ echo "$as_me:$LINENO: checking for working stdarg.h" >&5
4595echo $ECHO_N "checking for working stdarg.h... $ECHO_C" >&6; }
4596if test "$cross_compiling" = yes; then
4597  { echo "$as_me:$LINENO: result: cross" >&5
4598echo "${ECHO_T}cross" >&6; }
4599else
4600  cat >conftest.$ac_ext <<_ACEOF
4601/* confdefs.h.  */
4602_ACEOF
4603cat confdefs.h >>conftest.$ac_ext
4604cat >>conftest.$ac_ext <<_ACEOF
4605/* end confdefs.h.  */
4606
4607#include <stdarg.h>
4608char *foo = "test";
4609#if defined(__STDC__) && __STDC__
4610int test(char*,...);
4611int test(char *fmt, ...)
4612#else
4613int test(fmt)char *fmt;
4614#endif
4615{va_list ap;char*a;int x;
4616va_start(ap,fmt);a=va_arg(ap,char*);x=(a!=foo);va_end(ap);return x;}
4617int main(argc,argv)int argc;char**argv;{
4618exit(test("",foo));}
4619
4620_ACEOF
4621rm -f conftest$ac_exeext
4622if { (ac_try="$ac_link"
4623case "(($ac_try" in
4624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625  *) ac_try_echo=$ac_try;;
4626esac
4627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628  (eval "$ac_link") 2>&5
4629  ac_status=$?
4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632  { (case "(($ac_try" in
4633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634  *) ac_try_echo=$ac_try;;
4635esac
4636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637  (eval "$ac_try") 2>&5
4638  ac_status=$?
4639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640  (exit $ac_status); }; }; then
4641
4642cat >>confdefs.h <<\_ACEOF
4643#define HAVE_STDARG_H 1
4644_ACEOF
4645
4646{ echo "$as_me:$LINENO: result: yes" >&5
4647echo "${ECHO_T}yes" >&6; }
4648else
4649  echo "$as_me: program exited with status $ac_status" >&5
4650echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653( exit $ac_status )
4654{ echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6; }
4656fi
4657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4658fi
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683for ac_header in ar.h fcntl.h iso646.h libgettext.h libintl.h limits.h locale.h \
4684        memory.h mntent.h regex.h rxposix.h stddef.h stdlib.h string.h \
4685        sys/ioctl.h sys/utsname.h termios.h utime.h unistd.h wchar.h wctype.h \
4686        widec.h
4687do
4688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4690  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4693  echo $ECHO_N "(cached) $ECHO_C" >&6
4694fi
4695ac_res=`eval echo '${'$as_ac_Header'}'`
4696	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4697echo "${ECHO_T}$ac_res" >&6; }
4698else
4699  # Is the header compilable?
4700{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4702cat >conftest.$ac_ext <<_ACEOF
4703/* confdefs.h.  */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h.  */
4708$ac_includes_default
4709#include <$ac_header>
4710_ACEOF
4711rm -f conftest.$ac_objext
4712if { (ac_try="$ac_compile"
4713case "(($ac_try" in
4714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715  *) ac_try_echo=$ac_try;;
4716esac
4717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718  (eval "$ac_compile") 2>conftest.er1
4719  ac_status=$?
4720  grep -v '^ *+' conftest.er1 >conftest.err
4721  rm -f conftest.er1
4722  cat conftest.err >&5
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); } && {
4725	 test -z "$ac_c_werror_flag" ||
4726	 test ! -s conftest.err
4727       } && test -s conftest.$ac_objext; then
4728  ac_header_compiler=yes
4729else
4730  echo "$as_me: failed program was:" >&5
4731sed 's/^/| /' conftest.$ac_ext >&5
4732
4733	ac_header_compiler=no
4734fi
4735
4736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4738echo "${ECHO_T}$ac_header_compiler" >&6; }
4739
4740# Is the header present?
4741{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4743cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h.  */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h.  */
4749#include <$ac_header>
4750_ACEOF
4751if { (ac_try="$ac_cpp conftest.$ac_ext"
4752case "(($ac_try" in
4753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754  *) ac_try_echo=$ac_try;;
4755esac
4756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758  ac_status=$?
4759  grep -v '^ *+' conftest.er1 >conftest.err
4760  rm -f conftest.er1
4761  cat conftest.err >&5
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); } >/dev/null && {
4764	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765	 test ! -s conftest.err
4766       }; then
4767  ac_header_preproc=yes
4768else
4769  echo "$as_me: failed program was:" >&5
4770sed 's/^/| /' conftest.$ac_ext >&5
4771
4772  ac_header_preproc=no
4773fi
4774
4775rm -f conftest.err conftest.$ac_ext
4776{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4777echo "${ECHO_T}$ac_header_preproc" >&6; }
4778
4779# So?  What about this header?
4780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4781  yes:no: )
4782    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4784    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4786    ac_header_preproc=yes
4787    ;;
4788  no:yes:* )
4789    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4791    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4792echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4793    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4795    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4796echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4797    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4799    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4801
4802    ;;
4803esac
4804{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4807  echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809  eval "$as_ac_Header=\$ac_header_preproc"
4810fi
4811ac_res=`eval echo '${'$as_ac_Header'}'`
4812	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4813echo "${ECHO_T}$ac_res" >&6; }
4814
4815fi
4816if test `eval echo '${'$as_ac_Header'}'` = yes; then
4817  cat >>confdefs.h <<_ACEOF
4818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4819_ACEOF
4820
4821fi
4822
4823done
4824
4825
4826
4827
4828
4829
4830ac_header_dirent=no
4831for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4832  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4833{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4834echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4836  echo $ECHO_N "(cached) $ECHO_C" >&6
4837else
4838  cat >conftest.$ac_ext <<_ACEOF
4839/* confdefs.h.  */
4840_ACEOF
4841cat confdefs.h >>conftest.$ac_ext
4842cat >>conftest.$ac_ext <<_ACEOF
4843/* end confdefs.h.  */
4844#include <sys/types.h>
4845#include <$ac_hdr>
4846
4847int
4848main ()
4849{
4850if ((DIR *) 0)
4851return 0;
4852  ;
4853  return 0;
4854}
4855_ACEOF
4856rm -f conftest.$ac_objext
4857if { (ac_try="$ac_compile"
4858case "(($ac_try" in
4859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860  *) ac_try_echo=$ac_try;;
4861esac
4862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863  (eval "$ac_compile") 2>conftest.er1
4864  ac_status=$?
4865  grep -v '^ *+' conftest.er1 >conftest.err
4866  rm -f conftest.er1
4867  cat conftest.err >&5
4868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869  (exit $ac_status); } && {
4870	 test -z "$ac_c_werror_flag" ||
4871	 test ! -s conftest.err
4872       } && test -s conftest.$ac_objext; then
4873  eval "$as_ac_Header=yes"
4874else
4875  echo "$as_me: failed program was:" >&5
4876sed 's/^/| /' conftest.$ac_ext >&5
4877
4878	eval "$as_ac_Header=no"
4879fi
4880
4881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882fi
4883ac_res=`eval echo '${'$as_ac_Header'}'`
4884	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4885echo "${ECHO_T}$ac_res" >&6; }
4886if test `eval echo '${'$as_ac_Header'}'` = yes; then
4887  cat >>confdefs.h <<_ACEOF
4888#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4889_ACEOF
4890
4891ac_header_dirent=$ac_hdr; break
4892fi
4893
4894done
4895# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4896if test $ac_header_dirent = dirent.h; then
4897  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4898echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4899if test "${ac_cv_search_opendir+set}" = set; then
4900  echo $ECHO_N "(cached) $ECHO_C" >&6
4901else
4902  ac_func_search_save_LIBS=$LIBS
4903cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909
4910/* Override any GCC internal prototype to avoid an error.
4911   Use char because int might match the return type of a GCC
4912   builtin and then its argument prototype would still apply.  */
4913#ifdef __cplusplus
4914extern "C"
4915#endif
4916char opendir ();
4917int
4918main ()
4919{
4920return opendir ();
4921  ;
4922  return 0;
4923}
4924_ACEOF
4925for ac_lib in '' dir; do
4926  if test -z "$ac_lib"; then
4927    ac_res="none required"
4928  else
4929    ac_res=-l$ac_lib
4930    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4931  fi
4932  rm -f conftest.$ac_objext conftest$ac_exeext
4933if { (ac_try="$ac_link"
4934case "(($ac_try" in
4935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936  *) ac_try_echo=$ac_try;;
4937esac
4938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939  (eval "$ac_link") 2>conftest.er1
4940  ac_status=$?
4941  grep -v '^ *+' conftest.er1 >conftest.err
4942  rm -f conftest.er1
4943  cat conftest.err >&5
4944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945  (exit $ac_status); } && {
4946	 test -z "$ac_c_werror_flag" ||
4947	 test ! -s conftest.err
4948       } && test -s conftest$ac_exeext &&
4949       $as_test_x conftest$ac_exeext; then
4950  ac_cv_search_opendir=$ac_res
4951else
4952  echo "$as_me: failed program was:" >&5
4953sed 's/^/| /' conftest.$ac_ext >&5
4954
4955
4956fi
4957
4958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4959      conftest$ac_exeext
4960  if test "${ac_cv_search_opendir+set}" = set; then
4961  break
4962fi
4963done
4964if test "${ac_cv_search_opendir+set}" = set; then
4965  :
4966else
4967  ac_cv_search_opendir=no
4968fi
4969rm conftest.$ac_ext
4970LIBS=$ac_func_search_save_LIBS
4971fi
4972{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4973echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4974ac_res=$ac_cv_search_opendir
4975if test "$ac_res" != no; then
4976  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4977
4978fi
4979
4980else
4981  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4982echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4983if test "${ac_cv_search_opendir+set}" = set; then
4984  echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986  ac_func_search_save_LIBS=$LIBS
4987cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h.  */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h.  */
4993
4994/* Override any GCC internal prototype to avoid an error.
4995   Use char because int might match the return type of a GCC
4996   builtin and then its argument prototype would still apply.  */
4997#ifdef __cplusplus
4998extern "C"
4999#endif
5000char opendir ();
5001int
5002main ()
5003{
5004return opendir ();
5005  ;
5006  return 0;
5007}
5008_ACEOF
5009for ac_lib in '' x; do
5010  if test -z "$ac_lib"; then
5011    ac_res="none required"
5012  else
5013    ac_res=-l$ac_lib
5014    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5015  fi
5016  rm -f conftest.$ac_objext conftest$ac_exeext
5017if { (ac_try="$ac_link"
5018case "(($ac_try" in
5019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020  *) ac_try_echo=$ac_try;;
5021esac
5022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023  (eval "$ac_link") 2>conftest.er1
5024  ac_status=$?
5025  grep -v '^ *+' conftest.er1 >conftest.err
5026  rm -f conftest.er1
5027  cat conftest.err >&5
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); } && {
5030	 test -z "$ac_c_werror_flag" ||
5031	 test ! -s conftest.err
5032       } && test -s conftest$ac_exeext &&
5033       $as_test_x conftest$ac_exeext; then
5034  ac_cv_search_opendir=$ac_res
5035else
5036  echo "$as_me: failed program was:" >&5
5037sed 's/^/| /' conftest.$ac_ext >&5
5038
5039
5040fi
5041
5042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5043      conftest$ac_exeext
5044  if test "${ac_cv_search_opendir+set}" = set; then
5045  break
5046fi
5047done
5048if test "${ac_cv_search_opendir+set}" = set; then
5049  :
5050else
5051  ac_cv_search_opendir=no
5052fi
5053rm conftest.$ac_ext
5054LIBS=$ac_func_search_save_LIBS
5055fi
5056{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5057echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5058ac_res=$ac_cv_search_opendir
5059if test "$ac_res" != no; then
5060  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5061
5062fi
5063
5064fi
5065
5066{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5067echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5068if test "${ac_cv_type_signal+set}" = set; then
5069  echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071  cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h.  */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h.  */
5077#include <sys/types.h>
5078#include <signal.h>
5079
5080int
5081main ()
5082{
5083return *(signal (0, 0)) (0) == 1;
5084  ;
5085  return 0;
5086}
5087_ACEOF
5088rm -f conftest.$ac_objext
5089if { (ac_try="$ac_compile"
5090case "(($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_compile") 2>conftest.er1
5096  ac_status=$?
5097  grep -v '^ *+' conftest.er1 >conftest.err
5098  rm -f conftest.er1
5099  cat conftest.err >&5
5100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101  (exit $ac_status); } && {
5102	 test -z "$ac_c_werror_flag" ||
5103	 test ! -s conftest.err
5104       } && test -s conftest.$ac_objext; then
5105  ac_cv_type_signal=int
5106else
5107  echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110	ac_cv_type_signal=void
5111fi
5112
5113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114fi
5115{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5116echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5117
5118cat >>confdefs.h <<_ACEOF
5119#define RETSIGTYPE $ac_cv_type_signal
5120_ACEOF
5121
5122
5123{ echo "$as_me:$LINENO: checking for size_t" >&5
5124echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5125if test "${ac_cv_type_size_t+set}" = set; then
5126  echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128  cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h.  */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h.  */
5134$ac_includes_default
5135typedef size_t ac__type_new_;
5136int
5137main ()
5138{
5139if ((ac__type_new_ *) 0)
5140  return 0;
5141if (sizeof (ac__type_new_))
5142  return 0;
5143  ;
5144  return 0;
5145}
5146_ACEOF
5147rm -f conftest.$ac_objext
5148if { (ac_try="$ac_compile"
5149case "(($ac_try" in
5150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151  *) ac_try_echo=$ac_try;;
5152esac
5153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5154  (eval "$ac_compile") 2>conftest.er1
5155  ac_status=$?
5156  grep -v '^ *+' conftest.er1 >conftest.err
5157  rm -f conftest.er1
5158  cat conftest.err >&5
5159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160  (exit $ac_status); } && {
5161	 test -z "$ac_c_werror_flag" ||
5162	 test ! -s conftest.err
5163       } && test -s conftest.$ac_objext; then
5164  ac_cv_type_size_t=yes
5165else
5166  echo "$as_me: failed program was:" >&5
5167sed 's/^/| /' conftest.$ac_ext >&5
5168
5169	ac_cv_type_size_t=no
5170fi
5171
5172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173fi
5174{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5175echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5176if test $ac_cv_type_size_t = yes; then
5177  :
5178else
5179
5180cat >>confdefs.h <<_ACEOF
5181#define size_t unsigned int
5182_ACEOF
5183
5184fi
5185
5186{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5187echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5188if test "${ac_cv_header_time+set}" = set; then
5189  echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191  cat >conftest.$ac_ext <<_ACEOF
5192/* confdefs.h.  */
5193_ACEOF
5194cat confdefs.h >>conftest.$ac_ext
5195cat >>conftest.$ac_ext <<_ACEOF
5196/* end confdefs.h.  */
5197#include <sys/types.h>
5198#include <sys/time.h>
5199#include <time.h>
5200
5201int
5202main ()
5203{
5204if ((struct tm *) 0)
5205return 0;
5206  ;
5207  return 0;
5208}
5209_ACEOF
5210rm -f conftest.$ac_objext
5211if { (ac_try="$ac_compile"
5212case "(($ac_try" in
5213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214  *) ac_try_echo=$ac_try;;
5215esac
5216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217  (eval "$ac_compile") 2>conftest.er1
5218  ac_status=$?
5219  grep -v '^ *+' conftest.er1 >conftest.err
5220  rm -f conftest.er1
5221  cat conftest.err >&5
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); } && {
5224	 test -z "$ac_c_werror_flag" ||
5225	 test ! -s conftest.err
5226       } && test -s conftest.$ac_objext; then
5227  ac_cv_header_time=yes
5228else
5229  echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
5231
5232	ac_cv_header_time=no
5233fi
5234
5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236fi
5237{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5238echo "${ECHO_T}$ac_cv_header_time" >&6; }
5239if test $ac_cv_header_time = yes; then
5240
5241cat >>confdefs.h <<\_ACEOF
5242#define TIME_WITH_SYS_TIME 1
5243_ACEOF
5244
5245fi
5246
5247{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5248echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5249if test "${ac_cv_c_const+set}" = set; then
5250  echo $ECHO_N "(cached) $ECHO_C" >&6
5251else
5252  cat >conftest.$ac_ext <<_ACEOF
5253/* confdefs.h.  */
5254_ACEOF
5255cat confdefs.h >>conftest.$ac_ext
5256cat >>conftest.$ac_ext <<_ACEOF
5257/* end confdefs.h.  */
5258
5259int
5260main ()
5261{
5262/* FIXME: Include the comments suggested by Paul. */
5263#ifndef __cplusplus
5264  /* Ultrix mips cc rejects this.  */
5265  typedef int charset[2];
5266  const charset cs;
5267  /* SunOS 4.1.1 cc rejects this.  */
5268  char const *const *pcpcc;
5269  char **ppc;
5270  /* NEC SVR4.0.2 mips cc rejects this.  */
5271  struct point {int x, y;};
5272  static struct point const zero = {0,0};
5273  /* AIX XL C 1.02.0.0 rejects this.
5274     It does not let you subtract one const X* pointer from another in
5275     an arm of an if-expression whose if-part is not a constant
5276     expression */
5277  const char *g = "string";
5278  pcpcc = &g + (g ? g-g : 0);
5279  /* HPUX 7.0 cc rejects these. */
5280  ++pcpcc;
5281  ppc = (char**) pcpcc;
5282  pcpcc = (char const *const *) ppc;
5283  { /* SCO 3.2v4 cc rejects this.  */
5284    char *t;
5285    char const *s = 0 ? (char *) 0 : (char const *) 0;
5286
5287    *t++ = 0;
5288    if (s) return 0;
5289  }
5290  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5291    int x[] = {25, 17};
5292    const int *foo = &x[0];
5293    ++foo;
5294  }
5295  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5296    typedef const int *iptr;
5297    iptr p = 0;
5298    ++p;
5299  }
5300  { /* AIX XL C 1.02.0.0 rejects this saying
5301       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5302    struct s { int j; const int *ap[3]; };
5303    struct s *b; b->j = 5;
5304  }
5305  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5306    const int foo = 10;
5307    if (!foo) return 0;
5308  }
5309  return !cs[0] && !zero.x;
5310#endif
5311
5312  ;
5313  return 0;
5314}
5315_ACEOF
5316rm -f conftest.$ac_objext
5317if { (ac_try="$ac_compile"
5318case "(($ac_try" in
5319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320  *) ac_try_echo=$ac_try;;
5321esac
5322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323  (eval "$ac_compile") 2>conftest.er1
5324  ac_status=$?
5325  grep -v '^ *+' conftest.er1 >conftest.err
5326  rm -f conftest.er1
5327  cat conftest.err >&5
5328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329  (exit $ac_status); } && {
5330	 test -z "$ac_c_werror_flag" ||
5331	 test ! -s conftest.err
5332       } && test -s conftest.$ac_objext; then
5333  ac_cv_c_const=yes
5334else
5335  echo "$as_me: failed program was:" >&5
5336sed 's/^/| /' conftest.$ac_ext >&5
5337
5338	ac_cv_c_const=no
5339fi
5340
5341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342fi
5343{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5344echo "${ECHO_T}$ac_cv_c_const" >&6; }
5345if test $ac_cv_c_const = no; then
5346
5347cat >>confdefs.h <<\_ACEOF
5348#define const
5349_ACEOF
5350
5351fi
5352
5353{ echo "$as_me:$LINENO: checking for long file names" >&5
5354echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
5355if test "${ac_cv_sys_long_file_names+set}" = set; then
5356  echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358  ac_cv_sys_long_file_names=yes
5359# Test for long file names in all the places we know might matter:
5360#      .		the current directory, where building will happen
5361#      $prefix/lib	where we will be installing things
5362#      $exec_prefix/lib	likewise
5363#      $TMPDIR		if set, where it might want to write temporary files
5364#      /tmp		where it might want to write temporary files
5365#      /var/tmp		likewise
5366#      /usr/tmp		likewise
5367for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
5368  # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
5369  # in the usual case where exec_prefix is '${prefix}'.
5370  case $ac_dir in #(
5371    . | /* | ?:[\\/]*) ;; #(
5372    *) continue;;
5373  esac
5374  test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
5375  ac_xdir=$ac_dir/cf$$
5376  (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
5377  ac_tf1=$ac_xdir/conftest9012345
5378  ac_tf2=$ac_xdir/conftest9012346
5379  touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
5380    ac_cv_sys_long_file_names=no
5381  rm -f -r "$ac_xdir" 2>/dev/null
5382  test $ac_cv_sys_long_file_names = no && break
5383done
5384fi
5385{ echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
5386echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
5387if test $ac_cv_sys_long_file_names = yes; then
5388
5389cat >>confdefs.h <<\_ACEOF
5390#define HAVE_LONG_FILE_NAMES 1
5391_ACEOF
5392
5393fi
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421for ac_func in \
5422        gethostname \
5423        getpgrp \
5424        getrusage \
5425        gettext \
5426        gettimeofday \
5427        iswctype \
5428        mblen \
5429        pathconf \
5430        regcomp \
5431        setlocale \
5432        snprintf \
5433        strcasecmp \
5434        strendcpy \
5435        strerror \
5436        strftime \
5437        strlcat \
5438        strlcpy \
5439        strncasecmp \
5440        strsignal \
5441        strtol \
5442        tcgetpgrp \
5443        uname \
5444        vsnprintf \
5445        wait3 \
5446        wait4 \
5447        wcslen \
5448
5449do
5450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5451{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5453if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5454  echo $ECHO_N "(cached) $ECHO_C" >&6
5455else
5456  cat >conftest.$ac_ext <<_ACEOF
5457/* confdefs.h.  */
5458_ACEOF
5459cat confdefs.h >>conftest.$ac_ext
5460cat >>conftest.$ac_ext <<_ACEOF
5461/* end confdefs.h.  */
5462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5463   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5464#define $ac_func innocuous_$ac_func
5465
5466/* System header to define __stub macros and hopefully few prototypes,
5467    which can conflict with char $ac_func (); below.
5468    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5469    <limits.h> exists even on freestanding compilers.  */
5470
5471#ifdef __STDC__
5472# include <limits.h>
5473#else
5474# include <assert.h>
5475#endif
5476
5477#undef $ac_func
5478
5479/* Override any GCC internal prototype to avoid an error.
5480   Use char because int might match the return type of a GCC
5481   builtin and then its argument prototype would still apply.  */
5482#ifdef __cplusplus
5483extern "C"
5484#endif
5485char $ac_func ();
5486/* The GNU C library defines this for functions which it implements
5487    to always fail with ENOSYS.  Some functions are actually named
5488    something starting with __ and the normal name is an alias.  */
5489#if defined __stub_$ac_func || defined __stub___$ac_func
5490choke me
5491#endif
5492
5493int
5494main ()
5495{
5496return $ac_func ();
5497  ;
5498  return 0;
5499}
5500_ACEOF
5501rm -f conftest.$ac_objext conftest$ac_exeext
5502if { (ac_try="$ac_link"
5503case "(($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_link") 2>conftest.er1
5509  ac_status=$?
5510  grep -v '^ *+' conftest.er1 >conftest.err
5511  rm -f conftest.er1
5512  cat conftest.err >&5
5513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); } && {
5515	 test -z "$ac_c_werror_flag" ||
5516	 test ! -s conftest.err
5517       } && test -s conftest$ac_exeext &&
5518       $as_test_x conftest$ac_exeext; then
5519  eval "$as_ac_var=yes"
5520else
5521  echo "$as_me: failed program was:" >&5
5522sed 's/^/| /' conftest.$ac_ext >&5
5523
5524	eval "$as_ac_var=no"
5525fi
5526
5527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5528      conftest$ac_exeext conftest.$ac_ext
5529fi
5530ac_res=`eval echo '${'$as_ac_var'}'`
5531	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5532echo "${ECHO_T}$ac_res" >&6; }
5533if test `eval echo '${'$as_ac_var'}'` = yes; then
5534  cat >>confdefs.h <<_ACEOF
5535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5536_ACEOF
5537
5538fi
5539done
5540
5541
5542{ echo "$as_me:$LINENO: checking for wint_t" >&5
5543echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5544cat >conftest.$ac_ext <<_ACEOF
5545/* confdefs.h.  */
5546_ACEOF
5547cat confdefs.h >>conftest.$ac_ext
5548cat >>conftest.$ac_ext <<_ACEOF
5549/* end confdefs.h.  */
5550
5551#ifdef HAVE_WCHAR_H
5552#include <wchar.h>
5553#endif
5554
5555int
5556main ()
5557{
5558 wint_t x;
5559  ;
5560  return 0;
5561}
5562_ACEOF
5563rm -f conftest.$ac_objext
5564if { (ac_try="$ac_compile"
5565case "(($ac_try" in
5566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567  *) ac_try_echo=$ac_try;;
5568esac
5569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570  (eval "$ac_compile") 2>conftest.er1
5571  ac_status=$?
5572  grep -v '^ *+' conftest.er1 >conftest.err
5573  rm -f conftest.er1
5574  cat conftest.err >&5
5575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576  (exit $ac_status); } && {
5577	 test -z "$ac_c_werror_flag" ||
5578	 test ! -s conftest.err
5579       } && test -s conftest.$ac_objext; then
5580
5581cat >>confdefs.h <<\_ACEOF
5582#define HAVE_WINT_T 1
5583_ACEOF
5584
5585{ echo "$as_me:$LINENO: result: yes" >&5
5586echo "${ECHO_T}yes" >&6; }
5587else
5588  echo "$as_me: failed program was:" >&5
5589sed 's/^/| /' conftest.$ac_ext >&5
5590
5591	{ echo "$as_me:$LINENO: result: no" >&5
5592echo "${ECHO_T}no" >&6; }
5593fi
5594
5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596{ echo "$as_me:$LINENO: checking for working iswprint" >&5
5597echo $ECHO_N "checking for working iswprint... $ECHO_C" >&6; }
5598if test "$cross_compiling" = yes; then
5599  { echo "$as_me:$LINENO: result: cross" >&5
5600echo "${ECHO_T}cross" >&6; }
5601else
5602  cat >conftest.$ac_ext <<_ACEOF
5603/* confdefs.h.  */
5604_ACEOF
5605cat confdefs.h >>conftest.$ac_ext
5606cat >>conftest.$ac_ext <<_ACEOF
5607/* end confdefs.h.  */
5608
5609#include <ctype.h>
5610#ifdef HAVE_WIDEC_H
5611#include <widec.h>
5612#endif
5613#ifdef HAVE_WCTYPE_H
5614#include <wctype.h>
5615#endif
5616int main(argc,argv)int argc;char**argv;{
5617exit(iswprint('a') == 0);}
5618
5619_ACEOF
5620rm -f conftest$ac_exeext
5621if { (ac_try="$ac_link"
5622case "(($ac_try" in
5623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624  *) ac_try_echo=$ac_try;;
5625esac
5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627  (eval "$ac_link") 2>&5
5628  ac_status=$?
5629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5631  { (case "(($ac_try" in
5632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633  *) ac_try_echo=$ac_try;;
5634esac
5635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636  (eval "$ac_try") 2>&5
5637  ac_status=$?
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); }; }; then
5640
5641cat >>confdefs.h <<\_ACEOF
5642#define HAVE_ISWPRINT 1
5643_ACEOF
5644
5645{ echo "$as_me:$LINENO: result: yes" >&5
5646echo "${ECHO_T}yes" >&6; }
5647else
5648  echo "$as_me: program exited with status $ac_status" >&5
5649echo "$as_me: failed program was:" >&5
5650sed 's/^/| /' conftest.$ac_ext >&5
5651
5652( exit $ac_status )
5653{ echo "$as_me:$LINENO: result: no" >&5
5654echo "${ECHO_T}no" >&6; }
5655fi
5656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5657fi
5658
5659
5660{ echo "$as_me:$LINENO: checking for location of SCCS get command" >&5
5661echo $ECHO_N "checking for location of SCCS get command... $ECHO_C" >&6; }
5662if test -f /usr/sccs/get; then
5663  SCCS_GET=/usr/sccs/get
5664
5665cat >>confdefs.h <<\_ACEOF
5666#define SCCS_GET "/usr/sccs/get"
5667_ACEOF
5668
5669else
5670  SCCS_GET=get
5671
5672cat >>confdefs.h <<\_ACEOF
5673#define SCCS_GET "get"
5674_ACEOF
5675
5676fi
5677{ echo "$as_me:$LINENO: result: $SCCS_GET" >&5
5678echo "${ECHO_T}$SCCS_GET" >&6; }
5679ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
5680
5681{ echo "$as_me:$LINENO: checking for appropriate getpgrp argument" >&5
5682echo $ECHO_N "checking for appropriate getpgrp argument... $ECHO_C" >&6; }
5683if test "$cross_compiling" = yes; then
5684  { echo "$as_me:$LINENO: result: cross" >&5
5685echo "${ECHO_T}cross" >&6; }
5686else
5687  cat >conftest.$ac_ext <<_ACEOF
5688/* confdefs.h.  */
5689_ACEOF
5690cat confdefs.h >>conftest.$ac_ext
5691cat >>conftest.$ac_ext <<_ACEOF
5692/* end confdefs.h.  */
5693
5694int main(argc, argv) int argc; char **argv; {
5695#ifdef HAVE_GETPGRP
5696if (getpgrp(32767) == getpgrp(0)) exit(2);
5697#endif
5698exit(0); }
5699
5700_ACEOF
5701rm -f conftest$ac_exeext
5702if { (ac_try="$ac_link"
5703case "(($ac_try" in
5704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705  *) ac_try_echo=$ac_try;;
5706esac
5707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708  (eval "$ac_link") 2>&5
5709  ac_status=$?
5710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5712  { (case "(($ac_try" in
5713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714  *) ac_try_echo=$ac_try;;
5715esac
5716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717  (eval "$ac_try") 2>&5
5718  ac_status=$?
5719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); }; }; then
5721
5722cat >>confdefs.h <<\_ACEOF
5723#define CONF_getpgrp_arg 0
5724_ACEOF
5725
5726{ echo "$as_me:$LINENO: result: zero" >&5
5727echo "${ECHO_T}zero" >&6; }
5728else
5729  echo "$as_me: program exited with status $ac_status" >&5
5730echo "$as_me: failed program was:" >&5
5731sed 's/^/| /' conftest.$ac_ext >&5
5732
5733( exit $ac_status )
5734
5735cat >>confdefs.h <<\_ACEOF
5736#define CONF_getpgrp_arg
5737_ACEOF
5738
5739{ echo "$as_me:$LINENO: result: empty" >&5
5740echo "${ECHO_T}empty" >&6; }
5741fi
5742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5743fi
5744
5745
5746{ echo "$as_me:$LINENO: checking for long" >&5
5747echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5748if test "${ac_cv_type_long+set}" = set; then
5749  echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751  cat >conftest.$ac_ext <<_ACEOF
5752/* confdefs.h.  */
5753_ACEOF
5754cat confdefs.h >>conftest.$ac_ext
5755cat >>conftest.$ac_ext <<_ACEOF
5756/* end confdefs.h.  */
5757$ac_includes_default
5758typedef long ac__type_new_;
5759int
5760main ()
5761{
5762if ((ac__type_new_ *) 0)
5763  return 0;
5764if (sizeof (ac__type_new_))
5765  return 0;
5766  ;
5767  return 0;
5768}
5769_ACEOF
5770rm -f conftest.$ac_objext
5771if { (ac_try="$ac_compile"
5772case "(($ac_try" in
5773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774  *) ac_try_echo=$ac_try;;
5775esac
5776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777  (eval "$ac_compile") 2>conftest.er1
5778  ac_status=$?
5779  grep -v '^ *+' conftest.er1 >conftest.err
5780  rm -f conftest.er1
5781  cat conftest.err >&5
5782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783  (exit $ac_status); } && {
5784	 test -z "$ac_c_werror_flag" ||
5785	 test ! -s conftest.err
5786       } && test -s conftest.$ac_objext; then
5787  ac_cv_type_long=yes
5788else
5789  echo "$as_me: failed program was:" >&5
5790sed 's/^/| /' conftest.$ac_ext >&5
5791
5792	ac_cv_type_long=no
5793fi
5794
5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796fi
5797{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5798echo "${ECHO_T}$ac_cv_type_long" >&6; }
5799
5800# The cast to long int works around a bug in the HP C Compiler
5801# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5802# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5803# This bug is HP SR number 8606223364.
5804{ echo "$as_me:$LINENO: checking size of long" >&5
5805echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5806if test "${ac_cv_sizeof_long+set}" = set; then
5807  echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809  if test "$cross_compiling" = yes; then
5810  # Depending upon the size, compute the lo and hi bounds.
5811cat >conftest.$ac_ext <<_ACEOF
5812/* confdefs.h.  */
5813_ACEOF
5814cat confdefs.h >>conftest.$ac_ext
5815cat >>conftest.$ac_ext <<_ACEOF
5816/* end confdefs.h.  */
5817$ac_includes_default
5818   typedef long ac__type_sizeof_;
5819int
5820main ()
5821{
5822static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5823test_array [0] = 0
5824
5825  ;
5826  return 0;
5827}
5828_ACEOF
5829rm -f conftest.$ac_objext
5830if { (ac_try="$ac_compile"
5831case "(($ac_try" in
5832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833  *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836  (eval "$ac_compile") 2>conftest.er1
5837  ac_status=$?
5838  grep -v '^ *+' conftest.er1 >conftest.err
5839  rm -f conftest.er1
5840  cat conftest.err >&5
5841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842  (exit $ac_status); } && {
5843	 test -z "$ac_c_werror_flag" ||
5844	 test ! -s conftest.err
5845       } && test -s conftest.$ac_objext; then
5846  ac_lo=0 ac_mid=0
5847  while :; do
5848    cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h.  */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h.  */
5854$ac_includes_default
5855   typedef long ac__type_sizeof_;
5856int
5857main ()
5858{
5859static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5860test_array [0] = 0
5861
5862  ;
5863  return 0;
5864}
5865_ACEOF
5866rm -f conftest.$ac_objext
5867if { (ac_try="$ac_compile"
5868case "(($ac_try" in
5869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870  *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873  (eval "$ac_compile") 2>conftest.er1
5874  ac_status=$?
5875  grep -v '^ *+' conftest.er1 >conftest.err
5876  rm -f conftest.er1
5877  cat conftest.err >&5
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); } && {
5880	 test -z "$ac_c_werror_flag" ||
5881	 test ! -s conftest.err
5882       } && test -s conftest.$ac_objext; then
5883  ac_hi=$ac_mid; break
5884else
5885  echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888	ac_lo=`expr $ac_mid + 1`
5889			if test $ac_lo -le $ac_mid; then
5890			  ac_lo= ac_hi=
5891			  break
5892			fi
5893			ac_mid=`expr 2 '*' $ac_mid + 1`
5894fi
5895
5896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897  done
5898else
5899  echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902	cat >conftest.$ac_ext <<_ACEOF
5903/* confdefs.h.  */
5904_ACEOF
5905cat confdefs.h >>conftest.$ac_ext
5906cat >>conftest.$ac_ext <<_ACEOF
5907/* end confdefs.h.  */
5908$ac_includes_default
5909   typedef long ac__type_sizeof_;
5910int
5911main ()
5912{
5913static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5914test_array [0] = 0
5915
5916  ;
5917  return 0;
5918}
5919_ACEOF
5920rm -f conftest.$ac_objext
5921if { (ac_try="$ac_compile"
5922case "(($ac_try" in
5923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924  *) ac_try_echo=$ac_try;;
5925esac
5926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927  (eval "$ac_compile") 2>conftest.er1
5928  ac_status=$?
5929  grep -v '^ *+' conftest.er1 >conftest.err
5930  rm -f conftest.er1
5931  cat conftest.err >&5
5932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933  (exit $ac_status); } && {
5934	 test -z "$ac_c_werror_flag" ||
5935	 test ! -s conftest.err
5936       } && test -s conftest.$ac_objext; then
5937  ac_hi=-1 ac_mid=-1
5938  while :; do
5939    cat >conftest.$ac_ext <<_ACEOF
5940/* confdefs.h.  */
5941_ACEOF
5942cat confdefs.h >>conftest.$ac_ext
5943cat >>conftest.$ac_ext <<_ACEOF
5944/* end confdefs.h.  */
5945$ac_includes_default
5946   typedef long ac__type_sizeof_;
5947int
5948main ()
5949{
5950static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5951test_array [0] = 0
5952
5953  ;
5954  return 0;
5955}
5956_ACEOF
5957rm -f conftest.$ac_objext
5958if { (ac_try="$ac_compile"
5959case "(($ac_try" in
5960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961  *) ac_try_echo=$ac_try;;
5962esac
5963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964  (eval "$ac_compile") 2>conftest.er1
5965  ac_status=$?
5966  grep -v '^ *+' conftest.er1 >conftest.err
5967  rm -f conftest.er1
5968  cat conftest.err >&5
5969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970  (exit $ac_status); } && {
5971	 test -z "$ac_c_werror_flag" ||
5972	 test ! -s conftest.err
5973       } && test -s conftest.$ac_objext; then
5974  ac_lo=$ac_mid; break
5975else
5976  echo "$as_me: failed program was:" >&5
5977sed 's/^/| /' conftest.$ac_ext >&5
5978
5979	ac_hi=`expr '(' $ac_mid ')' - 1`
5980			if test $ac_mid -le $ac_hi; then
5981			  ac_lo= ac_hi=
5982			  break
5983			fi
5984			ac_mid=`expr 2 '*' $ac_mid`
5985fi
5986
5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988  done
5989else
5990  echo "$as_me: failed program was:" >&5
5991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993	ac_lo= ac_hi=
5994fi
5995
5996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997fi
5998
5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000# Binary search between lo and hi bounds.
6001while test "x$ac_lo" != "x$ac_hi"; do
6002  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6003  cat >conftest.$ac_ext <<_ACEOF
6004/* confdefs.h.  */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h.  */
6009$ac_includes_default
6010   typedef long ac__type_sizeof_;
6011int
6012main ()
6013{
6014static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6015test_array [0] = 0
6016
6017  ;
6018  return 0;
6019}
6020_ACEOF
6021rm -f conftest.$ac_objext
6022if { (ac_try="$ac_compile"
6023case "(($ac_try" in
6024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025  *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028  (eval "$ac_compile") 2>conftest.er1
6029  ac_status=$?
6030  grep -v '^ *+' conftest.er1 >conftest.err
6031  rm -f conftest.er1
6032  cat conftest.err >&5
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); } && {
6035	 test -z "$ac_c_werror_flag" ||
6036	 test ! -s conftest.err
6037       } && test -s conftest.$ac_objext; then
6038  ac_hi=$ac_mid
6039else
6040  echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
6042
6043	ac_lo=`expr '(' $ac_mid ')' + 1`
6044fi
6045
6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047done
6048case $ac_lo in
6049?*) ac_cv_sizeof_long=$ac_lo;;
6050'') if test "$ac_cv_type_long" = yes; then
6051     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6052See \`config.log' for more details." >&5
6053echo "$as_me: error: cannot compute sizeof (long)
6054See \`config.log' for more details." >&2;}
6055   { (exit 77); exit 77; }; }
6056   else
6057     ac_cv_sizeof_long=0
6058   fi ;;
6059esac
6060else
6061  cat >conftest.$ac_ext <<_ACEOF
6062/* confdefs.h.  */
6063_ACEOF
6064cat confdefs.h >>conftest.$ac_ext
6065cat >>conftest.$ac_ext <<_ACEOF
6066/* end confdefs.h.  */
6067$ac_includes_default
6068   typedef long ac__type_sizeof_;
6069static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6070static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6071#include <stdio.h>
6072#include <stdlib.h>
6073int
6074main ()
6075{
6076
6077  FILE *f = fopen ("conftest.val", "w");
6078  if (! f)
6079    return 1;
6080  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6081    {
6082      long int i = longval ();
6083      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6084	return 1;
6085      fprintf (f, "%ld\n", i);
6086    }
6087  else
6088    {
6089      unsigned long int i = ulongval ();
6090      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6091	return 1;
6092      fprintf (f, "%lu\n", i);
6093    }
6094  return ferror (f) || fclose (f) != 0;
6095
6096  ;
6097  return 0;
6098}
6099_ACEOF
6100rm -f conftest$ac_exeext
6101if { (ac_try="$ac_link"
6102case "(($ac_try" in
6103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104  *) ac_try_echo=$ac_try;;
6105esac
6106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107  (eval "$ac_link") 2>&5
6108  ac_status=$?
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6111  { (case "(($ac_try" in
6112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113  *) ac_try_echo=$ac_try;;
6114esac
6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116  (eval "$ac_try") 2>&5
6117  ac_status=$?
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); }; }; then
6120  ac_cv_sizeof_long=`cat conftest.val`
6121else
6122  echo "$as_me: program exited with status $ac_status" >&5
6123echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126( exit $ac_status )
6127if test "$ac_cv_type_long" = yes; then
6128     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6129See \`config.log' for more details." >&5
6130echo "$as_me: error: cannot compute sizeof (long)
6131See \`config.log' for more details." >&2;}
6132   { (exit 77); exit 77; }; }
6133   else
6134     ac_cv_sizeof_long=0
6135   fi
6136fi
6137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6138fi
6139rm -f conftest.val
6140fi
6141{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6142echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6143
6144
6145
6146cat >>confdefs.h <<_ACEOF
6147#define SIZEOF_LONG $ac_cv_sizeof_long
6148_ACEOF
6149
6150
6151{ echo "$as_me:$LINENO: checking for int" >&5
6152echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6153if test "${ac_cv_type_int+set}" = set; then
6154  echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156  cat >conftest.$ac_ext <<_ACEOF
6157/* confdefs.h.  */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
6161/* end confdefs.h.  */
6162$ac_includes_default
6163typedef int ac__type_new_;
6164int
6165main ()
6166{
6167if ((ac__type_new_ *) 0)
6168  return 0;
6169if (sizeof (ac__type_new_))
6170  return 0;
6171  ;
6172  return 0;
6173}
6174_ACEOF
6175rm -f conftest.$ac_objext
6176if { (ac_try="$ac_compile"
6177case "(($ac_try" in
6178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179  *) ac_try_echo=$ac_try;;
6180esac
6181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182  (eval "$ac_compile") 2>conftest.er1
6183  ac_status=$?
6184  grep -v '^ *+' conftest.er1 >conftest.err
6185  rm -f conftest.er1
6186  cat conftest.err >&5
6187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188  (exit $ac_status); } && {
6189	 test -z "$ac_c_werror_flag" ||
6190	 test ! -s conftest.err
6191       } && test -s conftest.$ac_objext; then
6192  ac_cv_type_int=yes
6193else
6194  echo "$as_me: failed program was:" >&5
6195sed 's/^/| /' conftest.$ac_ext >&5
6196
6197	ac_cv_type_int=no
6198fi
6199
6200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201fi
6202{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6203echo "${ECHO_T}$ac_cv_type_int" >&6; }
6204
6205# The cast to long int works around a bug in the HP C Compiler
6206# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6207# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6208# This bug is HP SR number 8606223364.
6209{ echo "$as_me:$LINENO: checking size of int" >&5
6210echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6211if test "${ac_cv_sizeof_int+set}" = set; then
6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214  if test "$cross_compiling" = yes; then
6215  # Depending upon the size, compute the lo and hi bounds.
6216cat >conftest.$ac_ext <<_ACEOF
6217/* confdefs.h.  */
6218_ACEOF
6219cat confdefs.h >>conftest.$ac_ext
6220cat >>conftest.$ac_ext <<_ACEOF
6221/* end confdefs.h.  */
6222$ac_includes_default
6223   typedef int ac__type_sizeof_;
6224int
6225main ()
6226{
6227static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6228test_array [0] = 0
6229
6230  ;
6231  return 0;
6232}
6233_ACEOF
6234rm -f conftest.$ac_objext
6235if { (ac_try="$ac_compile"
6236case "(($ac_try" in
6237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238  *) ac_try_echo=$ac_try;;
6239esac
6240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241  (eval "$ac_compile") 2>conftest.er1
6242  ac_status=$?
6243  grep -v '^ *+' conftest.er1 >conftest.err
6244  rm -f conftest.er1
6245  cat conftest.err >&5
6246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247  (exit $ac_status); } && {
6248	 test -z "$ac_c_werror_flag" ||
6249	 test ! -s conftest.err
6250       } && test -s conftest.$ac_objext; then
6251  ac_lo=0 ac_mid=0
6252  while :; do
6253    cat >conftest.$ac_ext <<_ACEOF
6254/* confdefs.h.  */
6255_ACEOF
6256cat confdefs.h >>conftest.$ac_ext
6257cat >>conftest.$ac_ext <<_ACEOF
6258/* end confdefs.h.  */
6259$ac_includes_default
6260   typedef int ac__type_sizeof_;
6261int
6262main ()
6263{
6264static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6265test_array [0] = 0
6266
6267  ;
6268  return 0;
6269}
6270_ACEOF
6271rm -f conftest.$ac_objext
6272if { (ac_try="$ac_compile"
6273case "(($ac_try" in
6274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275  *) ac_try_echo=$ac_try;;
6276esac
6277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6278  (eval "$ac_compile") 2>conftest.er1
6279  ac_status=$?
6280  grep -v '^ *+' conftest.er1 >conftest.err
6281  rm -f conftest.er1
6282  cat conftest.err >&5
6283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284  (exit $ac_status); } && {
6285	 test -z "$ac_c_werror_flag" ||
6286	 test ! -s conftest.err
6287       } && test -s conftest.$ac_objext; then
6288  ac_hi=$ac_mid; break
6289else
6290  echo "$as_me: failed program was:" >&5
6291sed 's/^/| /' conftest.$ac_ext >&5
6292
6293	ac_lo=`expr $ac_mid + 1`
6294			if test $ac_lo -le $ac_mid; then
6295			  ac_lo= ac_hi=
6296			  break
6297			fi
6298			ac_mid=`expr 2 '*' $ac_mid + 1`
6299fi
6300
6301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302  done
6303else
6304  echo "$as_me: failed program was:" >&5
6305sed 's/^/| /' conftest.$ac_ext >&5
6306
6307	cat >conftest.$ac_ext <<_ACEOF
6308/* confdefs.h.  */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
6312/* end confdefs.h.  */
6313$ac_includes_default
6314   typedef int ac__type_sizeof_;
6315int
6316main ()
6317{
6318static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6319test_array [0] = 0
6320
6321  ;
6322  return 0;
6323}
6324_ACEOF
6325rm -f conftest.$ac_objext
6326if { (ac_try="$ac_compile"
6327case "(($ac_try" in
6328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329  *) ac_try_echo=$ac_try;;
6330esac
6331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332  (eval "$ac_compile") 2>conftest.er1
6333  ac_status=$?
6334  grep -v '^ *+' conftest.er1 >conftest.err
6335  rm -f conftest.er1
6336  cat conftest.err >&5
6337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338  (exit $ac_status); } && {
6339	 test -z "$ac_c_werror_flag" ||
6340	 test ! -s conftest.err
6341       } && test -s conftest.$ac_objext; then
6342  ac_hi=-1 ac_mid=-1
6343  while :; do
6344    cat >conftest.$ac_ext <<_ACEOF
6345/* confdefs.h.  */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h.  */
6350$ac_includes_default
6351   typedef int ac__type_sizeof_;
6352int
6353main ()
6354{
6355static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6356test_array [0] = 0
6357
6358  ;
6359  return 0;
6360}
6361_ACEOF
6362rm -f conftest.$ac_objext
6363if { (ac_try="$ac_compile"
6364case "(($ac_try" in
6365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366  *) ac_try_echo=$ac_try;;
6367esac
6368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369  (eval "$ac_compile") 2>conftest.er1
6370  ac_status=$?
6371  grep -v '^ *+' conftest.er1 >conftest.err
6372  rm -f conftest.er1
6373  cat conftest.err >&5
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); } && {
6376	 test -z "$ac_c_werror_flag" ||
6377	 test ! -s conftest.err
6378       } && test -s conftest.$ac_objext; then
6379  ac_lo=$ac_mid; break
6380else
6381  echo "$as_me: failed program was:" >&5
6382sed 's/^/| /' conftest.$ac_ext >&5
6383
6384	ac_hi=`expr '(' $ac_mid ')' - 1`
6385			if test $ac_mid -le $ac_hi; then
6386			  ac_lo= ac_hi=
6387			  break
6388			fi
6389			ac_mid=`expr 2 '*' $ac_mid`
6390fi
6391
6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393  done
6394else
6395  echo "$as_me: failed program was:" >&5
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
6398	ac_lo= ac_hi=
6399fi
6400
6401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402fi
6403
6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405# Binary search between lo and hi bounds.
6406while test "x$ac_lo" != "x$ac_hi"; do
6407  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6408  cat >conftest.$ac_ext <<_ACEOF
6409/* confdefs.h.  */
6410_ACEOF
6411cat confdefs.h >>conftest.$ac_ext
6412cat >>conftest.$ac_ext <<_ACEOF
6413/* end confdefs.h.  */
6414$ac_includes_default
6415   typedef int ac__type_sizeof_;
6416int
6417main ()
6418{
6419static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6420test_array [0] = 0
6421
6422  ;
6423  return 0;
6424}
6425_ACEOF
6426rm -f conftest.$ac_objext
6427if { (ac_try="$ac_compile"
6428case "(($ac_try" in
6429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430  *) ac_try_echo=$ac_try;;
6431esac
6432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433  (eval "$ac_compile") 2>conftest.er1
6434  ac_status=$?
6435  grep -v '^ *+' conftest.er1 >conftest.err
6436  rm -f conftest.er1
6437  cat conftest.err >&5
6438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439  (exit $ac_status); } && {
6440	 test -z "$ac_c_werror_flag" ||
6441	 test ! -s conftest.err
6442       } && test -s conftest.$ac_objext; then
6443  ac_hi=$ac_mid
6444else
6445  echo "$as_me: failed program was:" >&5
6446sed 's/^/| /' conftest.$ac_ext >&5
6447
6448	ac_lo=`expr '(' $ac_mid ')' + 1`
6449fi
6450
6451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452done
6453case $ac_lo in
6454?*) ac_cv_sizeof_int=$ac_lo;;
6455'') if test "$ac_cv_type_int" = yes; then
6456     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6457See \`config.log' for more details." >&5
6458echo "$as_me: error: cannot compute sizeof (int)
6459See \`config.log' for more details." >&2;}
6460   { (exit 77); exit 77; }; }
6461   else
6462     ac_cv_sizeof_int=0
6463   fi ;;
6464esac
6465else
6466  cat >conftest.$ac_ext <<_ACEOF
6467/* confdefs.h.  */
6468_ACEOF
6469cat confdefs.h >>conftest.$ac_ext
6470cat >>conftest.$ac_ext <<_ACEOF
6471/* end confdefs.h.  */
6472$ac_includes_default
6473   typedef int ac__type_sizeof_;
6474static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6475static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6476#include <stdio.h>
6477#include <stdlib.h>
6478int
6479main ()
6480{
6481
6482  FILE *f = fopen ("conftest.val", "w");
6483  if (! f)
6484    return 1;
6485  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6486    {
6487      long int i = longval ();
6488      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6489	return 1;
6490      fprintf (f, "%ld\n", i);
6491    }
6492  else
6493    {
6494      unsigned long int i = ulongval ();
6495      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6496	return 1;
6497      fprintf (f, "%lu\n", i);
6498    }
6499  return ferror (f) || fclose (f) != 0;
6500
6501  ;
6502  return 0;
6503}
6504_ACEOF
6505rm -f conftest$ac_exeext
6506if { (ac_try="$ac_link"
6507case "(($ac_try" in
6508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509  *) ac_try_echo=$ac_try;;
6510esac
6511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512  (eval "$ac_link") 2>&5
6513  ac_status=$?
6514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6516  { (case "(($ac_try" in
6517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518  *) ac_try_echo=$ac_try;;
6519esac
6520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521  (eval "$ac_try") 2>&5
6522  ac_status=$?
6523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524  (exit $ac_status); }; }; then
6525  ac_cv_sizeof_int=`cat conftest.val`
6526else
6527  echo "$as_me: program exited with status $ac_status" >&5
6528echo "$as_me: failed program was:" >&5
6529sed 's/^/| /' conftest.$ac_ext >&5
6530
6531( exit $ac_status )
6532if test "$ac_cv_type_int" = yes; then
6533     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6534See \`config.log' for more details." >&5
6535echo "$as_me: error: cannot compute sizeof (int)
6536See \`config.log' for more details." >&2;}
6537   { (exit 77); exit 77; }; }
6538   else
6539     ac_cv_sizeof_int=0
6540   fi
6541fi
6542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6543fi
6544rm -f conftest.val
6545fi
6546{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6547echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6548
6549
6550
6551cat >>confdefs.h <<_ACEOF
6552#define SIZEOF_INT $ac_cv_sizeof_int
6553_ACEOF
6554
6555
6556{ echo "$as_me:$LINENO: checking for short" >&5
6557echo $ECHO_N "checking for short... $ECHO_C" >&6; }
6558if test "${ac_cv_type_short+set}" = set; then
6559  echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561  cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h.  */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h.  */
6567$ac_includes_default
6568typedef short ac__type_new_;
6569int
6570main ()
6571{
6572if ((ac__type_new_ *) 0)
6573  return 0;
6574if (sizeof (ac__type_new_))
6575  return 0;
6576  ;
6577  return 0;
6578}
6579_ACEOF
6580rm -f conftest.$ac_objext
6581if { (ac_try="$ac_compile"
6582case "(($ac_try" in
6583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584  *) ac_try_echo=$ac_try;;
6585esac
6586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587  (eval "$ac_compile") 2>conftest.er1
6588  ac_status=$?
6589  grep -v '^ *+' conftest.er1 >conftest.err
6590  rm -f conftest.er1
6591  cat conftest.err >&5
6592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593  (exit $ac_status); } && {
6594	 test -z "$ac_c_werror_flag" ||
6595	 test ! -s conftest.err
6596       } && test -s conftest.$ac_objext; then
6597  ac_cv_type_short=yes
6598else
6599  echo "$as_me: failed program was:" >&5
6600sed 's/^/| /' conftest.$ac_ext >&5
6601
6602	ac_cv_type_short=no
6603fi
6604
6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606fi
6607{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6608echo "${ECHO_T}$ac_cv_type_short" >&6; }
6609
6610# The cast to long int works around a bug in the HP C Compiler
6611# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6612# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6613# This bug is HP SR number 8606223364.
6614{ echo "$as_me:$LINENO: checking size of short" >&5
6615echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
6616if test "${ac_cv_sizeof_short+set}" = set; then
6617  echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619  if test "$cross_compiling" = yes; then
6620  # Depending upon the size, compute the lo and hi bounds.
6621cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h.  */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h.  */
6627$ac_includes_default
6628   typedef short ac__type_sizeof_;
6629int
6630main ()
6631{
6632static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6633test_array [0] = 0
6634
6635  ;
6636  return 0;
6637}
6638_ACEOF
6639rm -f conftest.$ac_objext
6640if { (ac_try="$ac_compile"
6641case "(($ac_try" in
6642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643  *) ac_try_echo=$ac_try;;
6644esac
6645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646  (eval "$ac_compile") 2>conftest.er1
6647  ac_status=$?
6648  grep -v '^ *+' conftest.er1 >conftest.err
6649  rm -f conftest.er1
6650  cat conftest.err >&5
6651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652  (exit $ac_status); } && {
6653	 test -z "$ac_c_werror_flag" ||
6654	 test ! -s conftest.err
6655       } && test -s conftest.$ac_objext; then
6656  ac_lo=0 ac_mid=0
6657  while :; do
6658    cat >conftest.$ac_ext <<_ACEOF
6659/* confdefs.h.  */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
6663/* end confdefs.h.  */
6664$ac_includes_default
6665   typedef short ac__type_sizeof_;
6666int
6667main ()
6668{
6669static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6670test_array [0] = 0
6671
6672  ;
6673  return 0;
6674}
6675_ACEOF
6676rm -f conftest.$ac_objext
6677if { (ac_try="$ac_compile"
6678case "(($ac_try" in
6679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680  *) ac_try_echo=$ac_try;;
6681esac
6682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683  (eval "$ac_compile") 2>conftest.er1
6684  ac_status=$?
6685  grep -v '^ *+' conftest.er1 >conftest.err
6686  rm -f conftest.er1
6687  cat conftest.err >&5
6688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689  (exit $ac_status); } && {
6690	 test -z "$ac_c_werror_flag" ||
6691	 test ! -s conftest.err
6692       } && test -s conftest.$ac_objext; then
6693  ac_hi=$ac_mid; break
6694else
6695  echo "$as_me: failed program was:" >&5
6696sed 's/^/| /' conftest.$ac_ext >&5
6697
6698	ac_lo=`expr $ac_mid + 1`
6699			if test $ac_lo -le $ac_mid; then
6700			  ac_lo= ac_hi=
6701			  break
6702			fi
6703			ac_mid=`expr 2 '*' $ac_mid + 1`
6704fi
6705
6706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707  done
6708else
6709  echo "$as_me: failed program was:" >&5
6710sed 's/^/| /' conftest.$ac_ext >&5
6711
6712	cat >conftest.$ac_ext <<_ACEOF
6713/* confdefs.h.  */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h.  */
6718$ac_includes_default
6719   typedef short ac__type_sizeof_;
6720int
6721main ()
6722{
6723static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6724test_array [0] = 0
6725
6726  ;
6727  return 0;
6728}
6729_ACEOF
6730rm -f conftest.$ac_objext
6731if { (ac_try="$ac_compile"
6732case "(($ac_try" in
6733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734  *) ac_try_echo=$ac_try;;
6735esac
6736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737  (eval "$ac_compile") 2>conftest.er1
6738  ac_status=$?
6739  grep -v '^ *+' conftest.er1 >conftest.err
6740  rm -f conftest.er1
6741  cat conftest.err >&5
6742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743  (exit $ac_status); } && {
6744	 test -z "$ac_c_werror_flag" ||
6745	 test ! -s conftest.err
6746       } && test -s conftest.$ac_objext; then
6747  ac_hi=-1 ac_mid=-1
6748  while :; do
6749    cat >conftest.$ac_ext <<_ACEOF
6750/* confdefs.h.  */
6751_ACEOF
6752cat confdefs.h >>conftest.$ac_ext
6753cat >>conftest.$ac_ext <<_ACEOF
6754/* end confdefs.h.  */
6755$ac_includes_default
6756   typedef short ac__type_sizeof_;
6757int
6758main ()
6759{
6760static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6761test_array [0] = 0
6762
6763  ;
6764  return 0;
6765}
6766_ACEOF
6767rm -f conftest.$ac_objext
6768if { (ac_try="$ac_compile"
6769case "(($ac_try" in
6770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771  *) ac_try_echo=$ac_try;;
6772esac
6773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774  (eval "$ac_compile") 2>conftest.er1
6775  ac_status=$?
6776  grep -v '^ *+' conftest.er1 >conftest.err
6777  rm -f conftest.er1
6778  cat conftest.err >&5
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); } && {
6781	 test -z "$ac_c_werror_flag" ||
6782	 test ! -s conftest.err
6783       } && test -s conftest.$ac_objext; then
6784  ac_lo=$ac_mid; break
6785else
6786  echo "$as_me: failed program was:" >&5
6787sed 's/^/| /' conftest.$ac_ext >&5
6788
6789	ac_hi=`expr '(' $ac_mid ')' - 1`
6790			if test $ac_mid -le $ac_hi; then
6791			  ac_lo= ac_hi=
6792			  break
6793			fi
6794			ac_mid=`expr 2 '*' $ac_mid`
6795fi
6796
6797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798  done
6799else
6800  echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803	ac_lo= ac_hi=
6804fi
6805
6806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807fi
6808
6809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810# Binary search between lo and hi bounds.
6811while test "x$ac_lo" != "x$ac_hi"; do
6812  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6813  cat >conftest.$ac_ext <<_ACEOF
6814/* confdefs.h.  */
6815_ACEOF
6816cat confdefs.h >>conftest.$ac_ext
6817cat >>conftest.$ac_ext <<_ACEOF
6818/* end confdefs.h.  */
6819$ac_includes_default
6820   typedef short ac__type_sizeof_;
6821int
6822main ()
6823{
6824static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6825test_array [0] = 0
6826
6827  ;
6828  return 0;
6829}
6830_ACEOF
6831rm -f conftest.$ac_objext
6832if { (ac_try="$ac_compile"
6833case "(($ac_try" in
6834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835  *) ac_try_echo=$ac_try;;
6836esac
6837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838  (eval "$ac_compile") 2>conftest.er1
6839  ac_status=$?
6840  grep -v '^ *+' conftest.er1 >conftest.err
6841  rm -f conftest.er1
6842  cat conftest.err >&5
6843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); } && {
6845	 test -z "$ac_c_werror_flag" ||
6846	 test ! -s conftest.err
6847       } && test -s conftest.$ac_objext; then
6848  ac_hi=$ac_mid
6849else
6850  echo "$as_me: failed program was:" >&5
6851sed 's/^/| /' conftest.$ac_ext >&5
6852
6853	ac_lo=`expr '(' $ac_mid ')' + 1`
6854fi
6855
6856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857done
6858case $ac_lo in
6859?*) ac_cv_sizeof_short=$ac_lo;;
6860'') if test "$ac_cv_type_short" = yes; then
6861     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6862See \`config.log' for more details." >&5
6863echo "$as_me: error: cannot compute sizeof (short)
6864See \`config.log' for more details." >&2;}
6865   { (exit 77); exit 77; }; }
6866   else
6867     ac_cv_sizeof_short=0
6868   fi ;;
6869esac
6870else
6871  cat >conftest.$ac_ext <<_ACEOF
6872/* confdefs.h.  */
6873_ACEOF
6874cat confdefs.h >>conftest.$ac_ext
6875cat >>conftest.$ac_ext <<_ACEOF
6876/* end confdefs.h.  */
6877$ac_includes_default
6878   typedef short ac__type_sizeof_;
6879static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6880static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6881#include <stdio.h>
6882#include <stdlib.h>
6883int
6884main ()
6885{
6886
6887  FILE *f = fopen ("conftest.val", "w");
6888  if (! f)
6889    return 1;
6890  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6891    {
6892      long int i = longval ();
6893      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6894	return 1;
6895      fprintf (f, "%ld\n", i);
6896    }
6897  else
6898    {
6899      unsigned long int i = ulongval ();
6900      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6901	return 1;
6902      fprintf (f, "%lu\n", i);
6903    }
6904  return ferror (f) || fclose (f) != 0;
6905
6906  ;
6907  return 0;
6908}
6909_ACEOF
6910rm -f conftest$ac_exeext
6911if { (ac_try="$ac_link"
6912case "(($ac_try" in
6913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914  *) ac_try_echo=$ac_try;;
6915esac
6916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917  (eval "$ac_link") 2>&5
6918  ac_status=$?
6919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6921  { (case "(($ac_try" in
6922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923  *) ac_try_echo=$ac_try;;
6924esac
6925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926  (eval "$ac_try") 2>&5
6927  ac_status=$?
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); }; }; then
6930  ac_cv_sizeof_short=`cat conftest.val`
6931else
6932  echo "$as_me: program exited with status $ac_status" >&5
6933echo "$as_me: failed program was:" >&5
6934sed 's/^/| /' conftest.$ac_ext >&5
6935
6936( exit $ac_status )
6937if test "$ac_cv_type_short" = yes; then
6938     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6939See \`config.log' for more details." >&5
6940echo "$as_me: error: cannot compute sizeof (short)
6941See \`config.log' for more details." >&2;}
6942   { (exit 77); exit 77; }; }
6943   else
6944     ac_cv_sizeof_short=0
6945   fi
6946fi
6947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6948fi
6949rm -f conftest.val
6950fi
6951{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6952echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6953
6954
6955
6956cat >>confdefs.h <<_ACEOF
6957#define SIZEOF_SHORT $ac_cv_sizeof_short
6958_ACEOF
6959
6960
6961
6962{ echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
6963echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
6964cat >conftest.$ac_ext <<_ACEOF
6965/* confdefs.h.  */
6966_ACEOF
6967cat confdefs.h >>conftest.$ac_ext
6968cat >>conftest.$ac_ext <<_ACEOF
6969/* end confdefs.h.  */
6970
6971#ifdef TIME_WITH_SYS_TIME
6972#include <sys/time.h>
6973#include <time.h>
6974#else
6975#ifdef HAVE_SYS_TIME_H
6976#include <sys/time.h>
6977#else
6978#include <time.h>
6979#endif
6980#endif
6981int
6982main ()
6983{
6984struct tm *tm;
6985printf("%s\n", tm->tm_zone);
6986  ;
6987  return 0;
6988}
6989_ACEOF
6990rm -f conftest.$ac_objext
6991if { (ac_try="$ac_compile"
6992case "(($ac_try" in
6993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994  *) ac_try_echo=$ac_try;;
6995esac
6996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997  (eval "$ac_compile") 2>conftest.er1
6998  ac_status=$?
6999  grep -v '^ *+' conftest.er1 >conftest.err
7000  rm -f conftest.er1
7001  cat conftest.err >&5
7002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003  (exit $ac_status); } && {
7004	 test -z "$ac_c_werror_flag" ||
7005	 test ! -s conftest.err
7006       } && test -s conftest.$ac_objext; then
7007
7008cat >>confdefs.h <<\_ACEOF
7009#define HAVE_tm_zone 1
7010_ACEOF
7011
7012{ echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6; }
7014else
7015  echo "$as_me: failed program was:" >&5
7016sed 's/^/| /' conftest.$ac_ext >&5
7017
7018	{ echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6; }
7020fi
7021
7022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023{ echo "$as_me:$LINENO: checking for a Bourne shell which understands functions" >&5
7024echo $ECHO_N "checking for a Bourne shell which understands functions... $ECHO_C" >&6; }
7025if test "z$SH" = "z"; then
7026    if test -f /bin/sh5; then
7027        SH=/bin/sh5
7028    else
7029        SH=/bin/sh
7030    fi
7031fi
7032
7033
7034cat >>confdefs.h <<_ACEOF
7035#define CONF_SHELL "$SH"
7036_ACEOF
7037
7038{ echo "$as_me:$LINENO: result: $SH" >&5
7039echo "${ECHO_T}$SH" >&6; }
7040
7041
7042cat >>confdefs.h <<_ACEOF
7043#define CONF_REMOTE_SHELL "$RSH"
7044_ACEOF
7045
7046
7047if test "$ac_cv_func_gettext" = "yes" -o "$ac_cv_lib_intl_gettext" = "yes"
7048then
7049  po_files=yes
7050else
7051  po_files=no
7052  { echo "$as_me:$LINENO: result: " >&5
7053echo "${ECHO_T}" >&6; }
7054  { echo "$as_me:$LINENO: result:        Cook will emit much more useful error messages" >&5
7055echo "${ECHO_T}       Cook will emit much more useful error messages" >&6; }
7056  { echo "$as_me:$LINENO: result:        if you install GNU \`\`gettext'' and then" >&5
7057echo "${ECHO_T}       if you install GNU \`\`gettext'' and then" >&6; }
7058  { echo "$as_me:$LINENO: result:        re-run this ./configure script.  Remember to" >&5
7059echo "${ECHO_T}       re-run this ./configure script.  Remember to" >&6; }
7060  { echo "$as_me:$LINENO: result:        use \`\`rm config.cache'' before you do." >&5
7061echo "${ECHO_T}       use \`\`rm config.cache'' before you do." >&6; }
7062  { echo "$as_me:$LINENO: result: " >&5
7063echo "${ECHO_T}" >&6; }
7064fi
7065
7066
7067if test -n "$GROFF"
7068then
7069        have_groff=yes
7070else
7071        have_groff=no
7072        { echo "$as_me:$LINENO: result: " >&5
7073echo "${ECHO_T}" >&6; }
7074        { echo "$as_me:$LINENO: result:  The Cook documentation set and manual pages will" >&5
7075echo "${ECHO_T} The Cook documentation set and manual pages will" >&6; }
7076        { echo "$as_me:$LINENO: result:  be formatted and installed if you first install" >&5
7077echo "${ECHO_T} be formatted and installed if you first install" >&6; }
7078        { echo "$as_me:$LINENO: result:  GNU Groff and then re-run this ./configure script." >&5
7079echo "${ECHO_T} GNU Groff and then re-run this ./configure script." >&6; }
7080        { echo "$as_me:$LINENO: result:  Remember to use \`\`rm config.cache'' before" >&5
7081echo "${ECHO_T} Remember to use \`\`rm config.cache'' before" >&6; }
7082        { echo "$as_me:$LINENO: result:  you do." >&5
7083echo "${ECHO_T} you do." >&6; }
7084        { echo "$as_me:$LINENO: result: " >&5
7085echo "${ECHO_T}" >&6; }
7086fi
7087
7088
7089# program prefix is the bit to add to the start of the name
7090if test ${PROGRAM_PREFIX-NONE} != NONE -a ${program_prefix-NONE} != NONE; then
7091PROGRAM_PREFIX=${program_prefix}
7092fi
7093
7094
7095# program suffix is the bit to add to the end of the name (before .exe)
7096if test ${PROGRAM_SUFFIX-NONE} != NONE -a ${program_suffix-NONE} != NONE; then
7097PROGRAM_SUFFIX=${program_suffix}
7098fi
7099
7100
7101test "x$prefix" = xNONE && prefix="${ac_default_prefix-/usr/local}"
7102test "x$exec_prefix" = xNONE && exec_prefix="$prefix"
7103eval "exec_prefix=$exec_prefix"
7104eval "bindir=$bindir"
7105eval "mandir=$mandir"
7106eval "libdir=$libdir"
7107eval "datadir=$datadir"
7108case "$libdir" in
7109*/cook/* | */cook )
7110        ;;
7111*)
7112        libdir="${libdir}/cook"
7113        { echo "$as_me:$LINENO: result: Rewriting --libdir=$libdir" >&5
7114echo "${ECHO_T}Rewriting --libdir=$libdir" >&6; }
7115        ;;
7116esac
7117case "$datadir" in
7118*/cook/* | */cook )
7119        ;;
7120*)
7121        datadir="${datadir}/cook"
7122        { echo "$as_me:$LINENO: result: Rewriting --datadir=$datadir" >&5
7123echo "${ECHO_T}Rewriting --datadir=$datadir" >&6; }
7124        ;;
7125esac
7126
7127
7128# Check whether --with-nlsdir was given.
7129if test "${with_nlsdir+set}" = set; then
7130  withval=$with_nlsdir;
7131fi
7132
7133
7134if test "x$NLSDIR" = "x"; then
7135        if test "x$with_nlsdir" != "x"; then
7136                NLSDIR=$with_nlsdir
7137        else
7138                NLSDIR=${libdir}
7139        fi
7140fi
7141
7142
7143
7144
7145
7146
7147
7148
7149ac_config_files="$ac_config_files Makefile etc/libdir.so etc/libdir-h"
7150
7151cat >confcache <<\_ACEOF
7152# This file is a shell script that caches the results of configure
7153# tests run on this system so they can be shared between configure
7154# scripts and configure runs, see configure's option --config-cache.
7155# It is not useful on other systems.  If it contains results you don't
7156# want to keep, you may remove or edit it.
7157#
7158# config.status only pays attention to the cache file if you give it
7159# the --recheck option to rerun configure.
7160#
7161# `ac_cv_env_foo' variables (set or unset) will be overridden when
7162# loading this file, other *unset* `ac_cv_foo' will be assigned the
7163# following values.
7164
7165_ACEOF
7166
7167# The following way of writing the cache mishandles newlines in values,
7168# but we know of no workaround that is simple, portable, and efficient.
7169# So, we kill variables containing newlines.
7170# Ultrix sh set writes to stderr and can't be redirected directly,
7171# and sets the high bit in the cache file unless we assign to the vars.
7172(
7173  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7174    eval ac_val=\$$ac_var
7175    case $ac_val in #(
7176    *${as_nl}*)
7177      case $ac_var in #(
7178      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7179echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7180      esac
7181      case $ac_var in #(
7182      _ | IFS | as_nl) ;; #(
7183      *) $as_unset $ac_var ;;
7184      esac ;;
7185    esac
7186  done
7187
7188  (set) 2>&1 |
7189    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7190    *${as_nl}ac_space=\ *)
7191      # `set' does not quote correctly, so add quotes (double-quote
7192      # substitution turns \\\\ into \\, and sed turns \\ into \).
7193      sed -n \
7194	"s/'/'\\\\''/g;
7195	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7196      ;; #(
7197    *)
7198      # `set' quotes correctly as required by POSIX, so do not add quotes.
7199      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7200      ;;
7201    esac |
7202    sort
7203) |
7204  sed '
7205     /^ac_cv_env_/b end
7206     t clear
7207     :clear
7208     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7209     t end
7210     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7211     :end' >>confcache
7212if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7213  if test -w "$cache_file"; then
7214    test "x$cache_file" != "x/dev/null" &&
7215      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7216echo "$as_me: updating cache $cache_file" >&6;}
7217    cat confcache >$cache_file
7218  else
7219    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7220echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7221  fi
7222fi
7223rm -f confcache
7224
7225test "x$prefix" = xNONE && prefix=$ac_default_prefix
7226# Let make expand exec_prefix.
7227test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7228
7229DEFS=-DHAVE_CONFIG_H
7230
7231ac_libobjs=
7232ac_ltlibobjs=
7233for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7234  # 1. Remove the extension, and $U if already installed.
7235  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7236  ac_i=`echo "$ac_i" | sed "$ac_script"`
7237  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7238  #    will be set to the directory where LIBOBJS objects are built.
7239  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7240  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7241done
7242LIBOBJS=$ac_libobjs
7243
7244LTLIBOBJS=$ac_ltlibobjs
7245
7246
7247
7248: ${CONFIG_STATUS=./config.status}
7249ac_clean_files_save=$ac_clean_files
7250ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7251{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7252echo "$as_me: creating $CONFIG_STATUS" >&6;}
7253cat >$CONFIG_STATUS <<_ACEOF
7254#! $SHELL
7255# Generated by $as_me.
7256# Run this file to recreate the current configuration.
7257# Compiler output produced by configure, useful for debugging
7258# configure, is in config.log if it exists.
7259
7260debug=false
7261ac_cs_recheck=false
7262ac_cs_silent=false
7263SHELL=\${CONFIG_SHELL-$SHELL}
7264_ACEOF
7265
7266cat >>$CONFIG_STATUS <<\_ACEOF
7267## --------------------- ##
7268## M4sh Initialization.  ##
7269## --------------------- ##
7270
7271# Be more Bourne compatible
7272DUALCASE=1; export DUALCASE # for MKS sh
7273if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7274  emulate sh
7275  NULLCMD=:
7276  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7277  # is contrary to our usage.  Disable this feature.
7278  alias -g '${1+"$@"}'='"$@"'
7279  setopt NO_GLOB_SUBST
7280else
7281  case `(set -o) 2>/dev/null` in
7282  *posix*) set -o posix ;;
7283esac
7284
7285fi
7286
7287
7288
7289
7290# PATH needs CR
7291# Avoid depending upon Character Ranges.
7292as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7293as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7294as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7295as_cr_digits='0123456789'
7296as_cr_alnum=$as_cr_Letters$as_cr_digits
7297
7298# The user is always right.
7299if test "${PATH_SEPARATOR+set}" != set; then
7300  echo "#! /bin/sh" >conf$$.sh
7301  echo  "exit 0"   >>conf$$.sh
7302  chmod +x conf$$.sh
7303  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7304    PATH_SEPARATOR=';'
7305  else
7306    PATH_SEPARATOR=:
7307  fi
7308  rm -f conf$$.sh
7309fi
7310
7311# Support unset when possible.
7312if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7313  as_unset=unset
7314else
7315  as_unset=false
7316fi
7317
7318
7319# IFS
7320# We need space, tab and new line, in precisely that order.  Quoting is
7321# there to prevent editors from complaining about space-tab.
7322# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7323# splitting by setting IFS to empty value.)
7324as_nl='
7325'
7326IFS=" ""	$as_nl"
7327
7328# Find who we are.  Look in the path if we contain no directory separator.
7329case $0 in
7330  *[\\/]* ) as_myself=$0 ;;
7331  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334  IFS=$as_save_IFS
7335  test -z "$as_dir" && as_dir=.
7336  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7337done
7338IFS=$as_save_IFS
7339
7340     ;;
7341esac
7342# We did not find ourselves, most probably we were run as `sh COMMAND'
7343# in which case we are not to be found in the path.
7344if test "x$as_myself" = x; then
7345  as_myself=$0
7346fi
7347if test ! -f "$as_myself"; then
7348  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7349  { (exit 1); exit 1; }
7350fi
7351
7352# Work around bugs in pre-3.0 UWIN ksh.
7353for as_var in ENV MAIL MAILPATH
7354do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7355done
7356PS1='$ '
7357PS2='> '
7358PS4='+ '
7359
7360# NLS nuisances.
7361for as_var in \
7362  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7363  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7364  LC_TELEPHONE LC_TIME
7365do
7366  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7367    eval $as_var=C; export $as_var
7368  else
7369    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7370  fi
7371done
7372
7373# Required to use basename.
7374if expr a : '\(a\)' >/dev/null 2>&1 &&
7375   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7376  as_expr=expr
7377else
7378  as_expr=false
7379fi
7380
7381if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7382  as_basename=basename
7383else
7384  as_basename=false
7385fi
7386
7387
7388# Name of the executable.
7389as_me=`$as_basename -- "$0" ||
7390$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7391	 X"$0" : 'X\(//\)$' \| \
7392	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7393echo X/"$0" |
7394    sed '/^.*\/\([^/][^/]*\)\/*$/{
7395	    s//\1/
7396	    q
7397	  }
7398	  /^X\/\(\/\/\)$/{
7399	    s//\1/
7400	    q
7401	  }
7402	  /^X\/\(\/\).*/{
7403	    s//\1/
7404	    q
7405	  }
7406	  s/.*/./; q'`
7407
7408# CDPATH.
7409$as_unset CDPATH
7410
7411
7412
7413  as_lineno_1=$LINENO
7414  as_lineno_2=$LINENO
7415  test "x$as_lineno_1" != "x$as_lineno_2" &&
7416  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7417
7418  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7419  # uniformly replaced by the line number.  The first 'sed' inserts a
7420  # line-number line after each line using $LINENO; the second 'sed'
7421  # does the real work.  The second script uses 'N' to pair each
7422  # line-number line with the line containing $LINENO, and appends
7423  # trailing '-' during substitution so that $LINENO is not a special
7424  # case at line end.
7425  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7426  # scripts with optimization help from Paolo Bonzini.  Blame Lee
7427  # E. McMahon (1931-1989) for sed's syntax.  :-)
7428  sed -n '
7429    p
7430    /[$]LINENO/=
7431  ' <$as_myself |
7432    sed '
7433      s/[$]LINENO.*/&-/
7434      t lineno
7435      b
7436      :lineno
7437      N
7438      :loop
7439      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7440      t loop
7441      s/-\n.*//
7442    ' >$as_me.lineno &&
7443  chmod +x "$as_me.lineno" ||
7444    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7445   { (exit 1); exit 1; }; }
7446
7447  # Don't try to exec as it changes $[0], causing all sort of problems
7448  # (the dirname of $[0] is not the place where we might find the
7449  # original and so on.  Autoconf is especially sensitive to this).
7450  . "./$as_me.lineno"
7451  # Exit status is that of the last command.
7452  exit
7453}
7454
7455
7456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7457  as_dirname=dirname
7458else
7459  as_dirname=false
7460fi
7461
7462ECHO_C= ECHO_N= ECHO_T=
7463case `echo -n x` in
7464-n*)
7465  case `echo 'x\c'` in
7466  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7467  *)   ECHO_C='\c';;
7468  esac;;
7469*)
7470  ECHO_N='-n';;
7471esac
7472
7473if expr a : '\(a\)' >/dev/null 2>&1 &&
7474   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7475  as_expr=expr
7476else
7477  as_expr=false
7478fi
7479
7480rm -f conf$$ conf$$.exe conf$$.file
7481if test -d conf$$.dir; then
7482  rm -f conf$$.dir/conf$$.file
7483else
7484  rm -f conf$$.dir
7485  mkdir conf$$.dir
7486fi
7487echo >conf$$.file
7488if ln -s conf$$.file conf$$ 2>/dev/null; then
7489  as_ln_s='ln -s'
7490  # ... but there are two gotchas:
7491  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7492  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7493  # In both cases, we have to default to `cp -p'.
7494  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7495    as_ln_s='cp -p'
7496elif ln conf$$.file conf$$ 2>/dev/null; then
7497  as_ln_s=ln
7498else
7499  as_ln_s='cp -p'
7500fi
7501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7502rmdir conf$$.dir 2>/dev/null
7503
7504if mkdir -p . 2>/dev/null; then
7505  as_mkdir_p=:
7506else
7507  test -d ./-p && rmdir ./-p
7508  as_mkdir_p=false
7509fi
7510
7511if test -x / >/dev/null 2>&1; then
7512  as_test_x='test -x'
7513else
7514  if ls -dL / >/dev/null 2>&1; then
7515    as_ls_L_option=L
7516  else
7517    as_ls_L_option=
7518  fi
7519  as_test_x='
7520    eval sh -c '\''
7521      if test -d "$1"; then
7522        test -d "$1/.";
7523      else
7524	case $1 in
7525        -*)set "./$1";;
7526	esac;
7527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7528	???[sx]*):;;*)false;;esac;fi
7529    '\'' sh
7530  '
7531fi
7532as_executable_p=$as_test_x
7533
7534# Sed expression to map a string onto a valid CPP name.
7535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7536
7537# Sed expression to map a string onto a valid variable name.
7538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7539
7540
7541exec 6>&1
7542
7543# Save the log message, to keep $[0] and so on meaningful, and to
7544# report actual input values of CONFIG_FILES etc. instead of their
7545# values after options handling.
7546ac_log="
7547This file was extended by $as_me, which was
7548generated by GNU Autoconf 2.61.  Invocation command line was
7549
7550  CONFIG_FILES    = $CONFIG_FILES
7551  CONFIG_HEADERS  = $CONFIG_HEADERS
7552  CONFIG_LINKS    = $CONFIG_LINKS
7553  CONFIG_COMMANDS = $CONFIG_COMMANDS
7554  $ $0 $@
7555
7556on `(hostname || uname -n) 2>/dev/null | sed 1q`
7557"
7558
7559_ACEOF
7560
7561cat >>$CONFIG_STATUS <<_ACEOF
7562# Files that config.status was made for.
7563config_files="$ac_config_files"
7564config_headers="$ac_config_headers"
7565
7566_ACEOF
7567
7568cat >>$CONFIG_STATUS <<\_ACEOF
7569ac_cs_usage="\
7570\`$as_me' instantiates files from templates according to the
7571current configuration.
7572
7573Usage: $0 [OPTIONS] [FILE]...
7574
7575  -h, --help       print this help, then exit
7576  -V, --version    print version number and configuration settings, then exit
7577  -q, --quiet      do not print progress messages
7578  -d, --debug      don't remove temporary files
7579      --recheck    update $as_me by reconfiguring in the same conditions
7580  --file=FILE[:TEMPLATE]
7581		   instantiate the configuration file FILE
7582  --header=FILE[:TEMPLATE]
7583		   instantiate the configuration header FILE
7584
7585Configuration files:
7586$config_files
7587
7588Configuration headers:
7589$config_headers
7590
7591Report bugs to <bug-autoconf@gnu.org>."
7592
7593_ACEOF
7594cat >>$CONFIG_STATUS <<_ACEOF
7595ac_cs_version="\\
7596config.status
7597configured by $0, generated by GNU Autoconf 2.61,
7598  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7599
7600Copyright (C) 2006 Free Software Foundation, Inc.
7601This config.status script is free software; the Free Software Foundation
7602gives unlimited permission to copy, distribute and modify it."
7603
7604ac_pwd='$ac_pwd'
7605srcdir='$srcdir'
7606INSTALL='$INSTALL'
7607_ACEOF
7608
7609cat >>$CONFIG_STATUS <<\_ACEOF
7610# If no file are specified by the user, then we need to provide default
7611# value.  By we need to know if files were specified by the user.
7612ac_need_defaults=:
7613while test $# != 0
7614do
7615  case $1 in
7616  --*=*)
7617    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7618    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7619    ac_shift=:
7620    ;;
7621  *)
7622    ac_option=$1
7623    ac_optarg=$2
7624    ac_shift=shift
7625    ;;
7626  esac
7627
7628  case $ac_option in
7629  # Handling of the options.
7630  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7631    ac_cs_recheck=: ;;
7632  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7633    echo "$ac_cs_version"; exit ;;
7634  --debug | --debu | --deb | --de | --d | -d )
7635    debug=: ;;
7636  --file | --fil | --fi | --f )
7637    $ac_shift
7638    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7639    ac_need_defaults=false;;
7640  --header | --heade | --head | --hea )
7641    $ac_shift
7642    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7643    ac_need_defaults=false;;
7644  --he | --h)
7645    # Conflict between --help and --header
7646    { echo "$as_me: error: ambiguous option: $1
7647Try \`$0 --help' for more information." >&2
7648   { (exit 1); exit 1; }; };;
7649  --help | --hel | -h )
7650    echo "$ac_cs_usage"; exit ;;
7651  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7652  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7653    ac_cs_silent=: ;;
7654
7655  # This is an error.
7656  -*) { echo "$as_me: error: unrecognized option: $1
7657Try \`$0 --help' for more information." >&2
7658   { (exit 1); exit 1; }; } ;;
7659
7660  *) ac_config_targets="$ac_config_targets $1"
7661     ac_need_defaults=false ;;
7662
7663  esac
7664  shift
7665done
7666
7667ac_configure_extra_args=
7668
7669if $ac_cs_silent; then
7670  exec 6>/dev/null
7671  ac_configure_extra_args="$ac_configure_extra_args --silent"
7672fi
7673
7674_ACEOF
7675cat >>$CONFIG_STATUS <<_ACEOF
7676if \$ac_cs_recheck; then
7677  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7678  CONFIG_SHELL=$SHELL
7679  export CONFIG_SHELL
7680  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7681fi
7682
7683_ACEOF
7684cat >>$CONFIG_STATUS <<\_ACEOF
7685exec 5>>config.log
7686{
7687  echo
7688  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7689## Running $as_me. ##
7690_ASBOX
7691  echo "$ac_log"
7692} >&5
7693
7694_ACEOF
7695cat >>$CONFIG_STATUS <<_ACEOF
7696_ACEOF
7697
7698cat >>$CONFIG_STATUS <<\_ACEOF
7699
7700# Handling of arguments.
7701for ac_config_target in $ac_config_targets
7702do
7703  case $ac_config_target in
7704    "common/config.h") CONFIG_HEADERS="$CONFIG_HEADERS common/config.h" ;;
7705    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7706    "etc/libdir.so") CONFIG_FILES="$CONFIG_FILES etc/libdir.so" ;;
7707    "etc/libdir-h") CONFIG_FILES="$CONFIG_FILES etc/libdir-h" ;;
7708
7709  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7710echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7711   { (exit 1); exit 1; }; };;
7712  esac
7713done
7714
7715
7716# If the user did not use the arguments to specify the items to instantiate,
7717# then the envvar interface is used.  Set only those that are not.
7718# We use the long form for the default assignment because of an extremely
7719# bizarre bug on SunOS 4.1.3.
7720if $ac_need_defaults; then
7721  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7722  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7723fi
7724
7725# Have a temporary directory for convenience.  Make it in the build tree
7726# simply because there is no reason against having it here, and in addition,
7727# creating and moving files from /tmp can sometimes cause problems.
7728# Hook for its removal unless debugging.
7729# Note that there is a small window in which the directory will not be cleaned:
7730# after its creation but before its name has been assigned to `$tmp'.
7731$debug ||
7732{
7733  tmp=
7734  trap 'exit_status=$?
7735  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7736' 0
7737  trap '{ (exit 1); exit 1; }' 1 2 13 15
7738}
7739# Create a (secure) tmp directory for tmp files.
7740
7741{
7742  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7743  test -n "$tmp" && test -d "$tmp"
7744}  ||
7745{
7746  tmp=./conf$$-$RANDOM
7747  (umask 077 && mkdir "$tmp")
7748} ||
7749{
7750   echo "$me: cannot create a temporary directory in ." >&2
7751   { (exit 1); exit 1; }
7752}
7753
7754#
7755# Set up the sed scripts for CONFIG_FILES section.
7756#
7757
7758# No need to generate the scripts if there are no CONFIG_FILES.
7759# This happens for instance when ./config.status config.h
7760if test -n "$CONFIG_FILES"; then
7761
7762_ACEOF
7763
7764
7765
7766ac_delim='%!_!# '
7767for ac_last_try in false false false false false :; do
7768  cat >conf$$subs.sed <<_ACEOF
7769SHELL!$SHELL$ac_delim
7770PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7771PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7772PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7773PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7774PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7775PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7776exec_prefix!$exec_prefix$ac_delim
7777prefix!$prefix$ac_delim
7778program_transform_name!$program_transform_name$ac_delim
7779bindir!$bindir$ac_delim
7780sbindir!$sbindir$ac_delim
7781libexecdir!$libexecdir$ac_delim
7782datarootdir!$datarootdir$ac_delim
7783datadir!$datadir$ac_delim
7784sysconfdir!$sysconfdir$ac_delim
7785sharedstatedir!$sharedstatedir$ac_delim
7786localstatedir!$localstatedir$ac_delim
7787includedir!$includedir$ac_delim
7788oldincludedir!$oldincludedir$ac_delim
7789docdir!$docdir$ac_delim
7790infodir!$infodir$ac_delim
7791htmldir!$htmldir$ac_delim
7792dvidir!$dvidir$ac_delim
7793pdfdir!$pdfdir$ac_delim
7794psdir!$psdir$ac_delim
7795libdir!$libdir$ac_delim
7796localedir!$localedir$ac_delim
7797mandir!$mandir$ac_delim
7798DEFS!$DEFS$ac_delim
7799ECHO_C!$ECHO_C$ac_delim
7800ECHO_N!$ECHO_N$ac_delim
7801ECHO_T!$ECHO_T$ac_delim
7802LIBS!$LIBS$ac_delim
7803build_alias!$build_alias$ac_delim
7804host_alias!$host_alias$ac_delim
7805target_alias!$target_alias$ac_delim
7806CC!$CC$ac_delim
7807CFLAGS!$CFLAGS$ac_delim
7808LDFLAGS!$LDFLAGS$ac_delim
7809CPPFLAGS!$CPPFLAGS$ac_delim
7810ac_ct_CC!$ac_ct_CC$ac_delim
7811EXEEXT!$EXEEXT$ac_delim
7812OBJEXT!$OBJEXT$ac_delim
7813CPP!$CPP$ac_delim
7814GREP!$GREP$ac_delim
7815EGREP!$EGREP$ac_delim
7816INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7817INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7818INSTALL_DATA!$INSTALL_DATA$ac_delim
7819YACC!$YACC$ac_delim
7820YFLAGS!$YFLAGS$ac_delim
7821RANLIB!$RANLIB$ac_delim
7822MSGFMT!$MSGFMT$ac_delim
7823MSGCAT!$MSGCAT$ac_delim
7824GROFF!$GROFF$ac_delim
7825RSH!$RSH$ac_delim
7826PERL!$PERL$ac_delim
7827SH!$SH$ac_delim
7828po_files!$po_files$ac_delim
7829have_groff!$have_groff$ac_delim
7830PROGRAM_PREFIX!$PROGRAM_PREFIX$ac_delim
7831PROGRAM_SUFFIX!$PROGRAM_SUFFIX$ac_delim
7832NLSDIR!$NLSDIR$ac_delim
7833LIBOBJS!$LIBOBJS$ac_delim
7834LTLIBOBJS!$LTLIBOBJS$ac_delim
7835_ACEOF
7836
7837  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
7838    break
7839  elif $ac_last_try; then
7840    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7841echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7842   { (exit 1); exit 1; }; }
7843  else
7844    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7845  fi
7846done
7847
7848ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7849if test -n "$ac_eof"; then
7850  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7851  ac_eof=`expr $ac_eof + 1`
7852fi
7853
7854cat >>$CONFIG_STATUS <<_ACEOF
7855cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7856/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7857_ACEOF
7858sed '
7859s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7860s/^/s,@/; s/!/@,|#_!!_#|/
7861:n
7862t n
7863s/'"$ac_delim"'$/,g/; t
7864s/$/\\/; p
7865N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7866' >>$CONFIG_STATUS <conf$$subs.sed
7867rm -f conf$$subs.sed
7868cat >>$CONFIG_STATUS <<_ACEOF
7869:end
7870s/|#_!!_#|//g
7871CEOF$ac_eof
7872_ACEOF
7873
7874
7875# VPATH may cause trouble with some makes, so we remove $(srcdir),
7876# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7877# trailing colons and then remove the whole line if VPATH becomes empty
7878# (actually we leave an empty line to preserve line numbers).
7879if test "x$srcdir" = x.; then
7880  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
7881s/:*\$(srcdir):*/:/
7882s/:*\${srcdir}:*/:/
7883s/:*@srcdir@:*/:/
7884s/^\([^=]*=[	 ]*\):*/\1/
7885s/:*$//
7886s/^[^=]*=[	 ]*$//
7887}'
7888fi
7889
7890cat >>$CONFIG_STATUS <<\_ACEOF
7891fi # test -n "$CONFIG_FILES"
7892
7893
7894for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
7895do
7896  case $ac_tag in
7897  :[FHLC]) ac_mode=$ac_tag; continue;;
7898  esac
7899  case $ac_mode$ac_tag in
7900  :[FHL]*:*);;
7901  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7902echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7903   { (exit 1); exit 1; }; };;
7904  :[FH]-) ac_tag=-:-;;
7905  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7906  esac
7907  ac_save_IFS=$IFS
7908  IFS=:
7909  set x $ac_tag
7910  IFS=$ac_save_IFS
7911  shift
7912  ac_file=$1
7913  shift
7914
7915  case $ac_mode in
7916  :L) ac_source=$1;;
7917  :[FH])
7918    ac_file_inputs=
7919    for ac_f
7920    do
7921      case $ac_f in
7922      -) ac_f="$tmp/stdin";;
7923      *) # Look for the file first in the build tree, then in the source tree
7924	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7925	 # because $ac_f cannot contain `:'.
7926	 test -f "$ac_f" ||
7927	   case $ac_f in
7928	   [\\/$]*) false;;
7929	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7930	   esac ||
7931	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7932echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7933   { (exit 1); exit 1; }; };;
7934      esac
7935      ac_file_inputs="$ac_file_inputs $ac_f"
7936    done
7937
7938    # Let's still pretend it is `configure' which instantiates (i.e., don't
7939    # use $as_me), people would be surprised to read:
7940    #    /* config.h.  Generated by config.status.  */
7941    configure_input="Generated from "`IFS=:
7942	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7943    if test x"$ac_file" != x-; then
7944      configure_input="$ac_file.  $configure_input"
7945      { echo "$as_me:$LINENO: creating $ac_file" >&5
7946echo "$as_me: creating $ac_file" >&6;}
7947    fi
7948
7949    case $ac_tag in
7950    *:-:* | *:-) cat >"$tmp/stdin";;
7951    esac
7952    ;;
7953  esac
7954
7955  ac_dir=`$as_dirname -- "$ac_file" ||
7956$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7957	 X"$ac_file" : 'X\(//\)[^/]' \| \
7958	 X"$ac_file" : 'X\(//\)$' \| \
7959	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7960echo X"$ac_file" |
7961    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7962	    s//\1/
7963	    q
7964	  }
7965	  /^X\(\/\/\)[^/].*/{
7966	    s//\1/
7967	    q
7968	  }
7969	  /^X\(\/\/\)$/{
7970	    s//\1/
7971	    q
7972	  }
7973	  /^X\(\/\).*/{
7974	    s//\1/
7975	    q
7976	  }
7977	  s/.*/./; q'`
7978  { as_dir="$ac_dir"
7979  case $as_dir in #(
7980  -*) as_dir=./$as_dir;;
7981  esac
7982  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7983    as_dirs=
7984    while :; do
7985      case $as_dir in #(
7986      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7987      *) as_qdir=$as_dir;;
7988      esac
7989      as_dirs="'$as_qdir' $as_dirs"
7990      as_dir=`$as_dirname -- "$as_dir" ||
7991$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7992	 X"$as_dir" : 'X\(//\)[^/]' \| \
7993	 X"$as_dir" : 'X\(//\)$' \| \
7994	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7995echo X"$as_dir" |
7996    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7997	    s//\1/
7998	    q
7999	  }
8000	  /^X\(\/\/\)[^/].*/{
8001	    s//\1/
8002	    q
8003	  }
8004	  /^X\(\/\/\)$/{
8005	    s//\1/
8006	    q
8007	  }
8008	  /^X\(\/\).*/{
8009	    s//\1/
8010	    q
8011	  }
8012	  s/.*/./; q'`
8013      test -d "$as_dir" && break
8014    done
8015    test -z "$as_dirs" || eval "mkdir $as_dirs"
8016  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8017echo "$as_me: error: cannot create directory $as_dir" >&2;}
8018   { (exit 1); exit 1; }; }; }
8019  ac_builddir=.
8020
8021case "$ac_dir" in
8022.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8023*)
8024  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8025  # A ".." for each directory in $ac_dir_suffix.
8026  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8027  case $ac_top_builddir_sub in
8028  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8029  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8030  esac ;;
8031esac
8032ac_abs_top_builddir=$ac_pwd
8033ac_abs_builddir=$ac_pwd$ac_dir_suffix
8034# for backward compatibility:
8035ac_top_builddir=$ac_top_build_prefix
8036
8037case $srcdir in
8038  .)  # We are building in place.
8039    ac_srcdir=.
8040    ac_top_srcdir=$ac_top_builddir_sub
8041    ac_abs_top_srcdir=$ac_pwd ;;
8042  [\\/]* | ?:[\\/]* )  # Absolute name.
8043    ac_srcdir=$srcdir$ac_dir_suffix;
8044    ac_top_srcdir=$srcdir
8045    ac_abs_top_srcdir=$srcdir ;;
8046  *) # Relative name.
8047    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8048    ac_top_srcdir=$ac_top_build_prefix$srcdir
8049    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8050esac
8051ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8052
8053
8054  case $ac_mode in
8055  :F)
8056  #
8057  # CONFIG_FILE
8058  #
8059
8060  case $INSTALL in
8061  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8062  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8063  esac
8064_ACEOF
8065
8066cat >>$CONFIG_STATUS <<\_ACEOF
8067# If the template does not know about datarootdir, expand it.
8068# FIXME: This hack should be removed a few years after 2.60.
8069ac_datarootdir_hack=; ac_datarootdir_seen=
8070
8071case `sed -n '/datarootdir/ {
8072  p
8073  q
8074}
8075/@datadir@/p
8076/@docdir@/p
8077/@infodir@/p
8078/@localedir@/p
8079/@mandir@/p
8080' $ac_file_inputs` in
8081*datarootdir*) ac_datarootdir_seen=yes;;
8082*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8083  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8084echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8085_ACEOF
8086cat >>$CONFIG_STATUS <<_ACEOF
8087  ac_datarootdir_hack='
8088  s&@datadir@&$datadir&g
8089  s&@docdir@&$docdir&g
8090  s&@infodir@&$infodir&g
8091  s&@localedir@&$localedir&g
8092  s&@mandir@&$mandir&g
8093    s&\\\${datarootdir}&$datarootdir&g' ;;
8094esac
8095_ACEOF
8096
8097# Neutralize VPATH when `$srcdir' = `.'.
8098# Shell code in configure.ac might set extrasub.
8099# FIXME: do we really want to maintain this feature?
8100cat >>$CONFIG_STATUS <<_ACEOF
8101  sed "$ac_vpsub
8102$extrasub
8103_ACEOF
8104cat >>$CONFIG_STATUS <<\_ACEOF
8105:t
8106/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8107s&@configure_input@&$configure_input&;t t
8108s&@top_builddir@&$ac_top_builddir_sub&;t t
8109s&@srcdir@&$ac_srcdir&;t t
8110s&@abs_srcdir@&$ac_abs_srcdir&;t t
8111s&@top_srcdir@&$ac_top_srcdir&;t t
8112s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8113s&@builddir@&$ac_builddir&;t t
8114s&@abs_builddir@&$ac_abs_builddir&;t t
8115s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8116s&@INSTALL@&$ac_INSTALL&;t t
8117$ac_datarootdir_hack
8118" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8119
8120test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8121  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8122  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8123  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8124which seems to be undefined.  Please make sure it is defined." >&5
8125echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8126which seems to be undefined.  Please make sure it is defined." >&2;}
8127
8128  rm -f "$tmp/stdin"
8129  case $ac_file in
8130  -) cat "$tmp/out"; rm -f "$tmp/out";;
8131  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8132  esac
8133 ;;
8134  :H)
8135  #
8136  # CONFIG_HEADER
8137  #
8138_ACEOF
8139
8140# Transform confdefs.h into a sed script `conftest.defines', that
8141# substitutes the proper values into config.h.in to produce config.h.
8142rm -f conftest.defines conftest.tail
8143# First, append a space to every undef/define line, to ease matching.
8144echo 's/$/ /' >conftest.defines
8145# Then, protect against being on the right side of a sed subst, or in
8146# an unquoted here document, in config.status.  If some macros were
8147# called several times there might be several #defines for the same
8148# symbol, which is useless.  But do not sort them, since the last
8149# AC_DEFINE must be honored.
8150ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8151# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8152# NAME is the cpp macro being defined, VALUE is the value it is being given.
8153# PARAMS is the parameter list in the macro definition--in most cases, it's
8154# just an empty string.
8155ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
8156ac_dB='\\)[	 (].*,\\1define\\2'
8157ac_dC=' '
8158ac_dD=' ,'
8159
8160uniq confdefs.h |
8161  sed -n '
8162	t rset
8163	:rset
8164	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
8165	t ok
8166	d
8167	:ok
8168	s/[\\&,]/\\&/g
8169	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8170	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8171  ' >>conftest.defines
8172
8173# Remove the space that was appended to ease matching.
8174# Then replace #undef with comments.  This is necessary, for
8175# example, in the case of _POSIX_SOURCE, which is predefined and required
8176# on some systems where configure will not decide to define it.
8177# (The regexp can be short, since the line contains either #define or #undef.)
8178echo 's/ $//
8179s,^[	 #]*u.*,/* & */,' >>conftest.defines
8180
8181# Break up conftest.defines:
8182ac_max_sed_lines=50
8183
8184# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8185# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8186# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8187# et cetera.
8188ac_in='$ac_file_inputs'
8189ac_out='"$tmp/out1"'
8190ac_nxt='"$tmp/out2"'
8191
8192while :
8193do
8194  # Write a here document:
8195    cat >>$CONFIG_STATUS <<_ACEOF
8196    # First, check the format of the line:
8197    cat >"\$tmp/defines.sed" <<\\CEOF
8198/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
8199/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
8200b
8201:def
8202_ACEOF
8203  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8204  echo 'CEOF
8205    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8206  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8207  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8208  grep . conftest.tail >/dev/null || break
8209  rm -f conftest.defines
8210  mv conftest.tail conftest.defines
8211done
8212rm -f conftest.defines conftest.tail
8213
8214echo "ac_result=$ac_in" >>$CONFIG_STATUS
8215cat >>$CONFIG_STATUS <<\_ACEOF
8216  if test x"$ac_file" != x-; then
8217    echo "/* $configure_input  */" >"$tmp/config.h"
8218    cat "$ac_result" >>"$tmp/config.h"
8219    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8220      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8221echo "$as_me: $ac_file is unchanged" >&6;}
8222    else
8223      rm -f $ac_file
8224      mv "$tmp/config.h" $ac_file
8225    fi
8226  else
8227    echo "/* $configure_input  */"
8228    cat "$ac_result"
8229  fi
8230  rm -f "$tmp/out12"
8231 ;;
8232
8233
8234  esac
8235
8236done # for ac_tag
8237
8238
8239{ (exit 0); exit 0; }
8240_ACEOF
8241chmod +x $CONFIG_STATUS
8242ac_clean_files=$ac_clean_files_save
8243
8244
8245# configure is writing to config.log, and then calls config.status.
8246# config.status does its own redirection, appending to config.log.
8247# Unfortunately, on DOS this fails, as config.log is still kept open
8248# by configure, so config.status won't be able to write to it; its
8249# output is simply discarded.  So we exec the FD to /dev/null,
8250# effectively closing config.log, so it can be properly (re)opened and
8251# appended to by config.status.  When coming back to configure, we
8252# need to make the FD available again.
8253if test "$no_create" != yes; then
8254  ac_cs_success=:
8255  ac_config_status_args=
8256  test "$silent" = yes &&
8257    ac_config_status_args="$ac_config_status_args --quiet"
8258  exec 5>/dev/null
8259  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8260  exec 5>>config.log
8261  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8262  # would make configure fail if this is the last instruction.
8263  $ac_cs_success || { (exit 1); exit 1; }
8264fi
8265
8266