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