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