Autoconfing the file locking options
[mmh] / configure
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:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-apop           enable client-side support for POP3 and APOP"
16 ac_help="$ac_help
17   --enable-debug          enable nmh code debugging"
18 ac_help="$ac_help
19   --enable-masquerade[='draft_from mmailid username_extension']
20                           enable up to 3 types of address masquerading [none]"
21 ac_help="$ac_help
22   --enable-mhe            enable mhe support (DEFAULT)"
23 ac_help="$ac_help
24   --enable-pop            enable client-side support for plain POP3"
25 ac_help="$ac_help
26   --with-cyrus-sasl=<dir> Specify location of Cyrus SASL library for auth"
27 ac_help="$ac_help
28   --with-editor=EDITOR    specify the default editor"
29 ac_help="$ac_help
30   --with-hash-backup      use # as the backup prefix (default: ,)"
31 ac_help="$ac_help
32   --with-hesiod=PREFIX    specify location of Hesiod"
33 ac_help="$ac_help
34   --with-krb4=PREFIX      specify location of Kerberos V4 for KPOP support"
35 ac_help="$ac_help
36   --with-locking=LOCKTYPE specify the file locking method"
37 ac_help="$ac_help
38   --with-mts=MTS          specify the default mail transport agent/service"
39 ac_help="$ac_help
40   --with-pager=PAGER      specify the default pager"
41 ac_help="$ac_help
42   --with-smtpservers='SMTPSERVER1[ SMTPSERVER2...]'
43                           specify the default SMTP server(s) [localhost]"
44 ac_default_prefix=/usr/local/nmh
45
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
49 build=NONE
50 cache_file=./config.cache
51 exec_prefix=NONE
52 host=NONE
53 no_create=
54 nonopt=NONE
55 no_recursion=
56 prefix=NONE
57 program_prefix=NONE
58 program_suffix=NONE
59 program_transform_name=s,x,x,
60 silent=
61 site=
62 srcdir=
63 target=NONE
64 verbose=
65 x_includes=NONE
66 x_libraries=NONE
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
79
80 # Initialize some other variables.
81 subdirs=
82 MFLAGS= MAKEFLAGS=
83 SHELL=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
85 ac_max_here_lines=12
86
87 ac_prev=
88 for ac_option
89 do
90
91   # If the previous option needs an argument, assign it.
92   if test -n "$ac_prev"; then
93     eval "$ac_prev=\$ac_option"
94     ac_prev=
95     continue
96   fi
97
98   case "$ac_option" in
99   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100   *) ac_optarg= ;;
101   esac
102
103   # Accept the important Cygnus configure options, so we can diagnose typos.
104
105   case "$ac_option" in
106
107   -bindir | --bindir | --bindi | --bind | --bin | --bi)
108     ac_prev=bindir ;;
109   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110     bindir="$ac_optarg" ;;
111
112   -build | --build | --buil | --bui | --bu)
113     ac_prev=build ;;
114   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115     build="$ac_optarg" ;;
116
117   -cache-file | --cache-file | --cache-fil | --cache-fi \
118   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119     ac_prev=cache_file ;;
120   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122     cache_file="$ac_optarg" ;;
123
124   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125     ac_prev=datadir ;;
126   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127   | --da=*)
128     datadir="$ac_optarg" ;;
129
130   -disable-* | --disable-*)
131     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132     # Reject names that are not valid shell variable names.
133     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135     fi
136     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137     eval "enable_${ac_feature}=no" ;;
138
139   -enable-* | --enable-*)
140     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141     # Reject names that are not valid shell variable names.
142     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144     fi
145     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146     case "$ac_option" in
147       *=*) ;;
148       *) ac_optarg=yes ;;
149     esac
150     eval "enable_${ac_feature}='$ac_optarg'" ;;
151
152   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154   | --exec | --exe | --ex)
155     ac_prev=exec_prefix ;;
156   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158   | --exec=* | --exe=* | --ex=*)
159     exec_prefix="$ac_optarg" ;;
160
161   -gas | --gas | --ga | --g)
162     # Obsolete; use --with-gas.
163     with_gas=yes ;;
164
165   -help | --help | --hel | --he)
166     # Omit some internal or obsolete options to make the list less imposing.
167     # This message is too long to be a string in the A/UX 3.1 sh.
168     cat << EOF
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
171 Configuration:
172   --cache-file=FILE       cache test results in FILE
173   --help                  print this message
174   --no-create             do not create output files
175   --quiet, --silent       do not print \`checking...' messages
176   --version               print the version of autoconf that created configure
177 Directory and file names:
178   --prefix=PREFIX         install architecture-independent files in PREFIX
179                           [$ac_default_prefix]
180   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
181                           [same as prefix]
182   --bindir=DIR            user executables in DIR [EPREFIX/bin]
183   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
184   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
185   --datadir=DIR           read-only architecture-independent data in DIR
186                           [PREFIX/share]
187   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
188   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
189                           [PREFIX/com]
190   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
191   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
192   --includedir=DIR        C header files in DIR [PREFIX/include]
193   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
194   --infodir=DIR           info documentation in DIR [PREFIX/info]
195   --mandir=DIR            man documentation in DIR [PREFIX/man]
196   --srcdir=DIR            find the sources in DIR [configure dir or ..]
197   --program-prefix=PREFIX prepend PREFIX to installed program names
198   --program-suffix=SUFFIX append SUFFIX to installed program names
199   --program-transform-name=PROGRAM
200                           run sed PROGRAM on installed program names
201 EOF
202     cat << EOF
203 Host type:
204   --build=BUILD           configure for building on BUILD [BUILD=HOST]
205   --host=HOST             configure for HOST [guessed]
206   --target=TARGET         configure for TARGET [TARGET=HOST]
207 Features and packages:
208   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
209   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
210   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
211   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
212   --x-includes=DIR        X include files are in DIR
213   --x-libraries=DIR       X library files are in DIR
214 EOF
215     if test -n "$ac_help"; then
216       echo "--enable and --with options recognized:$ac_help"
217     fi
218     exit 0 ;;
219
220   -host | --host | --hos | --ho)
221     ac_prev=host ;;
222   -host=* | --host=* | --hos=* | --ho=*)
223     host="$ac_optarg" ;;
224
225   -includedir | --includedir | --includedi | --included | --include \
226   | --includ | --inclu | --incl | --inc)
227     ac_prev=includedir ;;
228   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229   | --includ=* | --inclu=* | --incl=* | --inc=*)
230     includedir="$ac_optarg" ;;
231
232   -infodir | --infodir | --infodi | --infod | --info | --inf)
233     ac_prev=infodir ;;
234   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235     infodir="$ac_optarg" ;;
236
237   -libdir | --libdir | --libdi | --libd)
238     ac_prev=libdir ;;
239   -libdir=* | --libdir=* | --libdi=* | --libd=*)
240     libdir="$ac_optarg" ;;
241
242   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243   | --libexe | --libex | --libe)
244     ac_prev=libexecdir ;;
245   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246   | --libexe=* | --libex=* | --libe=*)
247     libexecdir="$ac_optarg" ;;
248
249   -localstatedir | --localstatedir | --localstatedi | --localstated \
250   | --localstate | --localstat | --localsta | --localst \
251   | --locals | --local | --loca | --loc | --lo)
252     ac_prev=localstatedir ;;
253   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256     localstatedir="$ac_optarg" ;;
257
258   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259     ac_prev=mandir ;;
260   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261     mandir="$ac_optarg" ;;
262
263   -nfp | --nfp | --nf)
264     # Obsolete; use --without-fp.
265     with_fp=no ;;
266
267   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268   | --no-cr | --no-c)
269     no_create=yes ;;
270
271   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273     no_recursion=yes ;;
274
275   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277   | --oldin | --oldi | --old | --ol | --o)
278     ac_prev=oldincludedir ;;
279   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282     oldincludedir="$ac_optarg" ;;
283
284   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285     ac_prev=prefix ;;
286   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287     prefix="$ac_optarg" ;;
288
289   -program-prefix | --program-prefix | --program-prefi | --program-pref \
290   | --program-pre | --program-pr | --program-p)
291     ac_prev=program_prefix ;;
292   -program-prefix=* | --program-prefix=* | --program-prefi=* \
293   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294     program_prefix="$ac_optarg" ;;
295
296   -program-suffix | --program-suffix | --program-suffi | --program-suff \
297   | --program-suf | --program-su | --program-s)
298     ac_prev=program_suffix ;;
299   -program-suffix=* | --program-suffix=* | --program-suffi=* \
300   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301     program_suffix="$ac_optarg" ;;
302
303   -program-transform-name | --program-transform-name \
304   | --program-transform-nam | --program-transform-na \
305   | --program-transform-n | --program-transform- \
306   | --program-transform | --program-transfor \
307   | --program-transfo | --program-transf \
308   | --program-trans | --program-tran \
309   | --progr-tra | --program-tr | --program-t)
310     ac_prev=program_transform_name ;;
311   -program-transform-name=* | --program-transform-name=* \
312   | --program-transform-nam=* | --program-transform-na=* \
313   | --program-transform-n=* | --program-transform-=* \
314   | --program-transform=* | --program-transfor=* \
315   | --program-transfo=* | --program-transf=* \
316   | --program-trans=* | --program-tran=* \
317   | --progr-tra=* | --program-tr=* | --program-t=*)
318     program_transform_name="$ac_optarg" ;;
319
320   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321   | -silent | --silent | --silen | --sile | --sil)
322     silent=yes ;;
323
324   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325     ac_prev=sbindir ;;
326   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327   | --sbi=* | --sb=*)
328     sbindir="$ac_optarg" ;;
329
330   -sharedstatedir | --sharedstatedir | --sharedstatedi \
331   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332   | --sharedst | --shareds | --shared | --share | --shar \
333   | --sha | --sh)
334     ac_prev=sharedstatedir ;;
335   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338   | --sha=* | --sh=*)
339     sharedstatedir="$ac_optarg" ;;
340
341   -site | --site | --sit)
342     ac_prev=site ;;
343   -site=* | --site=* | --sit=*)
344     site="$ac_optarg" ;;
345
346   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347     ac_prev=srcdir ;;
348   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349     srcdir="$ac_optarg" ;;
350
351   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352   | --syscon | --sysco | --sysc | --sys | --sy)
353     ac_prev=sysconfdir ;;
354   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356     sysconfdir="$ac_optarg" ;;
357
358   -target | --target | --targe | --targ | --tar | --ta | --t)
359     ac_prev=target ;;
360   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361     target="$ac_optarg" ;;
362
363   -v | -verbose | --verbose | --verbos | --verbo | --verb)
364     verbose=yes ;;
365
366   -version | --version | --versio | --versi | --vers)
367     echo "configure generated by autoconf version 2.13"
368     exit 0 ;;
369
370   -with-* | --with-*)
371     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372     # Reject names that are not valid shell variable names.
373     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375     fi
376     ac_package=`echo $ac_package| sed 's/-/_/g'`
377     case "$ac_option" in
378       *=*) ;;
379       *) ac_optarg=yes ;;
380     esac
381     eval "with_${ac_package}='$ac_optarg'" ;;
382
383   -without-* | --without-*)
384     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385     # Reject names that are not valid shell variable names.
386     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388     fi
389     ac_package=`echo $ac_package| sed 's/-/_/g'`
390     eval "with_${ac_package}=no" ;;
391
392   --x)
393     # Obsolete; use --with-x.
394     with_x=yes ;;
395
396   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397   | --x-incl | --x-inc | --x-in | --x-i)
398     ac_prev=x_includes ;;
399   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401     x_includes="$ac_optarg" ;;
402
403   -x-libraries | --x-libraries | --x-librarie | --x-librari \
404   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405     ac_prev=x_libraries ;;
406   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408     x_libraries="$ac_optarg" ;;
409
410   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411     ;;
412
413   *)
414     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415       echo "configure: warning: $ac_option: invalid host type" 1>&2
416     fi
417     if test "x$nonopt" != xNONE; then
418       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419     fi
420     nonopt="$ac_option"
421     ;;
422
423   esac
424 done
425
426 if test -n "$ac_prev"; then
427   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 fi
429
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431
432 # File descriptor usage:
433 # 0 standard input
434 # 1 file creation
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
441   exec 6>/dev/null
442 else
443   exec 6>&1
444 fi
445 exec 5>./config.log
446
447 echo "\
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
450 " 1>&5
451
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
454 ac_configure_args=
455 for ac_arg
456 do
457   case "$ac_arg" in
458   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459   | --no-cr | --no-c) ;;
460   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465   esac
466 done
467
468 # NLS nuisances.
469 # Only set these to C if already set.  These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
477
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 echo > confdefs.h
482
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file=h/nmh.h
486
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489   ac_srcdir_defaulted=yes
490   # Try the directory containing this script, then its parent.
491   ac_prog=$0
492   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494   srcdir=$ac_confdir
495   if test ! -r $srcdir/$ac_unique_file; then
496     srcdir=..
497   fi
498 else
499   ac_srcdir_defaulted=no
500 fi
501 if test ! -r $srcdir/$ac_unique_file; then
502   if test "$ac_srcdir_defaulted" = yes; then
503     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504   else
505     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506   fi
507 fi
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512   if test "x$prefix" != xNONE; then
513     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514   else
515     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516   fi
517 fi
518 for ac_site_file in $CONFIG_SITE; do
519   if test -r "$ac_site_file"; then
520     echo "loading site script $ac_site_file"
521     . "$ac_site_file"
522   fi
523 done
524
525 if test -r "$cache_file"; then
526   echo "loading cache $cache_file"
527   . $cache_file
528 else
529   echo "creating cache $cache_file"
530   > $cache_file
531 fi
532
533 ac_ext=c
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
539
540 ac_exeext=
541 ac_objext=o
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545     ac_n= ac_c='
546 ' ac_t='        '
547   else
548     ac_n=-n ac_c= ac_t=
549   fi
550 else
551   ac_n= ac_c='\c' ac_t=
552 fi
553
554
555
556
557 ac_aux_dir=
558 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
559   if test -f $ac_dir/install-sh; then
560     ac_aux_dir=$ac_dir
561     ac_install_sh="$ac_aux_dir/install-sh -c"
562     break
563   elif test -f $ac_dir/install.sh; then
564     ac_aux_dir=$ac_dir
565     ac_install_sh="$ac_aux_dir/install.sh -c"
566     break
567   fi
568 done
569 if test -z "$ac_aux_dir"; then
570   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
571 fi
572 ac_config_guess=$ac_aux_dir/config.guess
573 ac_config_sub=$ac_aux_dir/config.sub
574 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
575
576
577 # Do some error checking and defaulting for the host and target type.
578 # The inputs are:
579 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
580 #
581 # The rules are:
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
583 #    same time.
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 #    as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
589
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---*---* | *---NONE---* | *---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
595 esac
596
597
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
601 fi
602
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
605
606 host_alias=$host
607 case "$host_alias" in
608 NONE)
609   case $nonopt in
610   NONE)
611     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
613     fi ;;
614   *) host_alias=$nonopt ;;
615   esac ;;
616 esac
617
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
623
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
626
627 target_alias=$target
628 case "$target_alias" in
629 NONE)
630   case $nonopt in
631   NONE) target_alias=$host_alias ;;
632   *) target_alias=$nonopt ;;
633   esac ;;
634 esac
635
636 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
641
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
644
645 build_alias=$build
646 case "$build_alias" in
647 NONE)
648   case $nonopt in
649   NONE) build_alias=$host_alias ;;
650   *) build_alias=$nonopt ;;
651   esac ;;
652 esac
653
654 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
659
660 test "$host_alias" != "$target_alias" &&
661   test "$program_prefix$program_suffix$program_transform_name" = \
662     NONENONEs,x,x, &&
663   program_prefix=${target_alias}-
664
665
666
667
668   
669
670 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
671 echo "configuring for nmh-$VERSION"
672
673
674 # Check whether --enable-apop or --disable-apop was given.
675 if test "${enable_apop+set}" = set; then
676   enableval="$enable_apop"
677   :
678 fi
679
680 if test x"$enable_apop" = x"yes"; then
681   cat >> confdefs.h <<\EOF
682 #define APOP 1
683 EOF
684   APOPLIB=md5.o
685   enable_pop=yes
686 fi
687
688 # Check whether --enable-debug or --disable-debug was given.
689 if test "${enable_debug+set}" = set; then
690   enableval="$enable_debug"
691   :
692 fi
693
694 if test x"$enable_nmh_debug" = x"yes"; then
695   enable_debug=yes
696 fi
697
698 # Check whether --enable-masquerade or --disable-masquerade was given.
699 if test "${enable_masquerade+set}" = set; then
700   enableval="$enable_masquerade"
701   if test x"$enable_masquerade" = x"yes"; then
702     masquerade="draft_from mmailid username_extension"
703   else
704     masquerade="$enable_masquerade"
705   fi
706 fi
707
708
709 # Check whether --enable-mhe or --disable-mhe was given.
710 if test "${enable_mhe+set}" = set; then
711   enableval="$enable_mhe"
712   :
713 fi
714
715
716 if test x"$enable_mhe" != x"no" -a x"$enable_nmh_mhe" != x"no"; then
717   cat >> confdefs.h <<\EOF
718 #define MHE 1
719 EOF
720 fi
721
722 # Check whether --enable-pop or --disable-pop was given.
723 if test "${enable_pop+set}" = set; then
724   enableval="$enable_pop"
725   :
726 fi
727
728 if test x"$enable_nmh_pop" = x"yes"; then
729   enable_pop=yes
730 fi
731
732 # Check whether --with-cyrus-sasl or --without-cyrus-sasl was given.
733 if test "${with_cyrus_sasl+set}" = set; then
734   withval="$with_cyrus_sasl"
735   :
736 fi
737
738 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != "no"; then
739   cat >> confdefs.h <<\EOF
740 #define CYRUS_SASL 1
741 EOF
742 fi
743
744 # Check whether --with-editor or --without-editor was given.
745 if test "${with_editor+set}" = set; then
746   withval="$with_editor"
747   :
748 fi
749
750
751 if test -n "$with_editor"; then
752   editorpath="$with_editor"
753 fi
754
755 # Check whether --with-hash-backup or --without-hash-backup was given.
756 if test "${with_hash_backup+set}" = set; then
757   withval="$with_hash_backup"
758   :
759 fi
760
761 if test x"$with_hash_backup" != x -a x"$with_hash_backup" != x"no"; then
762   backup_prefix="#"
763 else
764   backup_prefix=","
765 fi
766 cat >> confdefs.h <<EOF
767 #define BACKUP_PREFIX "$backup_prefix"
768 EOF
769
770 # Check whether --with-hesiod or --without-hesiod was given.
771 if test "${with_hesiod+set}" = set; then
772   withval="$with_hesiod"
773   :
774 fi
775
776 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
777   cat >> confdefs.h <<\EOF
778 #define HESIOD 1
779 EOF
780 fi
781
782 # Check whether --with-krb4 or --without-krb4 was given.
783 if test "${with_krb4+set}" = set; then
784   withval="$with_krb4"
785   :
786 fi
787
788 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
789   enable_pop=yes
790   cat >> confdefs.h <<\EOF
791 #define KPOP 1
792 EOF
793   cat >> confdefs.h <<\EOF
794 #define KPOP_PRINCIPAL "pop"
795 EOF
796 fi
797
798 if test x"$enable_pop" = x"yes"; then
799   cat >> confdefs.h <<\EOF
800 #define POP 1
801 EOF
802   POPLIB=popsbr.o
803   POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
804 else
805   POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
806 fi
807
808 # Check whether --with-locking or --without-locking was given.
809 if test "${with_locking+set}" = set; then
810   withval="$with_locking"
811   :
812 fi
813
814
815 if test x"$with_locking" = x"dot"; then
816   LOCKTYPE="dot"
817   cat >> confdefs.h <<\EOF
818 #define DOT_LOCKING 1
819 EOF
820 elif test x"$with_locking" = x"flock"; then
821   LOCKTYPE="flock"
822   cat >> confdefs.h <<\EOF
823 #define FLOCK_LOCKING 1
824 EOF
825 elif test x"$with_locking" = x"lockf"; then
826   LOCKTYPE="lockf"
827   cat >> confdefs.h <<\EOF
828 #define LOCKF_LOCKING 1
829 EOF
830 elif test x"$with_locking" = x"fcntl"; then
831   LOCKTYPE="fcntl"
832   cat >> confdefs.h <<\EOF
833 #define FCNTL_LOCKING 1
834 EOF
835 else
836   LOCKTYPE="dot"
837   cat >> confdefs.h <<\EOF
838 #define DOT_LOCKING 1
839 EOF
840 fi
841
842 # Check whether --with-mts or --without-mts was given.
843 if test "${with_mts+set}" = set; then
844   withval="$with_mts"
845   :
846 fi
847
848
849 if test x"$with_mts" = x"smtp"; then
850   MTS="smtp"
851 elif test x"$with_mts" = x"sendmail"; then
852   MTS="sendmail"
853 else
854   MTS="smtp"
855 fi
856
857 cat >> confdefs.h <<\EOF
858 #define SMTPMTS 1
859 EOF
860
861 # Check whether --with-pager or --without-pager was given.
862 if test "${with_pager+set}" = set; then
863   withval="$with_pager"
864   :
865 fi
866
867
868 if test -n "$with_pager"; then
869   pagerpath="$with_pager"
870 fi
871
872 # Check whether --with-smtpservers or --without-smtpservers was given.
873 if test "${with_smtpservers+set}" = set; then
874   withval="$with_smtpservers"
875   :
876 fi
877
878 if test -n "$with_smtpservers"; then
879   smtpservers="$with_smtpservers"
880 else
881   smtpservers="localhost"
882 fi
883
884
885
886 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
887 if test x"$enable_debug" = x"yes"; then
888   test -z "$LDFLAGS" && LDFLAGS=-g
889 fi
890
891 # Extract the first word of "gcc", so it can be a program name with args.
892 set dummy gcc; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896   echo $ac_n "(cached) $ac_c" 1>&6
897 else
898   if test -n "$CC"; then
899   ac_cv_prog_CC="$CC" # Let the user override the test.
900 else
901   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
902   ac_dummy="$PATH"
903   for ac_dir in $ac_dummy; do
904     test -z "$ac_dir" && ac_dir=.
905     if test -f $ac_dir/$ac_word; then
906       ac_cv_prog_CC="gcc"
907       break
908     fi
909   done
910   IFS="$ac_save_ifs"
911 fi
912 fi
913 CC="$ac_cv_prog_CC"
914 if test -n "$CC"; then
915   echo "$ac_t""$CC" 1>&6
916 else
917   echo "$ac_t""no" 1>&6
918 fi
919
920 if test -z "$CC"; then
921   # Extract the first word of "cc", so it can be a program name with args.
922 set dummy cc; ac_word=$2
923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
924 echo "configure:925: checking for $ac_word" >&5
925 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
926   echo $ac_n "(cached) $ac_c" 1>&6
927 else
928   if test -n "$CC"; then
929   ac_cv_prog_CC="$CC" # Let the user override the test.
930 else
931   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
932   ac_prog_rejected=no
933   ac_dummy="$PATH"
934   for ac_dir in $ac_dummy; do
935     test -z "$ac_dir" && ac_dir=.
936     if test -f $ac_dir/$ac_word; then
937       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
938         ac_prog_rejected=yes
939         continue
940       fi
941       ac_cv_prog_CC="cc"
942       break
943     fi
944   done
945   IFS="$ac_save_ifs"
946 if test $ac_prog_rejected = yes; then
947   # We found a bogon in the path, so make sure we never use it.
948   set dummy $ac_cv_prog_CC
949   shift
950   if test $# -gt 0; then
951     # We chose a different compiler from the bogus one.
952     # However, it has the same basename, so the bogon will be chosen
953     # first if we set CC to just the basename; use the full file name.
954     shift
955     set dummy "$ac_dir/$ac_word" "$@"
956     shift
957     ac_cv_prog_CC="$@"
958   fi
959 fi
960 fi
961 fi
962 CC="$ac_cv_prog_CC"
963 if test -n "$CC"; then
964   echo "$ac_t""$CC" 1>&6
965 else
966   echo "$ac_t""no" 1>&6
967 fi
968
969   if test -z "$CC"; then
970     case "`uname -s`" in
971     *win32* | *WIN32*)
972       # Extract the first word of "cl", so it can be a program name with args.
973 set dummy cl; ac_word=$2
974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
975 echo "configure:976: checking for $ac_word" >&5
976 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
977   echo $ac_n "(cached) $ac_c" 1>&6
978 else
979   if test -n "$CC"; then
980   ac_cv_prog_CC="$CC" # Let the user override the test.
981 else
982   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
983   ac_dummy="$PATH"
984   for ac_dir in $ac_dummy; do
985     test -z "$ac_dir" && ac_dir=.
986     if test -f $ac_dir/$ac_word; then
987       ac_cv_prog_CC="cl"
988       break
989     fi
990   done
991   IFS="$ac_save_ifs"
992 fi
993 fi
994 CC="$ac_cv_prog_CC"
995 if test -n "$CC"; then
996   echo "$ac_t""$CC" 1>&6
997 else
998   echo "$ac_t""no" 1>&6
999 fi
1000  ;;
1001     esac
1002   fi
1003   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1004 fi
1005
1006 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1008
1009 ac_ext=c
1010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1011 ac_cpp='$CPP $CPPFLAGS'
1012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1014 cross_compiling=$ac_cv_prog_cc_cross
1015
1016 cat > conftest.$ac_ext << EOF
1017
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1020
1021 main(){return(0);}
1022 EOF
1023 if { (eval echo configure:1024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1024   ac_cv_prog_cc_works=yes
1025   # If we can't run a trivial program, we are probably using a cross compiler.
1026   if (./conftest; exit) 2>/dev/null; then
1027     ac_cv_prog_cc_cross=no
1028   else
1029     ac_cv_prog_cc_cross=yes
1030   fi
1031 else
1032   echo "configure: failed program was:" >&5
1033   cat conftest.$ac_ext >&5
1034   ac_cv_prog_cc_works=no
1035 fi
1036 rm -fr conftest*
1037 ac_ext=c
1038 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1039 ac_cpp='$CPP $CPPFLAGS'
1040 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1041 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1042 cross_compiling=$ac_cv_prog_cc_cross
1043
1044 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1045 if test $ac_cv_prog_cc_works = no; then
1046   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1047 fi
1048 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1049 echo "configure:1050: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1050 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1051 cross_compiling=$ac_cv_prog_cc_cross
1052
1053 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1054 echo "configure:1055: checking whether we are using GNU C" >&5
1055 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1056   echo $ac_n "(cached) $ac_c" 1>&6
1057 else
1058   cat > conftest.c <<EOF
1059 #ifdef __GNUC__
1060   yes;
1061 #endif
1062 EOF
1063 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1064   ac_cv_prog_gcc=yes
1065 else
1066   ac_cv_prog_gcc=no
1067 fi
1068 fi
1069
1070 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1071
1072 if test $ac_cv_prog_gcc = yes; then
1073   GCC=yes
1074 else
1075   GCC=
1076 fi
1077
1078 ac_test_CFLAGS="${CFLAGS+set}"
1079 ac_save_CFLAGS="$CFLAGS"
1080 CFLAGS=
1081 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether ${CC-cc} accepts -g" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1084   echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086   echo 'void f(){}' > conftest.c
1087 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1088   ac_cv_prog_cc_g=yes
1089 else
1090   ac_cv_prog_cc_g=no
1091 fi
1092 rm -f conftest*
1093
1094 fi
1095
1096 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1097 if test "$ac_test_CFLAGS" = set; then
1098   CFLAGS="$ac_save_CFLAGS"
1099 elif test $ac_cv_prog_cc_g = yes; then
1100   if test "$GCC" = yes; then
1101     CFLAGS="-g -O2"
1102   else
1103     CFLAGS="-g"
1104   fi
1105 else
1106   if test "$GCC" = yes; then
1107     CFLAGS="-O2"
1108   else
1109     CFLAGS=
1110   fi
1111 fi
1112
1113
1114 if test -n "$auto_cflags"; then
1115   if test x"$enable_debug" = x"yes"; then
1116     if test -n "$GCC"; then
1117       test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1118     else
1119       test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1120     fi
1121   else
1122     if test -z "$LDFLAGS"; then
1123       case "$build_os" in
1124         darwin*)
1125           LDFLAGS=
1126           ;;
1127         *)
1128           LDFLAGS=-s
1129           ;;
1130       esac
1131     fi
1132     if test -n "$GCC"; then
1133       test -z "$CFLAGS" && CFLAGS="-Wall -O2" || CFLAGS="$CFLAGS -Wall -O2"
1134     else
1135       test -z "$CFLAGS" && CFLAGS=-O  || CFLAGS="$CFLAGS -O"
1136     fi
1137   fi
1138 fi
1139
1140 echo $ac_n "checking for working const""... $ac_c" 1>&6
1141 echo "configure:1142: checking for working const" >&5
1142 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1143   echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145   cat > conftest.$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1148
1149 int main() {
1150
1151 /* Ultrix mips cc rejects this.  */
1152 typedef int charset[2]; const charset x;
1153 /* SunOS 4.1.1 cc rejects this.  */
1154 char const *const *ccp;
1155 char **p;
1156 /* NEC SVR4.0.2 mips cc rejects this.  */
1157 struct point {int x, y;};
1158 static struct point const zero = {0,0};
1159 /* AIX XL C 1.02.0.0 rejects this.
1160    It does not let you subtract one const X* pointer from another in an arm
1161    of an if-expression whose if-part is not a constant expression */
1162 const char *g = "string";
1163 ccp = &g + (g ? g-g : 0);
1164 /* HPUX 7.0 cc rejects these. */
1165 ++ccp;
1166 p = (char**) ccp;
1167 ccp = (char const *const *) p;
1168 { /* SCO 3.2v4 cc rejects this.  */
1169   char *t;
1170   char const *s = 0 ? (char *) 0 : (char const *) 0;
1171
1172   *t++ = 0;
1173 }
1174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1175   int x[] = {25, 17};
1176   const int *foo = &x[0];
1177   ++foo;
1178 }
1179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1180   typedef const int *iptr;
1181   iptr p = 0;
1182   ++p;
1183 }
1184 { /* AIX XL C 1.02.0.0 rejects this saying
1185      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1186   struct s { int j; const int *ap[3]; };
1187   struct s *b; b->j = 5;
1188 }
1189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1190   const int foo = 10;
1191 }
1192
1193 ; return 0; }
1194 EOF
1195 if { (eval echo configure:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1196   rm -rf conftest*
1197   ac_cv_c_const=yes
1198 else
1199   echo "configure: failed program was:" >&5
1200   cat conftest.$ac_ext >&5
1201   rm -rf conftest*
1202   ac_cv_c_const=no
1203 fi
1204 rm -f conftest*
1205 fi
1206
1207 echo "$ac_t""$ac_cv_c_const" 1>&6
1208 if test $ac_cv_c_const = no; then
1209   cat >> confdefs.h <<\EOF
1210 #define const 
1211 EOF
1212
1213 fi
1214               
1215 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether ${MAKE-make} sets \${MAKE}" >&5
1217 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1218 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1219   echo $ac_n "(cached) $ac_c" 1>&6
1220 else
1221   cat > conftestmake <<\EOF
1222 all:
1223         @echo 'ac_maketemp="${MAKE}"'
1224 EOF
1225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1226 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1227 if test -n "$ac_maketemp"; then
1228   eval ac_cv_prog_make_${ac_make}_set=yes
1229 else
1230   eval ac_cv_prog_make_${ac_make}_set=no
1231 fi
1232 rm -f conftestmake
1233 fi
1234 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1235   echo "$ac_t""yes" 1>&6
1236   SET_MAKE=
1237 else
1238   echo "$ac_t""no" 1>&6
1239   SET_MAKE="MAKE=${MAKE-make}"
1240 fi
1241         # Find a good install program.  We prefer a C program (faster),
1242 # so one script is as good as another.  But avoid the broken or
1243 # incompatible versions:
1244 # SysV /etc/install, /usr/sbin/install
1245 # SunOS /usr/etc/install
1246 # IRIX /sbin/install
1247 # AIX /bin/install
1248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1251 # ./install, which can be erroneously created by make from ./install.sh.
1252 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1253 echo "configure:1254: checking for a BSD compatible install" >&5
1254 if test -z "$INSTALL"; then
1255 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1256   echo $ac_n "(cached) $ac_c" 1>&6
1257 else
1258     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1259   for ac_dir in $PATH; do
1260     # Account for people who put trailing slashes in PATH elements.
1261     case "$ac_dir/" in
1262     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1263     *)
1264       # OSF1 and SCO ODT 3.0 have their own names for install.
1265       # Don't use installbsd from OSF since it installs stuff as root
1266       # by default.
1267       for ac_prog in ginstall scoinst install; do
1268         if test -f $ac_dir/$ac_prog; then
1269           if test $ac_prog = install &&
1270             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1271             # AIX install.  It has an incompatible calling convention.
1272             :
1273           else
1274             ac_cv_path_install="$ac_dir/$ac_prog -c"
1275             break 2
1276           fi
1277         fi
1278       done
1279       ;;
1280     esac
1281   done
1282   IFS="$ac_save_IFS"
1283
1284 fi
1285   if test "${ac_cv_path_install+set}" = set; then
1286     INSTALL="$ac_cv_path_install"
1287   else
1288     # As a last resort, use the slow shell script.  We don't cache a
1289     # path for INSTALL within a source directory, because that will
1290     # break other packages using the cache if that directory is
1291     # removed, or if the path is relative.
1292     INSTALL="$ac_install_sh"
1293   fi
1294 fi
1295 echo "$ac_t""$INSTALL" 1>&6
1296
1297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1298 # It thinks the first close brace ends the variable substitution.
1299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1300
1301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1302
1303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1304                 # Extract the first word of "ranlib", so it can be a program name with args.
1305 set dummy ranlib; ac_word=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1309   echo $ac_n "(cached) $ac_c" 1>&6
1310 else
1311   if test -n "$RANLIB"; then
1312   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1313 else
1314   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1315   ac_dummy="$PATH"
1316   for ac_dir in $ac_dummy; do
1317     test -z "$ac_dir" && ac_dir=.
1318     if test -f $ac_dir/$ac_word; then
1319       ac_cv_prog_RANLIB="ranlib"
1320       break
1321     fi
1322   done
1323   IFS="$ac_save_ifs"
1324   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1325 fi
1326 fi
1327 RANLIB="$ac_cv_prog_RANLIB"
1328 if test -n "$RANLIB"; then
1329   echo "$ac_t""$RANLIB" 1>&6
1330 else
1331   echo "$ac_t""no" 1>&6
1332 fi
1333                 for ac_prog in gawk mawk nawk awk
1334 do
1335 # Extract the first word of "$ac_prog", so it can be a program name with args.
1336 set dummy $ac_prog; ac_word=$2
1337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_word" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1340   echo $ac_n "(cached) $ac_c" 1>&6
1341 else
1342   if test -n "$AWK"; then
1343   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1344 else
1345   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1346   ac_dummy="$PATH"
1347   for ac_dir in $ac_dummy; do
1348     test -z "$ac_dir" && ac_dir=.
1349     if test -f $ac_dir/$ac_word; then
1350       ac_cv_prog_AWK="$ac_prog"
1351       break
1352     fi
1353   done
1354   IFS="$ac_save_ifs"
1355 fi
1356 fi
1357 AWK="$ac_cv_prog_AWK"
1358 if test -n "$AWK"; then
1359   echo "$ac_t""$AWK" 1>&6
1360 else
1361   echo "$ac_t""no" 1>&6
1362 fi
1363
1364 test -n "$AWK" && break
1365 done
1366              # Extract the first word of "flex", so it can be a program name with args.
1367 set dummy flex; ac_word=$2
1368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1369 echo "configure:1370: checking for $ac_word" >&5
1370 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1371   echo $ac_n "(cached) $ac_c" 1>&6
1372 else
1373   if test -n "$LEX"; then
1374   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1375 else
1376   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1377   ac_dummy="$PATH"
1378   for ac_dir in $ac_dummy; do
1379     test -z "$ac_dir" && ac_dir=.
1380     if test -f $ac_dir/$ac_word; then
1381       ac_cv_prog_LEX="flex"
1382       break
1383     fi
1384   done
1385   IFS="$ac_save_ifs"
1386   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1387 fi
1388 fi
1389 LEX="$ac_cv_prog_LEX"
1390 if test -n "$LEX"; then
1391   echo "$ac_t""$LEX" 1>&6
1392 else
1393   echo "$ac_t""no" 1>&6
1394 fi
1395
1396 if test -z "$LEXLIB"
1397 then
1398   case "$LEX" in
1399   flex*) ac_lib=fl ;;
1400   *) ac_lib=l ;;
1401   esac
1402   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1403 echo "configure:1404: checking for yywrap in -l$ac_lib" >&5
1404 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1406   echo $ac_n "(cached) $ac_c" 1>&6
1407 else
1408   ac_save_LIBS="$LIBS"
1409 LIBS="-l$ac_lib  $LIBS"
1410 cat > conftest.$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1413 /* Override any gcc2 internal prototype to avoid an error.  */
1414 /* We use char because int might match the return type of a gcc2
1415     builtin and then its argument prototype would still apply.  */
1416 char yywrap();
1417
1418 int main() {
1419 yywrap()
1420 ; return 0; }
1421 EOF
1422 if { (eval echo configure:1423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1423   rm -rf conftest*
1424   eval "ac_cv_lib_$ac_lib_var=yes"
1425 else
1426   echo "configure: failed program was:" >&5
1427   cat conftest.$ac_ext >&5
1428   rm -rf conftest*
1429   eval "ac_cv_lib_$ac_lib_var=no"
1430 fi
1431 rm -f conftest*
1432 LIBS="$ac_save_LIBS"
1433
1434 fi
1435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1436   echo "$ac_t""yes" 1>&6
1437   LEXLIB="-l$ac_lib"
1438 else
1439   echo "$ac_t""no" 1>&6
1440 fi
1441
1442 fi
1443              
1444 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1445 # Extract the first word of "cut", so it can be a program name with args.
1446 set dummy cut; ac_word=$2
1447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1448 echo "configure:1449: checking for $ac_word" >&5
1449 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1450   echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452   case "$cutpath" in
1453   /*)
1454   ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1455   ;;
1456   ?:/*)                  
1457   ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1458   ;;
1459   *)
1460   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1461   ac_dummy="$pathtmp"
1462   for ac_dir in $ac_dummy; do 
1463     test -z "$ac_dir" && ac_dir=.
1464     if test -f $ac_dir/$ac_word; then
1465       ac_cv_path_cutpath="$ac_dir/$ac_word"
1466       break
1467     fi
1468   done
1469   IFS="$ac_save_ifs"
1470   test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1471   ;;
1472 esac
1473 fi
1474 cutpath="$ac_cv_path_cutpath"
1475 if test -n "$cutpath"; then
1476   echo "$ac_t""$cutpath" 1>&6
1477 else
1478   echo "$ac_t""no" 1>&6
1479 fi
1480
1481
1482 # Extract the first word of "lclint", so it can be a program name with args.
1483 set dummy lclint; ac_word=$2
1484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1485 echo "configure:1486: checking for $ac_word" >&5
1486 if eval "test \"`echo '$''{'ac_cv_prog_linttmp1'+set}'`\" = set"; then
1487   echo $ac_n "(cached) $ac_c" 1>&6
1488 else
1489   if test -n "$linttmp1"; then
1490   ac_cv_prog_linttmp1="$linttmp1" # Let the user override the test.
1491 else
1492   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1493   ac_dummy="$PATH"
1494   for ac_dir in $ac_dummy; do
1495     test -z "$ac_dir" && ac_dir=.
1496     if test -f $ac_dir/$ac_word; then
1497       ac_cv_prog_linttmp1="lclint"
1498       break
1499     fi
1500   done
1501   IFS="$ac_save_ifs"
1502   test -z "$ac_cv_prog_linttmp1" && ac_cv_prog_linttmp1="no"
1503 fi
1504 fi
1505 linttmp1="$ac_cv_prog_linttmp1"
1506 if test -n "$linttmp1"; then
1507   echo "$ac_t""$linttmp1" 1>&6
1508 else
1509   echo "$ac_t""no" 1>&6
1510 fi
1511 if test x$ac_cv_prog_linttmp1 != xno ; then
1512   LINT=$ac_cv_prog_linttmp1
1513   LINTFLAGS="-weak +posixlib -macrovarprefixexclude"
1514 else
1515   # Extract the first word of "lint", so it can be a program name with args.
1516 set dummy lint; ac_word=$2
1517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1518 echo "configure:1519: checking for $ac_word" >&5
1519 if eval "test \"`echo '$''{'ac_cv_prog_linttmp2'+set}'`\" = set"; then
1520   echo $ac_n "(cached) $ac_c" 1>&6
1521 else
1522   if test -n "$linttmp2"; then
1523   ac_cv_prog_linttmp2="$linttmp2" # Let the user override the test.
1524 else
1525   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1526   ac_dummy="$PATH"
1527   for ac_dir in $ac_dummy; do
1528     test -z "$ac_dir" && ac_dir=.
1529     if test -f $ac_dir/$ac_word; then
1530       ac_cv_prog_linttmp2="lint"
1531       break
1532     fi
1533   done
1534   IFS="$ac_save_ifs"
1535   test -z "$ac_cv_prog_linttmp2" && ac_cv_prog_linttmp2="no"
1536 fi
1537 fi
1538 linttmp2="$ac_cv_prog_linttmp2"
1539 if test -n "$linttmp2"; then
1540   echo "$ac_t""$linttmp2" 1>&6
1541 else
1542   echo "$ac_t""no" 1>&6
1543 fi
1544   if test x$ac_cv_prog_linttmp2 != xno ; then
1545     LINT=$ac_cv_prog_linttmp2
1546     LINTFLAGS=""
1547   else
1548     LINT="echo 'No lint program found'"
1549     LINTFLAGS=""
1550   fi
1551 fi
1552
1553 # Extract the first word of "libtool", so it can be a program name with args.
1554 set dummy libtool; ac_word=$2
1555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1556 echo "configure:1557: checking for $ac_word" >&5
1557 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1558   echo $ac_n "(cached) $ac_c" 1>&6
1559 else
1560   if test -n "$LIBTOOL"; then
1561   ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1562 else
1563   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1564   ac_dummy="$pathtmp"
1565   for ac_dir in $ac_dummy; do
1566     test -z "$ac_dir" && ac_dir=.
1567     if test -f $ac_dir/$ac_word; then
1568       ac_cv_prog_LIBTOOL="libtool"
1569       break
1570     fi
1571   done
1572   IFS="$ac_save_ifs"
1573 fi
1574 fi
1575 LIBTOOL="$ac_cv_prog_LIBTOOL"
1576 if test -n "$LIBTOOL"; then
1577   echo "$ac_t""$LIBTOOL" 1>&6
1578 else
1579   echo "$ac_t""no" 1>&6
1580 fi
1581
1582
1583 if test -n "$LIBTOOL" ; then
1584   tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1585   if test x"$tmptest" != x  ; then
1586     GNU_LIBTOOL=1
1587       fi
1588 fi
1589  
1590
1591 # Extract the first word of "lorder", so it can be a program name with args.
1592 set dummy lorder; ac_word=$2
1593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1594 echo "configure:1595: checking for $ac_word" >&5
1595 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1596   echo $ac_n "(cached) $ac_c" 1>&6
1597 else
1598   if test -n "$LORDER"; then
1599   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1600 else
1601   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1602   ac_dummy="$PATH"
1603   for ac_dir in $ac_dummy; do
1604     test -z "$ac_dir" && ac_dir=.
1605     if test -f $ac_dir/$ac_word; then
1606       ac_cv_prog_LORDER="lorder"
1607       break
1608     fi
1609   done
1610   IFS="$ac_save_ifs"
1611   test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1612 fi
1613 fi
1614 LORDER="$ac_cv_prog_LORDER"
1615 if test -n "$LORDER"; then
1616   echo "$ac_t""$LORDER" 1>&6
1617 else
1618   echo "$ac_t""no" 1>&6
1619 fi
1620 # Extract the first word of "tsort", so it can be a program name with args.
1621 set dummy tsort; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1625   echo $ac_n "(cached) $ac_c" 1>&6
1626 else
1627   if test -n "$TSORT"; then
1628   ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1629 else
1630   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1631   ac_dummy="$PATH"
1632   for ac_dir in $ac_dummy; do
1633     test -z "$ac_dir" && ac_dir=.
1634     if test -f $ac_dir/$ac_word; then
1635       ac_cv_prog_TSORT="tsort"
1636       break
1637     fi
1638   done
1639   IFS="$ac_save_ifs"
1640   test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1641 fi
1642 fi
1643 TSORT="$ac_cv_prog_TSORT"
1644 if test -n "$TSORT"; then
1645   echo "$ac_t""$TSORT" 1>&6
1646 else
1647   echo "$ac_t""no" 1>&6
1648 fi
1649
1650 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1651   LORDER=echo
1652   TSORT=cat
1653     fi
1654
1655 echo $ac_n "checking whether tsort can deal with loops""... $ac_c" 1>&6
1656 echo "configure:1657: checking whether tsort can deal with loops" >&5
1657 if eval "test \"`echo '$''{'nmh_cv_tsort_loop'+set}'`\" = set"; then
1658   echo $ac_n "(cached) $ac_c" 1>&6
1659 else
1660   if test -z "`echo a b b a | tsort 2>/dev/null | grep a`" ; then
1661     nmh_cv_tsort_loop=no
1662   else
1663     nmh_cv_tsort_loop=yes
1664   fi
1665 fi
1666
1667 echo "$ac_t""$nmh_cv_tsort_loop" 1>&6
1668 if test x$nmh_cv_tsort_loop = xno ; then
1669   LORDER=echo
1670   TSORT=cat
1671     fi
1672
1673 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1674 # Extract the first word of "ls", so it can be a program name with args.
1675 set dummy ls; ac_word=$2
1676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1677 echo "configure:1678: checking for $ac_word" >&5
1678 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1679   echo $ac_n "(cached) $ac_c" 1>&6
1680 else
1681   case "$lspath" in
1682   /*)
1683   ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1684   ;;
1685   ?:/*)                  
1686   ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1687   ;;
1688   *)
1689   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1690   ac_dummy="$pathtmp"
1691   for ac_dir in $ac_dummy; do 
1692     test -z "$ac_dir" && ac_dir=.
1693     if test -f $ac_dir/$ac_word; then
1694       ac_cv_path_lspath="$ac_dir/$ac_word"
1695       break
1696     fi
1697   done
1698   IFS="$ac_save_ifs"
1699   test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1700   ;;
1701 esac
1702 fi
1703 lspath="$ac_cv_path_lspath"
1704 if test -n "$lspath"; then
1705   echo "$ac_t""$lspath" 1>&6
1706 else
1707   echo "$ac_t""no" 1>&6
1708 fi
1709
1710
1711 if test "$lspath" != "no"; then
1712   echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1713 echo "configure:1714: checking how to get ls to show us the group ownership of a file" >&5
1714 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1715   echo $ac_n "(cached) $ac_c" 1>&6
1716 else
1717   if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1718                 nmh_cv_ls_grpopt="-l"
1719   else
1720         nmh_cv_ls_grpopt="-lg"
1721   fi
1722 fi
1723
1724 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1725 fi
1726
1727 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1728 # Extract the first word of "more", so it can be a program name with args.
1729 set dummy more; ac_word=$2
1730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_word" >&5
1732 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1733   echo $ac_n "(cached) $ac_c" 1>&6
1734 else
1735   case "$morepath" in
1736   /*)
1737   ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1738   ;;
1739   ?:/*)                  
1740   ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1741   ;;
1742   *)
1743   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1744   ac_dummy="$pathtmp"
1745   for ac_dir in $ac_dummy; do 
1746     test -z "$ac_dir" && ac_dir=.
1747     if test -f $ac_dir/$ac_word; then
1748       ac_cv_path_morepath="$ac_dir/$ac_word"
1749       break
1750     fi
1751   done
1752   IFS="$ac_save_ifs"
1753   test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1754   ;;
1755 esac
1756 fi
1757 morepath="$ac_cv_path_morepath"
1758 if test -n "$morepath"; then
1759   echo "$ac_t""$morepath" 1>&6
1760 else
1761   echo "$ac_t""no" 1>&6
1762 fi
1763
1764
1765 if test -z "$pagerpath"; then
1766   pagerpath="$morepath"
1767 fi
1768
1769 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1770 # Extract the first word of "sendmail", so it can be a program name with args.
1771 set dummy sendmail; ac_word=$2
1772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1773 echo "configure:1774: checking for $ac_word" >&5
1774 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1775   echo $ac_n "(cached) $ac_c" 1>&6
1776 else
1777   case "$sendmailpath" in
1778   /*)
1779   ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1780   ;;
1781   ?:/*)                  
1782   ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1783   ;;
1784   *)
1785   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1786   ac_dummy="$pathtmp"
1787   for ac_dir in $ac_dummy; do 
1788     test -z "$ac_dir" && ac_dir=.
1789     if test -f $ac_dir/$ac_word; then
1790       ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1791       break
1792     fi
1793   done
1794   IFS="$ac_save_ifs"
1795   test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1796   ;;
1797 esac
1798 fi
1799 sendmailpath="$ac_cv_path_sendmailpath"
1800 if test -n "$sendmailpath"; then
1801   echo "$ac_t""$sendmailpath" 1>&6
1802 else
1803   echo "$ac_t""no" 1>&6
1804 fi
1805
1806
1807 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1808 # Extract the first word of "vi", so it can be a program name with args.
1809 set dummy vi; ac_word=$2
1810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1811 echo "configure:1812: checking for $ac_word" >&5
1812 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1813   echo $ac_n "(cached) $ac_c" 1>&6
1814 else
1815   case "$vipath" in
1816   /*)
1817   ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1818   ;;
1819   ?:/*)                  
1820   ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1821   ;;
1822   *)
1823   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1824   ac_dummy="$pathtmp"
1825   for ac_dir in $ac_dummy; do 
1826     test -z "$ac_dir" && ac_dir=.
1827     if test -f $ac_dir/$ac_word; then
1828       ac_cv_path_vipath="$ac_dir/$ac_word"
1829       break
1830     fi
1831   done
1832   IFS="$ac_save_ifs"
1833   test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1834   ;;
1835 esac
1836 fi
1837 vipath="$ac_cv_path_vipath"
1838 if test -n "$vipath"; then
1839   echo "$ac_t""$vipath" 1>&6
1840 else
1841   echo "$ac_t""no" 1>&6
1842 fi
1843
1844
1845 if test -z "$editorpath"; then
1846   editorpath="$vipath"
1847 fi
1848
1849 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1850 echo "configure:1851: checking for broken vi" >&5
1851 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1852   echo $ac_n "(cached) $ac_c" 1>&6
1853 else
1854   if echo 'r /nonexist-file
1855 q' | ex > /dev/null 2>&1
1856 then
1857         nmh_cv_attvibug=no
1858 else
1859         nmh_cv_attvibug=yes
1860 fi
1861 fi
1862
1863 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1864  
1865 if test "$nmh_cv_attvibug" = yes; then
1866   cat >> confdefs.h <<\EOF
1867 #define ATTVIBUG 1
1868 EOF
1869 fi
1870
1871 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1872 echo "configure:1873: checking where mail spool is located" >&5
1873 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1874   echo $ac_n "(cached) $ac_c" 1>&6
1875 else
1876   for mailspool in /var/mail                          /var/spool/mail                    /usr/spool/mail                    /dev/null;       do
1877   test -d $mailspool && break
1878 done
1879 nmh_cv_mailspool=$mailspool
1880
1881 fi
1882
1883 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1884 mailspool=$nmh_cv_mailspool
1885
1886 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1887   echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1888 echo "configure:1889: checking whether the mail spool is world-writable" >&5
1889 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1890   echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892   if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1893     nmh_cv_mailspool_world_writable=no
1894   else
1895     nmh_cv_mailspool_world_writable=yes
1896   fi
1897 fi
1898
1899 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1900 fi
1901
1902 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1903 echo "configure:1904: checking how to run the C preprocessor" >&5
1904 # On Suns, sometimes $CPP names a directory.
1905 if test -n "$CPP" && test -d "$CPP"; then
1906   CPP=
1907 fi
1908 if test -z "$CPP"; then
1909 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1910   echo $ac_n "(cached) $ac_c" 1>&6
1911 else
1912     # This must be in double quotes, not single quotes, because CPP may get
1913   # substituted into the Makefile and "${CC-cc}" will confuse make.
1914   CPP="${CC-cc} -E"
1915   # On the NeXT, cc -E runs the code through the compiler's parser,
1916   # not just through cpp.
1917   cat > conftest.$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1920 #include <assert.h>
1921 Syntax Error
1922 EOF
1923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1924 { (eval echo configure:1925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1926 if test -z "$ac_err"; then
1927   :
1928 else
1929   echo "$ac_err" >&5
1930   echo "configure: failed program was:" >&5
1931   cat conftest.$ac_ext >&5
1932   rm -rf conftest*
1933   CPP="${CC-cc} -E -traditional-cpp"
1934   cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1937 #include <assert.h>
1938 Syntax Error
1939 EOF
1940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1941 { (eval echo configure:1942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1943 if test -z "$ac_err"; then
1944   :
1945 else
1946   echo "$ac_err" >&5
1947   echo "configure: failed program was:" >&5
1948   cat conftest.$ac_ext >&5
1949   rm -rf conftest*
1950   CPP="${CC-cc} -nologo -E"
1951   cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 #include <assert.h>
1955 Syntax Error
1956 EOF
1957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1958 { (eval echo configure:1959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1960 if test -z "$ac_err"; then
1961   :
1962 else
1963   echo "$ac_err" >&5
1964   echo "configure: failed program was:" >&5
1965   cat conftest.$ac_ext >&5
1966   rm -rf conftest*
1967   CPP=/lib/cpp
1968 fi
1969 rm -f conftest*
1970 fi
1971 rm -f conftest*
1972 fi
1973 rm -f conftest*
1974   ac_cv_prog_CPP="$CPP"
1975 fi
1976   CPP="$ac_cv_prog_CPP"
1977 else
1978   ac_cv_prog_CPP="$CPP"
1979 fi
1980 echo "$ac_t""$CPP" 1>&6
1981
1982 ac_safe=`echo "lockfile.h" | sed 'y%./+-%__p_%'`
1983 echo $ac_n "checking for lockfile.h""... $ac_c" 1>&6
1984 echo "configure:1985: checking for lockfile.h" >&5
1985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1986   echo $ac_n "(cached) $ac_c" 1>&6
1987 else
1988   cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 #include <lockfile.h>
1992 EOF
1993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1994 { (eval echo configure:1995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1996 if test -z "$ac_err"; then
1997   rm -rf conftest*
1998   eval "ac_cv_header_$ac_safe=yes"
1999 else
2000   echo "$ac_err" >&5
2001   echo "configure: failed program was:" >&5
2002   cat conftest.$ac_ext >&5
2003   rm -rf conftest*
2004   eval "ac_cv_header_$ac_safe=no"
2005 fi
2006 rm -f conftest*
2007 fi
2008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2009   echo "$ac_t""yes" 1>&6
2010   echo $ac_n "checking for lockfile_create in -llockfile""... $ac_c" 1>&6
2011 echo "configure:2012: checking for lockfile_create in -llockfile" >&5
2012 ac_lib_var=`echo lockfile'_'lockfile_create | sed 'y%./+-%__p_%'`
2013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2014   echo $ac_n "(cached) $ac_c" 1>&6
2015 else
2016   ac_save_LIBS="$LIBS"
2017 LIBS="-llockfile  $LIBS"
2018 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2021 /* Override any gcc2 internal prototype to avoid an error.  */
2022 /* We use char because int might match the return type of a gcc2
2023     builtin and then its argument prototype would still apply.  */
2024 char lockfile_create();
2025
2026 int main() {
2027 lockfile_create()
2028 ; return 0; }
2029 EOF
2030 if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2031   rm -rf conftest*
2032   eval "ac_cv_lib_$ac_lib_var=yes"
2033 else
2034   echo "configure: failed program was:" >&5
2035   cat conftest.$ac_ext >&5
2036   rm -rf conftest*
2037   eval "ac_cv_lib_$ac_lib_var=no"
2038 fi
2039 rm -f conftest*
2040 LIBS="$ac_save_LIBS"
2041
2042 fi
2043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2044   echo "$ac_t""yes" 1>&6
2045     ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/^a-zA-Z0-9_/_/g' \
2046     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2047   cat >> confdefs.h <<EOF
2048 #define $ac_tr_lib 1
2049 EOF
2050
2051   LIBS="-llockfile $LIBS"
2052
2053 else
2054   echo "$ac_t""no" 1>&6
2055 fi
2056  
2057 else
2058   echo "$ac_t""no" 1>&6
2059 fi
2060
2061
2062 # Extract the first word of "dotlockfile", so it can be a program name with args.
2063 set dummy dotlockfile; ac_word=$2
2064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2065 echo "configure:2066: checking for $ac_word" >&5
2066 if eval "test \"`echo '$''{'ac_cv_path_dotlockfilepath'+set}'`\" = set"; then
2067   echo $ac_n "(cached) $ac_c" 1>&6
2068 else
2069   case "$dotlockfilepath" in
2070   /*)
2071   ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a path.
2072   ;;
2073   ?:/*)                  
2074   ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a dos path.
2075   ;;
2076   *)
2077   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2078   ac_dummy="$PATH"
2079   for ac_dir in $ac_dummy; do 
2080     test -z "$ac_dir" && ac_dir=.
2081     if test -f $ac_dir/$ac_word; then
2082       ac_cv_path_dotlockfilepath="$ac_dir/$ac_word"
2083       break
2084     fi
2085   done
2086   IFS="$ac_save_ifs"
2087   test -z "$ac_cv_path_dotlockfilepath" && ac_cv_path_dotlockfilepath="no"
2088   ;;
2089 esac
2090 fi
2091 dotlockfilepath="$ac_cv_path_dotlockfilepath"
2092 if test -n "$dotlockfilepath"; then
2093   echo "$ac_t""$dotlockfilepath" 1>&6
2094 else
2095   echo "$ac_t""no" 1>&6
2096 fi
2097
2098 if test "$ac_cv_lib_lockfile_lockfile_create" != "no" ; then
2099   if test "$ac_cv_path_dotlockfilepath" != "no" ; then
2100     echo $ac_n "checking whether dotlockfile is setgid""... $ac_c" 1>&6
2101 echo "configure:2102: checking whether dotlockfile is setgid" >&5
2102 if eval "test \"`echo '$''{'nmh_cv_dotlockfile_setgid'+set}'`\" = set"; then
2103   echo $ac_n "(cached) $ac_c" 1>&6
2104 else
2105    if test -g "$ac_cv_path_dotlockfilepath" ; then
2106         nmh_cv_dotlockfile_setgid=yes
2107       else
2108         nmh_cv_dotlockfile_setgid=no
2109       fi
2110 fi
2111
2112 echo "$ac_t""$nmh_cv_dotlockfile_setgid" 1>&6
2113   fi
2114 fi
2115
2116 if test x"$nmh_cv_mailspool_world_writable" = x"no" -a x"$nmh_cv_dotlockfile_setgid" != x"yes" ; then
2117     cat >> confdefs.h <<\EOF
2118 #define MAILGROUP 1
2119 EOF
2120   SETGID_MAIL=1
2121 fi
2122
2123 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
2124 echo "configure:2125: checking what group owns the mail spool" >&5
2125 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
2126   echo $ac_n "(cached) $ac_c" 1>&6
2127 else
2128   nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
2129
2130 fi
2131
2132 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
2133 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
2134
2135 ac_header_dirent=no
2136 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2137 do
2138 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2139 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_hdr that defines DIR" >&5
2141 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2142   echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144   cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2148 #include <$ac_hdr>
2149 int main() {
2150 DIR *dirp = 0;
2151 ; return 0; }
2152 EOF
2153 if { (eval echo configure:2154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2154   rm -rf conftest*
2155   eval "ac_cv_header_dirent_$ac_safe=yes"
2156 else
2157   echo "configure: failed program was:" >&5
2158   cat conftest.$ac_ext >&5
2159   rm -rf conftest*
2160   eval "ac_cv_header_dirent_$ac_safe=no"
2161 fi
2162 rm -f conftest*
2163 fi
2164 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2165   echo "$ac_t""yes" 1>&6
2166     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2167   cat >> confdefs.h <<EOF
2168 #define $ac_tr_hdr 1
2169 EOF
2170  ac_header_dirent=$ac_hdr; break
2171 else
2172   echo "$ac_t""no" 1>&6
2173 fi
2174 done
2175 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2176 if test $ac_header_dirent = dirent.h; then
2177 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2178 echo "configure:2179: checking for opendir in -ldir" >&5
2179 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2181   echo $ac_n "(cached) $ac_c" 1>&6
2182 else
2183   ac_save_LIBS="$LIBS"
2184 LIBS="-ldir  $LIBS"
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* Override any gcc2 internal prototype to avoid an error.  */
2189 /* We use char because int might match the return type of a gcc2
2190     builtin and then its argument prototype would still apply.  */
2191 char opendir();
2192
2193 int main() {
2194 opendir()
2195 ; return 0; }
2196 EOF
2197 if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2198   rm -rf conftest*
2199   eval "ac_cv_lib_$ac_lib_var=yes"
2200 else
2201   echo "configure: failed program was:" >&5
2202   cat conftest.$ac_ext >&5
2203   rm -rf conftest*
2204   eval "ac_cv_lib_$ac_lib_var=no"
2205 fi
2206 rm -f conftest*
2207 LIBS="$ac_save_LIBS"
2208
2209 fi
2210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2211   echo "$ac_t""yes" 1>&6
2212   LIBS="$LIBS -ldir"
2213 else
2214   echo "$ac_t""no" 1>&6
2215 fi
2216
2217 else
2218 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2219 echo "configure:2220: checking for opendir in -lx" >&5
2220 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2222   echo $ac_n "(cached) $ac_c" 1>&6
2223 else
2224   ac_save_LIBS="$LIBS"
2225 LIBS="-lx  $LIBS"
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 /* Override any gcc2 internal prototype to avoid an error.  */
2230 /* We use char because int might match the return type of a gcc2
2231     builtin and then its argument prototype would still apply.  */
2232 char opendir();
2233
2234 int main() {
2235 opendir()
2236 ; return 0; }
2237 EOF
2238 if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2239   rm -rf conftest*
2240   eval "ac_cv_lib_$ac_lib_var=yes"
2241 else
2242   echo "configure: failed program was:" >&5
2243   cat conftest.$ac_ext >&5
2244   rm -rf conftest*
2245   eval "ac_cv_lib_$ac_lib_var=no"
2246 fi
2247 rm -f conftest*
2248 LIBS="$ac_save_LIBS"
2249
2250 fi
2251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2252   echo "$ac_t""yes" 1>&6
2253   LIBS="$LIBS -lx"
2254 else
2255   echo "$ac_t""no" 1>&6
2256 fi
2257
2258 fi
2259
2260 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2261 echo "configure:2262: checking for ANSI C header files" >&5
2262 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2263   echo $ac_n "(cached) $ac_c" 1>&6
2264 else
2265   cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268 #include <stdlib.h>
2269 #include <stdarg.h>
2270 #include <string.h>
2271 #include <float.h>
2272 EOF
2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2276 if test -z "$ac_err"; then
2277   rm -rf conftest*
2278   ac_cv_header_stdc=yes
2279 else
2280   echo "$ac_err" >&5
2281   echo "configure: failed program was:" >&5
2282   cat conftest.$ac_ext >&5
2283   rm -rf conftest*
2284   ac_cv_header_stdc=no
2285 fi
2286 rm -f conftest*
2287
2288 if test $ac_cv_header_stdc = yes; then
2289   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2293 #include <string.h>
2294 EOF
2295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2296   egrep "memchr" >/dev/null 2>&1; then
2297   :
2298 else
2299   rm -rf conftest*
2300   ac_cv_header_stdc=no
2301 fi
2302 rm -f conftest*
2303
2304 fi
2305
2306 if test $ac_cv_header_stdc = yes; then
2307   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 #include <stdlib.h>
2312 EOF
2313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2314   egrep "free" >/dev/null 2>&1; then
2315   :
2316 else
2317   rm -rf conftest*
2318   ac_cv_header_stdc=no
2319 fi
2320 rm -f conftest*
2321
2322 fi
2323
2324 if test $ac_cv_header_stdc = yes; then
2325   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2326 if test "$cross_compiling" = yes; then
2327   :
2328 else
2329   cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2332 #include <ctype.h>
2333 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2334 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2336 int main () { int i; for (i = 0; i < 256; i++)
2337 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2338 exit (0); }
2339
2340 EOF
2341 if { (eval echo configure:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2342 then
2343   :
2344 else
2345   echo "configure: failed program was:" >&5
2346   cat conftest.$ac_ext >&5
2347   rm -fr conftest*
2348   ac_cv_header_stdc=no
2349 fi
2350 rm -fr conftest*
2351 fi
2352
2353 fi
2354 fi
2355
2356 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2357 if test $ac_cv_header_stdc = yes; then
2358   cat >> confdefs.h <<\EOF
2359 #define STDC_HEADERS 1
2360 EOF
2361
2362 fi
2363
2364 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2365 echo "configure:2366: checking whether time.h and sys/time.h may both be included" >&5
2366 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2367   echo $ac_n "(cached) $ac_c" 1>&6
2368 else
2369   cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 #include <sys/types.h>
2373 #include <sys/time.h>
2374 #include <time.h>
2375 int main() {
2376 struct tm *tp;
2377 ; return 0; }
2378 EOF
2379 if { (eval echo configure:2380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2380   rm -rf conftest*
2381   ac_cv_header_time=yes
2382 else
2383   echo "configure: failed program was:" >&5
2384   cat conftest.$ac_ext >&5
2385   rm -rf conftest*
2386   ac_cv_header_time=no
2387 fi
2388 rm -f conftest*
2389 fi
2390
2391 echo "$ac_t""$ac_cv_header_time" 1>&6
2392 if test $ac_cv_header_time = yes; then
2393   cat >> confdefs.h <<\EOF
2394 #define TIME_WITH_SYS_TIME 1
2395 EOF
2396
2397 fi
2398
2399 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2400 echo "configure:2401: checking for sys/wait.h that is POSIX.1 compatible" >&5
2401 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2402   echo $ac_n "(cached) $ac_c" 1>&6
2403 else
2404   cat > conftest.$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2407 #include <sys/types.h>
2408 #include <sys/wait.h>
2409 #ifndef WEXITSTATUS
2410 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2411 #endif
2412 #ifndef WIFEXITED
2413 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2414 #endif
2415 int main() {
2416 int s;
2417 wait (&s);
2418 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2419 ; return 0; }
2420 EOF
2421 if { (eval echo configure:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2422   rm -rf conftest*
2423   ac_cv_header_sys_wait_h=yes
2424 else
2425   echo "configure: failed program was:" >&5
2426   cat conftest.$ac_ext >&5
2427   rm -rf conftest*
2428   ac_cv_header_sys_wait_h=no
2429 fi
2430 rm -f conftest*
2431 fi
2432
2433 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2434 if test $ac_cv_header_sys_wait_h = yes; then
2435   cat >> confdefs.h <<\EOF
2436 #define HAVE_SYS_WAIT_H 1
2437 EOF
2438
2439 fi
2440
2441 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2442 echo "configure:2443: checking whether stat file-mode macros are broken" >&5
2443 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2444   echo $ac_n "(cached) $ac_c" 1>&6
2445 else
2446   cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 #include <sys/types.h>
2450 #include <sys/stat.h>
2451
2452 #if defined(S_ISBLK) && defined(S_IFDIR)
2453 # if S_ISBLK (S_IFDIR)
2454 You lose.
2455 # endif
2456 #endif
2457
2458 #if defined(S_ISBLK) && defined(S_IFCHR)
2459 # if S_ISBLK (S_IFCHR)
2460 You lose.
2461 # endif
2462 #endif
2463
2464 #if defined(S_ISLNK) && defined(S_IFREG)
2465 # if S_ISLNK (S_IFREG)
2466 You lose.
2467 # endif
2468 #endif
2469
2470 #if defined(S_ISSOCK) && defined(S_IFREG)
2471 # if S_ISSOCK (S_IFREG)
2472 You lose.
2473 # endif
2474 #endif
2475
2476 EOF
2477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2478   egrep "You lose" >/dev/null 2>&1; then
2479   rm -rf conftest*
2480   ac_cv_header_stat_broken=yes
2481 else
2482   rm -rf conftest*
2483   ac_cv_header_stat_broken=no
2484 fi
2485 rm -f conftest*
2486
2487 fi
2488
2489 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2490 if test $ac_cv_header_stat_broken = yes; then
2491   cat >> confdefs.h <<\EOF
2492 #define STAT_MACROS_BROKEN 1
2493 EOF
2494
2495 fi
2496
2497 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2498                  limits.h crypt.h termcap.h termio.h termios.h locale.h \
2499                  netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2500                  arpa/ftp.h
2501 do
2502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506   echo $ac_n "(cached) $ac_c" 1>&6
2507 else
2508   cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 #include <$ac_hdr>
2512 EOF
2513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2517   rm -rf conftest*
2518   eval "ac_cv_header_$ac_safe=yes"
2519 else
2520   echo "$ac_err" >&5
2521   echo "configure: failed program was:" >&5
2522   cat conftest.$ac_ext >&5
2523   rm -rf conftest*
2524   eval "ac_cv_header_$ac_safe=no"
2525 fi
2526 rm -f conftest*
2527 fi
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529   echo "$ac_t""yes" 1>&6
2530     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531   cat >> confdefs.h <<EOF
2532 #define $ac_tr_hdr 1
2533 EOF
2534  
2535 else
2536   echo "$ac_t""no" 1>&6
2537 fi
2538 done
2539
2540
2541
2542 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2543 echo "configure:2544: checking POSIX termios" >&5
2544 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2545   echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547   cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 #include <sys/types.h>
2551 #include <unistd.h>
2552 #include <termios.h>
2553 int main() {
2554 /* SunOS 4.0.3 has termios.h but not the library calls.  */
2555 tcgetattr(0, 0);
2556 ; return 0; }
2557 EOF
2558 if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2559   rm -rf conftest*
2560   nmh_cv_sys_posix_termios=yes
2561 else
2562   echo "configure: failed program was:" >&5
2563   cat conftest.$ac_ext >&5
2564   rm -rf conftest*
2565   nmh_cv_sys_posix_termios=no
2566 fi
2567 rm -f conftest*
2568 fi
2569
2570 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2571  
2572 if test $nmh_cv_sys_posix_termios = yes; then
2573   echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2574 echo "configure:2575: checking TIOCGWINSZ in termios.h" >&5
2575 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2576   echo $ac_n "(cached) $ac_c" 1>&6
2577 else
2578   cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581 #include <sys/types.h>
2582 #include <termios.h>
2583 int main() {
2584 int x = TIOCGWINSZ;
2585 ; return 0; }
2586 EOF
2587 if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2588   rm -rf conftest*
2589   nmh_cv_header_termios_h_tiocgwinsz=yes
2590 else
2591   echo "configure: failed program was:" >&5
2592   cat conftest.$ac_ext >&5
2593   rm -rf conftest*
2594   nmh_cv_header_termios_h_tiocgwinsz=no
2595 fi
2596 rm -f conftest*
2597 fi
2598
2599 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2600 else
2601   nmh_cv_header_termios_h_tiocgwinsz=no
2602 fi
2603  
2604 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2605   echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2606 echo "configure:2607: checking TIOCGWINSZ in sys/ioctl.h" >&5
2607 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2608   echo $ac_n "(cached) $ac_c" 1>&6
2609 else
2610   cat > conftest.$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 #include <sys/types.h>
2614 #include <sys/ioctl.h>
2615 int main() {
2616 int x = TIOCGWINSZ;
2617 ; return 0; }
2618 EOF
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2620   rm -rf conftest*
2621   nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2622 else
2623   echo "configure: failed program was:" >&5
2624   cat conftest.$ac_ext >&5
2625   rm -rf conftest*
2626   nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2627 fi
2628 rm -f conftest*
2629 fi
2630
2631 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2632   if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2633     cat >> confdefs.h <<\EOF
2634 #define GWINSZ_IN_SYS_IOCTL 1
2635 EOF
2636   fi
2637 fi
2638  
2639 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2640 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2641 echo "configure:2642: checking for libio.h" >&5
2642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2643   echo $ac_n "(cached) $ac_c" 1>&6
2644 else
2645   cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 #include <libio.h>
2649 EOF
2650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2651 { (eval echo configure:2652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2653 if test -z "$ac_err"; then
2654   rm -rf conftest*
2655   eval "ac_cv_header_$ac_safe=yes"
2656 else
2657   echo "$ac_err" >&5
2658   echo "configure: failed program was:" >&5
2659   cat conftest.$ac_ext >&5
2660   rm -rf conftest*
2661   eval "ac_cv_header_$ac_safe=no"
2662 fi
2663 rm -f conftest*
2664 fi
2665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2666   echo "$ac_t""yes" 1>&6
2667   
2668   cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 #include <libio.h>
2672 EOF
2673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2674   egrep "_IO_write_ptr" >/dev/null 2>&1; then
2675   rm -rf conftest*
2676   
2677     cat >> confdefs.h <<\EOF
2678 #define LINUX_STDIO 1
2679 EOF
2680  
2681 fi
2682 rm -f conftest*
2683  
2684 else
2685   echo "$ac_t""no" 1>&6
2686 fi
2687  
2688
2689 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2690 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2691 echo "configure:2692: checking for sys/ptem.h" >&5
2692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2693   echo $ac_n "(cached) $ac_c" 1>&6
2694 else
2695   cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <sys/ptem.h>
2699 EOF
2700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2701 { (eval echo configure:2702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2703 if test -z "$ac_err"; then
2704   rm -rf conftest*
2705   eval "ac_cv_header_$ac_safe=yes"
2706 else
2707   echo "$ac_err" >&5
2708   echo "configure: failed program was:" >&5
2709   cat conftest.$ac_ext >&5
2710   rm -rf conftest*
2711   eval "ac_cv_header_$ac_safe=no"
2712 fi
2713 rm -f conftest*
2714 fi
2715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2716   echo "$ac_t""yes" 1>&6
2717   cat >> confdefs.h <<\EOF
2718 #define WINSIZE_IN_PTEM 1
2719 EOF
2720
2721 else
2722   echo "$ac_t""no" 1>&6
2723 fi
2724
2725
2726 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2727 echo "configure:2728: checking for pid_t" >&5
2728 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2729   echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2731   cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2734 #include <sys/types.h>
2735 #if STDC_HEADERS
2736 #include <stdlib.h>
2737 #include <stddef.h>
2738 #endif
2739 EOF
2740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2741   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2742   rm -rf conftest*
2743   ac_cv_type_pid_t=yes
2744 else
2745   rm -rf conftest*
2746   ac_cv_type_pid_t=no
2747 fi
2748 rm -f conftest*
2749
2750 fi
2751 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2752 if test $ac_cv_type_pid_t = no; then
2753   cat >> confdefs.h <<\EOF
2754 #define pid_t int
2755 EOF
2756
2757 fi
2758
2759 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2760 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2761 echo "configure:2762: checking for vfork.h" >&5
2762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2763   echo $ac_n "(cached) $ac_c" 1>&6
2764 else
2765   cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2768 #include <vfork.h>
2769 EOF
2770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2771 { (eval echo configure:2772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2773 if test -z "$ac_err"; then
2774   rm -rf conftest*
2775   eval "ac_cv_header_$ac_safe=yes"
2776 else
2777   echo "$ac_err" >&5
2778   echo "configure: failed program was:" >&5
2779   cat conftest.$ac_ext >&5
2780   rm -rf conftest*
2781   eval "ac_cv_header_$ac_safe=no"
2782 fi
2783 rm -f conftest*
2784 fi
2785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2786   echo "$ac_t""yes" 1>&6
2787   cat >> confdefs.h <<\EOF
2788 #define HAVE_VFORK_H 1
2789 EOF
2790
2791 else
2792   echo "$ac_t""no" 1>&6
2793 fi
2794
2795 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2796 echo "configure:2797: checking for working vfork" >&5
2797 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2798   echo $ac_n "(cached) $ac_c" 1>&6
2799 else
2800   if test "$cross_compiling" = yes; then
2801   echo $ac_n "checking for vfork""... $ac_c" 1>&6
2802 echo "configure:2803: checking for vfork" >&5
2803 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2804   echo $ac_n "(cached) $ac_c" 1>&6
2805 else
2806   cat > conftest.$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2809 /* System header to define __stub macros and hopefully few prototypes,
2810     which can conflict with char vfork(); below.  */
2811 #include <assert.h>
2812 /* Override any gcc2 internal prototype to avoid an error.  */
2813 /* We use char because int might match the return type of a gcc2
2814     builtin and then its argument prototype would still apply.  */
2815 char vfork();
2816
2817 int main() {
2818
2819 /* The GNU C library defines this for functions which it implements
2820     to always fail with ENOSYS.  Some functions are actually named
2821     something starting with __ and the normal name is an alias.  */
2822 #if defined (__stub_vfork) || defined (__stub___vfork)
2823 choke me
2824 #else
2825 vfork();
2826 #endif
2827
2828 ; return 0; }
2829 EOF
2830 if { (eval echo configure:2831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2831   rm -rf conftest*
2832   eval "ac_cv_func_vfork=yes"
2833 else
2834   echo "configure: failed program was:" >&5
2835   cat conftest.$ac_ext >&5
2836   rm -rf conftest*
2837   eval "ac_cv_func_vfork=no"
2838 fi
2839 rm -f conftest*
2840 fi
2841
2842 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2843   echo "$ac_t""yes" 1>&6
2844   :
2845 else
2846   echo "$ac_t""no" 1>&6
2847 fi
2848
2849 ac_cv_func_vfork_works=$ac_cv_func_vfork
2850 else
2851   cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2854 /* Thanks to Paul Eggert for this test.  */
2855 #include <stdio.h>
2856 #include <sys/types.h>
2857 #include <sys/stat.h>
2858 #ifdef HAVE_UNISTD_H
2859 #include <unistd.h>
2860 #endif
2861 #ifdef HAVE_VFORK_H
2862 #include <vfork.h>
2863 #endif
2864 /* On some sparc systems, changes by the child to local and incoming
2865    argument registers are propagated back to the parent.
2866    The compiler is told about this with #include <vfork.h>,
2867    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2868    Test for this by using a static variable whose address
2869    is put into a register that is clobbered by the vfork.  */
2870 static
2871 #ifdef __cplusplus
2872 sparc_address_test (int arg)
2873 #else
2874 sparc_address_test (arg) int arg;
2875 #endif
2876 {
2877   static pid_t child;
2878   if (!child) {
2879     child = vfork ();
2880     if (child < 0) {
2881       perror ("vfork");
2882       _exit(2);
2883     }
2884     if (!child) {
2885       arg = getpid();
2886       write(-1, "", 0);
2887       _exit (arg);
2888     }
2889   }
2890 }
2891 main() {
2892   pid_t parent = getpid ();
2893   pid_t child;
2894
2895   sparc_address_test ();
2896
2897   child = vfork ();
2898
2899   if (child == 0) {
2900     /* Here is another test for sparc vfork register problems.
2901        This test uses lots of local variables, at least
2902        as many local variables as main has allocated so far
2903        including compiler temporaries.  4 locals are enough for
2904        gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2905        A buggy compiler should reuse the register of parent
2906        for one of the local variables, since it will think that
2907        parent can't possibly be used any more in this routine.
2908        Assigning to the local variable will thus munge parent
2909        in the parent process.  */
2910     pid_t
2911       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2912       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2913     /* Convince the compiler that p..p7 are live; otherwise, it might
2914        use the same hardware register for all 8 local variables.  */
2915     if (p != p1 || p != p2 || p != p3 || p != p4
2916         || p != p5 || p != p6 || p != p7)
2917       _exit(1);
2918
2919     /* On some systems (e.g. IRIX 3.3),
2920        vfork doesn't separate parent from child file descriptors.
2921        If the child closes a descriptor before it execs or exits,
2922        this munges the parent's descriptor as well.
2923        Test for this by closing stdout in the child.  */
2924     _exit(close(fileno(stdout)) != 0);
2925   } else {
2926     int status;
2927     struct stat st;
2928
2929     while (wait(&status) != child)
2930       ;
2931     exit(
2932          /* Was there some problem with vforking?  */
2933          child < 0
2934
2935          /* Did the child fail?  (This shouldn't happen.)  */
2936          || status
2937
2938          /* Did the vfork/compiler bug occur?  */
2939          || parent != getpid()
2940
2941          /* Did the file descriptor bug occur?  */
2942          || fstat(fileno(stdout), &st) != 0
2943          );
2944   }
2945 }
2946 EOF
2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2948 then
2949   ac_cv_func_vfork_works=yes
2950 else
2951   echo "configure: failed program was:" >&5
2952   cat conftest.$ac_ext >&5
2953   rm -fr conftest*
2954   ac_cv_func_vfork_works=no
2955 fi
2956 rm -fr conftest*
2957 fi
2958
2959 fi
2960
2961 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2962 if test $ac_cv_func_vfork_works = no; then
2963   cat >> confdefs.h <<\EOF
2964 #define vfork fork
2965 EOF
2966
2967 fi
2968
2969 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2970 echo "configure:2971: checking for mkstemp in -lmkstemp" >&5
2971 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2973   echo $ac_n "(cached) $ac_c" 1>&6
2974 else
2975   ac_save_LIBS="$LIBS"
2976 LIBS="-lmkstemp  $LIBS"
2977 cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 /* Override any gcc2 internal prototype to avoid an error.  */
2981 /* We use char because int might match the return type of a gcc2
2982     builtin and then its argument prototype would still apply.  */
2983 char mkstemp();
2984
2985 int main() {
2986 mkstemp()
2987 ; return 0; }
2988 EOF
2989 if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2990   rm -rf conftest*
2991   eval "ac_cv_lib_$ac_lib_var=yes"
2992 else
2993   echo "configure: failed program was:" >&5
2994   cat conftest.$ac_ext >&5
2995   rm -rf conftest*
2996   eval "ac_cv_lib_$ac_lib_var=no"
2997 fi
2998 rm -f conftest*
2999 LIBS="$ac_save_LIBS"
3000
3001 fi
3002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3003   echo "$ac_t""yes" 1>&6
3004     ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3005     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3006   cat >> confdefs.h <<EOF
3007 #define $ac_tr_lib 1
3008 EOF
3009
3010   LIBS="-lmkstemp $LIBS"
3011
3012 else
3013   echo "$ac_t""no" 1>&6
3014 fi
3015
3016 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
3017                sighold sigrelse writev lstat uname tzset killpg mkstemp \
3018                sethostent getutent
3019 do
3020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_func" >&5
3022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3023   echo $ac_n "(cached) $ac_c" 1>&6
3024 else
3025   cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 /* System header to define __stub macros and hopefully few prototypes,
3029     which can conflict with char $ac_func(); below.  */
3030 #include <assert.h>
3031 /* Override any gcc2 internal prototype to avoid an error.  */
3032 /* We use char because int might match the return type of a gcc2
3033     builtin and then its argument prototype would still apply.  */
3034 char $ac_func();
3035
3036 int main() {
3037
3038 /* The GNU C library defines this for functions which it implements
3039     to always fail with ENOSYS.  Some functions are actually named
3040     something starting with __ and the normal name is an alias.  */
3041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3042 choke me
3043 #else
3044 $ac_func();
3045 #endif
3046
3047 ; return 0; }
3048 EOF
3049 if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3050   rm -rf conftest*
3051   eval "ac_cv_func_$ac_func=yes"
3052 else
3053   echo "configure: failed program was:" >&5
3054   cat conftest.$ac_ext >&5
3055   rm -rf conftest*
3056   eval "ac_cv_func_$ac_func=no"
3057 fi
3058 rm -f conftest*
3059 fi
3060
3061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3062   echo "$ac_t""yes" 1>&6
3063     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3064   cat >> confdefs.h <<EOF
3065 #define $ac_tr_func 1
3066 EOF
3067  
3068 else
3069   echo "$ac_t""no" 1>&6
3070 fi
3071 done
3072
3073
3074 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3075 echo "configure:3076: checking for gethostbyname" >&5
3076 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3077   echo $ac_n "(cached) $ac_c" 1>&6
3078 else
3079   cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 /* System header to define __stub macros and hopefully few prototypes,
3083     which can conflict with char gethostbyname(); below.  */
3084 #include <assert.h>
3085 /* Override any gcc2 internal prototype to avoid an error.  */
3086 /* We use char because int might match the return type of a gcc2
3087     builtin and then its argument prototype would still apply.  */
3088 char gethostbyname();
3089
3090 int main() {
3091
3092 /* The GNU C library defines this for functions which it implements
3093     to always fail with ENOSYS.  Some functions are actually named
3094     something starting with __ and the normal name is an alias.  */
3095 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3096 choke me
3097 #else
3098 gethostbyname();
3099 #endif
3100
3101 ; return 0; }
3102 EOF
3103 if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3104   rm -rf conftest*
3105   eval "ac_cv_func_gethostbyname=yes"
3106 else
3107   echo "configure: failed program was:" >&5
3108   cat conftest.$ac_ext >&5
3109   rm -rf conftest*
3110   eval "ac_cv_func_gethostbyname=no"
3111 fi
3112 rm -f conftest*
3113 fi
3114
3115 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3116   echo "$ac_t""yes" 1>&6
3117   cat >> confdefs.h <<\EOF
3118 #define HAVE_GETHOSTBYNAME 1
3119 EOF
3120
3121 else
3122   echo "$ac_t""no" 1>&6
3123 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3124 echo "configure:3125: checking for gethostbyname in -lnsl" >&5
3125 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3127   echo $ac_n "(cached) $ac_c" 1>&6
3128 else
3129   ac_save_LIBS="$LIBS"
3130 LIBS="-lnsl  $LIBS"
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 /* Override any gcc2 internal prototype to avoid an error.  */
3135 /* We use char because int might match the return type of a gcc2
3136     builtin and then its argument prototype would still apply.  */
3137 char gethostbyname();
3138
3139 int main() {
3140 gethostbyname()
3141 ; return 0; }
3142 EOF
3143 if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3144   rm -rf conftest*
3145   eval "ac_cv_lib_$ac_lib_var=yes"
3146 else
3147   echo "configure: failed program was:" >&5
3148   cat conftest.$ac_ext >&5
3149   rm -rf conftest*
3150   eval "ac_cv_lib_$ac_lib_var=no"
3151 fi
3152 rm -f conftest*
3153 LIBS="$ac_save_LIBS"
3154
3155 fi
3156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3157   echo "$ac_t""yes" 1>&6
3158   cat >> confdefs.h <<\EOF
3159 #define HAVE_GETHOSTBYNAME 1
3160 EOF
3161  
3162 else
3163   echo "$ac_t""no" 1>&6
3164 fi
3165  
3166 fi
3167
3168
3169 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
3170 echo "configure:3171: checking for sigsetjmp" >&5
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3174 #include <setjmp.h>
3175 int main() {
3176 sigsetjmp((void *)0, 0);
3177 ; return 0; }
3178 EOF
3179 if { (eval echo configure:3180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3180   rm -rf conftest*
3181   cat >> confdefs.h <<\EOF
3182 #define HAVE_SIGSETJMP 1
3183 EOF
3184  echo "$ac_t""yes" 1>&6
3185 else
3186   echo "configure: failed program was:" >&5
3187   cat conftest.$ac_ext >&5
3188   rm -rf conftest*
3189   echo "$ac_t""no" 1>&6
3190 fi
3191 rm -f conftest*
3192
3193 for ac_func in snprintf strerror strdup
3194 do
3195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3196 echo "configure:3197: checking for $ac_func" >&5
3197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3198   echo $ac_n "(cached) $ac_c" 1>&6
3199 else
3200   cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 /* System header to define __stub macros and hopefully few prototypes,
3204     which can conflict with char $ac_func(); below.  */
3205 #include <assert.h>
3206 /* Override any gcc2 internal prototype to avoid an error.  */
3207 /* We use char because int might match the return type of a gcc2
3208     builtin and then its argument prototype would still apply.  */
3209 char $ac_func();
3210
3211 int main() {
3212
3213 /* The GNU C library defines this for functions which it implements
3214     to always fail with ENOSYS.  Some functions are actually named
3215     something starting with __ and the normal name is an alias.  */
3216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3217 choke me
3218 #else
3219 $ac_func();
3220 #endif
3221
3222 ; return 0; }
3223 EOF
3224 if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3225   rm -rf conftest*
3226   eval "ac_cv_func_$ac_func=yes"
3227 else
3228   echo "configure: failed program was:" >&5
3229   cat conftest.$ac_ext >&5
3230   rm -rf conftest*
3231   eval "ac_cv_func_$ac_func=no"
3232 fi
3233 rm -f conftest*
3234 fi
3235
3236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3237   echo "$ac_t""yes" 1>&6
3238     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3239   cat >> confdefs.h <<EOF
3240 #define $ac_tr_func 1
3241 EOF
3242  
3243 else
3244   echo "$ac_t""no" 1>&6
3245 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3246 fi
3247 done
3248
3249
3250
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 #include <grp.h>
3255 EOF
3256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3257   egrep "initgroups" >/dev/null 2>&1; then
3258   rm -rf conftest*
3259   cat >> confdefs.h <<\EOF
3260 #define INITGROUPS_HEADER <grp.h>
3261 EOF
3262
3263 else
3264   rm -rf conftest*
3265   cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 #include <unistd.h>
3269 EOF
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271   egrep "initgroups" >/dev/null 2>&1; then
3272   rm -rf conftest*
3273   cat >> confdefs.h <<\EOF
3274 #define INITGROUPS_HEADER <unistd.h>
3275 EOF
3276
3277 fi
3278 rm -f conftest*
3279
3280 fi
3281 rm -f conftest*
3282
3283
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 #include <stdio.h>
3288 EOF
3289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3290   egrep "snprintf" >/dev/null 2>&1; then
3291   rm -rf conftest*
3292   cat >> confdefs.h <<\EOF
3293 #define HAVE_SNPRINTF_PROTOTYPE 1
3294 EOF
3295
3296 fi
3297 rm -f conftest*
3298
3299
3300 echo $ac_n "checking for modf""... $ac_c" 1>&6
3301 echo "configure:3302: checking for modf" >&5
3302 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
3303   echo $ac_n "(cached) $ac_c" 1>&6
3304 else
3305   cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 /* System header to define __stub macros and hopefully few prototypes,
3309     which can conflict with char modf(); below.  */
3310 #include <assert.h>
3311 /* Override any gcc2 internal prototype to avoid an error.  */
3312 /* We use char because int might match the return type of a gcc2
3313     builtin and then its argument prototype would still apply.  */
3314 char modf();
3315
3316 int main() {
3317
3318 /* The GNU C library defines this for functions which it implements
3319     to always fail with ENOSYS.  Some functions are actually named
3320     something starting with __ and the normal name is an alias.  */
3321 #if defined (__stub_modf) || defined (__stub___modf)
3322 choke me
3323 #else
3324 modf();
3325 #endif
3326
3327 ; return 0; }
3328 EOF
3329 if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3330   rm -rf conftest*
3331   eval "ac_cv_func_modf=yes"
3332 else
3333   echo "configure: failed program was:" >&5
3334   cat conftest.$ac_ext >&5
3335   rm -rf conftest*
3336   eval "ac_cv_func_modf=no"
3337 fi
3338 rm -f conftest*
3339 fi
3340
3341 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3342   echo "$ac_t""yes" 1>&6
3343   :
3344 else
3345   echo "$ac_t""no" 1>&6
3346 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3347 echo "configure:3348: checking for modf in -lm" >&5
3348 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3350   echo $ac_n "(cached) $ac_c" 1>&6
3351 else
3352   ac_save_LIBS="$LIBS"
3353 LIBS="-lm  $LIBS"
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 /* Override any gcc2 internal prototype to avoid an error.  */
3358 /* We use char because int might match the return type of a gcc2
3359     builtin and then its argument prototype would still apply.  */
3360 char modf();
3361
3362 int main() {
3363 modf()
3364 ; return 0; }
3365 EOF
3366 if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3367   rm -rf conftest*
3368   eval "ac_cv_lib_$ac_lib_var=yes"
3369 else
3370   echo "configure: failed program was:" >&5
3371   cat conftest.$ac_ext >&5
3372   rm -rf conftest*
3373   eval "ac_cv_lib_$ac_lib_var=no"
3374 fi
3375 rm -f conftest*
3376 LIBS="$ac_save_LIBS"
3377
3378 fi
3379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3380   echo "$ac_t""yes" 1>&6
3381     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3382     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3383   cat >> confdefs.h <<EOF
3384 #define $ac_tr_lib 1
3385 EOF
3386
3387   LIBS="-lm $LIBS"
3388
3389 else
3390   echo "$ac_t""no" 1>&6
3391 fi
3392
3393 fi
3394
3395
3396 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3397 echo "configure:3398: checking for gethostbyname" >&5
3398 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3399   echo $ac_n "(cached) $ac_c" 1>&6
3400 else
3401   cat > conftest.$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 /* System header to define __stub macros and hopefully few prototypes,
3405     which can conflict with char gethostbyname(); below.  */
3406 #include <assert.h>
3407 /* Override any gcc2 internal prototype to avoid an error.  */
3408 /* We use char because int might match the return type of a gcc2
3409     builtin and then its argument prototype would still apply.  */
3410 char gethostbyname();
3411
3412 int main() {
3413
3414 /* The GNU C library defines this for functions which it implements
3415     to always fail with ENOSYS.  Some functions are actually named
3416     something starting with __ and the normal name is an alias.  */
3417 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3418 choke me
3419 #else
3420 gethostbyname();
3421 #endif
3422
3423 ; return 0; }
3424 EOF
3425 if { (eval echo configure:3426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3426   rm -rf conftest*
3427   eval "ac_cv_func_gethostbyname=yes"
3428 else
3429   echo "configure: failed program was:" >&5
3430   cat conftest.$ac_ext >&5
3431   rm -rf conftest*
3432   eval "ac_cv_func_gethostbyname=no"
3433 fi
3434 rm -f conftest*
3435 fi
3436
3437 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3438   echo "$ac_t""yes" 1>&6
3439   :
3440 else
3441   echo "$ac_t""no" 1>&6
3442 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3443 echo "configure:3444: checking for gethostbyname in -lnsl" >&5
3444 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3446   echo $ac_n "(cached) $ac_c" 1>&6
3447 else
3448   ac_save_LIBS="$LIBS"
3449 LIBS="-lnsl  $LIBS"
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 /* Override any gcc2 internal prototype to avoid an error.  */
3454 /* We use char because int might match the return type of a gcc2
3455     builtin and then its argument prototype would still apply.  */
3456 char gethostbyname();
3457
3458 int main() {
3459 gethostbyname()
3460 ; return 0; }
3461 EOF
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3463   rm -rf conftest*
3464   eval "ac_cv_lib_$ac_lib_var=yes"
3465 else
3466   echo "configure: failed program was:" >&5
3467   cat conftest.$ac_ext >&5
3468   rm -rf conftest*
3469   eval "ac_cv_lib_$ac_lib_var=no"
3470 fi
3471 rm -f conftest*
3472 LIBS="$ac_save_LIBS"
3473
3474 fi
3475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3476   echo "$ac_t""yes" 1>&6
3477     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3478     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3479   cat >> confdefs.h <<EOF
3480 #define $ac_tr_lib 1
3481 EOF
3482
3483   LIBS="-lnsl $LIBS"
3484
3485 else
3486   echo "$ac_t""no" 1>&6
3487 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3488 echo "configure:3489: checking for gethostbyname in -lresolv" >&5
3489 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3491   echo $ac_n "(cached) $ac_c" 1>&6
3492 else
3493   ac_save_LIBS="$LIBS"
3494 LIBS="-lresolv  $LIBS"
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 /* Override any gcc2 internal prototype to avoid an error.  */
3499 /* We use char because int might match the return type of a gcc2
3500     builtin and then its argument prototype would still apply.  */
3501 char gethostbyname();
3502
3503 int main() {
3504 gethostbyname()
3505 ; return 0; }
3506 EOF
3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508   rm -rf conftest*
3509   eval "ac_cv_lib_$ac_lib_var=yes"
3510 else
3511   echo "configure: failed program was:" >&5
3512   cat conftest.$ac_ext >&5
3513   rm -rf conftest*
3514   eval "ac_cv_lib_$ac_lib_var=no"
3515 fi
3516 rm -f conftest*
3517 LIBS="$ac_save_LIBS"
3518
3519 fi
3520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3521   echo "$ac_t""yes" 1>&6
3522     ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3523     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3524   cat >> confdefs.h <<EOF
3525 #define $ac_tr_lib 1
3526 EOF
3527
3528   LIBS="-lresolv $LIBS"
3529
3530 else
3531   echo "$ac_t""no" 1>&6
3532 fi
3533
3534 fi
3535
3536 fi
3537
3538 echo $ac_n "checking for socket""... $ac_c" 1>&6
3539 echo "configure:3540: checking for socket" >&5
3540 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3541   echo $ac_n "(cached) $ac_c" 1>&6
3542 else
3543   cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* System header to define __stub macros and hopefully few prototypes,
3547     which can conflict with char socket(); below.  */
3548 #include <assert.h>
3549 /* Override any gcc2 internal prototype to avoid an error.  */
3550 /* We use char because int might match the return type of a gcc2
3551     builtin and then its argument prototype would still apply.  */
3552 char socket();
3553
3554 int main() {
3555
3556 /* The GNU C library defines this for functions which it implements
3557     to always fail with ENOSYS.  Some functions are actually named
3558     something starting with __ and the normal name is an alias.  */
3559 #if defined (__stub_socket) || defined (__stub___socket)
3560 choke me
3561 #else
3562 socket();
3563 #endif
3564
3565 ; return 0; }
3566 EOF
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3568   rm -rf conftest*
3569   eval "ac_cv_func_socket=yes"
3570 else
3571   echo "configure: failed program was:" >&5
3572   cat conftest.$ac_ext >&5
3573   rm -rf conftest*
3574   eval "ac_cv_func_socket=no"
3575 fi
3576 rm -f conftest*
3577 fi
3578
3579 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3580   echo "$ac_t""yes" 1>&6
3581   :
3582 else
3583   echo "$ac_t""no" 1>&6
3584 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3585 echo "configure:3586: checking for socket in -lsocket" >&5
3586 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3588   echo $ac_n "(cached) $ac_c" 1>&6
3589 else
3590   ac_save_LIBS="$LIBS"
3591 LIBS="-lsocket  $LIBS"
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 /* Override any gcc2 internal prototype to avoid an error.  */
3596 /* We use char because int might match the return type of a gcc2
3597     builtin and then its argument prototype would still apply.  */
3598 char socket();
3599
3600 int main() {
3601 socket()
3602 ; return 0; }
3603 EOF
3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3605   rm -rf conftest*
3606   eval "ac_cv_lib_$ac_lib_var=yes"
3607 else
3608   echo "configure: failed program was:" >&5
3609   cat conftest.$ac_ext >&5
3610   rm -rf conftest*
3611   eval "ac_cv_lib_$ac_lib_var=no"
3612 fi
3613 rm -f conftest*
3614 LIBS="$ac_save_LIBS"
3615
3616 fi
3617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3618   echo "$ac_t""yes" 1>&6
3619     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3620     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3621   cat >> confdefs.h <<EOF
3622 #define $ac_tr_lib 1
3623 EOF
3624
3625   LIBS="-lsocket $LIBS"
3626
3627 else
3628   echo "$ac_t""no" 1>&6
3629 fi
3630
3631 fi
3632
3633
3634
3635 termcap_curses_order="termcap curses ncurses"
3636 for lib in $termcap_curses_order; do
3637   echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3638 echo "configure:3639: checking for tgetent in -l${lib}" >&5
3639 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3641   echo $ac_n "(cached) $ac_c" 1>&6
3642 else
3643   ac_save_LIBS="$LIBS"
3644 LIBS="-l${lib}  $LIBS"
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 /* Override any gcc2 internal prototype to avoid an error.  */
3649 /* We use char because int might match the return type of a gcc2
3650     builtin and then its argument prototype would still apply.  */
3651 char tgetent();
3652
3653 int main() {
3654 tgetent()
3655 ; return 0; }
3656 EOF
3657 if { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3658   rm -rf conftest*
3659   eval "ac_cv_lib_$ac_lib_var=yes"
3660 else
3661   echo "configure: failed program was:" >&5
3662   cat conftest.$ac_ext >&5
3663   rm -rf conftest*
3664   eval "ac_cv_lib_$ac_lib_var=no"
3665 fi
3666 rm -f conftest*
3667 LIBS="$ac_save_LIBS"
3668
3669 fi
3670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3671   echo "$ac_t""yes" 1>&6
3672   TERMLIB="-l$lib"; break
3673 else
3674   echo "$ac_t""no" 1>&6
3675 fi
3676
3677 done
3678
3679 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3680 echo "configure:3681: checking for dbm_open" >&5
3681 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3682   echo $ac_n "(cached) $ac_c" 1>&6
3683 else
3684   cat > conftest.$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3687 /* System header to define __stub macros and hopefully few prototypes,
3688     which can conflict with char dbm_open(); below.  */
3689 #include <assert.h>
3690 /* Override any gcc2 internal prototype to avoid an error.  */
3691 /* We use char because int might match the return type of a gcc2
3692     builtin and then its argument prototype would still apply.  */
3693 char dbm_open();
3694
3695 int main() {
3696
3697 /* The GNU C library defines this for functions which it implements
3698     to always fail with ENOSYS.  Some functions are actually named
3699     something starting with __ and the normal name is an alias.  */
3700 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3701 choke me
3702 #else
3703 dbm_open();
3704 #endif
3705
3706 ; return 0; }
3707 EOF
3708 if { (eval echo configure:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3709   rm -rf conftest*
3710   eval "ac_cv_func_dbm_open=yes"
3711 else
3712   echo "configure: failed program was:" >&5
3713   cat conftest.$ac_ext >&5
3714   rm -rf conftest*
3715   eval "ac_cv_func_dbm_open=no"
3716 fi
3717 rm -f conftest*
3718 fi
3719
3720 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3721   echo "$ac_t""yes" 1>&6
3722   :
3723 else
3724   echo "$ac_t""no" 1>&6
3725 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3726 echo "configure:3727: checking for dbm_open in -lndbm" >&5
3727 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3729   echo $ac_n "(cached) $ac_c" 1>&6
3730 else
3731   ac_save_LIBS="$LIBS"
3732 LIBS="-lndbm  $LIBS"
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 /* Override any gcc2 internal prototype to avoid an error.  */
3737 /* We use char because int might match the return type of a gcc2
3738     builtin and then its argument prototype would still apply.  */
3739 char dbm_open();
3740
3741 int main() {
3742 dbm_open()
3743 ; return 0; }
3744 EOF
3745 if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3746   rm -rf conftest*
3747   eval "ac_cv_lib_$ac_lib_var=yes"
3748 else
3749   echo "configure: failed program was:" >&5
3750   cat conftest.$ac_ext >&5
3751   rm -rf conftest*
3752   eval "ac_cv_lib_$ac_lib_var=no"
3753 fi
3754 rm -f conftest*
3755 LIBS="$ac_save_LIBS"
3756
3757 fi
3758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3759   echo "$ac_t""yes" 1>&6
3760     ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3761     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3762   cat >> confdefs.h <<EOF
3763 #define $ac_tr_lib 1
3764 EOF
3765
3766   LIBS="-lndbm $LIBS"
3767
3768 else
3769   echo "$ac_t""no" 1>&6
3770 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3771 echo "configure:3772: checking for dbm_open in -ldbm" >&5
3772 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3774   echo $ac_n "(cached) $ac_c" 1>&6
3775 else
3776   ac_save_LIBS="$LIBS"
3777 LIBS="-ldbm  $LIBS"
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 /* Override any gcc2 internal prototype to avoid an error.  */
3782 /* We use char because int might match the return type of a gcc2
3783     builtin and then its argument prototype would still apply.  */
3784 char dbm_open();
3785
3786 int main() {
3787 dbm_open()
3788 ; return 0; }
3789 EOF
3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3791   rm -rf conftest*
3792   eval "ac_cv_lib_$ac_lib_var=yes"
3793 else
3794   echo "configure: failed program was:" >&5
3795   cat conftest.$ac_ext >&5
3796   rm -rf conftest*
3797   eval "ac_cv_lib_$ac_lib_var=no"
3798 fi
3799 rm -f conftest*
3800 LIBS="$ac_save_LIBS"
3801
3802 fi
3803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3804   echo "$ac_t""yes" 1>&6
3805     ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3806     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3807   cat >> confdefs.h <<EOF
3808 #define $ac_tr_lib 1
3809 EOF
3810
3811   LIBS="-ldbm $LIBS"
3812
3813 else
3814   echo "$ac_t""no" 1>&6
3815 fi
3816
3817 fi
3818
3819 fi
3820
3821
3822 for ac_hdr in db1/ndbm.h
3823 do
3824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3826 echo "configure:3827: checking for $ac_hdr" >&5
3827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3828   echo $ac_n "(cached) $ac_c" 1>&6
3829 else
3830   cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <$ac_hdr>
3834 EOF
3835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3836 { (eval echo configure:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3838 if test -z "$ac_err"; then
3839   rm -rf conftest*
3840   eval "ac_cv_header_$ac_safe=yes"
3841 else
3842   echo "$ac_err" >&5
3843   echo "configure: failed program was:" >&5
3844   cat conftest.$ac_ext >&5
3845   rm -rf conftest*
3846   eval "ac_cv_header_$ac_safe=no"
3847 fi
3848 rm -f conftest*
3849 fi
3850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3851   echo "$ac_t""yes" 1>&6
3852     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3853   cat >> confdefs.h <<EOF
3854 #define $ac_tr_hdr 1
3855 EOF
3856  
3857 else
3858   echo "$ac_t""no" 1>&6
3859 fi
3860 done
3861
3862
3863 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
3864   if test x"$with_hesiod" != x"yes"; then
3865     HESIOD_INCLUDES="-I$with_hesiod/include"
3866     HESIOD_LIBS="-L$with_hesiod/lib"
3867   fi
3868   echo $ac_n "checking for res_send""... $ac_c" 1>&6
3869 echo "configure:3870: checking for res_send" >&5
3870 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3871   echo $ac_n "(cached) $ac_c" 1>&6
3872 else
3873   cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 /* System header to define __stub macros and hopefully few prototypes,
3877     which can conflict with char res_send(); below.  */
3878 #include <assert.h>
3879 /* Override any gcc2 internal prototype to avoid an error.  */
3880 /* We use char because int might match the return type of a gcc2
3881     builtin and then its argument prototype would still apply.  */
3882 char res_send();
3883
3884 int main() {
3885
3886 /* The GNU C library defines this for functions which it implements
3887     to always fail with ENOSYS.  Some functions are actually named
3888     something starting with __ and the normal name is an alias.  */
3889 #if defined (__stub_res_send) || defined (__stub___res_send)
3890 choke me
3891 #else
3892 res_send();
3893 #endif
3894
3895 ; return 0; }
3896 EOF
3897 if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3898   rm -rf conftest*
3899   eval "ac_cv_func_res_send=yes"
3900 else
3901   echo "configure: failed program was:" >&5
3902   cat conftest.$ac_ext >&5
3903   rm -rf conftest*
3904   eval "ac_cv_func_res_send=no"
3905 fi
3906 rm -f conftest*
3907 fi
3908
3909 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3910   echo "$ac_t""yes" 1>&6
3911   :
3912 else
3913   echo "$ac_t""no" 1>&6
3914 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3915 echo "configure:3916: checking for res_send in -lresolv" >&5
3916 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3918   echo $ac_n "(cached) $ac_c" 1>&6
3919 else
3920   ac_save_LIBS="$LIBS"
3921 LIBS="-lresolv  $LIBS"
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 /* Override any gcc2 internal prototype to avoid an error.  */
3926 /* We use char because int might match the return type of a gcc2
3927     builtin and then its argument prototype would still apply.  */
3928 char res_send();
3929
3930 int main() {
3931 res_send()
3932 ; return 0; }
3933 EOF
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3935   rm -rf conftest*
3936   eval "ac_cv_lib_$ac_lib_var=yes"
3937 else
3938   echo "configure: failed program was:" >&5
3939   cat conftest.$ac_ext >&5
3940   rm -rf conftest*
3941   eval "ac_cv_lib_$ac_lib_var=no"
3942 fi
3943 rm -f conftest*
3944 LIBS="$ac_save_LIBS"
3945
3946 fi
3947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3948   echo "$ac_t""yes" 1>&6
3949     ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3950     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3951   cat >> confdefs.h <<EOF
3952 #define $ac_tr_lib 1
3953 EOF
3954
3955   LIBS="-lresolv $LIBS"
3956
3957 else
3958   echo "$ac_t""no" 1>&6
3959 fi
3960
3961 fi
3962
3963   echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3964 echo "configure:3965: checking for hes_resolve in -lhesiod" >&5
3965 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3967   echo $ac_n "(cached) $ac_c" 1>&6
3968 else
3969   ac_save_LIBS="$LIBS"
3970 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3971 cat > conftest.$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3974 /* Override any gcc2 internal prototype to avoid an error.  */
3975 /* We use char because int might match the return type of a gcc2
3976     builtin and then its argument prototype would still apply.  */
3977 char hes_resolve();
3978
3979 int main() {
3980 hes_resolve()
3981 ; return 0; }
3982 EOF
3983 if { (eval echo configure:3984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3984   rm -rf conftest*
3985   eval "ac_cv_lib_$ac_lib_var=yes"
3986 else
3987   echo "configure: failed program was:" >&5
3988   cat conftest.$ac_ext >&5
3989   rm -rf conftest*
3990   eval "ac_cv_lib_$ac_lib_var=no"
3991 fi
3992 rm -f conftest*
3993 LIBS="$ac_save_LIBS"
3994
3995 fi
3996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3997   echo "$ac_t""yes" 1>&6
3998   HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3999 else
4000   echo "$ac_t""no" 1>&6
4001 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
4002 fi
4003
4004 fi
4005
4006 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
4007   if test x"$with_krb4" != x"yes"; then
4008     KRB4_INCLUDES="-I$with_krb4/include"
4009     if test -d "$with_krb4/include/kerberosIV"; then
4010       KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
4011     fi
4012     KRB4_LIBS="-L$with_krb4/lib"
4013   elif test -d /usr/include/kerberosIV; then
4014     KRB4_INCLUDES="-I/usr/include/kerberosIV"
4015   fi
4016   echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
4017 echo "configure:4018: checking for krb_rd_req in -lkrb4" >&5
4018 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
4019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4020   echo $ac_n "(cached) $ac_c" 1>&6
4021 else
4022   ac_save_LIBS="$LIBS"
4023 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 /* Override any gcc2 internal prototype to avoid an error.  */
4028 /* We use char because int might match the return type of a gcc2
4029     builtin and then its argument prototype would still apply.  */
4030 char krb_rd_req();
4031
4032 int main() {
4033 krb_rd_req()
4034 ; return 0; }
4035 EOF
4036 if { (eval echo configure:4037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4037   rm -rf conftest*
4038   eval "ac_cv_lib_$ac_lib_var=yes"
4039 else
4040   echo "configure: failed program was:" >&5
4041   cat conftest.$ac_ext >&5
4042   rm -rf conftest*
4043   eval "ac_cv_lib_$ac_lib_var=no"
4044 fi
4045 rm -f conftest*
4046 LIBS="$ac_save_LIBS"
4047
4048 fi
4049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4050   echo "$ac_t""yes" 1>&6
4051   KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
4052 else
4053   echo "$ac_t""no" 1>&6
4054 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
4055 echo "configure:4056: checking for krb_rd_req in -lkrb" >&5
4056 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
4057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4058   echo $ac_n "(cached) $ac_c" 1>&6
4059 else
4060   ac_save_LIBS="$LIBS"
4061 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4065 /* Override any gcc2 internal prototype to avoid an error.  */
4066 /* We use char because int might match the return type of a gcc2
4067     builtin and then its argument prototype would still apply.  */
4068 char krb_rd_req();
4069
4070 int main() {
4071 krb_rd_req()
4072 ; return 0; }
4073 EOF
4074 if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4075   rm -rf conftest*
4076   eval "ac_cv_lib_$ac_lib_var=yes"
4077 else
4078   echo "configure: failed program was:" >&5
4079   cat conftest.$ac_ext >&5
4080   rm -rf conftest*
4081   eval "ac_cv_lib_$ac_lib_var=no"
4082 fi
4083 rm -f conftest*
4084 LIBS="$ac_save_LIBS"
4085
4086 fi
4087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4088   echo "$ac_t""yes" 1>&6
4089   KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
4090 else
4091   echo "$ac_t""no" 1>&6
4092 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
4093 fi
4094
4095 fi
4096
4097 fi
4098
4099 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != "no"; then
4100   if test x"$with_cyrus_sasl" != x"yes"; then
4101     SASL_INCLUDES="-I$with_cyrus_sasl/include"
4102     SASL_LIBS="-L$with_cyrus_sasl/lib"
4103   fi
4104   save_LDFLAGS="$LDFLAGS"
4105   LDFLAGS="$LDFLAGS $SASL_LIBS"
4106   echo $ac_n "checking for sasl_client_new in -lsasl""... $ac_c" 1>&6
4107 echo "configure:4108: checking for sasl_client_new in -lsasl" >&5
4108 ac_lib_var=`echo sasl'_'sasl_client_new | sed 'y%./+-%__p_%'`
4109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4110   echo $ac_n "(cached) $ac_c" 1>&6
4111 else
4112   ac_save_LIBS="$LIBS"
4113 LIBS="-lsasl  $LIBS"
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 /* Override any gcc2 internal prototype to avoid an error.  */
4118 /* We use char because int might match the return type of a gcc2
4119     builtin and then its argument prototype would still apply.  */
4120 char sasl_client_new();
4121
4122 int main() {
4123 sasl_client_new()
4124 ; return 0; }
4125 EOF
4126 if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4127   rm -rf conftest*
4128   eval "ac_cv_lib_$ac_lib_var=yes"
4129 else
4130   echo "configure: failed program was:" >&5
4131   cat conftest.$ac_ext >&5
4132   rm -rf conftest*
4133   eval "ac_cv_lib_$ac_lib_var=no"
4134 fi
4135 rm -f conftest*
4136 LIBS="$ac_save_LIBS"
4137
4138 fi
4139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4140   echo "$ac_t""yes" 1>&6
4141   SASL_LIBS="$SASL_LIBS -lsasl"
4142 else
4143   echo "$ac_t""no" 1>&6
4144 { echo "configure: error: Cyrus SASL library not found" 1>&2; exit 1; }
4145 fi
4146
4147   LDFLAGS="$save_LDFLAGS"
4148 fi
4149
4150
4151 nmh_save_LIBS="$LIBS"
4152 LIBS="$TERMLIB $LIBS"
4153
4154 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
4155 echo "configure:4156: checking if an include file defines ospeed" >&5
4156 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
4157   echo $ac_n "(cached) $ac_c" 1>&6
4158 else
4159   cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 #include <sys/types.h>
4163 #if HAVE_TERMIOS_H
4164 #include <termios.h>
4165 #endif
4166 #if HAVE_TERMCAP_H
4167 #include <termcap.h>
4168 #endif
4169 int main() {
4170 ospeed = 0;
4171 ; return 0; }
4172 EOF
4173 if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4174   rm -rf conftest*
4175   nmh_cv_decl_ospeed_include_defines=yes
4176 else
4177   echo "configure: failed program was:" >&5
4178   cat conftest.$ac_ext >&5
4179   rm -rf conftest*
4180   nmh_cv_decl_ospeed_include_defines=no
4181 fi
4182 rm -f conftest*
4183 fi
4184
4185 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
4186  
4187 if test $nmh_cv_decl_ospeed_include_defines = no; then
4188   echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
4189 echo "configure:4190: checking if you must define ospeed" >&5
4190 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
4191   echo $ac_n "(cached) $ac_c" 1>&6
4192 else
4193   cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4196
4197 int main() {
4198 extern short ospeed; ospeed = 0;
4199 ; return 0; }
4200 EOF
4201 if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4202   rm -rf conftest*
4203   nmh_cv_decl_ospeed_must_define=yes
4204 else
4205   echo "configure: failed program was:" >&5
4206   cat conftest.$ac_ext >&5
4207   rm -rf conftest*
4208   nmh_cv_decl_ospeed_must_define=no
4209 fi
4210 rm -f conftest*
4211 fi
4212
4213 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
4214 fi
4215  
4216 if test $nmh_cv_decl_ospeed_include_defines = yes; then
4217   cat >> confdefs.h <<\EOF
4218 #define HAVE_OSPEED 1
4219 EOF
4220 elif test $nmh_cv_decl_ospeed_must_define = yes; then
4221   cat >> confdefs.h <<\EOF
4222 #define HAVE_OSPEED 1
4223 EOF
4224
4225   cat >> confdefs.h <<\EOF
4226 #define MUST_DEFINE_OSPEED 1
4227 EOF
4228
4229 fi
4230
4231
4232 LIBS="$nmh_save_LIBS"
4233
4234 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4235 echo "configure:4236: checking return type of signal handlers" >&5
4236 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4237   echo $ac_n "(cached) $ac_c" 1>&6
4238 else
4239   cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242 #include <sys/types.h>
4243 #include <signal.h>
4244 #ifdef signal
4245 #undef signal
4246 #endif
4247 #ifdef __cplusplus
4248 extern "C" void (*signal (int, void (*)(int)))(int);
4249 #else
4250 void (*signal ()) ();
4251 #endif
4252
4253 int main() {
4254 int i;
4255 ; return 0; }
4256 EOF
4257 if { (eval echo configure:4258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4258   rm -rf conftest*
4259   ac_cv_type_signal=void
4260 else
4261   echo "configure: failed program was:" >&5
4262   cat conftest.$ac_ext >&5
4263   rm -rf conftest*
4264   ac_cv_type_signal=int
4265 fi
4266 rm -f conftest*
4267 fi
4268
4269 echo "$ac_t""$ac_cv_type_signal" 1>&6
4270 cat >> confdefs.h <<EOF
4271 #define RETSIGTYPE $ac_cv_type_signal
4272 EOF
4273
4274
4275 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4276 echo "configure:4277: checking for pid_t" >&5
4277 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4278   echo $ac_n "(cached) $ac_c" 1>&6
4279 else
4280   cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 #include <sys/types.h>
4284 #if STDC_HEADERS
4285 #include <stdlib.h>
4286 #include <stddef.h>
4287 #endif
4288 EOF
4289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4291   rm -rf conftest*
4292   ac_cv_type_pid_t=yes
4293 else
4294   rm -rf conftest*
4295   ac_cv_type_pid_t=no
4296 fi
4297 rm -f conftest*
4298
4299 fi
4300 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4301 if test $ac_cv_type_pid_t = no; then
4302   cat >> confdefs.h <<\EOF
4303 #define pid_t int
4304 EOF
4305
4306 fi
4307
4308 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4309 echo "configure:4310: checking for off_t" >&5
4310 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4311   echo $ac_n "(cached) $ac_c" 1>&6
4312 else
4313   cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 #include <sys/types.h>
4317 #if STDC_HEADERS
4318 #include <stdlib.h>
4319 #include <stddef.h>
4320 #endif
4321 EOF
4322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4324   rm -rf conftest*
4325   ac_cv_type_off_t=yes
4326 else
4327   rm -rf conftest*
4328   ac_cv_type_off_t=no
4329 fi
4330 rm -f conftest*
4331
4332 fi
4333 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4334 if test $ac_cv_type_off_t = no; then
4335   cat >> confdefs.h <<\EOF
4336 #define off_t long
4337 EOF
4338
4339 fi
4340
4341 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4342 echo "configure:4343: checking for uid_t in sys/types.h" >&5
4343 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4344   echo $ac_n "(cached) $ac_c" 1>&6
4345 else
4346   cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 #include <sys/types.h>
4350 EOF
4351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352   egrep "uid_t" >/dev/null 2>&1; then
4353   rm -rf conftest*
4354   ac_cv_type_uid_t=yes
4355 else
4356   rm -rf conftest*
4357   ac_cv_type_uid_t=no
4358 fi
4359 rm -f conftest*
4360
4361 fi
4362
4363 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4364 if test $ac_cv_type_uid_t = no; then
4365   cat >> confdefs.h <<\EOF
4366 #define uid_t int
4367 EOF
4368
4369   cat >> confdefs.h <<\EOF
4370 #define gid_t int
4371 EOF
4372
4373 fi
4374
4375 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4376 echo "configure:4377: checking for mode_t" >&5
4377 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4378   echo $ac_n "(cached) $ac_c" 1>&6
4379 else
4380   cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 #include <sys/types.h>
4384 #if STDC_HEADERS
4385 #include <stdlib.h>
4386 #include <stddef.h>
4387 #endif
4388 EOF
4389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4390   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4391   rm -rf conftest*
4392   ac_cv_type_mode_t=yes
4393 else
4394   rm -rf conftest*
4395   ac_cv_type_mode_t=no
4396 fi
4397 rm -f conftest*
4398
4399 fi
4400 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4401 if test $ac_cv_type_mode_t = no; then
4402   cat >> confdefs.h <<\EOF
4403 #define mode_t int
4404 EOF
4405
4406 fi
4407
4408 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4409 echo "configure:4410: checking for size_t" >&5
4410 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4411   echo $ac_n "(cached) $ac_c" 1>&6
4412 else
4413   cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 #include <sys/types.h>
4417 #if STDC_HEADERS
4418 #include <stdlib.h>
4419 #include <stddef.h>
4420 #endif
4421 EOF
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4424   rm -rf conftest*
4425   ac_cv_type_size_t=yes
4426 else
4427   rm -rf conftest*
4428   ac_cv_type_size_t=no
4429 fi
4430 rm -f conftest*
4431
4432 fi
4433 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4434 if test $ac_cv_type_size_t = no; then
4435   cat >> confdefs.h <<\EOF
4436 #define size_t unsigned
4437 EOF
4438
4439 fi
4440
4441
4442 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4443 echo "configure:4444: checking for sigset_t" >&5
4444 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4445   echo $ac_n "(cached) $ac_c" 1>&6
4446 else
4447   cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 #include <sys/types.h>
4451 #include <signal.h>
4452 int main() {
4453 sigset_t tempsigset;
4454 ; return 0; }
4455 EOF
4456 if { (eval echo configure:4457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4457   rm -rf conftest*
4458   nmh_cv_type_sigset_t=yes
4459 else
4460   echo "configure: failed program was:" >&5
4461   cat conftest.$ac_ext >&5
4462   rm -rf conftest*
4463   nmh_cv_type_sigset_t=no
4464 fi
4465 rm -f conftest*
4466 fi
4467
4468 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4469 if test $nmh_cv_type_sigset_t = no; then
4470   cat >> confdefs.h <<\EOF
4471 #define sigset_t unsigned int
4472 EOF
4473
4474 fi
4475
4476 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4477 echo "configure:4478: checking for st_blksize in struct stat" >&5
4478 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4479   echo $ac_n "(cached) $ac_c" 1>&6
4480 else
4481   cat > conftest.$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4484 #include <sys/types.h>
4485 #include <sys/stat.h>
4486 int main() {
4487 struct stat s; s.st_blksize;
4488 ; return 0; }
4489 EOF
4490 if { (eval echo configure:4491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4491   rm -rf conftest*
4492   ac_cv_struct_st_blksize=yes
4493 else
4494   echo "configure: failed program was:" >&5
4495   cat conftest.$ac_ext >&5
4496   rm -rf conftest*
4497   ac_cv_struct_st_blksize=no
4498 fi
4499 rm -f conftest*
4500 fi
4501
4502 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4503 if test $ac_cv_struct_st_blksize = yes; then
4504   cat >> confdefs.h <<\EOF
4505 #define HAVE_ST_BLKSIZE 1
4506 EOF
4507
4508 fi
4509
4510
4511 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4512 echo "configure:4513: checking for tm_gmtoff in struct tm" >&5
4513 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4514   echo $ac_n "(cached) $ac_c" 1>&6
4515 else
4516   cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4519 #ifdef TIME_WITH_SYS_TIME
4520 # include <sys/time.h>
4521 # include <time.h>
4522 #else
4523 # ifdef TM_IN_SYS_TIME
4524 #  include <sys/time.h>
4525 # else
4526 #  include <time.h>
4527 # endif
4528 #endif
4529 int main() {
4530 struct tm temptm; temptm.tm_gmtoff = 0;
4531 ; return 0; }
4532 EOF
4533 if { (eval echo configure:4534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4534   rm -rf conftest*
4535   nmh_cv_struct_tm_gmtoff=yes
4536 else
4537   echo "configure: failed program was:" >&5
4538   cat conftest.$ac_ext >&5
4539   rm -rf conftest*
4540   nmh_cv_struct_tm_gmtoff=no
4541 fi
4542 rm -f conftest*
4543 fi
4544
4545 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4546 if test $nmh_cv_struct_tm_gmtoff = yes; then
4547   cat >> confdefs.h <<\EOF
4548 #define HAVE_TM_GMTOFF 1
4549 EOF
4550
4551 fi
4552
4553 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4554 echo "configure:4555: checking what style of signals to use" >&5
4555 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4556   signals_style=POSIX_SIGNALS
4557   cat >> confdefs.h <<\EOF
4558 #define POSIX_SIGNALS 1
4559 EOF
4560
4561   cat >> confdefs.h <<\EOF
4562 #define RELIABLE_SIGNALS 1
4563 EOF
4564
4565 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4566   signals_style=BSD_SIGNALS
4567   cat >> confdefs.h <<\EOF
4568 #define BSD_SIGNALS 1
4569 EOF
4570
4571   cat >> confdefs.h <<\EOF
4572 #define RELIABLE_SIGNALS 1
4573 EOF
4574
4575 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4576   signals_style=SYSV_SIGNALS
4577   cat >> confdefs.h <<\EOF
4578 #define SYSV_SIGNALS 1
4579 EOF
4580
4581 else
4582   signals_style=NO_SIGNAL_BLOCKING
4583   cat >> confdefs.h <<\EOF
4584 #define NO_SIGNAL_BLOCKING 1
4585 EOF
4586
4587 fi
4588
4589 echo "$ac_t""$signals_style" 1>&6
4590
4591 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4592 echo "configure:4593: checking where signal.h is located" >&5
4593 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4594   echo $ac_n "(cached) $ac_c" 1>&6
4595 else
4596   for SIGNAL_H in /usr/include/bsd/sys/signal.h                   /usr/include/asm/signal.h                       /usr/include/asm/signum.h                       /usr/include/linux/signal.h                     /usr/include/sys/signal.h                       /dev/null;                     do
4597   test -f $SIGNAL_H && \
4598   grep '#[      ]*define[       ][      ]*SIG[0-9A-Z]*[         ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4599   break
4600 done
4601 nmh_cv_path_signal_h=$SIGNAL_H
4602
4603 fi
4604
4605 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4606 SIGNAL_H=$nmh_cv_path_signal_h
4607
4608 case "$target_os" in
4609
4610   solaris2*)
4611     cat >> confdefs.h <<\EOF
4612 #define SYS5 1
4613 EOF
4614
4615     cat >> confdefs.h <<\EOF
4616 #define SVR4 1
4617 EOF
4618
4619     ;;
4620   irix*)
4621     cat >> confdefs.h <<\EOF
4622 #define SYS5 1
4623 EOF
4624
4625     cat >> confdefs.h <<\EOF
4626 #define SVR4 1
4627 EOF
4628
4629     ;;
4630   osf*)
4631     cat >> confdefs.h <<\EOF
4632 #define SYS5 1
4633 EOF
4634
4635     cat >> confdefs.h <<\EOF
4636 #define SVR4 1
4637 EOF
4638
4639     ;;
4640   aix*)
4641     cat >> confdefs.h <<\EOF
4642 #define SYS5 1
4643 EOF
4644
4645     cat >> confdefs.h <<\EOF
4646 #define SVR4 1
4647 EOF
4648
4649     ;;
4650   sunos4*)
4651     cat >> confdefs.h <<\EOF
4652 #define BSD42 1
4653 EOF
4654
4655     ;;
4656   freebsd*)  
4657     cat >> confdefs.h <<\EOF
4658 #define BSD42 1
4659 EOF
4660
4661     cat >> confdefs.h <<\EOF
4662 #define BSD44 1
4663 EOF
4664
4665     ;;
4666   netbsd*)
4667     cat >> confdefs.h <<\EOF
4668 #define BSD42 1
4669 EOF
4670
4671     cat >> confdefs.h <<\EOF
4672 #define BSD44 1
4673 EOF
4674
4675     ;;
4676   openbsd*)
4677     cat >> confdefs.h <<\EOF
4678 #define BSD42 1
4679 EOF
4680
4681     cat >> confdefs.h <<\EOF
4682 #define BSD44 1
4683 EOF
4684
4685     ;;
4686   bsd/os*)
4687     cat >> confdefs.h <<\EOF
4688 #define BSD42 1
4689 EOF
4690
4691     cat >> confdefs.h <<\EOF
4692 #define BSD44 1
4693 EOF
4694
4695     ;;
4696   sco5*)
4697     cat >> confdefs.h <<\EOF
4698 #define SYS5 1
4699 EOF
4700
4701     cat >> confdefs.h <<\EOF
4702 #define SCO_5_STDIO 1
4703 EOF
4704
4705     ;;
4706 esac
4707
4708
4709 trap '' 1 2 15
4710 cat > confcache <<\EOF
4711 # This file is a shell script that caches the results of configure
4712 # tests run on this system so they can be shared between configure
4713 # scripts and configure runs.  It is not useful on other systems.
4714 # If it contains results you don't want to keep, you may remove or edit it.
4715 #
4716 # By default, configure uses ./config.cache as the cache file,
4717 # creating it if it does not exist already.  You can give configure
4718 # the --cache-file=FILE option to use a different cache file; that is
4719 # what configure does when it calls configure scripts in
4720 # subdirectories, so they share the cache.
4721 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4722 # config.status only pays attention to the cache file if you give it the
4723 # --recheck option to rerun configure.
4724 #
4725 EOF
4726 # The following way of writing the cache mishandles newlines in values,
4727 # but we know of no workaround that is simple, portable, and efficient.
4728 # So, don't put newlines in cache variables' values.
4729 # Ultrix sh set writes to stderr and can't be redirected directly,
4730 # and sets the high bit in the cache file unless we assign to the vars.
4731 (set) 2>&1 |
4732   case `(ac_space=' '; set | grep ac_space) 2>&1` in
4733   *ac_space=\ *)
4734     # `set' does not quote correctly, so add quotes (double-quote substitution
4735     # turns \\\\ into \\, and sed turns \\ into \).
4736     sed -n \
4737       -e "s/'/'\\\\''/g" \
4738       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4739     ;;
4740   *)
4741     # `set' quotes correctly as required by POSIX, so do not add quotes.
4742     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4743     ;;
4744   esac >> confcache
4745 if cmp -s $cache_file confcache; then
4746   :
4747 else
4748   if test -w $cache_file; then
4749     echo "updating cache $cache_file"
4750     cat confcache > $cache_file
4751   else
4752     echo "not updating unwritable cache $cache_file"
4753   fi
4754 fi
4755 rm -f confcache
4756
4757 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4758
4759 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4760 # Let make expand exec_prefix.
4761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4762
4763 # Any assignment to VPATH causes Sun make to only execute
4764 # the first set of double-colon rules, so remove it if not needed.
4765 # If there is a colon in the path, we need to keep it.
4766 if test "x$srcdir" = x.; then
4767   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4768 fi
4769
4770 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4771
4772 DEFS=-DHAVE_CONFIG_H
4773
4774 # Without the "./", some shells look in PATH for config.status.
4775 : ${CONFIG_STATUS=./config.status}
4776
4777 echo creating $CONFIG_STATUS
4778 rm -f $CONFIG_STATUS
4779 cat > $CONFIG_STATUS <<EOF
4780 #! /bin/sh
4781 # Generated automatically by configure.
4782 # Run this file to recreate the current configuration.
4783 # This directory was configured as follows,
4784 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4785 #
4786 # $0 $ac_configure_args
4787 #
4788 # Compiler output produced by configure, useful for debugging
4789 # configure, is in ./config.log if it exists.
4790
4791 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4792 for ac_option
4793 do
4794   case "\$ac_option" in
4795   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4796     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4797     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4798   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4799     echo "$CONFIG_STATUS generated by autoconf version 2.13"
4800     exit 0 ;;
4801   -help | --help | --hel | --he | --h)
4802     echo "\$ac_cs_usage"; exit 0 ;;
4803   *) echo "\$ac_cs_usage"; exit 1 ;;
4804   esac
4805 done
4806
4807 ac_given_srcdir=$srcdir
4808 ac_given_INSTALL="$INSTALL"
4809
4810 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4811           mts/Makefile mts/smtp/Makefile \
4812           etc/Makefile docs/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4813 EOF
4814 cat >> $CONFIG_STATUS <<EOF
4815
4816 # Protect against being on the right side of a sed subst in config.status.
4817 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4818  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4819 $ac_vpsub
4820 $extrasub
4821 s%@SHELL@%$SHELL%g
4822 s%@CFLAGS@%$CFLAGS%g
4823 s%@CPPFLAGS@%$CPPFLAGS%g
4824 s%@CXXFLAGS@%$CXXFLAGS%g
4825 s%@FFLAGS@%$FFLAGS%g
4826 s%@DEFS@%$DEFS%g
4827 s%@LDFLAGS@%$LDFLAGS%g
4828 s%@LIBS@%$LIBS%g
4829 s%@exec_prefix@%$exec_prefix%g
4830 s%@prefix@%$prefix%g
4831 s%@program_transform_name@%$program_transform_name%g
4832 s%@bindir@%$bindir%g
4833 s%@sbindir@%$sbindir%g
4834 s%@libexecdir@%$libexecdir%g
4835 s%@datadir@%$datadir%g
4836 s%@sysconfdir@%$sysconfdir%g
4837 s%@sharedstatedir@%$sharedstatedir%g
4838 s%@localstatedir@%$localstatedir%g
4839 s%@libdir@%$libdir%g
4840 s%@includedir@%$includedir%g
4841 s%@oldincludedir@%$oldincludedir%g
4842 s%@infodir@%$infodir%g
4843 s%@mandir@%$mandir%g
4844 s%@host@%$host%g
4845 s%@host_alias@%$host_alias%g
4846 s%@host_cpu@%$host_cpu%g
4847 s%@host_vendor@%$host_vendor%g
4848 s%@host_os@%$host_os%g
4849 s%@target@%$target%g
4850 s%@target_alias@%$target_alias%g
4851 s%@target_cpu@%$target_cpu%g
4852 s%@target_vendor@%$target_vendor%g
4853 s%@target_os@%$target_os%g
4854 s%@build@%$build%g
4855 s%@build_alias@%$build_alias%g
4856 s%@build_cpu@%$build_cpu%g
4857 s%@build_vendor@%$build_vendor%g
4858 s%@build_os@%$build_os%g
4859 s%@VERSION@%$VERSION%g
4860 s%@APOPLIB@%$APOPLIB%g
4861 s%@masquerade@%$masquerade%g
4862 s%@POPLIB@%$POPLIB%g
4863 s%@POPSED@%$POPSED%g
4864 s%@MTS@%$MTS%g
4865 s%@smtpservers@%$smtpservers%g
4866 s%@CC@%$CC%g
4867 s%@SET_MAKE@%$SET_MAKE%g
4868 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4869 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4870 s%@INSTALL_DATA@%$INSTALL_DATA%g
4871 s%@RANLIB@%$RANLIB%g
4872 s%@AWK@%$AWK%g
4873 s%@LEX@%$LEX%g
4874 s%@LEXLIB@%$LEXLIB%g
4875 s%@cutpath@%$cutpath%g
4876 s%@linttmp1@%$linttmp1%g
4877 s%@linttmp2@%$linttmp2%g
4878 s%@LINT@%$LINT%g
4879 s%@LINTFLAGS@%$LINTFLAGS%g
4880 s%@LIBTOOL@%$LIBTOOL%g
4881 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4882 s%@LORDER@%$LORDER%g
4883 s%@TSORT@%$TSORT%g
4884 s%@lspath@%$lspath%g
4885 s%@morepath@%$morepath%g
4886 s%@pagerpath@%$pagerpath%g
4887 s%@sendmailpath@%$sendmailpath%g
4888 s%@vipath@%$vipath%g
4889 s%@editorpath@%$editorpath%g
4890 s%@mailspool@%$mailspool%g
4891 s%@CPP@%$CPP%g
4892 s%@dotlockfilepath@%$dotlockfilepath%g
4893 s%@SETGID_MAIL@%$SETGID_MAIL%g
4894 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4895 s%@LIBOBJS@%$LIBOBJS%g
4896 s%@TERMLIB@%$TERMLIB%g
4897 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4898 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4899 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4900 s%@KRB4_LIBS@%$KRB4_LIBS%g
4901 s%@SASL_INCLUDES@%$SASL_INCLUDES%g
4902 s%@SASL_LIBS@%$SASL_LIBS%g
4903 s%@SIGNAL_H@%$SIGNAL_H%g
4904
4905 CEOF
4906 EOF
4907
4908 cat >> $CONFIG_STATUS <<\EOF
4909
4910 # Split the substitutions into bite-sized pieces for seds with
4911 # small command number limits, like on Digital OSF/1 and HP-UX.
4912 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4913 ac_file=1 # Number of current file.
4914 ac_beg=1 # First line for current file.
4915 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4916 ac_more_lines=:
4917 ac_sed_cmds=""
4918 while $ac_more_lines; do
4919   if test $ac_beg -gt 1; then
4920     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4921   else
4922     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4923   fi
4924   if test ! -s conftest.s$ac_file; then
4925     ac_more_lines=false
4926     rm -f conftest.s$ac_file
4927   else
4928     if test -z "$ac_sed_cmds"; then
4929       ac_sed_cmds="sed -f conftest.s$ac_file"
4930     else
4931       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4932     fi
4933     ac_file=`expr $ac_file + 1`
4934     ac_beg=$ac_end
4935     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4936   fi
4937 done
4938 if test -z "$ac_sed_cmds"; then
4939   ac_sed_cmds=cat
4940 fi
4941 EOF
4942
4943 cat >> $CONFIG_STATUS <<EOF
4944
4945 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4946           mts/Makefile mts/smtp/Makefile \
4947           etc/Makefile docs/Makefile man/Makefile"}
4948 EOF
4949 cat >> $CONFIG_STATUS <<\EOF
4950 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4951   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4952   case "$ac_file" in
4953   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4954        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4955   *) ac_file_in="${ac_file}.in" ;;
4956   esac
4957
4958   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4959
4960   # Remove last slash and all that follows it.  Not all systems have dirname.
4961   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4962   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4963     # The file is in a subdirectory.
4964     test ! -d "$ac_dir" && mkdir "$ac_dir"
4965     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4966     # A "../" for each directory in $ac_dir_suffix.
4967     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4968   else
4969     ac_dir_suffix= ac_dots=
4970   fi
4971
4972   case "$ac_given_srcdir" in
4973   .)  srcdir=.
4974       if test -z "$ac_dots"; then top_srcdir=.
4975       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4976   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4977   *) # Relative path.
4978     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4979     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4980   esac
4981
4982   case "$ac_given_INSTALL" in
4983   [/$]*) INSTALL="$ac_given_INSTALL" ;;
4984   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4985   esac
4986
4987   echo creating "$ac_file"
4988   rm -f "$ac_file"
4989   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4990   case "$ac_file" in
4991   *Makefile*) ac_comsub="1i\\
4992 # $configure_input" ;;
4993   *) ac_comsub= ;;
4994   esac
4995
4996   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4997   sed -e "$ac_comsub
4998 s%@configure_input@%$configure_input%g
4999 s%@srcdir@%$srcdir%g
5000 s%@top_srcdir@%$top_srcdir%g
5001 s%@INSTALL@%$INSTALL%g
5002 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5003 fi; done
5004 rm -f conftest.s*
5005
5006 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5007 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5008 #
5009 # ac_d sets the value in "#define NAME VALUE" lines.
5010 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5011 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
5012 ac_dC='\3'
5013 ac_dD='%g'
5014 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5015 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5016 ac_uB='\([      ]\)%\1#\2define\3'
5017 ac_uC=' '
5018 ac_uD='\4%g'
5019 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5020 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5021 ac_eB='$%\1#\2define\3'
5022 ac_eC=' '
5023 ac_eD='%g'
5024
5025 if test "${CONFIG_HEADERS+set}" != set; then
5026 EOF
5027 cat >> $CONFIG_STATUS <<EOF
5028   CONFIG_HEADERS="config.h"
5029 EOF
5030 cat >> $CONFIG_STATUS <<\EOF
5031 fi
5032 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5033   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5034   case "$ac_file" in
5035   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5036        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5037   *) ac_file_in="${ac_file}.in" ;;
5038   esac
5039
5040   echo creating $ac_file
5041
5042   rm -f conftest.frag conftest.in conftest.out
5043   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5044   cat $ac_file_inputs > conftest.in
5045
5046 EOF
5047
5048 # Transform confdefs.h into a sed script conftest.vals that substitutes
5049 # the proper values into config.h.in to produce config.h.  And first:
5050 # Protect against being on the right side of a sed subst in config.status.
5051 # Protect against being in an unquoted here document in config.status.
5052 rm -f conftest.vals
5053 cat > conftest.hdr <<\EOF
5054 s/[\\&%]/\\&/g
5055 s%[\\$`]%\\&%g
5056 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5057 s%ac_d%ac_u%gp
5058 s%ac_u%ac_e%gp
5059 EOF
5060 sed -n -f conftest.hdr confdefs.h > conftest.vals
5061 rm -f conftest.hdr
5062
5063 # This sed command replaces #undef with comments.  This is necessary, for
5064 # example, in the case of _POSIX_SOURCE, which is predefined and required
5065 # on some systems where configure will not decide to define it.
5066 cat >> conftest.vals <<\EOF
5067 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5068 EOF
5069
5070 # Break up conftest.vals because some shells have a limit on
5071 # the size of here documents, and old seds have small limits too.
5072
5073 rm -f conftest.tail
5074 while :
5075 do
5076   ac_lines=`grep -c . conftest.vals`
5077   # grep -c gives empty output for an empty file on some AIX systems.
5078   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5079   # Write a limited-size here document to conftest.frag.
5080   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5081   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5082   echo 'CEOF
5083   sed -f conftest.frag conftest.in > conftest.out
5084   rm -f conftest.in
5085   mv conftest.out conftest.in
5086 ' >> $CONFIG_STATUS
5087   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5088   rm -f conftest.vals
5089   mv conftest.tail conftest.vals
5090 done
5091 rm -f conftest.vals
5092
5093 cat >> $CONFIG_STATUS <<\EOF
5094   rm -f conftest.frag conftest.h
5095   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
5096   cat conftest.in >> conftest.h
5097   rm -f conftest.in
5098   if cmp -s $ac_file conftest.h 2>/dev/null; then
5099     echo "$ac_file is unchanged"
5100     rm -f conftest.h
5101   else
5102     # Remove last slash and all that follows it.  Not all systems have dirname.
5103       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5104       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5105       # The file is in a subdirectory.
5106       test ! -d "$ac_dir" && mkdir "$ac_dir"
5107     fi
5108     rm -f $ac_file
5109     mv conftest.h $ac_file
5110   fi
5111 fi; done
5112
5113 EOF
5114 cat >> $CONFIG_STATUS <<EOF
5115
5116 EOF
5117 cat >> $CONFIG_STATUS <<\EOF
5118 \
5119           test -z "$CONFIG_HEADERS" || echo > stamp-h
5120 exit 0
5121 EOF
5122 chmod +x $CONFIG_STATUS
5123 rm -fr confdefs* $ac_clean_files
5124 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5125
5126
5127 eval "nmhbin=${bindir}";         eval "nmhbin2=${nmhbin}"
5128 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
5129 eval "nmhlib=${libdir}";         eval "nmhlib2=${nmhlib}"
5130 eval "nmhman=${mandir}"
5131
5132 pop_kinds=no
5133 if test x"$enable_pop" = x"yes"; then
5134   pop_kinds="yes ("
5135
5136   if test x"$enable_apop" = x"yes"; then
5137     pop_kinds="${pop_kinds}APOP "
5138   fi
5139
5140   if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
5141     pop_kinds="${pop_kinds}KPOP "
5142   fi
5143
5144   pop_kinds="${pop_kinds}POP3)"
5145 fi
5146
5147 echo "
5148 nmh configuration
5149 -----------------
5150 nmh version                : ${VERSION}
5151 target os                  : ${target}
5152 compiler                   : ${CC}
5153 compiler flags             : ${CFLAGS}
5154 linker flags               : ${LDFLAGS}
5155 source code location       : ${srcdir}
5156 binary install path        : ${nmhbin2}
5157 libary install path        : ${nmhlib2}
5158 config files install path  : ${nmhsysconf2}
5159 man page install path      : ${nmhman}
5160 backup prefix              : ${backup_prefix}
5161 transport system           : ${MTS}
5162 file locking type          : ${LOCKTYPE}
5163 default smtp servers       : ${smtpservers}
5164 default editor             : ${editorpath}
5165 default pager              : ${pagerpath}
5166 email address masquerading : ${masquerade}
5167 pop is enabled             : ${pop_kinds}"
5168 echo ""