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="rlfe.c"
275ac_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 VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK WRITEPATH XTERMPATH LIBOBJS LTLIBOBJS'
276ac_subst_files=''
277
278# Initialize some variables set by options.
279ac_init_help=
280ac_init_version=false
281# The variables have the same names as the options, with
282# dashes changed to underlines.
283cache_file=/dev/null
284exec_prefix=NONE
285no_create=
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
294verbose=
295x_includes=NONE
296x_libraries=NONE
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
315
316ac_prev=
317for ac_option
318do
319  # If the previous option needs an argument, assign it.
320  if test -n "$ac_prev"; then
321    eval "$ac_prev=\$ac_option"
322    ac_prev=
323    continue
324  fi
325
326  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328  # Accept the important Cygnus configure options, so we can diagnose typos.
329
330  case $ac_option in
331
332  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333    ac_prev=bindir ;;
334  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335    bindir=$ac_optarg ;;
336
337  -build | --build | --buil | --bui | --bu)
338    ac_prev=build_alias ;;
339  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340    build_alias=$ac_optarg ;;
341
342  -cache-file | --cache-file | --cache-fil | --cache-fi \
343  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344    ac_prev=cache_file ;;
345  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347    cache_file=$ac_optarg ;;
348
349  --config-cache | -C)
350    cache_file=config.cache ;;
351
352  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353    ac_prev=datadir ;;
354  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355  | --da=*)
356    datadir=$ac_optarg ;;
357
358  -disable-* | --disable-*)
359    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360    # Reject names that are not valid shell variable names.
361    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363   { (exit 1); exit 1; }; }
364    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365    eval "enable_$ac_feature=no" ;;
366
367  -enable-* | --enable-*)
368    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369    # Reject names that are not valid shell variable names.
370    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372   { (exit 1); exit 1; }; }
373    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374    case $ac_option in
375      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376      *) ac_optarg=yes ;;
377    esac
378    eval "enable_$ac_feature='$ac_optarg'" ;;
379
380  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382  | --exec | --exe | --ex)
383    ac_prev=exec_prefix ;;
384  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386  | --exec=* | --exe=* | --ex=*)
387    exec_prefix=$ac_optarg ;;
388
389  -gas | --gas | --ga | --g)
390    # Obsolete; use --with-gas.
391    with_gas=yes ;;
392
393  -help | --help | --hel | --he | -h)
394    ac_init_help=long ;;
395  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396    ac_init_help=recursive ;;
397  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398    ac_init_help=short ;;
399
400  -host | --host | --hos | --ho)
401    ac_prev=host_alias ;;
402  -host=* | --host=* | --hos=* | --ho=*)
403    host_alias=$ac_optarg ;;
404
405  -includedir | --includedir | --includedi | --included | --include \
406  | --includ | --inclu | --incl | --inc)
407    ac_prev=includedir ;;
408  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409  | --includ=* | --inclu=* | --incl=* | --inc=*)
410    includedir=$ac_optarg ;;
411
412  -infodir | --infodir | --infodi | --infod | --info | --inf)
413    ac_prev=infodir ;;
414  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415    infodir=$ac_optarg ;;
416
417  -libdir | --libdir | --libdi | --libd)
418    ac_prev=libdir ;;
419  -libdir=* | --libdir=* | --libdi=* | --libd=*)
420    libdir=$ac_optarg ;;
421
422  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423  | --libexe | --libex | --libe)
424    ac_prev=libexecdir ;;
425  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426  | --libexe=* | --libex=* | --libe=*)
427    libexecdir=$ac_optarg ;;
428
429  -localstatedir | --localstatedir | --localstatedi | --localstated \
430  | --localstate | --localstat | --localsta | --localst \
431  | --locals | --local | --loca | --loc | --lo)
432    ac_prev=localstatedir ;;
433  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436    localstatedir=$ac_optarg ;;
437
438  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439    ac_prev=mandir ;;
440  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441    mandir=$ac_optarg ;;
442
443  -nfp | --nfp | --nf)
444    # Obsolete; use --without-fp.
445    with_fp=no ;;
446
447  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448  | --no-cr | --no-c | -n)
449    no_create=yes ;;
450
451  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453    no_recursion=yes ;;
454
455  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457  | --oldin | --oldi | --old | --ol | --o)
458    ac_prev=oldincludedir ;;
459  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462    oldincludedir=$ac_optarg ;;
463
464  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465    ac_prev=prefix ;;
466  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467    prefix=$ac_optarg ;;
468
469  -program-prefix | --program-prefix | --program-prefi | --program-pref \
470  | --program-pre | --program-pr | --program-p)
471    ac_prev=program_prefix ;;
472  -program-prefix=* | --program-prefix=* | --program-prefi=* \
473  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474    program_prefix=$ac_optarg ;;
475
476  -program-suffix | --program-suffix | --program-suffi | --program-suff \
477  | --program-suf | --program-su | --program-s)
478    ac_prev=program_suffix ;;
479  -program-suffix=* | --program-suffix=* | --program-suffi=* \
480  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481    program_suffix=$ac_optarg ;;
482
483  -program-transform-name | --program-transform-name \
484  | --program-transform-nam | --program-transform-na \
485  | --program-transform-n | --program-transform- \
486  | --program-transform | --program-transfor \
487  | --program-transfo | --program-transf \
488  | --program-trans | --program-tran \
489  | --progr-tra | --program-tr | --program-t)
490    ac_prev=program_transform_name ;;
491  -program-transform-name=* | --program-transform-name=* \
492  | --program-transform-nam=* | --program-transform-na=* \
493  | --program-transform-n=* | --program-transform-=* \
494  | --program-transform=* | --program-transfor=* \
495  | --program-transfo=* | --program-transf=* \
496  | --program-trans=* | --program-tran=* \
497  | --progr-tra=* | --program-tr=* | --program-t=*)
498    program_transform_name=$ac_optarg ;;
499
500  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501  | -silent | --silent | --silen | --sile | --sil)
502    silent=yes ;;
503
504  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505    ac_prev=sbindir ;;
506  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507  | --sbi=* | --sb=*)
508    sbindir=$ac_optarg ;;
509
510  -sharedstatedir | --sharedstatedir | --sharedstatedi \
511  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512  | --sharedst | --shareds | --shared | --share | --shar \
513  | --sha | --sh)
514    ac_prev=sharedstatedir ;;
515  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518  | --sha=* | --sh=*)
519    sharedstatedir=$ac_optarg ;;
520
521  -site | --site | --sit)
522    ac_prev=site ;;
523  -site=* | --site=* | --sit=*)
524    site=$ac_optarg ;;
525
526  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527    ac_prev=srcdir ;;
528  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529    srcdir=$ac_optarg ;;
530
531  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532  | --syscon | --sysco | --sysc | --sys | --sy)
533    ac_prev=sysconfdir ;;
534  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536    sysconfdir=$ac_optarg ;;
537
538  -target | --target | --targe | --targ | --tar | --ta | --t)
539    ac_prev=target_alias ;;
540  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541    target_alias=$ac_optarg ;;
542
543  -v | -verbose | --verbose | --verbos | --verbo | --verb)
544    verbose=yes ;;
545
546  -version | --version | --versio | --versi | --vers | -V)
547    ac_init_version=: ;;
548
549  -with-* | --with-*)
550    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid package name: $ac_package" >&2
554   { (exit 1); exit 1; }; }
555    ac_package=`echo $ac_package| sed 's/-/_/g'`
556    case $ac_option in
557      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558      *) ac_optarg=yes ;;
559    esac
560    eval "with_$ac_package='$ac_optarg'" ;;
561
562  -without-* | --without-*)
563    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid package name: $ac_package" >&2
567   { (exit 1); exit 1; }; }
568    ac_package=`echo $ac_package | sed 's/-/_/g'`
569    eval "with_$ac_package=no" ;;
570
571  --x)
572    # Obsolete; use --with-x.
573    with_x=yes ;;
574
575  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576  | --x-incl | --x-inc | --x-in | --x-i)
577    ac_prev=x_includes ;;
578  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580    x_includes=$ac_optarg ;;
581
582  -x-libraries | --x-libraries | --x-librarie | --x-librari \
583  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584    ac_prev=x_libraries ;;
585  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587    x_libraries=$ac_optarg ;;
588
589  -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591   { (exit 1); exit 1; }; }
592    ;;
593
594  *=*)
595    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596    # Reject names that are not valid shell variable names.
597    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599   { (exit 1); exit 1; }; }
600    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601    eval "$ac_envvar='$ac_optarg'"
602    export $ac_envvar ;;
603
604  *)
605    # FIXME: should be removed in autoconf 3.0.
606    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610    ;;
611
612  esac
613done
614
615if test -n "$ac_prev"; then
616  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617  { echo "$as_me: error: missing argument to $ac_option" >&2
618   { (exit 1); exit 1; }; }
619fi
620
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624  eval ac_val=$`echo $ac_var`
625  case $ac_val in
626    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628   { (exit 1); exit 1; }; };;
629  esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634	      localstatedir libdir includedir oldincludedir infodir mandir
635do
636  eval ac_val=$`echo $ac_var`
637  case $ac_val in
638    [\\/$]* | ?:[\\/]* ) ;;
639    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640   { (exit 1); exit 1; }; };;
641  esac
642done
643
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
650
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653  if test "x$build_alias" = x; then
654    cross_compiling=maybe
655    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656    If a cross compiler is detected then cross compile mode will be used." >&2
657  elif test "x$build_alias" != "x$host_alias"; then
658    cross_compiling=yes
659  fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
666
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670  ac_srcdir_defaulted=yes
671  # Try the directory containing this script, then its parent.
672  ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674	 X"$0" : 'X\(//\)[^/]' \| \
675	 X"$0" : 'X\(//\)$' \| \
676	 X"$0" : 'X\(/\)' \| \
677	 .     : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681  	  /^X\(\/\/\)$/{ s//\1/; q; }
682  	  /^X\(\/\).*/{ s//\1/; q; }
683  	  s/.*/./; q'`
684  srcdir=$ac_confdir
685  if test ! -r $srcdir/$ac_unique_file; then
686    srcdir=..
687  fi
688else
689  ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692  if test "$ac_srcdir_defaulted" = yes; then
693    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694   { (exit 1); exit 1; }; }
695  else
696    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697   { (exit 1); exit 1; }; }
698  fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702   { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CPP_set=${CPP+set}
733ac_env_CPP_value=$CPP
734ac_cv_env_CPP_set=${CPP+set}
735ac_cv_env_CPP_value=$CPP
736
737#
738# Report the --help message.
739#
740if test "$ac_init_help" = "long"; then
741  # Omit some internal or obsolete options to make the list less imposing.
742  # This message is too long to be a string in the A/UX 3.1 sh.
743  cat <<_ACEOF
744\`configure' configures this package to adapt to many kinds of systems.
745
746Usage: $0 [OPTION]... [VAR=VALUE]...
747
748To assign environment variables (e.g., CC, CFLAGS...), specify them as
749VAR=VALUE.  See below for descriptions of some of the useful variables.
750
751Defaults for the options are specified in brackets.
752
753Configuration:
754  -h, --help              display this help and exit
755      --help=short        display options specific to this package
756      --help=recursive    display the short help of all the included packages
757  -V, --version           display version information and exit
758  -q, --quiet, --silent   do not print \`checking...' messages
759      --cache-file=FILE   cache test results in FILE [disabled]
760  -C, --config-cache      alias for \`--cache-file=config.cache'
761  -n, --no-create         do not create output files
762      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
763
764_ACEOF
765
766  cat <<_ACEOF
767Installation directories:
768  --prefix=PREFIX         install architecture-independent files in PREFIX
769			  [$ac_default_prefix]
770  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
771			  [PREFIX]
772
773By default, \`make install' will install all the files in
774\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
775an installation prefix other than \`$ac_default_prefix' using \`--prefix',
776for instance \`--prefix=\$HOME'.
777
778For better control, use the options below.
779
780Fine tuning of the installation directories:
781  --bindir=DIR           user executables [EPREFIX/bin]
782  --sbindir=DIR          system admin executables [EPREFIX/sbin]
783  --libexecdir=DIR       program executables [EPREFIX/libexec]
784  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
785  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
786  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
787  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
788  --libdir=DIR           object code libraries [EPREFIX/lib]
789  --includedir=DIR       C header files [PREFIX/include]
790  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
791  --infodir=DIR          info documentation [PREFIX/info]
792  --mandir=DIR           man documentation [PREFIX/man]
793_ACEOF
794
795  cat <<\_ACEOF
796_ACEOF
797fi
798
799if test -n "$ac_init_help"; then
800
801  cat <<\_ACEOF
802
803Optional Packages:
804  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
805  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
806  --with-pty-mode=mode    default mode for ptys
807  --with-pty-group=group  default group for ptys
808
809Some influential environment variables:
810  CC          C compiler command
811  CFLAGS      C compiler flags
812  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
813              nonstandard directory <lib dir>
814  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
815              headers in a nonstandard directory <include dir>
816  CPP         C preprocessor
817
818Use these variables to override the choices made by `configure' or to help
819it to find libraries and programs with nonstandard names/locations.
820
821_ACEOF
822fi
823
824if test "$ac_init_help" = "recursive"; then
825  # If there are subdirs, report their specific --help.
826  ac_popdir=`pwd`
827  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
828    test -d $ac_dir || continue
829    ac_builddir=.
830
831if test "$ac_dir" != .; then
832  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
833  # A "../" for each directory in $ac_dir_suffix.
834  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
835else
836  ac_dir_suffix= ac_top_builddir=
837fi
838
839case $srcdir in
840  .)  # No --srcdir option.  We are building in place.
841    ac_srcdir=.
842    if test -z "$ac_top_builddir"; then
843       ac_top_srcdir=.
844    else
845       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
846    fi ;;
847  [\\/]* | ?:[\\/]* )  # Absolute path.
848    ac_srcdir=$srcdir$ac_dir_suffix;
849    ac_top_srcdir=$srcdir ;;
850  *) # Relative path.
851    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
852    ac_top_srcdir=$ac_top_builddir$srcdir ;;
853esac
854
855# Do not use `cd foo && pwd` to compute absolute paths, because
856# the directories may not exist.
857case `pwd` in
858.) ac_abs_builddir="$ac_dir";;
859*)
860  case "$ac_dir" in
861  .) ac_abs_builddir=`pwd`;;
862  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
863  *) ac_abs_builddir=`pwd`/"$ac_dir";;
864  esac;;
865esac
866case $ac_abs_builddir in
867.) ac_abs_top_builddir=${ac_top_builddir}.;;
868*)
869  case ${ac_top_builddir}. in
870  .) ac_abs_top_builddir=$ac_abs_builddir;;
871  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
872  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
873  esac;;
874esac
875case $ac_abs_builddir in
876.) ac_abs_srcdir=$ac_srcdir;;
877*)
878  case $ac_srcdir in
879  .) ac_abs_srcdir=$ac_abs_builddir;;
880  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
881  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
882  esac;;
883esac
884case $ac_abs_builddir in
885.) ac_abs_top_srcdir=$ac_top_srcdir;;
886*)
887  case $ac_top_srcdir in
888  .) ac_abs_top_srcdir=$ac_abs_builddir;;
889  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
890  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
891  esac;;
892esac
893
894    cd $ac_dir
895    # Check for guested configure; otherwise get Cygnus style configure.
896    if test -f $ac_srcdir/configure.gnu; then
897      echo
898      $SHELL $ac_srcdir/configure.gnu  --help=recursive
899    elif test -f $ac_srcdir/configure; then
900      echo
901      $SHELL $ac_srcdir/configure  --help=recursive
902    elif test -f $ac_srcdir/configure.ac ||
903	   test -f $ac_srcdir/configure.in; then
904      echo
905      $ac_configure --help
906    else
907      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
908    fi
909    cd $ac_popdir
910  done
911fi
912
913test -n "$ac_init_help" && exit 0
914if $ac_init_version; then
915  cat <<\_ACEOF
916
917Copyright (C) 2003 Free Software Foundation, Inc.
918This configure script is free software; the Free Software Foundation
919gives unlimited permission to copy, distribute and modify it.
920_ACEOF
921  exit 0
922fi
923exec 5>config.log
924cat >&5 <<_ACEOF
925This file contains any messages produced by compilers while
926running configure, to aid debugging if configure makes a mistake.
927
928It was created by $as_me, which was
929generated by GNU Autoconf 2.59.  Invocation command line was
930
931  $ $0 $@
932
933_ACEOF
934{
935cat <<_ASUNAME
936## --------- ##
937## Platform. ##
938## --------- ##
939
940hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
941uname -m = `(uname -m) 2>/dev/null || echo unknown`
942uname -r = `(uname -r) 2>/dev/null || echo unknown`
943uname -s = `(uname -s) 2>/dev/null || echo unknown`
944uname -v = `(uname -v) 2>/dev/null || echo unknown`
945
946/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
947/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
948
949/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
950/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
951/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
952hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
953/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
954/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
955/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
956
957_ASUNAME
958
959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
960for as_dir in $PATH
961do
962  IFS=$as_save_IFS
963  test -z "$as_dir" && as_dir=.
964  echo "PATH: $as_dir"
965done
966
967} >&5
968
969cat >&5 <<_ACEOF
970
971
972## ----------- ##
973## Core tests. ##
974## ----------- ##
975
976_ACEOF
977
978
979# Keep a trace of the command line.
980# Strip out --no-create and --no-recursion so they do not pile up.
981# Strip out --silent because we don't want to record it for future runs.
982# Also quote any args containing shell meta-characters.
983# Make two passes to allow for proper duplicate-argument suppression.
984ac_configure_args=
985ac_configure_args0=
986ac_configure_args1=
987ac_sep=
988ac_must_keep_next=false
989for ac_pass in 1 2
990do
991  for ac_arg
992  do
993    case $ac_arg in
994    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
995    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
996    | -silent | --silent | --silen | --sile | --sil)
997      continue ;;
998    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
999      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1000    esac
1001    case $ac_pass in
1002    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1003    2)
1004      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1005      if test $ac_must_keep_next = true; then
1006	ac_must_keep_next=false # Got value, back to normal.
1007      else
1008	case $ac_arg in
1009	  *=* | --config-cache | -C | -disable-* | --disable-* \
1010	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1011	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1012	  | -with-* | --with-* | -without-* | --without-* | --x)
1013	    case "$ac_configure_args0 " in
1014	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1015	    esac
1016	    ;;
1017	  -* ) ac_must_keep_next=true ;;
1018	esac
1019      fi
1020      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1021      # Get rid of the leading space.
1022      ac_sep=" "
1023      ;;
1024    esac
1025  done
1026done
1027$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1028$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1029
1030# When interrupted or exit'd, cleanup temporary files, and complete
1031# config.log.  We remove comments because anyway the quotes in there
1032# would cause problems or look ugly.
1033# WARNING: Be sure not to use single quotes in there, as some shells,
1034# such as our DU 5.0 friend, will then `close' the trap.
1035trap 'exit_status=$?
1036  # Save into config.log some information that might help in debugging.
1037  {
1038    echo
1039
1040    cat <<\_ASBOX
1041## ---------------- ##
1042## Cache variables. ##
1043## ---------------- ##
1044_ASBOX
1045    echo
1046    # The following way of writing the cache mishandles newlines in values,
1047{
1048  (set) 2>&1 |
1049    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1050    *ac_space=\ *)
1051      sed -n \
1052	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1053	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1054      ;;
1055    *)
1056      sed -n \
1057	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1058      ;;
1059    esac;
1060}
1061    echo
1062
1063    cat <<\_ASBOX
1064## ----------------- ##
1065## Output variables. ##
1066## ----------------- ##
1067_ASBOX
1068    echo
1069    for ac_var in $ac_subst_vars
1070    do
1071      eval ac_val=$`echo $ac_var`
1072      echo "$ac_var='"'"'$ac_val'"'"'"
1073    done | sort
1074    echo
1075
1076    if test -n "$ac_subst_files"; then
1077      cat <<\_ASBOX
1078## ------------- ##
1079## Output files. ##
1080## ------------- ##
1081_ASBOX
1082      echo
1083      for ac_var in $ac_subst_files
1084      do
1085	eval ac_val=$`echo $ac_var`
1086	echo "$ac_var='"'"'$ac_val'"'"'"
1087      done | sort
1088      echo
1089    fi
1090
1091    if test -s confdefs.h; then
1092      cat <<\_ASBOX
1093## ----------- ##
1094## confdefs.h. ##
1095## ----------- ##
1096_ASBOX
1097      echo
1098      sed "/^$/d" confdefs.h | sort
1099      echo
1100    fi
1101    test "$ac_signal" != 0 &&
1102      echo "$as_me: caught signal $ac_signal"
1103    echo "$as_me: exit $exit_status"
1104  } >&5
1105  rm -f core *.core &&
1106  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1107    exit $exit_status
1108     ' 0
1109for ac_signal in 1 2 13 15; do
1110  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1111done
1112ac_signal=0
1113
1114# confdefs.h avoids OS command line length limits that DEFS can exceed.
1115rm -rf conftest* confdefs.h
1116# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1117echo >confdefs.h
1118
1119# Predefined preprocessor variables.
1120
1121cat >>confdefs.h <<_ACEOF
1122#define PACKAGE_NAME "$PACKAGE_NAME"
1123_ACEOF
1124
1125
1126cat >>confdefs.h <<_ACEOF
1127#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1128_ACEOF
1129
1130
1131cat >>confdefs.h <<_ACEOF
1132#define PACKAGE_VERSION "$PACKAGE_VERSION"
1133_ACEOF
1134
1135
1136cat >>confdefs.h <<_ACEOF
1137#define PACKAGE_STRING "$PACKAGE_STRING"
1138_ACEOF
1139
1140
1141cat >>confdefs.h <<_ACEOF
1142#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1143_ACEOF
1144
1145
1146# Let the site file select an alternate cache file if it wants to.
1147# Prefer explicitly selected file to automatically selected ones.
1148if test -z "$CONFIG_SITE"; then
1149  if test "x$prefix" != xNONE; then
1150    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1151  else
1152    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1153  fi
1154fi
1155for ac_site_file in $CONFIG_SITE; do
1156  if test -r "$ac_site_file"; then
1157    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1158echo "$as_me: loading site script $ac_site_file" >&6;}
1159    sed 's/^/| /' "$ac_site_file" >&5
1160    . "$ac_site_file"
1161  fi
1162done
1163
1164if test -r "$cache_file"; then
1165  # Some versions of bash will fail to source /dev/null (special
1166  # files actually), so we avoid doing that.
1167  if test -f "$cache_file"; then
1168    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1169echo "$as_me: loading cache $cache_file" >&6;}
1170    case $cache_file in
1171      [\\/]* | ?:[\\/]* ) . $cache_file;;
1172      *)                      . ./$cache_file;;
1173    esac
1174  fi
1175else
1176  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1177echo "$as_me: creating cache $cache_file" >&6;}
1178  >$cache_file
1179fi
1180
1181# Check that the precious variables saved in the cache have kept the same
1182# value.
1183ac_cache_corrupted=false
1184for ac_var in `(set) 2>&1 |
1185	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1186  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1187  eval ac_new_set=\$ac_env_${ac_var}_set
1188  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1189  eval ac_new_val="\$ac_env_${ac_var}_value"
1190  case $ac_old_set,$ac_new_set in
1191    set,)
1192      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1193echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1194      ac_cache_corrupted=: ;;
1195    ,set)
1196      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1197echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1198      ac_cache_corrupted=: ;;
1199    ,);;
1200    *)
1201      if test "x$ac_old_val" != "x$ac_new_val"; then
1202	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1203echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1204	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1205echo "$as_me:   former value:  $ac_old_val" >&2;}
1206	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1207echo "$as_me:   current value: $ac_new_val" >&2;}
1208	ac_cache_corrupted=:
1209      fi;;
1210  esac
1211  # Pass precious variables to config.status.
1212  if test "$ac_new_set" = set; then
1213    case $ac_new_val in
1214    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1216    *) ac_arg=$ac_var=$ac_new_val ;;
1217    esac
1218    case " $ac_configure_args " in
1219      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1220      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1221    esac
1222  fi
1223done
1224if $ac_cache_corrupted; then
1225  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1226echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1227  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1228echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1229   { (exit 1); exit 1; }; }
1230fi
1231
1232ac_ext=c
1233ac_cpp='$CPP $CPPFLAGS'
1234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1236ac_compiler_gnu=$ac_cv_c_compiler_gnu
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256          ac_config_headers="$ac_config_headers config.h"
1257
1258VERSION=0.4
1259
1260
1261
1262old_CFLAGS="$CFLAGS"
1263ac_ext=c
1264ac_cpp='$CPP $CPPFLAGS'
1265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267ac_compiler_gnu=$ac_cv_c_compiler_gnu
1268if test -n "$ac_tool_prefix"; then
1269  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1270set dummy ${ac_tool_prefix}gcc; ac_word=$2
1271echo "$as_me:$LINENO: checking for $ac_word" >&5
1272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1273if test "${ac_cv_prog_CC+set}" = set; then
1274  echo $ECHO_N "(cached) $ECHO_C" >&6
1275else
1276  if test -n "$CC"; then
1277  ac_cv_prog_CC="$CC" # Let the user override the test.
1278else
1279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1280for as_dir in $PATH
1281do
1282  IFS=$as_save_IFS
1283  test -z "$as_dir" && as_dir=.
1284  for ac_exec_ext in '' $ac_executable_extensions; do
1285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1286    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1288    break 2
1289  fi
1290done
1291done
1292
1293fi
1294fi
1295CC=$ac_cv_prog_CC
1296if test -n "$CC"; then
1297  echo "$as_me:$LINENO: result: $CC" >&5
1298echo "${ECHO_T}$CC" >&6
1299else
1300  echo "$as_me:$LINENO: result: no" >&5
1301echo "${ECHO_T}no" >&6
1302fi
1303
1304fi
1305if test -z "$ac_cv_prog_CC"; then
1306  ac_ct_CC=$CC
1307  # Extract the first word of "gcc", so it can be a program name with args.
1308set dummy gcc; ac_word=$2
1309echo "$as_me:$LINENO: checking for $ac_word" >&5
1310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1311if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1312  echo $ECHO_N "(cached) $ECHO_C" >&6
1313else
1314  if test -n "$ac_ct_CC"; then
1315  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1316else
1317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1318for as_dir in $PATH
1319do
1320  IFS=$as_save_IFS
1321  test -z "$as_dir" && as_dir=.
1322  for ac_exec_ext in '' $ac_executable_extensions; do
1323  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1324    ac_cv_prog_ac_ct_CC="gcc"
1325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1326    break 2
1327  fi
1328done
1329done
1330
1331fi
1332fi
1333ac_ct_CC=$ac_cv_prog_ac_ct_CC
1334if test -n "$ac_ct_CC"; then
1335  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1336echo "${ECHO_T}$ac_ct_CC" >&6
1337else
1338  echo "$as_me:$LINENO: result: no" >&5
1339echo "${ECHO_T}no" >&6
1340fi
1341
1342  CC=$ac_ct_CC
1343else
1344  CC="$ac_cv_prog_CC"
1345fi
1346
1347if test -z "$CC"; then
1348  if test -n "$ac_tool_prefix"; then
1349  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1350set dummy ${ac_tool_prefix}cc; ac_word=$2
1351echo "$as_me:$LINENO: checking for $ac_word" >&5
1352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353if test "${ac_cv_prog_CC+set}" = set; then
1354  echo $ECHO_N "(cached) $ECHO_C" >&6
1355else
1356  if test -n "$CC"; then
1357  ac_cv_prog_CC="$CC" # Let the user override the test.
1358else
1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360for as_dir in $PATH
1361do
1362  IFS=$as_save_IFS
1363  test -z "$as_dir" && as_dir=.
1364  for ac_exec_ext in '' $ac_executable_extensions; do
1365  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366    ac_cv_prog_CC="${ac_tool_prefix}cc"
1367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1368    break 2
1369  fi
1370done
1371done
1372
1373fi
1374fi
1375CC=$ac_cv_prog_CC
1376if test -n "$CC"; then
1377  echo "$as_me:$LINENO: result: $CC" >&5
1378echo "${ECHO_T}$CC" >&6
1379else
1380  echo "$as_me:$LINENO: result: no" >&5
1381echo "${ECHO_T}no" >&6
1382fi
1383
1384fi
1385if test -z "$ac_cv_prog_CC"; then
1386  ac_ct_CC=$CC
1387  # Extract the first word of "cc", so it can be a program name with args.
1388set dummy cc; ac_word=$2
1389echo "$as_me:$LINENO: checking for $ac_word" >&5
1390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1391if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1392  echo $ECHO_N "(cached) $ECHO_C" >&6
1393else
1394  if test -n "$ac_ct_CC"; then
1395  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1396else
1397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1398for as_dir in $PATH
1399do
1400  IFS=$as_save_IFS
1401  test -z "$as_dir" && as_dir=.
1402  for ac_exec_ext in '' $ac_executable_extensions; do
1403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1404    ac_cv_prog_ac_ct_CC="cc"
1405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1406    break 2
1407  fi
1408done
1409done
1410
1411fi
1412fi
1413ac_ct_CC=$ac_cv_prog_ac_ct_CC
1414if test -n "$ac_ct_CC"; then
1415  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1416echo "${ECHO_T}$ac_ct_CC" >&6
1417else
1418  echo "$as_me:$LINENO: result: no" >&5
1419echo "${ECHO_T}no" >&6
1420fi
1421
1422  CC=$ac_ct_CC
1423else
1424  CC="$ac_cv_prog_CC"
1425fi
1426
1427fi
1428if test -z "$CC"; then
1429  # Extract the first word of "cc", so it can be a program name with args.
1430set dummy cc; ac_word=$2
1431echo "$as_me:$LINENO: checking for $ac_word" >&5
1432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433if test "${ac_cv_prog_CC+set}" = set; then
1434  echo $ECHO_N "(cached) $ECHO_C" >&6
1435else
1436  if test -n "$CC"; then
1437  ac_cv_prog_CC="$CC" # Let the user override the test.
1438else
1439  ac_prog_rejected=no
1440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441for as_dir in $PATH
1442do
1443  IFS=$as_save_IFS
1444  test -z "$as_dir" && as_dir=.
1445  for ac_exec_ext in '' $ac_executable_extensions; do
1446  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1447    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1448       ac_prog_rejected=yes
1449       continue
1450     fi
1451    ac_cv_prog_CC="cc"
1452    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453    break 2
1454  fi
1455done
1456done
1457
1458if test $ac_prog_rejected = yes; then
1459  # We found a bogon in the path, so make sure we never use it.
1460  set dummy $ac_cv_prog_CC
1461  shift
1462  if test $# != 0; then
1463    # We chose a different compiler from the bogus one.
1464    # However, it has the same basename, so the bogon will be chosen
1465    # first if we set CC to just the basename; use the full file name.
1466    shift
1467    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1468  fi
1469fi
1470fi
1471fi
1472CC=$ac_cv_prog_CC
1473if test -n "$CC"; then
1474  echo "$as_me:$LINENO: result: $CC" >&5
1475echo "${ECHO_T}$CC" >&6
1476else
1477  echo "$as_me:$LINENO: result: no" >&5
1478echo "${ECHO_T}no" >&6
1479fi
1480
1481fi
1482if test -z "$CC"; then
1483  if test -n "$ac_tool_prefix"; then
1484  for ac_prog in cl
1485  do
1486    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1487set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1488echo "$as_me:$LINENO: checking for $ac_word" >&5
1489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1490if test "${ac_cv_prog_CC+set}" = set; then
1491  echo $ECHO_N "(cached) $ECHO_C" >&6
1492else
1493  if test -n "$CC"; then
1494  ac_cv_prog_CC="$CC" # Let the user override the test.
1495else
1496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497for as_dir in $PATH
1498do
1499  IFS=$as_save_IFS
1500  test -z "$as_dir" && as_dir=.
1501  for ac_exec_ext in '' $ac_executable_extensions; do
1502  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1503    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1504    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505    break 2
1506  fi
1507done
1508done
1509
1510fi
1511fi
1512CC=$ac_cv_prog_CC
1513if test -n "$CC"; then
1514  echo "$as_me:$LINENO: result: $CC" >&5
1515echo "${ECHO_T}$CC" >&6
1516else
1517  echo "$as_me:$LINENO: result: no" >&5
1518echo "${ECHO_T}no" >&6
1519fi
1520
1521    test -n "$CC" && break
1522  done
1523fi
1524if test -z "$CC"; then
1525  ac_ct_CC=$CC
1526  for ac_prog in cl
1527do
1528  # Extract the first word of "$ac_prog", so it can be a program name with args.
1529set dummy $ac_prog; ac_word=$2
1530echo "$as_me:$LINENO: checking for $ac_word" >&5
1531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1533  echo $ECHO_N "(cached) $ECHO_C" >&6
1534else
1535  if test -n "$ac_ct_CC"; then
1536  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1537else
1538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539for as_dir in $PATH
1540do
1541  IFS=$as_save_IFS
1542  test -z "$as_dir" && as_dir=.
1543  for ac_exec_ext in '' $ac_executable_extensions; do
1544  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545    ac_cv_prog_ac_ct_CC="$ac_prog"
1546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547    break 2
1548  fi
1549done
1550done
1551
1552fi
1553fi
1554ac_ct_CC=$ac_cv_prog_ac_ct_CC
1555if test -n "$ac_ct_CC"; then
1556  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1557echo "${ECHO_T}$ac_ct_CC" >&6
1558else
1559  echo "$as_me:$LINENO: result: no" >&5
1560echo "${ECHO_T}no" >&6
1561fi
1562
1563  test -n "$ac_ct_CC" && break
1564done
1565
1566  CC=$ac_ct_CC
1567fi
1568
1569fi
1570
1571
1572test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1573See \`config.log' for more details." >&5
1574echo "$as_me: error: no acceptable C compiler found in \$PATH
1575See \`config.log' for more details." >&2;}
1576   { (exit 1); exit 1; }; }
1577
1578# Provide some information about the compiler.
1579echo "$as_me:$LINENO:" \
1580     "checking for C compiler version" >&5
1581ac_compiler=`set X $ac_compile; echo $2`
1582{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1583  (eval $ac_compiler --version </dev/null >&5) 2>&5
1584  ac_status=$?
1585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1586  (exit $ac_status); }
1587{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1588  (eval $ac_compiler -v </dev/null >&5) 2>&5
1589  ac_status=$?
1590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1591  (exit $ac_status); }
1592{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1593  (eval $ac_compiler -V </dev/null >&5) 2>&5
1594  ac_status=$?
1595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1596  (exit $ac_status); }
1597
1598cat >conftest.$ac_ext <<_ACEOF
1599/* confdefs.h.  */
1600_ACEOF
1601cat confdefs.h >>conftest.$ac_ext
1602cat >>conftest.$ac_ext <<_ACEOF
1603/* end confdefs.h.  */
1604
1605int
1606main ()
1607{
1608
1609  ;
1610  return 0;
1611}
1612_ACEOF
1613ac_clean_files_save=$ac_clean_files
1614ac_clean_files="$ac_clean_files a.out a.exe b.out"
1615# Try to create an executable without -o first, disregard a.out.
1616# It will help us diagnose broken compilers, and finding out an intuition
1617# of exeext.
1618echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1619echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1620ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1621if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1622  (eval $ac_link_default) 2>&5
1623  ac_status=$?
1624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625  (exit $ac_status); }; then
1626  # Find the output, starting from the most likely.  This scheme is
1627# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1628# resort.
1629
1630# Be careful to initialize this variable, since it used to be cached.
1631# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1632ac_cv_exeext=
1633# b.out is created by i960 compilers.
1634for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1635do
1636  test -f "$ac_file" || continue
1637  case $ac_file in
1638    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1639	;;
1640    conftest.$ac_ext )
1641	# This is the source file.
1642	;;
1643    [ab].out )
1644	# We found the default executable, but exeext='' is most
1645	# certainly right.
1646	break;;
1647    *.* )
1648	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1649	# FIXME: I believe we export ac_cv_exeext for Libtool,
1650	# but it would be cool to find out if it's true.  Does anybody
1651	# maintain Libtool? --akim.
1652	export ac_cv_exeext
1653	break;;
1654    * )
1655	break;;
1656  esac
1657done
1658else
1659  echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1663See \`config.log' for more details." >&5
1664echo "$as_me: error: C compiler cannot create executables
1665See \`config.log' for more details." >&2;}
1666   { (exit 77); exit 77; }; }
1667fi
1668
1669ac_exeext=$ac_cv_exeext
1670echo "$as_me:$LINENO: result: $ac_file" >&5
1671echo "${ECHO_T}$ac_file" >&6
1672
1673# Check the compiler produces executables we can run.  If not, either
1674# the compiler is broken, or we cross compile.
1675echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1676echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1677# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1678# If not cross compiling, check that we can run a simple program.
1679if test "$cross_compiling" != yes; then
1680  if { ac_try='./$ac_file'
1681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1682  (eval $ac_try) 2>&5
1683  ac_status=$?
1684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685  (exit $ac_status); }; }; then
1686    cross_compiling=no
1687  else
1688    if test "$cross_compiling" = maybe; then
1689	cross_compiling=yes
1690    else
1691	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1692If you meant to cross compile, use \`--host'.
1693See \`config.log' for more details." >&5
1694echo "$as_me: error: cannot run C compiled programs.
1695If you meant to cross compile, use \`--host'.
1696See \`config.log' for more details." >&2;}
1697   { (exit 1); exit 1; }; }
1698    fi
1699  fi
1700fi
1701echo "$as_me:$LINENO: result: yes" >&5
1702echo "${ECHO_T}yes" >&6
1703
1704rm -f a.out a.exe conftest$ac_cv_exeext b.out
1705ac_clean_files=$ac_clean_files_save
1706# Check the compiler produces executables we can run.  If not, either
1707# the compiler is broken, or we cross compile.
1708echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1709echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1710echo "$as_me:$LINENO: result: $cross_compiling" >&5
1711echo "${ECHO_T}$cross_compiling" >&6
1712
1713echo "$as_me:$LINENO: checking for suffix of executables" >&5
1714echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1716  (eval $ac_link) 2>&5
1717  ac_status=$?
1718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719  (exit $ac_status); }; then
1720  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1721# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1722# work properly (i.e., refer to `conftest.exe'), while it won't with
1723# `rm'.
1724for ac_file in conftest.exe conftest conftest.*; do
1725  test -f "$ac_file" || continue
1726  case $ac_file in
1727    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1728    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1729	  export ac_cv_exeext
1730	  break;;
1731    * ) break;;
1732  esac
1733done
1734else
1735  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1736See \`config.log' for more details." >&5
1737echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1738See \`config.log' for more details." >&2;}
1739   { (exit 1); exit 1; }; }
1740fi
1741
1742rm -f conftest$ac_cv_exeext
1743echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1744echo "${ECHO_T}$ac_cv_exeext" >&6
1745
1746rm -f conftest.$ac_ext
1747EXEEXT=$ac_cv_exeext
1748ac_exeext=$EXEEXT
1749echo "$as_me:$LINENO: checking for suffix of object files" >&5
1750echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1751if test "${ac_cv_objext+set}" = set; then
1752  echo $ECHO_N "(cached) $ECHO_C" >&6
1753else
1754  cat >conftest.$ac_ext <<_ACEOF
1755/* confdefs.h.  */
1756_ACEOF
1757cat confdefs.h >>conftest.$ac_ext
1758cat >>conftest.$ac_ext <<_ACEOF
1759/* end confdefs.h.  */
1760
1761int
1762main ()
1763{
1764
1765  ;
1766  return 0;
1767}
1768_ACEOF
1769rm -f conftest.o conftest.obj
1770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1771  (eval $ac_compile) 2>&5
1772  ac_status=$?
1773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774  (exit $ac_status); }; then
1775  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1776  case $ac_file in
1777    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1778    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1779       break;;
1780  esac
1781done
1782else
1783  echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1787See \`config.log' for more details." >&5
1788echo "$as_me: error: cannot compute suffix of object files: cannot compile
1789See \`config.log' for more details." >&2;}
1790   { (exit 1); exit 1; }; }
1791fi
1792
1793rm -f conftest.$ac_cv_objext conftest.$ac_ext
1794fi
1795echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1796echo "${ECHO_T}$ac_cv_objext" >&6
1797OBJEXT=$ac_cv_objext
1798ac_objext=$OBJEXT
1799echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1800echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1801if test "${ac_cv_c_compiler_gnu+set}" = set; then
1802  echo $ECHO_N "(cached) $ECHO_C" >&6
1803else
1804  cat >conftest.$ac_ext <<_ACEOF
1805/* confdefs.h.  */
1806_ACEOF
1807cat confdefs.h >>conftest.$ac_ext
1808cat >>conftest.$ac_ext <<_ACEOF
1809/* end confdefs.h.  */
1810
1811int
1812main ()
1813{
1814#ifndef __GNUC__
1815       choke me
1816#endif
1817
1818  ;
1819  return 0;
1820}
1821_ACEOF
1822rm -f conftest.$ac_objext
1823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1824  (eval $ac_compile) 2>conftest.er1
1825  ac_status=$?
1826  grep -v '^ *+' conftest.er1 >conftest.err
1827  rm -f conftest.er1
1828  cat conftest.err >&5
1829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830  (exit $ac_status); } &&
1831	 { ac_try='test -z "$ac_c_werror_flag"
1832			 || test ! -s conftest.err'
1833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1834  (eval $ac_try) 2>&5
1835  ac_status=$?
1836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837  (exit $ac_status); }; } &&
1838	 { ac_try='test -s conftest.$ac_objext'
1839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1840  (eval $ac_try) 2>&5
1841  ac_status=$?
1842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843  (exit $ac_status); }; }; then
1844  ac_compiler_gnu=yes
1845else
1846  echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849ac_compiler_gnu=no
1850fi
1851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1852ac_cv_c_compiler_gnu=$ac_compiler_gnu
1853
1854fi
1855echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1856echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1857GCC=`test $ac_compiler_gnu = yes && echo yes`
1858ac_test_CFLAGS=${CFLAGS+set}
1859ac_save_CFLAGS=$CFLAGS
1860CFLAGS="-g"
1861echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1862echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1863if test "${ac_cv_prog_cc_g+set}" = set; then
1864  echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866  cat >conftest.$ac_ext <<_ACEOF
1867/* confdefs.h.  */
1868_ACEOF
1869cat confdefs.h >>conftest.$ac_ext
1870cat >>conftest.$ac_ext <<_ACEOF
1871/* end confdefs.h.  */
1872
1873int
1874main ()
1875{
1876
1877  ;
1878  return 0;
1879}
1880_ACEOF
1881rm -f conftest.$ac_objext
1882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1883  (eval $ac_compile) 2>conftest.er1
1884  ac_status=$?
1885  grep -v '^ *+' conftest.er1 >conftest.err
1886  rm -f conftest.er1
1887  cat conftest.err >&5
1888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889  (exit $ac_status); } &&
1890	 { ac_try='test -z "$ac_c_werror_flag"
1891			 || test ! -s conftest.err'
1892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893  (eval $ac_try) 2>&5
1894  ac_status=$?
1895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896  (exit $ac_status); }; } &&
1897	 { ac_try='test -s conftest.$ac_objext'
1898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1899  (eval $ac_try) 2>&5
1900  ac_status=$?
1901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902  (exit $ac_status); }; }; then
1903  ac_cv_prog_cc_g=yes
1904else
1905  echo "$as_me: failed program was:" >&5
1906sed 's/^/| /' conftest.$ac_ext >&5
1907
1908ac_cv_prog_cc_g=no
1909fi
1910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1911fi
1912echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1913echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1914if test "$ac_test_CFLAGS" = set; then
1915  CFLAGS=$ac_save_CFLAGS
1916elif test $ac_cv_prog_cc_g = yes; then
1917  if test "$GCC" = yes; then
1918    CFLAGS="-g -O2"
1919  else
1920    CFLAGS="-g"
1921  fi
1922else
1923  if test "$GCC" = yes; then
1924    CFLAGS="-O2"
1925  else
1926    CFLAGS=
1927  fi
1928fi
1929echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1930echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1931if test "${ac_cv_prog_cc_stdc+set}" = set; then
1932  echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
1934  ac_cv_prog_cc_stdc=no
1935ac_save_CC=$CC
1936cat >conftest.$ac_ext <<_ACEOF
1937/* confdefs.h.  */
1938_ACEOF
1939cat confdefs.h >>conftest.$ac_ext
1940cat >>conftest.$ac_ext <<_ACEOF
1941/* end confdefs.h.  */
1942#include <stdarg.h>
1943#include <stdio.h>
1944#include <sys/types.h>
1945#include <sys/stat.h>
1946/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1947struct buf { int x; };
1948FILE * (*rcsopen) (struct buf *, struct stat *, int);
1949static char *e (p, i)
1950     char **p;
1951     int i;
1952{
1953  return p[i];
1954}
1955static char *f (char * (*g) (char **, int), char **p, ...)
1956{
1957  char *s;
1958  va_list v;
1959  va_start (v,p);
1960  s = g (p, va_arg (v,int));
1961  va_end (v);
1962  return s;
1963}
1964
1965/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1966   function prototypes and stuff, but not '\xHH' hex character constants.
1967   These don't provoke an error unfortunately, instead are silently treated
1968   as 'x'.  The following induces an error, until -std1 is added to get
1969   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1970   array size at least.  It's necessary to write '\x00'==0 to get something
1971   that's true only with -std1.  */
1972int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1973
1974int test (int i, double x);
1975struct s1 {int (*f) (int a);};
1976struct s2 {int (*f) (double a);};
1977int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1978int argc;
1979char **argv;
1980int
1981main ()
1982{
1983return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1984  ;
1985  return 0;
1986}
1987_ACEOF
1988# Don't try gcc -ansi; that turns off useful extensions and
1989# breaks some systems' header files.
1990# AIX			-qlanglvl=ansi
1991# Ultrix and OSF/1	-std1
1992# HP-UX 10.20 and later	-Ae
1993# HP-UX older versions	-Aa -D_HPUX_SOURCE
1994# SVR4			-Xc -D__EXTENSIONS__
1995for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1996do
1997  CC="$ac_save_CC $ac_arg"
1998  rm -f conftest.$ac_objext
1999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000  (eval $ac_compile) 2>conftest.er1
2001  ac_status=$?
2002  grep -v '^ *+' conftest.er1 >conftest.err
2003  rm -f conftest.er1
2004  cat conftest.err >&5
2005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006  (exit $ac_status); } &&
2007	 { ac_try='test -z "$ac_c_werror_flag"
2008			 || test ! -s conftest.err'
2009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010  (eval $ac_try) 2>&5
2011  ac_status=$?
2012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013  (exit $ac_status); }; } &&
2014	 { ac_try='test -s conftest.$ac_objext'
2015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016  (eval $ac_try) 2>&5
2017  ac_status=$?
2018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019  (exit $ac_status); }; }; then
2020  ac_cv_prog_cc_stdc=$ac_arg
2021break
2022else
2023  echo "$as_me: failed program was:" >&5
2024sed 's/^/| /' conftest.$ac_ext >&5
2025
2026fi
2027rm -f conftest.err conftest.$ac_objext
2028done
2029rm -f conftest.$ac_ext conftest.$ac_objext
2030CC=$ac_save_CC
2031
2032fi
2033
2034case "x$ac_cv_prog_cc_stdc" in
2035  x|xno)
2036    echo "$as_me:$LINENO: result: none needed" >&5
2037echo "${ECHO_T}none needed" >&6 ;;
2038  *)
2039    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2040echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2041    CC="$CC $ac_cv_prog_cc_stdc" ;;
2042esac
2043
2044# Some people use a C++ compiler to compile C.  Since we use `exit',
2045# in C++ we need to declare it.  In case someone uses the same compiler
2046# for both compiling C and C++ we need to have the C++ compiler decide
2047# the declaration of exit, since it's the most demanding environment.
2048cat >conftest.$ac_ext <<_ACEOF
2049#ifndef __cplusplus
2050  choke me
2051#endif
2052_ACEOF
2053rm -f conftest.$ac_objext
2054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055  (eval $ac_compile) 2>conftest.er1
2056  ac_status=$?
2057  grep -v '^ *+' conftest.er1 >conftest.err
2058  rm -f conftest.er1
2059  cat conftest.err >&5
2060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061  (exit $ac_status); } &&
2062	 { ac_try='test -z "$ac_c_werror_flag"
2063			 || test ! -s conftest.err'
2064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065  (eval $ac_try) 2>&5
2066  ac_status=$?
2067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068  (exit $ac_status); }; } &&
2069	 { ac_try='test -s conftest.$ac_objext'
2070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071  (eval $ac_try) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; }; then
2075  for ac_declaration in \
2076   '' \
2077   'extern "C" void std::exit (int) throw (); using std::exit;' \
2078   'extern "C" void std::exit (int); using std::exit;' \
2079   'extern "C" void exit (int) throw ();' \
2080   'extern "C" void exit (int);' \
2081   'void exit (int);'
2082do
2083  cat >conftest.$ac_ext <<_ACEOF
2084/* confdefs.h.  */
2085_ACEOF
2086cat confdefs.h >>conftest.$ac_ext
2087cat >>conftest.$ac_ext <<_ACEOF
2088/* end confdefs.h.  */
2089$ac_declaration
2090#include <stdlib.h>
2091int
2092main ()
2093{
2094exit (42);
2095  ;
2096  return 0;
2097}
2098_ACEOF
2099rm -f conftest.$ac_objext
2100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101  (eval $ac_compile) 2>conftest.er1
2102  ac_status=$?
2103  grep -v '^ *+' conftest.er1 >conftest.err
2104  rm -f conftest.er1
2105  cat conftest.err >&5
2106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107  (exit $ac_status); } &&
2108	 { ac_try='test -z "$ac_c_werror_flag"
2109			 || test ! -s conftest.err'
2110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111  (eval $ac_try) 2>&5
2112  ac_status=$?
2113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114  (exit $ac_status); }; } &&
2115	 { ac_try='test -s conftest.$ac_objext'
2116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117  (eval $ac_try) 2>&5
2118  ac_status=$?
2119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120  (exit $ac_status); }; }; then
2121  :
2122else
2123  echo "$as_me: failed program was:" >&5
2124sed 's/^/| /' conftest.$ac_ext >&5
2125
2126continue
2127fi
2128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2129  cat >conftest.$ac_ext <<_ACEOF
2130/* confdefs.h.  */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
2134/* end confdefs.h.  */
2135$ac_declaration
2136int
2137main ()
2138{
2139exit (42);
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144rm -f conftest.$ac_objext
2145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146  (eval $ac_compile) 2>conftest.er1
2147  ac_status=$?
2148  grep -v '^ *+' conftest.er1 >conftest.err
2149  rm -f conftest.er1
2150  cat conftest.err >&5
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); } &&
2153	 { ac_try='test -z "$ac_c_werror_flag"
2154			 || test ! -s conftest.err'
2155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156  (eval $ac_try) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }; } &&
2160	 { ac_try='test -s conftest.$ac_objext'
2161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162  (eval $ac_try) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; }; then
2166  break
2167else
2168  echo "$as_me: failed program was:" >&5
2169sed 's/^/| /' conftest.$ac_ext >&5
2170
2171fi
2172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2173done
2174rm -f conftest*
2175if test -n "$ac_declaration"; then
2176  echo '#ifdef __cplusplus' >>confdefs.h
2177  echo $ac_declaration      >>confdefs.h
2178  echo '#endif'             >>confdefs.h
2179fi
2180
2181else
2182  echo "$as_me: failed program was:" >&5
2183sed 's/^/| /' conftest.$ac_ext >&5
2184
2185fi
2186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2187ac_ext=c
2188ac_cpp='$CPP $CPPFLAGS'
2189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192
2193ac_ext=c
2194ac_cpp='$CPP $CPPFLAGS'
2195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2197ac_compiler_gnu=$ac_cv_c_compiler_gnu
2198echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2199echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2200# On Suns, sometimes $CPP names a directory.
2201if test -n "$CPP" && test -d "$CPP"; then
2202  CPP=
2203fi
2204if test -z "$CPP"; then
2205  if test "${ac_cv_prog_CPP+set}" = set; then
2206  echo $ECHO_N "(cached) $ECHO_C" >&6
2207else
2208      # Double quotes because CPP needs to be expanded
2209    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2210    do
2211      ac_preproc_ok=false
2212for ac_c_preproc_warn_flag in '' yes
2213do
2214  # Use a header file that comes with gcc, so configuring glibc
2215  # with a fresh cross-compiler works.
2216  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2217  # <limits.h> exists even on freestanding compilers.
2218  # On the NeXT, cc -E runs the code through the compiler's parser,
2219  # not just through cpp. "Syntax error" is here to catch this case.
2220  cat >conftest.$ac_ext <<_ACEOF
2221/* confdefs.h.  */
2222_ACEOF
2223cat confdefs.h >>conftest.$ac_ext
2224cat >>conftest.$ac_ext <<_ACEOF
2225/* end confdefs.h.  */
2226#ifdef __STDC__
2227# include <limits.h>
2228#else
2229# include <assert.h>
2230#endif
2231		     Syntax error
2232_ACEOF
2233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2234  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2235  ac_status=$?
2236  grep -v '^ *+' conftest.er1 >conftest.err
2237  rm -f conftest.er1
2238  cat conftest.err >&5
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); } >/dev/null; then
2241  if test -s conftest.err; then
2242    ac_cpp_err=$ac_c_preproc_warn_flag
2243    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2244  else
2245    ac_cpp_err=
2246  fi
2247else
2248  ac_cpp_err=yes
2249fi
2250if test -z "$ac_cpp_err"; then
2251  :
2252else
2253  echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256  # Broken: fails on valid input.
2257continue
2258fi
2259rm -f conftest.err conftest.$ac_ext
2260
2261  # OK, works on sane cases.  Now check whether non-existent headers
2262  # can be detected and how.
2263  cat >conftest.$ac_ext <<_ACEOF
2264/* confdefs.h.  */
2265_ACEOF
2266cat confdefs.h >>conftest.$ac_ext
2267cat >>conftest.$ac_ext <<_ACEOF
2268/* end confdefs.h.  */
2269#include <ac_nonexistent.h>
2270_ACEOF
2271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2272  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2273  ac_status=$?
2274  grep -v '^ *+' conftest.er1 >conftest.err
2275  rm -f conftest.er1
2276  cat conftest.err >&5
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); } >/dev/null; then
2279  if test -s conftest.err; then
2280    ac_cpp_err=$ac_c_preproc_warn_flag
2281    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2282  else
2283    ac_cpp_err=
2284  fi
2285else
2286  ac_cpp_err=yes
2287fi
2288if test -z "$ac_cpp_err"; then
2289  # Broken: success on invalid input.
2290continue
2291else
2292  echo "$as_me: failed program was:" >&5
2293sed 's/^/| /' conftest.$ac_ext >&5
2294
2295  # Passes both tests.
2296ac_preproc_ok=:
2297break
2298fi
2299rm -f conftest.err conftest.$ac_ext
2300
2301done
2302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2303rm -f conftest.err conftest.$ac_ext
2304if $ac_preproc_ok; then
2305  break
2306fi
2307
2308    done
2309    ac_cv_prog_CPP=$CPP
2310
2311fi
2312  CPP=$ac_cv_prog_CPP
2313else
2314  ac_cv_prog_CPP=$CPP
2315fi
2316echo "$as_me:$LINENO: result: $CPP" >&5
2317echo "${ECHO_T}$CPP" >&6
2318ac_preproc_ok=false
2319for ac_c_preproc_warn_flag in '' yes
2320do
2321  # Use a header file that comes with gcc, so configuring glibc
2322  # with a fresh cross-compiler works.
2323  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2324  # <limits.h> exists even on freestanding compilers.
2325  # On the NeXT, cc -E runs the code through the compiler's parser,
2326  # not just through cpp. "Syntax error" is here to catch this case.
2327  cat >conftest.$ac_ext <<_ACEOF
2328/* confdefs.h.  */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h.  */
2333#ifdef __STDC__
2334# include <limits.h>
2335#else
2336# include <assert.h>
2337#endif
2338		     Syntax error
2339_ACEOF
2340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2341  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2342  ac_status=$?
2343  grep -v '^ *+' conftest.er1 >conftest.err
2344  rm -f conftest.er1
2345  cat conftest.err >&5
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); } >/dev/null; then
2348  if test -s conftest.err; then
2349    ac_cpp_err=$ac_c_preproc_warn_flag
2350    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2351  else
2352    ac_cpp_err=
2353  fi
2354else
2355  ac_cpp_err=yes
2356fi
2357if test -z "$ac_cpp_err"; then
2358  :
2359else
2360  echo "$as_me: failed program was:" >&5
2361sed 's/^/| /' conftest.$ac_ext >&5
2362
2363  # Broken: fails on valid input.
2364continue
2365fi
2366rm -f conftest.err conftest.$ac_ext
2367
2368  # OK, works on sane cases.  Now check whether non-existent headers
2369  # can be detected and how.
2370  cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h.  */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h.  */
2376#include <ac_nonexistent.h>
2377_ACEOF
2378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2379  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2380  ac_status=$?
2381  grep -v '^ *+' conftest.er1 >conftest.err
2382  rm -f conftest.er1
2383  cat conftest.err >&5
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); } >/dev/null; then
2386  if test -s conftest.err; then
2387    ac_cpp_err=$ac_c_preproc_warn_flag
2388    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2389  else
2390    ac_cpp_err=
2391  fi
2392else
2393  ac_cpp_err=yes
2394fi
2395if test -z "$ac_cpp_err"; then
2396  # Broken: success on invalid input.
2397continue
2398else
2399  echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
2401
2402  # Passes both tests.
2403ac_preproc_ok=:
2404break
2405fi
2406rm -f conftest.err conftest.$ac_ext
2407
2408done
2409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2410rm -f conftest.err conftest.$ac_ext
2411if $ac_preproc_ok; then
2412  :
2413else
2414  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2415See \`config.log' for more details." >&5
2416echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2417See \`config.log' for more details." >&2;}
2418   { (exit 1); exit 1; }; }
2419fi
2420
2421ac_ext=c
2422ac_cpp='$CPP $CPPFLAGS'
2423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426
2427
2428
2429echo "$as_me:$LINENO: checking for egrep" >&5
2430echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2431if test "${ac_cv_prog_egrep+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2435    then ac_cv_prog_egrep='grep -E'
2436    else ac_cv_prog_egrep='egrep'
2437    fi
2438fi
2439echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2440echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2441 EGREP=$ac_cv_prog_egrep
2442
2443
2444if test $ac_cv_c_compiler_gnu = yes; then
2445    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2446echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2447if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2448  echo $ECHO_N "(cached) $ECHO_C" >&6
2449else
2450    ac_pattern="Autoconf.*'x'"
2451  cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h.  */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h.  */
2457#include <sgtty.h>
2458Autoconf TIOCGETP
2459_ACEOF
2460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2461  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2462  ac_cv_prog_gcc_traditional=yes
2463else
2464  ac_cv_prog_gcc_traditional=no
2465fi
2466rm -f conftest*
2467
2468
2469  if test $ac_cv_prog_gcc_traditional = no; then
2470    cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h.  */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h.  */
2476#include <termio.h>
2477Autoconf TCGETA
2478_ACEOF
2479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2480  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2481  ac_cv_prog_gcc_traditional=yes
2482fi
2483rm -f conftest*
2484
2485  fi
2486fi
2487echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2488echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2489  if test $ac_cv_prog_gcc_traditional = yes; then
2490    CC="$CC -traditional"
2491  fi
2492fi
2493
2494echo "$as_me:$LINENO: checking for library containing strerror" >&5
2495echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2496if test "${ac_cv_search_strerror+set}" = set; then
2497  echo $ECHO_N "(cached) $ECHO_C" >&6
2498else
2499  ac_func_search_save_LIBS=$LIBS
2500ac_cv_search_strerror=no
2501cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h.  */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h.  */
2507
2508/* Override any gcc2 internal prototype to avoid an error.  */
2509#ifdef __cplusplus
2510extern "C"
2511#endif
2512/* We use char because int might match the return type of a gcc2
2513   builtin and then its argument prototype would still apply.  */
2514char strerror ();
2515int
2516main ()
2517{
2518strerror ();
2519  ;
2520  return 0;
2521}
2522_ACEOF
2523rm -f conftest.$ac_objext conftest$ac_exeext
2524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2525  (eval $ac_link) 2>conftest.er1
2526  ac_status=$?
2527  grep -v '^ *+' conftest.er1 >conftest.err
2528  rm -f conftest.er1
2529  cat conftest.err >&5
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); } &&
2532	 { ac_try='test -z "$ac_c_werror_flag"
2533			 || test ! -s conftest.err'
2534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535  (eval $ac_try) 2>&5
2536  ac_status=$?
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); }; } &&
2539	 { ac_try='test -s conftest$ac_exeext'
2540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541  (eval $ac_try) 2>&5
2542  ac_status=$?
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); }; }; then
2545  ac_cv_search_strerror="none required"
2546else
2547  echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550fi
2551rm -f conftest.err conftest.$ac_objext \
2552      conftest$ac_exeext conftest.$ac_ext
2553if test "$ac_cv_search_strerror" = no; then
2554  for ac_lib in cposix; do
2555    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2556    cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h.  */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
2561/* end confdefs.h.  */
2562
2563/* Override any gcc2 internal prototype to avoid an error.  */
2564#ifdef __cplusplus
2565extern "C"
2566#endif
2567/* We use char because int might match the return type of a gcc2
2568   builtin and then its argument prototype would still apply.  */
2569char strerror ();
2570int
2571main ()
2572{
2573strerror ();
2574  ;
2575  return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext conftest$ac_exeext
2579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580  (eval $ac_link) 2>conftest.er1
2581  ac_status=$?
2582  grep -v '^ *+' conftest.er1 >conftest.err
2583  rm -f conftest.er1
2584  cat conftest.err >&5
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); } &&
2587	 { ac_try='test -z "$ac_c_werror_flag"
2588			 || test ! -s conftest.err'
2589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590  (eval $ac_try) 2>&5
2591  ac_status=$?
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); }; } &&
2594	 { ac_try='test -s conftest$ac_exeext'
2595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596  (eval $ac_try) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; }; then
2600  ac_cv_search_strerror="-l$ac_lib"
2601break
2602else
2603  echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
2606fi
2607rm -f conftest.err conftest.$ac_objext \
2608      conftest$ac_exeext conftest.$ac_ext
2609  done
2610fi
2611LIBS=$ac_func_search_save_LIBS
2612fi
2613echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2614echo "${ECHO_T}$ac_cv_search_strerror" >&6
2615if test "$ac_cv_search_strerror" != no; then
2616  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2617
2618fi
2619
2620
2621if test "$cross_compiling" = yes; then
2622  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2623See \`config.log' for more details." >&5
2624echo "$as_me: error: cannot run test program while cross compiling
2625See \`config.log' for more details." >&2;}
2626   { (exit 1); exit 1; }; }
2627else
2628  cat >conftest.$ac_ext <<_ACEOF
2629/* confdefs.h.  */
2630_ACEOF
2631cat confdefs.h >>conftest.$ac_ext
2632cat >>conftest.$ac_ext <<_ACEOF
2633/* end confdefs.h.  */
2634main(){exit(0);}
2635_ACEOF
2636rm -f conftest$ac_exeext
2637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638  (eval $ac_link) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; }; then
2647  :
2648else
2649  echo "$as_me: program exited with status $ac_status" >&5
2650echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653( exit $ac_status )
2654
2655if test $CC != cc ; then
2656echo "Your $CC failed - restarting with CC=cc" 1>&6
2657
2658echo "" 1>&6
2659
2660CC=cc
2661export CC
2662exec $0 $configure_args
2663fi
2664
2665fi
2666rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2667fi
2668
2669if test "$cross_compiling" = yes; then
2670  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2671See \`config.log' for more details." >&5
2672echo "$as_me: error: cannot run test program while cross compiling
2673See \`config.log' for more details." >&2;}
2674   { (exit 1); exit 1; }; }
2675else
2676  cat >conftest.$ac_ext <<_ACEOF
2677/* confdefs.h.  */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h.  */
2682main(){exit(0);}
2683_ACEOF
2684rm -f conftest$ac_exeext
2685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2686  (eval $ac_link) 2>&5
2687  ac_status=$?
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691  (eval $ac_try) 2>&5
2692  ac_status=$?
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); }; }; then
2695  :
2696else
2697  echo "$as_me: program exited with status $ac_status" >&5
2698echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701( exit $ac_status )
2702exec 5>&2
2703eval $ac_link
2704echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
2705
2706echo "$ac_compile" 1>&6
2707
2708{ { echo "$as_me:$LINENO: error: Can't run the compiler - sorry" >&5
2709echo "$as_me: error: Can't run the compiler - sorry" >&2;}
2710   { (exit 1); exit 1; }; }
2711fi
2712rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2713fi
2714
2715if test "$cross_compiling" = yes; then
2716  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2717See \`config.log' for more details." >&5
2718echo "$as_me: error: cannot run test program while cross compiling
2719See \`config.log' for more details." >&2;}
2720   { (exit 1); exit 1; }; }
2721else
2722  cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h.  */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h.  */
2728
2729main()
2730{
2731  int __something_strange_();
2732  __something_strange_(0);
2733}
2734
2735_ACEOF
2736rm -f conftest$ac_exeext
2737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2738  (eval $ac_link) 2>&5
2739  ac_status=$?
2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743  (eval $ac_try) 2>&5
2744  ac_status=$?
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); }; }; then
2747  { { echo "$as_me:$LINENO: error: Your compiler does not set the exit status - sorry" >&5
2748echo "$as_me: error: Your compiler does not set the exit status - sorry" >&2;}
2749   { (exit 1); exit 1; }; }
2750else
2751  echo "$as_me: program exited with status $ac_status" >&5
2752echo "$as_me: failed program was:" >&5
2753sed 's/^/| /' conftest.$ac_ext >&5
2754
2755fi
2756rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2757fi
2758
2759for ac_prog in gawk mawk nawk awk
2760do
2761  # Extract the first word of "$ac_prog", so it can be a program name with args.
2762set dummy $ac_prog; ac_word=$2
2763echo "$as_me:$LINENO: checking for $ac_word" >&5
2764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765if test "${ac_cv_prog_AWK+set}" = set; then
2766  echo $ECHO_N "(cached) $ECHO_C" >&6
2767else
2768  if test -n "$AWK"; then
2769  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774  IFS=$as_save_IFS
2775  test -z "$as_dir" && as_dir=.
2776  for ac_exec_ext in '' $ac_executable_extensions; do
2777  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778    ac_cv_prog_AWK="$ac_prog"
2779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780    break 2
2781  fi
2782done
2783done
2784
2785fi
2786fi
2787AWK=$ac_cv_prog_AWK
2788if test -n "$AWK"; then
2789  echo "$as_me:$LINENO: result: $AWK" >&5
2790echo "${ECHO_T}$AWK" >&6
2791else
2792  echo "$as_me:$LINENO: result: no" >&5
2793echo "${ECHO_T}no" >&6
2794fi
2795
2796  test -n "$AWK" && break
2797done
2798
2799
2800if test -f etc/toolcheck; then
2801{ echo "$as_me:$LINENO: checking for buggy tools..." >&5
2802echo "$as_me: checking for buggy tools..." >&6;}
2803sh etc/toolcheck 1>&6
2804fi
2805
2806
2807{ echo "$as_me:$LINENO: checking for System V..." >&5
2808echo "$as_me: checking for System V..." >&6;}
2809cat >conftest.$ac_ext <<_ACEOF
2810/* confdefs.h.  */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h.  */
2815#include <sys/types.h>
2816#include <signal.h>
2817#include <fcntl.h>
2818int
2819main ()
2820{
2821int x = SIGCHLD | FNDELAY;
2822  ;
2823  return 0;
2824}
2825_ACEOF
2826rm -f conftest.$ac_objext
2827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828  (eval $ac_compile) 2>conftest.er1
2829  ac_status=$?
2830  grep -v '^ *+' conftest.er1 >conftest.err
2831  rm -f conftest.er1
2832  cat conftest.err >&5
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); } &&
2835	 { ac_try='test -z "$ac_c_werror_flag"
2836			 || test ! -s conftest.err'
2837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838  (eval $ac_try) 2>&5
2839  ac_status=$?
2840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841  (exit $ac_status); }; } &&
2842	 { ac_try='test -s conftest.$ac_objext'
2843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844  (eval $ac_try) 2>&5
2845  ac_status=$?
2846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847  (exit $ac_status); }; }; then
2848  :
2849else
2850  echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853cat >>confdefs.h <<\_ACEOF
2854#define SYSV 1
2855_ACEOF
2856
2857fi
2858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2859
2860{ echo "$as_me:$LINENO: checking for Solaris 2.x..." >&5
2861echo "$as_me: checking for Solaris 2.x..." >&6;}
2862cat >conftest.$ac_ext <<_ACEOF
2863/* confdefs.h.  */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
2867/* end confdefs.h.  */
2868#if defined(SVR4) && defined(sun)
2869  yes
2870#endif
2871
2872_ACEOF
2873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2874  $EGREP "yes" >/dev/null 2>&1; then
2875  LIBS="$LIBS -lsocket -lnsl -lkstat"
2876fi
2877rm -f conftest*
2878
2879
2880
2881{ echo "$as_me:$LINENO: checking select..." >&5
2882echo "$as_me: checking select..." >&6;}
2883cat >conftest.$ac_ext <<_ACEOF
2884/* confdefs.h.  */
2885_ACEOF
2886cat confdefs.h >>conftest.$ac_ext
2887cat >>conftest.$ac_ext <<_ACEOF
2888/* end confdefs.h.  */
2889
2890int
2891main ()
2892{
2893select(0, 0, 0, 0, 0);
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898rm -f conftest.$ac_objext conftest$ac_exeext
2899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2900  (eval $ac_link) 2>conftest.er1
2901  ac_status=$?
2902  grep -v '^ *+' conftest.er1 >conftest.err
2903  rm -f conftest.er1
2904  cat conftest.err >&5
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); } &&
2907	 { ac_try='test -z "$ac_c_werror_flag"
2908			 || test ! -s conftest.err'
2909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910  (eval $ac_try) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }; } &&
2914	 { ac_try='test -s conftest$ac_exeext'
2915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916  (eval $ac_try) 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }; }; then
2920  :
2921else
2922  echo "$as_me: failed program was:" >&5
2923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925LIBS="$LIBS -lnet -lnsl"
2926{ echo "$as_me:$LINENO: checking select with $LIBS..." >&5
2927echo "$as_me: checking select with $LIBS..." >&6;}
2928cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h.  */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h.  */
2934
2935int
2936main ()
2937{
2938select(0, 0, 0, 0, 0);
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  :
2966else
2967  echo "$as_me: failed program was:" >&5
2968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970{ { echo "$as_me:$LINENO: error: !!! no select - no screen" >&5
2971echo "$as_me: error: !!! no select - no screen" >&2;}
2972   { (exit 1); exit 1; }; }
2973fi
2974rm -f conftest.err conftest.$ac_objext \
2975      conftest$ac_exeext conftest.$ac_ext
2976
2977fi
2978rm -f conftest.err conftest.$ac_objext \
2979      conftest$ac_exeext conftest.$ac_ext
2980
2981{ echo "$as_me:$LINENO: checking select return value..." >&5
2982echo "$as_me: checking select return value..." >&6;}
2983if test "$cross_compiling" = yes; then
2984  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2985See \`config.log' for more details." >&5
2986echo "$as_me: error: cannot run test program while cross compiling
2987See \`config.log' for more details." >&2;}
2988   { (exit 1); exit 1; }; }
2989else
2990  cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h.  */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h.  */
2996
2997#include <sys/types.h>
2998#include <sys/stat.h>
2999#include <fcntl.h>
3000
3001char *nam = "/tmp/conftest$$";
3002
3003#ifdef NAMEDPIPE
3004
3005#ifndef O_NONBLOCK
3006#define O_NONBLOCK O_NDELAY
3007#endif
3008#ifndef S_IFIFO
3009#define S_IFIFO 0010000
3010#endif
3011
3012
3013main()
3014{
3015#ifdef FD_SET
3016  fd_set f;
3017#else
3018  int f;
3019#endif
3020
3021#ifdef __FreeBSD__
3022/* From Andrew A. Chernov (ache@astral.msk.su):
3023 * opening RDWR fifo fails in BSD 4.4, but select return values are
3024 * right.
3025 */
3026  exit(0);
3027#endif
3028  (void)alarm(5);
3029#ifdef POSIX
3030  if (mkfifo(nam, 0777))
3031#else
3032  if (mknod(nam, S_IFIFO|0777, 0))
3033#endif
3034    exit(1);
3035  close(0);
3036  if (open(nam, O_RDWR | O_NONBLOCK))
3037    exit(1);
3038  if (write(0, "TEST", 4) == -1)
3039    exit(1);
3040
3041#else
3042
3043#include <sys/types.h>
3044#include <sys/socket.h>
3045#include <sys/un.h>
3046
3047main()
3048{
3049  int s1, s2, l;
3050  struct sockaddr_un a;
3051#ifdef FD_SET
3052  fd_set f;
3053#else
3054  int f;
3055#endif
3056
3057  (void)alarm(5);
3058  if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3059    exit(1);
3060  a.sun_family = AF_UNIX;
3061  strcpy(a.sun_path, nam);
3062  (void) unlink(nam);
3063  if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
3064    exit(1);
3065  if (listen(s1, 2))
3066    exit(1);
3067  if (fork() == 0)
3068    {
3069      if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3070	kill(getppid(), 3);
3071      (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
3072      if (write(s2, "HELLO", 5) == -1)
3073	kill(getppid(), 3);
3074      exit(0);
3075    }
3076  l = sizeof(a);
3077  close(0);
3078  if (accept(s1, (struct sockaddr *)&a, &l))
3079    exit(1);
3080#endif
3081
3082
3083#ifdef FD_SET
3084  FD_SET(0, &f);
3085#else
3086  f = 1;
3087#endif
3088  if (select(1, &f, 0, 0, 0) == -1)
3089    exit(1);
3090  if (select(1, &f, &f, 0, 0) != 2)
3091    exit(1);
3092  exit(0);
3093}
3094
3095_ACEOF
3096rm -f conftest$ac_exeext
3097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3098  (eval $ac_link) 2>&5
3099  ac_status=$?
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103  (eval $ac_try) 2>&5
3104  ac_status=$?
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); }; }; then
3107  echo "- select is ok" 1>&6
3108
3109else
3110  echo "$as_me: program exited with status $ac_status" >&5
3111echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114( exit $ac_status )
3115echo "- select can't count" 1>&6
3116 cat >>confdefs.h <<\_ACEOF
3117#define SELECT_BROKEN 1
3118_ACEOF
3119
3120fi
3121rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3122fi
3123
3124{ echo "$as_me:$LINENO: checking for tgetent..." >&5
3125echo "$as_me: checking for tgetent..." >&6;}
3126cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h.  */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h.  */
3132
3133int
3134main ()
3135{
3136tgetent((char *)0, (char *)0);
3137  ;
3138  return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext conftest$ac_exeext
3142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3143  (eval $ac_link) 2>conftest.er1
3144  ac_status=$?
3145  grep -v '^ *+' conftest.er1 >conftest.err
3146  rm -f conftest.er1
3147  cat conftest.err >&5
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); } &&
3150	 { ac_try='test -z "$ac_c_werror_flag"
3151			 || test ! -s conftest.err'
3152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153  (eval $ac_try) 2>&5
3154  ac_status=$?
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); }; } &&
3157	 { ac_try='test -s conftest$ac_exeext'
3158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159  (eval $ac_try) 2>&5
3160  ac_status=$?
3161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); }; }; then
3163  :
3164else
3165  echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168olibs="$LIBS"
3169LIBS="-lcurses $olibs"
3170{ echo "$as_me:$LINENO: checking libcurses..." >&5
3171echo "$as_me: checking libcurses..." >&6;}
3172cat >conftest.$ac_ext <<_ACEOF
3173/* confdefs.h.  */
3174_ACEOF
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h.  */
3178
3179int
3180main ()
3181{
3182
3183#ifdef __hpux
3184__sorry_hpux_libcurses_is_totally_broken_in_10_10();
3185#else
3186tgetent((char *)0, (char *)0);
3187#endif
3188
3189  ;
3190  return 0;
3191}
3192_ACEOF
3193rm -f conftest.$ac_objext conftest$ac_exeext
3194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3195  (eval $ac_link) 2>conftest.er1
3196  ac_status=$?
3197  grep -v '^ *+' conftest.er1 >conftest.err
3198  rm -f conftest.er1
3199  cat conftest.err >&5
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); } &&
3202	 { ac_try='test -z "$ac_c_werror_flag"
3203			 || test ! -s conftest.err'
3204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205  (eval $ac_try) 2>&5
3206  ac_status=$?
3207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208  (exit $ac_status); }; } &&
3209	 { ac_try='test -s conftest$ac_exeext'
3210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211  (eval $ac_try) 2>&5
3212  ac_status=$?
3213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); }; }; then
3215  :
3216else
3217  echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220LIBS="-ltermcap $olibs"
3221{ echo "$as_me:$LINENO: checking libtermcap..." >&5
3222echo "$as_me: checking libtermcap..." >&6;}
3223cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h.  */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h.  */
3229
3230int
3231main ()
3232{
3233tgetent((char *)0, (char *)0);
3234  ;
3235  return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext conftest$ac_exeext
3239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240  (eval $ac_link) 2>conftest.er1
3241  ac_status=$?
3242  grep -v '^ *+' conftest.er1 >conftest.err
3243  rm -f conftest.er1
3244  cat conftest.err >&5
3245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); } &&
3247	 { ac_try='test -z "$ac_c_werror_flag"
3248			 || test ! -s conftest.err'
3249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250  (eval $ac_try) 2>&5
3251  ac_status=$?
3252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253  (exit $ac_status); }; } &&
3254	 { ac_try='test -s conftest$ac_exeext'
3255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256  (eval $ac_try) 2>&5
3257  ac_status=$?
3258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259  (exit $ac_status); }; }; then
3260  :
3261else
3262  echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265LIBS="-ltermlib $olibs"
3266{ echo "$as_me:$LINENO: checking libtermlib..." >&5
3267echo "$as_me: checking libtermlib..." >&6;}
3268cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h.  */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h.  */
3274
3275int
3276main ()
3277{
3278tgetent((char *)0, (char *)0);
3279  ;
3280  return 0;
3281}
3282_ACEOF
3283rm -f conftest.$ac_objext conftest$ac_exeext
3284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3285  (eval $ac_link) 2>conftest.er1
3286  ac_status=$?
3287  grep -v '^ *+' conftest.er1 >conftest.err
3288  rm -f conftest.er1
3289  cat conftest.err >&5
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); } &&
3292	 { ac_try='test -z "$ac_c_werror_flag"
3293			 || test ! -s conftest.err'
3294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295  (eval $ac_try) 2>&5
3296  ac_status=$?
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); }; } &&
3299	 { ac_try='test -s conftest$ac_exeext'
3300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301  (eval $ac_try) 2>&5
3302  ac_status=$?
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); }; }; then
3305  :
3306else
3307  echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
3310LIBS="-lncurses $olibs"
3311{ echo "$as_me:$LINENO: checking libncurses..." >&5
3312echo "$as_me: checking libncurses..." >&6;}
3313cat >conftest.$ac_ext <<_ACEOF
3314/* confdefs.h.  */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h.  */
3319
3320int
3321main ()
3322{
3323tgetent((char *)0, (char *)0);
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328rm -f conftest.$ac_objext conftest$ac_exeext
3329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3330  (eval $ac_link) 2>conftest.er1
3331  ac_status=$?
3332  grep -v '^ *+' conftest.er1 >conftest.err
3333  rm -f conftest.er1
3334  cat conftest.err >&5
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); } &&
3337	 { ac_try='test -z "$ac_c_werror_flag"
3338			 || test ! -s conftest.err'
3339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340  (eval $ac_try) 2>&5
3341  ac_status=$?
3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); }; } &&
3344	 { ac_try='test -s conftest$ac_exeext'
3345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346  (eval $ac_try) 2>&5
3347  ac_status=$?
3348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349  (exit $ac_status); }; }; then
3350  :
3351else
3352  echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355{ { echo "$as_me:$LINENO: error: !!! no tgetent - no screen" >&5
3356echo "$as_me: error: !!! no tgetent - no screen" >&2;}
3357   { (exit 1); exit 1; }; }
3358fi
3359rm -f conftest.err conftest.$ac_objext \
3360      conftest$ac_exeext conftest.$ac_ext
3361fi
3362rm -f conftest.err conftest.$ac_objext \
3363      conftest$ac_exeext conftest.$ac_ext
3364fi
3365rm -f conftest.err conftest.$ac_objext \
3366      conftest$ac_exeext conftest.$ac_ext
3367fi
3368rm -f conftest.err conftest.$ac_objext \
3369      conftest$ac_exeext conftest.$ac_ext
3370fi
3371rm -f conftest.err conftest.$ac_objext \
3372      conftest$ac_exeext conftest.$ac_ext
3373
3374if test "$cross_compiling" = yes; then
3375  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3376See \`config.log' for more details." >&5
3377echo "$as_me: error: cannot run test program while cross compiling
3378See \`config.log' for more details." >&2;}
3379   { (exit 1); exit 1; }; }
3380else
3381  cat >conftest.$ac_ext <<_ACEOF
3382/* confdefs.h.  */
3383_ACEOF
3384cat confdefs.h >>conftest.$ac_ext
3385cat >>conftest.$ac_ext <<_ACEOF
3386/* end confdefs.h.  */
3387
3388main()
3389{
3390 exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
3391}
3392_ACEOF
3393rm -f conftest$ac_exeext
3394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3395  (eval $ac_link) 2>&5
3396  ac_status=$?
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400  (eval $ac_try) 2>&5
3401  ac_status=$?
3402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); }; }; then
3404  echo "- you use the termcap database" 1>&6
3405
3406else
3407  echo "$as_me: program exited with status $ac_status" >&5
3408echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
3411( exit $ac_status )
3412echo "- you use the terminfo database" 1>&6
3413 cat >>confdefs.h <<\_ACEOF
3414#define TERMINFO 1
3415_ACEOF
3416
3417fi
3418rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3419fi
3420{ echo "$as_me:$LINENO: checking ospeed..." >&5
3421echo "$as_me: checking ospeed..." >&6;}
3422cat >conftest.$ac_ext <<_ACEOF
3423/* confdefs.h.  */
3424_ACEOF
3425cat confdefs.h >>conftest.$ac_ext
3426cat >>conftest.$ac_ext <<_ACEOF
3427/* end confdefs.h.  */
3428extern short ospeed;
3429int
3430main ()
3431{
3432ospeed=5;
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437rm -f conftest.$ac_objext conftest$ac_exeext
3438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3439  (eval $ac_link) 2>conftest.er1
3440  ac_status=$?
3441  grep -v '^ *+' conftest.er1 >conftest.err
3442  rm -f conftest.er1
3443  cat conftest.err >&5
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); } &&
3446	 { ac_try='test -z "$ac_c_werror_flag"
3447			 || test ! -s conftest.err'
3448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449  (eval $ac_try) 2>&5
3450  ac_status=$?
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); }; } &&
3453	 { ac_try='test -s conftest$ac_exeext'
3454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455  (eval $ac_try) 2>&5
3456  ac_status=$?
3457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458  (exit $ac_status); }; }; then
3459  :
3460else
3461  echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464cat >>confdefs.h <<\_ACEOF
3465#define NEED_OSPEED 1
3466_ACEOF
3467
3468fi
3469rm -f conftest.err conftest.$ac_objext \
3470      conftest$ac_exeext conftest.$ac_ext
3471
3472{ echo "$as_me:$LINENO: checking for /dev/ptc..." >&5
3473echo "$as_me: checking for /dev/ptc..." >&6;}
3474if test -r /dev/ptc; then
3475cat >>confdefs.h <<\_ACEOF
3476#define HAVE_DEV_PTC 1
3477_ACEOF
3478
3479fi
3480
3481{ echo "$as_me:$LINENO: checking for SVR4 ptys..." >&5
3482echo "$as_me: checking for SVR4 ptys..." >&6;}
3483sysvr4ptys=
3484if test -c /dev/ptmx ; then
3485cat >conftest.$ac_ext <<_ACEOF
3486/* confdefs.h.  */
3487_ACEOF
3488cat confdefs.h >>conftest.$ac_ext
3489cat >>conftest.$ac_ext <<_ACEOF
3490/* end confdefs.h.  */
3491
3492int
3493main ()
3494{
3495ptsname(0);grantpt(0);unlockpt(0);
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500rm -f conftest.$ac_objext conftest$ac_exeext
3501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3502  (eval $ac_link) 2>conftest.er1
3503  ac_status=$?
3504  grep -v '^ *+' conftest.er1 >conftest.err
3505  rm -f conftest.er1
3506  cat conftest.err >&5
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); } &&
3509	 { ac_try='test -z "$ac_c_werror_flag"
3510			 || test ! -s conftest.err'
3511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512  (eval $ac_try) 2>&5
3513  ac_status=$?
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); }; } &&
3516	 { ac_try='test -s conftest$ac_exeext'
3517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518  (eval $ac_try) 2>&5
3519  ac_status=$?
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); }; }; then
3522  cat >>confdefs.h <<\_ACEOF
3523#define HAVE_SVR4_PTYS 1
3524_ACEOF
3525
3526sysvr4ptys=1
3527else
3528  echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531fi
3532rm -f conftest.err conftest.$ac_objext \
3533      conftest$ac_exeext conftest.$ac_ext
3534fi
3535
3536
3537for ac_func in getpt
3538do
3539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3540echo "$as_me:$LINENO: checking for $ac_func" >&5
3541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3542if eval "test \"\${$as_ac_var+set}\" = set"; then
3543  echo $ECHO_N "(cached) $ECHO_C" >&6
3544else
3545  cat >conftest.$ac_ext <<_ACEOF
3546/* confdefs.h.  */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h.  */
3551/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3552   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3553#define $ac_func innocuous_$ac_func
3554
3555/* System header to define __stub macros and hopefully few prototypes,
3556    which can conflict with char $ac_func (); below.
3557    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3558    <limits.h> exists even on freestanding compilers.  */
3559
3560#ifdef __STDC__
3561# include <limits.h>
3562#else
3563# include <assert.h>
3564#endif
3565
3566#undef $ac_func
3567
3568/* Override any gcc2 internal prototype to avoid an error.  */
3569#ifdef __cplusplus
3570extern "C"
3571{
3572#endif
3573/* We use char because int might match the return type of a gcc2
3574   builtin and then its argument prototype would still apply.  */
3575char $ac_func ();
3576/* The GNU C library defines this for functions which it implements
3577    to always fail with ENOSYS.  Some functions are actually named
3578    something starting with __ and the normal name is an alias.  */
3579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3580choke me
3581#else
3582char (*f) () = $ac_func;
3583#endif
3584#ifdef __cplusplus
3585}
3586#endif
3587
3588int
3589main ()
3590{
3591return f != $ac_func;
3592  ;
3593  return 0;
3594}
3595_ACEOF
3596rm -f conftest.$ac_objext conftest$ac_exeext
3597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3598  (eval $ac_link) 2>conftest.er1
3599  ac_status=$?
3600  grep -v '^ *+' conftest.er1 >conftest.err
3601  rm -f conftest.er1
3602  cat conftest.err >&5
3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); } &&
3605	 { ac_try='test -z "$ac_c_werror_flag"
3606			 || test ! -s conftest.err'
3607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608  (eval $ac_try) 2>&5
3609  ac_status=$?
3610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611  (exit $ac_status); }; } &&
3612	 { ac_try='test -s conftest$ac_exeext'
3613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614  (eval $ac_try) 2>&5
3615  ac_status=$?
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); }; }; then
3618  eval "$as_ac_var=yes"
3619else
3620  echo "$as_me: failed program was:" >&5
3621sed 's/^/| /' conftest.$ac_ext >&5
3622
3623eval "$as_ac_var=no"
3624fi
3625rm -f conftest.err conftest.$ac_objext \
3626      conftest$ac_exeext conftest.$ac_ext
3627fi
3628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3629echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3630if test `eval echo '${'$as_ac_var'}'` = yes; then
3631  cat >>confdefs.h <<_ACEOF
3632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3633_ACEOF
3634
3635fi
3636done
3637
3638
3639if test -z "$sysvr4ptys"; then
3640
3641for ac_func in openpty
3642do
3643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3644echo "$as_me:$LINENO: checking for $ac_func" >&5
3645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3646if eval "test \"\${$as_ac_var+set}\" = set"; then
3647  echo $ECHO_N "(cached) $ECHO_C" >&6
3648else
3649  cat >conftest.$ac_ext <<_ACEOF
3650/* confdefs.h.  */
3651_ACEOF
3652cat confdefs.h >>conftest.$ac_ext
3653cat >>conftest.$ac_ext <<_ACEOF
3654/* end confdefs.h.  */
3655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3656   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3657#define $ac_func innocuous_$ac_func
3658
3659/* System header to define __stub macros and hopefully few prototypes,
3660    which can conflict with char $ac_func (); below.
3661    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3662    <limits.h> exists even on freestanding compilers.  */
3663
3664#ifdef __STDC__
3665# include <limits.h>
3666#else
3667# include <assert.h>
3668#endif
3669
3670#undef $ac_func
3671
3672/* Override any gcc2 internal prototype to avoid an error.  */
3673#ifdef __cplusplus
3674extern "C"
3675{
3676#endif
3677/* We use char because int might match the return type of a gcc2
3678   builtin and then its argument prototype would still apply.  */
3679char $ac_func ();
3680/* The GNU C library defines this for functions which it implements
3681    to always fail with ENOSYS.  Some functions are actually named
3682    something starting with __ and the normal name is an alias.  */
3683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3684choke me
3685#else
3686char (*f) () = $ac_func;
3687#endif
3688#ifdef __cplusplus
3689}
3690#endif
3691
3692int
3693main ()
3694{
3695return f != $ac_func;
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700rm -f conftest.$ac_objext conftest$ac_exeext
3701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3702  (eval $ac_link) 2>conftest.er1
3703  ac_status=$?
3704  grep -v '^ *+' conftest.er1 >conftest.err
3705  rm -f conftest.er1
3706  cat conftest.err >&5
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); } &&
3709	 { ac_try='test -z "$ac_c_werror_flag"
3710			 || test ! -s conftest.err'
3711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712  (eval $ac_try) 2>&5
3713  ac_status=$?
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); }; } &&
3716	 { ac_try='test -s conftest$ac_exeext'
3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718  (eval $ac_try) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; }; then
3722  eval "$as_ac_var=yes"
3723else
3724  echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
3727eval "$as_ac_var=no"
3728fi
3729rm -f conftest.err conftest.$ac_objext \
3730      conftest$ac_exeext conftest.$ac_ext
3731fi
3732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3733echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3734if test `eval echo '${'$as_ac_var'}'` = yes; then
3735  cat >>confdefs.h <<_ACEOF
3736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3737_ACEOF
3738
3739else
3740  echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
3741echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
3742if test "${ac_cv_lib_util_openpty+set}" = set; then
3743  echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745  ac_check_lib_save_LIBS=$LIBS
3746LIBS="-lutil  $LIBS"
3747cat >conftest.$ac_ext <<_ACEOF
3748/* confdefs.h.  */
3749_ACEOF
3750cat confdefs.h >>conftest.$ac_ext
3751cat >>conftest.$ac_ext <<_ACEOF
3752/* end confdefs.h.  */
3753
3754/* Override any gcc2 internal prototype to avoid an error.  */
3755#ifdef __cplusplus
3756extern "C"
3757#endif
3758/* We use char because int might match the return type of a gcc2
3759   builtin and then its argument prototype would still apply.  */
3760char openpty ();
3761int
3762main ()
3763{
3764openpty ();
3765  ;
3766  return 0;
3767}
3768_ACEOF
3769rm -f conftest.$ac_objext conftest$ac_exeext
3770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3771  (eval $ac_link) 2>conftest.er1
3772  ac_status=$?
3773  grep -v '^ *+' conftest.er1 >conftest.err
3774  rm -f conftest.er1
3775  cat conftest.err >&5
3776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777  (exit $ac_status); } &&
3778	 { ac_try='test -z "$ac_c_werror_flag"
3779			 || test ! -s conftest.err'
3780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781  (eval $ac_try) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; } &&
3785	 { ac_try='test -s conftest$ac_exeext'
3786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787  (eval $ac_try) 2>&5
3788  ac_status=$?
3789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790  (exit $ac_status); }; }; then
3791  ac_cv_lib_util_openpty=yes
3792else
3793  echo "$as_me: failed program was:" >&5
3794sed 's/^/| /' conftest.$ac_ext >&5
3795
3796ac_cv_lib_util_openpty=no
3797fi
3798rm -f conftest.err conftest.$ac_objext \
3799      conftest$ac_exeext conftest.$ac_ext
3800LIBS=$ac_check_lib_save_LIBS
3801fi
3802echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
3803echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
3804if test $ac_cv_lib_util_openpty = yes; then
3805  cat >>confdefs.h <<\_ACEOF
3806#define HAVE_OPENPTY 1
3807_ACEOF
3808 LIBS="$LIBS -lutil"
3809fi
3810
3811fi
3812done
3813
3814fi
3815
3816{ echo "$as_me:$LINENO: checking for ptyranges..." >&5
3817echo "$as_me: checking for ptyranges..." >&6;}
3818if test -d /dev/ptym ; then
3819pdir='/dev/ptym'
3820else
3821pdir='/dev'
3822fi
3823cat >conftest.$ac_ext <<_ACEOF
3824/* confdefs.h.  */
3825_ACEOF
3826cat confdefs.h >>conftest.$ac_ext
3827cat >>conftest.$ac_ext <<_ACEOF
3828/* end confdefs.h.  */
3829#ifdef M_UNIX
3830   yes;
3831#endif
3832
3833_ACEOF
3834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835  $EGREP "yes" >/dev/null 2>&1; then
3836  ptys=`echo /dev/ptyp??`
3837else
3838  ptys=`echo $pdir/pty??`
3839fi
3840rm -f conftest*
3841
3842if test "$ptys" != "$pdir/pty??" ; then
3843p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
3844p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
3845cat >>confdefs.h <<_ACEOF
3846#define PTYRANGE0 "$p0"
3847_ACEOF
3848
3849cat >>confdefs.h <<_ACEOF
3850#define PTYRANGE1 "$p1"
3851_ACEOF
3852
3853fi
3854
3855
3856# Check whether --with-pty-mode or --without-pty-mode was given.
3857if test "${with_pty_mode+set}" = set; then
3858  withval="$with_pty_mode"
3859   ptymode="${withval}"
3860fi;
3861
3862# Check whether --with-pty-group or --without-pty-group was given.
3863if test "${with_pty_group+set}" = set; then
3864  withval="$with_pty_group"
3865   ptygrp="${withval}"
3866fi;
3867test -n "$ptymode" || ptymode=0620
3868if test -n "$ptygrp" ; then
3869cat >>confdefs.h <<_ACEOF
3870#define PTYMODE $ptymode
3871_ACEOF
3872
3873cat >>confdefs.h <<_ACEOF
3874#define PTYGROUP $ptygrp
3875_ACEOF
3876
3877else
3878
3879{ echo "$as_me:$LINENO: checking default tty permissions/group..." >&5
3880echo "$as_me: checking default tty permissions/group..." >&6;}
3881rm -f conftest_grp
3882if test "$cross_compiling" = yes; then
3883  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3884See \`config.log' for more details." >&5
3885echo "$as_me: error: cannot run test program while cross compiling
3886See \`config.log' for more details." >&2;}
3887   { (exit 1); exit 1; }; }
3888else
3889  cat >conftest.$ac_ext <<_ACEOF
3890/* confdefs.h.  */
3891_ACEOF
3892cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF
3894/* end confdefs.h.  */
3895
3896#include <sys/types.h>
3897#include <sys/stat.h>
3898#include <stdio.h>
3899main()
3900{
3901  struct stat sb;
3902  char *x,*ttyname();
3903  int om, m;
3904  FILE *fp;
3905
3906  if (!(x = ttyname(0))) exit(1);
3907  if (stat(x, &sb)) exit(1);
3908  om = sb.st_mode;
3909  if (om & 002) exit(0);
3910  m = system("mesg y");
3911  if (m == -1 || m == 127) exit(1);
3912  if (stat(x, &sb)) exit(1);
3913  m = sb.st_mode;
3914  if (chmod(x, om)) exit(1);
3915  if (m & 002) exit(0);
3916  if (sb.st_gid == getgid()) exit(1);
3917  if (!(fp=fopen("conftest_grp", "w")))
3918    exit(1);
3919  fprintf(fp, "%d\n", sb.st_gid);
3920  fclose(fp);
3921  exit(0);
3922}
3923
3924_ACEOF
3925rm -f conftest$ac_exeext
3926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927  (eval $ac_link) 2>&5
3928  ac_status=$?
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932  (eval $ac_try) 2>&5
3933  ac_status=$?
3934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935  (exit $ac_status); }; }; then
3936
3937    if test -f conftest_grp; then
3938	ptygrp=`cat conftest_grp`
3939	echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
3940
3941	cat >>confdefs.h <<_ACEOF
3942#define PTYMODE $ptymode
3943_ACEOF
3944
3945	cat >>confdefs.h <<_ACEOF
3946#define PTYGROUP $ptygrp
3947_ACEOF
3948
3949    else
3950	echo "- ptys are world accessable" 1>&6
3951
3952    fi
3953
3954else
3955  echo "$as_me: program exited with status $ac_status" >&5
3956echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959( exit $ac_status )
3960
3961    WRITEPATH=''
3962    XTERMPATH=''
3963    # Extract the first word of "write", so it can be a program name with args.
3964set dummy write; ac_word=$2
3965echo "$as_me:$LINENO: checking for $ac_word" >&5
3966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967if test "${ac_cv_path_WRITEPATH+set}" = set; then
3968  echo $ECHO_N "(cached) $ECHO_C" >&6
3969else
3970  case $WRITEPATH in
3971  [\\/]* | ?:[\\/]*)
3972  ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path.
3973  ;;
3974  *)
3975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH
3977do
3978  IFS=$as_save_IFS
3979  test -z "$as_dir" && as_dir=.
3980  for ac_exec_ext in '' $ac_executable_extensions; do
3981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982    ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext"
3983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984    break 2
3985  fi
3986done
3987done
3988
3989  ;;
3990esac
3991fi
3992WRITEPATH=$ac_cv_path_WRITEPATH
3993
3994if test -n "$WRITEPATH"; then
3995  echo "$as_me:$LINENO: result: $WRITEPATH" >&5
3996echo "${ECHO_T}$WRITEPATH" >&6
3997else
3998  echo "$as_me:$LINENO: result: no" >&5
3999echo "${ECHO_T}no" >&6
4000fi
4001
4002    # Extract the first word of "xterm", so it can be a program name with args.
4003set dummy xterm; ac_word=$2
4004echo "$as_me:$LINENO: checking for $ac_word" >&5
4005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006if test "${ac_cv_path_XTERMPATH+set}" = set; then
4007  echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009  case $XTERMPATH in
4010  [\\/]* | ?:[\\/]*)
4011  ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path.
4012  ;;
4013  *)
4014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017  IFS=$as_save_IFS
4018  test -z "$as_dir" && as_dir=.
4019  for ac_exec_ext in '' $ac_executable_extensions; do
4020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021    ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext"
4022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023    break 2
4024  fi
4025done
4026done
4027
4028  ;;
4029esac
4030fi
4031XTERMPATH=$ac_cv_path_XTERMPATH
4032
4033if test -n "$XTERMPATH"; then
4034  echo "$as_me:$LINENO: result: $XTERMPATH" >&5
4035echo "${ECHO_T}$XTERMPATH" >&6
4036else
4037  echo "$as_me:$LINENO: result: no" >&5
4038echo "${ECHO_T}no" >&6
4039fi
4040
4041    found=
4042    if test -n "$WRITEPATH$XTERMPATH"; then
4043      findfollow=
4044      lsfollow=
4045      found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
4046      if test -n "$found"; then
4047	findfollow=-follow
4048	lsfollow=L
4049      fi
4050      if test -n "$XTERMPATH"; then
4051	ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
4052	if test tty != "$ptygrpn"; then
4053	  XTERMPATH=
4054	fi
4055      fi
4056    fi
4057    if test -n "$WRITEPATH$XTERMPATH"; then
4058      found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print`
4059      if test -n "$found"; then
4060	ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
4061	echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
4062
4063	cat >>confdefs.h <<_ACEOF
4064#define PTYMODE $ptymode
4065_ACEOF
4066
4067	cat >>confdefs.h <<_ACEOF
4068#define PTYGROUP $ptygrp
4069_ACEOF
4070
4071      else
4072	echo "- ptys are world accessable" 1>&6
4073
4074      fi
4075    else
4076      echo "- can't determine - assume ptys are world accessable" 1>&6
4077
4078    fi
4079
4080
4081fi
4082rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4083fi
4084rm -f conftest_grp
4085fi
4086
4087if test -n "$posix" ; then
4088
4089echo "assuming posix signal definition" 1>&6
4090
4091cat >>confdefs.h <<\_ACEOF
4092#define SIGVOID 1
4093_ACEOF
4094
4095
4096else
4097
4098{ echo "$as_me:$LINENO: checking return type of signal handlers..." >&5
4099echo "$as_me: checking return type of signal handlers..." >&6;}
4100cat >conftest.$ac_ext <<_ACEOF
4101/* confdefs.h.  */
4102_ACEOF
4103cat confdefs.h >>conftest.$ac_ext
4104cat >>conftest.$ac_ext <<_ACEOF
4105/* end confdefs.h.  */
4106#include <sys/types.h>
4107#include <signal.h>
4108#ifdef signal
4109#undef signal
4110#endif
4111extern void (*signal ()) ();
4112int
4113main ()
4114{
4115int i;
4116  ;
4117  return 0;
4118}
4119_ACEOF
4120rm -f conftest.$ac_objext
4121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122  (eval $ac_compile) 2>conftest.er1
4123  ac_status=$?
4124  grep -v '^ *+' conftest.er1 >conftest.err
4125  rm -f conftest.er1
4126  cat conftest.err >&5
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); } &&
4129	 { ac_try='test -z "$ac_c_werror_flag"
4130			 || test ! -s conftest.err'
4131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132  (eval $ac_try) 2>&5
4133  ac_status=$?
4134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135  (exit $ac_status); }; } &&
4136	 { ac_try='test -s conftest.$ac_objext'
4137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138  (eval $ac_try) 2>&5
4139  ac_status=$?
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); }; }; then
4142  cat >>confdefs.h <<\_ACEOF
4143#define SIGVOID 1
4144_ACEOF
4145
4146else
4147  echo "$as_me: failed program was:" >&5
4148sed 's/^/| /' conftest.$ac_ext >&5
4149
4150fi
4151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152{ echo "$as_me:$LINENO: checking sigset..." >&5
4153echo "$as_me: checking sigset..." >&6;}
4154cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h.  */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h.  */
4160
4161#include <sys/types.h>
4162#include <signal.h>
4163
4164int
4165main ()
4166{
4167
4168#ifdef SIGVOID
4169sigset(0, (void (*)())0);
4170#else
4171sigset(0, (int (*)())0);
4172#endif
4173
4174  ;
4175  return 0;
4176}
4177_ACEOF
4178rm -f conftest.$ac_objext conftest$ac_exeext
4179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180  (eval $ac_link) 2>conftest.er1
4181  ac_status=$?
4182  grep -v '^ *+' conftest.er1 >conftest.err
4183  rm -f conftest.er1
4184  cat conftest.err >&5
4185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186  (exit $ac_status); } &&
4187	 { ac_try='test -z "$ac_c_werror_flag"
4188			 || test ! -s conftest.err'
4189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190  (eval $ac_try) 2>&5
4191  ac_status=$?
4192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193  (exit $ac_status); }; } &&
4194	 { ac_try='test -s conftest$ac_exeext'
4195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196  (eval $ac_try) 2>&5
4197  ac_status=$?
4198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); }; }; then
4200  cat >>confdefs.h <<\_ACEOF
4201#define USESIGSET 1
4202_ACEOF
4203
4204else
4205  echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
4207
4208fi
4209rm -f conftest.err conftest.$ac_objext \
4210      conftest$ac_exeext conftest.$ac_ext
4211{ echo "$as_me:$LINENO: checking signal implementation..." >&5
4212echo "$as_me: checking signal implementation..." >&6;}
4213if test "$cross_compiling" = yes; then
4214  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4215See \`config.log' for more details." >&5
4216echo "$as_me: error: cannot run test program while cross compiling
4217See \`config.log' for more details." >&2;}
4218   { (exit 1); exit 1; }; }
4219else
4220  cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h.  */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h.  */
4226
4227#include <sys/types.h>
4228#include <signal.h>
4229
4230#ifndef SIGCLD
4231#define SIGCLD SIGCHLD
4232#endif
4233#ifdef USESIGSET
4234#define signal sigset
4235#endif
4236
4237int got;
4238
4239#ifdef SIGVOID
4240void
4241#endif
4242hand()
4243{
4244  got++;
4245}
4246
4247main()
4248{
4249  /* on hpux we use sigvec to get bsd signals */
4250#ifdef __hpux
4251  (void)signal(SIGCLD, hand);
4252  kill(getpid(), SIGCLD);
4253  kill(getpid(), SIGCLD);
4254  if (got < 2)
4255    exit(1);
4256#endif
4257  exit(0);
4258}
4259
4260_ACEOF
4261rm -f conftest$ac_exeext
4262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263  (eval $ac_link) 2>&5
4264  ac_status=$?
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268  (eval $ac_try) 2>&5
4269  ac_status=$?
4270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271  (exit $ac_status); }; }; then
4272  :
4273else
4274  echo "$as_me: program exited with status $ac_status" >&5
4275echo "$as_me: failed program was:" >&5
4276sed 's/^/| /' conftest.$ac_ext >&5
4277
4278( exit $ac_status )
4279cat >>confdefs.h <<\_ACEOF
4280#define SYSVSIGS 1
4281_ACEOF
4282
4283fi
4284rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4285fi
4286
4287fi
4288
4289          ac_config_files="$ac_config_files Makefile"
4290cat >confcache <<\_ACEOF
4291# This file is a shell script that caches the results of configure
4292# tests run on this system so they can be shared between configure
4293# scripts and configure runs, see configure's option --config-cache.
4294# It is not useful on other systems.  If it contains results you don't
4295# want to keep, you may remove or edit it.
4296#
4297# config.status only pays attention to the cache file if you give it
4298# the --recheck option to rerun configure.
4299#
4300# `ac_cv_env_foo' variables (set or unset) will be overridden when
4301# loading this file, other *unset* `ac_cv_foo' will be assigned the
4302# following values.
4303
4304_ACEOF
4305
4306# The following way of writing the cache mishandles newlines in values,
4307# but we know of no workaround that is simple, portable, and efficient.
4308# So, don't put newlines in cache variables' values.
4309# Ultrix sh set writes to stderr and can't be redirected directly,
4310# and sets the high bit in the cache file unless we assign to the vars.
4311{
4312  (set) 2>&1 |
4313    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4314    *ac_space=\ *)
4315      # `set' does not quote correctly, so add quotes (double-quote
4316      # substitution turns \\\\ into \\, and sed turns \\ into \).
4317      sed -n \
4318	"s/'/'\\\\''/g;
4319	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4320      ;;
4321    *)
4322      # `set' quotes correctly as required by POSIX, so do not add quotes.
4323      sed -n \
4324	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4325      ;;
4326    esac;
4327} |
4328  sed '
4329     t clear
4330     : clear
4331     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4332     t end
4333     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4334     : end' >>confcache
4335if diff $cache_file confcache >/dev/null 2>&1; then :; else
4336  if test -w $cache_file; then
4337    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4338    cat confcache >$cache_file
4339  else
4340    echo "not updating unwritable cache $cache_file"
4341  fi
4342fi
4343rm -f confcache
4344
4345test "x$prefix" = xNONE && prefix=$ac_default_prefix
4346# Let make expand exec_prefix.
4347test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4348
4349# VPATH may cause trouble with some makes, so we remove $(srcdir),
4350# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4351# trailing colons and then remove the whole line if VPATH becomes empty
4352# (actually we leave an empty line to preserve line numbers).
4353if test "x$srcdir" = x.; then
4354  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
4355s/:*\$(srcdir):*/:/;
4356s/:*\${srcdir}:*/:/;
4357s/:*@srcdir@:*/:/;
4358s/^\([^=]*=[	 ]*\):*/\1/;
4359s/:*$//;
4360s/^[^=]*=[	 ]*$//;
4361}'
4362fi
4363
4364DEFS=-DHAVE_CONFIG_H
4365
4366ac_libobjs=
4367ac_ltlibobjs=
4368for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4369  # 1. Remove the extension, and $U if already installed.
4370  ac_i=`echo "$ac_i" |
4371	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4372  # 2. Add them.
4373  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4374  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4375done
4376LIBOBJS=$ac_libobjs
4377
4378LTLIBOBJS=$ac_ltlibobjs
4379
4380
4381
4382: ${CONFIG_STATUS=./config.status}
4383ac_clean_files_save=$ac_clean_files
4384ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4385{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4386echo "$as_me: creating $CONFIG_STATUS" >&6;}
4387cat >$CONFIG_STATUS <<_ACEOF
4388#! $SHELL
4389# Generated by $as_me.
4390# Run this file to recreate the current configuration.
4391# Compiler output produced by configure, useful for debugging
4392# configure, is in config.log if it exists.
4393
4394debug=false
4395ac_cs_recheck=false
4396ac_cs_silent=false
4397SHELL=\${CONFIG_SHELL-$SHELL}
4398_ACEOF
4399
4400cat >>$CONFIG_STATUS <<\_ACEOF
4401## --------------------- ##
4402## M4sh Initialization.  ##
4403## --------------------- ##
4404
4405# Be Bourne compatible
4406if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4407  emulate sh
4408  NULLCMD=:
4409  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4410  # is contrary to our usage.  Disable this feature.
4411  alias -g '${1+"$@"}'='"$@"'
4412elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4413  set -o posix
4414fi
4415DUALCASE=1; export DUALCASE # for MKS sh
4416
4417# Support unset when possible.
4418if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4419  as_unset=unset
4420else
4421  as_unset=false
4422fi
4423
4424
4425# Work around bugs in pre-3.0 UWIN ksh.
4426$as_unset ENV MAIL MAILPATH
4427PS1='$ '
4428PS2='> '
4429PS4='+ '
4430
4431# NLS nuisances.
4432for as_var in \
4433  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4434  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4435  LC_TELEPHONE LC_TIME
4436do
4437  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4438    eval $as_var=C; export $as_var
4439  else
4440    $as_unset $as_var
4441  fi
4442done
4443
4444# Required to use basename.
4445if expr a : '\(a\)' >/dev/null 2>&1; then
4446  as_expr=expr
4447else
4448  as_expr=false
4449fi
4450
4451if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4452  as_basename=basename
4453else
4454  as_basename=false
4455fi
4456
4457
4458# Name of the executable.
4459as_me=`$as_basename "$0" ||
4460$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4461	 X"$0" : 'X\(//\)$' \| \
4462	 X"$0" : 'X\(/\)$' \| \
4463	 .     : '\(.\)' 2>/dev/null ||
4464echo X/"$0" |
4465    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4466  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
4467  	  /^X\/\(\/\).*/{ s//\1/; q; }
4468  	  s/.*/./; q'`
4469
4470
4471# PATH needs CR, and LINENO needs CR and PATH.
4472# Avoid depending upon Character Ranges.
4473as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4474as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4475as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4476as_cr_digits='0123456789'
4477as_cr_alnum=$as_cr_Letters$as_cr_digits
4478
4479# The user is always right.
4480if test "${PATH_SEPARATOR+set}" != set; then
4481  echo "#! /bin/sh" >conf$$.sh
4482  echo  "exit 0"   >>conf$$.sh
4483  chmod +x conf$$.sh
4484  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4485    PATH_SEPARATOR=';'
4486  else
4487    PATH_SEPARATOR=:
4488  fi
4489  rm -f conf$$.sh
4490fi
4491
4492
4493  as_lineno_1=$LINENO
4494  as_lineno_2=$LINENO
4495  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4496  test "x$as_lineno_1" != "x$as_lineno_2" &&
4497  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4498  # Find who we are.  Look in the path if we contain no path at all
4499  # relative or not.
4500  case $0 in
4501    *[\\/]* ) as_myself=$0 ;;
4502    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505  IFS=$as_save_IFS
4506  test -z "$as_dir" && as_dir=.
4507  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4508done
4509
4510       ;;
4511  esac
4512  # We did not find ourselves, most probably we were run as `sh COMMAND'
4513  # in which case we are not to be found in the path.
4514  if test "x$as_myself" = x; then
4515    as_myself=$0
4516  fi
4517  if test ! -f "$as_myself"; then
4518    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4519echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4520   { (exit 1); exit 1; }; }
4521  fi
4522  case $CONFIG_SHELL in
4523  '')
4524    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4526do
4527  IFS=$as_save_IFS
4528  test -z "$as_dir" && as_dir=.
4529  for as_base in sh bash ksh sh5; do
4530	 case $as_dir in
4531	 /*)
4532	   if ("$as_dir/$as_base" -c '
4533  as_lineno_1=$LINENO
4534  as_lineno_2=$LINENO
4535  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4536  test "x$as_lineno_1" != "x$as_lineno_2" &&
4537  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4538	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4539	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4540	     CONFIG_SHELL=$as_dir/$as_base
4541	     export CONFIG_SHELL
4542	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4543	   fi;;
4544	 esac
4545       done
4546done
4547;;
4548  esac
4549
4550  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4551  # uniformly replaced by the line number.  The first 'sed' inserts a
4552  # line-number line before each line; the second 'sed' does the real
4553  # work.  The second script uses 'N' to pair each line-number line
4554  # with the numbered line, and appends trailing '-' during
4555  # substitution so that $LINENO is not a special case at line end.
4556  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4557  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4558  sed '=' <$as_myself |
4559    sed '
4560      N
4561      s,$,-,
4562      : loop
4563      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4564      t loop
4565      s,-$,,
4566      s,^['$as_cr_digits']*\n,,
4567    ' >$as_me.lineno &&
4568  chmod +x $as_me.lineno ||
4569    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4570echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4571   { (exit 1); exit 1; }; }
4572
4573  # Don't try to exec as it changes $[0], causing all sort of problems
4574  # (the dirname of $[0] is not the place where we might find the
4575  # original and so on.  Autoconf is especially sensible to this).
4576  . ./$as_me.lineno
4577  # Exit status is that of the last command.
4578  exit
4579}
4580
4581
4582case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4583  *c*,-n*) ECHO_N= ECHO_C='
4584' ECHO_T='	' ;;
4585  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4586  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4587esac
4588
4589if expr a : '\(a\)' >/dev/null 2>&1; then
4590  as_expr=expr
4591else
4592  as_expr=false
4593fi
4594
4595rm -f conf$$ conf$$.exe conf$$.file
4596echo >conf$$.file
4597if ln -s conf$$.file conf$$ 2>/dev/null; then
4598  # We could just check for DJGPP; but this test a) works b) is more generic
4599  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4600  if test -f conf$$.exe; then
4601    # Don't use ln at all; we don't have any links
4602    as_ln_s='cp -p'
4603  else
4604    as_ln_s='ln -s'
4605  fi
4606elif ln conf$$.file conf$$ 2>/dev/null; then
4607  as_ln_s=ln
4608else
4609  as_ln_s='cp -p'
4610fi
4611rm -f conf$$ conf$$.exe conf$$.file
4612
4613if mkdir -p . 2>/dev/null; then
4614  as_mkdir_p=:
4615else
4616  test -d ./-p && rmdir ./-p
4617  as_mkdir_p=false
4618fi
4619
4620as_executable_p="test -f"
4621
4622# Sed expression to map a string onto a valid CPP name.
4623as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4624
4625# Sed expression to map a string onto a valid variable name.
4626as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4627
4628
4629# IFS
4630# We need space, tab and new line, in precisely that order.
4631as_nl='
4632'
4633IFS=" 	$as_nl"
4634
4635# CDPATH.
4636$as_unset CDPATH
4637
4638exec 6>&1
4639
4640# Open the log real soon, to keep \$[0] and so on meaningful, and to
4641# report actual input values of CONFIG_FILES etc. instead of their
4642# values after options handling.  Logging --version etc. is OK.
4643exec 5>>config.log
4644{
4645  echo
4646  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4647## Running $as_me. ##
4648_ASBOX
4649} >&5
4650cat >&5 <<_CSEOF
4651
4652This file was extended by $as_me, which was
4653generated by GNU Autoconf 2.59.  Invocation command line was
4654
4655  CONFIG_FILES    = $CONFIG_FILES
4656  CONFIG_HEADERS  = $CONFIG_HEADERS
4657  CONFIG_LINKS    = $CONFIG_LINKS
4658  CONFIG_COMMANDS = $CONFIG_COMMANDS
4659  $ $0 $@
4660
4661_CSEOF
4662echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4663echo >&5
4664_ACEOF
4665
4666# Files that config.status was made for.
4667if test -n "$ac_config_files"; then
4668  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4669fi
4670
4671if test -n "$ac_config_headers"; then
4672  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4673fi
4674
4675if test -n "$ac_config_links"; then
4676  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4677fi
4678
4679if test -n "$ac_config_commands"; then
4680  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4681fi
4682
4683cat >>$CONFIG_STATUS <<\_ACEOF
4684
4685ac_cs_usage="\
4686\`$as_me' instantiates files from templates according to the
4687current configuration.
4688
4689Usage: $0 [OPTIONS] [FILE]...
4690
4691  -h, --help       print this help, then exit
4692  -V, --version    print version number, then exit
4693  -q, --quiet      do not print progress messages
4694  -d, --debug      don't remove temporary files
4695      --recheck    update $as_me by reconfiguring in the same conditions
4696  --file=FILE[:TEMPLATE]
4697		   instantiate the configuration file FILE
4698  --header=FILE[:TEMPLATE]
4699		   instantiate the configuration header FILE
4700
4701Configuration files:
4702$config_files
4703
4704Configuration headers:
4705$config_headers
4706
4707Report bugs to <bug-autoconf@gnu.org>."
4708_ACEOF
4709
4710cat >>$CONFIG_STATUS <<_ACEOF
4711ac_cs_version="\\
4712config.status
4713configured by $0, generated by GNU Autoconf 2.59,
4714  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4715
4716Copyright (C) 2003 Free Software Foundation, Inc.
4717This config.status script is free software; the Free Software Foundation
4718gives unlimited permission to copy, distribute and modify it."
4719srcdir=$srcdir
4720_ACEOF
4721
4722cat >>$CONFIG_STATUS <<\_ACEOF
4723# If no file are specified by the user, then we need to provide default
4724# value.  By we need to know if files were specified by the user.
4725ac_need_defaults=:
4726while test $# != 0
4727do
4728  case $1 in
4729  --*=*)
4730    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4731    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4732    ac_shift=:
4733    ;;
4734  -*)
4735    ac_option=$1
4736    ac_optarg=$2
4737    ac_shift=shift
4738    ;;
4739  *) # This is not an option, so the user has probably given explicit
4740     # arguments.
4741     ac_option=$1
4742     ac_need_defaults=false;;
4743  esac
4744
4745  case $ac_option in
4746  # Handling of the options.
4747_ACEOF
4748cat >>$CONFIG_STATUS <<\_ACEOF
4749  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4750    ac_cs_recheck=: ;;
4751  --version | --vers* | -V )
4752    echo "$ac_cs_version"; exit 0 ;;
4753  --he | --h)
4754    # Conflict between --help and --header
4755    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4756Try \`$0 --help' for more information." >&5
4757echo "$as_me: error: ambiguous option: $1
4758Try \`$0 --help' for more information." >&2;}
4759   { (exit 1); exit 1; }; };;
4760  --help | --hel | -h )
4761    echo "$ac_cs_usage"; exit 0 ;;
4762  --debug | --d* | -d )
4763    debug=: ;;
4764  --file | --fil | --fi | --f )
4765    $ac_shift
4766    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4767    ac_need_defaults=false;;
4768  --header | --heade | --head | --hea )
4769    $ac_shift
4770    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4771    ac_need_defaults=false;;
4772  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4773  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4774    ac_cs_silent=: ;;
4775
4776  # This is an error.
4777  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4778Try \`$0 --help' for more information." >&5
4779echo "$as_me: error: unrecognized option: $1
4780Try \`$0 --help' for more information." >&2;}
4781   { (exit 1); exit 1; }; } ;;
4782
4783  *) ac_config_targets="$ac_config_targets $1" ;;
4784
4785  esac
4786  shift
4787done
4788
4789ac_configure_extra_args=
4790
4791if $ac_cs_silent; then
4792  exec 6>/dev/null
4793  ac_configure_extra_args="$ac_configure_extra_args --silent"
4794fi
4795
4796_ACEOF
4797cat >>$CONFIG_STATUS <<_ACEOF
4798if \$ac_cs_recheck; then
4799  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4800  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4801fi
4802
4803_ACEOF
4804
4805
4806
4807
4808
4809cat >>$CONFIG_STATUS <<\_ACEOF
4810for ac_config_target in $ac_config_targets
4811do
4812  case "$ac_config_target" in
4813  # Handling of arguments.
4814  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4815  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4816  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4817echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4818   { (exit 1); exit 1; }; };;
4819  esac
4820done
4821
4822# If the user did not use the arguments to specify the items to instantiate,
4823# then the envvar interface is used.  Set only those that are not.
4824# We use the long form for the default assignment because of an extremely
4825# bizarre bug on SunOS 4.1.3.
4826if $ac_need_defaults; then
4827  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4828  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4829fi
4830
4831# Have a temporary directory for convenience.  Make it in the build tree
4832# simply because there is no reason to put it here, and in addition,
4833# creating and moving files from /tmp can sometimes cause problems.
4834# Create a temporary directory, and hook for its removal unless debugging.
4835$debug ||
4836{
4837  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4838  trap '{ (exit 1); exit 1; }' 1 2 13 15
4839}
4840
4841# Create a (secure) tmp directory for tmp files.
4842
4843{
4844  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4845  test -n "$tmp" && test -d "$tmp"
4846}  ||
4847{
4848  tmp=./confstat$$-$RANDOM
4849  (umask 077 && mkdir $tmp)
4850} ||
4851{
4852   echo "$me: cannot create a temporary directory in ." >&2
4853   { (exit 1); exit 1; }
4854}
4855
4856_ACEOF
4857
4858cat >>$CONFIG_STATUS <<_ACEOF
4859
4860#
4861# CONFIG_FILES section.
4862#
4863
4864# No need to generate the scripts if there are no CONFIG_FILES.
4865# This happens for instance when ./config.status config.h
4866if test -n "\$CONFIG_FILES"; then
4867  # Protect against being on the right side of a sed subst in config.status.
4868  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4869   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4870s,@SHELL@,$SHELL,;t t
4871s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4872s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4873s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4874s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4875s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4876s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4877s,@exec_prefix@,$exec_prefix,;t t
4878s,@prefix@,$prefix,;t t
4879s,@program_transform_name@,$program_transform_name,;t t
4880s,@bindir@,$bindir,;t t
4881s,@sbindir@,$sbindir,;t t
4882s,@libexecdir@,$libexecdir,;t t
4883s,@datadir@,$datadir,;t t
4884s,@sysconfdir@,$sysconfdir,;t t
4885s,@sharedstatedir@,$sharedstatedir,;t t
4886s,@localstatedir@,$localstatedir,;t t
4887s,@libdir@,$libdir,;t t
4888s,@includedir@,$includedir,;t t
4889s,@oldincludedir@,$oldincludedir,;t t
4890s,@infodir@,$infodir,;t t
4891s,@mandir@,$mandir,;t t
4892s,@build_alias@,$build_alias,;t t
4893s,@host_alias@,$host_alias,;t t
4894s,@target_alias@,$target_alias,;t t
4895s,@DEFS@,$DEFS,;t t
4896s,@ECHO_C@,$ECHO_C,;t t
4897s,@ECHO_N@,$ECHO_N,;t t
4898s,@ECHO_T@,$ECHO_T,;t t
4899s,@LIBS@,$LIBS,;t t
4900s,@VERSION@,$VERSION,;t t
4901s,@CC@,$CC,;t t
4902s,@CFLAGS@,$CFLAGS,;t t
4903s,@LDFLAGS@,$LDFLAGS,;t t
4904s,@CPPFLAGS@,$CPPFLAGS,;t t
4905s,@ac_ct_CC@,$ac_ct_CC,;t t
4906s,@EXEEXT@,$EXEEXT,;t t
4907s,@OBJEXT@,$OBJEXT,;t t
4908s,@CPP@,$CPP,;t t
4909s,@EGREP@,$EGREP,;t t
4910s,@AWK@,$AWK,;t t
4911s,@WRITEPATH@,$WRITEPATH,;t t
4912s,@XTERMPATH@,$XTERMPATH,;t t
4913s,@LIBOBJS@,$LIBOBJS,;t t
4914s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4915CEOF
4916
4917_ACEOF
4918
4919  cat >>$CONFIG_STATUS <<\_ACEOF
4920  # Split the substitutions into bite-sized pieces for seds with
4921  # small command number limits, like on Digital OSF/1 and HP-UX.
4922  ac_max_sed_lines=48
4923  ac_sed_frag=1 # Number of current file.
4924  ac_beg=1 # First line for current file.
4925  ac_end=$ac_max_sed_lines # Line after last line for current file.
4926  ac_more_lines=:
4927  ac_sed_cmds=
4928  while $ac_more_lines; do
4929    if test $ac_beg -gt 1; then
4930      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4931    else
4932      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4933    fi
4934    if test ! -s $tmp/subs.frag; then
4935      ac_more_lines=false
4936    else
4937      # The purpose of the label and of the branching condition is to
4938      # speed up the sed processing (if there are no `@' at all, there
4939      # is no need to browse any of the substitutions).
4940      # These are the two extra sed commands mentioned above.
4941      (echo ':t
4942  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4943      if test -z "$ac_sed_cmds"; then
4944	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4945      else
4946	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4947      fi
4948      ac_sed_frag=`expr $ac_sed_frag + 1`
4949      ac_beg=$ac_end
4950      ac_end=`expr $ac_end + $ac_max_sed_lines`
4951    fi
4952  done
4953  if test -z "$ac_sed_cmds"; then
4954    ac_sed_cmds=cat
4955  fi
4956fi # test -n "$CONFIG_FILES"
4957
4958_ACEOF
4959cat >>$CONFIG_STATUS <<\_ACEOF
4960for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4961  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4962  case $ac_file in
4963  - | *:- | *:-:* ) # input from stdin
4964	cat >$tmp/stdin
4965	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4966	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4967  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4968	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4969  * )   ac_file_in=$ac_file.in ;;
4970  esac
4971
4972  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4973  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4974$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4975	 X"$ac_file" : 'X\(//\)[^/]' \| \
4976	 X"$ac_file" : 'X\(//\)$' \| \
4977	 X"$ac_file" : 'X\(/\)' \| \
4978	 .     : '\(.\)' 2>/dev/null ||
4979echo X"$ac_file" |
4980    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4981  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4982  	  /^X\(\/\/\)$/{ s//\1/; q; }
4983  	  /^X\(\/\).*/{ s//\1/; q; }
4984  	  s/.*/./; q'`
4985  { if $as_mkdir_p; then
4986    mkdir -p "$ac_dir"
4987  else
4988    as_dir="$ac_dir"
4989    as_dirs=
4990    while test ! -d "$as_dir"; do
4991      as_dirs="$as_dir $as_dirs"
4992      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4993$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4994	 X"$as_dir" : 'X\(//\)[^/]' \| \
4995	 X"$as_dir" : 'X\(//\)$' \| \
4996	 X"$as_dir" : 'X\(/\)' \| \
4997	 .     : '\(.\)' 2>/dev/null ||
4998echo X"$as_dir" |
4999    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5000  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5001  	  /^X\(\/\/\)$/{ s//\1/; q; }
5002  	  /^X\(\/\).*/{ s//\1/; q; }
5003  	  s/.*/./; q'`
5004    done
5005    test ! -n "$as_dirs" || mkdir $as_dirs
5006  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5007echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5008   { (exit 1); exit 1; }; }; }
5009
5010  ac_builddir=.
5011
5012if test "$ac_dir" != .; then
5013  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5014  # A "../" for each directory in $ac_dir_suffix.
5015  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5016else
5017  ac_dir_suffix= ac_top_builddir=
5018fi
5019
5020case $srcdir in
5021  .)  # No --srcdir option.  We are building in place.
5022    ac_srcdir=.
5023    if test -z "$ac_top_builddir"; then
5024       ac_top_srcdir=.
5025    else
5026       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5027    fi ;;
5028  [\\/]* | ?:[\\/]* )  # Absolute path.
5029    ac_srcdir=$srcdir$ac_dir_suffix;
5030    ac_top_srcdir=$srcdir ;;
5031  *) # Relative path.
5032    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5033    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5034esac
5035
5036# Do not use `cd foo && pwd` to compute absolute paths, because
5037# the directories may not exist.
5038case `pwd` in
5039.) ac_abs_builddir="$ac_dir";;
5040*)
5041  case "$ac_dir" in
5042  .) ac_abs_builddir=`pwd`;;
5043  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5044  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5045  esac;;
5046esac
5047case $ac_abs_builddir in
5048.) ac_abs_top_builddir=${ac_top_builddir}.;;
5049*)
5050  case ${ac_top_builddir}. in
5051  .) ac_abs_top_builddir=$ac_abs_builddir;;
5052  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5053  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5054  esac;;
5055esac
5056case $ac_abs_builddir in
5057.) ac_abs_srcdir=$ac_srcdir;;
5058*)
5059  case $ac_srcdir in
5060  .) ac_abs_srcdir=$ac_abs_builddir;;
5061  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5062  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5063  esac;;
5064esac
5065case $ac_abs_builddir in
5066.) ac_abs_top_srcdir=$ac_top_srcdir;;
5067*)
5068  case $ac_top_srcdir in
5069  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5070  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5071  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5072  esac;;
5073esac
5074
5075
5076
5077  if test x"$ac_file" != x-; then
5078    { echo "$as_me:$LINENO: creating $ac_file" >&5
5079echo "$as_me: creating $ac_file" >&6;}
5080    rm -f "$ac_file"
5081  fi
5082  # Let's still pretend it is `configure' which instantiates (i.e., don't
5083  # use $as_me), people would be surprised to read:
5084  #    /* config.h.  Generated by config.status.  */
5085  if test x"$ac_file" = x-; then
5086    configure_input=
5087  else
5088    configure_input="$ac_file.  "
5089  fi
5090  configure_input=$configure_input"Generated from `echo $ac_file_in |
5091				     sed 's,.*/,,'` by configure."
5092
5093  # First look for the input files in the build tree, otherwise in the
5094  # src tree.
5095  ac_file_inputs=`IFS=:
5096    for f in $ac_file_in; do
5097      case $f in
5098      -) echo $tmp/stdin ;;
5099      [\\/$]*)
5100	 # Absolute (can't be DOS-style, as IFS=:)
5101	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5102echo "$as_me: error: cannot find input file: $f" >&2;}
5103   { (exit 1); exit 1; }; }
5104	 echo "$f";;
5105      *) # Relative
5106	 if test -f "$f"; then
5107	   # Build tree
5108	   echo "$f"
5109	 elif test -f "$srcdir/$f"; then
5110	   # Source tree
5111	   echo "$srcdir/$f"
5112	 else
5113	   # /dev/null tree
5114	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5115echo "$as_me: error: cannot find input file: $f" >&2;}
5116   { (exit 1); exit 1; }; }
5117	 fi;;
5118      esac
5119    done` || { (exit 1); exit 1; }
5120_ACEOF
5121cat >>$CONFIG_STATUS <<_ACEOF
5122  sed "$ac_vpsub
5123$extrasub
5124_ACEOF
5125cat >>$CONFIG_STATUS <<\_ACEOF
5126:t
5127/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5128s,@configure_input@,$configure_input,;t t
5129s,@srcdir@,$ac_srcdir,;t t
5130s,@abs_srcdir@,$ac_abs_srcdir,;t t
5131s,@top_srcdir@,$ac_top_srcdir,;t t
5132s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5133s,@builddir@,$ac_builddir,;t t
5134s,@abs_builddir@,$ac_abs_builddir,;t t
5135s,@top_builddir@,$ac_top_builddir,;t t
5136s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5137" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5138  rm -f $tmp/stdin
5139  if test x"$ac_file" != x-; then
5140    mv $tmp/out $ac_file
5141  else
5142    cat $tmp/out
5143    rm -f $tmp/out
5144  fi
5145
5146done
5147_ACEOF
5148cat >>$CONFIG_STATUS <<\_ACEOF
5149
5150#
5151# CONFIG_HEADER section.
5152#
5153
5154# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5155# NAME is the cpp macro being defined and VALUE is the value it is being given.
5156#
5157# ac_d sets the value in "#define NAME VALUE" lines.
5158ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
5159ac_dB='[	 ].*$,\1#\2'
5160ac_dC=' '
5161ac_dD=',;t'
5162# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5163ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
5164ac_uB='$,\1#\2define\3'
5165ac_uC=' '
5166ac_uD=',;t'
5167
5168for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5169  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5170  case $ac_file in
5171  - | *:- | *:-:* ) # input from stdin
5172	cat >$tmp/stdin
5173	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5174	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5175  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5176	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5177  * )   ac_file_in=$ac_file.in ;;
5178  esac
5179
5180  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5181echo "$as_me: creating $ac_file" >&6;}
5182
5183  # First look for the input files in the build tree, otherwise in the
5184  # src tree.
5185  ac_file_inputs=`IFS=:
5186    for f in $ac_file_in; do
5187      case $f in
5188      -) echo $tmp/stdin ;;
5189      [\\/$]*)
5190	 # Absolute (can't be DOS-style, as IFS=:)
5191	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5192echo "$as_me: error: cannot find input file: $f" >&2;}
5193   { (exit 1); exit 1; }; }
5194	 # Do quote $f, to prevent DOS paths from being IFS'd.
5195	 echo "$f";;
5196      *) # Relative
5197	 if test -f "$f"; then
5198	   # Build tree
5199	   echo "$f"
5200	 elif test -f "$srcdir/$f"; then
5201	   # Source tree
5202	   echo "$srcdir/$f"
5203	 else
5204	   # /dev/null tree
5205	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5206echo "$as_me: error: cannot find input file: $f" >&2;}
5207   { (exit 1); exit 1; }; }
5208	 fi;;
5209      esac
5210    done` || { (exit 1); exit 1; }
5211  # Remove the trailing spaces.
5212  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
5213
5214_ACEOF
5215
5216# Transform confdefs.h into two sed scripts, `conftest.defines' and
5217# `conftest.undefs', that substitutes the proper values into
5218# config.h.in to produce config.h.  The first handles `#define'
5219# templates, and the second `#undef' templates.
5220# And first: Protect against being on the right side of a sed subst in
5221# config.status.  Protect against being in an unquoted here document
5222# in config.status.
5223rm -f conftest.defines conftest.undefs
5224# Using a here document instead of a string reduces the quoting nightmare.
5225# Putting comments in sed scripts is not portable.
5226#
5227# `end' is used to avoid that the second main sed command (meant for
5228# 0-ary CPP macros) applies to n-ary macro definitions.
5229# See the Autoconf documentation for `clear'.
5230cat >confdef2sed.sed <<\_ACEOF
5231s/[\\&,]/\\&/g
5232s,[\\$`],\\&,g
5233t clear
5234: clear
5235s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5236t end
5237s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5238: end
5239_ACEOF
5240# If some macros were called several times there might be several times
5241# the same #defines, which is useless.  Nevertheless, we may not want to
5242# sort them, since we want the *last* AC-DEFINE to be honored.
5243uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5244sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5245rm -f confdef2sed.sed
5246
5247# This sed command replaces #undef with comments.  This is necessary, for
5248# example, in the case of _POSIX_SOURCE, which is predefined and required
5249# on some systems where configure will not decide to define it.
5250cat >>conftest.undefs <<\_ACEOF
5251s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5252_ACEOF
5253
5254# Break up conftest.defines because some shells have a limit on the size
5255# of here documents, and old seds have small limits too (100 cmds).
5256echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5257echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5258echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5259echo '  :' >>$CONFIG_STATUS
5260rm -f conftest.tail
5261while grep . conftest.defines >/dev/null
5262do
5263  # Write a limited-size here document to $tmp/defines.sed.
5264  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5265  # Speed up: don't consider the non `#define' lines.
5266  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
5267  # Work around the forget-to-reset-the-flag bug.
5268  echo 't clr' >>$CONFIG_STATUS
5269  echo ': clr' >>$CONFIG_STATUS
5270  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5271  echo 'CEOF
5272  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5273  rm -f $tmp/in
5274  mv $tmp/out $tmp/in
5275' >>$CONFIG_STATUS
5276  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5277  rm -f conftest.defines
5278  mv conftest.tail conftest.defines
5279done
5280rm -f conftest.defines
5281echo '  fi # grep' >>$CONFIG_STATUS
5282echo >>$CONFIG_STATUS
5283
5284# Break up conftest.undefs because some shells have a limit on the size
5285# of here documents, and old seds have small limits too (100 cmds).
5286echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5287rm -f conftest.tail
5288while grep . conftest.undefs >/dev/null
5289do
5290  # Write a limited-size here document to $tmp/undefs.sed.
5291  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5292  # Speed up: don't consider the non `#undef'
5293  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
5294  # Work around the forget-to-reset-the-flag bug.
5295  echo 't clr' >>$CONFIG_STATUS
5296  echo ': clr' >>$CONFIG_STATUS
5297  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5298  echo 'CEOF
5299  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5300  rm -f $tmp/in
5301  mv $tmp/out $tmp/in
5302' >>$CONFIG_STATUS
5303  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5304  rm -f conftest.undefs
5305  mv conftest.tail conftest.undefs
5306done
5307rm -f conftest.undefs
5308
5309cat >>$CONFIG_STATUS <<\_ACEOF
5310  # Let's still pretend it is `configure' which instantiates (i.e., don't
5311  # use $as_me), people would be surprised to read:
5312  #    /* config.h.  Generated by config.status.  */
5313  if test x"$ac_file" = x-; then
5314    echo "/* Generated by configure.  */" >$tmp/config.h
5315  else
5316    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5317  fi
5318  cat $tmp/in >>$tmp/config.h
5319  rm -f $tmp/in
5320  if test x"$ac_file" != x-; then
5321    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5322      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5323echo "$as_me: $ac_file is unchanged" >&6;}
5324    else
5325      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5326$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5327	 X"$ac_file" : 'X\(//\)[^/]' \| \
5328	 X"$ac_file" : 'X\(//\)$' \| \
5329	 X"$ac_file" : 'X\(/\)' \| \
5330	 .     : '\(.\)' 2>/dev/null ||
5331echo X"$ac_file" |
5332    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5333  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5334  	  /^X\(\/\/\)$/{ s//\1/; q; }
5335  	  /^X\(\/\).*/{ s//\1/; q; }
5336  	  s/.*/./; q'`
5337      { if $as_mkdir_p; then
5338    mkdir -p "$ac_dir"
5339  else
5340    as_dir="$ac_dir"
5341    as_dirs=
5342    while test ! -d "$as_dir"; do
5343      as_dirs="$as_dir $as_dirs"
5344      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5346	 X"$as_dir" : 'X\(//\)[^/]' \| \
5347	 X"$as_dir" : 'X\(//\)$' \| \
5348	 X"$as_dir" : 'X\(/\)' \| \
5349	 .     : '\(.\)' 2>/dev/null ||
5350echo X"$as_dir" |
5351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5352  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5353  	  /^X\(\/\/\)$/{ s//\1/; q; }
5354  	  /^X\(\/\).*/{ s//\1/; q; }
5355  	  s/.*/./; q'`
5356    done
5357    test ! -n "$as_dirs" || mkdir $as_dirs
5358  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5359echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5360   { (exit 1); exit 1; }; }; }
5361
5362      rm -f $ac_file
5363      mv $tmp/config.h $ac_file
5364    fi
5365  else
5366    cat $tmp/config.h
5367    rm -f $tmp/config.h
5368  fi
5369done
5370_ACEOF
5371
5372cat >>$CONFIG_STATUS <<\_ACEOF
5373
5374{ (exit 0); exit 0; }
5375_ACEOF
5376chmod +x $CONFIG_STATUS
5377ac_clean_files=$ac_clean_files_save
5378
5379
5380# configure is writing to config.log, and then calls config.status.
5381# config.status does its own redirection, appending to config.log.
5382# Unfortunately, on DOS this fails, as config.log is still kept open
5383# by configure, so config.status won't be able to write to it; its
5384# output is simply discarded.  So we exec the FD to /dev/null,
5385# effectively closing config.log, so it can be properly (re)opened and
5386# appended to by config.status.  When coming back to configure, we
5387# need to make the FD available again.
5388if test "$no_create" != yes; then
5389  ac_cs_success=:
5390  ac_config_status_args=
5391  test "$silent" = yes &&
5392    ac_config_status_args="$ac_config_status_args --quiet"
5393  exec 5>/dev/null
5394  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5395  exec 5>>config.log
5396  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5397  # would make configure fail if this is the last instruction.
5398  $ac_cs_success || { (exit 1); exit 1; }
5399fi
5400
5401