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