1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --enable-logfile        additional logging over and above syslog"
16ac_help="$ac_help
17  --disable-rewrite-domain
18                          support for rewriting the sending domain"
19ac_help="$ac_help
20  --enable-ssl           support for secure connection to mail server"
21ac_help="$ac_help
22  --enable-inet6         support for IPv6 transport"
23ac_help="$ac_help
24  --enable-md5auth         support for MD5 authentication"
25
26# Initialize some variables set by options.
27# The variables have the same names as the options, with
28# dashes changed to underlines.
29build=NONE
30cache_file=./config.cache
31exec_prefix=NONE
32host=NONE
33no_create=
34nonopt=NONE
35no_recursion=
36prefix=NONE
37program_prefix=NONE
38program_suffix=NONE
39program_transform_name=s,x,x,
40silent=
41site=
42srcdir=
43target=NONE
44verbose=
45x_includes=NONE
46x_libraries=NONE
47bindir='${exec_prefix}/bin'
48sbindir='${exec_prefix}/sbin'
49libexecdir='${exec_prefix}/libexec'
50datadir='${prefix}/share'
51sysconfdir='${prefix}/etc'
52sharedstatedir='${prefix}/com'
53localstatedir='${prefix}/var'
54libdir='${exec_prefix}/lib'
55includedir='${prefix}/include'
56oldincludedir='/usr/include'
57infodir='${prefix}/info'
58mandir='${prefix}/man'
59
60# Initialize some other variables.
61subdirs=
62MFLAGS= MAKEFLAGS=
63SHELL=${CONFIG_SHELL-/bin/sh}
64# Maximum number of lines to put in a shell here document.
65ac_max_here_lines=12
66
67ac_prev=
68for ac_option
69do
70
71  # If the previous option needs an argument, assign it.
72  if test -n "$ac_prev"; then
73    eval "$ac_prev=\$ac_option"
74    ac_prev=
75    continue
76  fi
77
78  case "$ac_option" in
79  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
80  *) ac_optarg= ;;
81  esac
82
83  # Accept the important Cygnus configure options, so we can diagnose typos.
84
85  case "$ac_option" in
86
87  -bindir | --bindir | --bindi | --bind | --bin | --bi)
88    ac_prev=bindir ;;
89  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
90    bindir="$ac_optarg" ;;
91
92  -build | --build | --buil | --bui | --bu)
93    ac_prev=build ;;
94  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
95    build="$ac_optarg" ;;
96
97  -cache-file | --cache-file | --cache-fil | --cache-fi \
98  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99    ac_prev=cache_file ;;
100  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
101  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
102    cache_file="$ac_optarg" ;;
103
104  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105    ac_prev=datadir ;;
106  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107  | --da=*)
108    datadir="$ac_optarg" ;;
109
110  -disable-* | --disable-*)
111    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
112    # Reject names that are not valid shell variable names.
113    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
114      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115    fi
116    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117    eval "enable_${ac_feature}=no" ;;
118
119  -enable-* | --enable-*)
120    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
121    # Reject names that are not valid shell variable names.
122    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
123      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124    fi
125    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126    case "$ac_option" in
127      *=*) ;;
128      *) ac_optarg=yes ;;
129    esac
130    eval "enable_${ac_feature}='$ac_optarg'" ;;
131
132  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
133  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
134  | --exec | --exe | --ex)
135    ac_prev=exec_prefix ;;
136  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
137  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
138  | --exec=* | --exe=* | --ex=*)
139    exec_prefix="$ac_optarg" ;;
140
141  -gas | --gas | --ga | --g)
142    # Obsolete; use --with-gas.
143    with_gas=yes ;;
144
145  -help | --help | --hel | --he)
146    # Omit some internal or obsolete options to make the list less imposing.
147    # This message is too long to be a string in the A/UX 3.1 sh.
148    cat << EOF
149Usage: configure [options] [host]
150Options: [defaults in brackets after descriptions]
151Configuration:
152  --cache-file=FILE       cache test results in FILE
153  --help                  print this message
154  --no-create             do not create output files
155  --quiet, --silent       do not print \`checking...' messages
156  --version               print the version of autoconf that created configure
157Directory and file names:
158  --prefix=PREFIX         install architecture-independent files in PREFIX
159                          [$ac_default_prefix]
160  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
161                          [same as prefix]
162  --bindir=DIR            user executables in DIR [EPREFIX/bin]
163  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
164  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
165  --datadir=DIR           read-only architecture-independent data in DIR
166                          [PREFIX/share]
167  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
168  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
169                          [PREFIX/com]
170  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
171  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
172  --includedir=DIR        C header files in DIR [PREFIX/include]
173  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
174  --infodir=DIR           info documentation in DIR [PREFIX/info]
175  --mandir=DIR            man documentation in DIR [PREFIX/man]
176  --srcdir=DIR            find the sources in DIR [configure dir or ..]
177  --program-prefix=PREFIX prepend PREFIX to installed program names
178  --program-suffix=SUFFIX append SUFFIX to installed program names
179  --program-transform-name=PROGRAM
180                          run sed PROGRAM on installed program names
181EOF
182    cat << EOF
183Host type:
184  --build=BUILD           configure for building on BUILD [BUILD=HOST]
185  --host=HOST             configure for HOST [guessed]
186  --target=TARGET         configure for TARGET [TARGET=HOST]
187Features and packages:
188  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
189  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
190  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
191  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
192  --x-includes=DIR        X include files are in DIR
193  --x-libraries=DIR       X library files are in DIR
194EOF
195    if test -n "$ac_help"; then
196      echo "--enable and --with options recognized:$ac_help"
197    fi
198    exit 0 ;;
199
200  -host | --host | --hos | --ho)
201    ac_prev=host ;;
202  -host=* | --host=* | --hos=* | --ho=*)
203    host="$ac_optarg" ;;
204
205  -includedir | --includedir | --includedi | --included | --include \
206  | --includ | --inclu | --incl | --inc)
207    ac_prev=includedir ;;
208  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
209  | --includ=* | --inclu=* | --incl=* | --inc=*)
210    includedir="$ac_optarg" ;;
211
212  -infodir | --infodir | --infodi | --infod | --info | --inf)
213    ac_prev=infodir ;;
214  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
215    infodir="$ac_optarg" ;;
216
217  -libdir | --libdir | --libdi | --libd)
218    ac_prev=libdir ;;
219  -libdir=* | --libdir=* | --libdi=* | --libd=*)
220    libdir="$ac_optarg" ;;
221
222  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
223  | --libexe | --libex | --libe)
224    ac_prev=libexecdir ;;
225  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
226  | --libexe=* | --libex=* | --libe=*)
227    libexecdir="$ac_optarg" ;;
228
229  -localstatedir | --localstatedir | --localstatedi | --localstated \
230  | --localstate | --localstat | --localsta | --localst \
231  | --locals | --local | --loca | --loc | --lo)
232    ac_prev=localstatedir ;;
233  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
234  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
235  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
236    localstatedir="$ac_optarg" ;;
237
238  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239    ac_prev=mandir ;;
240  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
241    mandir="$ac_optarg" ;;
242
243  -nfp | --nfp | --nf)
244    # Obsolete; use --without-fp.
245    with_fp=no ;;
246
247  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
248  | --no-cr | --no-c)
249    no_create=yes ;;
250
251  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
252  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
253    no_recursion=yes ;;
254
255  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
256  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
257  | --oldin | --oldi | --old | --ol | --o)
258    ac_prev=oldincludedir ;;
259  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
260  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
261  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
262    oldincludedir="$ac_optarg" ;;
263
264  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265    ac_prev=prefix ;;
266  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
267    prefix="$ac_optarg" ;;
268
269  -program-prefix | --program-prefix | --program-prefi | --program-pref \
270  | --program-pre | --program-pr | --program-p)
271    ac_prev=program_prefix ;;
272  -program-prefix=* | --program-prefix=* | --program-prefi=* \
273  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
274    program_prefix="$ac_optarg" ;;
275
276  -program-suffix | --program-suffix | --program-suffi | --program-suff \
277  | --program-suf | --program-su | --program-s)
278    ac_prev=program_suffix ;;
279  -program-suffix=* | --program-suffix=* | --program-suffi=* \
280  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
281    program_suffix="$ac_optarg" ;;
282
283  -program-transform-name | --program-transform-name \
284  | --program-transform-nam | --program-transform-na \
285  | --program-transform-n | --program-transform- \
286  | --program-transform | --program-transfor \
287  | --program-transfo | --program-transf \
288  | --program-trans | --program-tran \
289  | --progr-tra | --program-tr | --program-t)
290    ac_prev=program_transform_name ;;
291  -program-transform-name=* | --program-transform-name=* \
292  | --program-transform-nam=* | --program-transform-na=* \
293  | --program-transform-n=* | --program-transform-=* \
294  | --program-transform=* | --program-transfor=* \
295  | --program-transfo=* | --program-transf=* \
296  | --program-trans=* | --program-tran=* \
297  | --progr-tra=* | --program-tr=* | --program-t=*)
298    program_transform_name="$ac_optarg" ;;
299
300  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
301  | -silent | --silent | --silen | --sile | --sil)
302    silent=yes ;;
303
304  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305    ac_prev=sbindir ;;
306  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307  | --sbi=* | --sb=*)
308    sbindir="$ac_optarg" ;;
309
310  -sharedstatedir | --sharedstatedir | --sharedstatedi \
311  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
312  | --sharedst | --shareds | --shared | --share | --shar \
313  | --sha | --sh)
314    ac_prev=sharedstatedir ;;
315  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
316  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
317  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318  | --sha=* | --sh=*)
319    sharedstatedir="$ac_optarg" ;;
320
321  -site | --site | --sit)
322    ac_prev=site ;;
323  -site=* | --site=* | --sit=*)
324    site="$ac_optarg" ;;
325
326  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327    ac_prev=srcdir ;;
328  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
329    srcdir="$ac_optarg" ;;
330
331  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
332  | --syscon | --sysco | --sysc | --sys | --sy)
333    ac_prev=sysconfdir ;;
334  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
335  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
336    sysconfdir="$ac_optarg" ;;
337
338  -target | --target | --targe | --targ | --tar | --ta | --t)
339    ac_prev=target ;;
340  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
341    target="$ac_optarg" ;;
342
343  -v | -verbose | --verbose | --verbos | --verbo | --verb)
344    verbose=yes ;;
345
346  -version | --version | --versio | --versi | --vers)
347    echo "configure generated by autoconf version 2.13"
348    exit 0 ;;
349
350  -with-* | --with-*)
351    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
352    # Reject names that are not valid shell variable names.
353    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
354      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355    fi
356    ac_package=`echo $ac_package| sed 's/-/_/g'`
357    case "$ac_option" in
358      *=*) ;;
359      *) ac_optarg=yes ;;
360    esac
361    eval "with_${ac_package}='$ac_optarg'" ;;
362
363  -without-* | --without-*)
364    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
365    # Reject names that are not valid shell variable names.
366    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
367      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368    fi
369    ac_package=`echo $ac_package| sed 's/-/_/g'`
370    eval "with_${ac_package}=no" ;;
371
372  --x)
373    # Obsolete; use --with-x.
374    with_x=yes ;;
375
376  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
377  | --x-incl | --x-inc | --x-in | --x-i)
378    ac_prev=x_includes ;;
379  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
380  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
381    x_includes="$ac_optarg" ;;
382
383  -x-libraries | --x-libraries | --x-librarie | --x-librari \
384  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
385    ac_prev=x_libraries ;;
386  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
387  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
388    x_libraries="$ac_optarg" ;;
389
390  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391    ;;
392
393  *)
394    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
395      echo "configure: warning: $ac_option: invalid host type" 1>&2
396    fi
397    if test "x$nonopt" != xNONE; then
398      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399    fi
400    nonopt="$ac_option"
401    ;;
402
403  esac
404done
405
406if test -n "$ac_prev"; then
407  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408fi
409
410trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411
412# File descriptor usage:
413# 0 standard input
414# 1 file creation
415# 2 errors and warnings
416# 3 some systems may open it to /dev/tty
417# 4 used on the Kubota Titan
418# 6 checking for... messages and results
419# 5 compiler messages saved in config.log
420if test "$silent" = yes; then
421  exec 6>/dev/null
422else
423  exec 6>&1
424fi
425exec 5>./config.log
426
427echo "\
428This file contains any messages produced by compilers while
429running configure, to aid debugging if configure makes a mistake.
430" 1>&5
431
432# Strip out --no-create and --no-recursion so they do not pile up.
433# Also quote any args containing shell metacharacters.
434ac_configure_args=
435for ac_arg
436do
437  case "$ac_arg" in
438  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
439  | --no-cr | --no-c) ;;
440  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
441  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
442  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
443  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
444  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
445  esac
446done
447
448# NLS nuisances.
449# Only set these to C if already set.  These must not be set unconditionally
450# because not all systems understand e.g. LANG=C (notably SCO).
451# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
452# Non-C LC_CTYPE values break the ctype check.
453if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
454if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
455if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
456if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
457
458# confdefs.h avoids OS command line length limits that DEFS can exceed.
459rm -rf conftest* confdefs.h
460# AIX cpp loses on an empty file, so make sure it contains at least a newline.
461echo > confdefs.h
462
463# A filename unique to this package, relative to the directory that
464# configure is in, which we can look for to find out if srcdir is correct.
465ac_unique_file=ssmtp.c
466
467# Find the source files, if location was not specified.
468if test -z "$srcdir"; then
469  ac_srcdir_defaulted=yes
470  # Try the directory containing this script, then its parent.
471  ac_prog=$0
472  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
473  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474  srcdir=$ac_confdir
475  if test ! -r $srcdir/$ac_unique_file; then
476    srcdir=..
477  fi
478else
479  ac_srcdir_defaulted=no
480fi
481if test ! -r $srcdir/$ac_unique_file; then
482  if test "$ac_srcdir_defaulted" = yes; then
483    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484  else
485    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486  fi
487fi
488srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489
490# Prefer explicitly selected file to automatically selected ones.
491if test -z "$CONFIG_SITE"; then
492  if test "x$prefix" != xNONE; then
493    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494  else
495    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496  fi
497fi
498for ac_site_file in $CONFIG_SITE; do
499  if test -r "$ac_site_file"; then
500    echo "loading site script $ac_site_file"
501    . "$ac_site_file"
502  fi
503done
504
505if test -r "$cache_file"; then
506  echo "loading cache $cache_file"
507  . $cache_file
508else
509  echo "creating cache $cache_file"
510  > $cache_file
511fi
512
513ac_ext=c
514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515ac_cpp='$CPP $CPPFLAGS'
516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518cross_compiling=$ac_cv_prog_cc_cross
519
520ac_exeext=
521ac_objext=o
522if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525    ac_n= ac_c='
526' ac_t='	'
527  else
528    ac_n=-n ac_c= ac_t=
529  fi
530else
531  ac_n= ac_c='\c' ac_t=
532fi
533
534
535
536# Extract the first word of "gcc", so it can be a program name with args.
537set dummy gcc; ac_word=$2
538echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
539echo "configure:540: checking for $ac_word" >&5
540if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
541  echo $ac_n "(cached) $ac_c" 1>&6
542else
543  if test -n "$CC"; then
544  ac_cv_prog_CC="$CC" # Let the user override the test.
545else
546  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
547  ac_dummy="$PATH"
548  for ac_dir in $ac_dummy; do
549    test -z "$ac_dir" && ac_dir=.
550    if test -f $ac_dir/$ac_word; then
551      ac_cv_prog_CC="gcc"
552      break
553    fi
554  done
555  IFS="$ac_save_ifs"
556fi
557fi
558CC="$ac_cv_prog_CC"
559if test -n "$CC"; then
560  echo "$ac_t""$CC" 1>&6
561else
562  echo "$ac_t""no" 1>&6
563fi
564
565if test -z "$CC"; then
566  # Extract the first word of "cc", so it can be a program name with args.
567set dummy cc; ac_word=$2
568echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
569echo "configure:570: checking for $ac_word" >&5
570if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
571  echo $ac_n "(cached) $ac_c" 1>&6
572else
573  if test -n "$CC"; then
574  ac_cv_prog_CC="$CC" # Let the user override the test.
575else
576  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
577  ac_prog_rejected=no
578  ac_dummy="$PATH"
579  for ac_dir in $ac_dummy; do
580    test -z "$ac_dir" && ac_dir=.
581    if test -f $ac_dir/$ac_word; then
582      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
583        ac_prog_rejected=yes
584	continue
585      fi
586      ac_cv_prog_CC="cc"
587      break
588    fi
589  done
590  IFS="$ac_save_ifs"
591if test $ac_prog_rejected = yes; then
592  # We found a bogon in the path, so make sure we never use it.
593  set dummy $ac_cv_prog_CC
594  shift
595  if test $# -gt 0; then
596    # We chose a different compiler from the bogus one.
597    # However, it has the same basename, so the bogon will be chosen
598    # first if we set CC to just the basename; use the full file name.
599    shift
600    set dummy "$ac_dir/$ac_word" "$@"
601    shift
602    ac_cv_prog_CC="$@"
603  fi
604fi
605fi
606fi
607CC="$ac_cv_prog_CC"
608if test -n "$CC"; then
609  echo "$ac_t""$CC" 1>&6
610else
611  echo "$ac_t""no" 1>&6
612fi
613
614  if test -z "$CC"; then
615    case "`uname -s`" in
616    *win32* | *WIN32*)
617      # Extract the first word of "cl", so it can be a program name with args.
618set dummy cl; ac_word=$2
619echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620echo "configure:621: checking for $ac_word" >&5
621if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
622  echo $ac_n "(cached) $ac_c" 1>&6
623else
624  if test -n "$CC"; then
625  ac_cv_prog_CC="$CC" # Let the user override the test.
626else
627  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
628  ac_dummy="$PATH"
629  for ac_dir in $ac_dummy; do
630    test -z "$ac_dir" && ac_dir=.
631    if test -f $ac_dir/$ac_word; then
632      ac_cv_prog_CC="cl"
633      break
634    fi
635  done
636  IFS="$ac_save_ifs"
637fi
638fi
639CC="$ac_cv_prog_CC"
640if test -n "$CC"; then
641  echo "$ac_t""$CC" 1>&6
642else
643  echo "$ac_t""no" 1>&6
644fi
645 ;;
646    esac
647  fi
648  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
649fi
650
651echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
652echo "configure:653: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
653
654ac_ext=c
655# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
656ac_cpp='$CPP $CPPFLAGS'
657ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
658ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
659cross_compiling=$ac_cv_prog_cc_cross
660
661cat > conftest.$ac_ext << EOF
662
663#line 664 "configure"
664#include "confdefs.h"
665
666main(){return(0);}
667EOF
668if { (eval echo configure:669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
669  ac_cv_prog_cc_works=yes
670  # If we can't run a trivial program, we are probably using a cross compiler.
671  if (./conftest; exit) 2>/dev/null; then
672    ac_cv_prog_cc_cross=no
673  else
674    ac_cv_prog_cc_cross=yes
675  fi
676else
677  echo "configure: failed program was:" >&5
678  cat conftest.$ac_ext >&5
679  ac_cv_prog_cc_works=no
680fi
681rm -fr conftest*
682ac_ext=c
683# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
684ac_cpp='$CPP $CPPFLAGS'
685ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
686ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
687cross_compiling=$ac_cv_prog_cc_cross
688
689echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
690if test $ac_cv_prog_cc_works = no; then
691  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
692fi
693echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
694echo "configure:695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
695echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
696cross_compiling=$ac_cv_prog_cc_cross
697
698echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
699echo "configure:700: checking whether we are using GNU C" >&5
700if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
701  echo $ac_n "(cached) $ac_c" 1>&6
702else
703  cat > conftest.c <<EOF
704#ifdef __GNUC__
705  yes;
706#endif
707EOF
708if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
709  ac_cv_prog_gcc=yes
710else
711  ac_cv_prog_gcc=no
712fi
713fi
714
715echo "$ac_t""$ac_cv_prog_gcc" 1>&6
716
717if test $ac_cv_prog_gcc = yes; then
718  GCC=yes
719else
720  GCC=
721fi
722
723ac_test_CFLAGS="${CFLAGS+set}"
724ac_save_CFLAGS="$CFLAGS"
725CFLAGS=
726echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
727echo "configure:728: checking whether ${CC-cc} accepts -g" >&5
728if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
729  echo $ac_n "(cached) $ac_c" 1>&6
730else
731  echo 'void f(){}' > conftest.c
732if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
733  ac_cv_prog_cc_g=yes
734else
735  ac_cv_prog_cc_g=no
736fi
737rm -f conftest*
738
739fi
740
741echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
742if test "$ac_test_CFLAGS" = set; then
743  CFLAGS="$ac_save_CFLAGS"
744elif test $ac_cv_prog_cc_g = yes; then
745  if test "$GCC" = yes; then
746    CFLAGS="-g -O2 -Wall"
747  else
748    CFLAGS="-g"
749  fi
750else
751  if test "$GCC" = yes; then
752    CFLAGS="-O2"
753  else
754    CFLAGS=
755  fi
756fi
757
758ac_aux_dir=
759for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
760  if test -f $ac_dir/install-sh; then
761    ac_aux_dir=$ac_dir
762    ac_install_sh="$ac_aux_dir/install-sh -c"
763    break
764  elif test -f $ac_dir/install.sh; then
765    ac_aux_dir=$ac_dir
766    ac_install_sh="$ac_aux_dir/install.sh -c"
767    break
768  fi
769done
770if test -z "$ac_aux_dir"; then
771  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
772fi
773ac_config_guess=$ac_aux_dir/config.guess
774ac_config_sub=$ac_aux_dir/config.sub
775ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
776
777# Find a good install program.  We prefer a C program (faster),
778# so one script is as good as another.  But avoid the broken or
779# incompatible versions:
780# SysV /etc/install, /usr/sbin/install
781# SunOS /usr/etc/install
782# IRIX /sbin/install
783# AIX /bin/install
784# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
785# AFS /usr/afsws/bin/install, which mishandles nonexistent args
786# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
787# ./install, which can be erroneously created by make from ./install.sh.
788echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
789echo "configure:790: checking for a BSD compatible install" >&5
790if test -z "$INSTALL"; then
791if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
792  echo $ac_n "(cached) $ac_c" 1>&6
793else
794    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
795  for ac_dir in $PATH; do
796    # Account for people who put trailing slashes in PATH elements.
797    case "$ac_dir/" in
798    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
799    *)
800      # OSF1 and SCO ODT 3.0 have their own names for install.
801      # Don't use installbsd from OSF since it installs stuff as root
802      # by default.
803      for ac_prog in ginstall scoinst install; do
804        if test -f $ac_dir/$ac_prog; then
805	  if test $ac_prog = install &&
806            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
807	    # AIX install.  It has an incompatible calling convention.
808	    :
809	  else
810	    ac_cv_path_install="$ac_dir/$ac_prog -c"
811	    break 2
812	  fi
813	fi
814      done
815      ;;
816    esac
817  done
818  IFS="$ac_save_IFS"
819
820fi
821  if test "${ac_cv_path_install+set}" = set; then
822    INSTALL="$ac_cv_path_install"
823  else
824    # As a last resort, use the slow shell script.  We don't cache a
825    # path for INSTALL within a source directory, because that will
826    # break other packages using the cache if that directory is
827    # removed, or if the path is relative.
828    INSTALL="$ac_install_sh"
829  fi
830fi
831echo "$ac_t""$INSTALL" 1>&6
832
833# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
834# It thinks the first close brace ends the variable substitution.
835test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
836
837test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
838
839test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
840
841echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
842echo "configure:843: checking whether ln -s works" >&5
843if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
844  echo $ac_n "(cached) $ac_c" 1>&6
845else
846  rm -f conftestdata
847if ln -s X conftestdata 2>/dev/null
848then
849  rm -f conftestdata
850  ac_cv_prog_LN_S="ln -s"
851else
852  ac_cv_prog_LN_S=ln
853fi
854fi
855LN_S="$ac_cv_prog_LN_S"
856if test "$ac_cv_prog_LN_S" = "ln -s"; then
857  echo "$ac_t""yes" 1>&6
858else
859  echo "$ac_t""no" 1>&6
860fi
861
862
863
864echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
865echo "configure:866: checking how to run the C preprocessor" >&5
866# On Suns, sometimes $CPP names a directory.
867if test -n "$CPP" && test -d "$CPP"; then
868  CPP=
869fi
870if test -z "$CPP"; then
871if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
872  echo $ac_n "(cached) $ac_c" 1>&6
873else
874    # This must be in double quotes, not single quotes, because CPP may get
875  # substituted into the Makefile and "${CC-cc}" will confuse make.
876  CPP="${CC-cc} -E"
877  # On the NeXT, cc -E runs the code through the compiler's parser,
878  # not just through cpp.
879  cat > conftest.$ac_ext <<EOF
880#line 881 "configure"
881#include "confdefs.h"
882#include <assert.h>
883Syntax Error
884EOF
885ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
886{ (eval echo configure:887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
887ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
888if test -z "$ac_err"; then
889  :
890else
891  echo "$ac_err" >&5
892  echo "configure: failed program was:" >&5
893  cat conftest.$ac_ext >&5
894  rm -rf conftest*
895  CPP="${CC-cc} -E -traditional-cpp"
896  cat > conftest.$ac_ext <<EOF
897#line 898 "configure"
898#include "confdefs.h"
899#include <assert.h>
900Syntax Error
901EOF
902ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
903{ (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
904ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
905if test -z "$ac_err"; then
906  :
907else
908  echo "$ac_err" >&5
909  echo "configure: failed program was:" >&5
910  cat conftest.$ac_ext >&5
911  rm -rf conftest*
912  CPP="${CC-cc} -nologo -E"
913  cat > conftest.$ac_ext <<EOF
914#line 915 "configure"
915#include "confdefs.h"
916#include <assert.h>
917Syntax Error
918EOF
919ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
920{ (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
921ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
922if test -z "$ac_err"; then
923  :
924else
925  echo "$ac_err" >&5
926  echo "configure: failed program was:" >&5
927  cat conftest.$ac_ext >&5
928  rm -rf conftest*
929  CPP=/lib/cpp
930fi
931rm -f conftest*
932fi
933rm -f conftest*
934fi
935rm -f conftest*
936  ac_cv_prog_CPP="$CPP"
937fi
938  CPP="$ac_cv_prog_CPP"
939else
940  ac_cv_prog_CPP="$CPP"
941fi
942echo "$ac_t""$CPP" 1>&6
943
944echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
945echo "configure:946: checking for ANSI C header files" >&5
946if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
947  echo $ac_n "(cached) $ac_c" 1>&6
948else
949  cat > conftest.$ac_ext <<EOF
950#line 951 "configure"
951#include "confdefs.h"
952#include <stdlib.h>
953#include <stdarg.h>
954#include <string.h>
955#include <float.h>
956EOF
957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
958{ (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960if test -z "$ac_err"; then
961  rm -rf conftest*
962  ac_cv_header_stdc=yes
963else
964  echo "$ac_err" >&5
965  echo "configure: failed program was:" >&5
966  cat conftest.$ac_ext >&5
967  rm -rf conftest*
968  ac_cv_header_stdc=no
969fi
970rm -f conftest*
971
972if test $ac_cv_header_stdc = yes; then
973  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
974cat > conftest.$ac_ext <<EOF
975#line 976 "configure"
976#include "confdefs.h"
977#include <string.h>
978EOF
979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
980  egrep "memchr" >/dev/null 2>&1; then
981  :
982else
983  rm -rf conftest*
984  ac_cv_header_stdc=no
985fi
986rm -f conftest*
987
988fi
989
990if test $ac_cv_header_stdc = yes; then
991  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
992cat > conftest.$ac_ext <<EOF
993#line 994 "configure"
994#include "confdefs.h"
995#include <stdlib.h>
996EOF
997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
998  egrep "free" >/dev/null 2>&1; then
999  :
1000else
1001  rm -rf conftest*
1002  ac_cv_header_stdc=no
1003fi
1004rm -f conftest*
1005
1006fi
1007
1008if test $ac_cv_header_stdc = yes; then
1009  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1010if test "$cross_compiling" = yes; then
1011  :
1012else
1013  cat > conftest.$ac_ext <<EOF
1014#line 1015 "configure"
1015#include "confdefs.h"
1016#include <ctype.h>
1017#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1018#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1019#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1020int main () { int i; for (i = 0; i < 256; i++)
1021if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1022exit (0); }
1023
1024EOF
1025if { (eval echo configure:1026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1026then
1027  :
1028else
1029  echo "configure: failed program was:" >&5
1030  cat conftest.$ac_ext >&5
1031  rm -fr conftest*
1032  ac_cv_header_stdc=no
1033fi
1034rm -fr conftest*
1035fi
1036
1037fi
1038fi
1039
1040echo "$ac_t""$ac_cv_header_stdc" 1>&6
1041if test $ac_cv_header_stdc = yes; then
1042  cat >> confdefs.h <<\EOF
1043#define STDC_HEADERS 1
1044EOF
1045
1046fi
1047
1048for ac_hdr in limits.h strings.h syslog.h unistd.h
1049do
1050ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1051echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1052echo "configure:1053: checking for $ac_hdr" >&5
1053if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1054  echo $ac_n "(cached) $ac_c" 1>&6
1055else
1056  cat > conftest.$ac_ext <<EOF
1057#line 1058 "configure"
1058#include "confdefs.h"
1059#include <$ac_hdr>
1060EOF
1061ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1062{ (eval echo configure:1063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1063ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1064if test -z "$ac_err"; then
1065  rm -rf conftest*
1066  eval "ac_cv_header_$ac_safe=yes"
1067else
1068  echo "$ac_err" >&5
1069  echo "configure: failed program was:" >&5
1070  cat conftest.$ac_ext >&5
1071  rm -rf conftest*
1072  eval "ac_cv_header_$ac_safe=no"
1073fi
1074rm -f conftest*
1075fi
1076if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1077  echo "$ac_t""yes" 1>&6
1078    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1079  cat >> confdefs.h <<EOF
1080#define $ac_tr_hdr 1
1081EOF
1082
1083else
1084  echo "$ac_t""no" 1>&6
1085fi
1086done
1087
1088
1089
1090echo $ac_n "checking for obsolete openlog""... $ac_c" 1>&6
1091echo "configure:1092: checking for obsolete openlog" >&5
1092if eval "test \"`echo '$''{'ssmtp_cv_obsolete_openlog'+set}'`\" = set"; then
1093  echo $ac_n "(cached) $ac_c" 1>&6
1094else
1095   cat > conftest.$ac_ext <<EOF
1096#line 1097 "configure"
1097#include "confdefs.h"
1098#include <syslog.h>  
1099int main() {
1100 openlog("xx",1);  
1101; return 0; }
1102EOF
1103if { (eval echo configure:1104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1104  rm -rf conftest*
1105  ssmtp_cv_obsolete_openlog=yes
1106else
1107  echo "configure: failed program was:" >&5
1108  cat conftest.$ac_ext >&5
1109  rm -rf conftest*
1110  ssmtp_cv_obsolete_openlog=no
1111fi
1112rm -f conftest*
1113
1114fi
1115
1116echo "$ac_t""$ssmtp_cv_obsolete_openlog" 1>&6
1117
1118
1119echo $ac_n "checking for working const""... $ac_c" 1>&6
1120echo "configure:1121: checking for working const" >&5
1121if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1122  echo $ac_n "(cached) $ac_c" 1>&6
1123else
1124  cat > conftest.$ac_ext <<EOF
1125#line 1126 "configure"
1126#include "confdefs.h"
1127
1128int main() {
1129
1130/* Ultrix mips cc rejects this.  */
1131typedef int charset[2]; const charset x;
1132/* SunOS 4.1.1 cc rejects this.  */
1133char const *const *ccp;
1134char **p;
1135/* NEC SVR4.0.2 mips cc rejects this.  */
1136struct point {int x, y;};
1137static struct point const zero = {0,0};
1138/* AIX XL C 1.02.0.0 rejects this.
1139   It does not let you subtract one const X* pointer from another in an arm
1140   of an if-expression whose if-part is not a constant expression */
1141const char *g = "string";
1142ccp = &g + (g ? g-g : 0);
1143/* HPUX 7.0 cc rejects these. */
1144++ccp;
1145p = (char**) ccp;
1146ccp = (char const *const *) p;
1147{ /* SCO 3.2v4 cc rejects this.  */
1148  char *t;
1149  char const *s = 0 ? (char *) 0 : (char const *) 0;
1150
1151  *t++ = 0;
1152}
1153{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1154  int x[] = {25, 17};
1155  const int *foo = &x[0];
1156  ++foo;
1157}
1158{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1159  typedef const int *iptr;
1160  iptr p = 0;
1161  ++p;
1162}
1163{ /* AIX XL C 1.02.0.0 rejects this saying
1164     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1165  struct s { int j; const int *ap[3]; };
1166  struct s *b; b->j = 5;
1167}
1168{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1169  const int foo = 10;
1170}
1171
1172; return 0; }
1173EOF
1174if { (eval echo configure:1175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1175  rm -rf conftest*
1176  ac_cv_c_const=yes
1177else
1178  echo "configure: failed program was:" >&5
1179  cat conftest.$ac_ext >&5
1180  rm -rf conftest*
1181  ac_cv_c_const=no
1182fi
1183rm -f conftest*
1184fi
1185
1186echo "$ac_t""$ac_cv_c_const" 1>&6
1187if test $ac_cv_c_const = no; then
1188  cat >> confdefs.h <<\EOF
1189#define const
1190EOF
1191
1192fi
1193
1194echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1195echo "configure:1196: checking whether struct tm is in sys/time.h or time.h" >&5
1196if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1197  echo $ac_n "(cached) $ac_c" 1>&6
1198else
1199  cat > conftest.$ac_ext <<EOF
1200#line 1201 "configure"
1201#include "confdefs.h"
1202#include <sys/types.h>
1203#include <time.h>
1204int main() {
1205struct tm *tp; tp->tm_sec;
1206; return 0; }
1207EOF
1208if { (eval echo configure:1209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1209  rm -rf conftest*
1210  ac_cv_struct_tm=time.h
1211else
1212  echo "configure: failed program was:" >&5
1213  cat conftest.$ac_ext >&5
1214  rm -rf conftest*
1215  ac_cv_struct_tm=sys/time.h
1216fi
1217rm -f conftest*
1218fi
1219
1220echo "$ac_t""$ac_cv_struct_tm" 1>&6
1221if test $ac_cv_struct_tm = sys/time.h; then
1222  cat >> confdefs.h <<\EOF
1223#define TM_IN_SYS_TIME 1
1224EOF
1225
1226fi
1227
1228
1229echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6
1230echo "configure:1231: checking for gethostname in -lnsl" >&5
1231ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'`
1232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1233  echo $ac_n "(cached) $ac_c" 1>&6
1234else
1235  ac_save_LIBS="$LIBS"
1236LIBS="-lnsl  $LIBS"
1237cat > conftest.$ac_ext <<EOF
1238#line 1239 "configure"
1239#include "confdefs.h"
1240/* Override any gcc2 internal prototype to avoid an error.  */
1241/* We use char because int might match the return type of a gcc2
1242    builtin and then its argument prototype would still apply.  */
1243char gethostname();
1244
1245int main() {
1246gethostname()
1247; return 0; }
1248EOF
1249if { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1250  rm -rf conftest*
1251  eval "ac_cv_lib_$ac_lib_var=yes"
1252else
1253  echo "configure: failed program was:" >&5
1254  cat conftest.$ac_ext >&5
1255  rm -rf conftest*
1256  eval "ac_cv_lib_$ac_lib_var=no"
1257fi
1258rm -f conftest*
1259LIBS="$ac_save_LIBS"
1260
1261fi
1262if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1263  echo "$ac_t""yes" 1>&6
1264    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1265    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1266  cat >> confdefs.h <<EOF
1267#define $ac_tr_lib 1
1268EOF
1269
1270  LIBS="-lnsl $LIBS"
1271
1272else
1273  echo "$ac_t""no" 1>&6
1274fi
1275
1276echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1277echo "configure:1278: checking for socket in -lsocket" >&5
1278ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1279if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1280  echo $ac_n "(cached) $ac_c" 1>&6
1281else
1282  ac_save_LIBS="$LIBS"
1283LIBS="-lsocket  $LIBS"
1284cat > conftest.$ac_ext <<EOF
1285#line 1286 "configure"
1286#include "confdefs.h"
1287/* Override any gcc2 internal prototype to avoid an error.  */
1288/* We use char because int might match the return type of a gcc2
1289    builtin and then its argument prototype would still apply.  */
1290char socket();
1291
1292int main() {
1293socket()
1294; return 0; }
1295EOF
1296if { (eval echo configure:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1297  rm -rf conftest*
1298  eval "ac_cv_lib_$ac_lib_var=yes"
1299else
1300  echo "configure: failed program was:" >&5
1301  cat conftest.$ac_ext >&5
1302  rm -rf conftest*
1303  eval "ac_cv_lib_$ac_lib_var=no"
1304fi
1305rm -f conftest*
1306LIBS="$ac_save_LIBS"
1307
1308fi
1309if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1310  echo "$ac_t""yes" 1>&6
1311    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1312    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1313  cat >> confdefs.h <<EOF
1314#define $ac_tr_lib 1
1315EOF
1316
1317  LIBS="-lsocket $LIBS"
1318
1319else
1320  echo "$ac_t""no" 1>&6
1321fi
1322
1323
1324echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1325echo "configure:1326: checking return type of signal handlers" >&5
1326if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1327  echo $ac_n "(cached) $ac_c" 1>&6
1328else
1329  cat > conftest.$ac_ext <<EOF
1330#line 1331 "configure"
1331#include "confdefs.h"
1332#include <sys/types.h>
1333#include <signal.h>
1334#ifdef signal
1335#undef signal
1336#endif
1337#ifdef __cplusplus
1338extern "C" void (*signal (int, void (*)(int)))(int);
1339#else
1340void (*signal ()) ();
1341#endif
1342
1343int main() {
1344int i;
1345; return 0; }
1346EOF
1347if { (eval echo configure:1348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1348  rm -rf conftest*
1349  ac_cv_type_signal=void
1350else
1351  echo "configure: failed program was:" >&5
1352  cat conftest.$ac_ext >&5
1353  rm -rf conftest*
1354  ac_cv_type_signal=int
1355fi
1356rm -f conftest*
1357fi
1358
1359echo "$ac_t""$ac_cv_type_signal" 1>&6
1360cat >> confdefs.h <<EOF
1361#define RETSIGTYPE $ac_cv_type_signal
1362EOF
1363
1364
1365echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1366echo "configure:1367: checking for vprintf" >&5
1367if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1368  echo $ac_n "(cached) $ac_c" 1>&6
1369else
1370  cat > conftest.$ac_ext <<EOF
1371#line 1372 "configure"
1372#include "confdefs.h"
1373/* System header to define __stub macros and hopefully few prototypes,
1374    which can conflict with char vprintf(); below.  */
1375#include <assert.h>
1376/* Override any gcc2 internal prototype to avoid an error.  */
1377/* We use char because int might match the return type of a gcc2
1378    builtin and then its argument prototype would still apply.  */
1379char vprintf();
1380
1381int main() {
1382
1383/* The GNU C library defines this for functions which it implements
1384    to always fail with ENOSYS.  Some functions are actually named
1385    something starting with __ and the normal name is an alias.  */
1386#if defined (__stub_vprintf) || defined (__stub___vprintf)
1387choke me
1388#else
1389vprintf();
1390#endif
1391
1392; return 0; }
1393EOF
1394if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395  rm -rf conftest*
1396  eval "ac_cv_func_vprintf=yes"
1397else
1398  echo "configure: failed program was:" >&5
1399  cat conftest.$ac_ext >&5
1400  rm -rf conftest*
1401  eval "ac_cv_func_vprintf=no"
1402fi
1403rm -f conftest*
1404fi
1405
1406if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1407  echo "$ac_t""yes" 1>&6
1408  cat >> confdefs.h <<\EOF
1409#define HAVE_VPRINTF 1
1410EOF
1411
1412else
1413  echo "$ac_t""no" 1>&6
1414fi
1415
1416if test "$ac_cv_func_vprintf" != yes; then
1417echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1418echo "configure:1419: checking for _doprnt" >&5
1419if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1420  echo $ac_n "(cached) $ac_c" 1>&6
1421else
1422  cat > conftest.$ac_ext <<EOF
1423#line 1424 "configure"
1424#include "confdefs.h"
1425/* System header to define __stub macros and hopefully few prototypes,
1426    which can conflict with char _doprnt(); below.  */
1427#include <assert.h>
1428/* Override any gcc2 internal prototype to avoid an error.  */
1429/* We use char because int might match the return type of a gcc2
1430    builtin and then its argument prototype would still apply.  */
1431char _doprnt();
1432
1433int main() {
1434
1435/* The GNU C library defines this for functions which it implements
1436    to always fail with ENOSYS.  Some functions are actually named
1437    something starting with __ and the normal name is an alias.  */
1438#if defined (__stub__doprnt) || defined (__stub____doprnt)
1439choke me
1440#else
1441_doprnt();
1442#endif
1443
1444; return 0; }
1445EOF
1446if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1447  rm -rf conftest*
1448  eval "ac_cv_func__doprnt=yes"
1449else
1450  echo "configure: failed program was:" >&5
1451  cat conftest.$ac_ext >&5
1452  rm -rf conftest*
1453  eval "ac_cv_func__doprnt=no"
1454fi
1455rm -f conftest*
1456fi
1457
1458if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1459  echo "$ac_t""yes" 1>&6
1460  cat >> confdefs.h <<\EOF
1461#define HAVE_DOPRNT 1
1462EOF
1463
1464else
1465  echo "$ac_t""no" 1>&6
1466fi
1467
1468fi
1469
1470for ac_func in gethostname socket strdup strstr
1471do
1472echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1473echo "configure:1474: checking for $ac_func" >&5
1474if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1475  echo $ac_n "(cached) $ac_c" 1>&6
1476else
1477  cat > conftest.$ac_ext <<EOF
1478#line 1479 "configure"
1479#include "confdefs.h"
1480/* System header to define __stub macros and hopefully few prototypes,
1481    which can conflict with char $ac_func(); below.  */
1482#include <assert.h>
1483/* Override any gcc2 internal prototype to avoid an error.  */
1484/* We use char because int might match the return type of a gcc2
1485    builtin and then its argument prototype would still apply.  */
1486char $ac_func();
1487
1488int main() {
1489
1490/* The GNU C library defines this for functions which it implements
1491    to always fail with ENOSYS.  Some functions are actually named
1492    something starting with __ and the normal name is an alias.  */
1493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1494choke me
1495#else
1496$ac_func();
1497#endif
1498
1499; return 0; }
1500EOF
1501if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1502  rm -rf conftest*
1503  eval "ac_cv_func_$ac_func=yes"
1504else
1505  echo "configure: failed program was:" >&5
1506  cat conftest.$ac_ext >&5
1507  rm -rf conftest*
1508  eval "ac_cv_func_$ac_func=no"
1509fi
1510rm -f conftest*
1511fi
1512
1513if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1514  echo "$ac_t""yes" 1>&6
1515    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1516  cat >> confdefs.h <<EOF
1517#define $ac_tr_func 1
1518EOF
1519
1520else
1521  echo "$ac_t""no" 1>&6
1522fi
1523done
1524
1525
1526# Check whether --enable-logfile or --disable-logfile was given.
1527if test "${enable_logfile+set}" = set; then
1528  enableval="$enable_logfile"
1529  :
1530fi
1531
1532if test x$enableval = xyes ; then
1533	cat >> confdefs.h <<\EOF
1534#define LOGFILE 1
1535EOF
1536
1537fi
1538enableval=""
1539
1540# Check whether --enable-rewrite-domain or --disable-rewrite-domain was given.
1541if test "${enable_rewrite_domain+set}" = set; then
1542  enableval="$enable_rewrite_domain"
1543  :
1544fi
1545
1546if test x$enableval != xno ; then
1547	cat >> confdefs.h <<\EOF
1548#define REWRITE_DOMAIN 1
1549EOF
1550
1551fi
1552enableval=""
1553
1554# Check whether --enable-ssl or --disable-ssl was given.
1555if test "${enable_ssl+set}" = set; then
1556  enableval="$enable_ssl"
1557  :
1558fi
1559
1560if test x$enableval = xyes ; then
1561	cat >> confdefs.h <<\EOF
1562#define HAVE_SSL 1
1563EOF
1564
1565	LIBS="$LIBS -lssl"
1566fi
1567enableval=""
1568
1569# Check whether --enable-inet6 or --disable-inet6 was given.
1570if test "${enable_inet6+set}" = set; then
1571  enableval="$enable_inet6"
1572  :
1573fi
1574
1575if test x$enableval = xyes ; then
1576	cat >> confdefs.h <<\EOF
1577#define INET6 1
1578EOF
1579
1580fi
1581enableval=""
1582
1583# Check whether --enable-md5auth or --disable-md5auth was given.
1584if test "${enable_md5auth+set}" = set; then
1585  enableval="$enable_md5auth"
1586  :
1587fi
1588
1589if test x$enableval = xyes ; then
1590	cat >> confdefs.h <<\EOF
1591#define MD5AUTH 1
1592EOF
1593
1594	SRCS="$SRCS md5auth/hmac_md5.c"
1595	LIBS="$LIBS -lmd"
1596fi
1597enableval=""
1598
1599trap '' 1 2 15
1600cat > confcache <<\EOF
1601# This file is a shell script that caches the results of configure
1602# tests run on this system so they can be shared between configure
1603# scripts and configure runs.  It is not useful on other systems.
1604# If it contains results you don't want to keep, you may remove or edit it.
1605#
1606# By default, configure uses ./config.cache as the cache file,
1607# creating it if it does not exist already.  You can give configure
1608# the --cache-file=FILE option to use a different cache file; that is
1609# what configure does when it calls configure scripts in
1610# subdirectories, so they share the cache.
1611# Giving --cache-file=/dev/null disables caching, for debugging configure.
1612# config.status only pays attention to the cache file if you give it the
1613# --recheck option to rerun configure.
1614#
1615EOF
1616# The following way of writing the cache mishandles newlines in values,
1617# but we know of no workaround that is simple, portable, and efficient.
1618# So, don't put newlines in cache variables' values.
1619# Ultrix sh set writes to stderr and can't be redirected directly,
1620# and sets the high bit in the cache file unless we assign to the vars.
1621(set) 2>&1 |
1622  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1623  *ac_space=\ *)
1624    # `set' does not quote correctly, so add quotes (double-quote substitution
1625    # turns \\\\ into \\, and sed turns \\ into \).
1626    sed -n \
1627      -e "s/'/'\\\\''/g" \
1628      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1629    ;;
1630  *)
1631    # `set' quotes correctly as required by POSIX, so do not add quotes.
1632    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1633    ;;
1634  esac >> confcache
1635if cmp -s $cache_file confcache; then
1636  :
1637else
1638  if test -w $cache_file; then
1639    echo "updating cache $cache_file"
1640    cat confcache > $cache_file
1641  else
1642    echo "not updating unwritable cache $cache_file"
1643  fi
1644fi
1645rm -f confcache
1646
1647trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1648
1649test "x$prefix" = xNONE && prefix=$ac_default_prefix
1650# Let make expand exec_prefix.
1651test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1652
1653# Any assignment to VPATH causes Sun make to only execute
1654# the first set of double-colon rules, so remove it if not needed.
1655# If there is a colon in the path, we need to keep it.
1656if test "x$srcdir" = x.; then
1657  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
1658fi
1659
1660trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1661
1662# Transform confdefs.h into DEFS.
1663# Protect against shell expansion while executing Makefile rules.
1664# Protect against Makefile macro expansion.
1665cat > conftest.defs <<\EOF
1666s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1667s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
1668s%\[%\\&%g
1669s%\]%\\&%g
1670s%\$%$$%g
1671EOF
1672DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1673rm -f conftest.defs
1674
1675
1676# Without the "./", some shells look in PATH for config.status.
1677: ${CONFIG_STATUS=./config.status}
1678
1679echo creating $CONFIG_STATUS
1680rm -f $CONFIG_STATUS
1681cat > $CONFIG_STATUS <<EOF
1682#! /bin/sh
1683# Generated automatically by configure.
1684# Run this file to recreate the current configuration.
1685# This directory was configured as follows,
1686# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1687#
1688# $0 $ac_configure_args
1689#
1690# Compiler output produced by configure, useful for debugging
1691# configure, is in ./config.log if it exists.
1692
1693ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1694for ac_option
1695do
1696  case "\$ac_option" in
1697  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1698    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1699    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1700  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1701    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1702    exit 0 ;;
1703  -help | --help | --hel | --he | --h)
1704    echo "\$ac_cs_usage"; exit 0 ;;
1705  *) echo "\$ac_cs_usage"; exit 1 ;;
1706  esac
1707done
1708
1709ac_given_srcdir=$srcdir
1710ac_given_INSTALL="$INSTALL"
1711
1712trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1713EOF
1714cat >> $CONFIG_STATUS <<EOF
1715
1716# Protect against being on the right side of a sed subst in config.status.
1717sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1718 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1719$ac_vpsub
1720$extrasub
1721s%@SHELL@%$SHELL%g
1722s%@CFLAGS@%$CFLAGS%g
1723s%@CPPFLAGS@%$CPPFLAGS%g
1724s%@CXXFLAGS@%$CXXFLAGS%g
1725s%@FFLAGS@%$FFLAGS%g
1726s%@DEFS@%$DEFS%g
1727s%@LDFLAGS@%$LDFLAGS%g
1728s%@SRCS@%$SRCS%g
1729s%@LIBS@%$LIBS%g
1730s%@exec_prefix@%$exec_prefix%g
1731s%@prefix@%$prefix%g
1732s%@program_transform_name@%$program_transform_name%g
1733s%@bindir@%$bindir%g
1734s%@sbindir@%$sbindir%g
1735s%@libexecdir@%$libexecdir%g
1736s%@datadir@%$datadir%g
1737s%@sysconfdir@%$sysconfdir%g
1738s%@sharedstatedir@%$sharedstatedir%g
1739s%@localstatedir@%$localstatedir%g
1740s%@libdir@%$libdir%g
1741s%@includedir@%$includedir%g
1742s%@oldincludedir@%$oldincludedir%g
1743s%@infodir@%$infodir%g
1744s%@mandir@%$mandir%g
1745s%@CC@%$CC%g
1746s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1747s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1748s%@INSTALL_DATA@%$INSTALL_DATA%g
1749s%@LN_S@%$LN_S%g
1750s%@CPP@%$CPP%g
1751
1752CEOF
1753EOF
1754
1755cat >> $CONFIG_STATUS <<\EOF
1756
1757# Split the substitutions into bite-sized pieces for seds with
1758# small command number limits, like on Digital OSF/1 and HP-UX.
1759ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1760ac_file=1 # Number of current file.
1761ac_beg=1 # First line for current file.
1762ac_end=$ac_max_sed_cmds # Line after last line for current file.
1763ac_more_lines=:
1764ac_sed_cmds=""
1765while $ac_more_lines; do
1766  if test $ac_beg -gt 1; then
1767    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1768  else
1769    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1770  fi
1771  if test ! -s conftest.s$ac_file; then
1772    ac_more_lines=false
1773    rm -f conftest.s$ac_file
1774  else
1775    if test -z "$ac_sed_cmds"; then
1776      ac_sed_cmds="sed -f conftest.s$ac_file"
1777    else
1778      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1779    fi
1780    ac_file=`expr $ac_file + 1`
1781    ac_beg=$ac_end
1782    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1783  fi
1784done
1785if test -z "$ac_sed_cmds"; then
1786  ac_sed_cmds=cat
1787fi
1788EOF
1789
1790cat >> $CONFIG_STATUS <<EOF
1791
1792CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1793EOF
1794cat >> $CONFIG_STATUS <<\EOF
1795for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1796  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1797  case "$ac_file" in
1798  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1799       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1800  *) ac_file_in="${ac_file}.in" ;;
1801  esac
1802
1803  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1804
1805  # Remove last slash and all that follows it.  Not all systems have dirname.
1806  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1807  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1808    # The file is in a subdirectory.
1809    test ! -d "$ac_dir" && mkdir "$ac_dir"
1810    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1811    # A "../" for each directory in $ac_dir_suffix.
1812    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1813  else
1814    ac_dir_suffix= ac_dots=
1815  fi
1816
1817  case "$ac_given_srcdir" in
1818  .)  srcdir=.
1819      if test -z "$ac_dots"; then top_srcdir=.
1820      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1821  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1822  *) # Relative path.
1823    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1824    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1825  esac
1826
1827  case "$ac_given_INSTALL" in
1828  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1829  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1830  esac
1831
1832  echo creating "$ac_file"
1833  rm -f "$ac_file"
1834  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1835  case "$ac_file" in
1836  *Makefile*) ac_comsub="1i\\
1837# $configure_input" ;;
1838  *) ac_comsub= ;;
1839  esac
1840
1841  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1842  sed -e "$ac_comsub
1843s%@configure_input@%$configure_input%g
1844s%@srcdir@%$srcdir%g
1845s%@top_srcdir@%$top_srcdir%g
1846s%@INSTALL@%$INSTALL%g
1847" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1848fi; done
1849rm -f conftest.s*
1850
1851EOF
1852cat >> $CONFIG_STATUS <<EOF
1853
1854EOF
1855cat >> $CONFIG_STATUS <<\EOF
1856
1857exit 0
1858EOF
1859chmod +x $CONFIG_STATUS
1860rm -fr confdefs* $ac_clean_files
1861test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1862
1863