1#! /bin/sh
2# From configure.in Id: configure.in,v 1.5 2000/01/13 07:04:46 elf Exp .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61.
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be more Bourne compatible
15DUALCASE=1; export DUALCASE # for MKS sh
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22  setopt NO_GLOB_SUBST
23else
24  case `(set -o) 2>/dev/null` in
25  *posix*) set -o posix ;;
26esac
27
28fi
29
30
31
32
33# PATH needs CR
34# Avoid depending upon Character Ranges.
35as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38as_cr_digits='0123456789'
39as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41# The user is always right.
42if test "${PATH_SEPARATOR+set}" != set; then
43  echo "#! /bin/sh" >conf$$.sh
44  echo  "exit 0"   >>conf$$.sh
45  chmod +x conf$$.sh
46  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47    PATH_SEPARATOR=';'
48  else
49    PATH_SEPARATOR=:
50  fi
51  rm -f conf$$.sh
52fi
53
54# Support unset when possible.
55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56  as_unset=unset
57else
58  as_unset=false
59fi
60
61
62# IFS
63# We need space, tab and new line, in precisely that order.  Quoting is
64# there to prevent editors from complaining about space-tab.
65# (If _AS_PATH_WALK were called with IFS unset, it would disable word
66# splitting by setting IFS to empty value.)
67as_nl='
68'
69IFS=" ""	$as_nl"
70
71# Find who we are.  Look in the path if we contain no directory separator.
72case $0 in
73  *[\\/]* ) as_myself=$0 ;;
74  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75for as_dir in $PATH
76do
77  IFS=$as_save_IFS
78  test -z "$as_dir" && as_dir=.
79  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80done
81IFS=$as_save_IFS
82
83     ;;
84esac
85# We did not find ourselves, most probably we were run as `sh COMMAND'
86# in which case we are not to be found in the path.
87if test "x$as_myself" = x; then
88  as_myself=$0
89fi
90if test ! -f "$as_myself"; then
91  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92  { (exit 1); exit 1; }
93fi
94
95# Work around bugs in pre-3.0 UWIN ksh.
96for as_var in ENV MAIL MAILPATH
97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98done
99PS1='$ '
100PS2='> '
101PS4='+ '
102
103# NLS nuisances.
104for as_var in \
105  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107  LC_TELEPHONE LC_TIME
108do
109  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110    eval $as_var=C; export $as_var
111  else
112    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113  fi
114done
115
116# Required to use basename.
117if expr a : '\(a\)' >/dev/null 2>&1 &&
118   test "X`expr 00001 : '.*\(...\)'`" = X001; then
119  as_expr=expr
120else
121  as_expr=false
122fi
123
124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125  as_basename=basename
126else
127  as_basename=false
128fi
129
130
131# Name of the executable.
132as_me=`$as_basename -- "$0" ||
133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134	 X"$0" : 'X\(//\)$' \| \
135	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136echo X/"$0" |
137    sed '/^.*\/\([^/][^/]*\)\/*$/{
138	    s//\1/
139	    q
140	  }
141	  /^X\/\(\/\/\)$/{
142	    s//\1/
143	    q
144	  }
145	  /^X\/\(\/\).*/{
146	    s//\1/
147	    q
148	  }
149	  s/.*/./; q'`
150
151# CDPATH.
152$as_unset CDPATH
153
154
155if test "x$CONFIG_SHELL" = x; then
156  if (eval ":") 2>/dev/null; then
157  as_have_required=yes
158else
159  as_have_required=no
160fi
161
162  if test $as_have_required = yes && 	 (eval ":
163(as_func_return () {
164  (exit \$1)
165}
166as_func_success () {
167  as_func_return 0
168}
169as_func_failure () {
170  as_func_return 1
171}
172as_func_ret_success () {
173  return 0
174}
175as_func_ret_failure () {
176  return 1
177}
178
179exitcode=0
180if as_func_success; then
181  :
182else
183  exitcode=1
184  echo as_func_success failed.
185fi
186
187if as_func_failure; then
188  exitcode=1
189  echo as_func_failure succeeded.
190fi
191
192if as_func_ret_success; then
193  :
194else
195  exitcode=1
196  echo as_func_ret_success failed.
197fi
198
199if as_func_ret_failure; then
200  exitcode=1
201  echo as_func_ret_failure succeeded.
202fi
203
204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205  :
206else
207  exitcode=1
208  echo positional parameters were not saved.
209fi
210
211test \$exitcode = 0) || { (exit 1); exit 1; }
212
213(
214  as_lineno_1=\$LINENO
215  as_lineno_2=\$LINENO
216  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218") 2> /dev/null; then
219  :
220else
221  as_candidate_shells=
222    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224do
225  IFS=$as_save_IFS
226  test -z "$as_dir" && as_dir=.
227  case $as_dir in
228	 /*)
229	   for as_base in sh bash ksh sh5; do
230	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231	   done;;
232       esac
233done
234IFS=$as_save_IFS
235
236
237      for as_shell in $as_candidate_shells $SHELL; do
238	 # Try only shells that exist, to save several forks.
239	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240		{ ("$as_shell") 2> /dev/null <<\_ASEOF
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in
250  *posix*) set -o posix ;;
251esac
252
253fi
254
255
256:
257_ASEOF
258}; then
259  CONFIG_SHELL=$as_shell
260	       as_have_required=yes
261	       if { "$as_shell" 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263  emulate sh
264  NULLCMD=:
265  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266  # is contrary to our usage.  Disable this feature.
267  alias -g '${1+"$@"}'='"$@"'
268  setopt NO_GLOB_SUBST
269else
270  case `(set -o) 2>/dev/null` in
271  *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278(as_func_return () {
279  (exit $1)
280}
281as_func_success () {
282  as_func_return 0
283}
284as_func_failure () {
285  as_func_return 1
286}
287as_func_ret_success () {
288  return 0
289}
290as_func_ret_failure () {
291  return 1
292}
293
294exitcode=0
295if as_func_success; then
296  :
297else
298  exitcode=1
299  echo as_func_success failed.
300fi
301
302if as_func_failure; then
303  exitcode=1
304  echo as_func_failure succeeded.
305fi
306
307if as_func_ret_success; then
308  :
309else
310  exitcode=1
311  echo as_func_ret_success failed.
312fi
313
314if as_func_ret_failure; then
315  exitcode=1
316  echo as_func_ret_failure succeeded.
317fi
318
319if ( set x; as_func_ret_success y && test x = "$1" ); then
320  :
321else
322  exitcode=1
323  echo positional parameters were not saved.
324fi
325
326test $exitcode = 0) || { (exit 1); exit 1; }
327
328(
329  as_lineno_1=$LINENO
330  as_lineno_2=$LINENO
331  test "x$as_lineno_1" != "x$as_lineno_2" &&
332  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334_ASEOF
335}; then
336  break
337fi
338
339fi
340
341      done
342
343      if test "x$CONFIG_SHELL" != x; then
344  for as_var in BASH_ENV ENV
345        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346        done
347        export CONFIG_SHELL
348        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349fi
350
351
352    if test $as_have_required = no; then
353  echo This script requires a shell more modern than all the
354      echo shells that I found on your system.  Please install a
355      echo modern shell, or manually run the script under such a
356      echo shell if you do have one.
357      { (exit 1); exit 1; }
358fi
359
360
361fi
362
363fi
364
365
366
367(eval "as_func_return () {
368  (exit \$1)
369}
370as_func_success () {
371  as_func_return 0
372}
373as_func_failure () {
374  as_func_return 1
375}
376as_func_ret_success () {
377  return 0
378}
379as_func_ret_failure () {
380  return 1
381}
382
383exitcode=0
384if as_func_success; then
385  :
386else
387  exitcode=1
388  echo as_func_success failed.
389fi
390
391if as_func_failure; then
392  exitcode=1
393  echo as_func_failure succeeded.
394fi
395
396if as_func_ret_success; then
397  :
398else
399  exitcode=1
400  echo as_func_ret_success failed.
401fi
402
403if as_func_ret_failure; then
404  exitcode=1
405  echo as_func_ret_failure succeeded.
406fi
407
408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409  :
410else
411  exitcode=1
412  echo positional parameters were not saved.
413fi
414
415test \$exitcode = 0") || {
416  echo No shell found that supports shell functions.
417  echo Please tell autoconf@gnu.org about your system,
418  echo including any error possibly output before this
419  echo message
420}
421
422
423
424  as_lineno_1=$LINENO
425  as_lineno_2=$LINENO
426  test "x$as_lineno_1" != "x$as_lineno_2" &&
427  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430  # uniformly replaced by the line number.  The first 'sed' inserts a
431  # line-number line after each line using $LINENO; the second 'sed'
432  # does the real work.  The second script uses 'N' to pair each
433  # line-number line with the line containing $LINENO, and appends
434  # trailing '-' during substitution so that $LINENO is not a special
435  # case at line end.
436  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437  # scripts with optimization help from Paolo Bonzini.  Blame Lee
438  # E. McMahon (1931-1989) for sed's syntax.  :-)
439  sed -n '
440    p
441    /[$]LINENO/=
442  ' <$as_myself |
443    sed '
444      s/[$]LINENO.*/&-/
445      t lineno
446      b
447      :lineno
448      N
449      :loop
450      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451      t loop
452      s/-\n.*//
453    ' >$as_me.lineno &&
454  chmod +x "$as_me.lineno" ||
455    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456   { (exit 1); exit 1; }; }
457
458  # Don't try to exec as it changes $[0], causing all sort of problems
459  # (the dirname of $[0] is not the place where we might find the
460  # original and so on.  Autoconf is especially sensitive to this).
461  . "./$as_me.lineno"
462  # Exit status is that of the last command.
463  exit
464}
465
466
467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468  as_dirname=dirname
469else
470  as_dirname=false
471fi
472
473ECHO_C= ECHO_N= ECHO_T=
474case `echo -n x` in
475-n*)
476  case `echo 'x\c'` in
477  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
478  *)   ECHO_C='\c';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484if expr a : '\(a\)' >/dev/null 2>&1 &&
485   test "X`expr 00001 : '.*\(...\)'`" = X001; then
486  as_expr=expr
487else
488  as_expr=false
489fi
490
491rm -f conf$$ conf$$.exe conf$$.file
492if test -d conf$$.dir; then
493  rm -f conf$$.dir/conf$$.file
494else
495  rm -f conf$$.dir
496  mkdir conf$$.dir
497fi
498echo >conf$$.file
499if ln -s conf$$.file conf$$ 2>/dev/null; then
500  as_ln_s='ln -s'
501  # ... but there are two gotchas:
502  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504  # In both cases, we have to default to `cp -p'.
505  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506    as_ln_s='cp -p'
507elif ln conf$$.file conf$$ 2>/dev/null; then
508  as_ln_s=ln
509else
510  as_ln_s='cp -p'
511fi
512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513rmdir conf$$.dir 2>/dev/null
514
515if mkdir -p . 2>/dev/null; then
516  as_mkdir_p=:
517else
518  test -d ./-p && rmdir ./-p
519  as_mkdir_p=false
520fi
521
522if test -x / >/dev/null 2>&1; then
523  as_test_x='test -x'
524else
525  if ls -dL / >/dev/null 2>&1; then
526    as_ls_L_option=L
527  else
528    as_ls_L_option=
529  fi
530  as_test_x='
531    eval sh -c '\''
532      if test -d "$1"; then
533        test -d "$1/.";
534      else
535	case $1 in
536        -*)set "./$1";;
537	esac;
538	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539	???[sx]*):;;*)false;;esac;fi
540    '\'' sh
541  '
542fi
543as_executable_p=$as_test_x
544
545# Sed expression to map a string onto a valid CPP name.
546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548# Sed expression to map a string onto a valid variable name.
549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553exec 7<&0 </dev/null 6>&1
554
555# Name of the host.
556# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557# so uname gets run too.
558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560#
561# Initializations.
562#
563ac_default_prefix=/usr/local
564ac_clean_files=
565ac_config_libobj_dir=.
566LIBOBJS=
567cross_compiling=no
568subdirs=
569MFLAGS=
570MAKEFLAGS=
571SHELL=${CONFIG_SHELL-/bin/sh}
572
573# Identity of this package.
574PACKAGE_NAME=
575PACKAGE_TARNAME=
576PACKAGE_VERSION=
577PACKAGE_STRING=
578PACKAGE_BUGREPORT=
579
580ac_unique_file="ldisplay.cxx"
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595#  include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600#  include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654YACC
655YFLAGS
656LEX
657LEX_OUTPUT_ROOT
658CXX
659CXXFLAGS
660LDFLAGS
661CPPFLAGS
662ac_ct_CXX
663EXEEXT
664OBJEXT
665LEXLIB
666LN_S
667XMKMF
668CXXCPP
669X_CFLAGS
670X_PRE_LIBS
671X_LIBS
672X_EXTRA_LIBS
673GREP
674EGREP
675CFLAGS_W
676LIBOBJS
677LTLIBOBJS'
678ac_subst_files=''
679      ac_precious_vars='build_alias
680host_alias
681target_alias
682YACC
683YFLAGS
684CXX
685CXXFLAGS
686LDFLAGS
687LIBS
688CPPFLAGS
689CCC
690XMKMF
691CXXCPP'
692
693
694# Initialize some variables set by options.
695ac_init_help=
696ac_init_version=false
697# The variables have the same names as the options, with
698# dashes changed to underlines.
699cache_file=/dev/null
700exec_prefix=NONE
701no_create=
702no_recursion=
703prefix=NONE
704program_prefix=NONE
705program_suffix=NONE
706program_transform_name=s,x,x,
707silent=
708site=
709srcdir=
710verbose=
711x_includes=NONE
712x_libraries=NONE
713
714# Installation directory options.
715# These are left unexpanded so users can "make install exec_prefix=/foo"
716# and all the variables that are supposed to be based on exec_prefix
717# by default will actually change.
718# Use braces instead of parens because sh, perl, etc. also accept them.
719# (The list follows the same order as the GNU Coding Standards.)
720bindir='${exec_prefix}/bin'
721sbindir='${exec_prefix}/sbin'
722libexecdir='${exec_prefix}/libexec'
723datarootdir='${prefix}/share'
724datadir='${datarootdir}'
725sysconfdir='${prefix}/etc'
726sharedstatedir='${prefix}/com'
727localstatedir='${prefix}/var'
728includedir='${prefix}/include'
729oldincludedir='/usr/include'
730docdir='${datarootdir}/doc/${PACKAGE}'
731infodir='${datarootdir}/info'
732htmldir='${docdir}'
733dvidir='${docdir}'
734pdfdir='${docdir}'
735psdir='${docdir}'
736libdir='${exec_prefix}/lib'
737localedir='${datarootdir}/locale'
738mandir='${datarootdir}/man'
739
740ac_prev=
741ac_dashdash=
742for ac_option
743do
744  # If the previous option needs an argument, assign it.
745  if test -n "$ac_prev"; then
746    eval $ac_prev=\$ac_option
747    ac_prev=
748    continue
749  fi
750
751  case $ac_option in
752  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
753  *)	ac_optarg=yes ;;
754  esac
755
756  # Accept the important Cygnus configure options, so we can diagnose typos.
757
758  case $ac_dashdash$ac_option in
759  --)
760    ac_dashdash=yes ;;
761
762  -bindir | --bindir | --bindi | --bind | --bin | --bi)
763    ac_prev=bindir ;;
764  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
765    bindir=$ac_optarg ;;
766
767  -build | --build | --buil | --bui | --bu)
768    ac_prev=build_alias ;;
769  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
770    build_alias=$ac_optarg ;;
771
772  -cache-file | --cache-file | --cache-fil | --cache-fi \
773  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
774    ac_prev=cache_file ;;
775  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
776  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
777    cache_file=$ac_optarg ;;
778
779  --config-cache | -C)
780    cache_file=config.cache ;;
781
782  -datadir | --datadir | --datadi | --datad)
783    ac_prev=datadir ;;
784  -datadir=* | --datadir=* | --datadi=* | --datad=*)
785    datadir=$ac_optarg ;;
786
787  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
788  | --dataroo | --dataro | --datar)
789    ac_prev=datarootdir ;;
790  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
791  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
792    datarootdir=$ac_optarg ;;
793
794  -disable-* | --disable-*)
795    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
799   { (exit 1); exit 1; }; }
800    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
801    eval enable_$ac_feature=no ;;
802
803  -docdir | --docdir | --docdi | --doc | --do)
804    ac_prev=docdir ;;
805  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
806    docdir=$ac_optarg ;;
807
808  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
809    ac_prev=dvidir ;;
810  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
811    dvidir=$ac_optarg ;;
812
813  -enable-* | --enable-*)
814    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
815    # Reject names that are not valid shell variable names.
816    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
817      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
818   { (exit 1); exit 1; }; }
819    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
820    eval enable_$ac_feature=\$ac_optarg ;;
821
822  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
823  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
824  | --exec | --exe | --ex)
825    ac_prev=exec_prefix ;;
826  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
827  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
828  | --exec=* | --exe=* | --ex=*)
829    exec_prefix=$ac_optarg ;;
830
831  -gas | --gas | --ga | --g)
832    # Obsolete; use --with-gas.
833    with_gas=yes ;;
834
835  -help | --help | --hel | --he | -h)
836    ac_init_help=long ;;
837  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
838    ac_init_help=recursive ;;
839  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
840    ac_init_help=short ;;
841
842  -host | --host | --hos | --ho)
843    ac_prev=host_alias ;;
844  -host=* | --host=* | --hos=* | --ho=*)
845    host_alias=$ac_optarg ;;
846
847  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
848    ac_prev=htmldir ;;
849  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
850  | --ht=*)
851    htmldir=$ac_optarg ;;
852
853  -includedir | --includedir | --includedi | --included | --include \
854  | --includ | --inclu | --incl | --inc)
855    ac_prev=includedir ;;
856  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
857  | --includ=* | --inclu=* | --incl=* | --inc=*)
858    includedir=$ac_optarg ;;
859
860  -infodir | --infodir | --infodi | --infod | --info | --inf)
861    ac_prev=infodir ;;
862  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
863    infodir=$ac_optarg ;;
864
865  -libdir | --libdir | --libdi | --libd)
866    ac_prev=libdir ;;
867  -libdir=* | --libdir=* | --libdi=* | --libd=*)
868    libdir=$ac_optarg ;;
869
870  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
871  | --libexe | --libex | --libe)
872    ac_prev=libexecdir ;;
873  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
874  | --libexe=* | --libex=* | --libe=*)
875    libexecdir=$ac_optarg ;;
876
877  -localedir | --localedir | --localedi | --localed | --locale)
878    ac_prev=localedir ;;
879  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
880    localedir=$ac_optarg ;;
881
882  -localstatedir | --localstatedir | --localstatedi | --localstated \
883  | --localstate | --localstat | --localsta | --localst | --locals)
884    ac_prev=localstatedir ;;
885  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
886  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
887    localstatedir=$ac_optarg ;;
888
889  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
890    ac_prev=mandir ;;
891  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
892    mandir=$ac_optarg ;;
893
894  -nfp | --nfp | --nf)
895    # Obsolete; use --without-fp.
896    with_fp=no ;;
897
898  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
899  | --no-cr | --no-c | -n)
900    no_create=yes ;;
901
902  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
903  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
904    no_recursion=yes ;;
905
906  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
907  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
908  | --oldin | --oldi | --old | --ol | --o)
909    ac_prev=oldincludedir ;;
910  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
911  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
912  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
913    oldincludedir=$ac_optarg ;;
914
915  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
916    ac_prev=prefix ;;
917  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
918    prefix=$ac_optarg ;;
919
920  -program-prefix | --program-prefix | --program-prefi | --program-pref \
921  | --program-pre | --program-pr | --program-p)
922    ac_prev=program_prefix ;;
923  -program-prefix=* | --program-prefix=* | --program-prefi=* \
924  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
925    program_prefix=$ac_optarg ;;
926
927  -program-suffix | --program-suffix | --program-suffi | --program-suff \
928  | --program-suf | --program-su | --program-s)
929    ac_prev=program_suffix ;;
930  -program-suffix=* | --program-suffix=* | --program-suffi=* \
931  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
932    program_suffix=$ac_optarg ;;
933
934  -program-transform-name | --program-transform-name \
935  | --program-transform-nam | --program-transform-na \
936  | --program-transform-n | --program-transform- \
937  | --program-transform | --program-transfor \
938  | --program-transfo | --program-transf \
939  | --program-trans | --program-tran \
940  | --progr-tra | --program-tr | --program-t)
941    ac_prev=program_transform_name ;;
942  -program-transform-name=* | --program-transform-name=* \
943  | --program-transform-nam=* | --program-transform-na=* \
944  | --program-transform-n=* | --program-transform-=* \
945  | --program-transform=* | --program-transfor=* \
946  | --program-transfo=* | --program-transf=* \
947  | --program-trans=* | --program-tran=* \
948  | --progr-tra=* | --program-tr=* | --program-t=*)
949    program_transform_name=$ac_optarg ;;
950
951  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
952    ac_prev=pdfdir ;;
953  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
954    pdfdir=$ac_optarg ;;
955
956  -psdir | --psdir | --psdi | --psd | --ps)
957    ac_prev=psdir ;;
958  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
959    psdir=$ac_optarg ;;
960
961  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
962  | -silent | --silent | --silen | --sile | --sil)
963    silent=yes ;;
964
965  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
966    ac_prev=sbindir ;;
967  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
968  | --sbi=* | --sb=*)
969    sbindir=$ac_optarg ;;
970
971  -sharedstatedir | --sharedstatedir | --sharedstatedi \
972  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
973  | --sharedst | --shareds | --shared | --share | --shar \
974  | --sha | --sh)
975    ac_prev=sharedstatedir ;;
976  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
977  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
978  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
979  | --sha=* | --sh=*)
980    sharedstatedir=$ac_optarg ;;
981
982  -site | --site | --sit)
983    ac_prev=site ;;
984  -site=* | --site=* | --sit=*)
985    site=$ac_optarg ;;
986
987  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
988    ac_prev=srcdir ;;
989  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
990    srcdir=$ac_optarg ;;
991
992  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
993  | --syscon | --sysco | --sysc | --sys | --sy)
994    ac_prev=sysconfdir ;;
995  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
996  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
997    sysconfdir=$ac_optarg ;;
998
999  -target | --target | --targe | --targ | --tar | --ta | --t)
1000    ac_prev=target_alias ;;
1001  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1002    target_alias=$ac_optarg ;;
1003
1004  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1005    verbose=yes ;;
1006
1007  -version | --version | --versio | --versi | --vers | -V)
1008    ac_init_version=: ;;
1009
1010  -with-* | --with-*)
1011    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1012    # Reject names that are not valid shell variable names.
1013    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014      { echo "$as_me: error: invalid package name: $ac_package" >&2
1015   { (exit 1); exit 1; }; }
1016    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1017    eval with_$ac_package=\$ac_optarg ;;
1018
1019  -without-* | --without-*)
1020    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1021    # Reject names that are not valid shell variable names.
1022    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1023      { echo "$as_me: error: invalid package name: $ac_package" >&2
1024   { (exit 1); exit 1; }; }
1025    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1026    eval with_$ac_package=no ;;
1027
1028  --x)
1029    # Obsolete; use --with-x.
1030    with_x=yes ;;
1031
1032  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1033  | --x-incl | --x-inc | --x-in | --x-i)
1034    ac_prev=x_includes ;;
1035  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1036  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1037    x_includes=$ac_optarg ;;
1038
1039  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1040  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1041    ac_prev=x_libraries ;;
1042  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1043  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1044    x_libraries=$ac_optarg ;;
1045
1046  -*) { echo "$as_me: error: unrecognized option: $ac_option
1047Try \`$0 --help' for more information." >&2
1048   { (exit 1); exit 1; }; }
1049    ;;
1050
1051  *=*)
1052    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1053    # Reject names that are not valid shell variable names.
1054    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1055      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1056   { (exit 1); exit 1; }; }
1057    eval $ac_envvar=\$ac_optarg
1058    export $ac_envvar ;;
1059
1060  *)
1061    # FIXME: should be removed in autoconf 3.0.
1062    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1063    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1065    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1066    ;;
1067
1068  esac
1069done
1070
1071if test -n "$ac_prev"; then
1072  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1073  { echo "$as_me: error: missing argument to $ac_option" >&2
1074   { (exit 1); exit 1; }; }
1075fi
1076
1077# Be sure to have absolute directory names.
1078for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1079		datadir sysconfdir sharedstatedir localstatedir includedir \
1080		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1081		libdir localedir mandir
1082do
1083  eval ac_val=\$$ac_var
1084  case $ac_val in
1085    [\\/$]* | ?:[\\/]* )  continue;;
1086    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1087  esac
1088  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1089   { (exit 1); exit 1; }; }
1090done
1091
1092# There might be people who depend on the old broken behavior: `$host'
1093# used to hold the argument of --host etc.
1094# FIXME: To remove some day.
1095build=$build_alias
1096host=$host_alias
1097target=$target_alias
1098
1099# FIXME: To remove some day.
1100if test "x$host_alias" != x; then
1101  if test "x$build_alias" = x; then
1102    cross_compiling=maybe
1103    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1104    If a cross compiler is detected then cross compile mode will be used." >&2
1105  elif test "x$build_alias" != "x$host_alias"; then
1106    cross_compiling=yes
1107  fi
1108fi
1109
1110ac_tool_prefix=
1111test -n "$host_alias" && ac_tool_prefix=$host_alias-
1112
1113test "$silent" = yes && exec 6>/dev/null
1114
1115
1116ac_pwd=`pwd` && test -n "$ac_pwd" &&
1117ac_ls_di=`ls -di .` &&
1118ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1119  { echo "$as_me: error: Working directory cannot be determined" >&2
1120   { (exit 1); exit 1; }; }
1121test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1122  { echo "$as_me: error: pwd does not report name of working directory" >&2
1123   { (exit 1); exit 1; }; }
1124
1125
1126# Find the source files, if location was not specified.
1127if test -z "$srcdir"; then
1128  ac_srcdir_defaulted=yes
1129  # Try the directory containing this script, then the parent directory.
1130  ac_confdir=`$as_dirname -- "$0" ||
1131$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1132	 X"$0" : 'X\(//\)[^/]' \| \
1133	 X"$0" : 'X\(//\)$' \| \
1134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1135echo X"$0" |
1136    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1137	    s//\1/
1138	    q
1139	  }
1140	  /^X\(\/\/\)[^/].*/{
1141	    s//\1/
1142	    q
1143	  }
1144	  /^X\(\/\/\)$/{
1145	    s//\1/
1146	    q
1147	  }
1148	  /^X\(\/\).*/{
1149	    s//\1/
1150	    q
1151	  }
1152	  s/.*/./; q'`
1153  srcdir=$ac_confdir
1154  if test ! -r "$srcdir/$ac_unique_file"; then
1155    srcdir=..
1156  fi
1157else
1158  ac_srcdir_defaulted=no
1159fi
1160if test ! -r "$srcdir/$ac_unique_file"; then
1161  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1162  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1163   { (exit 1); exit 1; }; }
1164fi
1165ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1166ac_abs_confdir=`(
1167	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1168   { (exit 1); exit 1; }; }
1169	pwd)`
1170# When building in place, set srcdir=.
1171if test "$ac_abs_confdir" = "$ac_pwd"; then
1172  srcdir=.
1173fi
1174# Remove unnecessary trailing slashes from srcdir.
1175# Double slashes in file names in object file debugging info
1176# mess up M-x gdb in Emacs.
1177case $srcdir in
1178*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1179esac
1180for ac_var in $ac_precious_vars; do
1181  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1182  eval ac_env_${ac_var}_value=\$${ac_var}
1183  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1184  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1185done
1186
1187#
1188# Report the --help message.
1189#
1190if test "$ac_init_help" = "long"; then
1191  # Omit some internal or obsolete options to make the list less imposing.
1192  # This message is too long to be a string in the A/UX 3.1 sh.
1193  cat <<_ACEOF
1194\`configure' configures this package to adapt to many kinds of systems.
1195
1196Usage: $0 [OPTION]... [VAR=VALUE]...
1197
1198To assign environment variables (e.g., CC, CFLAGS...), specify them as
1199VAR=VALUE.  See below for descriptions of some of the useful variables.
1200
1201Defaults for the options are specified in brackets.
1202
1203Configuration:
1204  -h, --help              display this help and exit
1205      --help=short        display options specific to this package
1206      --help=recursive    display the short help of all the included packages
1207  -V, --version           display version information and exit
1208  -q, --quiet, --silent   do not print \`checking...' messages
1209      --cache-file=FILE   cache test results in FILE [disabled]
1210  -C, --config-cache      alias for \`--cache-file=config.cache'
1211  -n, --no-create         do not create output files
1212      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1213
1214Installation directories:
1215  --prefix=PREFIX         install architecture-independent files in PREFIX
1216			  [$ac_default_prefix]
1217  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1218			  [PREFIX]
1219
1220By default, \`make install' will install all the files in
1221\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1222an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1223for instance \`--prefix=\$HOME'.
1224
1225For better control, use the options below.
1226
1227Fine tuning of the installation directories:
1228  --bindir=DIR           user executables [EPREFIX/bin]
1229  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1230  --libexecdir=DIR       program executables [EPREFIX/libexec]
1231  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1232  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1233  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1234  --libdir=DIR           object code libraries [EPREFIX/lib]
1235  --includedir=DIR       C header files [PREFIX/include]
1236  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1237  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1238  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1239  --infodir=DIR          info documentation [DATAROOTDIR/info]
1240  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1241  --mandir=DIR           man documentation [DATAROOTDIR/man]
1242  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1243  --htmldir=DIR          html documentation [DOCDIR]
1244  --dvidir=DIR           dvi documentation [DOCDIR]
1245  --pdfdir=DIR           pdf documentation [DOCDIR]
1246  --psdir=DIR            ps documentation [DOCDIR]
1247_ACEOF
1248
1249  cat <<\_ACEOF
1250
1251X features:
1252  --x-includes=DIR    X include files are in DIR
1253  --x-libraries=DIR   X library files are in DIR
1254_ACEOF
1255fi
1256
1257if test -n "$ac_init_help"; then
1258
1259  cat <<\_ACEOF
1260
1261Optional Packages:
1262  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1263  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1264  --with-x                use the X Window System
1265
1266Some influential environment variables:
1267  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1268              the first program found out of: `bison -y', `byacc', `yacc'.
1269  YFLAGS      The list of arguments that will be passed by default to $YACC.
1270              This script will default YFLAGS to the empty string to avoid a
1271              default value of `-d' given by some make applications.
1272  CXX         C++ compiler command
1273  CXXFLAGS    C++ compiler flags
1274  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1275              nonstandard directory <lib dir>
1276  LIBS        libraries to pass to the linker, e.g. -l<library>
1277  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1278              you have headers in a nonstandard directory <include dir>
1279  XMKMF       Path to xmkmf, Makefile generator for X Window System
1280  CXXCPP      C++ preprocessor
1281
1282Use these variables to override the choices made by `configure' or to help
1283it to find libraries and programs with nonstandard names/locations.
1284
1285_ACEOF
1286ac_status=$?
1287fi
1288
1289if test "$ac_init_help" = "recursive"; then
1290  # If there are subdirs, report their specific --help.
1291  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1292    test -d "$ac_dir" || continue
1293    ac_builddir=.
1294
1295case "$ac_dir" in
1296.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1297*)
1298  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1299  # A ".." for each directory in $ac_dir_suffix.
1300  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1301  case $ac_top_builddir_sub in
1302  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1303  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1304  esac ;;
1305esac
1306ac_abs_top_builddir=$ac_pwd
1307ac_abs_builddir=$ac_pwd$ac_dir_suffix
1308# for backward compatibility:
1309ac_top_builddir=$ac_top_build_prefix
1310
1311case $srcdir in
1312  .)  # We are building in place.
1313    ac_srcdir=.
1314    ac_top_srcdir=$ac_top_builddir_sub
1315    ac_abs_top_srcdir=$ac_pwd ;;
1316  [\\/]* | ?:[\\/]* )  # Absolute name.
1317    ac_srcdir=$srcdir$ac_dir_suffix;
1318    ac_top_srcdir=$srcdir
1319    ac_abs_top_srcdir=$srcdir ;;
1320  *) # Relative name.
1321    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1322    ac_top_srcdir=$ac_top_build_prefix$srcdir
1323    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1324esac
1325ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1326
1327    cd "$ac_dir" || { ac_status=$?; continue; }
1328    # Check for guested configure.
1329    if test -f "$ac_srcdir/configure.gnu"; then
1330      echo &&
1331      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1332    elif test -f "$ac_srcdir/configure"; then
1333      echo &&
1334      $SHELL "$ac_srcdir/configure" --help=recursive
1335    else
1336      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1337    fi || ac_status=$?
1338    cd "$ac_pwd" || { ac_status=$?; break; }
1339  done
1340fi
1341
1342test -n "$ac_init_help" && exit $ac_status
1343if $ac_init_version; then
1344  cat <<\_ACEOF
1345configure
1346generated by GNU Autoconf 2.61
1347
1348Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13492002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1350This configure script is free software; the Free Software Foundation
1351gives unlimited permission to copy, distribute and modify it.
1352_ACEOF
1353  exit
1354fi
1355cat >config.log <<_ACEOF
1356This file contains any messages produced by compilers while
1357running configure, to aid debugging if configure makes a mistake.
1358
1359It was created by $as_me, which was
1360generated by GNU Autoconf 2.61.  Invocation command line was
1361
1362  $ $0 $@
1363
1364_ACEOF
1365exec 5>>config.log
1366{
1367cat <<_ASUNAME
1368## --------- ##
1369## Platform. ##
1370## --------- ##
1371
1372hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1373uname -m = `(uname -m) 2>/dev/null || echo unknown`
1374uname -r = `(uname -r) 2>/dev/null || echo unknown`
1375uname -s = `(uname -s) 2>/dev/null || echo unknown`
1376uname -v = `(uname -v) 2>/dev/null || echo unknown`
1377
1378/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1379/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1380
1381/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1382/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1383/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1384/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1385/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1386/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1387/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1388
1389_ASUNAME
1390
1391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392for as_dir in $PATH
1393do
1394  IFS=$as_save_IFS
1395  test -z "$as_dir" && as_dir=.
1396  echo "PATH: $as_dir"
1397done
1398IFS=$as_save_IFS
1399
1400} >&5
1401
1402cat >&5 <<_ACEOF
1403
1404
1405## ----------- ##
1406## Core tests. ##
1407## ----------- ##
1408
1409_ACEOF
1410
1411
1412# Keep a trace of the command line.
1413# Strip out --no-create and --no-recursion so they do not pile up.
1414# Strip out --silent because we don't want to record it for future runs.
1415# Also quote any args containing shell meta-characters.
1416# Make two passes to allow for proper duplicate-argument suppression.
1417ac_configure_args=
1418ac_configure_args0=
1419ac_configure_args1=
1420ac_must_keep_next=false
1421for ac_pass in 1 2
1422do
1423  for ac_arg
1424  do
1425    case $ac_arg in
1426    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1427    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1428    | -silent | --silent | --silen | --sile | --sil)
1429      continue ;;
1430    *\'*)
1431      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1432    esac
1433    case $ac_pass in
1434    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1435    2)
1436      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1437      if test $ac_must_keep_next = true; then
1438	ac_must_keep_next=false # Got value, back to normal.
1439      else
1440	case $ac_arg in
1441	  *=* | --config-cache | -C | -disable-* | --disable-* \
1442	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1443	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1444	  | -with-* | --with-* | -without-* | --without-* | --x)
1445	    case "$ac_configure_args0 " in
1446	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1447	    esac
1448	    ;;
1449	  -* ) ac_must_keep_next=true ;;
1450	esac
1451      fi
1452      ac_configure_args="$ac_configure_args '$ac_arg'"
1453      ;;
1454    esac
1455  done
1456done
1457$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1458$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1459
1460# When interrupted or exit'd, cleanup temporary files, and complete
1461# config.log.  We remove comments because anyway the quotes in there
1462# would cause problems or look ugly.
1463# WARNING: Use '\'' to represent an apostrophe within the trap.
1464# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1465trap 'exit_status=$?
1466  # Save into config.log some information that might help in debugging.
1467  {
1468    echo
1469
1470    cat <<\_ASBOX
1471## ---------------- ##
1472## Cache variables. ##
1473## ---------------- ##
1474_ASBOX
1475    echo
1476    # The following way of writing the cache mishandles newlines in values,
1477(
1478  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1479    eval ac_val=\$$ac_var
1480    case $ac_val in #(
1481    *${as_nl}*)
1482      case $ac_var in #(
1483      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1484echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1485      esac
1486      case $ac_var in #(
1487      _ | IFS | as_nl) ;; #(
1488      *) $as_unset $ac_var ;;
1489      esac ;;
1490    esac
1491  done
1492  (set) 2>&1 |
1493    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1494    *${as_nl}ac_space=\ *)
1495      sed -n \
1496	"s/'\''/'\''\\\\'\'''\''/g;
1497	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1498      ;; #(
1499    *)
1500      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1501      ;;
1502    esac |
1503    sort
1504)
1505    echo
1506
1507    cat <<\_ASBOX
1508## ----------------- ##
1509## Output variables. ##
1510## ----------------- ##
1511_ASBOX
1512    echo
1513    for ac_var in $ac_subst_vars
1514    do
1515      eval ac_val=\$$ac_var
1516      case $ac_val in
1517      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1518      esac
1519      echo "$ac_var='\''$ac_val'\''"
1520    done | sort
1521    echo
1522
1523    if test -n "$ac_subst_files"; then
1524      cat <<\_ASBOX
1525## ------------------- ##
1526## File substitutions. ##
1527## ------------------- ##
1528_ASBOX
1529      echo
1530      for ac_var in $ac_subst_files
1531      do
1532	eval ac_val=\$$ac_var
1533	case $ac_val in
1534	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1535	esac
1536	echo "$ac_var='\''$ac_val'\''"
1537      done | sort
1538      echo
1539    fi
1540
1541    if test -s confdefs.h; then
1542      cat <<\_ASBOX
1543## ----------- ##
1544## confdefs.h. ##
1545## ----------- ##
1546_ASBOX
1547      echo
1548      cat confdefs.h
1549      echo
1550    fi
1551    test "$ac_signal" != 0 &&
1552      echo "$as_me: caught signal $ac_signal"
1553    echo "$as_me: exit $exit_status"
1554  } >&5
1555  rm -f core *.core core.conftest.* &&
1556    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1557    exit $exit_status
1558' 0
1559for ac_signal in 1 2 13 15; do
1560  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1561done
1562ac_signal=0
1563
1564# confdefs.h avoids OS command line length limits that DEFS can exceed.
1565rm -f -r conftest* confdefs.h
1566
1567# Predefined preprocessor variables.
1568
1569cat >>confdefs.h <<_ACEOF
1570#define PACKAGE_NAME "$PACKAGE_NAME"
1571_ACEOF
1572
1573
1574cat >>confdefs.h <<_ACEOF
1575#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1576_ACEOF
1577
1578
1579cat >>confdefs.h <<_ACEOF
1580#define PACKAGE_VERSION "$PACKAGE_VERSION"
1581_ACEOF
1582
1583
1584cat >>confdefs.h <<_ACEOF
1585#define PACKAGE_STRING "$PACKAGE_STRING"
1586_ACEOF
1587
1588
1589cat >>confdefs.h <<_ACEOF
1590#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1591_ACEOF
1592
1593
1594# Let the site file select an alternate cache file if it wants to.
1595# Prefer explicitly selected file to automatically selected ones.
1596if test -n "$CONFIG_SITE"; then
1597  set x "$CONFIG_SITE"
1598elif test "x$prefix" != xNONE; then
1599  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1600else
1601  set x "$ac_default_prefix/share/config.site" \
1602	"$ac_default_prefix/etc/config.site"
1603fi
1604shift
1605for ac_site_file
1606do
1607  if test -r "$ac_site_file"; then
1608    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1609echo "$as_me: loading site script $ac_site_file" >&6;}
1610    sed 's/^/| /' "$ac_site_file" >&5
1611    . "$ac_site_file"
1612  fi
1613done
1614
1615if test -r "$cache_file"; then
1616  # Some versions of bash will fail to source /dev/null (special
1617  # files actually), so we avoid doing that.
1618  if test -f "$cache_file"; then
1619    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1620echo "$as_me: loading cache $cache_file" >&6;}
1621    case $cache_file in
1622      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1623      *)                      . "./$cache_file";;
1624    esac
1625  fi
1626else
1627  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1628echo "$as_me: creating cache $cache_file" >&6;}
1629  >$cache_file
1630fi
1631
1632# Check that the precious variables saved in the cache have kept the same
1633# value.
1634ac_cache_corrupted=false
1635for ac_var in $ac_precious_vars; do
1636  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1637  eval ac_new_set=\$ac_env_${ac_var}_set
1638  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1639  eval ac_new_val=\$ac_env_${ac_var}_value
1640  case $ac_old_set,$ac_new_set in
1641    set,)
1642      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1643echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1644      ac_cache_corrupted=: ;;
1645    ,set)
1646      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1647echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1648      ac_cache_corrupted=: ;;
1649    ,);;
1650    *)
1651      if test "x$ac_old_val" != "x$ac_new_val"; then
1652	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1653echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1654	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1655echo "$as_me:   former value:  $ac_old_val" >&2;}
1656	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1657echo "$as_me:   current value: $ac_new_val" >&2;}
1658	ac_cache_corrupted=:
1659      fi;;
1660  esac
1661  # Pass precious variables to config.status.
1662  if test "$ac_new_set" = set; then
1663    case $ac_new_val in
1664    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1665    *) ac_arg=$ac_var=$ac_new_val ;;
1666    esac
1667    case " $ac_configure_args " in
1668      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1669      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1670    esac
1671  fi
1672done
1673if $ac_cache_corrupted; then
1674  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1675echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1676  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1677echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1678   { (exit 1); exit 1; }; }
1679fi
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697ac_ext=c
1698ac_cpp='$CPP $CPPFLAGS'
1699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1701ac_compiler_gnu=$ac_cv_c_compiler_gnu
1702
1703
1704ac_config_headers="$ac_config_headers config.h"
1705
1706
1707ac_ext=cpp
1708ac_cpp='$CXXCPP $CPPFLAGS'
1709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1712
1713for ac_prog in 'bison -y' byacc
1714do
1715  # Extract the first word of "$ac_prog", so it can be a program name with args.
1716set dummy $ac_prog; ac_word=$2
1717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1719if test "${ac_cv_prog_YACC+set}" = set; then
1720  echo $ECHO_N "(cached) $ECHO_C" >&6
1721else
1722  if test -n "$YACC"; then
1723  ac_cv_prog_YACC="$YACC" # Let the user override the test.
1724else
1725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726for as_dir in $PATH
1727do
1728  IFS=$as_save_IFS
1729  test -z "$as_dir" && as_dir=.
1730  for ac_exec_ext in '' $ac_executable_extensions; do
1731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1732    ac_cv_prog_YACC="$ac_prog"
1733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734    break 2
1735  fi
1736done
1737done
1738IFS=$as_save_IFS
1739
1740fi
1741fi
1742YACC=$ac_cv_prog_YACC
1743if test -n "$YACC"; then
1744  { echo "$as_me:$LINENO: result: $YACC" >&5
1745echo "${ECHO_T}$YACC" >&6; }
1746else
1747  { echo "$as_me:$LINENO: result: no" >&5
1748echo "${ECHO_T}no" >&6; }
1749fi
1750
1751
1752  test -n "$YACC" && break
1753done
1754test -n "$YACC" || YACC="yacc"
1755
1756ac_ext=cpp
1757ac_cpp='$CXXCPP $CPPFLAGS'
1758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1761if test -z "$CXX"; then
1762  if test -n "$CCC"; then
1763    CXX=$CCC
1764  else
1765    if test -n "$ac_tool_prefix"; then
1766  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1767  do
1768    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1769set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1772if test "${ac_cv_prog_CXX+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  if test -n "$CXX"; then
1776  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781  IFS=$as_save_IFS
1782  test -z "$as_dir" && as_dir=.
1783  for ac_exec_ext in '' $ac_executable_extensions; do
1784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1785    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787    break 2
1788  fi
1789done
1790done
1791IFS=$as_save_IFS
1792
1793fi
1794fi
1795CXX=$ac_cv_prog_CXX
1796if test -n "$CXX"; then
1797  { echo "$as_me:$LINENO: result: $CXX" >&5
1798echo "${ECHO_T}$CXX" >&6; }
1799else
1800  { echo "$as_me:$LINENO: result: no" >&5
1801echo "${ECHO_T}no" >&6; }
1802fi
1803
1804
1805    test -n "$CXX" && break
1806  done
1807fi
1808if test -z "$CXX"; then
1809  ac_ct_CXX=$CXX
1810  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1811do
1812  # Extract the first word of "$ac_prog", so it can be a program name with args.
1813set dummy $ac_prog; ac_word=$2
1814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1816if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1817  echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819  if test -n "$ac_ct_CXX"; then
1820  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1821else
1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823for as_dir in $PATH
1824do
1825  IFS=$as_save_IFS
1826  test -z "$as_dir" && as_dir=.
1827  for ac_exec_ext in '' $ac_executable_extensions; do
1828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1829    ac_cv_prog_ac_ct_CXX="$ac_prog"
1830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831    break 2
1832  fi
1833done
1834done
1835IFS=$as_save_IFS
1836
1837fi
1838fi
1839ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1840if test -n "$ac_ct_CXX"; then
1841  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1842echo "${ECHO_T}$ac_ct_CXX" >&6; }
1843else
1844  { echo "$as_me:$LINENO: result: no" >&5
1845echo "${ECHO_T}no" >&6; }
1846fi
1847
1848
1849  test -n "$ac_ct_CXX" && break
1850done
1851
1852  if test "x$ac_ct_CXX" = x; then
1853    CXX="g++"
1854  else
1855    case $cross_compiling:$ac_tool_warned in
1856yes:)
1857{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1858whose name does not start with the host triplet.  If you think this
1859configuration is useful to you, please write to autoconf@gnu.org." >&5
1860echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1861whose name does not start with the host triplet.  If you think this
1862configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1863ac_tool_warned=yes ;;
1864esac
1865    CXX=$ac_ct_CXX
1866  fi
1867fi
1868
1869  fi
1870fi
1871# Provide some information about the compiler.
1872echo "$as_me:$LINENO: checking for C++ compiler version" >&5
1873ac_compiler=`set X $ac_compile; echo $2`
1874{ (ac_try="$ac_compiler --version >&5"
1875case "(($ac_try" in
1876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877  *) ac_try_echo=$ac_try;;
1878esac
1879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1880  (eval "$ac_compiler --version >&5") 2>&5
1881  ac_status=$?
1882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883  (exit $ac_status); }
1884{ (ac_try="$ac_compiler -v >&5"
1885case "(($ac_try" in
1886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887  *) ac_try_echo=$ac_try;;
1888esac
1889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1890  (eval "$ac_compiler -v >&5") 2>&5
1891  ac_status=$?
1892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893  (exit $ac_status); }
1894{ (ac_try="$ac_compiler -V >&5"
1895case "(($ac_try" in
1896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897  *) ac_try_echo=$ac_try;;
1898esac
1899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1900  (eval "$ac_compiler -V >&5") 2>&5
1901  ac_status=$?
1902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903  (exit $ac_status); }
1904
1905cat >conftest.$ac_ext <<_ACEOF
1906/* confdefs.h.  */
1907_ACEOF
1908cat confdefs.h >>conftest.$ac_ext
1909cat >>conftest.$ac_ext <<_ACEOF
1910/* end confdefs.h.  */
1911
1912int
1913main ()
1914{
1915
1916  ;
1917  return 0;
1918}
1919_ACEOF
1920ac_clean_files_save=$ac_clean_files
1921ac_clean_files="$ac_clean_files a.out a.exe b.out"
1922# Try to create an executable without -o first, disregard a.out.
1923# It will help us diagnose broken compilers, and finding out an intuition
1924# of exeext.
1925{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1926echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
1927ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1928#
1929# List of possible output files, starting from the most likely.
1930# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1931# only as a last resort.  b.out is created by i960 compilers.
1932ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1933#
1934# The IRIX 6 linker writes into existing files which may not be
1935# executable, retaining their permissions.  Remove them first so a
1936# subsequent execution test works.
1937ac_rmfiles=
1938for ac_file in $ac_files
1939do
1940  case $ac_file in
1941    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1942    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1943  esac
1944done
1945rm -f $ac_rmfiles
1946
1947if { (ac_try="$ac_link_default"
1948case "(($ac_try" in
1949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950  *) ac_try_echo=$ac_try;;
1951esac
1952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1953  (eval "$ac_link_default") 2>&5
1954  ac_status=$?
1955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956  (exit $ac_status); }; then
1957  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1958# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1959# in a Makefile.  We should not override ac_cv_exeext if it was cached,
1960# so that the user can short-circuit this test for compilers unknown to
1961# Autoconf.
1962for ac_file in $ac_files ''
1963do
1964  test -f "$ac_file" || continue
1965  case $ac_file in
1966    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1967	;;
1968    [ab].out )
1969	# We found the default executable, but exeext='' is most
1970	# certainly right.
1971	break;;
1972    *.* )
1973        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1974	then :; else
1975	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1976	fi
1977	# We set ac_cv_exeext here because the later test for it is not
1978	# safe: cross compilers may not add the suffix if given an `-o'
1979	# argument, so we may need to know it at that point already.
1980	# Even if this section looks crufty: it has the advantage of
1981	# actually working.
1982	break;;
1983    * )
1984	break;;
1985  esac
1986done
1987test "$ac_cv_exeext" = no && ac_cv_exeext=
1988
1989else
1990  ac_file=''
1991fi
1992
1993{ echo "$as_me:$LINENO: result: $ac_file" >&5
1994echo "${ECHO_T}$ac_file" >&6; }
1995if test -z "$ac_file"; then
1996  echo "$as_me: failed program was:" >&5
1997sed 's/^/| /' conftest.$ac_ext >&5
1998
1999{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2000See \`config.log' for more details." >&5
2001echo "$as_me: error: C++ compiler cannot create executables
2002See \`config.log' for more details." >&2;}
2003   { (exit 77); exit 77; }; }
2004fi
2005
2006ac_exeext=$ac_cv_exeext
2007
2008# Check that the compiler produces executables we can run.  If not, either
2009# the compiler is broken, or we cross compile.
2010{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2011echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2012# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2013# If not cross compiling, check that we can run a simple program.
2014if test "$cross_compiling" != yes; then
2015  if { ac_try='./$ac_file'
2016  { (case "(($ac_try" in
2017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018  *) ac_try_echo=$ac_try;;
2019esac
2020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2021  (eval "$ac_try") 2>&5
2022  ac_status=$?
2023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024  (exit $ac_status); }; }; then
2025    cross_compiling=no
2026  else
2027    if test "$cross_compiling" = maybe; then
2028	cross_compiling=yes
2029    else
2030	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2031If you meant to cross compile, use \`--host'.
2032See \`config.log' for more details." >&5
2033echo "$as_me: error: cannot run C++ compiled programs.
2034If you meant to cross compile, use \`--host'.
2035See \`config.log' for more details." >&2;}
2036   { (exit 1); exit 1; }; }
2037    fi
2038  fi
2039fi
2040{ echo "$as_me:$LINENO: result: yes" >&5
2041echo "${ECHO_T}yes" >&6; }
2042
2043rm -f a.out a.exe conftest$ac_cv_exeext b.out
2044ac_clean_files=$ac_clean_files_save
2045# Check that the compiler produces executables we can run.  If not, either
2046# the compiler is broken, or we cross compile.
2047{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2048echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2049{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2050echo "${ECHO_T}$cross_compiling" >&6; }
2051
2052{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2053echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2054if { (ac_try="$ac_link"
2055case "(($ac_try" in
2056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057  *) ac_try_echo=$ac_try;;
2058esac
2059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2060  (eval "$ac_link") 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }; then
2064  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2065# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2066# work properly (i.e., refer to `conftest.exe'), while it won't with
2067# `rm'.
2068for ac_file in conftest.exe conftest conftest.*; do
2069  test -f "$ac_file" || continue
2070  case $ac_file in
2071    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2072    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2073	  break;;
2074    * ) break;;
2075  esac
2076done
2077else
2078  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2079See \`config.log' for more details." >&5
2080echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2081See \`config.log' for more details." >&2;}
2082   { (exit 1); exit 1; }; }
2083fi
2084
2085rm -f conftest$ac_cv_exeext
2086{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2087echo "${ECHO_T}$ac_cv_exeext" >&6; }
2088
2089rm -f conftest.$ac_ext
2090EXEEXT=$ac_cv_exeext
2091ac_exeext=$EXEEXT
2092{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2093echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2094if test "${ac_cv_objext+set}" = set; then
2095  echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
2097  cat >conftest.$ac_ext <<_ACEOF
2098/* confdefs.h.  */
2099_ACEOF
2100cat confdefs.h >>conftest.$ac_ext
2101cat >>conftest.$ac_ext <<_ACEOF
2102/* end confdefs.h.  */
2103
2104int
2105main ()
2106{
2107
2108  ;
2109  return 0;
2110}
2111_ACEOF
2112rm -f conftest.o conftest.obj
2113if { (ac_try="$ac_compile"
2114case "(($ac_try" in
2115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116  *) ac_try_echo=$ac_try;;
2117esac
2118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119  (eval "$ac_compile") 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }; then
2123  for ac_file in conftest.o conftest.obj conftest.*; do
2124  test -f "$ac_file" || continue;
2125  case $ac_file in
2126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2127    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2128       break;;
2129  esac
2130done
2131else
2132  echo "$as_me: failed program was:" >&5
2133sed 's/^/| /' conftest.$ac_ext >&5
2134
2135{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2136See \`config.log' for more details." >&5
2137echo "$as_me: error: cannot compute suffix of object files: cannot compile
2138See \`config.log' for more details." >&2;}
2139   { (exit 1); exit 1; }; }
2140fi
2141
2142rm -f conftest.$ac_cv_objext conftest.$ac_ext
2143fi
2144{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2145echo "${ECHO_T}$ac_cv_objext" >&6; }
2146OBJEXT=$ac_cv_objext
2147ac_objext=$OBJEXT
2148{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2149echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2150if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2151  echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153  cat >conftest.$ac_ext <<_ACEOF
2154/* confdefs.h.  */
2155_ACEOF
2156cat confdefs.h >>conftest.$ac_ext
2157cat >>conftest.$ac_ext <<_ACEOF
2158/* end confdefs.h.  */
2159
2160int
2161main ()
2162{
2163#ifndef __GNUC__
2164       choke me
2165#endif
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171rm -f conftest.$ac_objext
2172if { (ac_try="$ac_compile"
2173case "(($ac_try" in
2174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175  *) ac_try_echo=$ac_try;;
2176esac
2177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2178  (eval "$ac_compile") 2>conftest.er1
2179  ac_status=$?
2180  grep -v '^ *+' conftest.er1 >conftest.err
2181  rm -f conftest.er1
2182  cat conftest.err >&5
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); } && {
2185	 test -z "$ac_cxx_werror_flag" ||
2186	 test ! -s conftest.err
2187       } && test -s conftest.$ac_objext; then
2188  ac_compiler_gnu=yes
2189else
2190  echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193	ac_compiler_gnu=no
2194fi
2195
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2198
2199fi
2200{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2201echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2202GXX=`test $ac_compiler_gnu = yes && echo yes`
2203ac_test_CXXFLAGS=${CXXFLAGS+set}
2204ac_save_CXXFLAGS=$CXXFLAGS
2205{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2206echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2207if test "${ac_cv_prog_cxx_g+set}" = set; then
2208  echo $ECHO_N "(cached) $ECHO_C" >&6
2209else
2210  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2211   ac_cxx_werror_flag=yes
2212   ac_cv_prog_cxx_g=no
2213   CXXFLAGS="-g"
2214   cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h.  */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h.  */
2220
2221int
2222main ()
2223{
2224
2225  ;
2226  return 0;
2227}
2228_ACEOF
2229rm -f conftest.$ac_objext
2230if { (ac_try="$ac_compile"
2231case "(($ac_try" in
2232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233  *) ac_try_echo=$ac_try;;
2234esac
2235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236  (eval "$ac_compile") 2>conftest.er1
2237  ac_status=$?
2238  grep -v '^ *+' conftest.er1 >conftest.err
2239  rm -f conftest.er1
2240  cat conftest.err >&5
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); } && {
2243	 test -z "$ac_cxx_werror_flag" ||
2244	 test ! -s conftest.err
2245       } && test -s conftest.$ac_objext; then
2246  ac_cv_prog_cxx_g=yes
2247else
2248  echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251	CXXFLAGS=""
2252      cat >conftest.$ac_ext <<_ACEOF
2253/* confdefs.h.  */
2254_ACEOF
2255cat confdefs.h >>conftest.$ac_ext
2256cat >>conftest.$ac_ext <<_ACEOF
2257/* end confdefs.h.  */
2258
2259int
2260main ()
2261{
2262
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267rm -f conftest.$ac_objext
2268if { (ac_try="$ac_compile"
2269case "(($ac_try" in
2270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271  *) ac_try_echo=$ac_try;;
2272esac
2273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274  (eval "$ac_compile") 2>conftest.er1
2275  ac_status=$?
2276  grep -v '^ *+' conftest.er1 >conftest.err
2277  rm -f conftest.er1
2278  cat conftest.err >&5
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); } && {
2281	 test -z "$ac_cxx_werror_flag" ||
2282	 test ! -s conftest.err
2283       } && test -s conftest.$ac_objext; then
2284  :
2285else
2286  echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
2288
2289	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2290	 CXXFLAGS="-g"
2291	 cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h.  */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h.  */
2297
2298int
2299main ()
2300{
2301
2302  ;
2303  return 0;
2304}
2305_ACEOF
2306rm -f conftest.$ac_objext
2307if { (ac_try="$ac_compile"
2308case "(($ac_try" in
2309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310  *) ac_try_echo=$ac_try;;
2311esac
2312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2313  (eval "$ac_compile") 2>conftest.er1
2314  ac_status=$?
2315  grep -v '^ *+' conftest.er1 >conftest.err
2316  rm -f conftest.er1
2317  cat conftest.err >&5
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); } && {
2320	 test -z "$ac_cxx_werror_flag" ||
2321	 test ! -s conftest.err
2322       } && test -s conftest.$ac_objext; then
2323  ac_cv_prog_cxx_g=yes
2324else
2325  echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328
2329fi
2330
2331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332fi
2333
2334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335fi
2336
2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2339fi
2340{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2341echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2342if test "$ac_test_CXXFLAGS" = set; then
2343  CXXFLAGS=$ac_save_CXXFLAGS
2344elif test $ac_cv_prog_cxx_g = yes; then
2345  if test "$GXX" = yes; then
2346    CXXFLAGS="-g -O2"
2347  else
2348    CXXFLAGS="-g"
2349  fi
2350else
2351  if test "$GXX" = yes; then
2352    CXXFLAGS="-O2"
2353  else
2354    CXXFLAGS=
2355  fi
2356fi
2357ac_ext=cpp
2358ac_cpp='$CXXCPP $CPPFLAGS'
2359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2362
2363
2364for ac_prog in flex lex
2365do
2366  # Extract the first word of "$ac_prog", so it can be a program name with args.
2367set dummy $ac_prog; ac_word=$2
2368{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2370if test "${ac_cv_prog_LEX+set}" = set; then
2371  echo $ECHO_N "(cached) $ECHO_C" >&6
2372else
2373  if test -n "$LEX"; then
2374  ac_cv_prog_LEX="$LEX" # Let the user override the test.
2375else
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379  IFS=$as_save_IFS
2380  test -z "$as_dir" && as_dir=.
2381  for ac_exec_ext in '' $ac_executable_extensions; do
2382  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2383    ac_cv_prog_LEX="$ac_prog"
2384    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385    break 2
2386  fi
2387done
2388done
2389IFS=$as_save_IFS
2390
2391fi
2392fi
2393LEX=$ac_cv_prog_LEX
2394if test -n "$LEX"; then
2395  { echo "$as_me:$LINENO: result: $LEX" >&5
2396echo "${ECHO_T}$LEX" >&6; }
2397else
2398  { echo "$as_me:$LINENO: result: no" >&5
2399echo "${ECHO_T}no" >&6; }
2400fi
2401
2402
2403  test -n "$LEX" && break
2404done
2405test -n "$LEX" || LEX=":"
2406
2407if test "x$LEX" != "x:"; then
2408  cat >conftest.l <<_ACEOF
2409%%
2410a { ECHO; }
2411b { REJECT; }
2412c { yymore (); }
2413d { yyless (1); }
2414e { yyless (input () != 0); }
2415f { unput (yytext[0]); }
2416. { BEGIN INITIAL; }
2417%%
2418#ifdef YYTEXT_POINTER
2419extern char *yytext;
2420#endif
2421int
2422main (void)
2423{
2424  return ! yylex () + ! yywrap ();
2425}
2426_ACEOF
2427{ (ac_try="$LEX conftest.l"
2428case "(($ac_try" in
2429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430  *) ac_try_echo=$ac_try;;
2431esac
2432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433  (eval "$LEX conftest.l") 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }
2437{ echo "$as_me:$LINENO: checking lex output file root" >&5
2438echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
2439if test "${ac_cv_prog_lex_root+set}" = set; then
2440  echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442
2443if test -f lex.yy.c; then
2444  ac_cv_prog_lex_root=lex.yy
2445elif test -f lexyy.c; then
2446  ac_cv_prog_lex_root=lexyy
2447else
2448  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2449echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2450   { (exit 1); exit 1; }; }
2451fi
2452fi
2453{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2454echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
2455LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2456
2457if test -z "${LEXLIB+set}"; then
2458  { echo "$as_me:$LINENO: checking lex library" >&5
2459echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
2460if test "${ac_cv_lib_lex+set}" = set; then
2461  echo $ECHO_N "(cached) $ECHO_C" >&6
2462else
2463
2464    ac_save_LIBS=$LIBS
2465    ac_cv_lib_lex='none needed'
2466    for ac_lib in '' -lfl -ll; do
2467      LIBS="$ac_lib $ac_save_LIBS"
2468      cat >conftest.$ac_ext <<_ACEOF
2469`cat $LEX_OUTPUT_ROOT.c`
2470_ACEOF
2471rm -f conftest.$ac_objext conftest$ac_exeext
2472if { (ac_try="$ac_link"
2473case "(($ac_try" in
2474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475  *) ac_try_echo=$ac_try;;
2476esac
2477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478  (eval "$ac_link") 2>conftest.er1
2479  ac_status=$?
2480  grep -v '^ *+' conftest.er1 >conftest.err
2481  rm -f conftest.er1
2482  cat conftest.err >&5
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); } && {
2485	 test -z "$ac_cxx_werror_flag" ||
2486	 test ! -s conftest.err
2487       } && test -s conftest$ac_exeext &&
2488       $as_test_x conftest$ac_exeext; then
2489  ac_cv_lib_lex=$ac_lib
2490else
2491  echo "$as_me: failed program was:" >&5
2492sed 's/^/| /' conftest.$ac_ext >&5
2493
2494
2495fi
2496
2497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2498      conftest$ac_exeext conftest.$ac_ext
2499      test "$ac_cv_lib_lex" != 'none needed' && break
2500    done
2501    LIBS=$ac_save_LIBS
2502
2503fi
2504{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
2505echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
2506  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
2507fi
2508
2509
2510{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2511echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
2512if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2513  echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515  # POSIX says lex can declare yytext either as a pointer or an array; the
2516# default is implementation-dependent.  Figure out which it is, since
2517# not all implementations provide the %pointer and %array declarations.
2518ac_cv_prog_lex_yytext_pointer=no
2519ac_save_LIBS=$LIBS
2520LIBS="$LEXLIB $ac_save_LIBS"
2521cat >conftest.$ac_ext <<_ACEOF
2522#define YYTEXT_POINTER 1
2523`cat $LEX_OUTPUT_ROOT.c`
2524_ACEOF
2525rm -f conftest.$ac_objext conftest$ac_exeext
2526if { (ac_try="$ac_link"
2527case "(($ac_try" in
2528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529  *) ac_try_echo=$ac_try;;
2530esac
2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532  (eval "$ac_link") 2>conftest.er1
2533  ac_status=$?
2534  grep -v '^ *+' conftest.er1 >conftest.err
2535  rm -f conftest.er1
2536  cat conftest.err >&5
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); } && {
2539	 test -z "$ac_cxx_werror_flag" ||
2540	 test ! -s conftest.err
2541       } && test -s conftest$ac_exeext &&
2542       $as_test_x conftest$ac_exeext; then
2543  ac_cv_prog_lex_yytext_pointer=yes
2544else
2545  echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
2548
2549fi
2550
2551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2552      conftest$ac_exeext conftest.$ac_ext
2553LIBS=$ac_save_LIBS
2554
2555fi
2556{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2557echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
2558if test $ac_cv_prog_lex_yytext_pointer = yes; then
2559
2560cat >>confdefs.h <<\_ACEOF
2561#define YYTEXT_POINTER 1
2562_ACEOF
2563
2564fi
2565rm -f conftest.l $LEX_OUTPUT_ROOT.c
2566
2567fi
2568ac_ext=cpp
2569ac_cpp='$CXXCPP $CPPFLAGS'
2570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2573if test -z "$CXX"; then
2574  if test -n "$CCC"; then
2575    CXX=$CCC
2576  else
2577    if test -n "$ac_tool_prefix"; then
2578  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2579  do
2580    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2581set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584if test "${ac_cv_prog_CXX+set}" = set; then
2585  echo $ECHO_N "(cached) $ECHO_C" >&6
2586else
2587  if test -n "$CXX"; then
2588  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2589else
2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593  IFS=$as_save_IFS
2594  test -z "$as_dir" && as_dir=.
2595  for ac_exec_ext in '' $ac_executable_extensions; do
2596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2598    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599    break 2
2600  fi
2601done
2602done
2603IFS=$as_save_IFS
2604
2605fi
2606fi
2607CXX=$ac_cv_prog_CXX
2608if test -n "$CXX"; then
2609  { echo "$as_me:$LINENO: result: $CXX" >&5
2610echo "${ECHO_T}$CXX" >&6; }
2611else
2612  { echo "$as_me:$LINENO: result: no" >&5
2613echo "${ECHO_T}no" >&6; }
2614fi
2615
2616
2617    test -n "$CXX" && break
2618  done
2619fi
2620if test -z "$CXX"; then
2621  ac_ct_CXX=$CXX
2622  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2623do
2624  # Extract the first word of "$ac_prog", so it can be a program name with args.
2625set dummy $ac_prog; ac_word=$2
2626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631  if test -n "$ac_ct_CXX"; then
2632  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2633else
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637  IFS=$as_save_IFS
2638  test -z "$as_dir" && as_dir=.
2639  for ac_exec_ext in '' $ac_executable_extensions; do
2640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641    ac_cv_prog_ac_ct_CXX="$ac_prog"
2642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643    break 2
2644  fi
2645done
2646done
2647IFS=$as_save_IFS
2648
2649fi
2650fi
2651ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2652if test -n "$ac_ct_CXX"; then
2653  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2654echo "${ECHO_T}$ac_ct_CXX" >&6; }
2655else
2656  { echo "$as_me:$LINENO: result: no" >&5
2657echo "${ECHO_T}no" >&6; }
2658fi
2659
2660
2661  test -n "$ac_ct_CXX" && break
2662done
2663
2664  if test "x$ac_ct_CXX" = x; then
2665    CXX="g++"
2666  else
2667    case $cross_compiling:$ac_tool_warned in
2668yes:)
2669{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2670whose name does not start with the host triplet.  If you think this
2671configuration is useful to you, please write to autoconf@gnu.org." >&5
2672echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2673whose name does not start with the host triplet.  If you think this
2674configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2675ac_tool_warned=yes ;;
2676esac
2677    CXX=$ac_ct_CXX
2678  fi
2679fi
2680
2681  fi
2682fi
2683# Provide some information about the compiler.
2684echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2685ac_compiler=`set X $ac_compile; echo $2`
2686{ (ac_try="$ac_compiler --version >&5"
2687case "(($ac_try" in
2688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689  *) ac_try_echo=$ac_try;;
2690esac
2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692  (eval "$ac_compiler --version >&5") 2>&5
2693  ac_status=$?
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); }
2696{ (ac_try="$ac_compiler -v >&5"
2697case "(($ac_try" in
2698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699  *) ac_try_echo=$ac_try;;
2700esac
2701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702  (eval "$ac_compiler -v >&5") 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }
2706{ (ac_try="$ac_compiler -V >&5"
2707case "(($ac_try" in
2708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709  *) ac_try_echo=$ac_try;;
2710esac
2711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712  (eval "$ac_compiler -V >&5") 2>&5
2713  ac_status=$?
2714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715  (exit $ac_status); }
2716
2717{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2718echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2719if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2720  echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722  cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h.  */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h.  */
2728
2729int
2730main ()
2731{
2732#ifndef __GNUC__
2733       choke me
2734#endif
2735
2736  ;
2737  return 0;
2738}
2739_ACEOF
2740rm -f conftest.$ac_objext
2741if { (ac_try="$ac_compile"
2742case "(($ac_try" in
2743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744  *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747  (eval "$ac_compile") 2>conftest.er1
2748  ac_status=$?
2749  grep -v '^ *+' conftest.er1 >conftest.err
2750  rm -f conftest.er1
2751  cat conftest.err >&5
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); } && {
2754	 test -z "$ac_cxx_werror_flag" ||
2755	 test ! -s conftest.err
2756       } && test -s conftest.$ac_objext; then
2757  ac_compiler_gnu=yes
2758else
2759  echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762	ac_compiler_gnu=no
2763fi
2764
2765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2767
2768fi
2769{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2770echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2771GXX=`test $ac_compiler_gnu = yes && echo yes`
2772ac_test_CXXFLAGS=${CXXFLAGS+set}
2773ac_save_CXXFLAGS=$CXXFLAGS
2774{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2775echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2776if test "${ac_cv_prog_cxx_g+set}" = set; then
2777  echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2780   ac_cxx_werror_flag=yes
2781   ac_cv_prog_cxx_g=no
2782   CXXFLAGS="-g"
2783   cat >conftest.$ac_ext <<_ACEOF
2784/* confdefs.h.  */
2785_ACEOF
2786cat confdefs.h >>conftest.$ac_ext
2787cat >>conftest.$ac_ext <<_ACEOF
2788/* end confdefs.h.  */
2789
2790int
2791main ()
2792{
2793
2794  ;
2795  return 0;
2796}
2797_ACEOF
2798rm -f conftest.$ac_objext
2799if { (ac_try="$ac_compile"
2800case "(($ac_try" in
2801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802  *) ac_try_echo=$ac_try;;
2803esac
2804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805  (eval "$ac_compile") 2>conftest.er1
2806  ac_status=$?
2807  grep -v '^ *+' conftest.er1 >conftest.err
2808  rm -f conftest.er1
2809  cat conftest.err >&5
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); } && {
2812	 test -z "$ac_cxx_werror_flag" ||
2813	 test ! -s conftest.err
2814       } && test -s conftest.$ac_objext; then
2815  ac_cv_prog_cxx_g=yes
2816else
2817  echo "$as_me: failed program was:" >&5
2818sed 's/^/| /' conftest.$ac_ext >&5
2819
2820	CXXFLAGS=""
2821      cat >conftest.$ac_ext <<_ACEOF
2822/* confdefs.h.  */
2823_ACEOF
2824cat confdefs.h >>conftest.$ac_ext
2825cat >>conftest.$ac_ext <<_ACEOF
2826/* end confdefs.h.  */
2827
2828int
2829main ()
2830{
2831
2832  ;
2833  return 0;
2834}
2835_ACEOF
2836rm -f conftest.$ac_objext
2837if { (ac_try="$ac_compile"
2838case "(($ac_try" in
2839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840  *) ac_try_echo=$ac_try;;
2841esac
2842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843  (eval "$ac_compile") 2>conftest.er1
2844  ac_status=$?
2845  grep -v '^ *+' conftest.er1 >conftest.err
2846  rm -f conftest.er1
2847  cat conftest.err >&5
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); } && {
2850	 test -z "$ac_cxx_werror_flag" ||
2851	 test ! -s conftest.err
2852       } && test -s conftest.$ac_objext; then
2853  :
2854else
2855  echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2859	 CXXFLAGS="-g"
2860	 cat >conftest.$ac_ext <<_ACEOF
2861/* confdefs.h.  */
2862_ACEOF
2863cat confdefs.h >>conftest.$ac_ext
2864cat >>conftest.$ac_ext <<_ACEOF
2865/* end confdefs.h.  */
2866
2867int
2868main ()
2869{
2870
2871  ;
2872  return 0;
2873}
2874_ACEOF
2875rm -f conftest.$ac_objext
2876if { (ac_try="$ac_compile"
2877case "(($ac_try" in
2878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879  *) ac_try_echo=$ac_try;;
2880esac
2881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882  (eval "$ac_compile") 2>conftest.er1
2883  ac_status=$?
2884  grep -v '^ *+' conftest.er1 >conftest.err
2885  rm -f conftest.er1
2886  cat conftest.err >&5
2887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888  (exit $ac_status); } && {
2889	 test -z "$ac_cxx_werror_flag" ||
2890	 test ! -s conftest.err
2891       } && test -s conftest.$ac_objext; then
2892  ac_cv_prog_cxx_g=yes
2893else
2894  echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897
2898fi
2899
2900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901fi
2902
2903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904fi
2905
2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2908fi
2909{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2910echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2911if test "$ac_test_CXXFLAGS" = set; then
2912  CXXFLAGS=$ac_save_CXXFLAGS
2913elif test $ac_cv_prog_cxx_g = yes; then
2914  if test "$GXX" = yes; then
2915    CXXFLAGS="-g -O2"
2916  else
2917    CXXFLAGS="-g"
2918  fi
2919else
2920  if test "$GXX" = yes; then
2921    CXXFLAGS="-O2"
2922  else
2923    CXXFLAGS=
2924  fi
2925fi
2926ac_ext=cpp
2927ac_cpp='$CXXCPP $CPPFLAGS'
2928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2931
2932{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
2933echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2934LN_S=$as_ln_s
2935if test "$LN_S" = "ln -s"; then
2936  { echo "$as_me:$LINENO: result: yes" >&5
2937echo "${ECHO_T}yes" >&6; }
2938else
2939  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2940echo "${ECHO_T}no, using $LN_S" >&6; }
2941fi
2942
2943
2944if test "${GXX}" = "yes" ; then
2945 CFLAGS_W=" -Wall -Wno-parentheses -Wno-unused"
2946 CFLAGS="${CFLAGS}"
2947fi
2948
2949ac_ext=cpp
2950ac_cpp='$CXXCPP $CPPFLAGS'
2951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2954{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2955echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
2956if test -z "$CXXCPP"; then
2957  if test "${ac_cv_prog_CXXCPP+set}" = set; then
2958  echo $ECHO_N "(cached) $ECHO_C" >&6
2959else
2960      # Double quotes because CXXCPP needs to be expanded
2961    for CXXCPP in "$CXX -E" "/lib/cpp"
2962    do
2963      ac_preproc_ok=false
2964for ac_cxx_preproc_warn_flag in '' yes
2965do
2966  # Use a header file that comes with gcc, so configuring glibc
2967  # with a fresh cross-compiler works.
2968  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2969  # <limits.h> exists even on freestanding compilers.
2970  # On the NeXT, cc -E runs the code through the compiler's parser,
2971  # not just through cpp. "Syntax error" is here to catch this case.
2972  cat >conftest.$ac_ext <<_ACEOF
2973/* confdefs.h.  */
2974_ACEOF
2975cat confdefs.h >>conftest.$ac_ext
2976cat >>conftest.$ac_ext <<_ACEOF
2977/* end confdefs.h.  */
2978#ifdef __STDC__
2979# include <limits.h>
2980#else
2981# include <assert.h>
2982#endif
2983		     Syntax error
2984_ACEOF
2985if { (ac_try="$ac_cpp conftest.$ac_ext"
2986case "(($ac_try" in
2987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988  *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2992  ac_status=$?
2993  grep -v '^ *+' conftest.er1 >conftest.err
2994  rm -f conftest.er1
2995  cat conftest.err >&5
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); } >/dev/null && {
2998	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2999	 test ! -s conftest.err
3000       }; then
3001  :
3002else
3003  echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006  # Broken: fails on valid input.
3007continue
3008fi
3009
3010rm -f conftest.err conftest.$ac_ext
3011
3012  # OK, works on sane cases.  Now check whether nonexistent headers
3013  # can be detected and how.
3014  cat >conftest.$ac_ext <<_ACEOF
3015/* confdefs.h.  */
3016_ACEOF
3017cat confdefs.h >>conftest.$ac_ext
3018cat >>conftest.$ac_ext <<_ACEOF
3019/* end confdefs.h.  */
3020#include <ac_nonexistent.h>
3021_ACEOF
3022if { (ac_try="$ac_cpp conftest.$ac_ext"
3023case "(($ac_try" in
3024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025  *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3029  ac_status=$?
3030  grep -v '^ *+' conftest.er1 >conftest.err
3031  rm -f conftest.er1
3032  cat conftest.err >&5
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); } >/dev/null && {
3035	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3036	 test ! -s conftest.err
3037       }; then
3038  # Broken: success on invalid input.
3039continue
3040else
3041  echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044  # Passes both tests.
3045ac_preproc_ok=:
3046break
3047fi
3048
3049rm -f conftest.err conftest.$ac_ext
3050
3051done
3052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053rm -f conftest.err conftest.$ac_ext
3054if $ac_preproc_ok; then
3055  break
3056fi
3057
3058    done
3059    ac_cv_prog_CXXCPP=$CXXCPP
3060
3061fi
3062  CXXCPP=$ac_cv_prog_CXXCPP
3063else
3064  ac_cv_prog_CXXCPP=$CXXCPP
3065fi
3066{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
3067echo "${ECHO_T}$CXXCPP" >&6; }
3068ac_preproc_ok=false
3069for ac_cxx_preproc_warn_flag in '' yes
3070do
3071  # Use a header file that comes with gcc, so configuring glibc
3072  # with a fresh cross-compiler works.
3073  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074  # <limits.h> exists even on freestanding compilers.
3075  # On the NeXT, cc -E runs the code through the compiler's parser,
3076  # not just through cpp. "Syntax error" is here to catch this case.
3077  cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h.  */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h.  */
3083#ifdef __STDC__
3084# include <limits.h>
3085#else
3086# include <assert.h>
3087#endif
3088		     Syntax error
3089_ACEOF
3090if { (ac_try="$ac_cpp conftest.$ac_ext"
3091case "(($ac_try" in
3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093  *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3097  ac_status=$?
3098  grep -v '^ *+' conftest.er1 >conftest.err
3099  rm -f conftest.er1
3100  cat conftest.err >&5
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); } >/dev/null && {
3103	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3104	 test ! -s conftest.err
3105       }; then
3106  :
3107else
3108  echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111  # Broken: fails on valid input.
3112continue
3113fi
3114
3115rm -f conftest.err conftest.$ac_ext
3116
3117  # OK, works on sane cases.  Now check whether nonexistent headers
3118  # can be detected and how.
3119  cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h.  */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h.  */
3125#include <ac_nonexistent.h>
3126_ACEOF
3127if { (ac_try="$ac_cpp conftest.$ac_ext"
3128case "(($ac_try" in
3129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130  *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3134  ac_status=$?
3135  grep -v '^ *+' conftest.er1 >conftest.err
3136  rm -f conftest.er1
3137  cat conftest.err >&5
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); } >/dev/null && {
3140	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3141	 test ! -s conftest.err
3142       }; then
3143  # Broken: success on invalid input.
3144continue
3145else
3146  echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149  # Passes both tests.
3150ac_preproc_ok=:
3151break
3152fi
3153
3154rm -f conftest.err conftest.$ac_ext
3155
3156done
3157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158rm -f conftest.err conftest.$ac_ext
3159if $ac_preproc_ok; then
3160  :
3161else
3162  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3163See \`config.log' for more details." >&5
3164echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3165See \`config.log' for more details." >&2;}
3166   { (exit 1); exit 1; }; }
3167fi
3168
3169ac_ext=cpp
3170ac_cpp='$CXXCPP $CPPFLAGS'
3171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3174
3175
3176{ echo "$as_me:$LINENO: checking for X" >&5
3177echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3178
3179
3180# Check whether --with-x was given.
3181if test "${with_x+set}" = set; then
3182  withval=$with_x;
3183fi
3184
3185# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3186if test "x$with_x" = xno; then
3187  # The user explicitly disabled X.
3188  have_x=disabled
3189else
3190  case $x_includes,$x_libraries in #(
3191    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3192echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3193   { (exit 1); exit 1; }; };; #(
3194    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3195  echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197  # One or both of the vars are not set, and there is no cached value.
3198ac_x_includes=no ac_x_libraries=no
3199rm -f -r conftest.dir
3200if mkdir conftest.dir; then
3201  cd conftest.dir
3202  cat >Imakefile <<'_ACEOF'
3203incroot:
3204	@echo incroot='${INCROOT}'
3205usrlibdir:
3206	@echo usrlibdir='${USRLIBDIR}'
3207libdir:
3208	@echo libdir='${LIBDIR}'
3209_ACEOF
3210  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3211    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3212    for ac_var in incroot usrlibdir libdir; do
3213      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3214    done
3215    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3216    for ac_extension in a so sl; do
3217      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3218	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3219	ac_im_usrlibdir=$ac_im_libdir; break
3220      fi
3221    done
3222    # Screen out bogus values from the imake configuration.  They are
3223    # bogus both because they are the default anyway, and because
3224    # using them would break gcc on systems where it needs fixed includes.
3225    case $ac_im_incroot in
3226	/usr/include) ac_x_includes= ;;
3227	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3228    esac
3229    case $ac_im_usrlibdir in
3230	/usr/lib | /lib) ;;
3231	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3232    esac
3233  fi
3234  cd ..
3235  rm -f -r conftest.dir
3236fi
3237
3238# Standard set of common directories for X headers.
3239# Check X11 before X11Rn because it is often a symlink to the current release.
3240ac_x_header_dirs='
3241/usr/X11/include
3242/usr/X11R6/include
3243/usr/X11R5/include
3244/usr/X11R4/include
3245
3246/usr/include/X11
3247/usr/include/X11R6
3248/usr/include/X11R5
3249/usr/include/X11R4
3250
3251/usr/local/X11/include
3252/usr/local/X11R6/include
3253/usr/local/X11R5/include
3254/usr/local/X11R4/include
3255
3256/usr/local/include/X11
3257/usr/local/include/X11R6
3258/usr/local/include/X11R5
3259/usr/local/include/X11R4
3260
3261/usr/X386/include
3262/usr/x386/include
3263/usr/XFree86/include/X11
3264
3265/usr/include
3266/usr/local/include
3267/usr/unsupported/include
3268/usr/athena/include
3269/usr/local/x11r5/include
3270/usr/lpp/Xamples/include
3271
3272/usr/openwin/include
3273/usr/openwin/share/include'
3274
3275if test "$ac_x_includes" = no; then
3276  # Guess where to find include files, by looking for Xlib.h.
3277  # First, try using that file with no special directory specified.
3278  cat >conftest.$ac_ext <<_ACEOF
3279/* confdefs.h.  */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h.  */
3284#include <X11/Xlib.h>
3285_ACEOF
3286if { (ac_try="$ac_cpp conftest.$ac_ext"
3287case "(($ac_try" in
3288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289  *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3293  ac_status=$?
3294  grep -v '^ *+' conftest.er1 >conftest.err
3295  rm -f conftest.er1
3296  cat conftest.err >&5
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); } >/dev/null && {
3299	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3300	 test ! -s conftest.err
3301       }; then
3302  # We can compile using X headers with no special include directory.
3303ac_x_includes=
3304else
3305  echo "$as_me: failed program was:" >&5
3306sed 's/^/| /' conftest.$ac_ext >&5
3307
3308  for ac_dir in $ac_x_header_dirs; do
3309  if test -r "$ac_dir/X11/Xlib.h"; then
3310    ac_x_includes=$ac_dir
3311    break
3312  fi
3313done
3314fi
3315
3316rm -f conftest.err conftest.$ac_ext
3317fi # $ac_x_includes = no
3318
3319if test "$ac_x_libraries" = no; then
3320  # Check for the libraries.
3321  # See if we find them without any special options.
3322  # Don't add to $LIBS permanently.
3323  ac_save_LIBS=$LIBS
3324  LIBS="-lX11 $LIBS"
3325  cat >conftest.$ac_ext <<_ACEOF
3326/* confdefs.h.  */
3327_ACEOF
3328cat confdefs.h >>conftest.$ac_ext
3329cat >>conftest.$ac_ext <<_ACEOF
3330/* end confdefs.h.  */
3331#include <X11/Xlib.h>
3332int
3333main ()
3334{
3335XrmInitialize ()
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340rm -f conftest.$ac_objext conftest$ac_exeext
3341if { (ac_try="$ac_link"
3342case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347  (eval "$ac_link") 2>conftest.er1
3348  ac_status=$?
3349  grep -v '^ *+' conftest.er1 >conftest.err
3350  rm -f conftest.er1
3351  cat conftest.err >&5
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); } && {
3354	 test -z "$ac_cxx_werror_flag" ||
3355	 test ! -s conftest.err
3356       } && test -s conftest$ac_exeext &&
3357       $as_test_x conftest$ac_exeext; then
3358  LIBS=$ac_save_LIBS
3359# We can link X programs with no special library path.
3360ac_x_libraries=
3361else
3362  echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365	LIBS=$ac_save_LIBS
3366for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3367do
3368  # Don't even attempt the hair of trying to link an X program!
3369  for ac_extension in a so sl; do
3370    if test -r "$ac_dir/libX11.$ac_extension"; then
3371      ac_x_libraries=$ac_dir
3372      break 2
3373    fi
3374  done
3375done
3376fi
3377
3378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3379      conftest$ac_exeext conftest.$ac_ext
3380fi # $ac_x_libraries = no
3381
3382case $ac_x_includes,$ac_x_libraries in #(
3383  no,* | *,no | *\'*)
3384    # Didn't find X, or a directory has "'" in its name.
3385    ac_cv_have_x="have_x=no";; #(
3386  *)
3387    # Record where we found X for the cache.
3388    ac_cv_have_x="have_x=yes\
3389	ac_x_includes='$ac_x_includes'\
3390	ac_x_libraries='$ac_x_libraries'"
3391esac
3392fi
3393;; #(
3394    *) have_x=yes;;
3395  esac
3396  eval "$ac_cv_have_x"
3397fi # $with_x != no
3398
3399if test "$have_x" != yes; then
3400  { echo "$as_me:$LINENO: result: $have_x" >&5
3401echo "${ECHO_T}$have_x" >&6; }
3402  no_x=yes
3403else
3404  # If each of the values was on the command line, it overrides each guess.
3405  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3406  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3407  # Update the cache value to reflect the command line values.
3408  ac_cv_have_x="have_x=yes\
3409	ac_x_includes='$x_includes'\
3410	ac_x_libraries='$x_libraries'"
3411  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3412echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3413fi
3414
3415if test "$no_x" = yes; then
3416  # Not all programs may use this symbol, but it does not hurt to define it.
3417
3418cat >>confdefs.h <<\_ACEOF
3419#define X_DISPLAY_MISSING 1
3420_ACEOF
3421
3422  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3423else
3424  if test -n "$x_includes"; then
3425    X_CFLAGS="$X_CFLAGS -I$x_includes"
3426  fi
3427
3428  # It would also be nice to do this for all -L options, not just this one.
3429  if test -n "$x_libraries"; then
3430    X_LIBS="$X_LIBS -L$x_libraries"
3431    # For Solaris; some versions of Sun CC require a space after -R and
3432    # others require no space.  Words are not sufficient . . . .
3433    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3434echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3435    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3436    ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
3437    ac_cxx_werror_flag=yes
3438    cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h.  */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h.  */
3444
3445int
3446main ()
3447{
3448
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453rm -f conftest.$ac_objext conftest$ac_exeext
3454if { (ac_try="$ac_link"
3455case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460  (eval "$ac_link") 2>conftest.er1
3461  ac_status=$?
3462  grep -v '^ *+' conftest.er1 >conftest.err
3463  rm -f conftest.er1
3464  cat conftest.err >&5
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); } && {
3467	 test -z "$ac_cxx_werror_flag" ||
3468	 test ! -s conftest.err
3469       } && test -s conftest$ac_exeext &&
3470       $as_test_x conftest$ac_exeext; then
3471  { echo "$as_me:$LINENO: result: no" >&5
3472echo "${ECHO_T}no" >&6; }
3473       X_LIBS="$X_LIBS -R$x_libraries"
3474else
3475  echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478	LIBS="$ac_xsave_LIBS -R $x_libraries"
3479       cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h.  */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h.  */
3485
3486int
3487main ()
3488{
3489
3490  ;
3491  return 0;
3492}
3493_ACEOF
3494rm -f conftest.$ac_objext conftest$ac_exeext
3495if { (ac_try="$ac_link"
3496case "(($ac_try" in
3497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498  *) ac_try_echo=$ac_try;;
3499esac
3500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501  (eval "$ac_link") 2>conftest.er1
3502  ac_status=$?
3503  grep -v '^ *+' conftest.er1 >conftest.err
3504  rm -f conftest.er1
3505  cat conftest.err >&5
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); } && {
3508	 test -z "$ac_cxx_werror_flag" ||
3509	 test ! -s conftest.err
3510       } && test -s conftest$ac_exeext &&
3511       $as_test_x conftest$ac_exeext; then
3512  { echo "$as_me:$LINENO: result: yes" >&5
3513echo "${ECHO_T}yes" >&6; }
3514	  X_LIBS="$X_LIBS -R $x_libraries"
3515else
3516  echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519	{ echo "$as_me:$LINENO: result: neither works" >&5
3520echo "${ECHO_T}neither works" >&6; }
3521fi
3522
3523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3524      conftest$ac_exeext conftest.$ac_ext
3525fi
3526
3527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3528      conftest$ac_exeext conftest.$ac_ext
3529    ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
3530    LIBS=$ac_xsave_LIBS
3531  fi
3532
3533  # Check for system-dependent libraries X programs must link with.
3534  # Do this before checking for the system-independent R6 libraries
3535  # (-lICE), since we may need -lsocket or whatever for X linking.
3536
3537  if test "$ISC" = yes; then
3538    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3539  else
3540    # Martyn Johnson says this is needed for Ultrix, if the X
3541    # libraries were built with DECnet support.  And Karl Berry says
3542    # the Alpha needs dnet_stub (dnet does not exist).
3543    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3544    cat >conftest.$ac_ext <<_ACEOF
3545/* confdefs.h.  */
3546_ACEOF
3547cat confdefs.h >>conftest.$ac_ext
3548cat >>conftest.$ac_ext <<_ACEOF
3549/* end confdefs.h.  */
3550
3551/* Override any GCC internal prototype to avoid an error.
3552   Use char because int might match the return type of a GCC
3553   builtin and then its argument prototype would still apply.  */
3554#ifdef __cplusplus
3555extern "C"
3556#endif
3557char XOpenDisplay ();
3558int
3559main ()
3560{
3561return XOpenDisplay ();
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566rm -f conftest.$ac_objext conftest$ac_exeext
3567if { (ac_try="$ac_link"
3568case "(($ac_try" in
3569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570  *) ac_try_echo=$ac_try;;
3571esac
3572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573  (eval "$ac_link") 2>conftest.er1
3574  ac_status=$?
3575  grep -v '^ *+' conftest.er1 >conftest.err
3576  rm -f conftest.er1
3577  cat conftest.err >&5
3578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579  (exit $ac_status); } && {
3580	 test -z "$ac_cxx_werror_flag" ||
3581	 test ! -s conftest.err
3582       } && test -s conftest$ac_exeext &&
3583       $as_test_x conftest$ac_exeext; then
3584  :
3585else
3586  echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3590echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
3591if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3592  echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594  ac_check_lib_save_LIBS=$LIBS
3595LIBS="-ldnet  $LIBS"
3596cat >conftest.$ac_ext <<_ACEOF
3597/* confdefs.h.  */
3598_ACEOF
3599cat confdefs.h >>conftest.$ac_ext
3600cat >>conftest.$ac_ext <<_ACEOF
3601/* end confdefs.h.  */
3602
3603/* Override any GCC internal prototype to avoid an error.
3604   Use char because int might match the return type of a GCC
3605   builtin and then its argument prototype would still apply.  */
3606#ifdef __cplusplus
3607extern "C"
3608#endif
3609char dnet_ntoa ();
3610int
3611main ()
3612{
3613return dnet_ntoa ();
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618rm -f conftest.$ac_objext conftest$ac_exeext
3619if { (ac_try="$ac_link"
3620case "(($ac_try" in
3621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622  *) ac_try_echo=$ac_try;;
3623esac
3624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625  (eval "$ac_link") 2>conftest.er1
3626  ac_status=$?
3627  grep -v '^ *+' conftest.er1 >conftest.err
3628  rm -f conftest.er1
3629  cat conftest.err >&5
3630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631  (exit $ac_status); } && {
3632	 test -z "$ac_cxx_werror_flag" ||
3633	 test ! -s conftest.err
3634       } && test -s conftest$ac_exeext &&
3635       $as_test_x conftest$ac_exeext; then
3636  ac_cv_lib_dnet_dnet_ntoa=yes
3637else
3638  echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641	ac_cv_lib_dnet_dnet_ntoa=no
3642fi
3643
3644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3645      conftest$ac_exeext conftest.$ac_ext
3646LIBS=$ac_check_lib_save_LIBS
3647fi
3648{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3649echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
3650if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3651  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3652fi
3653
3654    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3655      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3656echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
3657if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3658  echo $ECHO_N "(cached) $ECHO_C" >&6
3659else
3660  ac_check_lib_save_LIBS=$LIBS
3661LIBS="-ldnet_stub  $LIBS"
3662cat >conftest.$ac_ext <<_ACEOF
3663/* confdefs.h.  */
3664_ACEOF
3665cat confdefs.h >>conftest.$ac_ext
3666cat >>conftest.$ac_ext <<_ACEOF
3667/* end confdefs.h.  */
3668
3669/* Override any GCC internal prototype to avoid an error.
3670   Use char because int might match the return type of a GCC
3671   builtin and then its argument prototype would still apply.  */
3672#ifdef __cplusplus
3673extern "C"
3674#endif
3675char dnet_ntoa ();
3676int
3677main ()
3678{
3679return dnet_ntoa ();
3680  ;
3681  return 0;
3682}
3683_ACEOF
3684rm -f conftest.$ac_objext conftest$ac_exeext
3685if { (ac_try="$ac_link"
3686case "(($ac_try" in
3687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688  *) ac_try_echo=$ac_try;;
3689esac
3690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691  (eval "$ac_link") 2>conftest.er1
3692  ac_status=$?
3693  grep -v '^ *+' conftest.er1 >conftest.err
3694  rm -f conftest.er1
3695  cat conftest.err >&5
3696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697  (exit $ac_status); } && {
3698	 test -z "$ac_cxx_werror_flag" ||
3699	 test ! -s conftest.err
3700       } && test -s conftest$ac_exeext &&
3701       $as_test_x conftest$ac_exeext; then
3702  ac_cv_lib_dnet_stub_dnet_ntoa=yes
3703else
3704  echo "$as_me: failed program was:" >&5
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
3707	ac_cv_lib_dnet_stub_dnet_ntoa=no
3708fi
3709
3710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3711      conftest$ac_exeext conftest.$ac_ext
3712LIBS=$ac_check_lib_save_LIBS
3713fi
3714{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3715echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
3716if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3717  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3718fi
3719
3720    fi
3721fi
3722
3723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3724      conftest$ac_exeext conftest.$ac_ext
3725    LIBS="$ac_xsave_LIBS"
3726
3727    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3728    # to get the SysV transport functions.
3729    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3730    # needs -lnsl.
3731    # The nsl library prevents programs from opening the X display
3732    # on Irix 5.2, according to T.E. Dickey.
3733    # The functions gethostbyname, getservbyname, and inet_addr are
3734    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3735    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
3736echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
3737if test "${ac_cv_func_gethostbyname+set}" = set; then
3738  echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740  cat >conftest.$ac_ext <<_ACEOF
3741/* confdefs.h.  */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h.  */
3746/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3747   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3748#define gethostbyname innocuous_gethostbyname
3749
3750/* System header to define __stub macros and hopefully few prototypes,
3751    which can conflict with char gethostbyname (); below.
3752    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3753    <limits.h> exists even on freestanding compilers.  */
3754
3755#ifdef __STDC__
3756# include <limits.h>
3757#else
3758# include <assert.h>
3759#endif
3760
3761#undef gethostbyname
3762
3763/* Override any GCC internal prototype to avoid an error.
3764   Use char because int might match the return type of a GCC
3765   builtin and then its argument prototype would still apply.  */
3766#ifdef __cplusplus
3767extern "C"
3768#endif
3769char gethostbyname ();
3770/* The GNU C library defines this for functions which it implements
3771    to always fail with ENOSYS.  Some functions are actually named
3772    something starting with __ and the normal name is an alias.  */
3773#if defined __stub_gethostbyname || defined __stub___gethostbyname
3774choke me
3775#endif
3776
3777int
3778main ()
3779{
3780return gethostbyname ();
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785rm -f conftest.$ac_objext conftest$ac_exeext
3786if { (ac_try="$ac_link"
3787case "(($ac_try" in
3788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789  *) ac_try_echo=$ac_try;;
3790esac
3791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792  (eval "$ac_link") 2>conftest.er1
3793  ac_status=$?
3794  grep -v '^ *+' conftest.er1 >conftest.err
3795  rm -f conftest.er1
3796  cat conftest.err >&5
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); } && {
3799	 test -z "$ac_cxx_werror_flag" ||
3800	 test ! -s conftest.err
3801       } && test -s conftest$ac_exeext &&
3802       $as_test_x conftest$ac_exeext; then
3803  ac_cv_func_gethostbyname=yes
3804else
3805  echo "$as_me: failed program was:" >&5
3806sed 's/^/| /' conftest.$ac_ext >&5
3807
3808	ac_cv_func_gethostbyname=no
3809fi
3810
3811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3812      conftest$ac_exeext conftest.$ac_ext
3813fi
3814{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3815echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
3816
3817    if test $ac_cv_func_gethostbyname = no; then
3818      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3819echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
3820if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3821  echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823  ac_check_lib_save_LIBS=$LIBS
3824LIBS="-lnsl  $LIBS"
3825cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h.  */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h.  */
3831
3832/* Override any GCC internal prototype to avoid an error.
3833   Use char because int might match the return type of a GCC
3834   builtin and then its argument prototype would still apply.  */
3835#ifdef __cplusplus
3836extern "C"
3837#endif
3838char gethostbyname ();
3839int
3840main ()
3841{
3842return gethostbyname ();
3843  ;
3844  return 0;
3845}
3846_ACEOF
3847rm -f conftest.$ac_objext conftest$ac_exeext
3848if { (ac_try="$ac_link"
3849case "(($ac_try" in
3850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851  *) ac_try_echo=$ac_try;;
3852esac
3853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854  (eval "$ac_link") 2>conftest.er1
3855  ac_status=$?
3856  grep -v '^ *+' conftest.er1 >conftest.err
3857  rm -f conftest.er1
3858  cat conftest.err >&5
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); } && {
3861	 test -z "$ac_cxx_werror_flag" ||
3862	 test ! -s conftest.err
3863       } && test -s conftest$ac_exeext &&
3864       $as_test_x conftest$ac_exeext; then
3865  ac_cv_lib_nsl_gethostbyname=yes
3866else
3867  echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870	ac_cv_lib_nsl_gethostbyname=no
3871fi
3872
3873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3874      conftest$ac_exeext conftest.$ac_ext
3875LIBS=$ac_check_lib_save_LIBS
3876fi
3877{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3878echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
3879if test $ac_cv_lib_nsl_gethostbyname = yes; then
3880  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3881fi
3882
3883      if test $ac_cv_lib_nsl_gethostbyname = no; then
3884	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3885echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
3886if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3887  echo $ECHO_N "(cached) $ECHO_C" >&6
3888else
3889  ac_check_lib_save_LIBS=$LIBS
3890LIBS="-lbsd  $LIBS"
3891cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h.  */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h.  */
3897
3898/* Override any GCC internal prototype to avoid an error.
3899   Use char because int might match the return type of a GCC
3900   builtin and then its argument prototype would still apply.  */
3901#ifdef __cplusplus
3902extern "C"
3903#endif
3904char gethostbyname ();
3905int
3906main ()
3907{
3908return gethostbyname ();
3909  ;
3910  return 0;
3911}
3912_ACEOF
3913rm -f conftest.$ac_objext conftest$ac_exeext
3914if { (ac_try="$ac_link"
3915case "(($ac_try" in
3916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917  *) ac_try_echo=$ac_try;;
3918esac
3919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920  (eval "$ac_link") 2>conftest.er1
3921  ac_status=$?
3922  grep -v '^ *+' conftest.er1 >conftest.err
3923  rm -f conftest.er1
3924  cat conftest.err >&5
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); } && {
3927	 test -z "$ac_cxx_werror_flag" ||
3928	 test ! -s conftest.err
3929       } && test -s conftest$ac_exeext &&
3930       $as_test_x conftest$ac_exeext; then
3931  ac_cv_lib_bsd_gethostbyname=yes
3932else
3933  echo "$as_me: failed program was:" >&5
3934sed 's/^/| /' conftest.$ac_ext >&5
3935
3936	ac_cv_lib_bsd_gethostbyname=no
3937fi
3938
3939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3940      conftest$ac_exeext conftest.$ac_ext
3941LIBS=$ac_check_lib_save_LIBS
3942fi
3943{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3944echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
3945if test $ac_cv_lib_bsd_gethostbyname = yes; then
3946  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3947fi
3948
3949      fi
3950    fi
3951
3952    # lieder@skyler.mavd.honeywell.com says without -lsocket,
3953    # socket/setsockopt and other routines are undefined under SCO ODT
3954    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3955    # on later versions), says Simon Leinen: it contains gethostby*
3956    # variants that don't use the name server (or something).  -lsocket
3957    # must be given before -lnsl if both are needed.  We assume that
3958    # if connect needs -lnsl, so does gethostbyname.
3959    { echo "$as_me:$LINENO: checking for connect" >&5
3960echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
3961if test "${ac_cv_func_connect+set}" = set; then
3962  echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964  cat >conftest.$ac_ext <<_ACEOF
3965/* confdefs.h.  */
3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
3969/* end confdefs.h.  */
3970/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3971   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3972#define connect innocuous_connect
3973
3974/* System header to define __stub macros and hopefully few prototypes,
3975    which can conflict with char connect (); below.
3976    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977    <limits.h> exists even on freestanding compilers.  */
3978
3979#ifdef __STDC__
3980# include <limits.h>
3981#else
3982# include <assert.h>
3983#endif
3984
3985#undef connect
3986
3987/* Override any GCC internal prototype to avoid an error.
3988   Use char because int might match the return type of a GCC
3989   builtin and then its argument prototype would still apply.  */
3990#ifdef __cplusplus
3991extern "C"
3992#endif
3993char connect ();
3994/* The GNU C library defines this for functions which it implements
3995    to always fail with ENOSYS.  Some functions are actually named
3996    something starting with __ and the normal name is an alias.  */
3997#if defined __stub_connect || defined __stub___connect
3998choke me
3999#endif
4000
4001int
4002main ()
4003{
4004return connect ();
4005  ;
4006  return 0;
4007}
4008_ACEOF
4009rm -f conftest.$ac_objext conftest$ac_exeext
4010if { (ac_try="$ac_link"
4011case "(($ac_try" in
4012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013  *) ac_try_echo=$ac_try;;
4014esac
4015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016  (eval "$ac_link") 2>conftest.er1
4017  ac_status=$?
4018  grep -v '^ *+' conftest.er1 >conftest.err
4019  rm -f conftest.er1
4020  cat conftest.err >&5
4021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022  (exit $ac_status); } && {
4023	 test -z "$ac_cxx_werror_flag" ||
4024	 test ! -s conftest.err
4025       } && test -s conftest$ac_exeext &&
4026       $as_test_x conftest$ac_exeext; then
4027  ac_cv_func_connect=yes
4028else
4029  echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032	ac_cv_func_connect=no
4033fi
4034
4035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4036      conftest$ac_exeext conftest.$ac_ext
4037fi
4038{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4039echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4040
4041    if test $ac_cv_func_connect = no; then
4042      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4043echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4044if test "${ac_cv_lib_socket_connect+set}" = set; then
4045  echo $ECHO_N "(cached) $ECHO_C" >&6
4046else
4047  ac_check_lib_save_LIBS=$LIBS
4048LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4049cat >conftest.$ac_ext <<_ACEOF
4050/* confdefs.h.  */
4051_ACEOF
4052cat confdefs.h >>conftest.$ac_ext
4053cat >>conftest.$ac_ext <<_ACEOF
4054/* end confdefs.h.  */
4055
4056/* Override any GCC internal prototype to avoid an error.
4057   Use char because int might match the return type of a GCC
4058   builtin and then its argument prototype would still apply.  */
4059#ifdef __cplusplus
4060extern "C"
4061#endif
4062char connect ();
4063int
4064main ()
4065{
4066return connect ();
4067  ;
4068  return 0;
4069}
4070_ACEOF
4071rm -f conftest.$ac_objext conftest$ac_exeext
4072if { (ac_try="$ac_link"
4073case "(($ac_try" in
4074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075  *) ac_try_echo=$ac_try;;
4076esac
4077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078  (eval "$ac_link") 2>conftest.er1
4079  ac_status=$?
4080  grep -v '^ *+' conftest.er1 >conftest.err
4081  rm -f conftest.er1
4082  cat conftest.err >&5
4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084  (exit $ac_status); } && {
4085	 test -z "$ac_cxx_werror_flag" ||
4086	 test ! -s conftest.err
4087       } && test -s conftest$ac_exeext &&
4088       $as_test_x conftest$ac_exeext; then
4089  ac_cv_lib_socket_connect=yes
4090else
4091  echo "$as_me: failed program was:" >&5
4092sed 's/^/| /' conftest.$ac_ext >&5
4093
4094	ac_cv_lib_socket_connect=no
4095fi
4096
4097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4098      conftest$ac_exeext conftest.$ac_ext
4099LIBS=$ac_check_lib_save_LIBS
4100fi
4101{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4102echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4103if test $ac_cv_lib_socket_connect = yes; then
4104  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4105fi
4106
4107    fi
4108
4109    # Guillermo Gomez says -lposix is necessary on A/UX.
4110    { echo "$as_me:$LINENO: checking for remove" >&5
4111echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4112if test "${ac_cv_func_remove+set}" = set; then
4113  echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115  cat >conftest.$ac_ext <<_ACEOF
4116/* confdefs.h.  */
4117_ACEOF
4118cat confdefs.h >>conftest.$ac_ext
4119cat >>conftest.$ac_ext <<_ACEOF
4120/* end confdefs.h.  */
4121/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4122   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4123#define remove innocuous_remove
4124
4125/* System header to define __stub macros and hopefully few prototypes,
4126    which can conflict with char remove (); below.
4127    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4128    <limits.h> exists even on freestanding compilers.  */
4129
4130#ifdef __STDC__
4131# include <limits.h>
4132#else
4133# include <assert.h>
4134#endif
4135
4136#undef remove
4137
4138/* Override any GCC internal prototype to avoid an error.
4139   Use char because int might match the return type of a GCC
4140   builtin and then its argument prototype would still apply.  */
4141#ifdef __cplusplus
4142extern "C"
4143#endif
4144char remove ();
4145/* The GNU C library defines this for functions which it implements
4146    to always fail with ENOSYS.  Some functions are actually named
4147    something starting with __ and the normal name is an alias.  */
4148#if defined __stub_remove || defined __stub___remove
4149choke me
4150#endif
4151
4152int
4153main ()
4154{
4155return remove ();
4156  ;
4157  return 0;
4158}
4159_ACEOF
4160rm -f conftest.$ac_objext conftest$ac_exeext
4161if { (ac_try="$ac_link"
4162case "(($ac_try" in
4163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164  *) ac_try_echo=$ac_try;;
4165esac
4166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167  (eval "$ac_link") 2>conftest.er1
4168  ac_status=$?
4169  grep -v '^ *+' conftest.er1 >conftest.err
4170  rm -f conftest.er1
4171  cat conftest.err >&5
4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173  (exit $ac_status); } && {
4174	 test -z "$ac_cxx_werror_flag" ||
4175	 test ! -s conftest.err
4176       } && test -s conftest$ac_exeext &&
4177       $as_test_x conftest$ac_exeext; then
4178  ac_cv_func_remove=yes
4179else
4180  echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183	ac_cv_func_remove=no
4184fi
4185
4186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4187      conftest$ac_exeext conftest.$ac_ext
4188fi
4189{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4190echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4191
4192    if test $ac_cv_func_remove = no; then
4193      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4194echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4195if test "${ac_cv_lib_posix_remove+set}" = set; then
4196  echo $ECHO_N "(cached) $ECHO_C" >&6
4197else
4198  ac_check_lib_save_LIBS=$LIBS
4199LIBS="-lposix  $LIBS"
4200cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h.  */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h.  */
4206
4207/* Override any GCC internal prototype to avoid an error.
4208   Use char because int might match the return type of a GCC
4209   builtin and then its argument prototype would still apply.  */
4210#ifdef __cplusplus
4211extern "C"
4212#endif
4213char remove ();
4214int
4215main ()
4216{
4217return remove ();
4218  ;
4219  return 0;
4220}
4221_ACEOF
4222rm -f conftest.$ac_objext conftest$ac_exeext
4223if { (ac_try="$ac_link"
4224case "(($ac_try" in
4225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226  *) ac_try_echo=$ac_try;;
4227esac
4228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229  (eval "$ac_link") 2>conftest.er1
4230  ac_status=$?
4231  grep -v '^ *+' conftest.er1 >conftest.err
4232  rm -f conftest.er1
4233  cat conftest.err >&5
4234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235  (exit $ac_status); } && {
4236	 test -z "$ac_cxx_werror_flag" ||
4237	 test ! -s conftest.err
4238       } && test -s conftest$ac_exeext &&
4239       $as_test_x conftest$ac_exeext; then
4240  ac_cv_lib_posix_remove=yes
4241else
4242  echo "$as_me: failed program was:" >&5
4243sed 's/^/| /' conftest.$ac_ext >&5
4244
4245	ac_cv_lib_posix_remove=no
4246fi
4247
4248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4249      conftest$ac_exeext conftest.$ac_ext
4250LIBS=$ac_check_lib_save_LIBS
4251fi
4252{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4253echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4254if test $ac_cv_lib_posix_remove = yes; then
4255  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4256fi
4257
4258    fi
4259
4260    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4261    { echo "$as_me:$LINENO: checking for shmat" >&5
4262echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4263if test "${ac_cv_func_shmat+set}" = set; then
4264  echo $ECHO_N "(cached) $ECHO_C" >&6
4265else
4266  cat >conftest.$ac_ext <<_ACEOF
4267/* confdefs.h.  */
4268_ACEOF
4269cat confdefs.h >>conftest.$ac_ext
4270cat >>conftest.$ac_ext <<_ACEOF
4271/* end confdefs.h.  */
4272/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4273   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4274#define shmat innocuous_shmat
4275
4276/* System header to define __stub macros and hopefully few prototypes,
4277    which can conflict with char shmat (); below.
4278    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4279    <limits.h> exists even on freestanding compilers.  */
4280
4281#ifdef __STDC__
4282# include <limits.h>
4283#else
4284# include <assert.h>
4285#endif
4286
4287#undef shmat
4288
4289/* Override any GCC internal prototype to avoid an error.
4290   Use char because int might match the return type of a GCC
4291   builtin and then its argument prototype would still apply.  */
4292#ifdef __cplusplus
4293extern "C"
4294#endif
4295char shmat ();
4296/* The GNU C library defines this for functions which it implements
4297    to always fail with ENOSYS.  Some functions are actually named
4298    something starting with __ and the normal name is an alias.  */
4299#if defined __stub_shmat || defined __stub___shmat
4300choke me
4301#endif
4302
4303int
4304main ()
4305{
4306return shmat ();
4307  ;
4308  return 0;
4309}
4310_ACEOF
4311rm -f conftest.$ac_objext conftest$ac_exeext
4312if { (ac_try="$ac_link"
4313case "(($ac_try" in
4314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315  *) ac_try_echo=$ac_try;;
4316esac
4317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318  (eval "$ac_link") 2>conftest.er1
4319  ac_status=$?
4320  grep -v '^ *+' conftest.er1 >conftest.err
4321  rm -f conftest.er1
4322  cat conftest.err >&5
4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324  (exit $ac_status); } && {
4325	 test -z "$ac_cxx_werror_flag" ||
4326	 test ! -s conftest.err
4327       } && test -s conftest$ac_exeext &&
4328       $as_test_x conftest$ac_exeext; then
4329  ac_cv_func_shmat=yes
4330else
4331  echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
4333
4334	ac_cv_func_shmat=no
4335fi
4336
4337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4338      conftest$ac_exeext conftest.$ac_ext
4339fi
4340{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4341echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4342
4343    if test $ac_cv_func_shmat = no; then
4344      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4345echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4346if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4347  echo $ECHO_N "(cached) $ECHO_C" >&6
4348else
4349  ac_check_lib_save_LIBS=$LIBS
4350LIBS="-lipc  $LIBS"
4351cat >conftest.$ac_ext <<_ACEOF
4352/* confdefs.h.  */
4353_ACEOF
4354cat confdefs.h >>conftest.$ac_ext
4355cat >>conftest.$ac_ext <<_ACEOF
4356/* end confdefs.h.  */
4357
4358/* Override any GCC internal prototype to avoid an error.
4359   Use char because int might match the return type of a GCC
4360   builtin and then its argument prototype would still apply.  */
4361#ifdef __cplusplus
4362extern "C"
4363#endif
4364char shmat ();
4365int
4366main ()
4367{
4368return shmat ();
4369  ;
4370  return 0;
4371}
4372_ACEOF
4373rm -f conftest.$ac_objext conftest$ac_exeext
4374if { (ac_try="$ac_link"
4375case "(($ac_try" in
4376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377  *) ac_try_echo=$ac_try;;
4378esac
4379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380  (eval "$ac_link") 2>conftest.er1
4381  ac_status=$?
4382  grep -v '^ *+' conftest.er1 >conftest.err
4383  rm -f conftest.er1
4384  cat conftest.err >&5
4385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386  (exit $ac_status); } && {
4387	 test -z "$ac_cxx_werror_flag" ||
4388	 test ! -s conftest.err
4389       } && test -s conftest$ac_exeext &&
4390       $as_test_x conftest$ac_exeext; then
4391  ac_cv_lib_ipc_shmat=yes
4392else
4393  echo "$as_me: failed program was:" >&5
4394sed 's/^/| /' conftest.$ac_ext >&5
4395
4396	ac_cv_lib_ipc_shmat=no
4397fi
4398
4399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4400      conftest$ac_exeext conftest.$ac_ext
4401LIBS=$ac_check_lib_save_LIBS
4402fi
4403{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4404echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4405if test $ac_cv_lib_ipc_shmat = yes; then
4406  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4407fi
4408
4409    fi
4410  fi
4411
4412  # Check for libraries that X11R6 Xt/Xaw programs need.
4413  ac_save_LDFLAGS=$LDFLAGS
4414  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4415  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4416  # check for ICE first), but we must link in the order -lSM -lICE or
4417  # we get undefined symbols.  So assume we have SM if we have ICE.
4418  # These have to be linked with before -lX11, unlike the other
4419  # libraries we check for below, so use a different variable.
4420  # John Interrante, Karl Berry
4421  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4422echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4423if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4424  echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426  ac_check_lib_save_LIBS=$LIBS
4427LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4428cat >conftest.$ac_ext <<_ACEOF
4429/* confdefs.h.  */
4430_ACEOF
4431cat confdefs.h >>conftest.$ac_ext
4432cat >>conftest.$ac_ext <<_ACEOF
4433/* end confdefs.h.  */
4434
4435/* Override any GCC internal prototype to avoid an error.
4436   Use char because int might match the return type of a GCC
4437   builtin and then its argument prototype would still apply.  */
4438#ifdef __cplusplus
4439extern "C"
4440#endif
4441char IceConnectionNumber ();
4442int
4443main ()
4444{
4445return IceConnectionNumber ();
4446  ;
4447  return 0;
4448}
4449_ACEOF
4450rm -f conftest.$ac_objext conftest$ac_exeext
4451if { (ac_try="$ac_link"
4452case "(($ac_try" in
4453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454  *) ac_try_echo=$ac_try;;
4455esac
4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457  (eval "$ac_link") 2>conftest.er1
4458  ac_status=$?
4459  grep -v '^ *+' conftest.er1 >conftest.err
4460  rm -f conftest.er1
4461  cat conftest.err >&5
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); } && {
4464	 test -z "$ac_cxx_werror_flag" ||
4465	 test ! -s conftest.err
4466       } && test -s conftest$ac_exeext &&
4467       $as_test_x conftest$ac_exeext; then
4468  ac_cv_lib_ICE_IceConnectionNumber=yes
4469else
4470  echo "$as_me: failed program was:" >&5
4471sed 's/^/| /' conftest.$ac_ext >&5
4472
4473	ac_cv_lib_ICE_IceConnectionNumber=no
4474fi
4475
4476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4477      conftest$ac_exeext conftest.$ac_ext
4478LIBS=$ac_check_lib_save_LIBS
4479fi
4480{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4481echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4482if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4483  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4484fi
4485
4486  LDFLAGS=$ac_save_LDFLAGS
4487
4488fi
4489
4490{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4491echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4492if test "${ac_cv_path_GREP+set}" = set; then
4493  echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495  # Extract the first word of "grep ggrep" to use in msg output
4496if test -z "$GREP"; then
4497set dummy grep ggrep; ac_prog_name=$2
4498if test "${ac_cv_path_GREP+set}" = set; then
4499  echo $ECHO_N "(cached) $ECHO_C" >&6
4500else
4501  ac_path_GREP_found=false
4502# Loop through the user's path and test for each of PROGNAME-LIST
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4505do
4506  IFS=$as_save_IFS
4507  test -z "$as_dir" && as_dir=.
4508  for ac_prog in grep ggrep; do
4509  for ac_exec_ext in '' $ac_executable_extensions; do
4510    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4511    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4512    # Check for GNU ac_path_GREP and select it if it is found.
4513  # Check for GNU $ac_path_GREP
4514case `"$ac_path_GREP" --version 2>&1` in
4515*GNU*)
4516  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4517*)
4518  ac_count=0
4519  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4520  while :
4521  do
4522    cat "conftest.in" "conftest.in" >"conftest.tmp"
4523    mv "conftest.tmp" "conftest.in"
4524    cp "conftest.in" "conftest.nl"
4525    echo 'GREP' >> "conftest.nl"
4526    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4527    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4528    ac_count=`expr $ac_count + 1`
4529    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4530      # Best one so far, save it but keep looking for a better one
4531      ac_cv_path_GREP="$ac_path_GREP"
4532      ac_path_GREP_max=$ac_count
4533    fi
4534    # 10*(2^10) chars as input seems more than enough
4535    test $ac_count -gt 10 && break
4536  done
4537  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4538esac
4539
4540
4541    $ac_path_GREP_found && break 3
4542  done
4543done
4544
4545done
4546IFS=$as_save_IFS
4547
4548
4549fi
4550
4551GREP="$ac_cv_path_GREP"
4552if test -z "$GREP"; then
4553  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4554echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4555   { (exit 1); exit 1; }; }
4556fi
4557
4558else
4559  ac_cv_path_GREP=$GREP
4560fi
4561
4562
4563fi
4564{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4565echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4566 GREP="$ac_cv_path_GREP"
4567
4568
4569{ echo "$as_me:$LINENO: checking for egrep" >&5
4570echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4571if test "${ac_cv_path_EGREP+set}" = set; then
4572  echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
4574  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4575   then ac_cv_path_EGREP="$GREP -E"
4576   else
4577     # Extract the first word of "egrep" to use in msg output
4578if test -z "$EGREP"; then
4579set dummy egrep; ac_prog_name=$2
4580if test "${ac_cv_path_EGREP+set}" = set; then
4581  echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583  ac_path_EGREP_found=false
4584# Loop through the user's path and test for each of PROGNAME-LIST
4585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587do
4588  IFS=$as_save_IFS
4589  test -z "$as_dir" && as_dir=.
4590  for ac_prog in egrep; do
4591  for ac_exec_ext in '' $ac_executable_extensions; do
4592    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4593    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4594    # Check for GNU ac_path_EGREP and select it if it is found.
4595  # Check for GNU $ac_path_EGREP
4596case `"$ac_path_EGREP" --version 2>&1` in
4597*GNU*)
4598  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4599*)
4600  ac_count=0
4601  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4602  while :
4603  do
4604    cat "conftest.in" "conftest.in" >"conftest.tmp"
4605    mv "conftest.tmp" "conftest.in"
4606    cp "conftest.in" "conftest.nl"
4607    echo 'EGREP' >> "conftest.nl"
4608    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4609    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4610    ac_count=`expr $ac_count + 1`
4611    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4612      # Best one so far, save it but keep looking for a better one
4613      ac_cv_path_EGREP="$ac_path_EGREP"
4614      ac_path_EGREP_max=$ac_count
4615    fi
4616    # 10*(2^10) chars as input seems more than enough
4617    test $ac_count -gt 10 && break
4618  done
4619  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620esac
4621
4622
4623    $ac_path_EGREP_found && break 3
4624  done
4625done
4626
4627done
4628IFS=$as_save_IFS
4629
4630
4631fi
4632
4633EGREP="$ac_cv_path_EGREP"
4634if test -z "$EGREP"; then
4635  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4636echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4637   { (exit 1); exit 1; }; }
4638fi
4639
4640else
4641  ac_cv_path_EGREP=$EGREP
4642fi
4643
4644
4645   fi
4646fi
4647{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4648echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4649 EGREP="$ac_cv_path_EGREP"
4650
4651
4652{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4653echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4654if test "${ac_cv_header_stdc+set}" = set; then
4655  echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657  cat >conftest.$ac_ext <<_ACEOF
4658/* confdefs.h.  */
4659_ACEOF
4660cat confdefs.h >>conftest.$ac_ext
4661cat >>conftest.$ac_ext <<_ACEOF
4662/* end confdefs.h.  */
4663#include <stdlib.h>
4664#include <stdarg.h>
4665#include <string.h>
4666#include <float.h>
4667
4668int
4669main ()
4670{
4671
4672  ;
4673  return 0;
4674}
4675_ACEOF
4676rm -f conftest.$ac_objext
4677if { (ac_try="$ac_compile"
4678case "(($ac_try" in
4679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680  *) ac_try_echo=$ac_try;;
4681esac
4682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683  (eval "$ac_compile") 2>conftest.er1
4684  ac_status=$?
4685  grep -v '^ *+' conftest.er1 >conftest.err
4686  rm -f conftest.er1
4687  cat conftest.err >&5
4688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689  (exit $ac_status); } && {
4690	 test -z "$ac_cxx_werror_flag" ||
4691	 test ! -s conftest.err
4692       } && test -s conftest.$ac_objext; then
4693  ac_cv_header_stdc=yes
4694else
4695  echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698	ac_cv_header_stdc=no
4699fi
4700
4701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702
4703if test $ac_cv_header_stdc = yes; then
4704  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4705  cat >conftest.$ac_ext <<_ACEOF
4706/* confdefs.h.  */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h.  */
4711#include <string.h>
4712
4713_ACEOF
4714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4715  $EGREP "memchr" >/dev/null 2>&1; then
4716  :
4717else
4718  ac_cv_header_stdc=no
4719fi
4720rm -f conftest*
4721
4722fi
4723
4724if test $ac_cv_header_stdc = yes; then
4725  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4726  cat >conftest.$ac_ext <<_ACEOF
4727/* confdefs.h.  */
4728_ACEOF
4729cat confdefs.h >>conftest.$ac_ext
4730cat >>conftest.$ac_ext <<_ACEOF
4731/* end confdefs.h.  */
4732#include <stdlib.h>
4733
4734_ACEOF
4735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4736  $EGREP "free" >/dev/null 2>&1; then
4737  :
4738else
4739  ac_cv_header_stdc=no
4740fi
4741rm -f conftest*
4742
4743fi
4744
4745if test $ac_cv_header_stdc = yes; then
4746  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4747  if test "$cross_compiling" = yes; then
4748  :
4749else
4750  cat >conftest.$ac_ext <<_ACEOF
4751/* confdefs.h.  */
4752_ACEOF
4753cat confdefs.h >>conftest.$ac_ext
4754cat >>conftest.$ac_ext <<_ACEOF
4755/* end confdefs.h.  */
4756#include <ctype.h>
4757#include <stdlib.h>
4758#if ((' ' & 0x0FF) == 0x020)
4759# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4760# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4761#else
4762# define ISLOWER(c) \
4763		   (('a' <= (c) && (c) <= 'i') \
4764		     || ('j' <= (c) && (c) <= 'r') \
4765		     || ('s' <= (c) && (c) <= 'z'))
4766# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4767#endif
4768
4769#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4770int
4771main ()
4772{
4773  int i;
4774  for (i = 0; i < 256; i++)
4775    if (XOR (islower (i), ISLOWER (i))
4776	|| toupper (i) != TOUPPER (i))
4777      return 2;
4778  return 0;
4779}
4780_ACEOF
4781rm -f conftest$ac_exeext
4782if { (ac_try="$ac_link"
4783case "(($ac_try" in
4784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785  *) ac_try_echo=$ac_try;;
4786esac
4787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788  (eval "$ac_link") 2>&5
4789  ac_status=$?
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4792  { (case "(($ac_try" in
4793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794  *) ac_try_echo=$ac_try;;
4795esac
4796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797  (eval "$ac_try") 2>&5
4798  ac_status=$?
4799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800  (exit $ac_status); }; }; then
4801  :
4802else
4803  echo "$as_me: program exited with status $ac_status" >&5
4804echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807( exit $ac_status )
4808ac_cv_header_stdc=no
4809fi
4810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4811fi
4812
4813
4814fi
4815fi
4816{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4817echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4818if test $ac_cv_header_stdc = yes; then
4819
4820cat >>confdefs.h <<\_ACEOF
4821#define STDC_HEADERS 1
4822_ACEOF
4823
4824fi
4825
4826
4827
4828for ac_func in memset strncmp
4829do
4830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4831{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4833if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4834  echo $ECHO_N "(cached) $ECHO_C" >&6
4835else
4836  cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h.  */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h.  */
4842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4843   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4844#define $ac_func innocuous_$ac_func
4845
4846/* System header to define __stub macros and hopefully few prototypes,
4847    which can conflict with char $ac_func (); below.
4848    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4849    <limits.h> exists even on freestanding compilers.  */
4850
4851#ifdef __STDC__
4852# include <limits.h>
4853#else
4854# include <assert.h>
4855#endif
4856
4857#undef $ac_func
4858
4859/* Override any GCC internal prototype to avoid an error.
4860   Use char because int might match the return type of a GCC
4861   builtin and then its argument prototype would still apply.  */
4862#ifdef __cplusplus
4863extern "C"
4864#endif
4865char $ac_func ();
4866/* The GNU C library defines this for functions which it implements
4867    to always fail with ENOSYS.  Some functions are actually named
4868    something starting with __ and the normal name is an alias.  */
4869#if defined __stub_$ac_func || defined __stub___$ac_func
4870choke me
4871#endif
4872
4873int
4874main ()
4875{
4876return $ac_func ();
4877  ;
4878  return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext conftest$ac_exeext
4882if { (ac_try="$ac_link"
4883case "(($ac_try" in
4884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885  *) ac_try_echo=$ac_try;;
4886esac
4887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888  (eval "$ac_link") 2>conftest.er1
4889  ac_status=$?
4890  grep -v '^ *+' conftest.er1 >conftest.err
4891  rm -f conftest.er1
4892  cat conftest.err >&5
4893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894  (exit $ac_status); } && {
4895	 test -z "$ac_cxx_werror_flag" ||
4896	 test ! -s conftest.err
4897       } && test -s conftest$ac_exeext &&
4898       $as_test_x conftest$ac_exeext; then
4899  eval "$as_ac_var=yes"
4900else
4901  echo "$as_me: failed program was:" >&5
4902sed 's/^/| /' conftest.$ac_ext >&5
4903
4904	eval "$as_ac_var=no"
4905fi
4906
4907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4908      conftest$ac_exeext conftest.$ac_ext
4909fi
4910ac_res=`eval echo '${'$as_ac_var'}'`
4911	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4912echo "${ECHO_T}$ac_res" >&6; }
4913if test `eval echo '${'$as_ac_var'}'` = yes; then
4914  cat >>confdefs.h <<_ACEOF
4915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4916_ACEOF
4917
4918fi
4919done
4920
4921# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4932		  inttypes.h stdint.h unistd.h
4933do
4934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4935{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4938  echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940  cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h.  */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h.  */
4946$ac_includes_default
4947
4948#include <$ac_header>
4949_ACEOF
4950rm -f conftest.$ac_objext
4951if { (ac_try="$ac_compile"
4952case "(($ac_try" in
4953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954  *) ac_try_echo=$ac_try;;
4955esac
4956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4957  (eval "$ac_compile") 2>conftest.er1
4958  ac_status=$?
4959  grep -v '^ *+' conftest.er1 >conftest.err
4960  rm -f conftest.er1
4961  cat conftest.err >&5
4962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963  (exit $ac_status); } && {
4964	 test -z "$ac_cxx_werror_flag" ||
4965	 test ! -s conftest.err
4966       } && test -s conftest.$ac_objext; then
4967  eval "$as_ac_Header=yes"
4968else
4969  echo "$as_me: failed program was:" >&5
4970sed 's/^/| /' conftest.$ac_ext >&5
4971
4972	eval "$as_ac_Header=no"
4973fi
4974
4975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976fi
4977ac_res=`eval echo '${'$as_ac_Header'}'`
4978	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4979echo "${ECHO_T}$ac_res" >&6; }
4980if test `eval echo '${'$as_ac_Header'}'` = yes; then
4981  cat >>confdefs.h <<_ACEOF
4982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4983_ACEOF
4984
4985fi
4986
4987done
4988
4989
4990
4991
4992
4993
4994for ac_header in memory.h fcntl.h limits.h unistd.h
4995do
4996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4998  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5001  echo $ECHO_N "(cached) $ECHO_C" >&6
5002fi
5003ac_res=`eval echo '${'$as_ac_Header'}'`
5004	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5005echo "${ECHO_T}$ac_res" >&6; }
5006else
5007  # Is the header compilable?
5008{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5009echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5010cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h.  */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h.  */
5016$ac_includes_default
5017#include <$ac_header>
5018_ACEOF
5019rm -f conftest.$ac_objext
5020if { (ac_try="$ac_compile"
5021case "(($ac_try" in
5022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023  *) ac_try_echo=$ac_try;;
5024esac
5025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026  (eval "$ac_compile") 2>conftest.er1
5027  ac_status=$?
5028  grep -v '^ *+' conftest.er1 >conftest.err
5029  rm -f conftest.er1
5030  cat conftest.err >&5
5031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); } && {
5033	 test -z "$ac_cxx_werror_flag" ||
5034	 test ! -s conftest.err
5035       } && test -s conftest.$ac_objext; then
5036  ac_header_compiler=yes
5037else
5038  echo "$as_me: failed program was:" >&5
5039sed 's/^/| /' conftest.$ac_ext >&5
5040
5041	ac_header_compiler=no
5042fi
5043
5044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5046echo "${ECHO_T}$ac_header_compiler" >&6; }
5047
5048# Is the header present?
5049{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5051cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h.  */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h.  */
5057#include <$ac_header>
5058_ACEOF
5059if { (ac_try="$ac_cpp conftest.$ac_ext"
5060case "(($ac_try" in
5061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062  *) ac_try_echo=$ac_try;;
5063esac
5064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066  ac_status=$?
5067  grep -v '^ *+' conftest.er1 >conftest.err
5068  rm -f conftest.er1
5069  cat conftest.err >&5
5070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071  (exit $ac_status); } >/dev/null && {
5072	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5073	 test ! -s conftest.err
5074       }; then
5075  ac_header_preproc=yes
5076else
5077  echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
5080  ac_header_preproc=no
5081fi
5082
5083rm -f conftest.err conftest.$ac_ext
5084{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5085echo "${ECHO_T}$ac_header_preproc" >&6; }
5086
5087# So?  What about this header?
5088case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5089  yes:no: )
5090    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5092    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5094    ac_header_preproc=yes
5095    ;;
5096  no:yes:* )
5097    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5099    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5100echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5101    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5103    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5104echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5105    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5107    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5109
5110    ;;
5111esac
5112{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5115  echo $ECHO_N "(cached) $ECHO_C" >&6
5116else
5117  eval "$as_ac_Header=\$ac_header_preproc"
5118fi
5119ac_res=`eval echo '${'$as_ac_Header'}'`
5120	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5121echo "${ECHO_T}$ac_res" >&6; }
5122
5123fi
5124if test `eval echo '${'$as_ac_Header'}'` = yes; then
5125  cat >>confdefs.h <<_ACEOF
5126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5127_ACEOF
5128
5129fi
5130
5131done
5132
5133
5134{ echo "$as_me:$LINENO: checking for size_t" >&5
5135echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5136if test "${ac_cv_type_size_t+set}" = set; then
5137  echo $ECHO_N "(cached) $ECHO_C" >&6
5138else
5139  cat >conftest.$ac_ext <<_ACEOF
5140/* confdefs.h.  */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h.  */
5145$ac_includes_default
5146typedef size_t ac__type_new_;
5147int
5148main ()
5149{
5150if ((ac__type_new_ *) 0)
5151  return 0;
5152if (sizeof (ac__type_new_))
5153  return 0;
5154  ;
5155  return 0;
5156}
5157_ACEOF
5158rm -f conftest.$ac_objext
5159if { (ac_try="$ac_compile"
5160case "(($ac_try" in
5161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162  *) ac_try_echo=$ac_try;;
5163esac
5164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165  (eval "$ac_compile") 2>conftest.er1
5166  ac_status=$?
5167  grep -v '^ *+' conftest.er1 >conftest.err
5168  rm -f conftest.er1
5169  cat conftest.err >&5
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); } && {
5172	 test -z "$ac_cxx_werror_flag" ||
5173	 test ! -s conftest.err
5174       } && test -s conftest.$ac_objext; then
5175  ac_cv_type_size_t=yes
5176else
5177  echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180	ac_cv_type_size_t=no
5181fi
5182
5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184fi
5185{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5186echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5187if test $ac_cv_type_size_t = yes; then
5188  :
5189else
5190
5191cat >>confdefs.h <<_ACEOF
5192#define size_t unsigned int
5193_ACEOF
5194
5195fi
5196
5197{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5198echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5199if test "${ac_cv_header_time+set}" = set; then
5200  echo $ECHO_N "(cached) $ECHO_C" >&6
5201else
5202  cat >conftest.$ac_ext <<_ACEOF
5203/* confdefs.h.  */
5204_ACEOF
5205cat confdefs.h >>conftest.$ac_ext
5206cat >>conftest.$ac_ext <<_ACEOF
5207/* end confdefs.h.  */
5208#include <sys/types.h>
5209#include <sys/time.h>
5210#include <time.h>
5211
5212int
5213main ()
5214{
5215if ((struct tm *) 0)
5216return 0;
5217  ;
5218  return 0;
5219}
5220_ACEOF
5221rm -f conftest.$ac_objext
5222if { (ac_try="$ac_compile"
5223case "(($ac_try" in
5224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225  *) ac_try_echo=$ac_try;;
5226esac
5227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228  (eval "$ac_compile") 2>conftest.er1
5229  ac_status=$?
5230  grep -v '^ *+' conftest.er1 >conftest.err
5231  rm -f conftest.er1
5232  cat conftest.err >&5
5233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234  (exit $ac_status); } && {
5235	 test -z "$ac_cxx_werror_flag" ||
5236	 test ! -s conftest.err
5237       } && test -s conftest.$ac_objext; then
5238  ac_cv_header_time=yes
5239else
5240  echo "$as_me: failed program was:" >&5
5241sed 's/^/| /' conftest.$ac_ext >&5
5242
5243	ac_cv_header_time=no
5244fi
5245
5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247fi
5248{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5249echo "${ECHO_T}$ac_cv_header_time" >&6; }
5250if test $ac_cv_header_time = yes; then
5251
5252cat >>confdefs.h <<\_ACEOF
5253#define TIME_WITH_SYS_TIME 1
5254_ACEOF
5255
5256fi
5257
5258
5259
5260
5261
5262ac_config_files="$ac_config_files Makefile"
5263
5264cat >confcache <<\_ACEOF
5265# This file is a shell script that caches the results of configure
5266# tests run on this system so they can be shared between configure
5267# scripts and configure runs, see configure's option --config-cache.
5268# It is not useful on other systems.  If it contains results you don't
5269# want to keep, you may remove or edit it.
5270#
5271# config.status only pays attention to the cache file if you give it
5272# the --recheck option to rerun configure.
5273#
5274# `ac_cv_env_foo' variables (set or unset) will be overridden when
5275# loading this file, other *unset* `ac_cv_foo' will be assigned the
5276# following values.
5277
5278_ACEOF
5279
5280# The following way of writing the cache mishandles newlines in values,
5281# but we know of no workaround that is simple, portable, and efficient.
5282# So, we kill variables containing newlines.
5283# Ultrix sh set writes to stderr and can't be redirected directly,
5284# and sets the high bit in the cache file unless we assign to the vars.
5285(
5286  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5287    eval ac_val=\$$ac_var
5288    case $ac_val in #(
5289    *${as_nl}*)
5290      case $ac_var in #(
5291      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5292echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5293      esac
5294      case $ac_var in #(
5295      _ | IFS | as_nl) ;; #(
5296      *) $as_unset $ac_var ;;
5297      esac ;;
5298    esac
5299  done
5300
5301  (set) 2>&1 |
5302    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5303    *${as_nl}ac_space=\ *)
5304      # `set' does not quote correctly, so add quotes (double-quote
5305      # substitution turns \\\\ into \\, and sed turns \\ into \).
5306      sed -n \
5307	"s/'/'\\\\''/g;
5308	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5309      ;; #(
5310    *)
5311      # `set' quotes correctly as required by POSIX, so do not add quotes.
5312      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5313      ;;
5314    esac |
5315    sort
5316) |
5317  sed '
5318     /^ac_cv_env_/b end
5319     t clear
5320     :clear
5321     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5322     t end
5323     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5324     :end' >>confcache
5325if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5326  if test -w "$cache_file"; then
5327    test "x$cache_file" != "x/dev/null" &&
5328      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5329echo "$as_me: updating cache $cache_file" >&6;}
5330    cat confcache >$cache_file
5331  else
5332    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5333echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5334  fi
5335fi
5336rm -f confcache
5337
5338test "x$prefix" = xNONE && prefix=$ac_default_prefix
5339# Let make expand exec_prefix.
5340test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5341
5342DEFS=-DHAVE_CONFIG_H
5343
5344ac_libobjs=
5345ac_ltlibobjs=
5346for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5347  # 1. Remove the extension, and $U if already installed.
5348  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5349  ac_i=`echo "$ac_i" | sed "$ac_script"`
5350  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5351  #    will be set to the directory where LIBOBJS objects are built.
5352  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5353  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5354done
5355LIBOBJS=$ac_libobjs
5356
5357LTLIBOBJS=$ac_ltlibobjs
5358
5359
5360
5361: ${CONFIG_STATUS=./config.status}
5362ac_clean_files_save=$ac_clean_files
5363ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5364{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5365echo "$as_me: creating $CONFIG_STATUS" >&6;}
5366cat >$CONFIG_STATUS <<_ACEOF
5367#! $SHELL
5368# Generated by $as_me.
5369# Run this file to recreate the current configuration.
5370# Compiler output produced by configure, useful for debugging
5371# configure, is in config.log if it exists.
5372
5373debug=false
5374ac_cs_recheck=false
5375ac_cs_silent=false
5376SHELL=\${CONFIG_SHELL-$SHELL}
5377_ACEOF
5378
5379cat >>$CONFIG_STATUS <<\_ACEOF
5380## --------------------- ##
5381## M4sh Initialization.  ##
5382## --------------------- ##
5383
5384# Be more Bourne compatible
5385DUALCASE=1; export DUALCASE # for MKS sh
5386if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5387  emulate sh
5388  NULLCMD=:
5389  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5390  # is contrary to our usage.  Disable this feature.
5391  alias -g '${1+"$@"}'='"$@"'
5392  setopt NO_GLOB_SUBST
5393else
5394  case `(set -o) 2>/dev/null` in
5395  *posix*) set -o posix ;;
5396esac
5397
5398fi
5399
5400
5401
5402
5403# PATH needs CR
5404# Avoid depending upon Character Ranges.
5405as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5406as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5407as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5408as_cr_digits='0123456789'
5409as_cr_alnum=$as_cr_Letters$as_cr_digits
5410
5411# The user is always right.
5412if test "${PATH_SEPARATOR+set}" != set; then
5413  echo "#! /bin/sh" >conf$$.sh
5414  echo  "exit 0"   >>conf$$.sh
5415  chmod +x conf$$.sh
5416  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5417    PATH_SEPARATOR=';'
5418  else
5419    PATH_SEPARATOR=:
5420  fi
5421  rm -f conf$$.sh
5422fi
5423
5424# Support unset when possible.
5425if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5426  as_unset=unset
5427else
5428  as_unset=false
5429fi
5430
5431
5432# IFS
5433# We need space, tab and new line, in precisely that order.  Quoting is
5434# there to prevent editors from complaining about space-tab.
5435# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5436# splitting by setting IFS to empty value.)
5437as_nl='
5438'
5439IFS=" ""	$as_nl"
5440
5441# Find who we are.  Look in the path if we contain no directory separator.
5442case $0 in
5443  *[\\/]* ) as_myself=$0 ;;
5444  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447  IFS=$as_save_IFS
5448  test -z "$as_dir" && as_dir=.
5449  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5450done
5451IFS=$as_save_IFS
5452
5453     ;;
5454esac
5455# We did not find ourselves, most probably we were run as `sh COMMAND'
5456# in which case we are not to be found in the path.
5457if test "x$as_myself" = x; then
5458  as_myself=$0
5459fi
5460if test ! -f "$as_myself"; then
5461  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5462  { (exit 1); exit 1; }
5463fi
5464
5465# Work around bugs in pre-3.0 UWIN ksh.
5466for as_var in ENV MAIL MAILPATH
5467do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5468done
5469PS1='$ '
5470PS2='> '
5471PS4='+ '
5472
5473# NLS nuisances.
5474for as_var in \
5475  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5476  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5477  LC_TELEPHONE LC_TIME
5478do
5479  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5480    eval $as_var=C; export $as_var
5481  else
5482    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5483  fi
5484done
5485
5486# Required to use basename.
5487if expr a : '\(a\)' >/dev/null 2>&1 &&
5488   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5489  as_expr=expr
5490else
5491  as_expr=false
5492fi
5493
5494if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5495  as_basename=basename
5496else
5497  as_basename=false
5498fi
5499
5500
5501# Name of the executable.
5502as_me=`$as_basename -- "$0" ||
5503$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5504	 X"$0" : 'X\(//\)$' \| \
5505	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5506echo X/"$0" |
5507    sed '/^.*\/\([^/][^/]*\)\/*$/{
5508	    s//\1/
5509	    q
5510	  }
5511	  /^X\/\(\/\/\)$/{
5512	    s//\1/
5513	    q
5514	  }
5515	  /^X\/\(\/\).*/{
5516	    s//\1/
5517	    q
5518	  }
5519	  s/.*/./; q'`
5520
5521# CDPATH.
5522$as_unset CDPATH
5523
5524
5525
5526  as_lineno_1=$LINENO
5527  as_lineno_2=$LINENO
5528  test "x$as_lineno_1" != "x$as_lineno_2" &&
5529  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5530
5531  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5532  # uniformly replaced by the line number.  The first 'sed' inserts a
5533  # line-number line after each line using $LINENO; the second 'sed'
5534  # does the real work.  The second script uses 'N' to pair each
5535  # line-number line with the line containing $LINENO, and appends
5536  # trailing '-' during substitution so that $LINENO is not a special
5537  # case at line end.
5538  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5539  # scripts with optimization help from Paolo Bonzini.  Blame Lee
5540  # E. McMahon (1931-1989) for sed's syntax.  :-)
5541  sed -n '
5542    p
5543    /[$]LINENO/=
5544  ' <$as_myself |
5545    sed '
5546      s/[$]LINENO.*/&-/
5547      t lineno
5548      b
5549      :lineno
5550      N
5551      :loop
5552      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5553      t loop
5554      s/-\n.*//
5555    ' >$as_me.lineno &&
5556  chmod +x "$as_me.lineno" ||
5557    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5558   { (exit 1); exit 1; }; }
5559
5560  # Don't try to exec as it changes $[0], causing all sort of problems
5561  # (the dirname of $[0] is not the place where we might find the
5562  # original and so on.  Autoconf is especially sensitive to this).
5563  . "./$as_me.lineno"
5564  # Exit status is that of the last command.
5565  exit
5566}
5567
5568
5569if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5570  as_dirname=dirname
5571else
5572  as_dirname=false
5573fi
5574
5575ECHO_C= ECHO_N= ECHO_T=
5576case `echo -n x` in
5577-n*)
5578  case `echo 'x\c'` in
5579  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5580  *)   ECHO_C='\c';;
5581  esac;;
5582*)
5583  ECHO_N='-n';;
5584esac
5585
5586if expr a : '\(a\)' >/dev/null 2>&1 &&
5587   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5588  as_expr=expr
5589else
5590  as_expr=false
5591fi
5592
5593rm -f conf$$ conf$$.exe conf$$.file
5594if test -d conf$$.dir; then
5595  rm -f conf$$.dir/conf$$.file
5596else
5597  rm -f conf$$.dir
5598  mkdir conf$$.dir
5599fi
5600echo >conf$$.file
5601if ln -s conf$$.file conf$$ 2>/dev/null; then
5602  as_ln_s='ln -s'
5603  # ... but there are two gotchas:
5604  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5605  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5606  # In both cases, we have to default to `cp -p'.
5607  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5608    as_ln_s='cp -p'
5609elif ln conf$$.file conf$$ 2>/dev/null; then
5610  as_ln_s=ln
5611else
5612  as_ln_s='cp -p'
5613fi
5614rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5615rmdir conf$$.dir 2>/dev/null
5616
5617if mkdir -p . 2>/dev/null; then
5618  as_mkdir_p=:
5619else
5620  test -d ./-p && rmdir ./-p
5621  as_mkdir_p=false
5622fi
5623
5624if test -x / >/dev/null 2>&1; then
5625  as_test_x='test -x'
5626else
5627  if ls -dL / >/dev/null 2>&1; then
5628    as_ls_L_option=L
5629  else
5630    as_ls_L_option=
5631  fi
5632  as_test_x='
5633    eval sh -c '\''
5634      if test -d "$1"; then
5635        test -d "$1/.";
5636      else
5637	case $1 in
5638        -*)set "./$1";;
5639	esac;
5640	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5641	???[sx]*):;;*)false;;esac;fi
5642    '\'' sh
5643  '
5644fi
5645as_executable_p=$as_test_x
5646
5647# Sed expression to map a string onto a valid CPP name.
5648as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5649
5650# Sed expression to map a string onto a valid variable name.
5651as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5652
5653
5654exec 6>&1
5655
5656# Save the log message, to keep $[0] and so on meaningful, and to
5657# report actual input values of CONFIG_FILES etc. instead of their
5658# values after options handling.
5659ac_log="
5660This file was extended by $as_me, which was
5661generated by GNU Autoconf 2.61.  Invocation command line was
5662
5663  CONFIG_FILES    = $CONFIG_FILES
5664  CONFIG_HEADERS  = $CONFIG_HEADERS
5665  CONFIG_LINKS    = $CONFIG_LINKS
5666  CONFIG_COMMANDS = $CONFIG_COMMANDS
5667  $ $0 $@
5668
5669on `(hostname || uname -n) 2>/dev/null | sed 1q`
5670"
5671
5672_ACEOF
5673
5674cat >>$CONFIG_STATUS <<_ACEOF
5675# Files that config.status was made for.
5676config_files="$ac_config_files"
5677config_headers="$ac_config_headers"
5678
5679_ACEOF
5680
5681cat >>$CONFIG_STATUS <<\_ACEOF
5682ac_cs_usage="\
5683\`$as_me' instantiates files from templates according to the
5684current configuration.
5685
5686Usage: $0 [OPTIONS] [FILE]...
5687
5688  -h, --help       print this help, then exit
5689  -V, --version    print version number and configuration settings, then exit
5690  -q, --quiet      do not print progress messages
5691  -d, --debug      don't remove temporary files
5692      --recheck    update $as_me by reconfiguring in the same conditions
5693  --file=FILE[:TEMPLATE]
5694		   instantiate the configuration file FILE
5695  --header=FILE[:TEMPLATE]
5696		   instantiate the configuration header FILE
5697
5698Configuration files:
5699$config_files
5700
5701Configuration headers:
5702$config_headers
5703
5704Report bugs to <bug-autoconf@gnu.org>."
5705
5706_ACEOF
5707cat >>$CONFIG_STATUS <<_ACEOF
5708ac_cs_version="\\
5709config.status
5710configured by $0, generated by GNU Autoconf 2.61,
5711  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5712
5713Copyright (C) 2006 Free Software Foundation, Inc.
5714This config.status script is free software; the Free Software Foundation
5715gives unlimited permission to copy, distribute and modify it."
5716
5717ac_pwd='$ac_pwd'
5718srcdir='$srcdir'
5719_ACEOF
5720
5721cat >>$CONFIG_STATUS <<\_ACEOF
5722# If no file are specified by the user, then we need to provide default
5723# value.  By we need to know if files were specified by the user.
5724ac_need_defaults=:
5725while test $# != 0
5726do
5727  case $1 in
5728  --*=*)
5729    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5730    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5731    ac_shift=:
5732    ;;
5733  *)
5734    ac_option=$1
5735    ac_optarg=$2
5736    ac_shift=shift
5737    ;;
5738  esac
5739
5740  case $ac_option in
5741  # Handling of the options.
5742  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5743    ac_cs_recheck=: ;;
5744  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5745    echo "$ac_cs_version"; exit ;;
5746  --debug | --debu | --deb | --de | --d | -d )
5747    debug=: ;;
5748  --file | --fil | --fi | --f )
5749    $ac_shift
5750    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5751    ac_need_defaults=false;;
5752  --header | --heade | --head | --hea )
5753    $ac_shift
5754    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5755    ac_need_defaults=false;;
5756  --he | --h)
5757    # Conflict between --help and --header
5758    { echo "$as_me: error: ambiguous option: $1
5759Try \`$0 --help' for more information." >&2
5760   { (exit 1); exit 1; }; };;
5761  --help | --hel | -h )
5762    echo "$ac_cs_usage"; exit ;;
5763  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5764  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5765    ac_cs_silent=: ;;
5766
5767  # This is an error.
5768  -*) { echo "$as_me: error: unrecognized option: $1
5769Try \`$0 --help' for more information." >&2
5770   { (exit 1); exit 1; }; } ;;
5771
5772  *) ac_config_targets="$ac_config_targets $1"
5773     ac_need_defaults=false ;;
5774
5775  esac
5776  shift
5777done
5778
5779ac_configure_extra_args=
5780
5781if $ac_cs_silent; then
5782  exec 6>/dev/null
5783  ac_configure_extra_args="$ac_configure_extra_args --silent"
5784fi
5785
5786_ACEOF
5787cat >>$CONFIG_STATUS <<_ACEOF
5788if \$ac_cs_recheck; then
5789  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5790  CONFIG_SHELL=$SHELL
5791  export CONFIG_SHELL
5792  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5793fi
5794
5795_ACEOF
5796cat >>$CONFIG_STATUS <<\_ACEOF
5797exec 5>>config.log
5798{
5799  echo
5800  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5801## Running $as_me. ##
5802_ASBOX
5803  echo "$ac_log"
5804} >&5
5805
5806_ACEOF
5807cat >>$CONFIG_STATUS <<_ACEOF
5808_ACEOF
5809
5810cat >>$CONFIG_STATUS <<\_ACEOF
5811
5812# Handling of arguments.
5813for ac_config_target in $ac_config_targets
5814do
5815  case $ac_config_target in
5816    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5817    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5818
5819  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5820echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5821   { (exit 1); exit 1; }; };;
5822  esac
5823done
5824
5825
5826# If the user did not use the arguments to specify the items to instantiate,
5827# then the envvar interface is used.  Set only those that are not.
5828# We use the long form for the default assignment because of an extremely
5829# bizarre bug on SunOS 4.1.3.
5830if $ac_need_defaults; then
5831  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5832  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5833fi
5834
5835# Have a temporary directory for convenience.  Make it in the build tree
5836# simply because there is no reason against having it here, and in addition,
5837# creating and moving files from /tmp can sometimes cause problems.
5838# Hook for its removal unless debugging.
5839# Note that there is a small window in which the directory will not be cleaned:
5840# after its creation but before its name has been assigned to `$tmp'.
5841$debug ||
5842{
5843  tmp=
5844  trap 'exit_status=$?
5845  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5846' 0
5847  trap '{ (exit 1); exit 1; }' 1 2 13 15
5848}
5849# Create a (secure) tmp directory for tmp files.
5850
5851{
5852  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5853  test -n "$tmp" && test -d "$tmp"
5854}  ||
5855{
5856  tmp=./conf$$-$RANDOM
5857  (umask 077 && mkdir "$tmp")
5858} ||
5859{
5860   echo "$me: cannot create a temporary directory in ." >&2
5861   { (exit 1); exit 1; }
5862}
5863
5864#
5865# Set up the sed scripts for CONFIG_FILES section.
5866#
5867
5868# No need to generate the scripts if there are no CONFIG_FILES.
5869# This happens for instance when ./config.status config.h
5870if test -n "$CONFIG_FILES"; then
5871
5872_ACEOF
5873
5874
5875
5876ac_delim='%!_!# '
5877for ac_last_try in false false false false false :; do
5878  cat >conf$$subs.sed <<_ACEOF
5879SHELL!$SHELL$ac_delim
5880PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5881PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5882PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5883PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5884PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5885PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5886exec_prefix!$exec_prefix$ac_delim
5887prefix!$prefix$ac_delim
5888program_transform_name!$program_transform_name$ac_delim
5889bindir!$bindir$ac_delim
5890sbindir!$sbindir$ac_delim
5891libexecdir!$libexecdir$ac_delim
5892datarootdir!$datarootdir$ac_delim
5893datadir!$datadir$ac_delim
5894sysconfdir!$sysconfdir$ac_delim
5895sharedstatedir!$sharedstatedir$ac_delim
5896localstatedir!$localstatedir$ac_delim
5897includedir!$includedir$ac_delim
5898oldincludedir!$oldincludedir$ac_delim
5899docdir!$docdir$ac_delim
5900infodir!$infodir$ac_delim
5901htmldir!$htmldir$ac_delim
5902dvidir!$dvidir$ac_delim
5903pdfdir!$pdfdir$ac_delim
5904psdir!$psdir$ac_delim
5905libdir!$libdir$ac_delim
5906localedir!$localedir$ac_delim
5907mandir!$mandir$ac_delim
5908DEFS!$DEFS$ac_delim
5909ECHO_C!$ECHO_C$ac_delim
5910ECHO_N!$ECHO_N$ac_delim
5911ECHO_T!$ECHO_T$ac_delim
5912LIBS!$LIBS$ac_delim
5913build_alias!$build_alias$ac_delim
5914host_alias!$host_alias$ac_delim
5915target_alias!$target_alias$ac_delim
5916YACC!$YACC$ac_delim
5917YFLAGS!$YFLAGS$ac_delim
5918LEX!$LEX$ac_delim
5919LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
5920CXX!$CXX$ac_delim
5921CXXFLAGS!$CXXFLAGS$ac_delim
5922LDFLAGS!$LDFLAGS$ac_delim
5923CPPFLAGS!$CPPFLAGS$ac_delim
5924ac_ct_CXX!$ac_ct_CXX$ac_delim
5925EXEEXT!$EXEEXT$ac_delim
5926OBJEXT!$OBJEXT$ac_delim
5927LEXLIB!$LEXLIB$ac_delim
5928LN_S!$LN_S$ac_delim
5929XMKMF!$XMKMF$ac_delim
5930CXXCPP!$CXXCPP$ac_delim
5931X_CFLAGS!$X_CFLAGS$ac_delim
5932X_PRE_LIBS!$X_PRE_LIBS$ac_delim
5933X_LIBS!$X_LIBS$ac_delim
5934X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
5935GREP!$GREP$ac_delim
5936EGREP!$EGREP$ac_delim
5937CFLAGS_W!$CFLAGS_W$ac_delim
5938LIBOBJS!$LIBOBJS$ac_delim
5939LTLIBOBJS!$LTLIBOBJS$ac_delim
5940_ACEOF
5941
5942  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 61; then
5943    break
5944  elif $ac_last_try; then
5945    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5946echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5947   { (exit 1); exit 1; }; }
5948  else
5949    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5950  fi
5951done
5952
5953ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5954if test -n "$ac_eof"; then
5955  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5956  ac_eof=`expr $ac_eof + 1`
5957fi
5958
5959cat >>$CONFIG_STATUS <<_ACEOF
5960cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5961/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5962_ACEOF
5963sed '
5964s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5965s/^/s,@/; s/!/@,|#_!!_#|/
5966:n
5967t n
5968s/'"$ac_delim"'$/,g/; t
5969s/$/\\/; p
5970N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5971' >>$CONFIG_STATUS <conf$$subs.sed
5972rm -f conf$$subs.sed
5973cat >>$CONFIG_STATUS <<_ACEOF
5974:end
5975s/|#_!!_#|//g
5976CEOF$ac_eof
5977_ACEOF
5978
5979
5980# VPATH may cause trouble with some makes, so we remove $(srcdir),
5981# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5982# trailing colons and then remove the whole line if VPATH becomes empty
5983# (actually we leave an empty line to preserve line numbers).
5984if test "x$srcdir" = x.; then
5985  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5986s/:*\$(srcdir):*/:/
5987s/:*\${srcdir}:*/:/
5988s/:*@srcdir@:*/:/
5989s/^\([^=]*=[	 ]*\):*/\1/
5990s/:*$//
5991s/^[^=]*=[	 ]*$//
5992}'
5993fi
5994
5995cat >>$CONFIG_STATUS <<\_ACEOF
5996fi # test -n "$CONFIG_FILES"
5997
5998
5999for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
6000do
6001  case $ac_tag in
6002  :[FHLC]) ac_mode=$ac_tag; continue;;
6003  esac
6004  case $ac_mode$ac_tag in
6005  :[FHL]*:*);;
6006  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6007echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6008   { (exit 1); exit 1; }; };;
6009  :[FH]-) ac_tag=-:-;;
6010  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6011  esac
6012  ac_save_IFS=$IFS
6013  IFS=:
6014  set x $ac_tag
6015  IFS=$ac_save_IFS
6016  shift
6017  ac_file=$1
6018  shift
6019
6020  case $ac_mode in
6021  :L) ac_source=$1;;
6022  :[FH])
6023    ac_file_inputs=
6024    for ac_f
6025    do
6026      case $ac_f in
6027      -) ac_f="$tmp/stdin";;
6028      *) # Look for the file first in the build tree, then in the source tree
6029	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6030	 # because $ac_f cannot contain `:'.
6031	 test -f "$ac_f" ||
6032	   case $ac_f in
6033	   [\\/$]*) false;;
6034	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6035	   esac ||
6036	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6037echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6038   { (exit 1); exit 1; }; };;
6039      esac
6040      ac_file_inputs="$ac_file_inputs $ac_f"
6041    done
6042
6043    # Let's still pretend it is `configure' which instantiates (i.e., don't
6044    # use $as_me), people would be surprised to read:
6045    #    /* config.h.  Generated by config.status.  */
6046    configure_input="Generated from "`IFS=:
6047	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6048    if test x"$ac_file" != x-; then
6049      configure_input="$ac_file.  $configure_input"
6050      { echo "$as_me:$LINENO: creating $ac_file" >&5
6051echo "$as_me: creating $ac_file" >&6;}
6052    fi
6053
6054    case $ac_tag in
6055    *:-:* | *:-) cat >"$tmp/stdin";;
6056    esac
6057    ;;
6058  esac
6059
6060  ac_dir=`$as_dirname -- "$ac_file" ||
6061$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6062	 X"$ac_file" : 'X\(//\)[^/]' \| \
6063	 X"$ac_file" : 'X\(//\)$' \| \
6064	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6065echo X"$ac_file" |
6066    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6067	    s//\1/
6068	    q
6069	  }
6070	  /^X\(\/\/\)[^/].*/{
6071	    s//\1/
6072	    q
6073	  }
6074	  /^X\(\/\/\)$/{
6075	    s//\1/
6076	    q
6077	  }
6078	  /^X\(\/\).*/{
6079	    s//\1/
6080	    q
6081	  }
6082	  s/.*/./; q'`
6083  { as_dir="$ac_dir"
6084  case $as_dir in #(
6085  -*) as_dir=./$as_dir;;
6086  esac
6087  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6088    as_dirs=
6089    while :; do
6090      case $as_dir in #(
6091      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6092      *) as_qdir=$as_dir;;
6093      esac
6094      as_dirs="'$as_qdir' $as_dirs"
6095      as_dir=`$as_dirname -- "$as_dir" ||
6096$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6097	 X"$as_dir" : 'X\(//\)[^/]' \| \
6098	 X"$as_dir" : 'X\(//\)$' \| \
6099	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6100echo X"$as_dir" |
6101    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6102	    s//\1/
6103	    q
6104	  }
6105	  /^X\(\/\/\)[^/].*/{
6106	    s//\1/
6107	    q
6108	  }
6109	  /^X\(\/\/\)$/{
6110	    s//\1/
6111	    q
6112	  }
6113	  /^X\(\/\).*/{
6114	    s//\1/
6115	    q
6116	  }
6117	  s/.*/./; q'`
6118      test -d "$as_dir" && break
6119    done
6120    test -z "$as_dirs" || eval "mkdir $as_dirs"
6121  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6122echo "$as_me: error: cannot create directory $as_dir" >&2;}
6123   { (exit 1); exit 1; }; }; }
6124  ac_builddir=.
6125
6126case "$ac_dir" in
6127.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6128*)
6129  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6130  # A ".." for each directory in $ac_dir_suffix.
6131  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6132  case $ac_top_builddir_sub in
6133  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6134  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6135  esac ;;
6136esac
6137ac_abs_top_builddir=$ac_pwd
6138ac_abs_builddir=$ac_pwd$ac_dir_suffix
6139# for backward compatibility:
6140ac_top_builddir=$ac_top_build_prefix
6141
6142case $srcdir in
6143  .)  # We are building in place.
6144    ac_srcdir=.
6145    ac_top_srcdir=$ac_top_builddir_sub
6146    ac_abs_top_srcdir=$ac_pwd ;;
6147  [\\/]* | ?:[\\/]* )  # Absolute name.
6148    ac_srcdir=$srcdir$ac_dir_suffix;
6149    ac_top_srcdir=$srcdir
6150    ac_abs_top_srcdir=$srcdir ;;
6151  *) # Relative name.
6152    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6153    ac_top_srcdir=$ac_top_build_prefix$srcdir
6154    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6155esac
6156ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6157
6158
6159  case $ac_mode in
6160  :F)
6161  #
6162  # CONFIG_FILE
6163  #
6164
6165_ACEOF
6166
6167cat >>$CONFIG_STATUS <<\_ACEOF
6168# If the template does not know about datarootdir, expand it.
6169# FIXME: This hack should be removed a few years after 2.60.
6170ac_datarootdir_hack=; ac_datarootdir_seen=
6171
6172case `sed -n '/datarootdir/ {
6173  p
6174  q
6175}
6176/@datadir@/p
6177/@docdir@/p
6178/@infodir@/p
6179/@localedir@/p
6180/@mandir@/p
6181' $ac_file_inputs` in
6182*datarootdir*) ac_datarootdir_seen=yes;;
6183*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6184  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6185echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6186_ACEOF
6187cat >>$CONFIG_STATUS <<_ACEOF
6188  ac_datarootdir_hack='
6189  s&@datadir@&$datadir&g
6190  s&@docdir@&$docdir&g
6191  s&@infodir@&$infodir&g
6192  s&@localedir@&$localedir&g
6193  s&@mandir@&$mandir&g
6194    s&\\\${datarootdir}&$datarootdir&g' ;;
6195esac
6196_ACEOF
6197
6198# Neutralize VPATH when `$srcdir' = `.'.
6199# Shell code in configure.ac might set extrasub.
6200# FIXME: do we really want to maintain this feature?
6201cat >>$CONFIG_STATUS <<_ACEOF
6202  sed "$ac_vpsub
6203$extrasub
6204_ACEOF
6205cat >>$CONFIG_STATUS <<\_ACEOF
6206:t
6207/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6208s&@configure_input@&$configure_input&;t t
6209s&@top_builddir@&$ac_top_builddir_sub&;t t
6210s&@srcdir@&$ac_srcdir&;t t
6211s&@abs_srcdir@&$ac_abs_srcdir&;t t
6212s&@top_srcdir@&$ac_top_srcdir&;t t
6213s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6214s&@builddir@&$ac_builddir&;t t
6215s&@abs_builddir@&$ac_abs_builddir&;t t
6216s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6217$ac_datarootdir_hack
6218" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6219
6220test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6221  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6222  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6223  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6224which seems to be undefined.  Please make sure it is defined." >&5
6225echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6226which seems to be undefined.  Please make sure it is defined." >&2;}
6227
6228  rm -f "$tmp/stdin"
6229  case $ac_file in
6230  -) cat "$tmp/out"; rm -f "$tmp/out";;
6231  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6232  esac
6233 ;;
6234  :H)
6235  #
6236  # CONFIG_HEADER
6237  #
6238_ACEOF
6239
6240# Transform confdefs.h into a sed script `conftest.defines', that
6241# substitutes the proper values into config.h.in to produce config.h.
6242rm -f conftest.defines conftest.tail
6243# First, append a space to every undef/define line, to ease matching.
6244echo 's/$/ /' >conftest.defines
6245# Then, protect against being on the right side of a sed subst, or in
6246# an unquoted here document, in config.status.  If some macros were
6247# called several times there might be several #defines for the same
6248# symbol, which is useless.  But do not sort them, since the last
6249# AC_DEFINE must be honored.
6250ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6251# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6252# NAME is the cpp macro being defined, VALUE is the value it is being given.
6253# PARAMS is the parameter list in the macro definition--in most cases, it's
6254# just an empty string.
6255ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
6256ac_dB='\\)[	 (].*,\\1define\\2'
6257ac_dC=' '
6258ac_dD=' ,'
6259
6260uniq confdefs.h |
6261  sed -n '
6262	t rset
6263	:rset
6264	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
6265	t ok
6266	d
6267	:ok
6268	s/[\\&,]/\\&/g
6269	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6270	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6271  ' >>conftest.defines
6272
6273# Remove the space that was appended to ease matching.
6274# Then replace #undef with comments.  This is necessary, for
6275# example, in the case of _POSIX_SOURCE, which is predefined and required
6276# on some systems where configure will not decide to define it.
6277# (The regexp can be short, since the line contains either #define or #undef.)
6278echo 's/ $//
6279s,^[	 #]*u.*,/* & */,' >>conftest.defines
6280
6281# Break up conftest.defines:
6282ac_max_sed_lines=50
6283
6284# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6285# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6286# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6287# et cetera.
6288ac_in='$ac_file_inputs'
6289ac_out='"$tmp/out1"'
6290ac_nxt='"$tmp/out2"'
6291
6292while :
6293do
6294  # Write a here document:
6295    cat >>$CONFIG_STATUS <<_ACEOF
6296    # First, check the format of the line:
6297    cat >"\$tmp/defines.sed" <<\\CEOF
6298/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
6299/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
6300b
6301:def
6302_ACEOF
6303  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6304  echo 'CEOF
6305    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6306  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6307  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6308  grep . conftest.tail >/dev/null || break
6309  rm -f conftest.defines
6310  mv conftest.tail conftest.defines
6311done
6312rm -f conftest.defines conftest.tail
6313
6314echo "ac_result=$ac_in" >>$CONFIG_STATUS
6315cat >>$CONFIG_STATUS <<\_ACEOF
6316  if test x"$ac_file" != x-; then
6317    echo "/* $configure_input  */" >"$tmp/config.h"
6318    cat "$ac_result" >>"$tmp/config.h"
6319    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6320      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6321echo "$as_me: $ac_file is unchanged" >&6;}
6322    else
6323      rm -f $ac_file
6324      mv "$tmp/config.h" $ac_file
6325    fi
6326  else
6327    echo "/* $configure_input  */"
6328    cat "$ac_result"
6329  fi
6330  rm -f "$tmp/out12"
6331 ;;
6332
6333
6334  esac
6335
6336done # for ac_tag
6337
6338
6339{ (exit 0); exit 0; }
6340_ACEOF
6341chmod +x $CONFIG_STATUS
6342ac_clean_files=$ac_clean_files_save
6343
6344
6345# configure is writing to config.log, and then calls config.status.
6346# config.status does its own redirection, appending to config.log.
6347# Unfortunately, on DOS this fails, as config.log is still kept open
6348# by configure, so config.status won't be able to write to it; its
6349# output is simply discarded.  So we exec the FD to /dev/null,
6350# effectively closing config.log, so it can be properly (re)opened and
6351# appended to by config.status.  When coming back to configure, we
6352# need to make the FD available again.
6353if test "$no_create" != yes; then
6354  ac_cs_success=:
6355  ac_config_status_args=
6356  test "$silent" = yes &&
6357    ac_config_status_args="$ac_config_status_args --quiet"
6358  exec 5>/dev/null
6359  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6360  exec 5>>config.log
6361  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6362  # would make configure fail if this is the last instruction.
6363  $ac_cs_success || { (exit 1); exit 1; }
6364fi
6365
6366
6367chmod -w Makefile
6368chmod -w config.h
6369