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